bootstrap-table-group-by.js 106 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207
  1. (function (global, factory) {
  2. typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
  3. typeof define === 'function' && define.amd ? define(['jquery'], factory) :
  4. (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
  5. })(this, (function ($) { 'use strict';
  6. function _assertThisInitialized(e) {
  7. if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  8. return e;
  9. }
  10. function _callSuper(t, o, e) {
  11. return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
  12. }
  13. function _classCallCheck(a, n) {
  14. if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
  15. }
  16. function _defineProperties(e, r) {
  17. for (var t = 0; t < r.length; t++) {
  18. var o = r[t];
  19. o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
  20. }
  21. }
  22. function _createClass(e, r, t) {
  23. return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
  24. writable: !1
  25. }), e;
  26. }
  27. function _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 _superPropGet(t, e, r, o) {
  76. var p = _get(_getPrototypeOf(t.prototype ), e, r);
  77. return function (t) {
  78. return p.apply(r, t);
  79. } ;
  80. }
  81. function _toPrimitive(t, r) {
  82. if ("object" != typeof t || !t) return t;
  83. var e = t[Symbol.toPrimitive];
  84. if (void 0 !== e) {
  85. var i = e.call(t, r);
  86. if ("object" != typeof i) return i;
  87. throw new TypeError("@@toPrimitive must return a primitive value.");
  88. }
  89. return (String )(t);
  90. }
  91. function _toPropertyKey(t) {
  92. var i = _toPrimitive(t, "string");
  93. return "symbol" == typeof i ? i : i + "";
  94. }
  95. function _typeof(o) {
  96. "@babel/helpers - typeof";
  97. return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
  98. return typeof o;
  99. } : function (o) {
  100. return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
  101. }, _typeof(o);
  102. }
  103. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  104. var es_array_concat = {};
  105. var globalThis_1;
  106. var hasRequiredGlobalThis;
  107. function requireGlobalThis () {
  108. if (hasRequiredGlobalThis) return globalThis_1;
  109. hasRequiredGlobalThis = 1;
  110. var check = function (it) {
  111. return it && it.Math === Math && it;
  112. };
  113. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  114. globalThis_1 =
  115. // eslint-disable-next-line es/no-global-this -- safe
  116. check(typeof globalThis == 'object' && globalThis) ||
  117. check(typeof window == 'object' && window) ||
  118. // eslint-disable-next-line no-restricted-globals -- safe
  119. check(typeof self == 'object' && self) ||
  120. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  121. check(typeof globalThis_1 == 'object' && globalThis_1) ||
  122. // eslint-disable-next-line no-new-func -- fallback
  123. (function () { return this; })() || Function('return this')();
  124. return globalThis_1;
  125. }
  126. var objectGetOwnPropertyDescriptor = {};
  127. var fails;
  128. var hasRequiredFails;
  129. function requireFails () {
  130. if (hasRequiredFails) return fails;
  131. hasRequiredFails = 1;
  132. fails = function (exec) {
  133. try {
  134. return !!exec();
  135. } catch (error) {
  136. return true;
  137. }
  138. };
  139. return fails;
  140. }
  141. var descriptors;
  142. var hasRequiredDescriptors;
  143. function requireDescriptors () {
  144. if (hasRequiredDescriptors) return descriptors;
  145. hasRequiredDescriptors = 1;
  146. var fails = requireFails();
  147. // Detect IE8's incomplete defineProperty implementation
  148. descriptors = !fails(function () {
  149. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  150. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
  151. });
  152. return descriptors;
  153. }
  154. var functionBindNative;
  155. var hasRequiredFunctionBindNative;
  156. function requireFunctionBindNative () {
  157. if (hasRequiredFunctionBindNative) return functionBindNative;
  158. hasRequiredFunctionBindNative = 1;
  159. var fails = requireFails();
  160. functionBindNative = !fails(function () {
  161. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  162. var test = (function () { /* empty */ }).bind();
  163. // eslint-disable-next-line no-prototype-builtins -- safe
  164. return typeof test != 'function' || test.hasOwnProperty('prototype');
  165. });
  166. return functionBindNative;
  167. }
  168. var functionCall;
  169. var hasRequiredFunctionCall;
  170. function requireFunctionCall () {
  171. if (hasRequiredFunctionCall) return functionCall;
  172. hasRequiredFunctionCall = 1;
  173. var NATIVE_BIND = requireFunctionBindNative();
  174. var call = Function.prototype.call;
  175. functionCall = NATIVE_BIND ? call.bind(call) : function () {
  176. return call.apply(call, arguments);
  177. };
  178. return functionCall;
  179. }
  180. var objectPropertyIsEnumerable = {};
  181. var hasRequiredObjectPropertyIsEnumerable;
  182. function requireObjectPropertyIsEnumerable () {
  183. if (hasRequiredObjectPropertyIsEnumerable) return objectPropertyIsEnumerable;
  184. hasRequiredObjectPropertyIsEnumerable = 1;
  185. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  186. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  187. var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  188. // Nashorn ~ JDK8 bug
  189. var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  190. // `Object.prototype.propertyIsEnumerable` method implementation
  191. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  192. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  193. var descriptor = getOwnPropertyDescriptor(this, V);
  194. return !!descriptor && descriptor.enumerable;
  195. } : $propertyIsEnumerable;
  196. return objectPropertyIsEnumerable;
  197. }
  198. var createPropertyDescriptor;
  199. var hasRequiredCreatePropertyDescriptor;
  200. function requireCreatePropertyDescriptor () {
  201. if (hasRequiredCreatePropertyDescriptor) return createPropertyDescriptor;
  202. hasRequiredCreatePropertyDescriptor = 1;
  203. createPropertyDescriptor = function (bitmap, value) {
  204. return {
  205. enumerable: !(bitmap & 1),
  206. configurable: !(bitmap & 2),
  207. writable: !(bitmap & 4),
  208. value: value
  209. };
  210. };
  211. return createPropertyDescriptor;
  212. }
  213. var functionUncurryThis;
  214. var hasRequiredFunctionUncurryThis;
  215. function requireFunctionUncurryThis () {
  216. if (hasRequiredFunctionUncurryThis) return functionUncurryThis;
  217. hasRequiredFunctionUncurryThis = 1;
  218. var NATIVE_BIND = requireFunctionBindNative();
  219. var FunctionPrototype = Function.prototype;
  220. var call = FunctionPrototype.call;
  221. var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
  222. functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
  223. return function () {
  224. return call.apply(fn, arguments);
  225. };
  226. };
  227. return functionUncurryThis;
  228. }
  229. var classofRaw;
  230. var hasRequiredClassofRaw;
  231. function requireClassofRaw () {
  232. if (hasRequiredClassofRaw) return classofRaw;
  233. hasRequiredClassofRaw = 1;
  234. var uncurryThis = requireFunctionUncurryThis();
  235. var toString = uncurryThis({}.toString);
  236. var stringSlice = uncurryThis(''.slice);
  237. classofRaw = function (it) {
  238. return stringSlice(toString(it), 8, -1);
  239. };
  240. return classofRaw;
  241. }
  242. var indexedObject;
  243. var hasRequiredIndexedObject;
  244. function requireIndexedObject () {
  245. if (hasRequiredIndexedObject) return indexedObject;
  246. hasRequiredIndexedObject = 1;
  247. var uncurryThis = requireFunctionUncurryThis();
  248. var fails = requireFails();
  249. var classof = requireClassofRaw();
  250. var $Object = Object;
  251. var split = uncurryThis(''.split);
  252. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  253. indexedObject = fails(function () {
  254. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  255. // eslint-disable-next-line no-prototype-builtins -- safe
  256. return !$Object('z').propertyIsEnumerable(0);
  257. }) ? function (it) {
  258. return classof(it) === 'String' ? split(it, '') : $Object(it);
  259. } : $Object;
  260. return indexedObject;
  261. }
  262. var isNullOrUndefined;
  263. var hasRequiredIsNullOrUndefined;
  264. function requireIsNullOrUndefined () {
  265. if (hasRequiredIsNullOrUndefined) return isNullOrUndefined;
  266. hasRequiredIsNullOrUndefined = 1;
  267. // we can't use just `it == null` since of `document.all` special case
  268. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  269. isNullOrUndefined = function (it) {
  270. return it === null || it === undefined;
  271. };
  272. return isNullOrUndefined;
  273. }
  274. var requireObjectCoercible;
  275. var hasRequiredRequireObjectCoercible;
  276. function requireRequireObjectCoercible () {
  277. if (hasRequiredRequireObjectCoercible) return requireObjectCoercible;
  278. hasRequiredRequireObjectCoercible = 1;
  279. var isNullOrUndefined = requireIsNullOrUndefined();
  280. var $TypeError = TypeError;
  281. // `RequireObjectCoercible` abstract operation
  282. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  283. requireObjectCoercible = function (it) {
  284. if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
  285. return it;
  286. };
  287. return requireObjectCoercible;
  288. }
  289. var toIndexedObject;
  290. var hasRequiredToIndexedObject;
  291. function requireToIndexedObject () {
  292. if (hasRequiredToIndexedObject) return toIndexedObject;
  293. hasRequiredToIndexedObject = 1;
  294. // toObject with fallback for non-array-like ES3 strings
  295. var IndexedObject = requireIndexedObject();
  296. var requireObjectCoercible = requireRequireObjectCoercible();
  297. toIndexedObject = function (it) {
  298. return IndexedObject(requireObjectCoercible(it));
  299. };
  300. return toIndexedObject;
  301. }
  302. var isCallable;
  303. var hasRequiredIsCallable;
  304. function requireIsCallable () {
  305. if (hasRequiredIsCallable) return isCallable;
  306. hasRequiredIsCallable = 1;
  307. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  308. var documentAll = typeof document == 'object' && document.all;
  309. // `IsCallable` abstract operation
  310. // https://tc39.es/ecma262/#sec-iscallable
  311. // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
  312. isCallable = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
  313. return typeof argument == 'function' || argument === documentAll;
  314. } : function (argument) {
  315. return typeof argument == 'function';
  316. };
  317. return isCallable;
  318. }
  319. var isObject;
  320. var hasRequiredIsObject;
  321. function requireIsObject () {
  322. if (hasRequiredIsObject) return isObject;
  323. hasRequiredIsObject = 1;
  324. var isCallable = requireIsCallable();
  325. isObject = function (it) {
  326. return typeof it == 'object' ? it !== null : isCallable(it);
  327. };
  328. return isObject;
  329. }
  330. var getBuiltIn;
  331. var hasRequiredGetBuiltIn;
  332. function requireGetBuiltIn () {
  333. if (hasRequiredGetBuiltIn) return getBuiltIn;
  334. hasRequiredGetBuiltIn = 1;
  335. var globalThis = requireGlobalThis();
  336. var isCallable = requireIsCallable();
  337. var aFunction = function (argument) {
  338. return isCallable(argument) ? argument : undefined;
  339. };
  340. getBuiltIn = function (namespace, method) {
  341. return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method];
  342. };
  343. return getBuiltIn;
  344. }
  345. var objectIsPrototypeOf;
  346. var hasRequiredObjectIsPrototypeOf;
  347. function requireObjectIsPrototypeOf () {
  348. if (hasRequiredObjectIsPrototypeOf) return objectIsPrototypeOf;
  349. hasRequiredObjectIsPrototypeOf = 1;
  350. var uncurryThis = requireFunctionUncurryThis();
  351. objectIsPrototypeOf = uncurryThis({}.isPrototypeOf);
  352. return objectIsPrototypeOf;
  353. }
  354. var environmentUserAgent;
  355. var hasRequiredEnvironmentUserAgent;
  356. function requireEnvironmentUserAgent () {
  357. if (hasRequiredEnvironmentUserAgent) return environmentUserAgent;
  358. hasRequiredEnvironmentUserAgent = 1;
  359. var globalThis = requireGlobalThis();
  360. var navigator = globalThis.navigator;
  361. var userAgent = navigator && navigator.userAgent;
  362. environmentUserAgent = userAgent ? String(userAgent) : '';
  363. return environmentUserAgent;
  364. }
  365. var environmentV8Version;
  366. var hasRequiredEnvironmentV8Version;
  367. function requireEnvironmentV8Version () {
  368. if (hasRequiredEnvironmentV8Version) return environmentV8Version;
  369. hasRequiredEnvironmentV8Version = 1;
  370. var globalThis = requireGlobalThis();
  371. var userAgent = requireEnvironmentUserAgent();
  372. var process = globalThis.process;
  373. var Deno = globalThis.Deno;
  374. var versions = process && process.versions || Deno && Deno.version;
  375. var v8 = versions && versions.v8;
  376. var match, version;
  377. if (v8) {
  378. match = v8.split('.');
  379. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  380. // but their correct versions are not interesting for us
  381. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  382. }
  383. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  384. // so check `userAgent` even if `.v8` exists, but 0
  385. if (!version && userAgent) {
  386. match = userAgent.match(/Edge\/(\d+)/);
  387. if (!match || match[1] >= 74) {
  388. match = userAgent.match(/Chrome\/(\d+)/);
  389. if (match) version = +match[1];
  390. }
  391. }
  392. environmentV8Version = version;
  393. return environmentV8Version;
  394. }
  395. var symbolConstructorDetection;
  396. var hasRequiredSymbolConstructorDetection;
  397. function requireSymbolConstructorDetection () {
  398. if (hasRequiredSymbolConstructorDetection) return symbolConstructorDetection;
  399. hasRequiredSymbolConstructorDetection = 1;
  400. /* eslint-disable es/no-symbol -- required for testing */
  401. var V8_VERSION = requireEnvironmentV8Version();
  402. var fails = requireFails();
  403. var globalThis = requireGlobalThis();
  404. var $String = globalThis.String;
  405. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  406. symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
  407. var symbol = Symbol('symbol detection');
  408. // Chrome 38 Symbol has incorrect toString conversion
  409. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  410. // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
  411. // of course, fail.
  412. return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
  413. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  414. !Symbol.sham && V8_VERSION && V8_VERSION < 41;
  415. });
  416. return symbolConstructorDetection;
  417. }
  418. var useSymbolAsUid;
  419. var hasRequiredUseSymbolAsUid;
  420. function requireUseSymbolAsUid () {
  421. if (hasRequiredUseSymbolAsUid) return useSymbolAsUid;
  422. hasRequiredUseSymbolAsUid = 1;
  423. /* eslint-disable es/no-symbol -- required for testing */
  424. var NATIVE_SYMBOL = requireSymbolConstructorDetection();
  425. useSymbolAsUid = NATIVE_SYMBOL
  426. && !Symbol.sham
  427. && typeof Symbol.iterator == 'symbol';
  428. return useSymbolAsUid;
  429. }
  430. var isSymbol;
  431. var hasRequiredIsSymbol;
  432. function requireIsSymbol () {
  433. if (hasRequiredIsSymbol) return isSymbol;
  434. hasRequiredIsSymbol = 1;
  435. var getBuiltIn = requireGetBuiltIn();
  436. var isCallable = requireIsCallable();
  437. var isPrototypeOf = requireObjectIsPrototypeOf();
  438. var USE_SYMBOL_AS_UID = requireUseSymbolAsUid();
  439. var $Object = Object;
  440. isSymbol = USE_SYMBOL_AS_UID ? function (it) {
  441. return typeof it == 'symbol';
  442. } : function (it) {
  443. var $Symbol = getBuiltIn('Symbol');
  444. return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
  445. };
  446. return isSymbol;
  447. }
  448. var tryToString;
  449. var hasRequiredTryToString;
  450. function requireTryToString () {
  451. if (hasRequiredTryToString) return tryToString;
  452. hasRequiredTryToString = 1;
  453. var $String = String;
  454. tryToString = function (argument) {
  455. try {
  456. return $String(argument);
  457. } catch (error) {
  458. return 'Object';
  459. }
  460. };
  461. return tryToString;
  462. }
  463. var aCallable;
  464. var hasRequiredACallable;
  465. function requireACallable () {
  466. if (hasRequiredACallable) return aCallable;
  467. hasRequiredACallable = 1;
  468. var isCallable = requireIsCallable();
  469. var tryToString = requireTryToString();
  470. var $TypeError = TypeError;
  471. // `Assert: IsCallable(argument) is true`
  472. aCallable = function (argument) {
  473. if (isCallable(argument)) return argument;
  474. throw new $TypeError(tryToString(argument) + ' is not a function');
  475. };
  476. return aCallable;
  477. }
  478. var getMethod;
  479. var hasRequiredGetMethod;
  480. function requireGetMethod () {
  481. if (hasRequiredGetMethod) return getMethod;
  482. hasRequiredGetMethod = 1;
  483. var aCallable = requireACallable();
  484. var isNullOrUndefined = requireIsNullOrUndefined();
  485. // `GetMethod` abstract operation
  486. // https://tc39.es/ecma262/#sec-getmethod
  487. getMethod = function (V, P) {
  488. var func = V[P];
  489. return isNullOrUndefined(func) ? undefined : aCallable(func);
  490. };
  491. return getMethod;
  492. }
  493. var ordinaryToPrimitive;
  494. var hasRequiredOrdinaryToPrimitive;
  495. function requireOrdinaryToPrimitive () {
  496. if (hasRequiredOrdinaryToPrimitive) return ordinaryToPrimitive;
  497. hasRequiredOrdinaryToPrimitive = 1;
  498. var call = requireFunctionCall();
  499. var isCallable = requireIsCallable();
  500. var isObject = requireIsObject();
  501. var $TypeError = TypeError;
  502. // `OrdinaryToPrimitive` abstract operation
  503. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  504. ordinaryToPrimitive = function (input, pref) {
  505. var fn, val;
  506. if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
  507. if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;
  508. if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
  509. throw new $TypeError("Can't convert object to primitive value");
  510. };
  511. return ordinaryToPrimitive;
  512. }
  513. var sharedStore = {exports: {}};
  514. var isPure;
  515. var hasRequiredIsPure;
  516. function requireIsPure () {
  517. if (hasRequiredIsPure) return isPure;
  518. hasRequiredIsPure = 1;
  519. isPure = false;
  520. return isPure;
  521. }
  522. var defineGlobalProperty;
  523. var hasRequiredDefineGlobalProperty;
  524. function requireDefineGlobalProperty () {
  525. if (hasRequiredDefineGlobalProperty) return defineGlobalProperty;
  526. hasRequiredDefineGlobalProperty = 1;
  527. var globalThis = requireGlobalThis();
  528. // eslint-disable-next-line es/no-object-defineproperty -- safe
  529. var defineProperty = Object.defineProperty;
  530. defineGlobalProperty = function (key, value) {
  531. try {
  532. defineProperty(globalThis, key, { value: value, configurable: true, writable: true });
  533. } catch (error) {
  534. globalThis[key] = value;
  535. } return value;
  536. };
  537. return defineGlobalProperty;
  538. }
  539. var hasRequiredSharedStore;
  540. function requireSharedStore () {
  541. if (hasRequiredSharedStore) return sharedStore.exports;
  542. hasRequiredSharedStore = 1;
  543. var IS_PURE = requireIsPure();
  544. var globalThis = requireGlobalThis();
  545. var defineGlobalProperty = requireDefineGlobalProperty();
  546. var SHARED = '__core-js_shared__';
  547. var store = sharedStore.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
  548. (store.versions || (store.versions = [])).push({
  549. version: '3.38.1',
  550. mode: IS_PURE ? 'pure' : 'global',
  551. copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
  552. license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE',
  553. source: 'https://github.com/zloirock/core-js'
  554. });
  555. return sharedStore.exports;
  556. }
  557. var shared;
  558. var hasRequiredShared;
  559. function requireShared () {
  560. if (hasRequiredShared) return shared;
  561. hasRequiredShared = 1;
  562. var store = requireSharedStore();
  563. shared = function (key, value) {
  564. return store[key] || (store[key] = value || {});
  565. };
  566. return shared;
  567. }
  568. var toObject;
  569. var hasRequiredToObject;
  570. function requireToObject () {
  571. if (hasRequiredToObject) return toObject;
  572. hasRequiredToObject = 1;
  573. var requireObjectCoercible = requireRequireObjectCoercible();
  574. var $Object = Object;
  575. // `ToObject` abstract operation
  576. // https://tc39.es/ecma262/#sec-toobject
  577. toObject = function (argument) {
  578. return $Object(requireObjectCoercible(argument));
  579. };
  580. return toObject;
  581. }
  582. var hasOwnProperty_1;
  583. var hasRequiredHasOwnProperty;
  584. function requireHasOwnProperty () {
  585. if (hasRequiredHasOwnProperty) return hasOwnProperty_1;
  586. hasRequiredHasOwnProperty = 1;
  587. var uncurryThis = requireFunctionUncurryThis();
  588. var toObject = requireToObject();
  589. var hasOwnProperty = uncurryThis({}.hasOwnProperty);
  590. // `HasOwnProperty` abstract operation
  591. // https://tc39.es/ecma262/#sec-hasownproperty
  592. // eslint-disable-next-line es/no-object-hasown -- safe
  593. hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  594. return hasOwnProperty(toObject(it), key);
  595. };
  596. return hasOwnProperty_1;
  597. }
  598. var uid;
  599. var hasRequiredUid;
  600. function requireUid () {
  601. if (hasRequiredUid) return uid;
  602. hasRequiredUid = 1;
  603. var uncurryThis = requireFunctionUncurryThis();
  604. var id = 0;
  605. var postfix = Math.random();
  606. var toString = uncurryThis(1.0.toString);
  607. uid = function (key) {
  608. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
  609. };
  610. return uid;
  611. }
  612. var wellKnownSymbol;
  613. var hasRequiredWellKnownSymbol;
  614. function requireWellKnownSymbol () {
  615. if (hasRequiredWellKnownSymbol) return wellKnownSymbol;
  616. hasRequiredWellKnownSymbol = 1;
  617. var globalThis = requireGlobalThis();
  618. var shared = requireShared();
  619. var hasOwn = requireHasOwnProperty();
  620. var uid = requireUid();
  621. var NATIVE_SYMBOL = requireSymbolConstructorDetection();
  622. var USE_SYMBOL_AS_UID = requireUseSymbolAsUid();
  623. var Symbol = globalThis.Symbol;
  624. var WellKnownSymbolsStore = shared('wks');
  625. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;
  626. wellKnownSymbol = function (name) {
  627. if (!hasOwn(WellKnownSymbolsStore, name)) {
  628. WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)
  629. ? Symbol[name]
  630. : createWellKnownSymbol('Symbol.' + name);
  631. } return WellKnownSymbolsStore[name];
  632. };
  633. return wellKnownSymbol;
  634. }
  635. var toPrimitive;
  636. var hasRequiredToPrimitive;
  637. function requireToPrimitive () {
  638. if (hasRequiredToPrimitive) return toPrimitive;
  639. hasRequiredToPrimitive = 1;
  640. var call = requireFunctionCall();
  641. var isObject = requireIsObject();
  642. var isSymbol = requireIsSymbol();
  643. var getMethod = requireGetMethod();
  644. var ordinaryToPrimitive = requireOrdinaryToPrimitive();
  645. var wellKnownSymbol = requireWellKnownSymbol();
  646. var $TypeError = TypeError;
  647. var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
  648. // `ToPrimitive` abstract operation
  649. // https://tc39.es/ecma262/#sec-toprimitive
  650. toPrimitive = function (input, pref) {
  651. if (!isObject(input) || isSymbol(input)) return input;
  652. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  653. var result;
  654. if (exoticToPrim) {
  655. if (pref === undefined) pref = 'default';
  656. result = call(exoticToPrim, input, pref);
  657. if (!isObject(result) || isSymbol(result)) return result;
  658. throw new $TypeError("Can't convert object to primitive value");
  659. }
  660. if (pref === undefined) pref = 'number';
  661. return ordinaryToPrimitive(input, pref);
  662. };
  663. return toPrimitive;
  664. }
  665. var toPropertyKey;
  666. var hasRequiredToPropertyKey;
  667. function requireToPropertyKey () {
  668. if (hasRequiredToPropertyKey) return toPropertyKey;
  669. hasRequiredToPropertyKey = 1;
  670. var toPrimitive = requireToPrimitive();
  671. var isSymbol = requireIsSymbol();
  672. // `ToPropertyKey` abstract operation
  673. // https://tc39.es/ecma262/#sec-topropertykey
  674. toPropertyKey = function (argument) {
  675. var key = toPrimitive(argument, 'string');
  676. return isSymbol(key) ? key : key + '';
  677. };
  678. return toPropertyKey;
  679. }
  680. var documentCreateElement;
  681. var hasRequiredDocumentCreateElement;
  682. function requireDocumentCreateElement () {
  683. if (hasRequiredDocumentCreateElement) return documentCreateElement;
  684. hasRequiredDocumentCreateElement = 1;
  685. var globalThis = requireGlobalThis();
  686. var isObject = requireIsObject();
  687. var document = globalThis.document;
  688. // typeof document.createElement is 'object' in old IE
  689. var EXISTS = isObject(document) && isObject(document.createElement);
  690. documentCreateElement = function (it) {
  691. return EXISTS ? document.createElement(it) : {};
  692. };
  693. return documentCreateElement;
  694. }
  695. var ie8DomDefine;
  696. var hasRequiredIe8DomDefine;
  697. function requireIe8DomDefine () {
  698. if (hasRequiredIe8DomDefine) return ie8DomDefine;
  699. hasRequiredIe8DomDefine = 1;
  700. var DESCRIPTORS = requireDescriptors();
  701. var fails = requireFails();
  702. var createElement = requireDocumentCreateElement();
  703. // Thanks to IE8 for its funny defineProperty
  704. ie8DomDefine = !DESCRIPTORS && !fails(function () {
  705. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  706. return Object.defineProperty(createElement('div'), 'a', {
  707. get: function () { return 7; }
  708. }).a !== 7;
  709. });
  710. return ie8DomDefine;
  711. }
  712. var hasRequiredObjectGetOwnPropertyDescriptor;
  713. function requireObjectGetOwnPropertyDescriptor () {
  714. if (hasRequiredObjectGetOwnPropertyDescriptor) return objectGetOwnPropertyDescriptor;
  715. hasRequiredObjectGetOwnPropertyDescriptor = 1;
  716. var DESCRIPTORS = requireDescriptors();
  717. var call = requireFunctionCall();
  718. var propertyIsEnumerableModule = requireObjectPropertyIsEnumerable();
  719. var createPropertyDescriptor = requireCreatePropertyDescriptor();
  720. var toIndexedObject = requireToIndexedObject();
  721. var toPropertyKey = requireToPropertyKey();
  722. var hasOwn = requireHasOwnProperty();
  723. var IE8_DOM_DEFINE = requireIe8DomDefine();
  724. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  725. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  726. // `Object.getOwnPropertyDescriptor` method
  727. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  728. objectGetOwnPropertyDescriptor.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
  729. O = toIndexedObject(O);
  730. P = toPropertyKey(P);
  731. if (IE8_DOM_DEFINE) try {
  732. return $getOwnPropertyDescriptor(O, P);
  733. } catch (error) { /* empty */ }
  734. if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
  735. };
  736. return objectGetOwnPropertyDescriptor;
  737. }
  738. var objectDefineProperty = {};
  739. var v8PrototypeDefineBug;
  740. var hasRequiredV8PrototypeDefineBug;
  741. function requireV8PrototypeDefineBug () {
  742. if (hasRequiredV8PrototypeDefineBug) return v8PrototypeDefineBug;
  743. hasRequiredV8PrototypeDefineBug = 1;
  744. var DESCRIPTORS = requireDescriptors();
  745. var fails = requireFails();
  746. // V8 ~ Chrome 36-
  747. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  748. v8PrototypeDefineBug = DESCRIPTORS && fails(function () {
  749. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  750. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  751. value: 42,
  752. writable: false
  753. }).prototype !== 42;
  754. });
  755. return v8PrototypeDefineBug;
  756. }
  757. var anObject;
  758. var hasRequiredAnObject;
  759. function requireAnObject () {
  760. if (hasRequiredAnObject) return anObject;
  761. hasRequiredAnObject = 1;
  762. var isObject = requireIsObject();
  763. var $String = String;
  764. var $TypeError = TypeError;
  765. // `Assert: Type(argument) is Object`
  766. anObject = function (argument) {
  767. if (isObject(argument)) return argument;
  768. throw new $TypeError($String(argument) + ' is not an object');
  769. };
  770. return anObject;
  771. }
  772. var hasRequiredObjectDefineProperty;
  773. function requireObjectDefineProperty () {
  774. if (hasRequiredObjectDefineProperty) return objectDefineProperty;
  775. hasRequiredObjectDefineProperty = 1;
  776. var DESCRIPTORS = requireDescriptors();
  777. var IE8_DOM_DEFINE = requireIe8DomDefine();
  778. var V8_PROTOTYPE_DEFINE_BUG = requireV8PrototypeDefineBug();
  779. var anObject = requireAnObject();
  780. var toPropertyKey = requireToPropertyKey();
  781. var $TypeError = TypeError;
  782. // eslint-disable-next-line es/no-object-defineproperty -- safe
  783. var $defineProperty = Object.defineProperty;
  784. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  785. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  786. var ENUMERABLE = 'enumerable';
  787. var CONFIGURABLE = 'configurable';
  788. var WRITABLE = 'writable';
  789. // `Object.defineProperty` method
  790. // https://tc39.es/ecma262/#sec-object.defineproperty
  791. objectDefineProperty.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
  792. anObject(O);
  793. P = toPropertyKey(P);
  794. anObject(Attributes);
  795. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  796. var current = $getOwnPropertyDescriptor(O, P);
  797. if (current && current[WRITABLE]) {
  798. O[P] = Attributes.value;
  799. Attributes = {
  800. configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
  801. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  802. writable: false
  803. };
  804. }
  805. } return $defineProperty(O, P, Attributes);
  806. } : $defineProperty : function defineProperty(O, P, Attributes) {
  807. anObject(O);
  808. P = toPropertyKey(P);
  809. anObject(Attributes);
  810. if (IE8_DOM_DEFINE) try {
  811. return $defineProperty(O, P, Attributes);
  812. } catch (error) { /* empty */ }
  813. if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
  814. if ('value' in Attributes) O[P] = Attributes.value;
  815. return O;
  816. };
  817. return objectDefineProperty;
  818. }
  819. var createNonEnumerableProperty;
  820. var hasRequiredCreateNonEnumerableProperty;
  821. function requireCreateNonEnumerableProperty () {
  822. if (hasRequiredCreateNonEnumerableProperty) return createNonEnumerableProperty;
  823. hasRequiredCreateNonEnumerableProperty = 1;
  824. var DESCRIPTORS = requireDescriptors();
  825. var definePropertyModule = requireObjectDefineProperty();
  826. var createPropertyDescriptor = requireCreatePropertyDescriptor();
  827. createNonEnumerableProperty = DESCRIPTORS ? function (object, key, value) {
  828. return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
  829. } : function (object, key, value) {
  830. object[key] = value;
  831. return object;
  832. };
  833. return createNonEnumerableProperty;
  834. }
  835. var makeBuiltIn = {exports: {}};
  836. var functionName;
  837. var hasRequiredFunctionName;
  838. function requireFunctionName () {
  839. if (hasRequiredFunctionName) return functionName;
  840. hasRequiredFunctionName = 1;
  841. var DESCRIPTORS = requireDescriptors();
  842. var hasOwn = requireHasOwnProperty();
  843. var FunctionPrototype = Function.prototype;
  844. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  845. var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
  846. var EXISTS = hasOwn(FunctionPrototype, 'name');
  847. // additional protection from minified / mangled / dropped function names
  848. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  849. var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
  850. functionName = {
  851. EXISTS: EXISTS,
  852. PROPER: PROPER,
  853. CONFIGURABLE: CONFIGURABLE
  854. };
  855. return functionName;
  856. }
  857. var inspectSource;
  858. var hasRequiredInspectSource;
  859. function requireInspectSource () {
  860. if (hasRequiredInspectSource) return inspectSource;
  861. hasRequiredInspectSource = 1;
  862. var uncurryThis = requireFunctionUncurryThis();
  863. var isCallable = requireIsCallable();
  864. var store = requireSharedStore();
  865. var functionToString = uncurryThis(Function.toString);
  866. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  867. if (!isCallable(store.inspectSource)) {
  868. store.inspectSource = function (it) {
  869. return functionToString(it);
  870. };
  871. }
  872. inspectSource = store.inspectSource;
  873. return inspectSource;
  874. }
  875. var weakMapBasicDetection;
  876. var hasRequiredWeakMapBasicDetection;
  877. function requireWeakMapBasicDetection () {
  878. if (hasRequiredWeakMapBasicDetection) return weakMapBasicDetection;
  879. hasRequiredWeakMapBasicDetection = 1;
  880. var globalThis = requireGlobalThis();
  881. var isCallable = requireIsCallable();
  882. var WeakMap = globalThis.WeakMap;
  883. weakMapBasicDetection = isCallable(WeakMap) && /native code/.test(String(WeakMap));
  884. return weakMapBasicDetection;
  885. }
  886. var sharedKey;
  887. var hasRequiredSharedKey;
  888. function requireSharedKey () {
  889. if (hasRequiredSharedKey) return sharedKey;
  890. hasRequiredSharedKey = 1;
  891. var shared = requireShared();
  892. var uid = requireUid();
  893. var keys = shared('keys');
  894. sharedKey = function (key) {
  895. return keys[key] || (keys[key] = uid(key));
  896. };
  897. return sharedKey;
  898. }
  899. var hiddenKeys;
  900. var hasRequiredHiddenKeys;
  901. function requireHiddenKeys () {
  902. if (hasRequiredHiddenKeys) return hiddenKeys;
  903. hasRequiredHiddenKeys = 1;
  904. hiddenKeys = {};
  905. return hiddenKeys;
  906. }
  907. var internalState;
  908. var hasRequiredInternalState;
  909. function requireInternalState () {
  910. if (hasRequiredInternalState) return internalState;
  911. hasRequiredInternalState = 1;
  912. var NATIVE_WEAK_MAP = requireWeakMapBasicDetection();
  913. var globalThis = requireGlobalThis();
  914. var isObject = requireIsObject();
  915. var createNonEnumerableProperty = requireCreateNonEnumerableProperty();
  916. var hasOwn = requireHasOwnProperty();
  917. var shared = requireSharedStore();
  918. var sharedKey = requireSharedKey();
  919. var hiddenKeys = requireHiddenKeys();
  920. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  921. var TypeError = globalThis.TypeError;
  922. var WeakMap = globalThis.WeakMap;
  923. var set, get, has;
  924. var enforce = function (it) {
  925. return has(it) ? get(it) : set(it, {});
  926. };
  927. var getterFor = function (TYPE) {
  928. return function (it) {
  929. var state;
  930. if (!isObject(it) || (state = get(it)).type !== TYPE) {
  931. throw new TypeError('Incompatible receiver, ' + TYPE + ' required');
  932. } return state;
  933. };
  934. };
  935. if (NATIVE_WEAK_MAP || shared.state) {
  936. var store = shared.state || (shared.state = new WeakMap());
  937. /* eslint-disable no-self-assign -- prototype methods protection */
  938. store.get = store.get;
  939. store.has = store.has;
  940. store.set = store.set;
  941. /* eslint-enable no-self-assign -- prototype methods protection */
  942. set = function (it, metadata) {
  943. if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
  944. metadata.facade = it;
  945. store.set(it, metadata);
  946. return metadata;
  947. };
  948. get = function (it) {
  949. return store.get(it) || {};
  950. };
  951. has = function (it) {
  952. return store.has(it);
  953. };
  954. } else {
  955. var STATE = sharedKey('state');
  956. hiddenKeys[STATE] = true;
  957. set = function (it, metadata) {
  958. if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
  959. metadata.facade = it;
  960. createNonEnumerableProperty(it, STATE, metadata);
  961. return metadata;
  962. };
  963. get = function (it) {
  964. return hasOwn(it, STATE) ? it[STATE] : {};
  965. };
  966. has = function (it) {
  967. return hasOwn(it, STATE);
  968. };
  969. }
  970. internalState = {
  971. set: set,
  972. get: get,
  973. has: has,
  974. enforce: enforce,
  975. getterFor: getterFor
  976. };
  977. return internalState;
  978. }
  979. var hasRequiredMakeBuiltIn;
  980. function requireMakeBuiltIn () {
  981. if (hasRequiredMakeBuiltIn) return makeBuiltIn.exports;
  982. hasRequiredMakeBuiltIn = 1;
  983. var uncurryThis = requireFunctionUncurryThis();
  984. var fails = requireFails();
  985. var isCallable = requireIsCallable();
  986. var hasOwn = requireHasOwnProperty();
  987. var DESCRIPTORS = requireDescriptors();
  988. var CONFIGURABLE_FUNCTION_NAME = requireFunctionName().CONFIGURABLE;
  989. var inspectSource = requireInspectSource();
  990. var InternalStateModule = requireInternalState();
  991. var enforceInternalState = InternalStateModule.enforce;
  992. var getInternalState = InternalStateModule.get;
  993. var $String = String;
  994. // eslint-disable-next-line es/no-object-defineproperty -- safe
  995. var defineProperty = Object.defineProperty;
  996. var stringSlice = uncurryThis(''.slice);
  997. var replace = uncurryThis(''.replace);
  998. var join = uncurryThis([].join);
  999. var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
  1000. return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  1001. });
  1002. var TEMPLATE = String(String).split('String');
  1003. var makeBuiltIn$1 = makeBuiltIn.exports = function (value, name, options) {
  1004. if (stringSlice($String(name), 0, 7) === 'Symbol(') {
  1005. name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
  1006. }
  1007. if (options && options.getter) name = 'get ' + name;
  1008. if (options && options.setter) name = 'set ' + name;
  1009. if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  1010. if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
  1011. else value.name = name;
  1012. }
  1013. if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
  1014. defineProperty(value, 'length', { value: options.arity });
  1015. }
  1016. try {
  1017. if (options && hasOwn(options, 'constructor') && options.constructor) {
  1018. if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
  1019. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  1020. } else if (value.prototype) value.prototype = undefined;
  1021. } catch (error) { /* empty */ }
  1022. var state = enforceInternalState(value);
  1023. if (!hasOwn(state, 'source')) {
  1024. state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
  1025. } return value;
  1026. };
  1027. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  1028. // eslint-disable-next-line no-extend-native -- required
  1029. Function.prototype.toString = makeBuiltIn$1(function toString() {
  1030. return isCallable(this) && getInternalState(this).source || inspectSource(this);
  1031. }, 'toString');
  1032. return makeBuiltIn.exports;
  1033. }
  1034. var defineBuiltIn;
  1035. var hasRequiredDefineBuiltIn;
  1036. function requireDefineBuiltIn () {
  1037. if (hasRequiredDefineBuiltIn) return defineBuiltIn;
  1038. hasRequiredDefineBuiltIn = 1;
  1039. var isCallable = requireIsCallable();
  1040. var definePropertyModule = requireObjectDefineProperty();
  1041. var makeBuiltIn = requireMakeBuiltIn();
  1042. var defineGlobalProperty = requireDefineGlobalProperty();
  1043. defineBuiltIn = function (O, key, value, options) {
  1044. if (!options) options = {};
  1045. var simple = options.enumerable;
  1046. var name = options.name !== undefined ? options.name : key;
  1047. if (isCallable(value)) makeBuiltIn(value, name, options);
  1048. if (options.global) {
  1049. if (simple) O[key] = value;
  1050. else defineGlobalProperty(key, value);
  1051. } else {
  1052. try {
  1053. if (!options.unsafe) delete O[key];
  1054. else if (O[key]) simple = true;
  1055. } catch (error) { /* empty */ }
  1056. if (simple) O[key] = value;
  1057. else definePropertyModule.f(O, key, {
  1058. value: value,
  1059. enumerable: false,
  1060. configurable: !options.nonConfigurable,
  1061. writable: !options.nonWritable
  1062. });
  1063. } return O;
  1064. };
  1065. return defineBuiltIn;
  1066. }
  1067. var objectGetOwnPropertyNames = {};
  1068. var mathTrunc;
  1069. var hasRequiredMathTrunc;
  1070. function requireMathTrunc () {
  1071. if (hasRequiredMathTrunc) return mathTrunc;
  1072. hasRequiredMathTrunc = 1;
  1073. var ceil = Math.ceil;
  1074. var floor = Math.floor;
  1075. // `Math.trunc` method
  1076. // https://tc39.es/ecma262/#sec-math.trunc
  1077. // eslint-disable-next-line es/no-math-trunc -- safe
  1078. mathTrunc = Math.trunc || function trunc(x) {
  1079. var n = +x;
  1080. return (n > 0 ? floor : ceil)(n);
  1081. };
  1082. return mathTrunc;
  1083. }
  1084. var toIntegerOrInfinity;
  1085. var hasRequiredToIntegerOrInfinity;
  1086. function requireToIntegerOrInfinity () {
  1087. if (hasRequiredToIntegerOrInfinity) return toIntegerOrInfinity;
  1088. hasRequiredToIntegerOrInfinity = 1;
  1089. var trunc = requireMathTrunc();
  1090. // `ToIntegerOrInfinity` abstract operation
  1091. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  1092. toIntegerOrInfinity = function (argument) {
  1093. var number = +argument;
  1094. // eslint-disable-next-line no-self-compare -- NaN check
  1095. return number !== number || number === 0 ? 0 : trunc(number);
  1096. };
  1097. return toIntegerOrInfinity;
  1098. }
  1099. var toAbsoluteIndex;
  1100. var hasRequiredToAbsoluteIndex;
  1101. function requireToAbsoluteIndex () {
  1102. if (hasRequiredToAbsoluteIndex) return toAbsoluteIndex;
  1103. hasRequiredToAbsoluteIndex = 1;
  1104. var toIntegerOrInfinity = requireToIntegerOrInfinity();
  1105. var max = Math.max;
  1106. var min = Math.min;
  1107. // Helper for a popular repeating case of the spec:
  1108. // Let integer be ? ToInteger(index).
  1109. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  1110. toAbsoluteIndex = function (index, length) {
  1111. var integer = toIntegerOrInfinity(index);
  1112. return integer < 0 ? max(integer + length, 0) : min(integer, length);
  1113. };
  1114. return toAbsoluteIndex;
  1115. }
  1116. var toLength;
  1117. var hasRequiredToLength;
  1118. function requireToLength () {
  1119. if (hasRequiredToLength) return toLength;
  1120. hasRequiredToLength = 1;
  1121. var toIntegerOrInfinity = requireToIntegerOrInfinity();
  1122. var min = Math.min;
  1123. // `ToLength` abstract operation
  1124. // https://tc39.es/ecma262/#sec-tolength
  1125. toLength = function (argument) {
  1126. var len = toIntegerOrInfinity(argument);
  1127. return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  1128. };
  1129. return toLength;
  1130. }
  1131. var lengthOfArrayLike;
  1132. var hasRequiredLengthOfArrayLike;
  1133. function requireLengthOfArrayLike () {
  1134. if (hasRequiredLengthOfArrayLike) return lengthOfArrayLike;
  1135. hasRequiredLengthOfArrayLike = 1;
  1136. var toLength = requireToLength();
  1137. // `LengthOfArrayLike` abstract operation
  1138. // https://tc39.es/ecma262/#sec-lengthofarraylike
  1139. lengthOfArrayLike = function (obj) {
  1140. return toLength(obj.length);
  1141. };
  1142. return lengthOfArrayLike;
  1143. }
  1144. var arrayIncludes;
  1145. var hasRequiredArrayIncludes;
  1146. function requireArrayIncludes () {
  1147. if (hasRequiredArrayIncludes) return arrayIncludes;
  1148. hasRequiredArrayIncludes = 1;
  1149. var toIndexedObject = requireToIndexedObject();
  1150. var toAbsoluteIndex = requireToAbsoluteIndex();
  1151. var lengthOfArrayLike = requireLengthOfArrayLike();
  1152. // `Array.prototype.{ indexOf, includes }` methods implementation
  1153. var createMethod = function (IS_INCLUDES) {
  1154. return function ($this, el, fromIndex) {
  1155. var O = toIndexedObject($this);
  1156. var length = lengthOfArrayLike(O);
  1157. if (length === 0) return !IS_INCLUDES && -1;
  1158. var index = toAbsoluteIndex(fromIndex, length);
  1159. var value;
  1160. // Array#includes uses SameValueZero equality algorithm
  1161. // eslint-disable-next-line no-self-compare -- NaN check
  1162. if (IS_INCLUDES && el !== el) while (length > index) {
  1163. value = O[index++];
  1164. // eslint-disable-next-line no-self-compare -- NaN check
  1165. if (value !== value) return true;
  1166. // Array#indexOf ignores holes, Array#includes - not
  1167. } else for (;length > index; index++) {
  1168. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  1169. } return !IS_INCLUDES && -1;
  1170. };
  1171. };
  1172. arrayIncludes = {
  1173. // `Array.prototype.includes` method
  1174. // https://tc39.es/ecma262/#sec-array.prototype.includes
  1175. includes: createMethod(true),
  1176. // `Array.prototype.indexOf` method
  1177. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  1178. indexOf: createMethod(false)
  1179. };
  1180. return arrayIncludes;
  1181. }
  1182. var objectKeysInternal;
  1183. var hasRequiredObjectKeysInternal;
  1184. function requireObjectKeysInternal () {
  1185. if (hasRequiredObjectKeysInternal) return objectKeysInternal;
  1186. hasRequiredObjectKeysInternal = 1;
  1187. var uncurryThis = requireFunctionUncurryThis();
  1188. var hasOwn = requireHasOwnProperty();
  1189. var toIndexedObject = requireToIndexedObject();
  1190. var indexOf = requireArrayIncludes().indexOf;
  1191. var hiddenKeys = requireHiddenKeys();
  1192. var push = uncurryThis([].push);
  1193. objectKeysInternal = function (object, names) {
  1194. var O = toIndexedObject(object);
  1195. var i = 0;
  1196. var result = [];
  1197. var key;
  1198. for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);
  1199. // Don't enum bug & hidden keys
  1200. while (names.length > i) if (hasOwn(O, key = names[i++])) {
  1201. ~indexOf(result, key) || push(result, key);
  1202. }
  1203. return result;
  1204. };
  1205. return objectKeysInternal;
  1206. }
  1207. var enumBugKeys;
  1208. var hasRequiredEnumBugKeys;
  1209. function requireEnumBugKeys () {
  1210. if (hasRequiredEnumBugKeys) return enumBugKeys;
  1211. hasRequiredEnumBugKeys = 1;
  1212. // IE8- don't enum bug keys
  1213. enumBugKeys = [
  1214. 'constructor',
  1215. 'hasOwnProperty',
  1216. 'isPrototypeOf',
  1217. 'propertyIsEnumerable',
  1218. 'toLocaleString',
  1219. 'toString',
  1220. 'valueOf'
  1221. ];
  1222. return enumBugKeys;
  1223. }
  1224. var hasRequiredObjectGetOwnPropertyNames;
  1225. function requireObjectGetOwnPropertyNames () {
  1226. if (hasRequiredObjectGetOwnPropertyNames) return objectGetOwnPropertyNames;
  1227. hasRequiredObjectGetOwnPropertyNames = 1;
  1228. var internalObjectKeys = requireObjectKeysInternal();
  1229. var enumBugKeys = requireEnumBugKeys();
  1230. var hiddenKeys = enumBugKeys.concat('length', 'prototype');
  1231. // `Object.getOwnPropertyNames` method
  1232. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  1233. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  1234. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  1235. return internalObjectKeys(O, hiddenKeys);
  1236. };
  1237. return objectGetOwnPropertyNames;
  1238. }
  1239. var objectGetOwnPropertySymbols = {};
  1240. var hasRequiredObjectGetOwnPropertySymbols;
  1241. function requireObjectGetOwnPropertySymbols () {
  1242. if (hasRequiredObjectGetOwnPropertySymbols) return objectGetOwnPropertySymbols;
  1243. hasRequiredObjectGetOwnPropertySymbols = 1;
  1244. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  1245. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  1246. return objectGetOwnPropertySymbols;
  1247. }
  1248. var ownKeys;
  1249. var hasRequiredOwnKeys;
  1250. function requireOwnKeys () {
  1251. if (hasRequiredOwnKeys) return ownKeys;
  1252. hasRequiredOwnKeys = 1;
  1253. var getBuiltIn = requireGetBuiltIn();
  1254. var uncurryThis = requireFunctionUncurryThis();
  1255. var getOwnPropertyNamesModule = requireObjectGetOwnPropertyNames();
  1256. var getOwnPropertySymbolsModule = requireObjectGetOwnPropertySymbols();
  1257. var anObject = requireAnObject();
  1258. var concat = uncurryThis([].concat);
  1259. // all object keys, includes non-enumerable and symbols
  1260. ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
  1261. var keys = getOwnPropertyNamesModule.f(anObject(it));
  1262. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  1263. return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
  1264. };
  1265. return ownKeys;
  1266. }
  1267. var copyConstructorProperties;
  1268. var hasRequiredCopyConstructorProperties;
  1269. function requireCopyConstructorProperties () {
  1270. if (hasRequiredCopyConstructorProperties) return copyConstructorProperties;
  1271. hasRequiredCopyConstructorProperties = 1;
  1272. var hasOwn = requireHasOwnProperty();
  1273. var ownKeys = requireOwnKeys();
  1274. var getOwnPropertyDescriptorModule = requireObjectGetOwnPropertyDescriptor();
  1275. var definePropertyModule = requireObjectDefineProperty();
  1276. copyConstructorProperties = function (target, source, exceptions) {
  1277. var keys = ownKeys(source);
  1278. var defineProperty = definePropertyModule.f;
  1279. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  1280. for (var i = 0; i < keys.length; i++) {
  1281. var key = keys[i];
  1282. if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
  1283. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  1284. }
  1285. }
  1286. };
  1287. return copyConstructorProperties;
  1288. }
  1289. var isForced_1;
  1290. var hasRequiredIsForced;
  1291. function requireIsForced () {
  1292. if (hasRequiredIsForced) return isForced_1;
  1293. hasRequiredIsForced = 1;
  1294. var fails = requireFails();
  1295. var isCallable = requireIsCallable();
  1296. var replacement = /#|\.prototype\./;
  1297. var isForced = function (feature, detection) {
  1298. var value = data[normalize(feature)];
  1299. return value === POLYFILL ? true
  1300. : value === NATIVE ? false
  1301. : isCallable(detection) ? fails(detection)
  1302. : !!detection;
  1303. };
  1304. var normalize = isForced.normalize = function (string) {
  1305. return String(string).replace(replacement, '.').toLowerCase();
  1306. };
  1307. var data = isForced.data = {};
  1308. var NATIVE = isForced.NATIVE = 'N';
  1309. var POLYFILL = isForced.POLYFILL = 'P';
  1310. isForced_1 = isForced;
  1311. return isForced_1;
  1312. }
  1313. var _export;
  1314. var hasRequired_export;
  1315. function require_export () {
  1316. if (hasRequired_export) return _export;
  1317. hasRequired_export = 1;
  1318. var globalThis = requireGlobalThis();
  1319. var getOwnPropertyDescriptor = requireObjectGetOwnPropertyDescriptor().f;
  1320. var createNonEnumerableProperty = requireCreateNonEnumerableProperty();
  1321. var defineBuiltIn = requireDefineBuiltIn();
  1322. var defineGlobalProperty = requireDefineGlobalProperty();
  1323. var copyConstructorProperties = requireCopyConstructorProperties();
  1324. var isForced = requireIsForced();
  1325. /*
  1326. options.target - name of the target object
  1327. options.global - target is the global object
  1328. options.stat - export as static methods of target
  1329. options.proto - export as prototype methods of target
  1330. options.real - real prototype method for the `pure` version
  1331. options.forced - export even if the native feature is available
  1332. options.bind - bind methods to the target, required for the `pure` version
  1333. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  1334. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  1335. options.sham - add a flag to not completely full polyfills
  1336. options.enumerable - export as enumerable property
  1337. options.dontCallGetSet - prevent calling a getter on target
  1338. options.name - the .name of the function if it does not match the key
  1339. */
  1340. _export = function (options, source) {
  1341. var TARGET = options.target;
  1342. var GLOBAL = options.global;
  1343. var STATIC = options.stat;
  1344. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  1345. if (GLOBAL) {
  1346. target = globalThis;
  1347. } else if (STATIC) {
  1348. target = globalThis[TARGET] || defineGlobalProperty(TARGET, {});
  1349. } else {
  1350. target = globalThis[TARGET] && globalThis[TARGET].prototype;
  1351. }
  1352. if (target) for (key in source) {
  1353. sourceProperty = source[key];
  1354. if (options.dontCallGetSet) {
  1355. descriptor = getOwnPropertyDescriptor(target, key);
  1356. targetProperty = descriptor && descriptor.value;
  1357. } else targetProperty = target[key];
  1358. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  1359. // contained in target
  1360. if (!FORCED && targetProperty !== undefined) {
  1361. if (typeof sourceProperty == typeof targetProperty) continue;
  1362. copyConstructorProperties(sourceProperty, targetProperty);
  1363. }
  1364. // add a flag to not completely full polyfills
  1365. if (options.sham || (targetProperty && targetProperty.sham)) {
  1366. createNonEnumerableProperty(sourceProperty, 'sham', true);
  1367. }
  1368. defineBuiltIn(target, key, sourceProperty, options);
  1369. }
  1370. };
  1371. return _export;
  1372. }
  1373. var isArray;
  1374. var hasRequiredIsArray;
  1375. function requireIsArray () {
  1376. if (hasRequiredIsArray) return isArray;
  1377. hasRequiredIsArray = 1;
  1378. var classof = requireClassofRaw();
  1379. // `IsArray` abstract operation
  1380. // https://tc39.es/ecma262/#sec-isarray
  1381. // eslint-disable-next-line es/no-array-isarray -- safe
  1382. isArray = Array.isArray || function isArray(argument) {
  1383. return classof(argument) === 'Array';
  1384. };
  1385. return isArray;
  1386. }
  1387. var doesNotExceedSafeInteger;
  1388. var hasRequiredDoesNotExceedSafeInteger;
  1389. function requireDoesNotExceedSafeInteger () {
  1390. if (hasRequiredDoesNotExceedSafeInteger) return doesNotExceedSafeInteger;
  1391. hasRequiredDoesNotExceedSafeInteger = 1;
  1392. var $TypeError = TypeError;
  1393. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
  1394. doesNotExceedSafeInteger = function (it) {
  1395. if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
  1396. return it;
  1397. };
  1398. return doesNotExceedSafeInteger;
  1399. }
  1400. var createProperty;
  1401. var hasRequiredCreateProperty;
  1402. function requireCreateProperty () {
  1403. if (hasRequiredCreateProperty) return createProperty;
  1404. hasRequiredCreateProperty = 1;
  1405. var DESCRIPTORS = requireDescriptors();
  1406. var definePropertyModule = requireObjectDefineProperty();
  1407. var createPropertyDescriptor = requireCreatePropertyDescriptor();
  1408. createProperty = function (object, key, value) {
  1409. if (DESCRIPTORS) definePropertyModule.f(object, key, createPropertyDescriptor(0, value));
  1410. else object[key] = value;
  1411. };
  1412. return createProperty;
  1413. }
  1414. var toStringTagSupport;
  1415. var hasRequiredToStringTagSupport;
  1416. function requireToStringTagSupport () {
  1417. if (hasRequiredToStringTagSupport) return toStringTagSupport;
  1418. hasRequiredToStringTagSupport = 1;
  1419. var wellKnownSymbol = requireWellKnownSymbol();
  1420. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  1421. var test = {};
  1422. test[TO_STRING_TAG] = 'z';
  1423. toStringTagSupport = String(test) === '[object z]';
  1424. return toStringTagSupport;
  1425. }
  1426. var classof;
  1427. var hasRequiredClassof;
  1428. function requireClassof () {
  1429. if (hasRequiredClassof) return classof;
  1430. hasRequiredClassof = 1;
  1431. var TO_STRING_TAG_SUPPORT = requireToStringTagSupport();
  1432. var isCallable = requireIsCallable();
  1433. var classofRaw = requireClassofRaw();
  1434. var wellKnownSymbol = requireWellKnownSymbol();
  1435. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  1436. var $Object = Object;
  1437. // ES3 wrong here
  1438. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
  1439. // fallback for IE11 Script Access Denied error
  1440. var tryGet = function (it, key) {
  1441. try {
  1442. return it[key];
  1443. } catch (error) { /* empty */ }
  1444. };
  1445. // getting tag from ES6+ `Object.prototype.toString`
  1446. classof = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
  1447. var O, tag, result;
  1448. return it === undefined ? 'Undefined' : it === null ? 'Null'
  1449. // @@toStringTag case
  1450. : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
  1451. // builtinTag case
  1452. : CORRECT_ARGUMENTS ? classofRaw(O)
  1453. // ES3 arguments fallback
  1454. : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
  1455. };
  1456. return classof;
  1457. }
  1458. var isConstructor;
  1459. var hasRequiredIsConstructor;
  1460. function requireIsConstructor () {
  1461. if (hasRequiredIsConstructor) return isConstructor;
  1462. hasRequiredIsConstructor = 1;
  1463. var uncurryThis = requireFunctionUncurryThis();
  1464. var fails = requireFails();
  1465. var isCallable = requireIsCallable();
  1466. var classof = requireClassof();
  1467. var getBuiltIn = requireGetBuiltIn();
  1468. var inspectSource = requireInspectSource();
  1469. var noop = function () { /* empty */ };
  1470. var construct = getBuiltIn('Reflect', 'construct');
  1471. var constructorRegExp = /^\s*(?:class|function)\b/;
  1472. var exec = uncurryThis(constructorRegExp.exec);
  1473. var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
  1474. var isConstructorModern = function isConstructor(argument) {
  1475. if (!isCallable(argument)) return false;
  1476. try {
  1477. construct(noop, [], argument);
  1478. return true;
  1479. } catch (error) {
  1480. return false;
  1481. }
  1482. };
  1483. var isConstructorLegacy = function isConstructor(argument) {
  1484. if (!isCallable(argument)) return false;
  1485. switch (classof(argument)) {
  1486. case 'AsyncFunction':
  1487. case 'GeneratorFunction':
  1488. case 'AsyncGeneratorFunction': return false;
  1489. }
  1490. try {
  1491. // we can't check .prototype since constructors produced by .bind haven't it
  1492. // `Function#toString` throws on some built-it function in some legacy engines
  1493. // (for example, `DOMQuad` and similar in FF41-)
  1494. return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
  1495. } catch (error) {
  1496. return true;
  1497. }
  1498. };
  1499. isConstructorLegacy.sham = true;
  1500. // `IsConstructor` abstract operation
  1501. // https://tc39.es/ecma262/#sec-isconstructor
  1502. isConstructor = !construct || fails(function () {
  1503. var called;
  1504. return isConstructorModern(isConstructorModern.call)
  1505. || !isConstructorModern(Object)
  1506. || !isConstructorModern(function () { called = true; })
  1507. || called;
  1508. }) ? isConstructorLegacy : isConstructorModern;
  1509. return isConstructor;
  1510. }
  1511. var arraySpeciesConstructor;
  1512. var hasRequiredArraySpeciesConstructor;
  1513. function requireArraySpeciesConstructor () {
  1514. if (hasRequiredArraySpeciesConstructor) return arraySpeciesConstructor;
  1515. hasRequiredArraySpeciesConstructor = 1;
  1516. var isArray = requireIsArray();
  1517. var isConstructor = requireIsConstructor();
  1518. var isObject = requireIsObject();
  1519. var wellKnownSymbol = requireWellKnownSymbol();
  1520. var SPECIES = wellKnownSymbol('species');
  1521. var $Array = Array;
  1522. // a part of `ArraySpeciesCreate` abstract operation
  1523. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1524. arraySpeciesConstructor = function (originalArray) {
  1525. var C;
  1526. if (isArray(originalArray)) {
  1527. C = originalArray.constructor;
  1528. // cross-realm fallback
  1529. if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;
  1530. else if (isObject(C)) {
  1531. C = C[SPECIES];
  1532. if (C === null) C = undefined;
  1533. }
  1534. } return C === undefined ? $Array : C;
  1535. };
  1536. return arraySpeciesConstructor;
  1537. }
  1538. var arraySpeciesCreate;
  1539. var hasRequiredArraySpeciesCreate;
  1540. function requireArraySpeciesCreate () {
  1541. if (hasRequiredArraySpeciesCreate) return arraySpeciesCreate;
  1542. hasRequiredArraySpeciesCreate = 1;
  1543. var arraySpeciesConstructor = requireArraySpeciesConstructor();
  1544. // `ArraySpeciesCreate` abstract operation
  1545. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1546. arraySpeciesCreate = function (originalArray, length) {
  1547. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1548. };
  1549. return arraySpeciesCreate;
  1550. }
  1551. var arrayMethodHasSpeciesSupport;
  1552. var hasRequiredArrayMethodHasSpeciesSupport;
  1553. function requireArrayMethodHasSpeciesSupport () {
  1554. if (hasRequiredArrayMethodHasSpeciesSupport) return arrayMethodHasSpeciesSupport;
  1555. hasRequiredArrayMethodHasSpeciesSupport = 1;
  1556. var fails = requireFails();
  1557. var wellKnownSymbol = requireWellKnownSymbol();
  1558. var V8_VERSION = requireEnvironmentV8Version();
  1559. var SPECIES = wellKnownSymbol('species');
  1560. arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
  1561. // We can't use this feature detection in V8 since it causes
  1562. // deoptimization and serious performance degradation
  1563. // https://github.com/zloirock/core-js/issues/677
  1564. return V8_VERSION >= 51 || !fails(function () {
  1565. var array = [];
  1566. var constructor = array.constructor = {};
  1567. constructor[SPECIES] = function () {
  1568. return { foo: 1 };
  1569. };
  1570. return array[METHOD_NAME](Boolean).foo !== 1;
  1571. });
  1572. };
  1573. return arrayMethodHasSpeciesSupport;
  1574. }
  1575. var hasRequiredEs_array_concat;
  1576. function requireEs_array_concat () {
  1577. if (hasRequiredEs_array_concat) return es_array_concat;
  1578. hasRequiredEs_array_concat = 1;
  1579. var $ = require_export();
  1580. var fails = requireFails();
  1581. var isArray = requireIsArray();
  1582. var isObject = requireIsObject();
  1583. var toObject = requireToObject();
  1584. var lengthOfArrayLike = requireLengthOfArrayLike();
  1585. var doesNotExceedSafeInteger = requireDoesNotExceedSafeInteger();
  1586. var createProperty = requireCreateProperty();
  1587. var arraySpeciesCreate = requireArraySpeciesCreate();
  1588. var arrayMethodHasSpeciesSupport = requireArrayMethodHasSpeciesSupport();
  1589. var wellKnownSymbol = requireWellKnownSymbol();
  1590. var V8_VERSION = requireEnvironmentV8Version();
  1591. var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
  1592. // We can't use this feature detection in V8 since it causes
  1593. // deoptimization and serious performance degradation
  1594. // https://github.com/zloirock/core-js/issues/679
  1595. var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
  1596. var array = [];
  1597. array[IS_CONCAT_SPREADABLE] = false;
  1598. return array.concat()[0] !== array;
  1599. });
  1600. var isConcatSpreadable = function (O) {
  1601. if (!isObject(O)) return false;
  1602. var spreadable = O[IS_CONCAT_SPREADABLE];
  1603. return spreadable !== undefined ? !!spreadable : isArray(O);
  1604. };
  1605. var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');
  1606. // `Array.prototype.concat` method
  1607. // https://tc39.es/ecma262/#sec-array.prototype.concat
  1608. // with adding support of @@isConcatSpreadable and @@species
  1609. $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
  1610. // eslint-disable-next-line no-unused-vars -- required for `.length`
  1611. concat: function concat(arg) {
  1612. var O = toObject(this);
  1613. var A = arraySpeciesCreate(O, 0);
  1614. var n = 0;
  1615. var i, k, length, len, E;
  1616. for (i = -1, length = arguments.length; i < length; i++) {
  1617. E = i === -1 ? O : arguments[i];
  1618. if (isConcatSpreadable(E)) {
  1619. len = lengthOfArrayLike(E);
  1620. doesNotExceedSafeInteger(n + len);
  1621. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  1622. } else {
  1623. doesNotExceedSafeInteger(n + 1);
  1624. createProperty(A, n++, E);
  1625. }
  1626. }
  1627. A.length = n;
  1628. return A;
  1629. }
  1630. });
  1631. return es_array_concat;
  1632. }
  1633. requireEs_array_concat();
  1634. var es_array_filter = {};
  1635. var functionUncurryThisClause;
  1636. var hasRequiredFunctionUncurryThisClause;
  1637. function requireFunctionUncurryThisClause () {
  1638. if (hasRequiredFunctionUncurryThisClause) return functionUncurryThisClause;
  1639. hasRequiredFunctionUncurryThisClause = 1;
  1640. var classofRaw = requireClassofRaw();
  1641. var uncurryThis = requireFunctionUncurryThis();
  1642. functionUncurryThisClause = function (fn) {
  1643. // Nashorn bug:
  1644. // https://github.com/zloirock/core-js/issues/1128
  1645. // https://github.com/zloirock/core-js/issues/1130
  1646. if (classofRaw(fn) === 'Function') return uncurryThis(fn);
  1647. };
  1648. return functionUncurryThisClause;
  1649. }
  1650. var functionBindContext;
  1651. var hasRequiredFunctionBindContext;
  1652. function requireFunctionBindContext () {
  1653. if (hasRequiredFunctionBindContext) return functionBindContext;
  1654. hasRequiredFunctionBindContext = 1;
  1655. var uncurryThis = requireFunctionUncurryThisClause();
  1656. var aCallable = requireACallable();
  1657. var NATIVE_BIND = requireFunctionBindNative();
  1658. var bind = uncurryThis(uncurryThis.bind);
  1659. // optional / simple context binding
  1660. functionBindContext = function (fn, that) {
  1661. aCallable(fn);
  1662. return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {
  1663. return fn.apply(that, arguments);
  1664. };
  1665. };
  1666. return functionBindContext;
  1667. }
  1668. var arrayIteration;
  1669. var hasRequiredArrayIteration;
  1670. function requireArrayIteration () {
  1671. if (hasRequiredArrayIteration) return arrayIteration;
  1672. hasRequiredArrayIteration = 1;
  1673. var bind = requireFunctionBindContext();
  1674. var uncurryThis = requireFunctionUncurryThis();
  1675. var IndexedObject = requireIndexedObject();
  1676. var toObject = requireToObject();
  1677. var lengthOfArrayLike = requireLengthOfArrayLike();
  1678. var arraySpeciesCreate = requireArraySpeciesCreate();
  1679. var push = uncurryThis([].push);
  1680. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  1681. var createMethod = function (TYPE) {
  1682. var IS_MAP = TYPE === 1;
  1683. var IS_FILTER = TYPE === 2;
  1684. var IS_SOME = TYPE === 3;
  1685. var IS_EVERY = TYPE === 4;
  1686. var IS_FIND_INDEX = TYPE === 6;
  1687. var IS_FILTER_REJECT = TYPE === 7;
  1688. var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
  1689. return function ($this, callbackfn, that, specificCreate) {
  1690. var O = toObject($this);
  1691. var self = IndexedObject(O);
  1692. var length = lengthOfArrayLike(self);
  1693. var boundFunction = bind(callbackfn, that);
  1694. var index = 0;
  1695. var create = specificCreate || arraySpeciesCreate;
  1696. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  1697. var value, result;
  1698. for (;length > index; index++) if (NO_HOLES || index in self) {
  1699. value = self[index];
  1700. result = boundFunction(value, index, O);
  1701. if (TYPE) {
  1702. if (IS_MAP) target[index] = result; // map
  1703. else if (result) switch (TYPE) {
  1704. case 3: return true; // some
  1705. case 5: return value; // find
  1706. case 6: return index; // findIndex
  1707. case 2: push(target, value); // filter
  1708. } else switch (TYPE) {
  1709. case 4: return false; // every
  1710. case 7: push(target, value); // filterReject
  1711. }
  1712. }
  1713. }
  1714. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  1715. };
  1716. };
  1717. arrayIteration = {
  1718. // `Array.prototype.forEach` method
  1719. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1720. forEach: createMethod(0),
  1721. // `Array.prototype.map` method
  1722. // https://tc39.es/ecma262/#sec-array.prototype.map
  1723. map: createMethod(1),
  1724. // `Array.prototype.filter` method
  1725. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1726. filter: createMethod(2),
  1727. // `Array.prototype.some` method
  1728. // https://tc39.es/ecma262/#sec-array.prototype.some
  1729. some: createMethod(3),
  1730. // `Array.prototype.every` method
  1731. // https://tc39.es/ecma262/#sec-array.prototype.every
  1732. every: createMethod(4),
  1733. // `Array.prototype.find` method
  1734. // https://tc39.es/ecma262/#sec-array.prototype.find
  1735. find: createMethod(5),
  1736. // `Array.prototype.findIndex` method
  1737. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  1738. findIndex: createMethod(6),
  1739. // `Array.prototype.filterReject` method
  1740. // https://github.com/tc39/proposal-array-filtering
  1741. filterReject: createMethod(7)
  1742. };
  1743. return arrayIteration;
  1744. }
  1745. var hasRequiredEs_array_filter;
  1746. function requireEs_array_filter () {
  1747. if (hasRequiredEs_array_filter) return es_array_filter;
  1748. hasRequiredEs_array_filter = 1;
  1749. var $ = require_export();
  1750. var $filter = requireArrayIteration().filter;
  1751. var arrayMethodHasSpeciesSupport = requireArrayMethodHasSpeciesSupport();
  1752. var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
  1753. // `Array.prototype.filter` method
  1754. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1755. // with adding support of @@species
  1756. $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
  1757. filter: function filter(callbackfn /* , thisArg */) {
  1758. return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1759. }
  1760. });
  1761. return es_array_filter;
  1762. }
  1763. requireEs_array_filter();
  1764. var es_array_find = {};
  1765. var objectDefineProperties = {};
  1766. var objectKeys;
  1767. var hasRequiredObjectKeys;
  1768. function requireObjectKeys () {
  1769. if (hasRequiredObjectKeys) return objectKeys;
  1770. hasRequiredObjectKeys = 1;
  1771. var internalObjectKeys = requireObjectKeysInternal();
  1772. var enumBugKeys = requireEnumBugKeys();
  1773. // `Object.keys` method
  1774. // https://tc39.es/ecma262/#sec-object.keys
  1775. // eslint-disable-next-line es/no-object-keys -- safe
  1776. objectKeys = Object.keys || function keys(O) {
  1777. return internalObjectKeys(O, enumBugKeys);
  1778. };
  1779. return objectKeys;
  1780. }
  1781. var hasRequiredObjectDefineProperties;
  1782. function requireObjectDefineProperties () {
  1783. if (hasRequiredObjectDefineProperties) return objectDefineProperties;
  1784. hasRequiredObjectDefineProperties = 1;
  1785. var DESCRIPTORS = requireDescriptors();
  1786. var V8_PROTOTYPE_DEFINE_BUG = requireV8PrototypeDefineBug();
  1787. var definePropertyModule = requireObjectDefineProperty();
  1788. var anObject = requireAnObject();
  1789. var toIndexedObject = requireToIndexedObject();
  1790. var objectKeys = requireObjectKeys();
  1791. // `Object.defineProperties` method
  1792. // https://tc39.es/ecma262/#sec-object.defineproperties
  1793. // eslint-disable-next-line es/no-object-defineproperties -- safe
  1794. objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
  1795. anObject(O);
  1796. var props = toIndexedObject(Properties);
  1797. var keys = objectKeys(Properties);
  1798. var length = keys.length;
  1799. var index = 0;
  1800. var key;
  1801. while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
  1802. return O;
  1803. };
  1804. return objectDefineProperties;
  1805. }
  1806. var html;
  1807. var hasRequiredHtml;
  1808. function requireHtml () {
  1809. if (hasRequiredHtml) return html;
  1810. hasRequiredHtml = 1;
  1811. var getBuiltIn = requireGetBuiltIn();
  1812. html = getBuiltIn('document', 'documentElement');
  1813. return html;
  1814. }
  1815. var objectCreate;
  1816. var hasRequiredObjectCreate;
  1817. function requireObjectCreate () {
  1818. if (hasRequiredObjectCreate) return objectCreate;
  1819. hasRequiredObjectCreate = 1;
  1820. /* global ActiveXObject -- old IE, WSH */
  1821. var anObject = requireAnObject();
  1822. var definePropertiesModule = requireObjectDefineProperties();
  1823. var enumBugKeys = requireEnumBugKeys();
  1824. var hiddenKeys = requireHiddenKeys();
  1825. var html = requireHtml();
  1826. var documentCreateElement = requireDocumentCreateElement();
  1827. var sharedKey = requireSharedKey();
  1828. var GT = '>';
  1829. var LT = '<';
  1830. var PROTOTYPE = 'prototype';
  1831. var SCRIPT = 'script';
  1832. var IE_PROTO = sharedKey('IE_PROTO');
  1833. var EmptyConstructor = function () { /* empty */ };
  1834. var scriptTag = function (content) {
  1835. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  1836. };
  1837. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  1838. var NullProtoObjectViaActiveX = function (activeXDocument) {
  1839. activeXDocument.write(scriptTag(''));
  1840. activeXDocument.close();
  1841. var temp = activeXDocument.parentWindow.Object;
  1842. // eslint-disable-next-line no-useless-assignment -- avoid memory leak
  1843. activeXDocument = null;
  1844. return temp;
  1845. };
  1846. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  1847. var NullProtoObjectViaIFrame = function () {
  1848. // Thrash, waste and sodomy: IE GC bug
  1849. var iframe = documentCreateElement('iframe');
  1850. var JS = 'java' + SCRIPT + ':';
  1851. var iframeDocument;
  1852. iframe.style.display = 'none';
  1853. html.appendChild(iframe);
  1854. // https://github.com/zloirock/core-js/issues/475
  1855. iframe.src = String(JS);
  1856. iframeDocument = iframe.contentWindow.document;
  1857. iframeDocument.open();
  1858. iframeDocument.write(scriptTag('document.F=Object'));
  1859. iframeDocument.close();
  1860. return iframeDocument.F;
  1861. };
  1862. // Check for document.domain and active x support
  1863. // No need to use active x approach when document.domain is not set
  1864. // see https://github.com/es-shims/es5-shim/issues/150
  1865. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  1866. // avoid IE GC bug
  1867. var activeXDocument;
  1868. var NullProtoObject = function () {
  1869. try {
  1870. activeXDocument = new ActiveXObject('htmlfile');
  1871. } catch (error) { /* ignore */ }
  1872. NullProtoObject = typeof document != 'undefined'
  1873. ? document.domain && activeXDocument
  1874. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  1875. : NullProtoObjectViaIFrame()
  1876. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  1877. var length = enumBugKeys.length;
  1878. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  1879. return NullProtoObject();
  1880. };
  1881. hiddenKeys[IE_PROTO] = true;
  1882. // `Object.create` method
  1883. // https://tc39.es/ecma262/#sec-object.create
  1884. // eslint-disable-next-line es/no-object-create -- safe
  1885. objectCreate = Object.create || function create(O, Properties) {
  1886. var result;
  1887. if (O !== null) {
  1888. EmptyConstructor[PROTOTYPE] = anObject(O);
  1889. result = new EmptyConstructor();
  1890. EmptyConstructor[PROTOTYPE] = null;
  1891. // add "__proto__" for Object.getPrototypeOf polyfill
  1892. result[IE_PROTO] = O;
  1893. } else result = NullProtoObject();
  1894. return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
  1895. };
  1896. return objectCreate;
  1897. }
  1898. var addToUnscopables;
  1899. var hasRequiredAddToUnscopables;
  1900. function requireAddToUnscopables () {
  1901. if (hasRequiredAddToUnscopables) return addToUnscopables;
  1902. hasRequiredAddToUnscopables = 1;
  1903. var wellKnownSymbol = requireWellKnownSymbol();
  1904. var create = requireObjectCreate();
  1905. var defineProperty = requireObjectDefineProperty().f;
  1906. var UNSCOPABLES = wellKnownSymbol('unscopables');
  1907. var ArrayPrototype = Array.prototype;
  1908. // Array.prototype[@@unscopables]
  1909. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1910. if (ArrayPrototype[UNSCOPABLES] === undefined) {
  1911. defineProperty(ArrayPrototype, UNSCOPABLES, {
  1912. configurable: true,
  1913. value: create(null)
  1914. });
  1915. }
  1916. // add a key to Array.prototype[@@unscopables]
  1917. addToUnscopables = function (key) {
  1918. ArrayPrototype[UNSCOPABLES][key] = true;
  1919. };
  1920. return addToUnscopables;
  1921. }
  1922. var hasRequiredEs_array_find;
  1923. function requireEs_array_find () {
  1924. if (hasRequiredEs_array_find) return es_array_find;
  1925. hasRequiredEs_array_find = 1;
  1926. var $ = require_export();
  1927. var $find = requireArrayIteration().find;
  1928. var addToUnscopables = requireAddToUnscopables();
  1929. var FIND = 'find';
  1930. var SKIPS_HOLES = true;
  1931. // Shouldn't skip holes
  1932. // eslint-disable-next-line es/no-array-prototype-find -- testing
  1933. if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
  1934. // `Array.prototype.find` method
  1935. // https://tc39.es/ecma262/#sec-array.prototype.find
  1936. $({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
  1937. find: function find(callbackfn /* , that = undefined */) {
  1938. return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1939. }
  1940. });
  1941. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1942. addToUnscopables(FIND);
  1943. return es_array_find;
  1944. }
  1945. requireEs_array_find();
  1946. var es_array_join = {};
  1947. var arrayMethodIsStrict;
  1948. var hasRequiredArrayMethodIsStrict;
  1949. function requireArrayMethodIsStrict () {
  1950. if (hasRequiredArrayMethodIsStrict) return arrayMethodIsStrict;
  1951. hasRequiredArrayMethodIsStrict = 1;
  1952. var fails = requireFails();
  1953. arrayMethodIsStrict = function (METHOD_NAME, argument) {
  1954. var method = [][METHOD_NAME];
  1955. return !!method && fails(function () {
  1956. // eslint-disable-next-line no-useless-call -- required for testing
  1957. method.call(null, argument || function () { return 1; }, 1);
  1958. });
  1959. };
  1960. return arrayMethodIsStrict;
  1961. }
  1962. var hasRequiredEs_array_join;
  1963. function requireEs_array_join () {
  1964. if (hasRequiredEs_array_join) return es_array_join;
  1965. hasRequiredEs_array_join = 1;
  1966. var $ = require_export();
  1967. var uncurryThis = requireFunctionUncurryThis();
  1968. var IndexedObject = requireIndexedObject();
  1969. var toIndexedObject = requireToIndexedObject();
  1970. var arrayMethodIsStrict = requireArrayMethodIsStrict();
  1971. var nativeJoin = uncurryThis([].join);
  1972. var ES3_STRINGS = IndexedObject !== Object;
  1973. var FORCED = ES3_STRINGS || !arrayMethodIsStrict('join', ',');
  1974. // `Array.prototype.join` method
  1975. // https://tc39.es/ecma262/#sec-array.prototype.join
  1976. $({ target: 'Array', proto: true, forced: FORCED }, {
  1977. join: function join(separator) {
  1978. return nativeJoin(toIndexedObject(this), separator === undefined ? ',' : separator);
  1979. }
  1980. });
  1981. return es_array_join;
  1982. }
  1983. requireEs_array_join();
  1984. var es_array_slice = {};
  1985. var arraySlice;
  1986. var hasRequiredArraySlice;
  1987. function requireArraySlice () {
  1988. if (hasRequiredArraySlice) return arraySlice;
  1989. hasRequiredArraySlice = 1;
  1990. var uncurryThis = requireFunctionUncurryThis();
  1991. arraySlice = uncurryThis([].slice);
  1992. return arraySlice;
  1993. }
  1994. var hasRequiredEs_array_slice;
  1995. function requireEs_array_slice () {
  1996. if (hasRequiredEs_array_slice) return es_array_slice;
  1997. hasRequiredEs_array_slice = 1;
  1998. var $ = require_export();
  1999. var isArray = requireIsArray();
  2000. var isConstructor = requireIsConstructor();
  2001. var isObject = requireIsObject();
  2002. var toAbsoluteIndex = requireToAbsoluteIndex();
  2003. var lengthOfArrayLike = requireLengthOfArrayLike();
  2004. var toIndexedObject = requireToIndexedObject();
  2005. var createProperty = requireCreateProperty();
  2006. var wellKnownSymbol = requireWellKnownSymbol();
  2007. var arrayMethodHasSpeciesSupport = requireArrayMethodHasSpeciesSupport();
  2008. var nativeSlice = requireArraySlice();
  2009. var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');
  2010. var SPECIES = wellKnownSymbol('species');
  2011. var $Array = Array;
  2012. var max = Math.max;
  2013. // `Array.prototype.slice` method
  2014. // https://tc39.es/ecma262/#sec-array.prototype.slice
  2015. // fallback for not array-like ES3 strings and DOM objects
  2016. $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
  2017. slice: function slice(start, end) {
  2018. var O = toIndexedObject(this);
  2019. var length = lengthOfArrayLike(O);
  2020. var k = toAbsoluteIndex(start, length);
  2021. var fin = toAbsoluteIndex(end === undefined ? length : end, length);
  2022. // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
  2023. var Constructor, result, n;
  2024. if (isArray(O)) {
  2025. Constructor = O.constructor;
  2026. // cross-realm fallback
  2027. if (isConstructor(Constructor) && (Constructor === $Array || isArray(Constructor.prototype))) {
  2028. Constructor = undefined;
  2029. } else if (isObject(Constructor)) {
  2030. Constructor = Constructor[SPECIES];
  2031. if (Constructor === null) Constructor = undefined;
  2032. }
  2033. if (Constructor === $Array || Constructor === undefined) {
  2034. return nativeSlice(O, k, fin);
  2035. }
  2036. }
  2037. result = new (Constructor === undefined ? $Array : Constructor)(max(fin - k, 0));
  2038. for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
  2039. result.length = n;
  2040. return result;
  2041. }
  2042. });
  2043. return es_array_slice;
  2044. }
  2045. requireEs_array_slice();
  2046. var es_array_sort = {};
  2047. var deletePropertyOrThrow;
  2048. var hasRequiredDeletePropertyOrThrow;
  2049. function requireDeletePropertyOrThrow () {
  2050. if (hasRequiredDeletePropertyOrThrow) return deletePropertyOrThrow;
  2051. hasRequiredDeletePropertyOrThrow = 1;
  2052. var tryToString = requireTryToString();
  2053. var $TypeError = TypeError;
  2054. deletePropertyOrThrow = function (O, P) {
  2055. if (!delete O[P]) throw new $TypeError('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
  2056. };
  2057. return deletePropertyOrThrow;
  2058. }
  2059. var toString;
  2060. var hasRequiredToString;
  2061. function requireToString () {
  2062. if (hasRequiredToString) return toString;
  2063. hasRequiredToString = 1;
  2064. var classof = requireClassof();
  2065. var $String = String;
  2066. toString = function (argument) {
  2067. if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
  2068. return $String(argument);
  2069. };
  2070. return toString;
  2071. }
  2072. var arraySort;
  2073. var hasRequiredArraySort;
  2074. function requireArraySort () {
  2075. if (hasRequiredArraySort) return arraySort;
  2076. hasRequiredArraySort = 1;
  2077. var arraySlice = requireArraySlice();
  2078. var floor = Math.floor;
  2079. var sort = function (array, comparefn) {
  2080. var length = array.length;
  2081. if (length < 8) {
  2082. // insertion sort
  2083. var i = 1;
  2084. var element, j;
  2085. while (i < length) {
  2086. j = i;
  2087. element = array[i];
  2088. while (j && comparefn(array[j - 1], element) > 0) {
  2089. array[j] = array[--j];
  2090. }
  2091. if (j !== i++) array[j] = element;
  2092. }
  2093. } else {
  2094. // merge sort
  2095. var middle = floor(length / 2);
  2096. var left = sort(arraySlice(array, 0, middle), comparefn);
  2097. var right = sort(arraySlice(array, middle), comparefn);
  2098. var llength = left.length;
  2099. var rlength = right.length;
  2100. var lindex = 0;
  2101. var rindex = 0;
  2102. while (lindex < llength || rindex < rlength) {
  2103. array[lindex + rindex] = (lindex < llength && rindex < rlength)
  2104. ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
  2105. : lindex < llength ? left[lindex++] : right[rindex++];
  2106. }
  2107. }
  2108. return array;
  2109. };
  2110. arraySort = sort;
  2111. return arraySort;
  2112. }
  2113. var environmentFfVersion;
  2114. var hasRequiredEnvironmentFfVersion;
  2115. function requireEnvironmentFfVersion () {
  2116. if (hasRequiredEnvironmentFfVersion) return environmentFfVersion;
  2117. hasRequiredEnvironmentFfVersion = 1;
  2118. var userAgent = requireEnvironmentUserAgent();
  2119. var firefox = userAgent.match(/firefox\/(\d+)/i);
  2120. environmentFfVersion = !!firefox && +firefox[1];
  2121. return environmentFfVersion;
  2122. }
  2123. var environmentIsIeOrEdge;
  2124. var hasRequiredEnvironmentIsIeOrEdge;
  2125. function requireEnvironmentIsIeOrEdge () {
  2126. if (hasRequiredEnvironmentIsIeOrEdge) return environmentIsIeOrEdge;
  2127. hasRequiredEnvironmentIsIeOrEdge = 1;
  2128. var UA = requireEnvironmentUserAgent();
  2129. environmentIsIeOrEdge = /MSIE|Trident/.test(UA);
  2130. return environmentIsIeOrEdge;
  2131. }
  2132. var environmentWebkitVersion;
  2133. var hasRequiredEnvironmentWebkitVersion;
  2134. function requireEnvironmentWebkitVersion () {
  2135. if (hasRequiredEnvironmentWebkitVersion) return environmentWebkitVersion;
  2136. hasRequiredEnvironmentWebkitVersion = 1;
  2137. var userAgent = requireEnvironmentUserAgent();
  2138. var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
  2139. environmentWebkitVersion = !!webkit && +webkit[1];
  2140. return environmentWebkitVersion;
  2141. }
  2142. var hasRequiredEs_array_sort;
  2143. function requireEs_array_sort () {
  2144. if (hasRequiredEs_array_sort) return es_array_sort;
  2145. hasRequiredEs_array_sort = 1;
  2146. var $ = require_export();
  2147. var uncurryThis = requireFunctionUncurryThis();
  2148. var aCallable = requireACallable();
  2149. var toObject = requireToObject();
  2150. var lengthOfArrayLike = requireLengthOfArrayLike();
  2151. var deletePropertyOrThrow = requireDeletePropertyOrThrow();
  2152. var toString = requireToString();
  2153. var fails = requireFails();
  2154. var internalSort = requireArraySort();
  2155. var arrayMethodIsStrict = requireArrayMethodIsStrict();
  2156. var FF = requireEnvironmentFfVersion();
  2157. var IE_OR_EDGE = requireEnvironmentIsIeOrEdge();
  2158. var V8 = requireEnvironmentV8Version();
  2159. var WEBKIT = requireEnvironmentWebkitVersion();
  2160. var test = [];
  2161. var nativeSort = uncurryThis(test.sort);
  2162. var push = uncurryThis(test.push);
  2163. // IE8-
  2164. var FAILS_ON_UNDEFINED = fails(function () {
  2165. test.sort(undefined);
  2166. });
  2167. // V8 bug
  2168. var FAILS_ON_NULL = fails(function () {
  2169. test.sort(null);
  2170. });
  2171. // Old WebKit
  2172. var STRICT_METHOD = arrayMethodIsStrict('sort');
  2173. var STABLE_SORT = !fails(function () {
  2174. // feature detection can be too slow, so check engines versions
  2175. if (V8) return V8 < 70;
  2176. if (FF && FF > 3) return;
  2177. if (IE_OR_EDGE) return true;
  2178. if (WEBKIT) return WEBKIT < 603;
  2179. var result = '';
  2180. var code, chr, value, index;
  2181. // generate an array with more 512 elements (Chakra and old V8 fails only in this case)
  2182. for (code = 65; code < 76; code++) {
  2183. chr = String.fromCharCode(code);
  2184. switch (code) {
  2185. case 66: case 69: case 70: case 72: value = 3; break;
  2186. case 68: case 71: value = 4; break;
  2187. default: value = 2;
  2188. }
  2189. for (index = 0; index < 47; index++) {
  2190. test.push({ k: chr + index, v: value });
  2191. }
  2192. }
  2193. test.sort(function (a, b) { return b.v - a.v; });
  2194. for (index = 0; index < test.length; index++) {
  2195. chr = test[index].k.charAt(0);
  2196. if (result.charAt(result.length - 1) !== chr) result += chr;
  2197. }
  2198. return result !== 'DGBEFHACIJK';
  2199. });
  2200. var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
  2201. var getSortCompare = function (comparefn) {
  2202. return function (x, y) {
  2203. if (y === undefined) return -1;
  2204. if (x === undefined) return 1;
  2205. if (comparefn !== undefined) return +comparefn(x, y) || 0;
  2206. return toString(x) > toString(y) ? 1 : -1;
  2207. };
  2208. };
  2209. // `Array.prototype.sort` method
  2210. // https://tc39.es/ecma262/#sec-array.prototype.sort
  2211. $({ target: 'Array', proto: true, forced: FORCED }, {
  2212. sort: function sort(comparefn) {
  2213. if (comparefn !== undefined) aCallable(comparefn);
  2214. var array = toObject(this);
  2215. if (STABLE_SORT) return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn);
  2216. var items = [];
  2217. var arrayLength = lengthOfArrayLike(array);
  2218. var itemsLength, index;
  2219. for (index = 0; index < arrayLength; index++) {
  2220. if (index in array) push(items, array[index]);
  2221. }
  2222. internalSort(items, getSortCompare(comparefn));
  2223. itemsLength = lengthOfArrayLike(items);
  2224. index = 0;
  2225. while (index < itemsLength) array[index] = items[index++];
  2226. while (index < arrayLength) deletePropertyOrThrow(array, index++);
  2227. return array;
  2228. }
  2229. });
  2230. return es_array_sort;
  2231. }
  2232. requireEs_array_sort();
  2233. var es_function_name = {};
  2234. var defineBuiltInAccessor;
  2235. var hasRequiredDefineBuiltInAccessor;
  2236. function requireDefineBuiltInAccessor () {
  2237. if (hasRequiredDefineBuiltInAccessor) return defineBuiltInAccessor;
  2238. hasRequiredDefineBuiltInAccessor = 1;
  2239. var makeBuiltIn = requireMakeBuiltIn();
  2240. var defineProperty = requireObjectDefineProperty();
  2241. defineBuiltInAccessor = function (target, name, descriptor) {
  2242. if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
  2243. if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
  2244. return defineProperty.f(target, name, descriptor);
  2245. };
  2246. return defineBuiltInAccessor;
  2247. }
  2248. var hasRequiredEs_function_name;
  2249. function requireEs_function_name () {
  2250. if (hasRequiredEs_function_name) return es_function_name;
  2251. hasRequiredEs_function_name = 1;
  2252. var DESCRIPTORS = requireDescriptors();
  2253. var FUNCTION_NAME_EXISTS = requireFunctionName().EXISTS;
  2254. var uncurryThis = requireFunctionUncurryThis();
  2255. var defineBuiltInAccessor = requireDefineBuiltInAccessor();
  2256. var FunctionPrototype = Function.prototype;
  2257. var functionToString = uncurryThis(FunctionPrototype.toString);
  2258. var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
  2259. var regExpExec = uncurryThis(nameRE.exec);
  2260. var NAME = 'name';
  2261. // Function instances `.name` property
  2262. // https://tc39.es/ecma262/#sec-function-instances-name
  2263. if (DESCRIPTORS && !FUNCTION_NAME_EXISTS) {
  2264. defineBuiltInAccessor(FunctionPrototype, NAME, {
  2265. configurable: true,
  2266. get: function () {
  2267. try {
  2268. return regExpExec(nameRE, functionToString(this))[1];
  2269. } catch (error) {
  2270. return '';
  2271. }
  2272. }
  2273. });
  2274. }
  2275. return es_function_name;
  2276. }
  2277. requireEs_function_name();
  2278. var es_object_assign = {};
  2279. var objectAssign;
  2280. var hasRequiredObjectAssign;
  2281. function requireObjectAssign () {
  2282. if (hasRequiredObjectAssign) return objectAssign;
  2283. hasRequiredObjectAssign = 1;
  2284. var DESCRIPTORS = requireDescriptors();
  2285. var uncurryThis = requireFunctionUncurryThis();
  2286. var call = requireFunctionCall();
  2287. var fails = requireFails();
  2288. var objectKeys = requireObjectKeys();
  2289. var getOwnPropertySymbolsModule = requireObjectGetOwnPropertySymbols();
  2290. var propertyIsEnumerableModule = requireObjectPropertyIsEnumerable();
  2291. var toObject = requireToObject();
  2292. var IndexedObject = requireIndexedObject();
  2293. // eslint-disable-next-line es/no-object-assign -- safe
  2294. var $assign = Object.assign;
  2295. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  2296. var defineProperty = Object.defineProperty;
  2297. var concat = uncurryThis([].concat);
  2298. // `Object.assign` method
  2299. // https://tc39.es/ecma262/#sec-object.assign
  2300. objectAssign = !$assign || fails(function () {
  2301. // should have correct order of operations (Edge bug)
  2302. if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
  2303. enumerable: true,
  2304. get: function () {
  2305. defineProperty(this, 'b', {
  2306. value: 3,
  2307. enumerable: false
  2308. });
  2309. }
  2310. }), { b: 2 })).b !== 1) return true;
  2311. // should work with symbols and should have deterministic property order (V8 bug)
  2312. var A = {};
  2313. var B = {};
  2314. // eslint-disable-next-line es/no-symbol -- safe
  2315. var symbol = Symbol('assign detection');
  2316. var alphabet = 'abcdefghijklmnopqrst';
  2317. A[symbol] = 7;
  2318. alphabet.split('').forEach(function (chr) { B[chr] = chr; });
  2319. return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
  2320. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
  2321. var T = toObject(target);
  2322. var argumentsLength = arguments.length;
  2323. var index = 1;
  2324. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  2325. var propertyIsEnumerable = propertyIsEnumerableModule.f;
  2326. while (argumentsLength > index) {
  2327. var S = IndexedObject(arguments[index++]);
  2328. var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
  2329. var length = keys.length;
  2330. var j = 0;
  2331. var key;
  2332. while (length > j) {
  2333. key = keys[j++];
  2334. if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
  2335. }
  2336. } return T;
  2337. } : $assign;
  2338. return objectAssign;
  2339. }
  2340. var hasRequiredEs_object_assign;
  2341. function requireEs_object_assign () {
  2342. if (hasRequiredEs_object_assign) return es_object_assign;
  2343. hasRequiredEs_object_assign = 1;
  2344. var $ = require_export();
  2345. var assign = requireObjectAssign();
  2346. // `Object.assign` method
  2347. // https://tc39.es/ecma262/#sec-object.assign
  2348. // eslint-disable-next-line es/no-object-assign -- required for testing
  2349. $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
  2350. assign: assign
  2351. });
  2352. return es_object_assign;
  2353. }
  2354. requireEs_object_assign();
  2355. var es_object_toString = {};
  2356. var objectToString;
  2357. var hasRequiredObjectToString;
  2358. function requireObjectToString () {
  2359. if (hasRequiredObjectToString) return objectToString;
  2360. hasRequiredObjectToString = 1;
  2361. var TO_STRING_TAG_SUPPORT = requireToStringTagSupport();
  2362. var classof = requireClassof();
  2363. // `Object.prototype.toString` method implementation
  2364. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  2365. objectToString = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
  2366. return '[object ' + classof(this) + ']';
  2367. };
  2368. return objectToString;
  2369. }
  2370. var hasRequiredEs_object_toString;
  2371. function requireEs_object_toString () {
  2372. if (hasRequiredEs_object_toString) return es_object_toString;
  2373. hasRequiredEs_object_toString = 1;
  2374. var TO_STRING_TAG_SUPPORT = requireToStringTagSupport();
  2375. var defineBuiltIn = requireDefineBuiltIn();
  2376. var toString = requireObjectToString();
  2377. // `Object.prototype.toString` method
  2378. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  2379. if (!TO_STRING_TAG_SUPPORT) {
  2380. defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });
  2381. }
  2382. return es_object_toString;
  2383. }
  2384. requireEs_object_toString();
  2385. var web_domCollections_forEach = {};
  2386. var domIterables;
  2387. var hasRequiredDomIterables;
  2388. function requireDomIterables () {
  2389. if (hasRequiredDomIterables) return domIterables;
  2390. hasRequiredDomIterables = 1;
  2391. // iterable DOM collections
  2392. // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
  2393. domIterables = {
  2394. CSSRuleList: 0,
  2395. CSSStyleDeclaration: 0,
  2396. CSSValueList: 0,
  2397. ClientRectList: 0,
  2398. DOMRectList: 0,
  2399. DOMStringList: 0,
  2400. DOMTokenList: 1,
  2401. DataTransferItemList: 0,
  2402. FileList: 0,
  2403. HTMLAllCollection: 0,
  2404. HTMLCollection: 0,
  2405. HTMLFormElement: 0,
  2406. HTMLSelectElement: 0,
  2407. MediaList: 0,
  2408. MimeTypeArray: 0,
  2409. NamedNodeMap: 0,
  2410. NodeList: 1,
  2411. PaintRequestList: 0,
  2412. Plugin: 0,
  2413. PluginArray: 0,
  2414. SVGLengthList: 0,
  2415. SVGNumberList: 0,
  2416. SVGPathSegList: 0,
  2417. SVGPointList: 0,
  2418. SVGStringList: 0,
  2419. SVGTransformList: 0,
  2420. SourceBufferList: 0,
  2421. StyleSheetList: 0,
  2422. TextTrackCueList: 0,
  2423. TextTrackList: 0,
  2424. TouchList: 0
  2425. };
  2426. return domIterables;
  2427. }
  2428. var domTokenListPrototype;
  2429. var hasRequiredDomTokenListPrototype;
  2430. function requireDomTokenListPrototype () {
  2431. if (hasRequiredDomTokenListPrototype) return domTokenListPrototype;
  2432. hasRequiredDomTokenListPrototype = 1;
  2433. // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
  2434. var documentCreateElement = requireDocumentCreateElement();
  2435. var classList = documentCreateElement('span').classList;
  2436. var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;
  2437. domTokenListPrototype = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;
  2438. return domTokenListPrototype;
  2439. }
  2440. var arrayForEach;
  2441. var hasRequiredArrayForEach;
  2442. function requireArrayForEach () {
  2443. if (hasRequiredArrayForEach) return arrayForEach;
  2444. hasRequiredArrayForEach = 1;
  2445. var $forEach = requireArrayIteration().forEach;
  2446. var arrayMethodIsStrict = requireArrayMethodIsStrict();
  2447. var STRICT_METHOD = arrayMethodIsStrict('forEach');
  2448. // `Array.prototype.forEach` method implementation
  2449. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  2450. arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
  2451. return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  2452. // eslint-disable-next-line es/no-array-prototype-foreach -- safe
  2453. } : [].forEach;
  2454. return arrayForEach;
  2455. }
  2456. var hasRequiredWeb_domCollections_forEach;
  2457. function requireWeb_domCollections_forEach () {
  2458. if (hasRequiredWeb_domCollections_forEach) return web_domCollections_forEach;
  2459. hasRequiredWeb_domCollections_forEach = 1;
  2460. var globalThis = requireGlobalThis();
  2461. var DOMIterables = requireDomIterables();
  2462. var DOMTokenListPrototype = requireDomTokenListPrototype();
  2463. var forEach = requireArrayForEach();
  2464. var createNonEnumerableProperty = requireCreateNonEnumerableProperty();
  2465. var handlePrototype = function (CollectionPrototype) {
  2466. // some Chrome versions have non-configurable methods on DOMTokenList
  2467. if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
  2468. createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
  2469. } catch (error) {
  2470. CollectionPrototype.forEach = forEach;
  2471. }
  2472. };
  2473. for (var COLLECTION_NAME in DOMIterables) {
  2474. if (DOMIterables[COLLECTION_NAME]) {
  2475. handlePrototype(globalThis[COLLECTION_NAME] && globalThis[COLLECTION_NAME].prototype);
  2476. }
  2477. }
  2478. handlePrototype(DOMTokenListPrototype);
  2479. return web_domCollections_forEach;
  2480. }
  2481. requireWeb_domCollections_forEach();
  2482. /**
  2483. * @author: Yura Knoxville
  2484. * @version: v1.1.0
  2485. */
  2486. var Utils = $.fn.bootstrapTable.utils;
  2487. var initBodyCaller;
  2488. var groupBy = function groupBy(array, f) {
  2489. var tmpGroups = {};
  2490. array.forEach(function (o) {
  2491. var groups = f(o);
  2492. tmpGroups[groups] = tmpGroups[groups] || [];
  2493. tmpGroups[groups].push(o);
  2494. });
  2495. return tmpGroups;
  2496. };
  2497. Object.assign($.fn.bootstrapTable.defaults.icons, {
  2498. collapseGroup: {
  2499. bootstrap3: 'glyphicon-chevron-up',
  2500. bootstrap5: 'bi-chevron-up',
  2501. materialize: 'arrow_drop_down'
  2502. }[$.fn.bootstrapTable.theme] || 'fa-angle-up',
  2503. expandGroup: {
  2504. bootstrap3: 'glyphicon-chevron-down',
  2505. bootstrap5: 'bi-chevron-down',
  2506. materialize: 'arrow_drop_up'
  2507. }[$.fn.bootstrapTable.theme] || 'fa-angle-down'
  2508. });
  2509. Object.assign($.fn.bootstrapTable.defaults, {
  2510. groupBy: false,
  2511. groupByField: '',
  2512. groupByFormatter: undefined,
  2513. groupByToggle: false,
  2514. groupByShowToggleIcon: false,
  2515. groupByCollapsedGroups: []
  2516. });
  2517. var BootstrapTable = $.fn.bootstrapTable.Constructor;
  2518. var _initSort = BootstrapTable.prototype.initSort;
  2519. var _initBody = BootstrapTable.prototype.initBody;
  2520. var _updateSelected = BootstrapTable.prototype.updateSelected;
  2521. BootstrapTable.prototype.initSort = function () {
  2522. var _this = this;
  2523. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  2524. args[_key] = arguments[_key];
  2525. }
  2526. _initSort.apply(this, Array.prototype.slice.apply(args));
  2527. var that = this;
  2528. this.tableGroups = [];
  2529. if (this.options.groupBy && this.options.groupByField !== '') {
  2530. if (this.options.sortName !== this.options.groupByField) {
  2531. if (this.options.customSort) {
  2532. Utils.calculateObjectValue(this.options, this.options.customSort, [this.options.sortName, this.options.sortOrder, this.data]);
  2533. } else {
  2534. this.options.data.sort(function (a, b) {
  2535. var groupByFields = _this.getGroupByFields();
  2536. var fieldValuesA = [];
  2537. var fieldValuesB = [];
  2538. $.each(groupByFields, function (i, field) {
  2539. fieldValuesA.push(a[field]);
  2540. fieldValuesB.push(b[field]);
  2541. });
  2542. a = fieldValuesA.join();
  2543. b = fieldValuesB.join();
  2544. return a.localeCompare(b, undefined, {
  2545. numeric: true
  2546. });
  2547. });
  2548. }
  2549. }
  2550. var groups = groupBy(that.data, function (item) {
  2551. var groupByFields = _this.getGroupByFields();
  2552. var groupValues = [];
  2553. $.each(groupByFields, function (i, field) {
  2554. var value_ = Utils.getItemField(item, field, that.options.escape, item.escape);
  2555. groupValues.push(value_);
  2556. });
  2557. return groupValues.join(', ');
  2558. });
  2559. var index = 0;
  2560. $.each(groups, function (key, value) {
  2561. _this.tableGroups.push({
  2562. id: index,
  2563. name: key,
  2564. data: value
  2565. });
  2566. value.forEach(function (item) {
  2567. if (!item._data) {
  2568. item._data = {};
  2569. }
  2570. if (_this.isCollapsed(key, value)) {
  2571. item._class += ' hidden';
  2572. }
  2573. item._data['parent-index'] = index;
  2574. });
  2575. index++;
  2576. });
  2577. }
  2578. };
  2579. BootstrapTable.prototype.initBody = function () {
  2580. var _this2 = this;
  2581. initBodyCaller = true;
  2582. for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  2583. args[_key2] = arguments[_key2];
  2584. }
  2585. _initBody.apply(this, Array.prototype.slice.apply(args));
  2586. if (this.options.groupBy && this.options.groupByField !== '') {
  2587. var that = this;
  2588. var checkBox = false;
  2589. var visibleColumns = 0;
  2590. this.columns.forEach(function (column) {
  2591. if (column.checkbox && !that.options.singleSelect) {
  2592. checkBox = true;
  2593. } else if (column.visible) {
  2594. visibleColumns += 1;
  2595. }
  2596. });
  2597. if (this.options.detailView && !this.options.cardView) {
  2598. visibleColumns += 1;
  2599. }
  2600. this.tableGroups.forEach(function (item) {
  2601. var html = [];
  2602. html.push(Utils.sprintf('<tr class="info group-by %s" data-group-index="%s">', _this2.options.groupByToggle ? 'expanded' : '', item.id));
  2603. if (that.options.detailView && !that.options.cardView) {
  2604. html.push('<td class="detail"></td>');
  2605. }
  2606. if (checkBox) {
  2607. html.push('<td class="bs-checkbox">', '<input name="btSelectGroup" type="checkbox" />', '</td>');
  2608. }
  2609. var formattedValue = item.name;
  2610. if (that.options.groupByFormatter !== undefined) {
  2611. formattedValue = Utils.calculateObjectValue(that.options, that.options.groupByFormatter, [item.name, item.id, item.data]);
  2612. }
  2613. html.push('<td', Utils.sprintf(' colspan="%s"', visibleColumns), '>', formattedValue);
  2614. var icon = _this2.options.icons.collapseGroup;
  2615. if (_this2.isCollapsed(item.name, item.data)) {
  2616. icon = _this2.options.icons.expandGroup;
  2617. }
  2618. if (_this2.options.groupByToggle && _this2.options.groupByShowToggleIcon) {
  2619. html.push("<span class=\"float-right ".concat(_this2.options.iconsPrefix, " ").concat(icon, "\"></span>"));
  2620. }
  2621. html.push('</td></tr>');
  2622. that.$body.find("tr[data-parent-index=".concat(item.id, "]:first")).before($(html.join('')));
  2623. });
  2624. this.$selectGroup = [];
  2625. this.$body.find('[name="btSelectGroup"]').each(function () {
  2626. var self = $(this);
  2627. that.$selectGroup.push({
  2628. group: self,
  2629. item: that.$selectItem.filter(function () {
  2630. return $(this).closest('tr').data('parent-index') === self.closest('tr').data('group-index');
  2631. })
  2632. });
  2633. });
  2634. if (this.options.groupByToggle) {
  2635. this.$container.off('click', '.group-by').on('click', '.group-by', function () {
  2636. var $this = $(this);
  2637. var groupIndex = $this.closest('tr').data('group-index');
  2638. var $groupRows = that.$body.find("tr[data-parent-index=".concat(groupIndex, "]"));
  2639. $this.toggleClass('expanded collapsed');
  2640. $this.find('span').toggleClass("".concat(that.options.icons.collapseGroup, " ").concat(that.options.icons.expandGroup));
  2641. $groupRows.toggleClass('hidden');
  2642. $groupRows.each(function (i, element) {
  2643. return that.collapseRow($(element).data('index'));
  2644. });
  2645. });
  2646. }
  2647. this.$container.off('click', '[name="btSelectGroup"]').on('click', '[name="btSelectGroup"]', function (event) {
  2648. event.stopImmediatePropagation();
  2649. var self = $(this);
  2650. var checked = self.prop('checked');
  2651. that[checked ? 'checkGroup' : 'uncheckGroup']($(this).closest('tr').data('group-index'));
  2652. });
  2653. }
  2654. initBodyCaller = false;
  2655. this.updateSelected();
  2656. };
  2657. BootstrapTable.prototype.updateSelected = function () {
  2658. if (!initBodyCaller) {
  2659. for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  2660. args[_key3] = arguments[_key3];
  2661. }
  2662. _updateSelected.apply(this, Array.prototype.slice.apply(args));
  2663. if (this.options.groupBy && this.options.groupByField !== '') {
  2664. this.$selectGroup.forEach(function (item) {
  2665. var checkGroup = item.item.filter(':enabled').length === item.item.filter(':enabled').filter(':checked').length;
  2666. item.group.prop('checked', checkGroup);
  2667. });
  2668. }
  2669. }
  2670. };
  2671. BootstrapTable.prototype.checkGroup = function (index) {
  2672. this.checkGroup_(index, true);
  2673. };
  2674. BootstrapTable.prototype.uncheckGroup = function (index) {
  2675. this.checkGroup_(index, false);
  2676. };
  2677. BootstrapTable.prototype.isCollapsed = function (groupKey, items) {
  2678. if (this.options.groupByCollapsedGroups) {
  2679. var collapsedGroups = Utils.calculateObjectValue(this, this.options.groupByCollapsedGroups, [groupKey, items], true);
  2680. if ($.inArray(groupKey, collapsedGroups) > -1) {
  2681. return true;
  2682. }
  2683. }
  2684. return false;
  2685. };
  2686. BootstrapTable.prototype.checkGroup_ = function (index, checked) {
  2687. var rowsBefore = this.getSelections();
  2688. var filter = function filter() {
  2689. return $(this).closest('tr').data('parent-index') === index;
  2690. };
  2691. this.$selectItem.filter(filter).prop('checked', checked);
  2692. this.updateRows();
  2693. this.updateSelected();
  2694. var rowsAfter = this.getSelections();
  2695. if (checked) {
  2696. this.trigger('check-all', rowsAfter, rowsBefore);
  2697. return;
  2698. }
  2699. this.trigger('uncheck-all', rowsAfter, rowsBefore);
  2700. };
  2701. BootstrapTable.prototype.getGroupByFields = function () {
  2702. var groupByFields = this.options.groupByField;
  2703. if (!$.isArray(this.options.groupByField)) {
  2704. groupByFields = [this.options.groupByField];
  2705. }
  2706. return groupByFields;
  2707. };
  2708. $.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  2709. function _class() {
  2710. _classCallCheck(this, _class);
  2711. return _callSuper(this, _class, arguments);
  2712. }
  2713. _inherits(_class, _$$BootstrapTable);
  2714. return _createClass(_class, [{
  2715. key: "scrollTo",
  2716. value: function scrollTo(params) {
  2717. if (this.options.groupBy) {
  2718. var options = {
  2719. unit: 'px',
  2720. value: 0
  2721. };
  2722. if (_typeof(params) === 'object') {
  2723. options = Object.assign(options, params);
  2724. }
  2725. if (options.unit === 'rows') {
  2726. var _scrollTo = 0;
  2727. this.$body.find("> tr:not(.group-by):lt(".concat(options.value, ")")).each(function (i, el) {
  2728. _scrollTo += $(el).outerHeight(true);
  2729. });
  2730. var $targetColumn = this.$body.find("> tr:not(.group-by):eq(".concat(options.value, ")"));
  2731. $targetColumn.prevAll('.group-by').each(function (i, el) {
  2732. _scrollTo += $(el).outerHeight(true);
  2733. });
  2734. this.$tableBody.scrollTop(_scrollTo);
  2735. return;
  2736. }
  2737. }
  2738. _superPropGet(_class, "scrollTo", this)([params]);
  2739. }
  2740. }]);
  2741. }($.BootstrapTable);
  2742. }));