bootstrap-table-group-by.js 81 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356
  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 ($$7) { '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 : i + "";
  30. }
  31. function _typeof(o) {
  32. "@babel/helpers - typeof";
  33. return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
  34. return typeof o;
  35. } : function (o) {
  36. return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
  37. }, _typeof(o);
  38. }
  39. function _classCallCheck(instance, Constructor) {
  40. if (!(instance instanceof Constructor)) {
  41. throw new TypeError("Cannot call a class as a function");
  42. }
  43. }
  44. function _defineProperties(target, props) {
  45. for (var i = 0; i < props.length; i++) {
  46. var descriptor = props[i];
  47. descriptor.enumerable = descriptor.enumerable || false;
  48. descriptor.configurable = true;
  49. if ("value" in descriptor) descriptor.writable = true;
  50. Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
  51. }
  52. }
  53. function _createClass(Constructor, protoProps, staticProps) {
  54. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  55. if (staticProps) _defineProperties(Constructor, staticProps);
  56. Object.defineProperty(Constructor, "prototype", {
  57. writable: false
  58. });
  59. return Constructor;
  60. }
  61. function _inherits(subClass, superClass) {
  62. if (typeof superClass !== "function" && superClass !== null) {
  63. throw new TypeError("Super expression must either be null or a function");
  64. }
  65. subClass.prototype = Object.create(superClass && superClass.prototype, {
  66. constructor: {
  67. value: subClass,
  68. writable: true,
  69. configurable: true
  70. }
  71. });
  72. Object.defineProperty(subClass, "prototype", {
  73. writable: false
  74. });
  75. if (superClass) _setPrototypeOf(subClass, superClass);
  76. }
  77. function _getPrototypeOf(o) {
  78. _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
  79. return o.__proto__ || Object.getPrototypeOf(o);
  80. };
  81. return _getPrototypeOf(o);
  82. }
  83. function _setPrototypeOf(o, p) {
  84. _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  85. o.__proto__ = p;
  86. return o;
  87. };
  88. return _setPrototypeOf(o, p);
  89. }
  90. function _assertThisInitialized(self) {
  91. if (self === void 0) {
  92. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  93. }
  94. return self;
  95. }
  96. function _possibleConstructorReturn(self, call) {
  97. if (call && (typeof call === "object" || typeof call === "function")) {
  98. return call;
  99. } else if (call !== void 0) {
  100. throw new TypeError("Derived constructors may only return object or undefined");
  101. }
  102. return _assertThisInitialized(self);
  103. }
  104. function _superPropBase(object, property) {
  105. while (!Object.prototype.hasOwnProperty.call(object, property)) {
  106. object = _getPrototypeOf(object);
  107. if (object === null) break;
  108. }
  109. return object;
  110. }
  111. function _get() {
  112. if (typeof Reflect !== "undefined" && Reflect.get) {
  113. _get = Reflect.get.bind();
  114. } else {
  115. _get = function _get(target, property, receiver) {
  116. var base = _superPropBase(target, property);
  117. if (!base) return;
  118. var desc = Object.getOwnPropertyDescriptor(base, property);
  119. if (desc.get) {
  120. return desc.get.call(arguments.length < 3 ? target : receiver);
  121. }
  122. return desc.value;
  123. };
  124. }
  125. return _get.apply(this, arguments);
  126. }
  127. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  128. var check = function (it) {
  129. return it && it.Math === Math && it;
  130. };
  131. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  132. var global$b =
  133. // eslint-disable-next-line es/no-global-this -- safe
  134. check(typeof globalThis == 'object' && globalThis) ||
  135. check(typeof window == 'object' && window) ||
  136. // eslint-disable-next-line no-restricted-globals -- safe
  137. check(typeof self == 'object' && self) ||
  138. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  139. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  140. // eslint-disable-next-line no-new-func -- fallback
  141. (function () { return this; })() || Function('return this')();
  142. var objectGetOwnPropertyDescriptor = {};
  143. var fails$e = function (exec) {
  144. try {
  145. return !!exec();
  146. } catch (error) {
  147. return true;
  148. }
  149. };
  150. var fails$d = fails$e;
  151. // Detect IE8's incomplete defineProperty implementation
  152. var descriptors = !fails$d(function () {
  153. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  154. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
  155. });
  156. var fails$c = fails$e;
  157. var functionBindNative = !fails$c(function () {
  158. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  159. var test = (function () { /* empty */ }).bind();
  160. // eslint-disable-next-line no-prototype-builtins -- safe
  161. return typeof test != 'function' || test.hasOwnProperty('prototype');
  162. });
  163. var NATIVE_BIND$2 = functionBindNative;
  164. var call$5 = Function.prototype.call;
  165. var functionCall = NATIVE_BIND$2 ? call$5.bind(call$5) : function () {
  166. return call$5.apply(call$5, arguments);
  167. };
  168. var objectPropertyIsEnumerable = {};
  169. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  170. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  171. var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  172. // Nashorn ~ JDK8 bug
  173. var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  174. // `Object.prototype.propertyIsEnumerable` method implementation
  175. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  176. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  177. var descriptor = getOwnPropertyDescriptor$1(this, V);
  178. return !!descriptor && descriptor.enumerable;
  179. } : $propertyIsEnumerable;
  180. var createPropertyDescriptor$3 = function (bitmap, value) {
  181. return {
  182. enumerable: !(bitmap & 1),
  183. configurable: !(bitmap & 2),
  184. writable: !(bitmap & 4),
  185. value: value
  186. };
  187. };
  188. var NATIVE_BIND$1 = functionBindNative;
  189. var FunctionPrototype$2 = Function.prototype;
  190. var call$4 = FunctionPrototype$2.call;
  191. var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$2.bind.bind(call$4, call$4);
  192. var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
  193. return function () {
  194. return call$4.apply(fn, arguments);
  195. };
  196. };
  197. var uncurryThis$h = functionUncurryThis;
  198. var toString$4 = uncurryThis$h({}.toString);
  199. var stringSlice$1 = uncurryThis$h(''.slice);
  200. var classofRaw$2 = function (it) {
  201. return stringSlice$1(toString$4(it), 8, -1);
  202. };
  203. var uncurryThis$g = functionUncurryThis;
  204. var fails$b = fails$e;
  205. var classof$5 = classofRaw$2;
  206. var $Object$3 = Object;
  207. var split = uncurryThis$g(''.split);
  208. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  209. var indexedObject = fails$b(function () {
  210. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  211. // eslint-disable-next-line no-prototype-builtins -- safe
  212. return !$Object$3('z').propertyIsEnumerable(0);
  213. }) ? function (it) {
  214. return classof$5(it) === 'String' ? split(it, '') : $Object$3(it);
  215. } : $Object$3;
  216. // we can't use just `it == null` since of `document.all` special case
  217. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  218. var isNullOrUndefined$2 = function (it) {
  219. return it === null || it === undefined;
  220. };
  221. var isNullOrUndefined$1 = isNullOrUndefined$2;
  222. var $TypeError$7 = TypeError;
  223. // `RequireObjectCoercible` abstract operation
  224. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  225. var requireObjectCoercible$2 = function (it) {
  226. if (isNullOrUndefined$1(it)) throw new $TypeError$7("Can't call method on " + it);
  227. return it;
  228. };
  229. // toObject with fallback for non-array-like ES3 strings
  230. var IndexedObject$3 = indexedObject;
  231. var requireObjectCoercible$1 = requireObjectCoercible$2;
  232. var toIndexedObject$6 = function (it) {
  233. return IndexedObject$3(requireObjectCoercible$1(it));
  234. };
  235. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  236. var documentAll = typeof document == 'object' && document.all;
  237. // `IsCallable` abstract operation
  238. // https://tc39.es/ecma262/#sec-iscallable
  239. // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
  240. var isCallable$c = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
  241. return typeof argument == 'function' || argument === documentAll;
  242. } : function (argument) {
  243. return typeof argument == 'function';
  244. };
  245. var isCallable$b = isCallable$c;
  246. var isObject$8 = function (it) {
  247. return typeof it == 'object' ? it !== null : isCallable$b(it);
  248. };
  249. var global$a = global$b;
  250. var isCallable$a = isCallable$c;
  251. var aFunction = function (argument) {
  252. return isCallable$a(argument) ? argument : undefined;
  253. };
  254. var getBuiltIn$4 = function (namespace, method) {
  255. return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method];
  256. };
  257. var uncurryThis$f = functionUncurryThis;
  258. var objectIsPrototypeOf = uncurryThis$f({}.isPrototypeOf);
  259. var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
  260. var global$9 = global$b;
  261. var userAgent$2 = engineUserAgent;
  262. var process = global$9.process;
  263. var Deno = global$9.Deno;
  264. var versions = process && process.versions || Deno && Deno.version;
  265. var v8 = versions && versions.v8;
  266. var match, version;
  267. if (v8) {
  268. match = v8.split('.');
  269. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  270. // but their correct versions are not interesting for us
  271. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  272. }
  273. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  274. // so check `userAgent` even if `.v8` exists, but 0
  275. if (!version && userAgent$2) {
  276. match = userAgent$2.match(/Edge\/(\d+)/);
  277. if (!match || match[1] >= 74) {
  278. match = userAgent$2.match(/Chrome\/(\d+)/);
  279. if (match) version = +match[1];
  280. }
  281. }
  282. var engineV8Version = version;
  283. /* eslint-disable es/no-symbol -- required for testing */
  284. var V8_VERSION$2 = engineV8Version;
  285. var fails$a = fails$e;
  286. var global$8 = global$b;
  287. var $String$4 = global$8.String;
  288. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  289. var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$a(function () {
  290. var symbol = Symbol('symbol detection');
  291. // Chrome 38 Symbol has incorrect toString conversion
  292. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  293. // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
  294. // of course, fail.
  295. return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
  296. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  297. !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
  298. });
  299. /* eslint-disable es/no-symbol -- required for testing */
  300. var NATIVE_SYMBOL$1 = symbolConstructorDetection;
  301. var useSymbolAsUid = NATIVE_SYMBOL$1
  302. && !Symbol.sham
  303. && typeof Symbol.iterator == 'symbol';
  304. var getBuiltIn$3 = getBuiltIn$4;
  305. var isCallable$9 = isCallable$c;
  306. var isPrototypeOf = objectIsPrototypeOf;
  307. var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
  308. var $Object$2 = Object;
  309. var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
  310. return typeof it == 'symbol';
  311. } : function (it) {
  312. var $Symbol = getBuiltIn$3('Symbol');
  313. return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
  314. };
  315. var $String$3 = String;
  316. var tryToString$2 = function (argument) {
  317. try {
  318. return $String$3(argument);
  319. } catch (error) {
  320. return 'Object';
  321. }
  322. };
  323. var isCallable$8 = isCallable$c;
  324. var tryToString$1 = tryToString$2;
  325. var $TypeError$6 = TypeError;
  326. // `Assert: IsCallable(argument) is true`
  327. var aCallable$3 = function (argument) {
  328. if (isCallable$8(argument)) return argument;
  329. throw new $TypeError$6(tryToString$1(argument) + ' is not a function');
  330. };
  331. var aCallable$2 = aCallable$3;
  332. var isNullOrUndefined = isNullOrUndefined$2;
  333. // `GetMethod` abstract operation
  334. // https://tc39.es/ecma262/#sec-getmethod
  335. var getMethod$1 = function (V, P) {
  336. var func = V[P];
  337. return isNullOrUndefined(func) ? undefined : aCallable$2(func);
  338. };
  339. var call$3 = functionCall;
  340. var isCallable$7 = isCallable$c;
  341. var isObject$7 = isObject$8;
  342. var $TypeError$5 = TypeError;
  343. // `OrdinaryToPrimitive` abstract operation
  344. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  345. var ordinaryToPrimitive$1 = function (input, pref) {
  346. var fn, val;
  347. if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$7(val = call$3(fn, input))) return val;
  348. if (isCallable$7(fn = input.valueOf) && !isObject$7(val = call$3(fn, input))) return val;
  349. if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$7(val = call$3(fn, input))) return val;
  350. throw new $TypeError$5("Can't convert object to primitive value");
  351. };
  352. var sharedStore = {exports: {}};
  353. var global$7 = global$b;
  354. // eslint-disable-next-line es/no-object-defineproperty -- safe
  355. var defineProperty$4 = Object.defineProperty;
  356. var defineGlobalProperty$3 = function (key, value) {
  357. try {
  358. defineProperty$4(global$7, key, { value: value, configurable: true, writable: true });
  359. } catch (error) {
  360. global$7[key] = value;
  361. } return value;
  362. };
  363. var globalThis$1 = global$b;
  364. var defineGlobalProperty$2 = defineGlobalProperty$3;
  365. var SHARED = '__core-js_shared__';
  366. var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
  367. (store$3.versions || (store$3.versions = [])).push({
  368. version: '3.36.1',
  369. mode: 'global',
  370. copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
  371. license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
  372. source: 'https://github.com/zloirock/core-js'
  373. });
  374. var sharedStoreExports = sharedStore.exports;
  375. var store$2 = sharedStoreExports;
  376. var shared$3 = function (key, value) {
  377. return store$2[key] || (store$2[key] = value || {});
  378. };
  379. var requireObjectCoercible = requireObjectCoercible$2;
  380. var $Object$1 = Object;
  381. // `ToObject` abstract operation
  382. // https://tc39.es/ecma262/#sec-toobject
  383. var toObject$5 = function (argument) {
  384. return $Object$1(requireObjectCoercible(argument));
  385. };
  386. var uncurryThis$e = functionUncurryThis;
  387. var toObject$4 = toObject$5;
  388. var hasOwnProperty = uncurryThis$e({}.hasOwnProperty);
  389. // `HasOwnProperty` abstract operation
  390. // https://tc39.es/ecma262/#sec-hasownproperty
  391. // eslint-disable-next-line es/no-object-hasown -- safe
  392. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  393. return hasOwnProperty(toObject$4(it), key);
  394. };
  395. var uncurryThis$d = functionUncurryThis;
  396. var id = 0;
  397. var postfix = Math.random();
  398. var toString$3 = uncurryThis$d(1.0.toString);
  399. var uid$2 = function (key) {
  400. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
  401. };
  402. var global$6 = global$b;
  403. var shared$2 = shared$3;
  404. var hasOwn$6 = hasOwnProperty_1;
  405. var uid$1 = uid$2;
  406. var NATIVE_SYMBOL = symbolConstructorDetection;
  407. var USE_SYMBOL_AS_UID = useSymbolAsUid;
  408. var Symbol$1 = global$6.Symbol;
  409. var WellKnownSymbolsStore = shared$2('wks');
  410. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
  411. var wellKnownSymbol$8 = function (name) {
  412. if (!hasOwn$6(WellKnownSymbolsStore, name)) {
  413. WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
  414. ? Symbol$1[name]
  415. : createWellKnownSymbol('Symbol.' + name);
  416. } return WellKnownSymbolsStore[name];
  417. };
  418. var call$2 = functionCall;
  419. var isObject$6 = isObject$8;
  420. var isSymbol$1 = isSymbol$2;
  421. var getMethod = getMethod$1;
  422. var ordinaryToPrimitive = ordinaryToPrimitive$1;
  423. var wellKnownSymbol$7 = wellKnownSymbol$8;
  424. var $TypeError$4 = TypeError;
  425. var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
  426. // `ToPrimitive` abstract operation
  427. // https://tc39.es/ecma262/#sec-toprimitive
  428. var toPrimitive$1 = function (input, pref) {
  429. if (!isObject$6(input) || isSymbol$1(input)) return input;
  430. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  431. var result;
  432. if (exoticToPrim) {
  433. if (pref === undefined) pref = 'default';
  434. result = call$2(exoticToPrim, input, pref);
  435. if (!isObject$6(result) || isSymbol$1(result)) return result;
  436. throw new $TypeError$4("Can't convert object to primitive value");
  437. }
  438. if (pref === undefined) pref = 'number';
  439. return ordinaryToPrimitive(input, pref);
  440. };
  441. var toPrimitive = toPrimitive$1;
  442. var isSymbol = isSymbol$2;
  443. // `ToPropertyKey` abstract operation
  444. // https://tc39.es/ecma262/#sec-topropertykey
  445. var toPropertyKey$2 = function (argument) {
  446. var key = toPrimitive(argument, 'string');
  447. return isSymbol(key) ? key : key + '';
  448. };
  449. var global$5 = global$b;
  450. var isObject$5 = isObject$8;
  451. var document$1 = global$5.document;
  452. // typeof document.createElement is 'object' in old IE
  453. var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
  454. var documentCreateElement$2 = function (it) {
  455. return EXISTS$1 ? document$1.createElement(it) : {};
  456. };
  457. var DESCRIPTORS$a = descriptors;
  458. var fails$9 = fails$e;
  459. var createElement = documentCreateElement$2;
  460. // Thanks to IE8 for its funny defineProperty
  461. var ie8DomDefine = !DESCRIPTORS$a && !fails$9(function () {
  462. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  463. return Object.defineProperty(createElement('div'), 'a', {
  464. get: function () { return 7; }
  465. }).a !== 7;
  466. });
  467. var DESCRIPTORS$9 = descriptors;
  468. var call$1 = functionCall;
  469. var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
  470. var createPropertyDescriptor$2 = createPropertyDescriptor$3;
  471. var toIndexedObject$5 = toIndexedObject$6;
  472. var toPropertyKey$1 = toPropertyKey$2;
  473. var hasOwn$5 = hasOwnProperty_1;
  474. var IE8_DOM_DEFINE$1 = ie8DomDefine;
  475. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  476. var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  477. // `Object.getOwnPropertyDescriptor` method
  478. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  479. objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
  480. O = toIndexedObject$5(O);
  481. P = toPropertyKey$1(P);
  482. if (IE8_DOM_DEFINE$1) try {
  483. return $getOwnPropertyDescriptor$1(O, P);
  484. } catch (error) { /* empty */ }
  485. if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
  486. };
  487. var objectDefineProperty = {};
  488. var DESCRIPTORS$8 = descriptors;
  489. var fails$8 = fails$e;
  490. // V8 ~ Chrome 36-
  491. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  492. var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$8(function () {
  493. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  494. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  495. value: 42,
  496. writable: false
  497. }).prototype !== 42;
  498. });
  499. var isObject$4 = isObject$8;
  500. var $String$2 = String;
  501. var $TypeError$3 = TypeError;
  502. // `Assert: Type(argument) is Object`
  503. var anObject$4 = function (argument) {
  504. if (isObject$4(argument)) return argument;
  505. throw new $TypeError$3($String$2(argument) + ' is not an object');
  506. };
  507. var DESCRIPTORS$7 = descriptors;
  508. var IE8_DOM_DEFINE = ie8DomDefine;
  509. var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
  510. var anObject$3 = anObject$4;
  511. var toPropertyKey = toPropertyKey$2;
  512. var $TypeError$2 = TypeError;
  513. // eslint-disable-next-line es/no-object-defineproperty -- safe
  514. var $defineProperty = Object.defineProperty;
  515. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  516. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  517. var ENUMERABLE = 'enumerable';
  518. var CONFIGURABLE$1 = 'configurable';
  519. var WRITABLE = 'writable';
  520. // `Object.defineProperty` method
  521. // https://tc39.es/ecma262/#sec-object.defineproperty
  522. objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
  523. anObject$3(O);
  524. P = toPropertyKey(P);
  525. anObject$3(Attributes);
  526. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  527. var current = $getOwnPropertyDescriptor(O, P);
  528. if (current && current[WRITABLE]) {
  529. O[P] = Attributes.value;
  530. Attributes = {
  531. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  532. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  533. writable: false
  534. };
  535. }
  536. } return $defineProperty(O, P, Attributes);
  537. } : $defineProperty : function defineProperty(O, P, Attributes) {
  538. anObject$3(O);
  539. P = toPropertyKey(P);
  540. anObject$3(Attributes);
  541. if (IE8_DOM_DEFINE) try {
  542. return $defineProperty(O, P, Attributes);
  543. } catch (error) { /* empty */ }
  544. if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$2('Accessors not supported');
  545. if ('value' in Attributes) O[P] = Attributes.value;
  546. return O;
  547. };
  548. var DESCRIPTORS$6 = descriptors;
  549. var definePropertyModule$4 = objectDefineProperty;
  550. var createPropertyDescriptor$1 = createPropertyDescriptor$3;
  551. var createNonEnumerableProperty$3 = DESCRIPTORS$6 ? function (object, key, value) {
  552. return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
  553. } : function (object, key, value) {
  554. object[key] = value;
  555. return object;
  556. };
  557. var makeBuiltIn$3 = {exports: {}};
  558. var DESCRIPTORS$5 = descriptors;
  559. var hasOwn$4 = hasOwnProperty_1;
  560. var FunctionPrototype$1 = Function.prototype;
  561. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  562. var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
  563. var EXISTS = hasOwn$4(FunctionPrototype$1, 'name');
  564. // additional protection from minified / mangled / dropped function names
  565. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  566. var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$1, 'name').configurable));
  567. var functionName = {
  568. EXISTS: EXISTS,
  569. PROPER: PROPER,
  570. CONFIGURABLE: CONFIGURABLE
  571. };
  572. var uncurryThis$c = functionUncurryThis;
  573. var isCallable$6 = isCallable$c;
  574. var store$1 = sharedStoreExports;
  575. var functionToString$1 = uncurryThis$c(Function.toString);
  576. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  577. if (!isCallable$6(store$1.inspectSource)) {
  578. store$1.inspectSource = function (it) {
  579. return functionToString$1(it);
  580. };
  581. }
  582. var inspectSource$2 = store$1.inspectSource;
  583. var global$4 = global$b;
  584. var isCallable$5 = isCallable$c;
  585. var WeakMap$1 = global$4.WeakMap;
  586. var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1));
  587. var shared$1 = shared$3;
  588. var uid = uid$2;
  589. var keys = shared$1('keys');
  590. var sharedKey$2 = function (key) {
  591. return keys[key] || (keys[key] = uid(key));
  592. };
  593. var hiddenKeys$4 = {};
  594. var NATIVE_WEAK_MAP = weakMapBasicDetection;
  595. var global$3 = global$b;
  596. var isObject$3 = isObject$8;
  597. var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
  598. var hasOwn$3 = hasOwnProperty_1;
  599. var shared = sharedStoreExports;
  600. var sharedKey$1 = sharedKey$2;
  601. var hiddenKeys$3 = hiddenKeys$4;
  602. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  603. var TypeError$1 = global$3.TypeError;
  604. var WeakMap = global$3.WeakMap;
  605. var set, get, has;
  606. var enforce = function (it) {
  607. return has(it) ? get(it) : set(it, {});
  608. };
  609. var getterFor = function (TYPE) {
  610. return function (it) {
  611. var state;
  612. if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
  613. throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
  614. } return state;
  615. };
  616. };
  617. if (NATIVE_WEAK_MAP || shared.state) {
  618. var store = shared.state || (shared.state = new WeakMap());
  619. /* eslint-disable no-self-assign -- prototype methods protection */
  620. store.get = store.get;
  621. store.has = store.has;
  622. store.set = store.set;
  623. /* eslint-enable no-self-assign -- prototype methods protection */
  624. set = function (it, metadata) {
  625. if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  626. metadata.facade = it;
  627. store.set(it, metadata);
  628. return metadata;
  629. };
  630. get = function (it) {
  631. return store.get(it) || {};
  632. };
  633. has = function (it) {
  634. return store.has(it);
  635. };
  636. } else {
  637. var STATE = sharedKey$1('state');
  638. hiddenKeys$3[STATE] = true;
  639. set = function (it, metadata) {
  640. if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  641. metadata.facade = it;
  642. createNonEnumerableProperty$2(it, STATE, metadata);
  643. return metadata;
  644. };
  645. get = function (it) {
  646. return hasOwn$3(it, STATE) ? it[STATE] : {};
  647. };
  648. has = function (it) {
  649. return hasOwn$3(it, STATE);
  650. };
  651. }
  652. var internalState = {
  653. set: set,
  654. get: get,
  655. has: has,
  656. enforce: enforce,
  657. getterFor: getterFor
  658. };
  659. var uncurryThis$b = functionUncurryThis;
  660. var fails$7 = fails$e;
  661. var isCallable$4 = isCallable$c;
  662. var hasOwn$2 = hasOwnProperty_1;
  663. var DESCRIPTORS$4 = descriptors;
  664. var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
  665. var inspectSource$1 = inspectSource$2;
  666. var InternalStateModule = internalState;
  667. var enforceInternalState = InternalStateModule.enforce;
  668. var getInternalState = InternalStateModule.get;
  669. var $String$1 = String;
  670. // eslint-disable-next-line es/no-object-defineproperty -- safe
  671. var defineProperty$3 = Object.defineProperty;
  672. var stringSlice = uncurryThis$b(''.slice);
  673. var replace = uncurryThis$b(''.replace);
  674. var join = uncurryThis$b([].join);
  675. var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$7(function () {
  676. return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  677. });
  678. var TEMPLATE = String(String).split('String');
  679. var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
  680. if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
  681. name = '[' + replace($String$1(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
  682. }
  683. if (options && options.getter) name = 'get ' + name;
  684. if (options && options.setter) name = 'set ' + name;
  685. if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  686. if (DESCRIPTORS$4) defineProperty$3(value, 'name', { value: name, configurable: true });
  687. else value.name = name;
  688. }
  689. if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
  690. defineProperty$3(value, 'length', { value: options.arity });
  691. }
  692. try {
  693. if (options && hasOwn$2(options, 'constructor') && options.constructor) {
  694. if (DESCRIPTORS$4) defineProperty$3(value, 'prototype', { writable: false });
  695. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  696. } else if (value.prototype) value.prototype = undefined;
  697. } catch (error) { /* empty */ }
  698. var state = enforceInternalState(value);
  699. if (!hasOwn$2(state, 'source')) {
  700. state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
  701. } return value;
  702. };
  703. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  704. // eslint-disable-next-line no-extend-native -- required
  705. Function.prototype.toString = makeBuiltIn$2(function toString() {
  706. return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this);
  707. }, 'toString');
  708. var makeBuiltInExports = makeBuiltIn$3.exports;
  709. var isCallable$3 = isCallable$c;
  710. var definePropertyModule$3 = objectDefineProperty;
  711. var makeBuiltIn$1 = makeBuiltInExports;
  712. var defineGlobalProperty$1 = defineGlobalProperty$3;
  713. var defineBuiltIn$2 = function (O, key, value, options) {
  714. if (!options) options = {};
  715. var simple = options.enumerable;
  716. var name = options.name !== undefined ? options.name : key;
  717. if (isCallable$3(value)) makeBuiltIn$1(value, name, options);
  718. if (options.global) {
  719. if (simple) O[key] = value;
  720. else defineGlobalProperty$1(key, value);
  721. } else {
  722. try {
  723. if (!options.unsafe) delete O[key];
  724. else if (O[key]) simple = true;
  725. } catch (error) { /* empty */ }
  726. if (simple) O[key] = value;
  727. else definePropertyModule$3.f(O, key, {
  728. value: value,
  729. enumerable: false,
  730. configurable: !options.nonConfigurable,
  731. writable: !options.nonWritable
  732. });
  733. } return O;
  734. };
  735. var objectGetOwnPropertyNames = {};
  736. var ceil = Math.ceil;
  737. var floor$1 = Math.floor;
  738. // `Math.trunc` method
  739. // https://tc39.es/ecma262/#sec-math.trunc
  740. // eslint-disable-next-line es/no-math-trunc -- safe
  741. var mathTrunc = Math.trunc || function trunc(x) {
  742. var n = +x;
  743. return (n > 0 ? floor$1 : ceil)(n);
  744. };
  745. var trunc = mathTrunc;
  746. // `ToIntegerOrInfinity` abstract operation
  747. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  748. var toIntegerOrInfinity$2 = function (argument) {
  749. var number = +argument;
  750. // eslint-disable-next-line no-self-compare -- NaN check
  751. return number !== number || number === 0 ? 0 : trunc(number);
  752. };
  753. var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
  754. var max$1 = Math.max;
  755. var min$1 = Math.min;
  756. // Helper for a popular repeating case of the spec:
  757. // Let integer be ? ToInteger(index).
  758. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  759. var toAbsoluteIndex$2 = function (index, length) {
  760. var integer = toIntegerOrInfinity$1(index);
  761. return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
  762. };
  763. var toIntegerOrInfinity = toIntegerOrInfinity$2;
  764. var min = Math.min;
  765. // `ToLength` abstract operation
  766. // https://tc39.es/ecma262/#sec-tolength
  767. var toLength$1 = function (argument) {
  768. var len = toIntegerOrInfinity(argument);
  769. return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  770. };
  771. var toLength = toLength$1;
  772. // `LengthOfArrayLike` abstract operation
  773. // https://tc39.es/ecma262/#sec-lengthofarraylike
  774. var lengthOfArrayLike$5 = function (obj) {
  775. return toLength(obj.length);
  776. };
  777. var toIndexedObject$4 = toIndexedObject$6;
  778. var toAbsoluteIndex$1 = toAbsoluteIndex$2;
  779. var lengthOfArrayLike$4 = lengthOfArrayLike$5;
  780. // `Array.prototype.{ indexOf, includes }` methods implementation
  781. var createMethod$1 = function (IS_INCLUDES) {
  782. return function ($this, el, fromIndex) {
  783. var O = toIndexedObject$4($this);
  784. var length = lengthOfArrayLike$4(O);
  785. if (length === 0) return !IS_INCLUDES && -1;
  786. var index = toAbsoluteIndex$1(fromIndex, length);
  787. var value;
  788. // Array#includes uses SameValueZero equality algorithm
  789. // eslint-disable-next-line no-self-compare -- NaN check
  790. if (IS_INCLUDES && el !== el) while (length > index) {
  791. value = O[index++];
  792. // eslint-disable-next-line no-self-compare -- NaN check
  793. if (value !== value) return true;
  794. // Array#indexOf ignores holes, Array#includes - not
  795. } else for (;length > index; index++) {
  796. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  797. } return !IS_INCLUDES && -1;
  798. };
  799. };
  800. var arrayIncludes = {
  801. // `Array.prototype.includes` method
  802. // https://tc39.es/ecma262/#sec-array.prototype.includes
  803. includes: createMethod$1(true),
  804. // `Array.prototype.indexOf` method
  805. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  806. indexOf: createMethod$1(false)
  807. };
  808. var uncurryThis$a = functionUncurryThis;
  809. var hasOwn$1 = hasOwnProperty_1;
  810. var toIndexedObject$3 = toIndexedObject$6;
  811. var indexOf = arrayIncludes.indexOf;
  812. var hiddenKeys$2 = hiddenKeys$4;
  813. var push$2 = uncurryThis$a([].push);
  814. var objectKeysInternal = function (object, names) {
  815. var O = toIndexedObject$3(object);
  816. var i = 0;
  817. var result = [];
  818. var key;
  819. for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$2(result, key);
  820. // Don't enum bug & hidden keys
  821. while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
  822. ~indexOf(result, key) || push$2(result, key);
  823. }
  824. return result;
  825. };
  826. // IE8- don't enum bug keys
  827. var enumBugKeys$3 = [
  828. 'constructor',
  829. 'hasOwnProperty',
  830. 'isPrototypeOf',
  831. 'propertyIsEnumerable',
  832. 'toLocaleString',
  833. 'toString',
  834. 'valueOf'
  835. ];
  836. var internalObjectKeys$1 = objectKeysInternal;
  837. var enumBugKeys$2 = enumBugKeys$3;
  838. var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
  839. // `Object.getOwnPropertyNames` method
  840. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  841. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  842. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  843. return internalObjectKeys$1(O, hiddenKeys$1);
  844. };
  845. var objectGetOwnPropertySymbols = {};
  846. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  847. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  848. var getBuiltIn$2 = getBuiltIn$4;
  849. var uncurryThis$9 = functionUncurryThis;
  850. var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
  851. var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
  852. var anObject$2 = anObject$4;
  853. var concat$1 = uncurryThis$9([].concat);
  854. // all object keys, includes non-enumerable and symbols
  855. var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
  856. var keys = getOwnPropertyNamesModule.f(anObject$2(it));
  857. var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
  858. return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
  859. };
  860. var hasOwn = hasOwnProperty_1;
  861. var ownKeys = ownKeys$1;
  862. var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
  863. var definePropertyModule$2 = objectDefineProperty;
  864. var copyConstructorProperties$1 = function (target, source, exceptions) {
  865. var keys = ownKeys(source);
  866. var defineProperty = definePropertyModule$2.f;
  867. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  868. for (var i = 0; i < keys.length; i++) {
  869. var key = keys[i];
  870. if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
  871. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  872. }
  873. }
  874. };
  875. var fails$6 = fails$e;
  876. var isCallable$2 = isCallable$c;
  877. var replacement = /#|\.prototype\./;
  878. var isForced$1 = function (feature, detection) {
  879. var value = data[normalize(feature)];
  880. return value === POLYFILL ? true
  881. : value === NATIVE ? false
  882. : isCallable$2(detection) ? fails$6(detection)
  883. : !!detection;
  884. };
  885. var normalize = isForced$1.normalize = function (string) {
  886. return String(string).replace(replacement, '.').toLowerCase();
  887. };
  888. var data = isForced$1.data = {};
  889. var NATIVE = isForced$1.NATIVE = 'N';
  890. var POLYFILL = isForced$1.POLYFILL = 'P';
  891. var isForced_1 = isForced$1;
  892. var global$2 = global$b;
  893. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  894. var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
  895. var defineBuiltIn$1 = defineBuiltIn$2;
  896. var defineGlobalProperty = defineGlobalProperty$3;
  897. var copyConstructorProperties = copyConstructorProperties$1;
  898. var isForced = isForced_1;
  899. /*
  900. options.target - name of the target object
  901. options.global - target is the global object
  902. options.stat - export as static methods of target
  903. options.proto - export as prototype methods of target
  904. options.real - real prototype method for the `pure` version
  905. options.forced - export even if the native feature is available
  906. options.bind - bind methods to the target, required for the `pure` version
  907. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  908. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  909. options.sham - add a flag to not completely full polyfills
  910. options.enumerable - export as enumerable property
  911. options.dontCallGetSet - prevent calling a getter on target
  912. options.name - the .name of the function if it does not match the key
  913. */
  914. var _export = function (options, source) {
  915. var TARGET = options.target;
  916. var GLOBAL = options.global;
  917. var STATIC = options.stat;
  918. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  919. if (GLOBAL) {
  920. target = global$2;
  921. } else if (STATIC) {
  922. target = global$2[TARGET] || defineGlobalProperty(TARGET, {});
  923. } else {
  924. target = global$2[TARGET] && global$2[TARGET].prototype;
  925. }
  926. if (target) for (key in source) {
  927. sourceProperty = source[key];
  928. if (options.dontCallGetSet) {
  929. descriptor = getOwnPropertyDescriptor(target, key);
  930. targetProperty = descriptor && descriptor.value;
  931. } else targetProperty = target[key];
  932. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  933. // contained in target
  934. if (!FORCED && targetProperty !== undefined) {
  935. if (typeof sourceProperty == typeof targetProperty) continue;
  936. copyConstructorProperties(sourceProperty, targetProperty);
  937. }
  938. // add a flag to not completely full polyfills
  939. if (options.sham || (targetProperty && targetProperty.sham)) {
  940. createNonEnumerableProperty$1(sourceProperty, 'sham', true);
  941. }
  942. defineBuiltIn$1(target, key, sourceProperty, options);
  943. }
  944. };
  945. var classof$4 = classofRaw$2;
  946. // `IsArray` abstract operation
  947. // https://tc39.es/ecma262/#sec-isarray
  948. // eslint-disable-next-line es/no-array-isarray -- safe
  949. var isArray$3 = Array.isArray || function isArray(argument) {
  950. return classof$4(argument) === 'Array';
  951. };
  952. var $TypeError$1 = TypeError;
  953. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
  954. var doesNotExceedSafeInteger$1 = function (it) {
  955. if (it > MAX_SAFE_INTEGER) throw $TypeError$1('Maximum allowed index exceeded');
  956. return it;
  957. };
  958. var DESCRIPTORS$3 = descriptors;
  959. var definePropertyModule$1 = objectDefineProperty;
  960. var createPropertyDescriptor = createPropertyDescriptor$3;
  961. var createProperty$2 = function (object, key, value) {
  962. if (DESCRIPTORS$3) definePropertyModule$1.f(object, key, createPropertyDescriptor(0, value));
  963. else object[key] = value;
  964. };
  965. var wellKnownSymbol$6 = wellKnownSymbol$8;
  966. var TO_STRING_TAG$1 = wellKnownSymbol$6('toStringTag');
  967. var test$1 = {};
  968. test$1[TO_STRING_TAG$1] = 'z';
  969. var toStringTagSupport = String(test$1) === '[object z]';
  970. var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
  971. var isCallable$1 = isCallable$c;
  972. var classofRaw$1 = classofRaw$2;
  973. var wellKnownSymbol$5 = wellKnownSymbol$8;
  974. var TO_STRING_TAG = wellKnownSymbol$5('toStringTag');
  975. var $Object = Object;
  976. // ES3 wrong here
  977. var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
  978. // fallback for IE11 Script Access Denied error
  979. var tryGet = function (it, key) {
  980. try {
  981. return it[key];
  982. } catch (error) { /* empty */ }
  983. };
  984. // getting tag from ES6+ `Object.prototype.toString`
  985. var classof$3 = TO_STRING_TAG_SUPPORT$2 ? classofRaw$1 : function (it) {
  986. var O, tag, result;
  987. return it === undefined ? 'Undefined' : it === null ? 'Null'
  988. // @@toStringTag case
  989. : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
  990. // builtinTag case
  991. : CORRECT_ARGUMENTS ? classofRaw$1(O)
  992. // ES3 arguments fallback
  993. : (result = classofRaw$1(O)) === 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
  994. };
  995. var uncurryThis$8 = functionUncurryThis;
  996. var fails$5 = fails$e;
  997. var isCallable = isCallable$c;
  998. var classof$2 = classof$3;
  999. var getBuiltIn$1 = getBuiltIn$4;
  1000. var inspectSource = inspectSource$2;
  1001. var noop = function () { /* empty */ };
  1002. var construct = getBuiltIn$1('Reflect', 'construct');
  1003. var constructorRegExp = /^\s*(?:class|function)\b/;
  1004. var exec = uncurryThis$8(constructorRegExp.exec);
  1005. var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
  1006. var isConstructorModern = function isConstructor(argument) {
  1007. if (!isCallable(argument)) return false;
  1008. try {
  1009. construct(noop, [], argument);
  1010. return true;
  1011. } catch (error) {
  1012. return false;
  1013. }
  1014. };
  1015. var isConstructorLegacy = function isConstructor(argument) {
  1016. if (!isCallable(argument)) return false;
  1017. switch (classof$2(argument)) {
  1018. case 'AsyncFunction':
  1019. case 'GeneratorFunction':
  1020. case 'AsyncGeneratorFunction': return false;
  1021. }
  1022. try {
  1023. // we can't check .prototype since constructors produced by .bind haven't it
  1024. // `Function#toString` throws on some built-it function in some legacy engines
  1025. // (for example, `DOMQuad` and similar in FF41-)
  1026. return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
  1027. } catch (error) {
  1028. return true;
  1029. }
  1030. };
  1031. isConstructorLegacy.sham = true;
  1032. // `IsConstructor` abstract operation
  1033. // https://tc39.es/ecma262/#sec-isconstructor
  1034. var isConstructor$2 = !construct || fails$5(function () {
  1035. var called;
  1036. return isConstructorModern(isConstructorModern.call)
  1037. || !isConstructorModern(Object)
  1038. || !isConstructorModern(function () { called = true; })
  1039. || called;
  1040. }) ? isConstructorLegacy : isConstructorModern;
  1041. var isArray$2 = isArray$3;
  1042. var isConstructor$1 = isConstructor$2;
  1043. var isObject$2 = isObject$8;
  1044. var wellKnownSymbol$4 = wellKnownSymbol$8;
  1045. var SPECIES$2 = wellKnownSymbol$4('species');
  1046. var $Array$1 = Array;
  1047. // a part of `ArraySpeciesCreate` abstract operation
  1048. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1049. var arraySpeciesConstructor$1 = function (originalArray) {
  1050. var C;
  1051. if (isArray$2(originalArray)) {
  1052. C = originalArray.constructor;
  1053. // cross-realm fallback
  1054. if (isConstructor$1(C) && (C === $Array$1 || isArray$2(C.prototype))) C = undefined;
  1055. else if (isObject$2(C)) {
  1056. C = C[SPECIES$2];
  1057. if (C === null) C = undefined;
  1058. }
  1059. } return C === undefined ? $Array$1 : C;
  1060. };
  1061. var arraySpeciesConstructor = arraySpeciesConstructor$1;
  1062. // `ArraySpeciesCreate` abstract operation
  1063. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1064. var arraySpeciesCreate$2 = function (originalArray, length) {
  1065. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1066. };
  1067. var fails$4 = fails$e;
  1068. var wellKnownSymbol$3 = wellKnownSymbol$8;
  1069. var V8_VERSION$1 = engineV8Version;
  1070. var SPECIES$1 = wellKnownSymbol$3('species');
  1071. var arrayMethodHasSpeciesSupport$3 = function (METHOD_NAME) {
  1072. // We can't use this feature detection in V8 since it causes
  1073. // deoptimization and serious performance degradation
  1074. // https://github.com/zloirock/core-js/issues/677
  1075. return V8_VERSION$1 >= 51 || !fails$4(function () {
  1076. var array = [];
  1077. var constructor = array.constructor = {};
  1078. constructor[SPECIES$1] = function () {
  1079. return { foo: 1 };
  1080. };
  1081. return array[METHOD_NAME](Boolean).foo !== 1;
  1082. });
  1083. };
  1084. var $$6 = _export;
  1085. var fails$3 = fails$e;
  1086. var isArray$1 = isArray$3;
  1087. var isObject$1 = isObject$8;
  1088. var toObject$3 = toObject$5;
  1089. var lengthOfArrayLike$3 = lengthOfArrayLike$5;
  1090. var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
  1091. var createProperty$1 = createProperty$2;
  1092. var arraySpeciesCreate$1 = arraySpeciesCreate$2;
  1093. var arrayMethodHasSpeciesSupport$2 = arrayMethodHasSpeciesSupport$3;
  1094. var wellKnownSymbol$2 = wellKnownSymbol$8;
  1095. var V8_VERSION = engineV8Version;
  1096. var IS_CONCAT_SPREADABLE = wellKnownSymbol$2('isConcatSpreadable');
  1097. // We can't use this feature detection in V8 since it causes
  1098. // deoptimization and serious performance degradation
  1099. // https://github.com/zloirock/core-js/issues/679
  1100. var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$3(function () {
  1101. var array = [];
  1102. array[IS_CONCAT_SPREADABLE] = false;
  1103. return array.concat()[0] !== array;
  1104. });
  1105. var isConcatSpreadable = function (O) {
  1106. if (!isObject$1(O)) return false;
  1107. var spreadable = O[IS_CONCAT_SPREADABLE];
  1108. return spreadable !== undefined ? !!spreadable : isArray$1(O);
  1109. };
  1110. var FORCED$2 = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport$2('concat');
  1111. // `Array.prototype.concat` method
  1112. // https://tc39.es/ecma262/#sec-array.prototype.concat
  1113. // with adding support of @@isConcatSpreadable and @@species
  1114. $$6({ target: 'Array', proto: true, arity: 1, forced: FORCED$2 }, {
  1115. // eslint-disable-next-line no-unused-vars -- required for `.length`
  1116. concat: function concat(arg) {
  1117. var O = toObject$3(this);
  1118. var A = arraySpeciesCreate$1(O, 0);
  1119. var n = 0;
  1120. var i, k, length, len, E;
  1121. for (i = -1, length = arguments.length; i < length; i++) {
  1122. E = i === -1 ? O : arguments[i];
  1123. if (isConcatSpreadable(E)) {
  1124. len = lengthOfArrayLike$3(E);
  1125. doesNotExceedSafeInteger(n + len);
  1126. for (k = 0; k < len; k++, n++) if (k in E) createProperty$1(A, n, E[k]);
  1127. } else {
  1128. doesNotExceedSafeInteger(n + 1);
  1129. createProperty$1(A, n++, E);
  1130. }
  1131. }
  1132. A.length = n;
  1133. return A;
  1134. }
  1135. });
  1136. var classofRaw = classofRaw$2;
  1137. var uncurryThis$7 = functionUncurryThis;
  1138. var functionUncurryThisClause = function (fn) {
  1139. // Nashorn bug:
  1140. // https://github.com/zloirock/core-js/issues/1128
  1141. // https://github.com/zloirock/core-js/issues/1130
  1142. if (classofRaw(fn) === 'Function') return uncurryThis$7(fn);
  1143. };
  1144. var uncurryThis$6 = functionUncurryThisClause;
  1145. var aCallable$1 = aCallable$3;
  1146. var NATIVE_BIND = functionBindNative;
  1147. var bind$1 = uncurryThis$6(uncurryThis$6.bind);
  1148. // optional / simple context binding
  1149. var functionBindContext = function (fn, that) {
  1150. aCallable$1(fn);
  1151. return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
  1152. return fn.apply(that, arguments);
  1153. };
  1154. };
  1155. var bind = functionBindContext;
  1156. var uncurryThis$5 = functionUncurryThis;
  1157. var IndexedObject$2 = indexedObject;
  1158. var toObject$2 = toObject$5;
  1159. var lengthOfArrayLike$2 = lengthOfArrayLike$5;
  1160. var arraySpeciesCreate = arraySpeciesCreate$2;
  1161. var push$1 = uncurryThis$5([].push);
  1162. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  1163. var createMethod = function (TYPE) {
  1164. var IS_MAP = TYPE === 1;
  1165. var IS_FILTER = TYPE === 2;
  1166. var IS_SOME = TYPE === 3;
  1167. var IS_EVERY = TYPE === 4;
  1168. var IS_FIND_INDEX = TYPE === 6;
  1169. var IS_FILTER_REJECT = TYPE === 7;
  1170. var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
  1171. return function ($this, callbackfn, that, specificCreate) {
  1172. var O = toObject$2($this);
  1173. var self = IndexedObject$2(O);
  1174. var length = lengthOfArrayLike$2(self);
  1175. var boundFunction = bind(callbackfn, that);
  1176. var index = 0;
  1177. var create = specificCreate || arraySpeciesCreate;
  1178. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  1179. var value, result;
  1180. for (;length > index; index++) if (NO_HOLES || index in self) {
  1181. value = self[index];
  1182. result = boundFunction(value, index, O);
  1183. if (TYPE) {
  1184. if (IS_MAP) target[index] = result; // map
  1185. else if (result) switch (TYPE) {
  1186. case 3: return true; // some
  1187. case 5: return value; // find
  1188. case 6: return index; // findIndex
  1189. case 2: push$1(target, value); // filter
  1190. } else switch (TYPE) {
  1191. case 4: return false; // every
  1192. case 7: push$1(target, value); // filterReject
  1193. }
  1194. }
  1195. }
  1196. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  1197. };
  1198. };
  1199. var arrayIteration = {
  1200. // `Array.prototype.forEach` method
  1201. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1202. forEach: createMethod(0),
  1203. // `Array.prototype.map` method
  1204. // https://tc39.es/ecma262/#sec-array.prototype.map
  1205. map: createMethod(1),
  1206. // `Array.prototype.filter` method
  1207. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1208. filter: createMethod(2),
  1209. // `Array.prototype.some` method
  1210. // https://tc39.es/ecma262/#sec-array.prototype.some
  1211. some: createMethod(3),
  1212. // `Array.prototype.every` method
  1213. // https://tc39.es/ecma262/#sec-array.prototype.every
  1214. every: createMethod(4),
  1215. // `Array.prototype.find` method
  1216. // https://tc39.es/ecma262/#sec-array.prototype.find
  1217. find: createMethod(5),
  1218. // `Array.prototype.findIndex` method
  1219. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  1220. findIndex: createMethod(6),
  1221. // `Array.prototype.filterReject` method
  1222. // https://github.com/tc39/proposal-array-filtering
  1223. filterReject: createMethod(7)
  1224. };
  1225. var $$5 = _export;
  1226. var $filter = arrayIteration.filter;
  1227. var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$3;
  1228. var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$1('filter');
  1229. // `Array.prototype.filter` method
  1230. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1231. // with adding support of @@species
  1232. $$5({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
  1233. filter: function filter(callbackfn /* , thisArg */) {
  1234. return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1235. }
  1236. });
  1237. var objectDefineProperties = {};
  1238. var internalObjectKeys = objectKeysInternal;
  1239. var enumBugKeys$1 = enumBugKeys$3;
  1240. // `Object.keys` method
  1241. // https://tc39.es/ecma262/#sec-object.keys
  1242. // eslint-disable-next-line es/no-object-keys -- safe
  1243. var objectKeys$2 = Object.keys || function keys(O) {
  1244. return internalObjectKeys(O, enumBugKeys$1);
  1245. };
  1246. var DESCRIPTORS$2 = descriptors;
  1247. var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
  1248. var definePropertyModule = objectDefineProperty;
  1249. var anObject$1 = anObject$4;
  1250. var toIndexedObject$2 = toIndexedObject$6;
  1251. var objectKeys$1 = objectKeys$2;
  1252. // `Object.defineProperties` method
  1253. // https://tc39.es/ecma262/#sec-object.defineproperties
  1254. // eslint-disable-next-line es/no-object-defineproperties -- safe
  1255. objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
  1256. anObject$1(O);
  1257. var props = toIndexedObject$2(Properties);
  1258. var keys = objectKeys$1(Properties);
  1259. var length = keys.length;
  1260. var index = 0;
  1261. var key;
  1262. while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
  1263. return O;
  1264. };
  1265. var getBuiltIn = getBuiltIn$4;
  1266. var html$1 = getBuiltIn('document', 'documentElement');
  1267. /* global ActiveXObject -- old IE, WSH */
  1268. var anObject = anObject$4;
  1269. var definePropertiesModule = objectDefineProperties;
  1270. var enumBugKeys = enumBugKeys$3;
  1271. var hiddenKeys = hiddenKeys$4;
  1272. var html = html$1;
  1273. var documentCreateElement$1 = documentCreateElement$2;
  1274. var sharedKey = sharedKey$2;
  1275. var GT = '>';
  1276. var LT = '<';
  1277. var PROTOTYPE = 'prototype';
  1278. var SCRIPT = 'script';
  1279. var IE_PROTO = sharedKey('IE_PROTO');
  1280. var EmptyConstructor = function () { /* empty */ };
  1281. var scriptTag = function (content) {
  1282. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  1283. };
  1284. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  1285. var NullProtoObjectViaActiveX = function (activeXDocument) {
  1286. activeXDocument.write(scriptTag(''));
  1287. activeXDocument.close();
  1288. var temp = activeXDocument.parentWindow.Object;
  1289. activeXDocument = null; // avoid memory leak
  1290. return temp;
  1291. };
  1292. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  1293. var NullProtoObjectViaIFrame = function () {
  1294. // Thrash, waste and sodomy: IE GC bug
  1295. var iframe = documentCreateElement$1('iframe');
  1296. var JS = 'java' + SCRIPT + ':';
  1297. var iframeDocument;
  1298. iframe.style.display = 'none';
  1299. html.appendChild(iframe);
  1300. // https://github.com/zloirock/core-js/issues/475
  1301. iframe.src = String(JS);
  1302. iframeDocument = iframe.contentWindow.document;
  1303. iframeDocument.open();
  1304. iframeDocument.write(scriptTag('document.F=Object'));
  1305. iframeDocument.close();
  1306. return iframeDocument.F;
  1307. };
  1308. // Check for document.domain and active x support
  1309. // No need to use active x approach when document.domain is not set
  1310. // see https://github.com/es-shims/es5-shim/issues/150
  1311. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  1312. // avoid IE GC bug
  1313. var activeXDocument;
  1314. var NullProtoObject = function () {
  1315. try {
  1316. activeXDocument = new ActiveXObject('htmlfile');
  1317. } catch (error) { /* ignore */ }
  1318. NullProtoObject = typeof document != 'undefined'
  1319. ? document.domain && activeXDocument
  1320. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  1321. : NullProtoObjectViaIFrame()
  1322. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  1323. var length = enumBugKeys.length;
  1324. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  1325. return NullProtoObject();
  1326. };
  1327. hiddenKeys[IE_PROTO] = true;
  1328. // `Object.create` method
  1329. // https://tc39.es/ecma262/#sec-object.create
  1330. // eslint-disable-next-line es/no-object-create -- safe
  1331. var objectCreate = Object.create || function create(O, Properties) {
  1332. var result;
  1333. if (O !== null) {
  1334. EmptyConstructor[PROTOTYPE] = anObject(O);
  1335. result = new EmptyConstructor();
  1336. EmptyConstructor[PROTOTYPE] = null;
  1337. // add "__proto__" for Object.getPrototypeOf polyfill
  1338. result[IE_PROTO] = O;
  1339. } else result = NullProtoObject();
  1340. return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
  1341. };
  1342. var wellKnownSymbol$1 = wellKnownSymbol$8;
  1343. var create = objectCreate;
  1344. var defineProperty$2 = objectDefineProperty.f;
  1345. var UNSCOPABLES = wellKnownSymbol$1('unscopables');
  1346. var ArrayPrototype = Array.prototype;
  1347. // Array.prototype[@@unscopables]
  1348. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1349. if (ArrayPrototype[UNSCOPABLES] === undefined) {
  1350. defineProperty$2(ArrayPrototype, UNSCOPABLES, {
  1351. configurable: true,
  1352. value: create(null)
  1353. });
  1354. }
  1355. // add a key to Array.prototype[@@unscopables]
  1356. var addToUnscopables$1 = function (key) {
  1357. ArrayPrototype[UNSCOPABLES][key] = true;
  1358. };
  1359. var $$4 = _export;
  1360. var $find = arrayIteration.find;
  1361. var addToUnscopables = addToUnscopables$1;
  1362. var FIND = 'find';
  1363. var SKIPS_HOLES = true;
  1364. // Shouldn't skip holes
  1365. // eslint-disable-next-line es/no-array-prototype-find -- testing
  1366. if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
  1367. // `Array.prototype.find` method
  1368. // https://tc39.es/ecma262/#sec-array.prototype.find
  1369. $$4({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
  1370. find: function find(callbackfn /* , that = undefined */) {
  1371. return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1372. }
  1373. });
  1374. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1375. addToUnscopables(FIND);
  1376. var fails$2 = fails$e;
  1377. var arrayMethodIsStrict$3 = function (METHOD_NAME, argument) {
  1378. var method = [][METHOD_NAME];
  1379. return !!method && fails$2(function () {
  1380. // eslint-disable-next-line no-useless-call -- required for testing
  1381. method.call(null, argument || function () { return 1; }, 1);
  1382. });
  1383. };
  1384. var $$3 = _export;
  1385. var uncurryThis$4 = functionUncurryThis;
  1386. var IndexedObject$1 = indexedObject;
  1387. var toIndexedObject$1 = toIndexedObject$6;
  1388. var arrayMethodIsStrict$2 = arrayMethodIsStrict$3;
  1389. var nativeJoin = uncurryThis$4([].join);
  1390. var ES3_STRINGS = IndexedObject$1 !== Object;
  1391. var FORCED$1 = ES3_STRINGS || !arrayMethodIsStrict$2('join', ',');
  1392. // `Array.prototype.join` method
  1393. // https://tc39.es/ecma262/#sec-array.prototype.join
  1394. $$3({ target: 'Array', proto: true, forced: FORCED$1 }, {
  1395. join: function join(separator) {
  1396. return nativeJoin(toIndexedObject$1(this), separator === undefined ? ',' : separator);
  1397. }
  1398. });
  1399. var uncurryThis$3 = functionUncurryThis;
  1400. var arraySlice$1 = uncurryThis$3([].slice);
  1401. var $$2 = _export;
  1402. var isArray = isArray$3;
  1403. var isConstructor = isConstructor$2;
  1404. var isObject = isObject$8;
  1405. var toAbsoluteIndex = toAbsoluteIndex$2;
  1406. var lengthOfArrayLike$1 = lengthOfArrayLike$5;
  1407. var toIndexedObject = toIndexedObject$6;
  1408. var createProperty = createProperty$2;
  1409. var wellKnownSymbol = wellKnownSymbol$8;
  1410. var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$3;
  1411. var nativeSlice = arraySlice$1;
  1412. var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');
  1413. var SPECIES = wellKnownSymbol('species');
  1414. var $Array = Array;
  1415. var max = Math.max;
  1416. // `Array.prototype.slice` method
  1417. // https://tc39.es/ecma262/#sec-array.prototype.slice
  1418. // fallback for not array-like ES3 strings and DOM objects
  1419. $$2({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
  1420. slice: function slice(start, end) {
  1421. var O = toIndexedObject(this);
  1422. var length = lengthOfArrayLike$1(O);
  1423. var k = toAbsoluteIndex(start, length);
  1424. var fin = toAbsoluteIndex(end === undefined ? length : end, length);
  1425. // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
  1426. var Constructor, result, n;
  1427. if (isArray(O)) {
  1428. Constructor = O.constructor;
  1429. // cross-realm fallback
  1430. if (isConstructor(Constructor) && (Constructor === $Array || isArray(Constructor.prototype))) {
  1431. Constructor = undefined;
  1432. } else if (isObject(Constructor)) {
  1433. Constructor = Constructor[SPECIES];
  1434. if (Constructor === null) Constructor = undefined;
  1435. }
  1436. if (Constructor === $Array || Constructor === undefined) {
  1437. return nativeSlice(O, k, fin);
  1438. }
  1439. }
  1440. result = new (Constructor === undefined ? $Array : Constructor)(max(fin - k, 0));
  1441. for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
  1442. result.length = n;
  1443. return result;
  1444. }
  1445. });
  1446. var tryToString = tryToString$2;
  1447. var $TypeError = TypeError;
  1448. var deletePropertyOrThrow$1 = function (O, P) {
  1449. if (!delete O[P]) throw new $TypeError('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
  1450. };
  1451. var classof$1 = classof$3;
  1452. var $String = String;
  1453. var toString$2 = function (argument) {
  1454. if (classof$1(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
  1455. return $String(argument);
  1456. };
  1457. var arraySlice = arraySlice$1;
  1458. var floor = Math.floor;
  1459. var sort = function (array, comparefn) {
  1460. var length = array.length;
  1461. if (length < 8) {
  1462. // insertion sort
  1463. var i = 1;
  1464. var element, j;
  1465. while (i < length) {
  1466. j = i;
  1467. element = array[i];
  1468. while (j && comparefn(array[j - 1], element) > 0) {
  1469. array[j] = array[--j];
  1470. }
  1471. if (j !== i++) array[j] = element;
  1472. }
  1473. } else {
  1474. // merge sort
  1475. var middle = floor(length / 2);
  1476. var left = sort(arraySlice(array, 0, middle), comparefn);
  1477. var right = sort(arraySlice(array, middle), comparefn);
  1478. var llength = left.length;
  1479. var rlength = right.length;
  1480. var lindex = 0;
  1481. var rindex = 0;
  1482. while (lindex < llength || rindex < rlength) {
  1483. array[lindex + rindex] = (lindex < llength && rindex < rlength)
  1484. ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
  1485. : lindex < llength ? left[lindex++] : right[rindex++];
  1486. }
  1487. }
  1488. return array;
  1489. };
  1490. var arraySort = sort;
  1491. var userAgent$1 = engineUserAgent;
  1492. var firefox = userAgent$1.match(/firefox\/(\d+)/i);
  1493. var engineFfVersion = !!firefox && +firefox[1];
  1494. var UA = engineUserAgent;
  1495. var engineIsIeOrEdge = /MSIE|Trident/.test(UA);
  1496. var userAgent = engineUserAgent;
  1497. var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
  1498. var engineWebkitVersion = !!webkit && +webkit[1];
  1499. var $$1 = _export;
  1500. var uncurryThis$2 = functionUncurryThis;
  1501. var aCallable = aCallable$3;
  1502. var toObject$1 = toObject$5;
  1503. var lengthOfArrayLike = lengthOfArrayLike$5;
  1504. var deletePropertyOrThrow = deletePropertyOrThrow$1;
  1505. var toString$1 = toString$2;
  1506. var fails$1 = fails$e;
  1507. var internalSort = arraySort;
  1508. var arrayMethodIsStrict$1 = arrayMethodIsStrict$3;
  1509. var FF = engineFfVersion;
  1510. var IE_OR_EDGE = engineIsIeOrEdge;
  1511. var V8 = engineV8Version;
  1512. var WEBKIT = engineWebkitVersion;
  1513. var test = [];
  1514. var nativeSort = uncurryThis$2(test.sort);
  1515. var push = uncurryThis$2(test.push);
  1516. // IE8-
  1517. var FAILS_ON_UNDEFINED = fails$1(function () {
  1518. test.sort(undefined);
  1519. });
  1520. // V8 bug
  1521. var FAILS_ON_NULL = fails$1(function () {
  1522. test.sort(null);
  1523. });
  1524. // Old WebKit
  1525. var STRICT_METHOD$1 = arrayMethodIsStrict$1('sort');
  1526. var STABLE_SORT = !fails$1(function () {
  1527. // feature detection can be too slow, so check engines versions
  1528. if (V8) return V8 < 70;
  1529. if (FF && FF > 3) return;
  1530. if (IE_OR_EDGE) return true;
  1531. if (WEBKIT) return WEBKIT < 603;
  1532. var result = '';
  1533. var code, chr, value, index;
  1534. // generate an array with more 512 elements (Chakra and old V8 fails only in this case)
  1535. for (code = 65; code < 76; code++) {
  1536. chr = String.fromCharCode(code);
  1537. switch (code) {
  1538. case 66: case 69: case 70: case 72: value = 3; break;
  1539. case 68: case 71: value = 4; break;
  1540. default: value = 2;
  1541. }
  1542. for (index = 0; index < 47; index++) {
  1543. test.push({ k: chr + index, v: value });
  1544. }
  1545. }
  1546. test.sort(function (a, b) { return b.v - a.v; });
  1547. for (index = 0; index < test.length; index++) {
  1548. chr = test[index].k.charAt(0);
  1549. if (result.charAt(result.length - 1) !== chr) result += chr;
  1550. }
  1551. return result !== 'DGBEFHACIJK';
  1552. });
  1553. var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD$1 || !STABLE_SORT;
  1554. var getSortCompare = function (comparefn) {
  1555. return function (x, y) {
  1556. if (y === undefined) return -1;
  1557. if (x === undefined) return 1;
  1558. if (comparefn !== undefined) return +comparefn(x, y) || 0;
  1559. return toString$1(x) > toString$1(y) ? 1 : -1;
  1560. };
  1561. };
  1562. // `Array.prototype.sort` method
  1563. // https://tc39.es/ecma262/#sec-array.prototype.sort
  1564. $$1({ target: 'Array', proto: true, forced: FORCED }, {
  1565. sort: function sort(comparefn) {
  1566. if (comparefn !== undefined) aCallable(comparefn);
  1567. var array = toObject$1(this);
  1568. if (STABLE_SORT) return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn);
  1569. var items = [];
  1570. var arrayLength = lengthOfArrayLike(array);
  1571. var itemsLength, index;
  1572. for (index = 0; index < arrayLength; index++) {
  1573. if (index in array) push(items, array[index]);
  1574. }
  1575. internalSort(items, getSortCompare(comparefn));
  1576. itemsLength = lengthOfArrayLike(items);
  1577. index = 0;
  1578. while (index < itemsLength) array[index] = items[index++];
  1579. while (index < arrayLength) deletePropertyOrThrow(array, index++);
  1580. return array;
  1581. }
  1582. });
  1583. var makeBuiltIn = makeBuiltInExports;
  1584. var defineProperty$1 = objectDefineProperty;
  1585. var defineBuiltInAccessor$1 = function (target, name, descriptor) {
  1586. if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
  1587. if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
  1588. return defineProperty$1.f(target, name, descriptor);
  1589. };
  1590. var DESCRIPTORS$1 = descriptors;
  1591. var FUNCTION_NAME_EXISTS = functionName.EXISTS;
  1592. var uncurryThis$1 = functionUncurryThis;
  1593. var defineBuiltInAccessor = defineBuiltInAccessor$1;
  1594. var FunctionPrototype = Function.prototype;
  1595. var functionToString = uncurryThis$1(FunctionPrototype.toString);
  1596. var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
  1597. var regExpExec = uncurryThis$1(nameRE.exec);
  1598. var NAME = 'name';
  1599. // Function instances `.name` property
  1600. // https://tc39.es/ecma262/#sec-function-instances-name
  1601. if (DESCRIPTORS$1 && !FUNCTION_NAME_EXISTS) {
  1602. defineBuiltInAccessor(FunctionPrototype, NAME, {
  1603. configurable: true,
  1604. get: function () {
  1605. try {
  1606. return regExpExec(nameRE, functionToString(this))[1];
  1607. } catch (error) {
  1608. return '';
  1609. }
  1610. }
  1611. });
  1612. }
  1613. var DESCRIPTORS = descriptors;
  1614. var uncurryThis = functionUncurryThis;
  1615. var call = functionCall;
  1616. var fails = fails$e;
  1617. var objectKeys = objectKeys$2;
  1618. var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
  1619. var propertyIsEnumerableModule = objectPropertyIsEnumerable;
  1620. var toObject = toObject$5;
  1621. var IndexedObject = indexedObject;
  1622. // eslint-disable-next-line es/no-object-assign -- safe
  1623. var $assign = Object.assign;
  1624. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  1625. var defineProperty = Object.defineProperty;
  1626. var concat = uncurryThis([].concat);
  1627. // `Object.assign` method
  1628. // https://tc39.es/ecma262/#sec-object.assign
  1629. var objectAssign = !$assign || fails(function () {
  1630. // should have correct order of operations (Edge bug)
  1631. if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
  1632. enumerable: true,
  1633. get: function () {
  1634. defineProperty(this, 'b', {
  1635. value: 3,
  1636. enumerable: false
  1637. });
  1638. }
  1639. }), { b: 2 })).b !== 1) return true;
  1640. // should work with symbols and should have deterministic property order (V8 bug)
  1641. var A = {};
  1642. var B = {};
  1643. // eslint-disable-next-line es/no-symbol -- safe
  1644. var symbol = Symbol('assign detection');
  1645. var alphabet = 'abcdefghijklmnopqrst';
  1646. A[symbol] = 7;
  1647. alphabet.split('').forEach(function (chr) { B[chr] = chr; });
  1648. return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
  1649. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
  1650. var T = toObject(target);
  1651. var argumentsLength = arguments.length;
  1652. var index = 1;
  1653. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  1654. var propertyIsEnumerable = propertyIsEnumerableModule.f;
  1655. while (argumentsLength > index) {
  1656. var S = IndexedObject(arguments[index++]);
  1657. var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
  1658. var length = keys.length;
  1659. var j = 0;
  1660. var key;
  1661. while (length > j) {
  1662. key = keys[j++];
  1663. if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
  1664. }
  1665. } return T;
  1666. } : $assign;
  1667. var $ = _export;
  1668. var assign = objectAssign;
  1669. // `Object.assign` method
  1670. // https://tc39.es/ecma262/#sec-object.assign
  1671. // eslint-disable-next-line es/no-object-assign -- required for testing
  1672. $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
  1673. assign: assign
  1674. });
  1675. var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
  1676. var classof = classof$3;
  1677. // `Object.prototype.toString` method implementation
  1678. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1679. var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
  1680. return '[object ' + classof(this) + ']';
  1681. };
  1682. var TO_STRING_TAG_SUPPORT = toStringTagSupport;
  1683. var defineBuiltIn = defineBuiltIn$2;
  1684. var toString = objectToString;
  1685. // `Object.prototype.toString` method
  1686. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1687. if (!TO_STRING_TAG_SUPPORT) {
  1688. defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });
  1689. }
  1690. // iterable DOM collections
  1691. // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
  1692. var domIterables = {
  1693. CSSRuleList: 0,
  1694. CSSStyleDeclaration: 0,
  1695. CSSValueList: 0,
  1696. ClientRectList: 0,
  1697. DOMRectList: 0,
  1698. DOMStringList: 0,
  1699. DOMTokenList: 1,
  1700. DataTransferItemList: 0,
  1701. FileList: 0,
  1702. HTMLAllCollection: 0,
  1703. HTMLCollection: 0,
  1704. HTMLFormElement: 0,
  1705. HTMLSelectElement: 0,
  1706. MediaList: 0,
  1707. MimeTypeArray: 0,
  1708. NamedNodeMap: 0,
  1709. NodeList: 1,
  1710. PaintRequestList: 0,
  1711. Plugin: 0,
  1712. PluginArray: 0,
  1713. SVGLengthList: 0,
  1714. SVGNumberList: 0,
  1715. SVGPathSegList: 0,
  1716. SVGPointList: 0,
  1717. SVGStringList: 0,
  1718. SVGTransformList: 0,
  1719. SourceBufferList: 0,
  1720. StyleSheetList: 0,
  1721. TextTrackCueList: 0,
  1722. TextTrackList: 0,
  1723. TouchList: 0
  1724. };
  1725. // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
  1726. var documentCreateElement = documentCreateElement$2;
  1727. var classList = documentCreateElement('span').classList;
  1728. var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
  1729. var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
  1730. var $forEach = arrayIteration.forEach;
  1731. var arrayMethodIsStrict = arrayMethodIsStrict$3;
  1732. var STRICT_METHOD = arrayMethodIsStrict('forEach');
  1733. // `Array.prototype.forEach` method implementation
  1734. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1735. var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
  1736. return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1737. // eslint-disable-next-line es/no-array-prototype-foreach -- safe
  1738. } : [].forEach;
  1739. var global$1 = global$b;
  1740. var DOMIterables = domIterables;
  1741. var DOMTokenListPrototype = domTokenListPrototype;
  1742. var forEach = arrayForEach;
  1743. var createNonEnumerableProperty = createNonEnumerableProperty$3;
  1744. var handlePrototype = function (CollectionPrototype) {
  1745. // some Chrome versions have non-configurable methods on DOMTokenList
  1746. if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
  1747. createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
  1748. } catch (error) {
  1749. CollectionPrototype.forEach = forEach;
  1750. }
  1751. };
  1752. for (var COLLECTION_NAME in DOMIterables) {
  1753. if (DOMIterables[COLLECTION_NAME]) {
  1754. handlePrototype(global$1[COLLECTION_NAME] && global$1[COLLECTION_NAME].prototype);
  1755. }
  1756. }
  1757. handlePrototype(DOMTokenListPrototype);
  1758. /**
  1759. * @author: Yura Knoxville
  1760. * @version: v1.1.0
  1761. */
  1762. var Utils = $$7.fn.bootstrapTable.utils;
  1763. var initBodyCaller;
  1764. var groupBy = function groupBy(array, f) {
  1765. var tmpGroups = {};
  1766. array.forEach(function (o) {
  1767. var groups = f(o);
  1768. tmpGroups[groups] = tmpGroups[groups] || [];
  1769. tmpGroups[groups].push(o);
  1770. });
  1771. return tmpGroups;
  1772. };
  1773. Object.assign($$7.fn.bootstrapTable.defaults.icons, {
  1774. collapseGroup: {
  1775. bootstrap3: 'glyphicon-chevron-up',
  1776. bootstrap5: 'bi-chevron-up',
  1777. materialize: 'arrow_drop_down'
  1778. }[$$7.fn.bootstrapTable.theme] || 'fa-angle-up',
  1779. expandGroup: {
  1780. bootstrap3: 'glyphicon-chevron-down',
  1781. bootstrap5: 'bi-chevron-down',
  1782. materialize: 'arrow_drop_up'
  1783. }[$$7.fn.bootstrapTable.theme] || 'fa-angle-down'
  1784. });
  1785. Object.assign($$7.fn.bootstrapTable.defaults, {
  1786. groupBy: false,
  1787. groupByField: '',
  1788. groupByFormatter: undefined,
  1789. groupByToggle: false,
  1790. groupByShowToggleIcon: false,
  1791. groupByCollapsedGroups: []
  1792. });
  1793. var BootstrapTable = $$7.fn.bootstrapTable.Constructor;
  1794. var _initSort = BootstrapTable.prototype.initSort;
  1795. var _initBody = BootstrapTable.prototype.initBody;
  1796. var _updateSelected = BootstrapTable.prototype.updateSelected;
  1797. BootstrapTable.prototype.initSort = function () {
  1798. var _this = this;
  1799. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  1800. args[_key] = arguments[_key];
  1801. }
  1802. _initSort.apply(this, Array.prototype.slice.apply(args));
  1803. var that = this;
  1804. this.tableGroups = [];
  1805. if (this.options.groupBy && this.options.groupByField !== '') {
  1806. if (this.options.sortName !== this.options.groupByField) {
  1807. if (this.options.customSort) {
  1808. Utils.calculateObjectValue(this.options, this.options.customSort, [this.options.sortName, this.options.sortOrder, this.data]);
  1809. } else {
  1810. this.options.data.sort(function (a, b) {
  1811. var groupByFields = _this.getGroupByFields();
  1812. var fieldValuesA = [];
  1813. var fieldValuesB = [];
  1814. $$7.each(groupByFields, function (i, field) {
  1815. fieldValuesA.push(a[field]);
  1816. fieldValuesB.push(b[field]);
  1817. });
  1818. a = fieldValuesA.join();
  1819. b = fieldValuesB.join();
  1820. return a.localeCompare(b, undefined, {
  1821. numeric: true
  1822. });
  1823. });
  1824. }
  1825. }
  1826. var groups = groupBy(that.data, function (item) {
  1827. var groupByFields = _this.getGroupByFields();
  1828. var groupValues = [];
  1829. $$7.each(groupByFields, function (i, field) {
  1830. var value_ = Utils.getItemField(item, field, that.options.escape, item.escape);
  1831. groupValues.push(value_);
  1832. });
  1833. return groupValues.join(', ');
  1834. });
  1835. var index = 0;
  1836. $$7.each(groups, function (key, value) {
  1837. _this.tableGroups.push({
  1838. id: index,
  1839. name: key,
  1840. data: value
  1841. });
  1842. value.forEach(function (item) {
  1843. if (!item._data) {
  1844. item._data = {};
  1845. }
  1846. if (_this.isCollapsed(key, value)) {
  1847. item._class += ' hidden';
  1848. }
  1849. item._data['parent-index'] = index;
  1850. });
  1851. index++;
  1852. });
  1853. }
  1854. };
  1855. BootstrapTable.prototype.initBody = function () {
  1856. var _this2 = this;
  1857. initBodyCaller = true;
  1858. for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  1859. args[_key2] = arguments[_key2];
  1860. }
  1861. _initBody.apply(this, Array.prototype.slice.apply(args));
  1862. if (this.options.groupBy && this.options.groupByField !== '') {
  1863. var that = this;
  1864. var checkBox = false;
  1865. var visibleColumns = 0;
  1866. this.columns.forEach(function (column) {
  1867. if (column.checkbox && !that.options.singleSelect) {
  1868. checkBox = true;
  1869. } else if (column.visible) {
  1870. visibleColumns += 1;
  1871. }
  1872. });
  1873. if (this.options.detailView && !this.options.cardView) {
  1874. visibleColumns += 1;
  1875. }
  1876. this.tableGroups.forEach(function (item) {
  1877. var html = [];
  1878. html.push(Utils.sprintf('<tr class="info group-by %s" data-group-index="%s">', _this2.options.groupByToggle ? 'expanded' : '', item.id));
  1879. if (that.options.detailView && !that.options.cardView) {
  1880. html.push('<td class="detail"></td>');
  1881. }
  1882. if (checkBox) {
  1883. html.push('<td class="bs-checkbox">', '<input name="btSelectGroup" type="checkbox" />', '</td>');
  1884. }
  1885. var formattedValue = item.name;
  1886. if (that.options.groupByFormatter !== undefined) {
  1887. formattedValue = Utils.calculateObjectValue(that.options, that.options.groupByFormatter, [item.name, item.id, item.data]);
  1888. }
  1889. html.push('<td', Utils.sprintf(' colspan="%s"', visibleColumns), '>', formattedValue);
  1890. var icon = _this2.options.icons.collapseGroup;
  1891. if (_this2.isCollapsed(item.name, item.data)) {
  1892. icon = _this2.options.icons.expandGroup;
  1893. }
  1894. if (_this2.options.groupByToggle && _this2.options.groupByShowToggleIcon) {
  1895. html.push("<span class=\"float-right ".concat(_this2.options.iconsPrefix, " ").concat(icon, "\"></span>"));
  1896. }
  1897. html.push('</td></tr>');
  1898. that.$body.find("tr[data-parent-index=".concat(item.id, "]:first")).before($$7(html.join('')));
  1899. });
  1900. this.$selectGroup = [];
  1901. this.$body.find('[name="btSelectGroup"]').each(function () {
  1902. var self = $$7(this);
  1903. that.$selectGroup.push({
  1904. group: self,
  1905. item: that.$selectItem.filter(function () {
  1906. return $$7(this).closest('tr').data('parent-index') === self.closest('tr').data('group-index');
  1907. })
  1908. });
  1909. });
  1910. if (this.options.groupByToggle) {
  1911. this.$container.off('click', '.group-by').on('click', '.group-by', function () {
  1912. var $this = $$7(this);
  1913. var groupIndex = $this.closest('tr').data('group-index');
  1914. var $groupRows = that.$body.find("tr[data-parent-index=".concat(groupIndex, "]"));
  1915. $this.toggleClass('expanded collapsed');
  1916. $this.find('span').toggleClass("".concat(that.options.icons.collapseGroup, " ").concat(that.options.icons.expandGroup));
  1917. $groupRows.toggleClass('hidden');
  1918. $groupRows.each(function (i, element) {
  1919. return that.collapseRow($$7(element).data('index'));
  1920. });
  1921. });
  1922. }
  1923. this.$container.off('click', '[name="btSelectGroup"]').on('click', '[name="btSelectGroup"]', function (event) {
  1924. event.stopImmediatePropagation();
  1925. var self = $$7(this);
  1926. var checked = self.prop('checked');
  1927. that[checked ? 'checkGroup' : 'uncheckGroup']($$7(this).closest('tr').data('group-index'));
  1928. });
  1929. }
  1930. initBodyCaller = false;
  1931. this.updateSelected();
  1932. };
  1933. BootstrapTable.prototype.updateSelected = function () {
  1934. if (!initBodyCaller) {
  1935. for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  1936. args[_key3] = arguments[_key3];
  1937. }
  1938. _updateSelected.apply(this, Array.prototype.slice.apply(args));
  1939. if (this.options.groupBy && this.options.groupByField !== '') {
  1940. this.$selectGroup.forEach(function (item) {
  1941. var checkGroup = item.item.filter(':enabled').length === item.item.filter(':enabled').filter(':checked').length;
  1942. item.group.prop('checked', checkGroup);
  1943. });
  1944. }
  1945. }
  1946. };
  1947. BootstrapTable.prototype.checkGroup = function (index) {
  1948. this.checkGroup_(index, true);
  1949. };
  1950. BootstrapTable.prototype.uncheckGroup = function (index) {
  1951. this.checkGroup_(index, false);
  1952. };
  1953. BootstrapTable.prototype.isCollapsed = function (groupKey, items) {
  1954. if (this.options.groupByCollapsedGroups) {
  1955. var collapsedGroups = Utils.calculateObjectValue(this, this.options.groupByCollapsedGroups, [groupKey, items], true);
  1956. if ($$7.inArray(groupKey, collapsedGroups) > -1) {
  1957. return true;
  1958. }
  1959. }
  1960. return false;
  1961. };
  1962. BootstrapTable.prototype.checkGroup_ = function (index, checked) {
  1963. var rowsBefore = this.getSelections();
  1964. var filter = function filter() {
  1965. return $$7(this).closest('tr').data('parent-index') === index;
  1966. };
  1967. this.$selectItem.filter(filter).prop('checked', checked);
  1968. this.updateRows();
  1969. this.updateSelected();
  1970. var rowsAfter = this.getSelections();
  1971. if (checked) {
  1972. this.trigger('check-all', rowsAfter, rowsBefore);
  1973. return;
  1974. }
  1975. this.trigger('uncheck-all', rowsAfter, rowsBefore);
  1976. };
  1977. BootstrapTable.prototype.getGroupByFields = function () {
  1978. var groupByFields = this.options.groupByField;
  1979. if (!$$7.isArray(this.options.groupByField)) {
  1980. groupByFields = [this.options.groupByField];
  1981. }
  1982. return groupByFields;
  1983. };
  1984. $$7.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  1985. function _class() {
  1986. _classCallCheck(this, _class);
  1987. return _callSuper(this, _class, arguments);
  1988. }
  1989. _inherits(_class, _$$BootstrapTable);
  1990. return _createClass(_class, [{
  1991. key: "scrollTo",
  1992. value: function scrollTo(params) {
  1993. if (this.options.groupBy) {
  1994. var options = {
  1995. unit: 'px',
  1996. value: 0
  1997. };
  1998. if (_typeof(params) === 'object') {
  1999. options = Object.assign(options, params);
  2000. }
  2001. if (options.unit === 'rows') {
  2002. var scrollTo = 0;
  2003. this.$body.find("> tr:not(.group-by):lt(".concat(options.value, ")")).each(function (i, el) {
  2004. scrollTo += $$7(el).outerHeight(true);
  2005. });
  2006. var $targetColumn = this.$body.find("> tr:not(.group-by):eq(".concat(options.value, ")"));
  2007. $targetColumn.prevAll('.group-by').each(function (i, el) {
  2008. scrollTo += $$7(el).outerHeight(true);
  2009. });
  2010. this.$tableBody.scrollTop(scrollTo);
  2011. return;
  2012. }
  2013. }
  2014. _get(_getPrototypeOf(_class.prototype), "scrollTo", this).call(this, params);
  2015. }
  2016. }]);
  2017. }($$7.BootstrapTable);
  2018. }));