bootstrap-table-i18n-enhance.js 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196
  1. (function (global, factory) {
  2. typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
  3. typeof define === 'function' && define.amd ? define(['jquery'], factory) :
  4. (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
  5. })(this, (function ($) { 'use strict';
  6. function _assertThisInitialized(e) {
  7. if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  8. return e;
  9. }
  10. function _callSuper(t, o, e) {
  11. return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
  12. }
  13. function _classCallCheck(a, n) {
  14. if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
  15. }
  16. function _defineProperties(e, r) {
  17. for (var t = 0; t < r.length; t++) {
  18. var o = r[t];
  19. o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
  20. }
  21. }
  22. function _createClass(e, r, t) {
  23. return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
  24. writable: !1
  25. }), e;
  26. }
  27. function _getPrototypeOf(t) {
  28. return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
  29. return t.__proto__ || Object.getPrototypeOf(t);
  30. }, _getPrototypeOf(t);
  31. }
  32. function _inherits(t, e) {
  33. if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
  34. t.prototype = Object.create(e && e.prototype, {
  35. constructor: {
  36. value: t,
  37. writable: !0,
  38. configurable: !0
  39. }
  40. }), Object.defineProperty(t, "prototype", {
  41. writable: !1
  42. }), e && _setPrototypeOf(t, e);
  43. }
  44. function _isNativeReflectConstruct() {
  45. try {
  46. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  47. } catch (t) {}
  48. return (_isNativeReflectConstruct = function () {
  49. return !!t;
  50. })();
  51. }
  52. function _possibleConstructorReturn(t, e) {
  53. if (e && ("object" == typeof e || "function" == typeof e)) return e;
  54. if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
  55. return _assertThisInitialized(t);
  56. }
  57. function _setPrototypeOf(t, e) {
  58. return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
  59. return t.__proto__ = e, t;
  60. }, _setPrototypeOf(t, e);
  61. }
  62. function _toPrimitive(t, r) {
  63. if ("object" != typeof t || !t) return t;
  64. var e = t[Symbol.toPrimitive];
  65. if (void 0 !== e) {
  66. var i = e.call(t, r);
  67. if ("object" != typeof i) return i;
  68. throw new TypeError("@@toPrimitive must return a primitive value.");
  69. }
  70. return (String )(t);
  71. }
  72. function _toPropertyKey(t) {
  73. var i = _toPrimitive(t, "string");
  74. return "symbol" == typeof i ? i : i + "";
  75. }
  76. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  77. var check = function (it) {
  78. return it && it.Math === Math && it;
  79. };
  80. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  81. var globalThis_1 =
  82. // eslint-disable-next-line es/no-global-this -- safe
  83. check(typeof globalThis == 'object' && globalThis) ||
  84. check(typeof window == 'object' && window) ||
  85. // eslint-disable-next-line no-restricted-globals -- safe
  86. check(typeof self == 'object' && self) ||
  87. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  88. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  89. // eslint-disable-next-line no-new-func -- fallback
  90. (function () { return this; })() || Function('return this')();
  91. var sharedStore = {exports: {}};
  92. var globalThis$b = globalThis_1;
  93. // eslint-disable-next-line es/no-object-defineproperty -- safe
  94. var defineProperty$1 = Object.defineProperty;
  95. var defineGlobalProperty$2 = function (key, value) {
  96. try {
  97. defineProperty$1(globalThis$b, key, { value: value, configurable: true, writable: true });
  98. } catch (error) {
  99. globalThis$b[key] = value;
  100. } return value;
  101. };
  102. var globalThis$a = globalThis_1;
  103. var defineGlobalProperty$1 = defineGlobalProperty$2;
  104. var SHARED = '__core-js_shared__';
  105. var store$3 = sharedStore.exports = globalThis$a[SHARED] || defineGlobalProperty$1(SHARED, {});
  106. (store$3.versions || (store$3.versions = [])).push({
  107. version: '3.38.1',
  108. mode: 'global',
  109. copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
  110. license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE',
  111. source: 'https://github.com/zloirock/core-js'
  112. });
  113. var sharedStoreExports = sharedStore.exports;
  114. var store$2 = sharedStoreExports;
  115. var shared$3 = function (key, value) {
  116. return store$2[key] || (store$2[key] = value || {});
  117. };
  118. var fails$9 = function (exec) {
  119. try {
  120. return !!exec();
  121. } catch (error) {
  122. return true;
  123. }
  124. };
  125. var fails$8 = fails$9;
  126. var functionBindNative = !fails$8(function () {
  127. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  128. var test = (function () { /* empty */ }).bind();
  129. // eslint-disable-next-line no-prototype-builtins -- safe
  130. return typeof test != 'function' || test.hasOwnProperty('prototype');
  131. });
  132. var NATIVE_BIND$2 = functionBindNative;
  133. var FunctionPrototype$1 = Function.prototype;
  134. var call$3 = FunctionPrototype$1.call;
  135. var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$1.bind.bind(call$3, call$3);
  136. var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
  137. return function () {
  138. return call$3.apply(fn, arguments);
  139. };
  140. };
  141. // we can't use just `it == null` since of `document.all` special case
  142. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  143. var isNullOrUndefined$2 = function (it) {
  144. return it === null || it === undefined;
  145. };
  146. var isNullOrUndefined$1 = isNullOrUndefined$2;
  147. var $TypeError$5 = TypeError;
  148. // `RequireObjectCoercible` abstract operation
  149. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  150. var requireObjectCoercible$1 = function (it) {
  151. if (isNullOrUndefined$1(it)) throw new $TypeError$5("Can't call method on " + it);
  152. return it;
  153. };
  154. var requireObjectCoercible = requireObjectCoercible$1;
  155. var $Object$3 = Object;
  156. // `ToObject` abstract operation
  157. // https://tc39.es/ecma262/#sec-toobject
  158. var toObject$2 = function (argument) {
  159. return $Object$3(requireObjectCoercible(argument));
  160. };
  161. var uncurryThis$a = functionUncurryThis;
  162. var toObject$1 = toObject$2;
  163. var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
  164. // `HasOwnProperty` abstract operation
  165. // https://tc39.es/ecma262/#sec-hasownproperty
  166. // eslint-disable-next-line es/no-object-hasown -- safe
  167. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  168. return hasOwnProperty(toObject$1(it), key);
  169. };
  170. var uncurryThis$9 = functionUncurryThis;
  171. var id = 0;
  172. var postfix = Math.random();
  173. var toString$2 = uncurryThis$9(1.0.toString);
  174. var uid$2 = function (key) {
  175. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
  176. };
  177. var globalThis$9 = globalThis_1;
  178. var navigator = globalThis$9.navigator;
  179. var userAgent$1 = navigator && navigator.userAgent;
  180. var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
  181. var globalThis$8 = globalThis_1;
  182. var userAgent = environmentUserAgent;
  183. var process = globalThis$8.process;
  184. var Deno = globalThis$8.Deno;
  185. var versions = process && process.versions || Deno && Deno.version;
  186. var v8 = versions && versions.v8;
  187. var match, version;
  188. if (v8) {
  189. match = v8.split('.');
  190. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  191. // but their correct versions are not interesting for us
  192. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  193. }
  194. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  195. // so check `userAgent` even if `.v8` exists, but 0
  196. if (!version && userAgent) {
  197. match = userAgent.match(/Edge\/(\d+)/);
  198. if (!match || match[1] >= 74) {
  199. match = userAgent.match(/Chrome\/(\d+)/);
  200. if (match) version = +match[1];
  201. }
  202. }
  203. var environmentV8Version = version;
  204. /* eslint-disable es/no-symbol -- required for testing */
  205. var V8_VERSION = environmentV8Version;
  206. var fails$7 = fails$9;
  207. var globalThis$7 = globalThis_1;
  208. var $String$3 = globalThis$7.String;
  209. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  210. var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () {
  211. var symbol = Symbol('symbol detection');
  212. // Chrome 38 Symbol has incorrect toString conversion
  213. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  214. // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
  215. // of course, fail.
  216. return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) ||
  217. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  218. !Symbol.sham && V8_VERSION && V8_VERSION < 41;
  219. });
  220. /* eslint-disable es/no-symbol -- required for testing */
  221. var NATIVE_SYMBOL$1 = symbolConstructorDetection;
  222. var useSymbolAsUid = NATIVE_SYMBOL$1
  223. && !Symbol.sham
  224. && typeof Symbol.iterator == 'symbol';
  225. var globalThis$6 = globalThis_1;
  226. var shared$2 = shared$3;
  227. var hasOwn$3 = hasOwnProperty_1;
  228. var uid$1 = uid$2;
  229. var NATIVE_SYMBOL = symbolConstructorDetection;
  230. var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
  231. var Symbol$1 = globalThis$6.Symbol;
  232. var WellKnownSymbolsStore = shared$2('wks');
  233. var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
  234. var wellKnownSymbol$4 = function (name) {
  235. if (!hasOwn$3(WellKnownSymbolsStore, name)) {
  236. WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$3(Symbol$1, name)
  237. ? Symbol$1[name]
  238. : createWellKnownSymbol('Symbol.' + name);
  239. } return WellKnownSymbolsStore[name];
  240. };
  241. var wellKnownSymbol$3 = wellKnownSymbol$4;
  242. var TO_STRING_TAG$1 = wellKnownSymbol$3('toStringTag');
  243. var test = {};
  244. test[TO_STRING_TAG$1] = 'z';
  245. var toStringTagSupport = String(test) === '[object z]';
  246. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  247. var documentAll = typeof document == 'object' && document.all;
  248. // `IsCallable` abstract operation
  249. // https://tc39.es/ecma262/#sec-iscallable
  250. // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
  251. var isCallable$b = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
  252. return typeof argument == 'function' || argument === documentAll;
  253. } : function (argument) {
  254. return typeof argument == 'function';
  255. };
  256. var objectDefineProperty = {};
  257. var fails$6 = fails$9;
  258. // Detect IE8's incomplete defineProperty implementation
  259. var descriptors = !fails$6(function () {
  260. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  261. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
  262. });
  263. var isCallable$a = isCallable$b;
  264. var isObject$6 = function (it) {
  265. return typeof it == 'object' ? it !== null : isCallable$a(it);
  266. };
  267. var globalThis$5 = globalThis_1;
  268. var isObject$5 = isObject$6;
  269. var document$1 = globalThis$5.document;
  270. // typeof document.createElement is 'object' in old IE
  271. var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
  272. var documentCreateElement$1 = function (it) {
  273. return EXISTS$1 ? document$1.createElement(it) : {};
  274. };
  275. var DESCRIPTORS$5 = descriptors;
  276. var fails$5 = fails$9;
  277. var createElement = documentCreateElement$1;
  278. // Thanks to IE8 for its funny defineProperty
  279. var ie8DomDefine = !DESCRIPTORS$5 && !fails$5(function () {
  280. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  281. return Object.defineProperty(createElement('div'), 'a', {
  282. get: function () { return 7; }
  283. }).a !== 7;
  284. });
  285. var DESCRIPTORS$4 = descriptors;
  286. var fails$4 = fails$9;
  287. // V8 ~ Chrome 36-
  288. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  289. var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$4(function () {
  290. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  291. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  292. value: 42,
  293. writable: false
  294. }).prototype !== 42;
  295. });
  296. var isObject$4 = isObject$6;
  297. var $String$2 = String;
  298. var $TypeError$4 = TypeError;
  299. // `Assert: Type(argument) is Object`
  300. var anObject$1 = function (argument) {
  301. if (isObject$4(argument)) return argument;
  302. throw new $TypeError$4($String$2(argument) + ' is not an object');
  303. };
  304. var NATIVE_BIND$1 = functionBindNative;
  305. var call$2 = Function.prototype.call;
  306. var functionCall = NATIVE_BIND$1 ? call$2.bind(call$2) : function () {
  307. return call$2.apply(call$2, arguments);
  308. };
  309. var globalThis$4 = globalThis_1;
  310. var isCallable$9 = isCallable$b;
  311. var aFunction = function (argument) {
  312. return isCallable$9(argument) ? argument : undefined;
  313. };
  314. var getBuiltIn$2 = function (namespace, method) {
  315. return arguments.length < 2 ? aFunction(globalThis$4[namespace]) : globalThis$4[namespace] && globalThis$4[namespace][method];
  316. };
  317. var uncurryThis$8 = functionUncurryThis;
  318. var objectIsPrototypeOf = uncurryThis$8({}.isPrototypeOf);
  319. var getBuiltIn$1 = getBuiltIn$2;
  320. var isCallable$8 = isCallable$b;
  321. var isPrototypeOf = objectIsPrototypeOf;
  322. var USE_SYMBOL_AS_UID = useSymbolAsUid;
  323. var $Object$2 = Object;
  324. var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
  325. return typeof it == 'symbol';
  326. } : function (it) {
  327. var $Symbol = getBuiltIn$1('Symbol');
  328. return isCallable$8($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
  329. };
  330. var $String$1 = String;
  331. var tryToString$1 = function (argument) {
  332. try {
  333. return $String$1(argument);
  334. } catch (error) {
  335. return 'Object';
  336. }
  337. };
  338. var isCallable$7 = isCallable$b;
  339. var tryToString = tryToString$1;
  340. var $TypeError$3 = TypeError;
  341. // `Assert: IsCallable(argument) is true`
  342. var aCallable$2 = function (argument) {
  343. if (isCallable$7(argument)) return argument;
  344. throw new $TypeError$3(tryToString(argument) + ' is not a function');
  345. };
  346. var aCallable$1 = aCallable$2;
  347. var isNullOrUndefined = isNullOrUndefined$2;
  348. // `GetMethod` abstract operation
  349. // https://tc39.es/ecma262/#sec-getmethod
  350. var getMethod$1 = function (V, P) {
  351. var func = V[P];
  352. return isNullOrUndefined(func) ? undefined : aCallable$1(func);
  353. };
  354. var call$1 = functionCall;
  355. var isCallable$6 = isCallable$b;
  356. var isObject$3 = isObject$6;
  357. var $TypeError$2 = TypeError;
  358. // `OrdinaryToPrimitive` abstract operation
  359. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  360. var ordinaryToPrimitive$1 = function (input, pref) {
  361. var fn, val;
  362. if (pref === 'string' && isCallable$6(fn = input.toString) && !isObject$3(val = call$1(fn, input))) return val;
  363. if (isCallable$6(fn = input.valueOf) && !isObject$3(val = call$1(fn, input))) return val;
  364. if (pref !== 'string' && isCallable$6(fn = input.toString) && !isObject$3(val = call$1(fn, input))) return val;
  365. throw new $TypeError$2("Can't convert object to primitive value");
  366. };
  367. var call = functionCall;
  368. var isObject$2 = isObject$6;
  369. var isSymbol$1 = isSymbol$2;
  370. var getMethod = getMethod$1;
  371. var ordinaryToPrimitive = ordinaryToPrimitive$1;
  372. var wellKnownSymbol$2 = wellKnownSymbol$4;
  373. var $TypeError$1 = TypeError;
  374. var TO_PRIMITIVE = wellKnownSymbol$2('toPrimitive');
  375. // `ToPrimitive` abstract operation
  376. // https://tc39.es/ecma262/#sec-toprimitive
  377. var toPrimitive$1 = function (input, pref) {
  378. if (!isObject$2(input) || isSymbol$1(input)) return input;
  379. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  380. var result;
  381. if (exoticToPrim) {
  382. if (pref === undefined) pref = 'default';
  383. result = call(exoticToPrim, input, pref);
  384. if (!isObject$2(result) || isSymbol$1(result)) return result;
  385. throw new $TypeError$1("Can't convert object to primitive value");
  386. }
  387. if (pref === undefined) pref = 'number';
  388. return ordinaryToPrimitive(input, pref);
  389. };
  390. var toPrimitive = toPrimitive$1;
  391. var isSymbol = isSymbol$2;
  392. // `ToPropertyKey` abstract operation
  393. // https://tc39.es/ecma262/#sec-topropertykey
  394. var toPropertyKey$1 = function (argument) {
  395. var key = toPrimitive(argument, 'string');
  396. return isSymbol(key) ? key : key + '';
  397. };
  398. var DESCRIPTORS$3 = descriptors;
  399. var IE8_DOM_DEFINE = ie8DomDefine;
  400. var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
  401. var anObject = anObject$1;
  402. var toPropertyKey = toPropertyKey$1;
  403. var $TypeError = TypeError;
  404. // eslint-disable-next-line es/no-object-defineproperty -- safe
  405. var $defineProperty = Object.defineProperty;
  406. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  407. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  408. var ENUMERABLE = 'enumerable';
  409. var CONFIGURABLE$1 = 'configurable';
  410. var WRITABLE = 'writable';
  411. // `Object.defineProperty` method
  412. // https://tc39.es/ecma262/#sec-object.defineproperty
  413. objectDefineProperty.f = DESCRIPTORS$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
  414. anObject(O);
  415. P = toPropertyKey(P);
  416. anObject(Attributes);
  417. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  418. var current = $getOwnPropertyDescriptor(O, P);
  419. if (current && current[WRITABLE]) {
  420. O[P] = Attributes.value;
  421. Attributes = {
  422. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  423. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  424. writable: false
  425. };
  426. }
  427. } return $defineProperty(O, P, Attributes);
  428. } : $defineProperty : function defineProperty(O, P, Attributes) {
  429. anObject(O);
  430. P = toPropertyKey(P);
  431. anObject(Attributes);
  432. if (IE8_DOM_DEFINE) try {
  433. return $defineProperty(O, P, Attributes);
  434. } catch (error) { /* empty */ }
  435. if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
  436. if ('value' in Attributes) O[P] = Attributes.value;
  437. return O;
  438. };
  439. var makeBuiltIn$2 = {exports: {}};
  440. var DESCRIPTORS$2 = descriptors;
  441. var hasOwn$2 = hasOwnProperty_1;
  442. var FunctionPrototype = Function.prototype;
  443. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  444. var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
  445. var EXISTS = hasOwn$2(FunctionPrototype, 'name');
  446. // additional protection from minified / mangled / dropped function names
  447. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  448. var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype, 'name').configurable));
  449. var functionName = {
  450. EXISTS: EXISTS,
  451. PROPER: PROPER,
  452. CONFIGURABLE: CONFIGURABLE
  453. };
  454. var uncurryThis$7 = functionUncurryThis;
  455. var isCallable$5 = isCallable$b;
  456. var store$1 = sharedStoreExports;
  457. var functionToString = uncurryThis$7(Function.toString);
  458. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  459. if (!isCallable$5(store$1.inspectSource)) {
  460. store$1.inspectSource = function (it) {
  461. return functionToString(it);
  462. };
  463. }
  464. var inspectSource$2 = store$1.inspectSource;
  465. var globalThis$3 = globalThis_1;
  466. var isCallable$4 = isCallable$b;
  467. var WeakMap$1 = globalThis$3.WeakMap;
  468. var weakMapBasicDetection = isCallable$4(WeakMap$1) && /native code/.test(String(WeakMap$1));
  469. var createPropertyDescriptor$1 = function (bitmap, value) {
  470. return {
  471. enumerable: !(bitmap & 1),
  472. configurable: !(bitmap & 2),
  473. writable: !(bitmap & 4),
  474. value: value
  475. };
  476. };
  477. var DESCRIPTORS$1 = descriptors;
  478. var definePropertyModule$1 = objectDefineProperty;
  479. var createPropertyDescriptor = createPropertyDescriptor$1;
  480. var createNonEnumerableProperty$2 = DESCRIPTORS$1 ? function (object, key, value) {
  481. return definePropertyModule$1.f(object, key, createPropertyDescriptor(1, value));
  482. } : function (object, key, value) {
  483. object[key] = value;
  484. return object;
  485. };
  486. var shared$1 = shared$3;
  487. var uid = uid$2;
  488. var keys = shared$1('keys');
  489. var sharedKey$1 = function (key) {
  490. return keys[key] || (keys[key] = uid(key));
  491. };
  492. var NATIVE_WEAK_MAP = weakMapBasicDetection;
  493. var globalThis$2 = globalThis_1;
  494. var isObject$1 = isObject$6;
  495. var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
  496. var hasOwn$1 = hasOwnProperty_1;
  497. var shared = sharedStoreExports;
  498. var sharedKey = sharedKey$1;
  499. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  500. var TypeError$1 = globalThis$2.TypeError;
  501. var WeakMap = globalThis$2.WeakMap;
  502. var set, get, has;
  503. var enforce = function (it) {
  504. return has(it) ? get(it) : set(it, {});
  505. };
  506. var getterFor = function (TYPE) {
  507. return function (it) {
  508. var state;
  509. if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
  510. throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
  511. } return state;
  512. };
  513. };
  514. if (NATIVE_WEAK_MAP || shared.state) {
  515. var store = shared.state || (shared.state = new WeakMap());
  516. /* eslint-disable no-self-assign -- prototype methods protection */
  517. store.get = store.get;
  518. store.has = store.has;
  519. store.set = store.set;
  520. /* eslint-enable no-self-assign -- prototype methods protection */
  521. set = function (it, metadata) {
  522. if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  523. metadata.facade = it;
  524. store.set(it, metadata);
  525. return metadata;
  526. };
  527. get = function (it) {
  528. return store.get(it) || {};
  529. };
  530. has = function (it) {
  531. return store.has(it);
  532. };
  533. } else {
  534. var STATE = sharedKey('state');
  535. set = function (it, metadata) {
  536. if (hasOwn$1(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  537. metadata.facade = it;
  538. createNonEnumerableProperty$1(it, STATE, metadata);
  539. return metadata;
  540. };
  541. get = function (it) {
  542. return hasOwn$1(it, STATE) ? it[STATE] : {};
  543. };
  544. has = function (it) {
  545. return hasOwn$1(it, STATE);
  546. };
  547. }
  548. var internalState = {
  549. set: set,
  550. get: get,
  551. has: has,
  552. enforce: enforce,
  553. getterFor: getterFor
  554. };
  555. var uncurryThis$6 = functionUncurryThis;
  556. var fails$3 = fails$9;
  557. var isCallable$3 = isCallable$b;
  558. var hasOwn = hasOwnProperty_1;
  559. var DESCRIPTORS = descriptors;
  560. var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
  561. var inspectSource$1 = inspectSource$2;
  562. var InternalStateModule = internalState;
  563. var enforceInternalState = InternalStateModule.enforce;
  564. var getInternalState = InternalStateModule.get;
  565. var $String = String;
  566. // eslint-disable-next-line es/no-object-defineproperty -- safe
  567. var defineProperty = Object.defineProperty;
  568. var stringSlice$1 = uncurryThis$6(''.slice);
  569. var replace = uncurryThis$6(''.replace);
  570. var join = uncurryThis$6([].join);
  571. var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$3(function () {
  572. return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  573. });
  574. var TEMPLATE = String(String).split('String');
  575. var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
  576. if (stringSlice$1($String(name), 0, 7) === 'Symbol(') {
  577. name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
  578. }
  579. if (options && options.getter) name = 'get ' + name;
  580. if (options && options.setter) name = 'set ' + name;
  581. if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  582. if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
  583. else value.name = name;
  584. }
  585. if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
  586. defineProperty(value, 'length', { value: options.arity });
  587. }
  588. try {
  589. if (options && hasOwn(options, 'constructor') && options.constructor) {
  590. if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
  591. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  592. } else if (value.prototype) value.prototype = undefined;
  593. } catch (error) { /* empty */ }
  594. var state = enforceInternalState(value);
  595. if (!hasOwn(state, 'source')) {
  596. state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
  597. } return value;
  598. };
  599. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  600. // eslint-disable-next-line no-extend-native -- required
  601. Function.prototype.toString = makeBuiltIn$1(function toString() {
  602. return isCallable$3(this) && getInternalState(this).source || inspectSource$1(this);
  603. }, 'toString');
  604. var makeBuiltInExports = makeBuiltIn$2.exports;
  605. var isCallable$2 = isCallable$b;
  606. var definePropertyModule = objectDefineProperty;
  607. var makeBuiltIn = makeBuiltInExports;
  608. var defineGlobalProperty = defineGlobalProperty$2;
  609. var defineBuiltIn$1 = function (O, key, value, options) {
  610. if (!options) options = {};
  611. var simple = options.enumerable;
  612. var name = options.name !== undefined ? options.name : key;
  613. if (isCallable$2(value)) makeBuiltIn(value, name, options);
  614. if (options.global) {
  615. if (simple) O[key] = value;
  616. else defineGlobalProperty(key, value);
  617. } else {
  618. try {
  619. if (!options.unsafe) delete O[key];
  620. else if (O[key]) simple = true;
  621. } catch (error) { /* empty */ }
  622. if (simple) O[key] = value;
  623. else definePropertyModule.f(O, key, {
  624. value: value,
  625. enumerable: false,
  626. configurable: !options.nonConfigurable,
  627. writable: !options.nonWritable
  628. });
  629. } return O;
  630. };
  631. var uncurryThis$5 = functionUncurryThis;
  632. var toString$1 = uncurryThis$5({}.toString);
  633. var stringSlice = uncurryThis$5(''.slice);
  634. var classofRaw$2 = function (it) {
  635. return stringSlice(toString$1(it), 8, -1);
  636. };
  637. var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
  638. var isCallable$1 = isCallable$b;
  639. var classofRaw$1 = classofRaw$2;
  640. var wellKnownSymbol$1 = wellKnownSymbol$4;
  641. var TO_STRING_TAG = wellKnownSymbol$1('toStringTag');
  642. var $Object$1 = Object;
  643. // ES3 wrong here
  644. var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
  645. // fallback for IE11 Script Access Denied error
  646. var tryGet = function (it, key) {
  647. try {
  648. return it[key];
  649. } catch (error) { /* empty */ }
  650. };
  651. // getting tag from ES6+ `Object.prototype.toString`
  652. var classof$4 = TO_STRING_TAG_SUPPORT$2 ? classofRaw$1 : function (it) {
  653. var O, tag, result;
  654. return it === undefined ? 'Undefined' : it === null ? 'Null'
  655. // @@toStringTag case
  656. : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG)) == 'string' ? tag
  657. // builtinTag case
  658. : CORRECT_ARGUMENTS ? classofRaw$1(O)
  659. // ES3 arguments fallback
  660. : (result = classofRaw$1(O)) === 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
  661. };
  662. var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
  663. var classof$3 = classof$4;
  664. // `Object.prototype.toString` method implementation
  665. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  666. var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
  667. return '[object ' + classof$3(this) + ']';
  668. };
  669. var TO_STRING_TAG_SUPPORT = toStringTagSupport;
  670. var defineBuiltIn = defineBuiltIn$1;
  671. var toString = objectToString;
  672. // `Object.prototype.toString` method
  673. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  674. if (!TO_STRING_TAG_SUPPORT) {
  675. defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });
  676. }
  677. // iterable DOM collections
  678. // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
  679. var domIterables = {
  680. CSSRuleList: 0,
  681. CSSStyleDeclaration: 0,
  682. CSSValueList: 0,
  683. ClientRectList: 0,
  684. DOMRectList: 0,
  685. DOMStringList: 0,
  686. DOMTokenList: 1,
  687. DataTransferItemList: 0,
  688. FileList: 0,
  689. HTMLAllCollection: 0,
  690. HTMLCollection: 0,
  691. HTMLFormElement: 0,
  692. HTMLSelectElement: 0,
  693. MediaList: 0,
  694. MimeTypeArray: 0,
  695. NamedNodeMap: 0,
  696. NodeList: 1,
  697. PaintRequestList: 0,
  698. Plugin: 0,
  699. PluginArray: 0,
  700. SVGLengthList: 0,
  701. SVGNumberList: 0,
  702. SVGPathSegList: 0,
  703. SVGPointList: 0,
  704. SVGStringList: 0,
  705. SVGTransformList: 0,
  706. SourceBufferList: 0,
  707. StyleSheetList: 0,
  708. TextTrackCueList: 0,
  709. TextTrackList: 0,
  710. TouchList: 0
  711. };
  712. // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
  713. var documentCreateElement = documentCreateElement$1;
  714. var classList = documentCreateElement('span').classList;
  715. var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
  716. var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
  717. var classofRaw = classofRaw$2;
  718. var uncurryThis$4 = functionUncurryThis;
  719. var functionUncurryThisClause = function (fn) {
  720. // Nashorn bug:
  721. // https://github.com/zloirock/core-js/issues/1128
  722. // https://github.com/zloirock/core-js/issues/1130
  723. if (classofRaw(fn) === 'Function') return uncurryThis$4(fn);
  724. };
  725. var uncurryThis$3 = functionUncurryThisClause;
  726. var aCallable = aCallable$2;
  727. var NATIVE_BIND = functionBindNative;
  728. var bind$1 = uncurryThis$3(uncurryThis$3.bind);
  729. // optional / simple context binding
  730. var functionBindContext = function (fn, that) {
  731. aCallable(fn);
  732. return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
  733. return fn.apply(that, arguments);
  734. };
  735. };
  736. var uncurryThis$2 = functionUncurryThis;
  737. var fails$2 = fails$9;
  738. var classof$2 = classofRaw$2;
  739. var $Object = Object;
  740. var split = uncurryThis$2(''.split);
  741. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  742. var indexedObject = fails$2(function () {
  743. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  744. // eslint-disable-next-line no-prototype-builtins -- safe
  745. return !$Object('z').propertyIsEnumerable(0);
  746. }) ? function (it) {
  747. return classof$2(it) === 'String' ? split(it, '') : $Object(it);
  748. } : $Object;
  749. var ceil = Math.ceil;
  750. var floor = Math.floor;
  751. // `Math.trunc` method
  752. // https://tc39.es/ecma262/#sec-math.trunc
  753. // eslint-disable-next-line es/no-math-trunc -- safe
  754. var mathTrunc = Math.trunc || function trunc(x) {
  755. var n = +x;
  756. return (n > 0 ? floor : ceil)(n);
  757. };
  758. var trunc = mathTrunc;
  759. // `ToIntegerOrInfinity` abstract operation
  760. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  761. var toIntegerOrInfinity$1 = function (argument) {
  762. var number = +argument;
  763. // eslint-disable-next-line no-self-compare -- NaN check
  764. return number !== number || number === 0 ? 0 : trunc(number);
  765. };
  766. var toIntegerOrInfinity = toIntegerOrInfinity$1;
  767. var min = Math.min;
  768. // `ToLength` abstract operation
  769. // https://tc39.es/ecma262/#sec-tolength
  770. var toLength$1 = function (argument) {
  771. var len = toIntegerOrInfinity(argument);
  772. return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  773. };
  774. var toLength = toLength$1;
  775. // `LengthOfArrayLike` abstract operation
  776. // https://tc39.es/ecma262/#sec-lengthofarraylike
  777. var lengthOfArrayLike$1 = function (obj) {
  778. return toLength(obj.length);
  779. };
  780. var classof$1 = classofRaw$2;
  781. // `IsArray` abstract operation
  782. // https://tc39.es/ecma262/#sec-isarray
  783. // eslint-disable-next-line es/no-array-isarray -- safe
  784. var isArray$1 = Array.isArray || function isArray(argument) {
  785. return classof$1(argument) === 'Array';
  786. };
  787. var uncurryThis$1 = functionUncurryThis;
  788. var fails$1 = fails$9;
  789. var isCallable = isCallable$b;
  790. var classof = classof$4;
  791. var getBuiltIn = getBuiltIn$2;
  792. var inspectSource = inspectSource$2;
  793. var noop = function () { /* empty */ };
  794. var construct = getBuiltIn('Reflect', 'construct');
  795. var constructorRegExp = /^\s*(?:class|function)\b/;
  796. var exec = uncurryThis$1(constructorRegExp.exec);
  797. var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
  798. var isConstructorModern = function isConstructor(argument) {
  799. if (!isCallable(argument)) return false;
  800. try {
  801. construct(noop, [], argument);
  802. return true;
  803. } catch (error) {
  804. return false;
  805. }
  806. };
  807. var isConstructorLegacy = function isConstructor(argument) {
  808. if (!isCallable(argument)) return false;
  809. switch (classof(argument)) {
  810. case 'AsyncFunction':
  811. case 'GeneratorFunction':
  812. case 'AsyncGeneratorFunction': return false;
  813. }
  814. try {
  815. // we can't check .prototype since constructors produced by .bind haven't it
  816. // `Function#toString` throws on some built-it function in some legacy engines
  817. // (for example, `DOMQuad` and similar in FF41-)
  818. return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
  819. } catch (error) {
  820. return true;
  821. }
  822. };
  823. isConstructorLegacy.sham = true;
  824. // `IsConstructor` abstract operation
  825. // https://tc39.es/ecma262/#sec-isconstructor
  826. var isConstructor$1 = !construct || fails$1(function () {
  827. var called;
  828. return isConstructorModern(isConstructorModern.call)
  829. || !isConstructorModern(Object)
  830. || !isConstructorModern(function () { called = true; })
  831. || called;
  832. }) ? isConstructorLegacy : isConstructorModern;
  833. var isArray = isArray$1;
  834. var isConstructor = isConstructor$1;
  835. var isObject = isObject$6;
  836. var wellKnownSymbol = wellKnownSymbol$4;
  837. var SPECIES = wellKnownSymbol('species');
  838. var $Array = Array;
  839. // a part of `ArraySpeciesCreate` abstract operation
  840. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  841. var arraySpeciesConstructor$1 = function (originalArray) {
  842. var C;
  843. if (isArray(originalArray)) {
  844. C = originalArray.constructor;
  845. // cross-realm fallback
  846. if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;
  847. else if (isObject(C)) {
  848. C = C[SPECIES];
  849. if (C === null) C = undefined;
  850. }
  851. } return C === undefined ? $Array : C;
  852. };
  853. var arraySpeciesConstructor = arraySpeciesConstructor$1;
  854. // `ArraySpeciesCreate` abstract operation
  855. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  856. var arraySpeciesCreate$1 = function (originalArray, length) {
  857. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  858. };
  859. var bind = functionBindContext;
  860. var uncurryThis = functionUncurryThis;
  861. var IndexedObject = indexedObject;
  862. var toObject = toObject$2;
  863. var lengthOfArrayLike = lengthOfArrayLike$1;
  864. var arraySpeciesCreate = arraySpeciesCreate$1;
  865. var push = uncurryThis([].push);
  866. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  867. var createMethod = function (TYPE) {
  868. var IS_MAP = TYPE === 1;
  869. var IS_FILTER = TYPE === 2;
  870. var IS_SOME = TYPE === 3;
  871. var IS_EVERY = TYPE === 4;
  872. var IS_FIND_INDEX = TYPE === 6;
  873. var IS_FILTER_REJECT = TYPE === 7;
  874. var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
  875. return function ($this, callbackfn, that, specificCreate) {
  876. var O = toObject($this);
  877. var self = IndexedObject(O);
  878. var length = lengthOfArrayLike(self);
  879. var boundFunction = bind(callbackfn, that);
  880. var index = 0;
  881. var create = specificCreate || arraySpeciesCreate;
  882. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  883. var value, result;
  884. for (;length > index; index++) if (NO_HOLES || index in self) {
  885. value = self[index];
  886. result = boundFunction(value, index, O);
  887. if (TYPE) {
  888. if (IS_MAP) target[index] = result; // map
  889. else if (result) switch (TYPE) {
  890. case 3: return true; // some
  891. case 5: return value; // find
  892. case 6: return index; // findIndex
  893. case 2: push(target, value); // filter
  894. } else switch (TYPE) {
  895. case 4: return false; // every
  896. case 7: push(target, value); // filterReject
  897. }
  898. }
  899. }
  900. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  901. };
  902. };
  903. var arrayIteration = {
  904. // `Array.prototype.forEach` method
  905. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  906. forEach: createMethod(0),
  907. // `Array.prototype.map` method
  908. // https://tc39.es/ecma262/#sec-array.prototype.map
  909. map: createMethod(1),
  910. // `Array.prototype.filter` method
  911. // https://tc39.es/ecma262/#sec-array.prototype.filter
  912. filter: createMethod(2),
  913. // `Array.prototype.some` method
  914. // https://tc39.es/ecma262/#sec-array.prototype.some
  915. some: createMethod(3),
  916. // `Array.prototype.every` method
  917. // https://tc39.es/ecma262/#sec-array.prototype.every
  918. every: createMethod(4),
  919. // `Array.prototype.find` method
  920. // https://tc39.es/ecma262/#sec-array.prototype.find
  921. find: createMethod(5),
  922. // `Array.prototype.findIndex` method
  923. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  924. findIndex: createMethod(6),
  925. // `Array.prototype.filterReject` method
  926. // https://github.com/tc39/proposal-array-filtering
  927. filterReject: createMethod(7)
  928. };
  929. var fails = fails$9;
  930. var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
  931. var method = [][METHOD_NAME];
  932. return !!method && fails(function () {
  933. // eslint-disable-next-line no-useless-call -- required for testing
  934. method.call(null, argument || function () { return 1; }, 1);
  935. });
  936. };
  937. var $forEach = arrayIteration.forEach;
  938. var arrayMethodIsStrict = arrayMethodIsStrict$1;
  939. var STRICT_METHOD = arrayMethodIsStrict('forEach');
  940. // `Array.prototype.forEach` method implementation
  941. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  942. var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
  943. return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  944. // eslint-disable-next-line es/no-array-prototype-foreach -- safe
  945. } : [].forEach;
  946. var globalThis$1 = globalThis_1;
  947. var DOMIterables = domIterables;
  948. var DOMTokenListPrototype = domTokenListPrototype;
  949. var forEach = arrayForEach;
  950. var createNonEnumerableProperty = createNonEnumerableProperty$2;
  951. var handlePrototype = function (CollectionPrototype) {
  952. // some Chrome versions have non-configurable methods on DOMTokenList
  953. if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
  954. createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
  955. } catch (error) {
  956. CollectionPrototype.forEach = forEach;
  957. }
  958. };
  959. for (var COLLECTION_NAME in DOMIterables) {
  960. if (DOMIterables[COLLECTION_NAME]) {
  961. handlePrototype(globalThis$1[COLLECTION_NAME] && globalThis$1[COLLECTION_NAME].prototype);
  962. }
  963. }
  964. handlePrototype(DOMTokenListPrototype);
  965. /**
  966. * @author: Jewway
  967. * @update zhixin wen <wenzhixin2010@gmail.com>
  968. */
  969. $.fn.bootstrapTable.methods.push('changeTitle');
  970. $.fn.bootstrapTable.methods.push('changeLocale');
  971. $.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  972. function _class() {
  973. _classCallCheck(this, _class);
  974. return _callSuper(this, _class, arguments);
  975. }
  976. _inherits(_class, _$$BootstrapTable);
  977. return _createClass(_class, [{
  978. key: "changeTitle",
  979. value: function changeTitle(locale) {
  980. this.options.columns.forEach(function (columnList) {
  981. columnList.forEach(function (column) {
  982. if (column.field) {
  983. column.title = locale[column.field];
  984. }
  985. });
  986. });
  987. this.initHeader();
  988. this.initBody();
  989. this.initToolbar();
  990. }
  991. }, {
  992. key: "changeLocale",
  993. value: function changeLocale(localeId) {
  994. this.options.locale = localeId;
  995. this.initLocale();
  996. this.initPagination();
  997. this.initBody();
  998. this.initToolbar();
  999. }
  1000. }]);
  1001. }($.BootstrapTable);
  1002. }));