bootstrap-table-group-by.js 80 KB

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