bootstrap-table-treegrid.js 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782
  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 ($$4) { 'use strict';
  6. function _callSuper(t, o, e) {
  7. return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
  8. }
  9. function _isNativeReflectConstruct() {
  10. try {
  11. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  12. } catch (t) {}
  13. return (_isNativeReflectConstruct = function () {
  14. return !!t;
  15. })();
  16. }
  17. function _toPrimitive(t, r) {
  18. if ("object" != typeof t || !t) return t;
  19. var e = t[Symbol.toPrimitive];
  20. if (void 0 !== e) {
  21. var i = e.call(t, r || "default");
  22. if ("object" != typeof i) return i;
  23. throw new TypeError("@@toPrimitive must return a primitive value.");
  24. }
  25. return ("string" === r ? String : Number)(t);
  26. }
  27. function _toPropertyKey(t) {
  28. var i = _toPrimitive(t, "string");
  29. return "symbol" == typeof i ? i : String(i);
  30. }
  31. function _classCallCheck(instance, Constructor) {
  32. if (!(instance instanceof Constructor)) {
  33. throw new TypeError("Cannot call a class as a function");
  34. }
  35. }
  36. function _defineProperties(target, props) {
  37. for (var i = 0; i < props.length; i++) {
  38. var descriptor = props[i];
  39. descriptor.enumerable = descriptor.enumerable || false;
  40. descriptor.configurable = true;
  41. if ("value" in descriptor) descriptor.writable = true;
  42. Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
  43. }
  44. }
  45. function _createClass(Constructor, protoProps, staticProps) {
  46. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  47. if (staticProps) _defineProperties(Constructor, staticProps);
  48. Object.defineProperty(Constructor, "prototype", {
  49. writable: false
  50. });
  51. return Constructor;
  52. }
  53. function _inherits(subClass, superClass) {
  54. if (typeof superClass !== "function" && superClass !== null) {
  55. throw new TypeError("Super expression must either be null or a function");
  56. }
  57. subClass.prototype = Object.create(superClass && superClass.prototype, {
  58. constructor: {
  59. value: subClass,
  60. writable: true,
  61. configurable: true
  62. }
  63. });
  64. Object.defineProperty(subClass, "prototype", {
  65. writable: false
  66. });
  67. if (superClass) _setPrototypeOf(subClass, superClass);
  68. }
  69. function _getPrototypeOf(o) {
  70. _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
  71. return o.__proto__ || Object.getPrototypeOf(o);
  72. };
  73. return _getPrototypeOf(o);
  74. }
  75. function _setPrototypeOf(o, p) {
  76. _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  77. o.__proto__ = p;
  78. return o;
  79. };
  80. return _setPrototypeOf(o, p);
  81. }
  82. function _assertThisInitialized(self) {
  83. if (self === void 0) {
  84. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  85. }
  86. return self;
  87. }
  88. function _possibleConstructorReturn(self, call) {
  89. if (call && (typeof call === "object" || typeof call === "function")) {
  90. return call;
  91. } else if (call !== void 0) {
  92. throw new TypeError("Derived constructors may only return object or undefined");
  93. }
  94. return _assertThisInitialized(self);
  95. }
  96. function _superPropBase(object, property) {
  97. while (!Object.prototype.hasOwnProperty.call(object, property)) {
  98. object = _getPrototypeOf(object);
  99. if (object === null) break;
  100. }
  101. return object;
  102. }
  103. function _get() {
  104. if (typeof Reflect !== "undefined" && Reflect.get) {
  105. _get = Reflect.get.bind();
  106. } else {
  107. _get = function _get(target, property, receiver) {
  108. var base = _superPropBase(target, property);
  109. if (!base) return;
  110. var desc = Object.getOwnPropertyDescriptor(base, property);
  111. if (desc.get) {
  112. return desc.get.call(arguments.length < 3 ? target : receiver);
  113. }
  114. return desc.value;
  115. };
  116. }
  117. return _get.apply(this, arguments);
  118. }
  119. function _unsupportedIterableToArray(o, minLen) {
  120. if (!o) return;
  121. if (typeof o === "string") return _arrayLikeToArray(o, minLen);
  122. var n = Object.prototype.toString.call(o).slice(8, -1);
  123. if (n === "Object" && o.constructor) n = o.constructor.name;
  124. if (n === "Map" || n === "Set") return Array.from(o);
  125. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
  126. }
  127. function _arrayLikeToArray(arr, len) {
  128. if (len == null || len > arr.length) len = arr.length;
  129. for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
  130. return arr2;
  131. }
  132. function _createForOfIteratorHelper(o, allowArrayLike) {
  133. var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
  134. if (!it) {
  135. if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
  136. if (it) o = it;
  137. var i = 0;
  138. var F = function () {};
  139. return {
  140. s: F,
  141. n: function () {
  142. if (i >= o.length) return {
  143. done: true
  144. };
  145. return {
  146. done: false,
  147. value: o[i++]
  148. };
  149. },
  150. e: function (e) {
  151. throw e;
  152. },
  153. f: F
  154. };
  155. }
  156. throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  157. }
  158. var normalCompletion = true,
  159. didErr = false,
  160. err;
  161. return {
  162. s: function () {
  163. it = it.call(o);
  164. },
  165. n: function () {
  166. var step = it.next();
  167. normalCompletion = step.done;
  168. return step;
  169. },
  170. e: function (e) {
  171. didErr = true;
  172. err = e;
  173. },
  174. f: function () {
  175. try {
  176. if (!normalCompletion && it.return != null) it.return();
  177. } finally {
  178. if (didErr) throw err;
  179. }
  180. }
  181. };
  182. }
  183. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  184. var check = function (it) {
  185. return it && it.Math === Math && it;
  186. };
  187. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  188. var global$a =
  189. // eslint-disable-next-line es/no-global-this -- safe
  190. check(typeof globalThis == 'object' && globalThis) ||
  191. check(typeof window == 'object' && window) ||
  192. // eslint-disable-next-line no-restricted-globals -- safe
  193. check(typeof self == 'object' && self) ||
  194. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  195. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  196. // eslint-disable-next-line no-new-func -- fallback
  197. (function () { return this; })() || Function('return this')();
  198. var objectGetOwnPropertyDescriptor = {};
  199. var fails$d = function (exec) {
  200. try {
  201. return !!exec();
  202. } catch (error) {
  203. return true;
  204. }
  205. };
  206. var fails$c = fails$d;
  207. // Detect IE8's incomplete defineProperty implementation
  208. var descriptors = !fails$c(function () {
  209. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  210. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
  211. });
  212. var fails$b = fails$d;
  213. var functionBindNative = !fails$b(function () {
  214. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  215. var test = (function () { /* empty */ }).bind();
  216. // eslint-disable-next-line no-prototype-builtins -- safe
  217. return typeof test != 'function' || test.hasOwnProperty('prototype');
  218. });
  219. var NATIVE_BIND$2 = functionBindNative;
  220. var call$5 = Function.prototype.call;
  221. var functionCall = NATIVE_BIND$2 ? call$5.bind(call$5) : function () {
  222. return call$5.apply(call$5, arguments);
  223. };
  224. var objectPropertyIsEnumerable = {};
  225. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  226. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  227. var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  228. // Nashorn ~ JDK8 bug
  229. var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  230. // `Object.prototype.propertyIsEnumerable` method implementation
  231. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  232. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  233. var descriptor = getOwnPropertyDescriptor$1(this, V);
  234. return !!descriptor && descriptor.enumerable;
  235. } : $propertyIsEnumerable;
  236. var createPropertyDescriptor$3 = function (bitmap, value) {
  237. return {
  238. enumerable: !(bitmap & 1),
  239. configurable: !(bitmap & 2),
  240. writable: !(bitmap & 4),
  241. value: value
  242. };
  243. };
  244. var NATIVE_BIND$1 = functionBindNative;
  245. var FunctionPrototype$1 = Function.prototype;
  246. var call$4 = FunctionPrototype$1.call;
  247. var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$4, call$4);
  248. var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
  249. return function () {
  250. return call$4.apply(fn, arguments);
  251. };
  252. };
  253. var uncurryThis$e = functionUncurryThis;
  254. var toString$2 = uncurryThis$e({}.toString);
  255. var stringSlice$1 = uncurryThis$e(''.slice);
  256. var classofRaw$2 = function (it) {
  257. return stringSlice$1(toString$2(it), 8, -1);
  258. };
  259. var uncurryThis$d = functionUncurryThis;
  260. var fails$a = fails$d;
  261. var classof$4 = classofRaw$2;
  262. var $Object$3 = Object;
  263. var split = uncurryThis$d(''.split);
  264. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  265. var indexedObject = fails$a(function () {
  266. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  267. // eslint-disable-next-line no-prototype-builtins -- safe
  268. return !$Object$3('z').propertyIsEnumerable(0);
  269. }) ? function (it) {
  270. return classof$4(it) === 'String' ? split(it, '') : $Object$3(it);
  271. } : $Object$3;
  272. // we can't use just `it == null` since of `document.all` special case
  273. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  274. var isNullOrUndefined$2 = function (it) {
  275. return it === null || it === undefined;
  276. };
  277. var isNullOrUndefined$1 = isNullOrUndefined$2;
  278. var $TypeError$6 = TypeError;
  279. // `RequireObjectCoercible` abstract operation
  280. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  281. var requireObjectCoercible$2 = function (it) {
  282. if (isNullOrUndefined$1(it)) throw new $TypeError$6("Can't call method on " + it);
  283. return it;
  284. };
  285. // toObject with fallback for non-array-like ES3 strings
  286. var IndexedObject$3 = indexedObject;
  287. var requireObjectCoercible$1 = requireObjectCoercible$2;
  288. var toIndexedObject$4 = function (it) {
  289. return IndexedObject$3(requireObjectCoercible$1(it));
  290. };
  291. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  292. var documentAll = typeof document == 'object' && document.all;
  293. // `IsCallable` abstract operation
  294. // https://tc39.es/ecma262/#sec-iscallable
  295. // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
  296. var isCallable$c = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
  297. return typeof argument == 'function' || argument === documentAll;
  298. } : function (argument) {
  299. return typeof argument == 'function';
  300. };
  301. var isCallable$b = isCallable$c;
  302. var isObject$7 = function (it) {
  303. return typeof it == 'object' ? it !== null : isCallable$b(it);
  304. };
  305. var global$9 = global$a;
  306. var isCallable$a = isCallable$c;
  307. var aFunction = function (argument) {
  308. return isCallable$a(argument) ? argument : undefined;
  309. };
  310. var getBuiltIn$3 = function (namespace, method) {
  311. return arguments.length < 2 ? aFunction(global$9[namespace]) : global$9[namespace] && global$9[namespace][method];
  312. };
  313. var uncurryThis$c = functionUncurryThis;
  314. var objectIsPrototypeOf = uncurryThis$c({}.isPrototypeOf);
  315. var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
  316. var global$8 = global$a;
  317. var userAgent = engineUserAgent;
  318. var process = global$8.process;
  319. var Deno = global$8.Deno;
  320. var versions = process && process.versions || Deno && Deno.version;
  321. var v8 = versions && versions.v8;
  322. var match, version;
  323. if (v8) {
  324. match = v8.split('.');
  325. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  326. // but their correct versions are not interesting for us
  327. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  328. }
  329. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  330. // so check `userAgent` even if `.v8` exists, but 0
  331. if (!version && userAgent) {
  332. match = userAgent.match(/Edge\/(\d+)/);
  333. if (!match || match[1] >= 74) {
  334. match = userAgent.match(/Chrome\/(\d+)/);
  335. if (match) version = +match[1];
  336. }
  337. }
  338. var engineV8Version = version;
  339. /* eslint-disable es/no-symbol -- required for testing */
  340. var V8_VERSION$2 = engineV8Version;
  341. var fails$9 = fails$d;
  342. var global$7 = global$a;
  343. var $String$3 = global$7.String;
  344. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  345. var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$9(function () {
  346. var symbol = Symbol('symbol detection');
  347. // Chrome 38 Symbol has incorrect toString conversion
  348. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  349. // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
  350. // of course, fail.
  351. return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) ||
  352. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  353. !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
  354. });
  355. /* eslint-disable es/no-symbol -- required for testing */
  356. var NATIVE_SYMBOL$1 = symbolConstructorDetection;
  357. var useSymbolAsUid = NATIVE_SYMBOL$1
  358. && !Symbol.sham
  359. && typeof Symbol.iterator == 'symbol';
  360. var getBuiltIn$2 = getBuiltIn$3;
  361. var isCallable$9 = isCallable$c;
  362. var isPrototypeOf = objectIsPrototypeOf;
  363. var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
  364. var $Object$2 = Object;
  365. var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
  366. return typeof it == 'symbol';
  367. } : function (it) {
  368. var $Symbol = getBuiltIn$2('Symbol');
  369. return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
  370. };
  371. var $String$2 = String;
  372. var tryToString$1 = function (argument) {
  373. try {
  374. return $String$2(argument);
  375. } catch (error) {
  376. return 'Object';
  377. }
  378. };
  379. var isCallable$8 = isCallable$c;
  380. var tryToString = tryToString$1;
  381. var $TypeError$5 = TypeError;
  382. // `Assert: IsCallable(argument) is true`
  383. var aCallable$2 = function (argument) {
  384. if (isCallable$8(argument)) return argument;
  385. throw new $TypeError$5(tryToString(argument) + ' is not a function');
  386. };
  387. var aCallable$1 = aCallable$2;
  388. var isNullOrUndefined = isNullOrUndefined$2;
  389. // `GetMethod` abstract operation
  390. // https://tc39.es/ecma262/#sec-getmethod
  391. var getMethod$1 = function (V, P) {
  392. var func = V[P];
  393. return isNullOrUndefined(func) ? undefined : aCallable$1(func);
  394. };
  395. var call$3 = functionCall;
  396. var isCallable$7 = isCallable$c;
  397. var isObject$6 = isObject$7;
  398. var $TypeError$4 = TypeError;
  399. // `OrdinaryToPrimitive` abstract operation
  400. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  401. var ordinaryToPrimitive$1 = function (input, pref) {
  402. var fn, val;
  403. if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$3(fn, input))) return val;
  404. if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$3(fn, input))) return val;
  405. if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$3(fn, input))) return val;
  406. throw new $TypeError$4("Can't convert object to primitive value");
  407. };
  408. var sharedStore = {exports: {}};
  409. var global$6 = global$a;
  410. // eslint-disable-next-line es/no-object-defineproperty -- safe
  411. var defineProperty$2 = Object.defineProperty;
  412. var defineGlobalProperty$3 = function (key, value) {
  413. try {
  414. defineProperty$2(global$6, key, { value: value, configurable: true, writable: true });
  415. } catch (error) {
  416. global$6[key] = value;
  417. } return value;
  418. };
  419. var globalThis$1 = global$a;
  420. var defineGlobalProperty$2 = defineGlobalProperty$3;
  421. var SHARED = '__core-js_shared__';
  422. var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
  423. (store$3.versions || (store$3.versions = [])).push({
  424. version: '3.36.0',
  425. mode: 'global',
  426. copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
  427. license: 'https://github.com/zloirock/core-js/blob/v3.36.0/LICENSE',
  428. source: 'https://github.com/zloirock/core-js'
  429. });
  430. var sharedStoreExports = sharedStore.exports;
  431. var store$2 = sharedStoreExports;
  432. var shared$3 = function (key, value) {
  433. return store$2[key] || (store$2[key] = value || {});
  434. };
  435. var requireObjectCoercible = requireObjectCoercible$2;
  436. var $Object$1 = Object;
  437. // `ToObject` abstract operation
  438. // https://tc39.es/ecma262/#sec-toobject
  439. var toObject$4 = function (argument) {
  440. return $Object$1(requireObjectCoercible(argument));
  441. };
  442. var uncurryThis$b = functionUncurryThis;
  443. var toObject$3 = toObject$4;
  444. var hasOwnProperty = uncurryThis$b({}.hasOwnProperty);
  445. // `HasOwnProperty` abstract operation
  446. // https://tc39.es/ecma262/#sec-hasownproperty
  447. // eslint-disable-next-line es/no-object-hasown -- safe
  448. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  449. return hasOwnProperty(toObject$3(it), key);
  450. };
  451. var uncurryThis$a = functionUncurryThis;
  452. var id = 0;
  453. var postfix = Math.random();
  454. var toString$1 = uncurryThis$a(1.0.toString);
  455. var uid$2 = function (key) {
  456. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$1(++id + postfix, 36);
  457. };
  458. var global$5 = global$a;
  459. var shared$2 = shared$3;
  460. var hasOwn$6 = hasOwnProperty_1;
  461. var uid$1 = uid$2;
  462. var NATIVE_SYMBOL = symbolConstructorDetection;
  463. var USE_SYMBOL_AS_UID = useSymbolAsUid;
  464. var Symbol$1 = global$5.Symbol;
  465. var WellKnownSymbolsStore = shared$2('wks');
  466. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
  467. var wellKnownSymbol$6 = function (name) {
  468. if (!hasOwn$6(WellKnownSymbolsStore, name)) {
  469. WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
  470. ? Symbol$1[name]
  471. : createWellKnownSymbol('Symbol.' + name);
  472. } return WellKnownSymbolsStore[name];
  473. };
  474. var call$2 = functionCall;
  475. var isObject$5 = isObject$7;
  476. var isSymbol$1 = isSymbol$2;
  477. var getMethod = getMethod$1;
  478. var ordinaryToPrimitive = ordinaryToPrimitive$1;
  479. var wellKnownSymbol$5 = wellKnownSymbol$6;
  480. var $TypeError$3 = TypeError;
  481. var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
  482. // `ToPrimitive` abstract operation
  483. // https://tc39.es/ecma262/#sec-toprimitive
  484. var toPrimitive$1 = function (input, pref) {
  485. if (!isObject$5(input) || isSymbol$1(input)) return input;
  486. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  487. var result;
  488. if (exoticToPrim) {
  489. if (pref === undefined) pref = 'default';
  490. result = call$2(exoticToPrim, input, pref);
  491. if (!isObject$5(result) || isSymbol$1(result)) return result;
  492. throw new $TypeError$3("Can't convert object to primitive value");
  493. }
  494. if (pref === undefined) pref = 'number';
  495. return ordinaryToPrimitive(input, pref);
  496. };
  497. var toPrimitive = toPrimitive$1;
  498. var isSymbol = isSymbol$2;
  499. // `ToPropertyKey` abstract operation
  500. // https://tc39.es/ecma262/#sec-topropertykey
  501. var toPropertyKey$2 = function (argument) {
  502. var key = toPrimitive(argument, 'string');
  503. return isSymbol(key) ? key : key + '';
  504. };
  505. var global$4 = global$a;
  506. var isObject$4 = isObject$7;
  507. var document$1 = global$4.document;
  508. // typeof document.createElement is 'object' in old IE
  509. var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
  510. var documentCreateElement = function (it) {
  511. return EXISTS$1 ? document$1.createElement(it) : {};
  512. };
  513. var DESCRIPTORS$8 = descriptors;
  514. var fails$8 = fails$d;
  515. var createElement = documentCreateElement;
  516. // Thanks to IE8 for its funny defineProperty
  517. var ie8DomDefine = !DESCRIPTORS$8 && !fails$8(function () {
  518. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  519. return Object.defineProperty(createElement('div'), 'a', {
  520. get: function () { return 7; }
  521. }).a !== 7;
  522. });
  523. var DESCRIPTORS$7 = descriptors;
  524. var call$1 = functionCall;
  525. var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
  526. var createPropertyDescriptor$2 = createPropertyDescriptor$3;
  527. var toIndexedObject$3 = toIndexedObject$4;
  528. var toPropertyKey$1 = toPropertyKey$2;
  529. var hasOwn$5 = hasOwnProperty_1;
  530. var IE8_DOM_DEFINE$1 = ie8DomDefine;
  531. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  532. var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  533. // `Object.getOwnPropertyDescriptor` method
  534. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  535. objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
  536. O = toIndexedObject$3(O);
  537. P = toPropertyKey$1(P);
  538. if (IE8_DOM_DEFINE$1) try {
  539. return $getOwnPropertyDescriptor$1(O, P);
  540. } catch (error) { /* empty */ }
  541. if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
  542. };
  543. var objectDefineProperty = {};
  544. var DESCRIPTORS$6 = descriptors;
  545. var fails$7 = fails$d;
  546. // V8 ~ Chrome 36-
  547. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  548. var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$7(function () {
  549. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  550. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  551. value: 42,
  552. writable: false
  553. }).prototype !== 42;
  554. });
  555. var isObject$3 = isObject$7;
  556. var $String$1 = String;
  557. var $TypeError$2 = TypeError;
  558. // `Assert: Type(argument) is Object`
  559. var anObject$2 = function (argument) {
  560. if (isObject$3(argument)) return argument;
  561. throw new $TypeError$2($String$1(argument) + ' is not an object');
  562. };
  563. var DESCRIPTORS$5 = descriptors;
  564. var IE8_DOM_DEFINE = ie8DomDefine;
  565. var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
  566. var anObject$1 = anObject$2;
  567. var toPropertyKey = toPropertyKey$2;
  568. var $TypeError$1 = TypeError;
  569. // eslint-disable-next-line es/no-object-defineproperty -- safe
  570. var $defineProperty = Object.defineProperty;
  571. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  572. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  573. var ENUMERABLE = 'enumerable';
  574. var CONFIGURABLE$1 = 'configurable';
  575. var WRITABLE = 'writable';
  576. // `Object.defineProperty` method
  577. // https://tc39.es/ecma262/#sec-object.defineproperty
  578. objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
  579. anObject$1(O);
  580. P = toPropertyKey(P);
  581. anObject$1(Attributes);
  582. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  583. var current = $getOwnPropertyDescriptor(O, P);
  584. if (current && current[WRITABLE]) {
  585. O[P] = Attributes.value;
  586. Attributes = {
  587. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  588. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  589. writable: false
  590. };
  591. }
  592. } return $defineProperty(O, P, Attributes);
  593. } : $defineProperty : function defineProperty(O, P, Attributes) {
  594. anObject$1(O);
  595. P = toPropertyKey(P);
  596. anObject$1(Attributes);
  597. if (IE8_DOM_DEFINE) try {
  598. return $defineProperty(O, P, Attributes);
  599. } catch (error) { /* empty */ }
  600. if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$1('Accessors not supported');
  601. if ('value' in Attributes) O[P] = Attributes.value;
  602. return O;
  603. };
  604. var DESCRIPTORS$4 = descriptors;
  605. var definePropertyModule$3 = objectDefineProperty;
  606. var createPropertyDescriptor$1 = createPropertyDescriptor$3;
  607. var createNonEnumerableProperty$2 = DESCRIPTORS$4 ? function (object, key, value) {
  608. return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
  609. } : function (object, key, value) {
  610. object[key] = value;
  611. return object;
  612. };
  613. var makeBuiltIn$2 = {exports: {}};
  614. var DESCRIPTORS$3 = descriptors;
  615. var hasOwn$4 = hasOwnProperty_1;
  616. var FunctionPrototype = Function.prototype;
  617. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  618. var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
  619. var EXISTS = hasOwn$4(FunctionPrototype, 'name');
  620. // additional protection from minified / mangled / dropped function names
  621. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  622. var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype, 'name').configurable));
  623. var functionName = {
  624. EXISTS: EXISTS,
  625. PROPER: PROPER,
  626. CONFIGURABLE: CONFIGURABLE
  627. };
  628. var uncurryThis$9 = functionUncurryThis;
  629. var isCallable$6 = isCallable$c;
  630. var store$1 = sharedStoreExports;
  631. var functionToString = uncurryThis$9(Function.toString);
  632. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  633. if (!isCallable$6(store$1.inspectSource)) {
  634. store$1.inspectSource = function (it) {
  635. return functionToString(it);
  636. };
  637. }
  638. var inspectSource$2 = store$1.inspectSource;
  639. var global$3 = global$a;
  640. var isCallable$5 = isCallable$c;
  641. var WeakMap$1 = global$3.WeakMap;
  642. var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1));
  643. var shared$1 = shared$3;
  644. var uid = uid$2;
  645. var keys = shared$1('keys');
  646. var sharedKey$1 = function (key) {
  647. return keys[key] || (keys[key] = uid(key));
  648. };
  649. var hiddenKeys$3 = {};
  650. var NATIVE_WEAK_MAP = weakMapBasicDetection;
  651. var global$2 = global$a;
  652. var isObject$2 = isObject$7;
  653. var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
  654. var hasOwn$3 = hasOwnProperty_1;
  655. var shared = sharedStoreExports;
  656. var sharedKey = sharedKey$1;
  657. var hiddenKeys$2 = hiddenKeys$3;
  658. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  659. var TypeError$1 = global$2.TypeError;
  660. var WeakMap = global$2.WeakMap;
  661. var set, get, has;
  662. var enforce = function (it) {
  663. return has(it) ? get(it) : set(it, {});
  664. };
  665. var getterFor = function (TYPE) {
  666. return function (it) {
  667. var state;
  668. if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
  669. throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
  670. } return state;
  671. };
  672. };
  673. if (NATIVE_WEAK_MAP || shared.state) {
  674. var store = shared.state || (shared.state = new WeakMap());
  675. /* eslint-disable no-self-assign -- prototype methods protection */
  676. store.get = store.get;
  677. store.has = store.has;
  678. store.set = store.set;
  679. /* eslint-enable no-self-assign -- prototype methods protection */
  680. set = function (it, metadata) {
  681. if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  682. metadata.facade = it;
  683. store.set(it, metadata);
  684. return metadata;
  685. };
  686. get = function (it) {
  687. return store.get(it) || {};
  688. };
  689. has = function (it) {
  690. return store.has(it);
  691. };
  692. } else {
  693. var STATE = sharedKey('state');
  694. hiddenKeys$2[STATE] = true;
  695. set = function (it, metadata) {
  696. if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  697. metadata.facade = it;
  698. createNonEnumerableProperty$1(it, STATE, metadata);
  699. return metadata;
  700. };
  701. get = function (it) {
  702. return hasOwn$3(it, STATE) ? it[STATE] : {};
  703. };
  704. has = function (it) {
  705. return hasOwn$3(it, STATE);
  706. };
  707. }
  708. var internalState = {
  709. set: set,
  710. get: get,
  711. has: has,
  712. enforce: enforce,
  713. getterFor: getterFor
  714. };
  715. var uncurryThis$8 = functionUncurryThis;
  716. var fails$6 = fails$d;
  717. var isCallable$4 = isCallable$c;
  718. var hasOwn$2 = hasOwnProperty_1;
  719. var DESCRIPTORS$2 = descriptors;
  720. var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
  721. var inspectSource$1 = inspectSource$2;
  722. var InternalStateModule = internalState;
  723. var enforceInternalState = InternalStateModule.enforce;
  724. var getInternalState = InternalStateModule.get;
  725. var $String = String;
  726. // eslint-disable-next-line es/no-object-defineproperty -- safe
  727. var defineProperty$1 = Object.defineProperty;
  728. var stringSlice = uncurryThis$8(''.slice);
  729. var replace = uncurryThis$8(''.replace);
  730. var join = uncurryThis$8([].join);
  731. var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$6(function () {
  732. return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  733. });
  734. var TEMPLATE = String(String).split('String');
  735. var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
  736. if (stringSlice($String(name), 0, 7) === 'Symbol(') {
  737. name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
  738. }
  739. if (options && options.getter) name = 'get ' + name;
  740. if (options && options.setter) name = 'set ' + name;
  741. if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  742. if (DESCRIPTORS$2) defineProperty$1(value, 'name', { value: name, configurable: true });
  743. else value.name = name;
  744. }
  745. if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
  746. defineProperty$1(value, 'length', { value: options.arity });
  747. }
  748. try {
  749. if (options && hasOwn$2(options, 'constructor') && options.constructor) {
  750. if (DESCRIPTORS$2) defineProperty$1(value, 'prototype', { writable: false });
  751. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  752. } else if (value.prototype) value.prototype = undefined;
  753. } catch (error) { /* empty */ }
  754. var state = enforceInternalState(value);
  755. if (!hasOwn$2(state, 'source')) {
  756. state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
  757. } return value;
  758. };
  759. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  760. // eslint-disable-next-line no-extend-native -- required
  761. Function.prototype.toString = makeBuiltIn$1(function toString() {
  762. return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this);
  763. }, 'toString');
  764. var makeBuiltInExports = makeBuiltIn$2.exports;
  765. var isCallable$3 = isCallable$c;
  766. var definePropertyModule$2 = objectDefineProperty;
  767. var makeBuiltIn = makeBuiltInExports;
  768. var defineGlobalProperty$1 = defineGlobalProperty$3;
  769. var defineBuiltIn$2 = function (O, key, value, options) {
  770. if (!options) options = {};
  771. var simple = options.enumerable;
  772. var name = options.name !== undefined ? options.name : key;
  773. if (isCallable$3(value)) makeBuiltIn(value, name, options);
  774. if (options.global) {
  775. if (simple) O[key] = value;
  776. else defineGlobalProperty$1(key, value);
  777. } else {
  778. try {
  779. if (!options.unsafe) delete O[key];
  780. else if (O[key]) simple = true;
  781. } catch (error) { /* empty */ }
  782. if (simple) O[key] = value;
  783. else definePropertyModule$2.f(O, key, {
  784. value: value,
  785. enumerable: false,
  786. configurable: !options.nonConfigurable,
  787. writable: !options.nonWritable
  788. });
  789. } return O;
  790. };
  791. var objectGetOwnPropertyNames = {};
  792. var ceil = Math.ceil;
  793. var floor = Math.floor;
  794. // `Math.trunc` method
  795. // https://tc39.es/ecma262/#sec-math.trunc
  796. // eslint-disable-next-line es/no-math-trunc -- safe
  797. var mathTrunc = Math.trunc || function trunc(x) {
  798. var n = +x;
  799. return (n > 0 ? floor : ceil)(n);
  800. };
  801. var trunc = mathTrunc;
  802. // `ToIntegerOrInfinity` abstract operation
  803. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  804. var toIntegerOrInfinity$2 = function (argument) {
  805. var number = +argument;
  806. // eslint-disable-next-line no-self-compare -- NaN check
  807. return number !== number || number === 0 ? 0 : trunc(number);
  808. };
  809. var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
  810. var max = Math.max;
  811. var min$1 = Math.min;
  812. // Helper for a popular repeating case of the spec:
  813. // Let integer be ? ToInteger(index).
  814. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  815. var toAbsoluteIndex$1 = function (index, length) {
  816. var integer = toIntegerOrInfinity$1(index);
  817. return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
  818. };
  819. var toIntegerOrInfinity = toIntegerOrInfinity$2;
  820. var min = Math.min;
  821. // `ToLength` abstract operation
  822. // https://tc39.es/ecma262/#sec-tolength
  823. var toLength$1 = function (argument) {
  824. var len = toIntegerOrInfinity(argument);
  825. return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  826. };
  827. var toLength = toLength$1;
  828. // `LengthOfArrayLike` abstract operation
  829. // https://tc39.es/ecma262/#sec-lengthofarraylike
  830. var lengthOfArrayLike$3 = function (obj) {
  831. return toLength(obj.length);
  832. };
  833. var toIndexedObject$2 = toIndexedObject$4;
  834. var toAbsoluteIndex = toAbsoluteIndex$1;
  835. var lengthOfArrayLike$2 = lengthOfArrayLike$3;
  836. // `Array.prototype.{ indexOf, includes }` methods implementation
  837. var createMethod$1 = function (IS_INCLUDES) {
  838. return function ($this, el, fromIndex) {
  839. var O = toIndexedObject$2($this);
  840. var length = lengthOfArrayLike$2(O);
  841. if (length === 0) return !IS_INCLUDES && -1;
  842. var index = toAbsoluteIndex(fromIndex, length);
  843. var value;
  844. // Array#includes uses SameValueZero equality algorithm
  845. // eslint-disable-next-line no-self-compare -- NaN check
  846. if (IS_INCLUDES && el !== el) while (length > index) {
  847. value = O[index++];
  848. // eslint-disable-next-line no-self-compare -- NaN check
  849. if (value !== value) return true;
  850. // Array#indexOf ignores holes, Array#includes - not
  851. } else for (;length > index; index++) {
  852. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  853. } return !IS_INCLUDES && -1;
  854. };
  855. };
  856. var arrayIncludes = {
  857. // `Array.prototype.includes` method
  858. // https://tc39.es/ecma262/#sec-array.prototype.includes
  859. includes: createMethod$1(true),
  860. // `Array.prototype.indexOf` method
  861. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  862. indexOf: createMethod$1(false)
  863. };
  864. var uncurryThis$7 = functionUncurryThis;
  865. var hasOwn$1 = hasOwnProperty_1;
  866. var toIndexedObject$1 = toIndexedObject$4;
  867. var indexOf = arrayIncludes.indexOf;
  868. var hiddenKeys$1 = hiddenKeys$3;
  869. var push$1 = uncurryThis$7([].push);
  870. var objectKeysInternal = function (object, names) {
  871. var O = toIndexedObject$1(object);
  872. var i = 0;
  873. var result = [];
  874. var key;
  875. for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push$1(result, key);
  876. // Don't enum bug & hidden keys
  877. while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
  878. ~indexOf(result, key) || push$1(result, key);
  879. }
  880. return result;
  881. };
  882. // IE8- don't enum bug keys
  883. var enumBugKeys$2 = [
  884. 'constructor',
  885. 'hasOwnProperty',
  886. 'isPrototypeOf',
  887. 'propertyIsEnumerable',
  888. 'toLocaleString',
  889. 'toString',
  890. 'valueOf'
  891. ];
  892. var internalObjectKeys$1 = objectKeysInternal;
  893. var enumBugKeys$1 = enumBugKeys$2;
  894. var hiddenKeys = enumBugKeys$1.concat('length', 'prototype');
  895. // `Object.getOwnPropertyNames` method
  896. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  897. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  898. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  899. return internalObjectKeys$1(O, hiddenKeys);
  900. };
  901. var objectGetOwnPropertySymbols = {};
  902. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  903. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  904. var getBuiltIn$1 = getBuiltIn$3;
  905. var uncurryThis$6 = functionUncurryThis;
  906. var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
  907. var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
  908. var anObject = anObject$2;
  909. var concat$1 = uncurryThis$6([].concat);
  910. // all object keys, includes non-enumerable and symbols
  911. var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
  912. var keys = getOwnPropertyNamesModule.f(anObject(it));
  913. var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
  914. return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
  915. };
  916. var hasOwn = hasOwnProperty_1;
  917. var ownKeys = ownKeys$1;
  918. var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
  919. var definePropertyModule$1 = objectDefineProperty;
  920. var copyConstructorProperties$1 = function (target, source, exceptions) {
  921. var keys = ownKeys(source);
  922. var defineProperty = definePropertyModule$1.f;
  923. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  924. for (var i = 0; i < keys.length; i++) {
  925. var key = keys[i];
  926. if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
  927. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  928. }
  929. }
  930. };
  931. var fails$5 = fails$d;
  932. var isCallable$2 = isCallable$c;
  933. var replacement = /#|\.prototype\./;
  934. var isForced$1 = function (feature, detection) {
  935. var value = data[normalize(feature)];
  936. return value === POLYFILL ? true
  937. : value === NATIVE ? false
  938. : isCallable$2(detection) ? fails$5(detection)
  939. : !!detection;
  940. };
  941. var normalize = isForced$1.normalize = function (string) {
  942. return String(string).replace(replacement, '.').toLowerCase();
  943. };
  944. var data = isForced$1.data = {};
  945. var NATIVE = isForced$1.NATIVE = 'N';
  946. var POLYFILL = isForced$1.POLYFILL = 'P';
  947. var isForced_1 = isForced$1;
  948. var global$1 = global$a;
  949. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  950. var createNonEnumerableProperty = createNonEnumerableProperty$2;
  951. var defineBuiltIn$1 = defineBuiltIn$2;
  952. var defineGlobalProperty = defineGlobalProperty$3;
  953. var copyConstructorProperties = copyConstructorProperties$1;
  954. var isForced = isForced_1;
  955. /*
  956. options.target - name of the target object
  957. options.global - target is the global object
  958. options.stat - export as static methods of target
  959. options.proto - export as prototype methods of target
  960. options.real - real prototype method for the `pure` version
  961. options.forced - export even if the native feature is available
  962. options.bind - bind methods to the target, required for the `pure` version
  963. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  964. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  965. options.sham - add a flag to not completely full polyfills
  966. options.enumerable - export as enumerable property
  967. options.dontCallGetSet - prevent calling a getter on target
  968. options.name - the .name of the function if it does not match the key
  969. */
  970. var _export = function (options, source) {
  971. var TARGET = options.target;
  972. var GLOBAL = options.global;
  973. var STATIC = options.stat;
  974. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  975. if (GLOBAL) {
  976. target = global$1;
  977. } else if (STATIC) {
  978. target = global$1[TARGET] || defineGlobalProperty(TARGET, {});
  979. } else {
  980. target = global$1[TARGET] && global$1[TARGET].prototype;
  981. }
  982. if (target) for (key in source) {
  983. sourceProperty = source[key];
  984. if (options.dontCallGetSet) {
  985. descriptor = getOwnPropertyDescriptor(target, key);
  986. targetProperty = descriptor && descriptor.value;
  987. } else targetProperty = target[key];
  988. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  989. // contained in target
  990. if (!FORCED && targetProperty !== undefined) {
  991. if (typeof sourceProperty == typeof targetProperty) continue;
  992. copyConstructorProperties(sourceProperty, targetProperty);
  993. }
  994. // add a flag to not completely full polyfills
  995. if (options.sham || (targetProperty && targetProperty.sham)) {
  996. createNonEnumerableProperty(sourceProperty, 'sham', true);
  997. }
  998. defineBuiltIn$1(target, key, sourceProperty, options);
  999. }
  1000. };
  1001. var classof$3 = classofRaw$2;
  1002. // `IsArray` abstract operation
  1003. // https://tc39.es/ecma262/#sec-isarray
  1004. // eslint-disable-next-line es/no-array-isarray -- safe
  1005. var isArray$2 = Array.isArray || function isArray(argument) {
  1006. return classof$3(argument) === 'Array';
  1007. };
  1008. var $TypeError = TypeError;
  1009. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
  1010. var doesNotExceedSafeInteger$1 = function (it) {
  1011. if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
  1012. return it;
  1013. };
  1014. var DESCRIPTORS$1 = descriptors;
  1015. var definePropertyModule = objectDefineProperty;
  1016. var createPropertyDescriptor = createPropertyDescriptor$3;
  1017. var createProperty$1 = function (object, key, value) {
  1018. if (DESCRIPTORS$1) definePropertyModule.f(object, key, createPropertyDescriptor(0, value));
  1019. else object[key] = value;
  1020. };
  1021. var wellKnownSymbol$4 = wellKnownSymbol$6;
  1022. var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag');
  1023. var test = {};
  1024. test[TO_STRING_TAG$1] = 'z';
  1025. var toStringTagSupport = String(test) === '[object z]';
  1026. var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
  1027. var isCallable$1 = isCallable$c;
  1028. var classofRaw$1 = classofRaw$2;
  1029. var wellKnownSymbol$3 = wellKnownSymbol$6;
  1030. var TO_STRING_TAG = wellKnownSymbol$3('toStringTag');
  1031. var $Object = Object;
  1032. // ES3 wrong here
  1033. var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
  1034. // fallback for IE11 Script Access Denied error
  1035. var tryGet = function (it, key) {
  1036. try {
  1037. return it[key];
  1038. } catch (error) { /* empty */ }
  1039. };
  1040. // getting tag from ES6+ `Object.prototype.toString`
  1041. var classof$2 = TO_STRING_TAG_SUPPORT$2 ? classofRaw$1 : function (it) {
  1042. var O, tag, result;
  1043. return it === undefined ? 'Undefined' : it === null ? 'Null'
  1044. // @@toStringTag case
  1045. : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
  1046. // builtinTag case
  1047. : CORRECT_ARGUMENTS ? classofRaw$1(O)
  1048. // ES3 arguments fallback
  1049. : (result = classofRaw$1(O)) === 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
  1050. };
  1051. var uncurryThis$5 = functionUncurryThis;
  1052. var fails$4 = fails$d;
  1053. var isCallable = isCallable$c;
  1054. var classof$1 = classof$2;
  1055. var getBuiltIn = getBuiltIn$3;
  1056. var inspectSource = inspectSource$2;
  1057. var noop = function () { /* empty */ };
  1058. var construct = getBuiltIn('Reflect', 'construct');
  1059. var constructorRegExp = /^\s*(?:class|function)\b/;
  1060. var exec = uncurryThis$5(constructorRegExp.exec);
  1061. var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
  1062. var isConstructorModern = function isConstructor(argument) {
  1063. if (!isCallable(argument)) return false;
  1064. try {
  1065. construct(noop, [], argument);
  1066. return true;
  1067. } catch (error) {
  1068. return false;
  1069. }
  1070. };
  1071. var isConstructorLegacy = function isConstructor(argument) {
  1072. if (!isCallable(argument)) return false;
  1073. switch (classof$1(argument)) {
  1074. case 'AsyncFunction':
  1075. case 'GeneratorFunction':
  1076. case 'AsyncGeneratorFunction': return false;
  1077. }
  1078. try {
  1079. // we can't check .prototype since constructors produced by .bind haven't it
  1080. // `Function#toString` throws on some built-it function in some legacy engines
  1081. // (for example, `DOMQuad` and similar in FF41-)
  1082. return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
  1083. } catch (error) {
  1084. return true;
  1085. }
  1086. };
  1087. isConstructorLegacy.sham = true;
  1088. // `IsConstructor` abstract operation
  1089. // https://tc39.es/ecma262/#sec-isconstructor
  1090. var isConstructor$1 = !construct || fails$4(function () {
  1091. var called;
  1092. return isConstructorModern(isConstructorModern.call)
  1093. || !isConstructorModern(Object)
  1094. || !isConstructorModern(function () { called = true; })
  1095. || called;
  1096. }) ? isConstructorLegacy : isConstructorModern;
  1097. var isArray$1 = isArray$2;
  1098. var isConstructor = isConstructor$1;
  1099. var isObject$1 = isObject$7;
  1100. var wellKnownSymbol$2 = wellKnownSymbol$6;
  1101. var SPECIES$1 = wellKnownSymbol$2('species');
  1102. var $Array = Array;
  1103. // a part of `ArraySpeciesCreate` abstract operation
  1104. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1105. var arraySpeciesConstructor$1 = function (originalArray) {
  1106. var C;
  1107. if (isArray$1(originalArray)) {
  1108. C = originalArray.constructor;
  1109. // cross-realm fallback
  1110. if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined;
  1111. else if (isObject$1(C)) {
  1112. C = C[SPECIES$1];
  1113. if (C === null) C = undefined;
  1114. }
  1115. } return C === undefined ? $Array : C;
  1116. };
  1117. var arraySpeciesConstructor = arraySpeciesConstructor$1;
  1118. // `ArraySpeciesCreate` abstract operation
  1119. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1120. var arraySpeciesCreate$2 = function (originalArray, length) {
  1121. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1122. };
  1123. var fails$3 = fails$d;
  1124. var wellKnownSymbol$1 = wellKnownSymbol$6;
  1125. var V8_VERSION$1 = engineV8Version;
  1126. var SPECIES = wellKnownSymbol$1('species');
  1127. var arrayMethodHasSpeciesSupport$2 = function (METHOD_NAME) {
  1128. // We can't use this feature detection in V8 since it causes
  1129. // deoptimization and serious performance degradation
  1130. // https://github.com/zloirock/core-js/issues/677
  1131. return V8_VERSION$1 >= 51 || !fails$3(function () {
  1132. var array = [];
  1133. var constructor = array.constructor = {};
  1134. constructor[SPECIES] = function () {
  1135. return { foo: 1 };
  1136. };
  1137. return array[METHOD_NAME](Boolean).foo !== 1;
  1138. });
  1139. };
  1140. var $$3 = _export;
  1141. var fails$2 = fails$d;
  1142. var isArray = isArray$2;
  1143. var isObject = isObject$7;
  1144. var toObject$2 = toObject$4;
  1145. var lengthOfArrayLike$1 = lengthOfArrayLike$3;
  1146. var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
  1147. var createProperty = createProperty$1;
  1148. var arraySpeciesCreate$1 = arraySpeciesCreate$2;
  1149. var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$2;
  1150. var wellKnownSymbol = wellKnownSymbol$6;
  1151. var V8_VERSION = engineV8Version;
  1152. var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
  1153. // We can't use this feature detection in V8 since it causes
  1154. // deoptimization and serious performance degradation
  1155. // https://github.com/zloirock/core-js/issues/679
  1156. var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$2(function () {
  1157. var array = [];
  1158. array[IS_CONCAT_SPREADABLE] = false;
  1159. return array.concat()[0] !== array;
  1160. });
  1161. var isConcatSpreadable = function (O) {
  1162. if (!isObject(O)) return false;
  1163. var spreadable = O[IS_CONCAT_SPREADABLE];
  1164. return spreadable !== undefined ? !!spreadable : isArray(O);
  1165. };
  1166. var FORCED$1 = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport$1('concat');
  1167. // `Array.prototype.concat` method
  1168. // https://tc39.es/ecma262/#sec-array.prototype.concat
  1169. // with adding support of @@isConcatSpreadable and @@species
  1170. $$3({ target: 'Array', proto: true, arity: 1, forced: FORCED$1 }, {
  1171. // eslint-disable-next-line no-unused-vars -- required for `.length`
  1172. concat: function concat(arg) {
  1173. var O = toObject$2(this);
  1174. var A = arraySpeciesCreate$1(O, 0);
  1175. var n = 0;
  1176. var i, k, length, len, E;
  1177. for (i = -1, length = arguments.length; i < length; i++) {
  1178. E = i === -1 ? O : arguments[i];
  1179. if (isConcatSpreadable(E)) {
  1180. len = lengthOfArrayLike$1(E);
  1181. doesNotExceedSafeInteger(n + len);
  1182. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  1183. } else {
  1184. doesNotExceedSafeInteger(n + 1);
  1185. createProperty(A, n++, E);
  1186. }
  1187. }
  1188. A.length = n;
  1189. return A;
  1190. }
  1191. });
  1192. var classofRaw = classofRaw$2;
  1193. var uncurryThis$4 = functionUncurryThis;
  1194. var functionUncurryThisClause = function (fn) {
  1195. // Nashorn bug:
  1196. // https://github.com/zloirock/core-js/issues/1128
  1197. // https://github.com/zloirock/core-js/issues/1130
  1198. if (classofRaw(fn) === 'Function') return uncurryThis$4(fn);
  1199. };
  1200. var uncurryThis$3 = functionUncurryThisClause;
  1201. var aCallable = aCallable$2;
  1202. var NATIVE_BIND = functionBindNative;
  1203. var bind$1 = uncurryThis$3(uncurryThis$3.bind);
  1204. // optional / simple context binding
  1205. var functionBindContext = function (fn, that) {
  1206. aCallable(fn);
  1207. return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
  1208. return fn.apply(that, arguments);
  1209. };
  1210. };
  1211. var bind = functionBindContext;
  1212. var uncurryThis$2 = functionUncurryThis;
  1213. var IndexedObject$2 = indexedObject;
  1214. var toObject$1 = toObject$4;
  1215. var lengthOfArrayLike = lengthOfArrayLike$3;
  1216. var arraySpeciesCreate = arraySpeciesCreate$2;
  1217. var push = uncurryThis$2([].push);
  1218. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  1219. var createMethod = function (TYPE) {
  1220. var IS_MAP = TYPE === 1;
  1221. var IS_FILTER = TYPE === 2;
  1222. var IS_SOME = TYPE === 3;
  1223. var IS_EVERY = TYPE === 4;
  1224. var IS_FIND_INDEX = TYPE === 6;
  1225. var IS_FILTER_REJECT = TYPE === 7;
  1226. var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
  1227. return function ($this, callbackfn, that, specificCreate) {
  1228. var O = toObject$1($this);
  1229. var self = IndexedObject$2(O);
  1230. var length = lengthOfArrayLike(self);
  1231. var boundFunction = bind(callbackfn, that);
  1232. var index = 0;
  1233. var create = specificCreate || arraySpeciesCreate;
  1234. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  1235. var value, result;
  1236. for (;length > index; index++) if (NO_HOLES || index in self) {
  1237. value = self[index];
  1238. result = boundFunction(value, index, O);
  1239. if (TYPE) {
  1240. if (IS_MAP) target[index] = result; // map
  1241. else if (result) switch (TYPE) {
  1242. case 3: return true; // some
  1243. case 5: return value; // find
  1244. case 6: return index; // findIndex
  1245. case 2: push(target, value); // filter
  1246. } else switch (TYPE) {
  1247. case 4: return false; // every
  1248. case 7: push(target, value); // filterReject
  1249. }
  1250. }
  1251. }
  1252. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  1253. };
  1254. };
  1255. var arrayIteration = {
  1256. // `Array.prototype.forEach` method
  1257. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1258. forEach: createMethod(0),
  1259. // `Array.prototype.map` method
  1260. // https://tc39.es/ecma262/#sec-array.prototype.map
  1261. map: createMethod(1),
  1262. // `Array.prototype.filter` method
  1263. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1264. filter: createMethod(2),
  1265. // `Array.prototype.some` method
  1266. // https://tc39.es/ecma262/#sec-array.prototype.some
  1267. some: createMethod(3),
  1268. // `Array.prototype.every` method
  1269. // https://tc39.es/ecma262/#sec-array.prototype.every
  1270. every: createMethod(4),
  1271. // `Array.prototype.find` method
  1272. // https://tc39.es/ecma262/#sec-array.prototype.find
  1273. find: createMethod(5),
  1274. // `Array.prototype.findIndex` method
  1275. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  1276. findIndex: createMethod(6),
  1277. // `Array.prototype.filterReject` method
  1278. // https://github.com/tc39/proposal-array-filtering
  1279. filterReject: createMethod(7)
  1280. };
  1281. var $$2 = _export;
  1282. var $filter = arrayIteration.filter;
  1283. var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$2;
  1284. var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
  1285. // `Array.prototype.filter` method
  1286. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1287. // with adding support of @@species
  1288. $$2({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
  1289. filter: function filter(callbackfn /* , thisArg */) {
  1290. return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1291. }
  1292. });
  1293. var fails$1 = fails$d;
  1294. var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
  1295. var method = [][METHOD_NAME];
  1296. return !!method && fails$1(function () {
  1297. // eslint-disable-next-line no-useless-call -- required for testing
  1298. method.call(null, argument || function () { return 1; }, 1);
  1299. });
  1300. };
  1301. var $$1 = _export;
  1302. var uncurryThis$1 = functionUncurryThis;
  1303. var IndexedObject$1 = indexedObject;
  1304. var toIndexedObject = toIndexedObject$4;
  1305. var arrayMethodIsStrict = arrayMethodIsStrict$1;
  1306. var nativeJoin = uncurryThis$1([].join);
  1307. var ES3_STRINGS = IndexedObject$1 !== Object;
  1308. var FORCED = ES3_STRINGS || !arrayMethodIsStrict('join', ',');
  1309. // `Array.prototype.join` method
  1310. // https://tc39.es/ecma262/#sec-array.prototype.join
  1311. $$1({ target: 'Array', proto: true, forced: FORCED }, {
  1312. join: function join(separator) {
  1313. return nativeJoin(toIndexedObject(this), separator === undefined ? ',' : separator);
  1314. }
  1315. });
  1316. var internalObjectKeys = objectKeysInternal;
  1317. var enumBugKeys = enumBugKeys$2;
  1318. // `Object.keys` method
  1319. // https://tc39.es/ecma262/#sec-object.keys
  1320. // eslint-disable-next-line es/no-object-keys -- safe
  1321. var objectKeys$1 = Object.keys || function keys(O) {
  1322. return internalObjectKeys(O, enumBugKeys);
  1323. };
  1324. var DESCRIPTORS = descriptors;
  1325. var uncurryThis = functionUncurryThis;
  1326. var call = functionCall;
  1327. var fails = fails$d;
  1328. var objectKeys = objectKeys$1;
  1329. var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
  1330. var propertyIsEnumerableModule = objectPropertyIsEnumerable;
  1331. var toObject = toObject$4;
  1332. var IndexedObject = indexedObject;
  1333. // eslint-disable-next-line es/no-object-assign -- safe
  1334. var $assign = Object.assign;
  1335. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  1336. var defineProperty = Object.defineProperty;
  1337. var concat = uncurryThis([].concat);
  1338. // `Object.assign` method
  1339. // https://tc39.es/ecma262/#sec-object.assign
  1340. var objectAssign = !$assign || fails(function () {
  1341. // should have correct order of operations (Edge bug)
  1342. if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
  1343. enumerable: true,
  1344. get: function () {
  1345. defineProperty(this, 'b', {
  1346. value: 3,
  1347. enumerable: false
  1348. });
  1349. }
  1350. }), { b: 2 })).b !== 1) return true;
  1351. // should work with symbols and should have deterministic property order (V8 bug)
  1352. var A = {};
  1353. var B = {};
  1354. // eslint-disable-next-line es/no-symbol -- safe
  1355. var symbol = Symbol('assign detection');
  1356. var alphabet = 'abcdefghijklmnopqrst';
  1357. A[symbol] = 7;
  1358. alphabet.split('').forEach(function (chr) { B[chr] = chr; });
  1359. return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
  1360. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
  1361. var T = toObject(target);
  1362. var argumentsLength = arguments.length;
  1363. var index = 1;
  1364. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  1365. var propertyIsEnumerable = propertyIsEnumerableModule.f;
  1366. while (argumentsLength > index) {
  1367. var S = IndexedObject(arguments[index++]);
  1368. var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
  1369. var length = keys.length;
  1370. var j = 0;
  1371. var key;
  1372. while (length > j) {
  1373. key = keys[j++];
  1374. if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
  1375. }
  1376. } return T;
  1377. } : $assign;
  1378. var $ = _export;
  1379. var assign = objectAssign;
  1380. // `Object.assign` method
  1381. // https://tc39.es/ecma262/#sec-object.assign
  1382. // eslint-disable-next-line es/no-object-assign -- required for testing
  1383. $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
  1384. assign: assign
  1385. });
  1386. var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
  1387. var classof = classof$2;
  1388. // `Object.prototype.toString` method implementation
  1389. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1390. var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
  1391. return '[object ' + classof(this) + ']';
  1392. };
  1393. var TO_STRING_TAG_SUPPORT = toStringTagSupport;
  1394. var defineBuiltIn = defineBuiltIn$2;
  1395. var toString = objectToString;
  1396. // `Object.prototype.toString` method
  1397. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1398. if (!TO_STRING_TAG_SUPPORT) {
  1399. defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });
  1400. }
  1401. /**
  1402. * @author: YL
  1403. * @update: zhixin wen <wenzhixin2010@gmail.com>
  1404. */
  1405. var Utils = $$4.fn.bootstrapTable.utils;
  1406. Object.assign($$4.fn.bootstrapTable.defaults, {
  1407. treeEnable: false,
  1408. treeShowField: null,
  1409. idField: 'id',
  1410. parentIdField: 'pid',
  1411. rootParentId: null
  1412. });
  1413. $$4.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  1414. _inherits(_class, _$$BootstrapTable);
  1415. function _class() {
  1416. _classCallCheck(this, _class);
  1417. return _callSuper(this, _class, arguments);
  1418. }
  1419. _createClass(_class, [{
  1420. key: "init",
  1421. value: function init() {
  1422. var _get2;
  1423. this._rowStyle = this.options.rowStyle;
  1424. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  1425. args[_key] = arguments[_key];
  1426. }
  1427. (_get2 = _get(_getPrototypeOf(_class.prototype), "init", this)).call.apply(_get2, [this].concat(args));
  1428. }
  1429. }, {
  1430. key: "initHeader",
  1431. value: function initHeader() {
  1432. var _get3;
  1433. for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  1434. args[_key2] = arguments[_key2];
  1435. }
  1436. (_get3 = _get(_getPrototypeOf(_class.prototype), "initHeader", this)).call.apply(_get3, [this].concat(args));
  1437. var treeShowField = this.options.treeShowField;
  1438. if (treeShowField) {
  1439. var _iterator = _createForOfIteratorHelper(this.header.fields),
  1440. _step;
  1441. try {
  1442. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  1443. var field = _step.value;
  1444. if (treeShowField === field) {
  1445. this.treeEnable = true;
  1446. break;
  1447. }
  1448. }
  1449. } catch (err) {
  1450. _iterator.e(err);
  1451. } finally {
  1452. _iterator.f();
  1453. }
  1454. }
  1455. }
  1456. }, {
  1457. key: "initBody",
  1458. value: function initBody() {
  1459. var _get4;
  1460. if (this.treeEnable) {
  1461. this.options.virtualScroll = false;
  1462. }
  1463. for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  1464. args[_key3] = arguments[_key3];
  1465. }
  1466. (_get4 = _get(_getPrototypeOf(_class.prototype), "initBody", this)).call.apply(_get4, [this].concat(args));
  1467. }
  1468. }, {
  1469. key: "initTr",
  1470. value: function initTr(item, idx, data, parentDom) {
  1471. var _this = this;
  1472. var nodes = data.filter(function (it) {
  1473. return item[_this.options.idField] === it[_this.options.parentIdField];
  1474. });
  1475. parentDom.append(_get(_getPrototypeOf(_class.prototype), "initRow", this).call(this, item, idx, data, parentDom));
  1476. // init sub node
  1477. var len = nodes.length - 1;
  1478. for (var i = 0; i <= len; i++) {
  1479. var node = nodes[i];
  1480. var defaultItem = Utils.extend(true, {}, item);
  1481. node._level = defaultItem._level + 1;
  1482. node._parent = defaultItem;
  1483. if (i === len) {
  1484. node._last = 1;
  1485. }
  1486. // jquery.treegrid.js
  1487. this.options.rowStyle = function (item, idx) {
  1488. var res = _this._rowStyle(item, idx);
  1489. var id = item[_this.options.idField] ? item[_this.options.idField] : 0;
  1490. var pid = item[_this.options.parentIdField] ? item[_this.options.parentIdField] : 0;
  1491. res.classes = [res.classes || '', "treegrid-".concat(id), "treegrid-parent-".concat(pid)].join(' ');
  1492. return res;
  1493. };
  1494. this.initTr(node, $$4.inArray(node, data), data, parentDom);
  1495. }
  1496. }
  1497. }, {
  1498. key: "initRow",
  1499. value: function initRow(item, idx, data, parentDom) {
  1500. var _this2 = this;
  1501. if (this.treeEnable) {
  1502. if (this.options.rootParentId === item[this.options.parentIdField] || !item[this.options.parentIdField]) {
  1503. if (item._level === undefined) {
  1504. item._level = 0;
  1505. }
  1506. // jquery.treegrid.js
  1507. this.options.rowStyle = function (item, idx) {
  1508. var res = _this2._rowStyle(item, idx);
  1509. var x = item[_this2.options.idField] ? item[_this2.options.idField] : 0;
  1510. res.classes = [res.classes || '', "treegrid-".concat(x)].join(' ');
  1511. return res;
  1512. };
  1513. this.initTr(item, idx, data, parentDom);
  1514. return true;
  1515. }
  1516. return false;
  1517. }
  1518. return _get(_getPrototypeOf(_class.prototype), "initRow", this).call(this, item, idx, data, parentDom);
  1519. }
  1520. }, {
  1521. key: "destroy",
  1522. value: function destroy() {
  1523. var _get5;
  1524. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  1525. args[_key4] = arguments[_key4];
  1526. }
  1527. (_get5 = _get(_getPrototypeOf(_class.prototype), "destroy", this)).call.apply(_get5, [this].concat(args));
  1528. this.options.rowStyle = this._rowStyle;
  1529. }
  1530. }]);
  1531. return _class;
  1532. }($$4.BootstrapTable);
  1533. }));