bootstrap-table-addrbar.js 117 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372
  1. (function (global, factory) {
  2. typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
  3. typeof define === 'function' && define.amd ? define(['jquery'], factory) :
  4. (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
  5. })(this, (function ($$7) { 'use strict';
  6. function _arrayLikeToArray(r, a) {
  7. (null == a || a > r.length) && (a = r.length);
  8. for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
  9. return n;
  10. }
  11. function _arrayWithHoles(r) {
  12. if (Array.isArray(r)) return r;
  13. }
  14. function _assertThisInitialized(e) {
  15. if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  16. return e;
  17. }
  18. function _callSuper(t, o, e) {
  19. return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
  20. }
  21. function _classCallCheck(a, n) {
  22. if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
  23. }
  24. function _defineProperties(e, r) {
  25. for (var t = 0; t < r.length; t++) {
  26. var o = r[t];
  27. o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
  28. }
  29. }
  30. function _createClass(e, r, t) {
  31. return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
  32. writable: !1
  33. }), e;
  34. }
  35. function _get() {
  36. return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
  37. var p = _superPropBase(e, t);
  38. if (p) {
  39. var n = Object.getOwnPropertyDescriptor(p, t);
  40. return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
  41. }
  42. }, _get.apply(null, arguments);
  43. }
  44. function _getPrototypeOf(t) {
  45. return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
  46. return t.__proto__ || Object.getPrototypeOf(t);
  47. }, _getPrototypeOf(t);
  48. }
  49. function _inherits(t, e) {
  50. if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
  51. t.prototype = Object.create(e && e.prototype, {
  52. constructor: {
  53. value: t,
  54. writable: !0,
  55. configurable: !0
  56. }
  57. }), Object.defineProperty(t, "prototype", {
  58. writable: !1
  59. }), e && _setPrototypeOf(t, e);
  60. }
  61. function _isNativeReflectConstruct() {
  62. try {
  63. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  64. } catch (t) {}
  65. return (_isNativeReflectConstruct = function () {
  66. return !!t;
  67. })();
  68. }
  69. function _iterableToArrayLimit(r, l) {
  70. var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  71. if (null != t) {
  72. var e,
  73. n,
  74. i,
  75. u,
  76. a = [],
  77. f = !0,
  78. o = !1;
  79. try {
  80. if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
  81. } catch (r) {
  82. o = !0, n = r;
  83. } finally {
  84. try {
  85. if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
  86. } finally {
  87. if (o) throw n;
  88. }
  89. }
  90. return a;
  91. }
  92. }
  93. function _nonIterableRest() {
  94. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  95. }
  96. function _possibleConstructorReturn(t, e) {
  97. if (e && ("object" == typeof e || "function" == typeof e)) return e;
  98. if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
  99. return _assertThisInitialized(t);
  100. }
  101. function _setPrototypeOf(t, e) {
  102. return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
  103. return t.__proto__ = e, t;
  104. }, _setPrototypeOf(t, e);
  105. }
  106. function _slicedToArray(r, e) {
  107. return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
  108. }
  109. function _superPropBase(t, o) {
  110. for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
  111. return t;
  112. }
  113. function _superPropGet(t, e, r, o) {
  114. var p = _get(_getPrototypeOf(t.prototype ), e, r);
  115. return function (t) {
  116. return p.apply(r, t);
  117. } ;
  118. }
  119. function _toPrimitive(t, r) {
  120. if ("object" != typeof t || !t) return t;
  121. var e = t[Symbol.toPrimitive];
  122. if (void 0 !== e) {
  123. var i = e.call(t, r);
  124. if ("object" != typeof i) return i;
  125. throw new TypeError("@@toPrimitive must return a primitive value.");
  126. }
  127. return (String )(t);
  128. }
  129. function _toPropertyKey(t) {
  130. var i = _toPrimitive(t, "string");
  131. return "symbol" == typeof i ? i : i + "";
  132. }
  133. function _unsupportedIterableToArray(r, a) {
  134. if (r) {
  135. if ("string" == typeof r) return _arrayLikeToArray(r, a);
  136. var t = {}.toString.call(r).slice(8, -1);
  137. return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
  138. }
  139. }
  140. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  141. var check = function (it) {
  142. return it && it.Math === Math && it;
  143. };
  144. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  145. var globalThis_1 =
  146. // eslint-disable-next-line es/no-global-this -- safe
  147. check(typeof globalThis == 'object' && globalThis) ||
  148. check(typeof window == 'object' && window) ||
  149. // eslint-disable-next-line no-restricted-globals -- safe
  150. check(typeof self == 'object' && self) ||
  151. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  152. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  153. // eslint-disable-next-line no-new-func -- fallback
  154. (function () { return this; })() || Function('return this')();
  155. var objectGetOwnPropertyDescriptor = {};
  156. var fails$l = function (exec) {
  157. try {
  158. return !!exec();
  159. } catch (error) {
  160. return true;
  161. }
  162. };
  163. var fails$k = fails$l;
  164. // Detect IE8's incomplete defineProperty implementation
  165. var descriptors = !fails$k(function () {
  166. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  167. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
  168. });
  169. var fails$j = fails$l;
  170. var functionBindNative = !fails$j(function () {
  171. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  172. var test = (function () { /* empty */ }).bind();
  173. // eslint-disable-next-line no-prototype-builtins -- safe
  174. return typeof test != 'function' || test.hasOwnProperty('prototype');
  175. });
  176. var NATIVE_BIND$2 = functionBindNative;
  177. var call$d = Function.prototype.call;
  178. var functionCall = NATIVE_BIND$2 ? call$d.bind(call$d) : function () {
  179. return call$d.apply(call$d, arguments);
  180. };
  181. var objectPropertyIsEnumerable = {};
  182. var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
  183. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  184. var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
  185. // Nashorn ~ JDK8 bug
  186. var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable$1.call({ 1: 2 }, 1);
  187. // `Object.prototype.propertyIsEnumerable` method implementation
  188. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  189. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  190. var descriptor = getOwnPropertyDescriptor$2(this, V);
  191. return !!descriptor && descriptor.enumerable;
  192. } : $propertyIsEnumerable$1;
  193. var createPropertyDescriptor$5 = function (bitmap, value) {
  194. return {
  195. enumerable: !(bitmap & 1),
  196. configurable: !(bitmap & 2),
  197. writable: !(bitmap & 4),
  198. value: value
  199. };
  200. };
  201. var NATIVE_BIND$1 = functionBindNative;
  202. var FunctionPrototype$1 = Function.prototype;
  203. var call$c = FunctionPrototype$1.call;
  204. var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$c, call$c);
  205. var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
  206. return function () {
  207. return call$c.apply(fn, arguments);
  208. };
  209. };
  210. var uncurryThis$j = functionUncurryThis;
  211. var toString$7 = uncurryThis$j({}.toString);
  212. var stringSlice$4 = uncurryThis$j(''.slice);
  213. var classofRaw$2 = function (it) {
  214. return stringSlice$4(toString$7(it), 8, -1);
  215. };
  216. var uncurryThis$i = functionUncurryThis;
  217. var fails$i = fails$l;
  218. var classof$8 = classofRaw$2;
  219. var $Object$4 = Object;
  220. var split$1 = uncurryThis$i(''.split);
  221. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  222. var indexedObject = fails$i(function () {
  223. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  224. // eslint-disable-next-line no-prototype-builtins -- safe
  225. return !$Object$4('z').propertyIsEnumerable(0);
  226. }) ? function (it) {
  227. return classof$8(it) === 'String' ? split$1(it, '') : $Object$4(it);
  228. } : $Object$4;
  229. // we can't use just `it == null` since of `document.all` special case
  230. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  231. var isNullOrUndefined$4 = function (it) {
  232. return it === null || it === undefined;
  233. };
  234. var isNullOrUndefined$3 = isNullOrUndefined$4;
  235. var $TypeError$b = TypeError;
  236. // `RequireObjectCoercible` abstract operation
  237. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  238. var requireObjectCoercible$5 = function (it) {
  239. if (isNullOrUndefined$3(it)) throw new $TypeError$b("Can't call method on " + it);
  240. return it;
  241. };
  242. // toObject with fallback for non-array-like ES3 strings
  243. var IndexedObject$1 = indexedObject;
  244. var requireObjectCoercible$4 = requireObjectCoercible$5;
  245. var toIndexedObject$6 = function (it) {
  246. return IndexedObject$1(requireObjectCoercible$4(it));
  247. };
  248. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  249. var documentAll = typeof document == 'object' && document.all;
  250. // `IsCallable` abstract operation
  251. // https://tc39.es/ecma262/#sec-iscallable
  252. // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
  253. var isCallable$h = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
  254. return typeof argument == 'function' || argument === documentAll;
  255. } : function (argument) {
  256. return typeof argument == 'function';
  257. };
  258. var isCallable$g = isCallable$h;
  259. var isObject$b = function (it) {
  260. return typeof it == 'object' ? it !== null : isCallable$g(it);
  261. };
  262. var globalThis$h = globalThis_1;
  263. var isCallable$f = isCallable$h;
  264. var aFunction = function (argument) {
  265. return isCallable$f(argument) ? argument : undefined;
  266. };
  267. var getBuiltIn$5 = function (namespace, method) {
  268. return arguments.length < 2 ? aFunction(globalThis$h[namespace]) : globalThis$h[namespace] && globalThis$h[namespace][method];
  269. };
  270. var uncurryThis$h = functionUncurryThis;
  271. var objectIsPrototypeOf = uncurryThis$h({}.isPrototypeOf);
  272. var globalThis$g = globalThis_1;
  273. var navigator = globalThis$g.navigator;
  274. var userAgent$1 = navigator && navigator.userAgent;
  275. var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
  276. var globalThis$f = globalThis_1;
  277. var userAgent = environmentUserAgent;
  278. var process = globalThis$f.process;
  279. var Deno = globalThis$f.Deno;
  280. var versions = process && process.versions || Deno && Deno.version;
  281. var v8 = versions && versions.v8;
  282. var match, version;
  283. if (v8) {
  284. match = v8.split('.');
  285. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  286. // but their correct versions are not interesting for us
  287. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  288. }
  289. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  290. // so check `userAgent` even if `.v8` exists, but 0
  291. if (!version && userAgent) {
  292. match = userAgent.match(/Edge\/(\d+)/);
  293. if (!match || match[1] >= 74) {
  294. match = userAgent.match(/Chrome\/(\d+)/);
  295. if (match) version = +match[1];
  296. }
  297. }
  298. var environmentV8Version = version;
  299. /* eslint-disable es/no-symbol -- required for testing */
  300. var V8_VERSION$2 = environmentV8Version;
  301. var fails$h = fails$l;
  302. var globalThis$e = globalThis_1;
  303. var $String$5 = globalThis$e.String;
  304. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  305. var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$h(function () {
  306. var symbol = Symbol('symbol detection');
  307. // Chrome 38 Symbol has incorrect toString conversion
  308. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  309. // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
  310. // of course, fail.
  311. return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
  312. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  313. !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
  314. });
  315. /* eslint-disable es/no-symbol -- required for testing */
  316. var NATIVE_SYMBOL$1 = symbolConstructorDetection;
  317. var useSymbolAsUid = NATIVE_SYMBOL$1
  318. && !Symbol.sham
  319. && typeof Symbol.iterator == 'symbol';
  320. var getBuiltIn$4 = getBuiltIn$5;
  321. var isCallable$e = isCallable$h;
  322. var isPrototypeOf$2 = objectIsPrototypeOf;
  323. var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
  324. var $Object$3 = Object;
  325. var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
  326. return typeof it == 'symbol';
  327. } : function (it) {
  328. var $Symbol = getBuiltIn$4('Symbol');
  329. return isCallable$e($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
  330. };
  331. var $String$4 = String;
  332. var tryToString$2 = function (argument) {
  333. try {
  334. return $String$4(argument);
  335. } catch (error) {
  336. return 'Object';
  337. }
  338. };
  339. var isCallable$d = isCallable$h;
  340. var tryToString$1 = tryToString$2;
  341. var $TypeError$a = TypeError;
  342. // `Assert: IsCallable(argument) is true`
  343. var aCallable$4 = function (argument) {
  344. if (isCallable$d(argument)) return argument;
  345. throw new $TypeError$a(tryToString$1(argument) + ' is not a function');
  346. };
  347. var aCallable$3 = aCallable$4;
  348. var isNullOrUndefined$2 = isNullOrUndefined$4;
  349. // `GetMethod` abstract operation
  350. // https://tc39.es/ecma262/#sec-getmethod
  351. var getMethod$3 = function (V, P) {
  352. var func = V[P];
  353. return isNullOrUndefined$2(func) ? undefined : aCallable$3(func);
  354. };
  355. var call$b = functionCall;
  356. var isCallable$c = isCallable$h;
  357. var isObject$a = isObject$b;
  358. var $TypeError$9 = TypeError;
  359. // `OrdinaryToPrimitive` abstract operation
  360. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  361. var ordinaryToPrimitive$1 = function (input, pref) {
  362. var fn, val;
  363. if (pref === 'string' && isCallable$c(fn = input.toString) && !isObject$a(val = call$b(fn, input))) return val;
  364. if (isCallable$c(fn = input.valueOf) && !isObject$a(val = call$b(fn, input))) return val;
  365. if (pref !== 'string' && isCallable$c(fn = input.toString) && !isObject$a(val = call$b(fn, input))) return val;
  366. throw new $TypeError$9("Can't convert object to primitive value");
  367. };
  368. var sharedStore = {exports: {}};
  369. var isPure = false;
  370. var globalThis$d = globalThis_1;
  371. // eslint-disable-next-line es/no-object-defineproperty -- safe
  372. var defineProperty$6 = Object.defineProperty;
  373. var defineGlobalProperty$3 = function (key, value) {
  374. try {
  375. defineProperty$6(globalThis$d, key, { value: value, configurable: true, writable: true });
  376. } catch (error) {
  377. globalThis$d[key] = value;
  378. } return value;
  379. };
  380. var globalThis$c = globalThis_1;
  381. var defineGlobalProperty$2 = defineGlobalProperty$3;
  382. var SHARED = '__core-js_shared__';
  383. var store$3 = sharedStore.exports = globalThis$c[SHARED] || defineGlobalProperty$2(SHARED, {});
  384. (store$3.versions || (store$3.versions = [])).push({
  385. version: '3.38.1',
  386. mode: 'global',
  387. copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
  388. license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE',
  389. source: 'https://github.com/zloirock/core-js'
  390. });
  391. var sharedStoreExports = sharedStore.exports;
  392. var store$2 = sharedStoreExports;
  393. var shared$4 = function (key, value) {
  394. return store$2[key] || (store$2[key] = value || {});
  395. };
  396. var requireObjectCoercible$3 = requireObjectCoercible$5;
  397. var $Object$2 = Object;
  398. // `ToObject` abstract operation
  399. // https://tc39.es/ecma262/#sec-toobject
  400. var toObject$4 = function (argument) {
  401. return $Object$2(requireObjectCoercible$3(argument));
  402. };
  403. var uncurryThis$g = functionUncurryThis;
  404. var toObject$3 = toObject$4;
  405. var hasOwnProperty = uncurryThis$g({}.hasOwnProperty);
  406. // `HasOwnProperty` abstract operation
  407. // https://tc39.es/ecma262/#sec-hasownproperty
  408. // eslint-disable-next-line es/no-object-hasown -- safe
  409. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  410. return hasOwnProperty(toObject$3(it), key);
  411. };
  412. var uncurryThis$f = functionUncurryThis;
  413. var id = 0;
  414. var postfix = Math.random();
  415. var toString$6 = uncurryThis$f(1.0.toString);
  416. var uid$2 = function (key) {
  417. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$6(++id + postfix, 36);
  418. };
  419. var globalThis$b = globalThis_1;
  420. var shared$3 = shared$4;
  421. var hasOwn$a = hasOwnProperty_1;
  422. var uid$1 = uid$2;
  423. var NATIVE_SYMBOL = symbolConstructorDetection;
  424. var USE_SYMBOL_AS_UID = useSymbolAsUid;
  425. var Symbol$1 = globalThis$b.Symbol;
  426. var WellKnownSymbolsStore = shared$3('wks');
  427. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
  428. var wellKnownSymbol$f = function (name) {
  429. if (!hasOwn$a(WellKnownSymbolsStore, name)) {
  430. WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$a(Symbol$1, name)
  431. ? Symbol$1[name]
  432. : createWellKnownSymbol('Symbol.' + name);
  433. } return WellKnownSymbolsStore[name];
  434. };
  435. var call$a = functionCall;
  436. var isObject$9 = isObject$b;
  437. var isSymbol$1 = isSymbol$2;
  438. var getMethod$2 = getMethod$3;
  439. var ordinaryToPrimitive = ordinaryToPrimitive$1;
  440. var wellKnownSymbol$e = wellKnownSymbol$f;
  441. var $TypeError$8 = TypeError;
  442. var TO_PRIMITIVE = wellKnownSymbol$e('toPrimitive');
  443. // `ToPrimitive` abstract operation
  444. // https://tc39.es/ecma262/#sec-toprimitive
  445. var toPrimitive$1 = function (input, pref) {
  446. if (!isObject$9(input) || isSymbol$1(input)) return input;
  447. var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
  448. var result;
  449. if (exoticToPrim) {
  450. if (pref === undefined) pref = 'default';
  451. result = call$a(exoticToPrim, input, pref);
  452. if (!isObject$9(result) || isSymbol$1(result)) return result;
  453. throw new $TypeError$8("Can't convert object to primitive value");
  454. }
  455. if (pref === undefined) pref = 'number';
  456. return ordinaryToPrimitive(input, pref);
  457. };
  458. var toPrimitive = toPrimitive$1;
  459. var isSymbol = isSymbol$2;
  460. // `ToPropertyKey` abstract operation
  461. // https://tc39.es/ecma262/#sec-topropertykey
  462. var toPropertyKey$2 = function (argument) {
  463. var key = toPrimitive(argument, 'string');
  464. return isSymbol(key) ? key : key + '';
  465. };
  466. var globalThis$a = globalThis_1;
  467. var isObject$8 = isObject$b;
  468. var document$1 = globalThis$a.document;
  469. // typeof document.createElement is 'object' in old IE
  470. var EXISTS$1 = isObject$8(document$1) && isObject$8(document$1.createElement);
  471. var documentCreateElement$2 = function (it) {
  472. return EXISTS$1 ? document$1.createElement(it) : {};
  473. };
  474. var DESCRIPTORS$e = descriptors;
  475. var fails$g = fails$l;
  476. var createElement = documentCreateElement$2;
  477. // Thanks to IE8 for its funny defineProperty
  478. var ie8DomDefine = !DESCRIPTORS$e && !fails$g(function () {
  479. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  480. return Object.defineProperty(createElement('div'), 'a', {
  481. get: function () { return 7; }
  482. }).a !== 7;
  483. });
  484. var DESCRIPTORS$d = descriptors;
  485. var call$9 = functionCall;
  486. var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
  487. var createPropertyDescriptor$4 = createPropertyDescriptor$5;
  488. var toIndexedObject$5 = toIndexedObject$6;
  489. var toPropertyKey$1 = toPropertyKey$2;
  490. var hasOwn$9 = hasOwnProperty_1;
  491. var IE8_DOM_DEFINE$1 = ie8DomDefine;
  492. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  493. var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  494. // `Object.getOwnPropertyDescriptor` method
  495. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  496. objectGetOwnPropertyDescriptor.f = DESCRIPTORS$d ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
  497. O = toIndexedObject$5(O);
  498. P = toPropertyKey$1(P);
  499. if (IE8_DOM_DEFINE$1) try {
  500. return $getOwnPropertyDescriptor$1(O, P);
  501. } catch (error) { /* empty */ }
  502. if (hasOwn$9(O, P)) return createPropertyDescriptor$4(!call$9(propertyIsEnumerableModule$1.f, O, P), O[P]);
  503. };
  504. var objectDefineProperty = {};
  505. var DESCRIPTORS$c = descriptors;
  506. var fails$f = fails$l;
  507. // V8 ~ Chrome 36-
  508. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  509. var v8PrototypeDefineBug = DESCRIPTORS$c && fails$f(function () {
  510. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  511. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  512. value: 42,
  513. writable: false
  514. }).prototype !== 42;
  515. });
  516. var isObject$7 = isObject$b;
  517. var $String$3 = String;
  518. var $TypeError$7 = TypeError;
  519. // `Assert: Type(argument) is Object`
  520. var anObject$a = function (argument) {
  521. if (isObject$7(argument)) return argument;
  522. throw new $TypeError$7($String$3(argument) + ' is not an object');
  523. };
  524. var DESCRIPTORS$b = descriptors;
  525. var IE8_DOM_DEFINE = ie8DomDefine;
  526. var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
  527. var anObject$9 = anObject$a;
  528. var toPropertyKey = toPropertyKey$2;
  529. var $TypeError$6 = TypeError;
  530. // eslint-disable-next-line es/no-object-defineproperty -- safe
  531. var $defineProperty = Object.defineProperty;
  532. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  533. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  534. var ENUMERABLE = 'enumerable';
  535. var CONFIGURABLE$1 = 'configurable';
  536. var WRITABLE = 'writable';
  537. // `Object.defineProperty` method
  538. // https://tc39.es/ecma262/#sec-object.defineproperty
  539. objectDefineProperty.f = DESCRIPTORS$b ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
  540. anObject$9(O);
  541. P = toPropertyKey(P);
  542. anObject$9(Attributes);
  543. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  544. var current = $getOwnPropertyDescriptor(O, P);
  545. if (current && current[WRITABLE]) {
  546. O[P] = Attributes.value;
  547. Attributes = {
  548. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  549. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  550. writable: false
  551. };
  552. }
  553. } return $defineProperty(O, P, Attributes);
  554. } : $defineProperty : function defineProperty(O, P, Attributes) {
  555. anObject$9(O);
  556. P = toPropertyKey(P);
  557. anObject$9(Attributes);
  558. if (IE8_DOM_DEFINE) try {
  559. return $defineProperty(O, P, Attributes);
  560. } catch (error) { /* empty */ }
  561. if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$6('Accessors not supported');
  562. if ('value' in Attributes) O[P] = Attributes.value;
  563. return O;
  564. };
  565. var DESCRIPTORS$a = descriptors;
  566. var definePropertyModule$4 = objectDefineProperty;
  567. var createPropertyDescriptor$3 = createPropertyDescriptor$5;
  568. var createNonEnumerableProperty$5 = DESCRIPTORS$a ? function (object, key, value) {
  569. return definePropertyModule$4.f(object, key, createPropertyDescriptor$3(1, value));
  570. } : function (object, key, value) {
  571. object[key] = value;
  572. return object;
  573. };
  574. var makeBuiltIn$3 = {exports: {}};
  575. var DESCRIPTORS$9 = descriptors;
  576. var hasOwn$8 = hasOwnProperty_1;
  577. var FunctionPrototype = Function.prototype;
  578. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  579. var getDescriptor = DESCRIPTORS$9 && Object.getOwnPropertyDescriptor;
  580. var EXISTS = hasOwn$8(FunctionPrototype, 'name');
  581. // additional protection from minified / mangled / dropped function names
  582. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  583. var CONFIGURABLE = EXISTS && (!DESCRIPTORS$9 || (DESCRIPTORS$9 && getDescriptor(FunctionPrototype, 'name').configurable));
  584. var functionName = {
  585. EXISTS: EXISTS,
  586. PROPER: PROPER,
  587. CONFIGURABLE: CONFIGURABLE
  588. };
  589. var uncurryThis$e = functionUncurryThis;
  590. var isCallable$b = isCallable$h;
  591. var store$1 = sharedStoreExports;
  592. var functionToString = uncurryThis$e(Function.toString);
  593. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  594. if (!isCallable$b(store$1.inspectSource)) {
  595. store$1.inspectSource = function (it) {
  596. return functionToString(it);
  597. };
  598. }
  599. var inspectSource$2 = store$1.inspectSource;
  600. var globalThis$9 = globalThis_1;
  601. var isCallable$a = isCallable$h;
  602. var WeakMap$1 = globalThis$9.WeakMap;
  603. var weakMapBasicDetection = isCallable$a(WeakMap$1) && /native code/.test(String(WeakMap$1));
  604. var shared$2 = shared$4;
  605. var uid = uid$2;
  606. var keys = shared$2('keys');
  607. var sharedKey$3 = function (key) {
  608. return keys[key] || (keys[key] = uid(key));
  609. };
  610. var hiddenKeys$4 = {};
  611. var NATIVE_WEAK_MAP = weakMapBasicDetection;
  612. var globalThis$8 = globalThis_1;
  613. var isObject$6 = isObject$b;
  614. var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
  615. var hasOwn$7 = hasOwnProperty_1;
  616. var shared$1 = sharedStoreExports;
  617. var sharedKey$2 = sharedKey$3;
  618. var hiddenKeys$3 = hiddenKeys$4;
  619. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  620. var TypeError$2 = globalThis$8.TypeError;
  621. var WeakMap = globalThis$8.WeakMap;
  622. var set, get, has;
  623. var enforce = function (it) {
  624. return has(it) ? get(it) : set(it, {});
  625. };
  626. var getterFor = function (TYPE) {
  627. return function (it) {
  628. var state;
  629. if (!isObject$6(it) || (state = get(it)).type !== TYPE) {
  630. throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
  631. } return state;
  632. };
  633. };
  634. if (NATIVE_WEAK_MAP || shared$1.state) {
  635. var store = shared$1.state || (shared$1.state = new WeakMap());
  636. /* eslint-disable no-self-assign -- prototype methods protection */
  637. store.get = store.get;
  638. store.has = store.has;
  639. store.set = store.set;
  640. /* eslint-enable no-self-assign -- prototype methods protection */
  641. set = function (it, metadata) {
  642. if (store.has(it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
  643. metadata.facade = it;
  644. store.set(it, metadata);
  645. return metadata;
  646. };
  647. get = function (it) {
  648. return store.get(it) || {};
  649. };
  650. has = function (it) {
  651. return store.has(it);
  652. };
  653. } else {
  654. var STATE = sharedKey$2('state');
  655. hiddenKeys$3[STATE] = true;
  656. set = function (it, metadata) {
  657. if (hasOwn$7(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
  658. metadata.facade = it;
  659. createNonEnumerableProperty$4(it, STATE, metadata);
  660. return metadata;
  661. };
  662. get = function (it) {
  663. return hasOwn$7(it, STATE) ? it[STATE] : {};
  664. };
  665. has = function (it) {
  666. return hasOwn$7(it, STATE);
  667. };
  668. }
  669. var internalState = {
  670. set: set,
  671. get: get,
  672. has: has,
  673. enforce: enforce,
  674. getterFor: getterFor
  675. };
  676. var uncurryThis$d = functionUncurryThis;
  677. var fails$e = fails$l;
  678. var isCallable$9 = isCallable$h;
  679. var hasOwn$6 = hasOwnProperty_1;
  680. var DESCRIPTORS$8 = descriptors;
  681. var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
  682. var inspectSource$1 = inspectSource$2;
  683. var InternalStateModule$3 = internalState;
  684. var enforceInternalState = InternalStateModule$3.enforce;
  685. var getInternalState$3 = InternalStateModule$3.get;
  686. var $String$2 = String;
  687. // eslint-disable-next-line es/no-object-defineproperty -- safe
  688. var defineProperty$5 = Object.defineProperty;
  689. var stringSlice$3 = uncurryThis$d(''.slice);
  690. var replace$2 = uncurryThis$d(''.replace);
  691. var join$2 = uncurryThis$d([].join);
  692. var CONFIGURABLE_LENGTH = DESCRIPTORS$8 && !fails$e(function () {
  693. return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  694. });
  695. var TEMPLATE = String(String).split('String');
  696. var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
  697. if (stringSlice$3($String$2(name), 0, 7) === 'Symbol(') {
  698. name = '[' + replace$2($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
  699. }
  700. if (options && options.getter) name = 'get ' + name;
  701. if (options && options.setter) name = 'set ' + name;
  702. if (!hasOwn$6(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
  703. if (DESCRIPTORS$8) defineProperty$5(value, 'name', { value: name, configurable: true });
  704. else value.name = name;
  705. }
  706. if (CONFIGURABLE_LENGTH && options && hasOwn$6(options, 'arity') && value.length !== options.arity) {
  707. defineProperty$5(value, 'length', { value: options.arity });
  708. }
  709. try {
  710. if (options && hasOwn$6(options, 'constructor') && options.constructor) {
  711. if (DESCRIPTORS$8) defineProperty$5(value, 'prototype', { writable: false });
  712. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  713. } else if (value.prototype) value.prototype = undefined;
  714. } catch (error) { /* empty */ }
  715. var state = enforceInternalState(value);
  716. if (!hasOwn$6(state, 'source')) {
  717. state.source = join$2(TEMPLATE, typeof name == 'string' ? name : '');
  718. } return value;
  719. };
  720. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  721. // eslint-disable-next-line no-extend-native -- required
  722. Function.prototype.toString = makeBuiltIn$2(function toString() {
  723. return isCallable$9(this) && getInternalState$3(this).source || inspectSource$1(this);
  724. }, 'toString');
  725. var makeBuiltInExports = makeBuiltIn$3.exports;
  726. var isCallable$8 = isCallable$h;
  727. var definePropertyModule$3 = objectDefineProperty;
  728. var makeBuiltIn$1 = makeBuiltInExports;
  729. var defineGlobalProperty$1 = defineGlobalProperty$3;
  730. var defineBuiltIn$8 = function (O, key, value, options) {
  731. if (!options) options = {};
  732. var simple = options.enumerable;
  733. var name = options.name !== undefined ? options.name : key;
  734. if (isCallable$8(value)) makeBuiltIn$1(value, name, options);
  735. if (options.global) {
  736. if (simple) O[key] = value;
  737. else defineGlobalProperty$1(key, value);
  738. } else {
  739. try {
  740. if (!options.unsafe) delete O[key];
  741. else if (O[key]) simple = true;
  742. } catch (error) { /* empty */ }
  743. if (simple) O[key] = value;
  744. else definePropertyModule$3.f(O, key, {
  745. value: value,
  746. enumerable: false,
  747. configurable: !options.nonConfigurable,
  748. writable: !options.nonWritable
  749. });
  750. } return O;
  751. };
  752. var objectGetOwnPropertyNames = {};
  753. var ceil = Math.ceil;
  754. var floor$1 = Math.floor;
  755. // `Math.trunc` method
  756. // https://tc39.es/ecma262/#sec-math.trunc
  757. // eslint-disable-next-line es/no-math-trunc -- safe
  758. var mathTrunc = Math.trunc || function trunc(x) {
  759. var n = +x;
  760. return (n > 0 ? floor$1 : ceil)(n);
  761. };
  762. var trunc = mathTrunc;
  763. // `ToIntegerOrInfinity` abstract operation
  764. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  765. var toIntegerOrInfinity$3 = function (argument) {
  766. var number = +argument;
  767. // eslint-disable-next-line no-self-compare -- NaN check
  768. return number !== number || number === 0 ? 0 : trunc(number);
  769. };
  770. var toIntegerOrInfinity$2 = toIntegerOrInfinity$3;
  771. var max = Math.max;
  772. var min$1 = Math.min;
  773. // Helper for a popular repeating case of the spec:
  774. // Let integer be ? ToInteger(index).
  775. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  776. var toAbsoluteIndex$2 = function (index, length) {
  777. var integer = toIntegerOrInfinity$2(index);
  778. return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
  779. };
  780. var toIntegerOrInfinity$1 = toIntegerOrInfinity$3;
  781. var min = Math.min;
  782. // `ToLength` abstract operation
  783. // https://tc39.es/ecma262/#sec-tolength
  784. var toLength$1 = function (argument) {
  785. var len = toIntegerOrInfinity$1(argument);
  786. return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  787. };
  788. var toLength = toLength$1;
  789. // `LengthOfArrayLike` abstract operation
  790. // https://tc39.es/ecma262/#sec-lengthofarraylike
  791. var lengthOfArrayLike$2 = function (obj) {
  792. return toLength(obj.length);
  793. };
  794. var toIndexedObject$4 = toIndexedObject$6;
  795. var toAbsoluteIndex$1 = toAbsoluteIndex$2;
  796. var lengthOfArrayLike$1 = lengthOfArrayLike$2;
  797. // `Array.prototype.{ indexOf, includes }` methods implementation
  798. var createMethod$2 = function (IS_INCLUDES) {
  799. return function ($this, el, fromIndex) {
  800. var O = toIndexedObject$4($this);
  801. var length = lengthOfArrayLike$1(O);
  802. if (length === 0) return !IS_INCLUDES && -1;
  803. var index = toAbsoluteIndex$1(fromIndex, length);
  804. var value;
  805. // Array#includes uses SameValueZero equality algorithm
  806. // eslint-disable-next-line no-self-compare -- NaN check
  807. if (IS_INCLUDES && el !== el) while (length > index) {
  808. value = O[index++];
  809. // eslint-disable-next-line no-self-compare -- NaN check
  810. if (value !== value) return true;
  811. // Array#indexOf ignores holes, Array#includes - not
  812. } else for (;length > index; index++) {
  813. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  814. } return !IS_INCLUDES && -1;
  815. };
  816. };
  817. var arrayIncludes = {
  818. // `Array.prototype.includes` method
  819. // https://tc39.es/ecma262/#sec-array.prototype.includes
  820. includes: createMethod$2(true),
  821. // `Array.prototype.indexOf` method
  822. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  823. indexOf: createMethod$2(false)
  824. };
  825. var uncurryThis$c = functionUncurryThis;
  826. var hasOwn$5 = hasOwnProperty_1;
  827. var toIndexedObject$3 = toIndexedObject$6;
  828. var indexOf$1 = arrayIncludes.indexOf;
  829. var hiddenKeys$2 = hiddenKeys$4;
  830. var push$2 = uncurryThis$c([].push);
  831. var objectKeysInternal = function (object, names) {
  832. var O = toIndexedObject$3(object);
  833. var i = 0;
  834. var result = [];
  835. var key;
  836. for (key in O) !hasOwn$5(hiddenKeys$2, key) && hasOwn$5(O, key) && push$2(result, key);
  837. // Don't enum bug & hidden keys
  838. while (names.length > i) if (hasOwn$5(O, key = names[i++])) {
  839. ~indexOf$1(result, key) || push$2(result, key);
  840. }
  841. return result;
  842. };
  843. // IE8- don't enum bug keys
  844. var enumBugKeys$3 = [
  845. 'constructor',
  846. 'hasOwnProperty',
  847. 'isPrototypeOf',
  848. 'propertyIsEnumerable',
  849. 'toLocaleString',
  850. 'toString',
  851. 'valueOf'
  852. ];
  853. var internalObjectKeys$1 = objectKeysInternal;
  854. var enumBugKeys$2 = enumBugKeys$3;
  855. var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
  856. // `Object.getOwnPropertyNames` method
  857. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  858. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  859. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  860. return internalObjectKeys$1(O, hiddenKeys$1);
  861. };
  862. var objectGetOwnPropertySymbols = {};
  863. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  864. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  865. var getBuiltIn$3 = getBuiltIn$5;
  866. var uncurryThis$b = functionUncurryThis;
  867. var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
  868. var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
  869. var anObject$8 = anObject$a;
  870. var concat$1 = uncurryThis$b([].concat);
  871. // all object keys, includes non-enumerable and symbols
  872. var ownKeys$1 = getBuiltIn$3('Reflect', 'ownKeys') || function ownKeys(it) {
  873. var keys = getOwnPropertyNamesModule.f(anObject$8(it));
  874. var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
  875. return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
  876. };
  877. var hasOwn$4 = hasOwnProperty_1;
  878. var ownKeys = ownKeys$1;
  879. var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
  880. var definePropertyModule$2 = objectDefineProperty;
  881. var copyConstructorProperties$1 = function (target, source, exceptions) {
  882. var keys = ownKeys(source);
  883. var defineProperty = definePropertyModule$2.f;
  884. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  885. for (var i = 0; i < keys.length; i++) {
  886. var key = keys[i];
  887. if (!hasOwn$4(target, key) && !(exceptions && hasOwn$4(exceptions, key))) {
  888. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  889. }
  890. }
  891. };
  892. var fails$d = fails$l;
  893. var isCallable$7 = isCallable$h;
  894. var replacement = /#|\.prototype\./;
  895. var isForced$1 = function (feature, detection) {
  896. var value = data[normalize(feature)];
  897. return value === POLYFILL ? true
  898. : value === NATIVE ? false
  899. : isCallable$7(detection) ? fails$d(detection)
  900. : !!detection;
  901. };
  902. var normalize = isForced$1.normalize = function (string) {
  903. return String(string).replace(replacement, '.').toLowerCase();
  904. };
  905. var data = isForced$1.data = {};
  906. var NATIVE = isForced$1.NATIVE = 'N';
  907. var POLYFILL = isForced$1.POLYFILL = 'P';
  908. var isForced_1 = isForced$1;
  909. var globalThis$7 = globalThis_1;
  910. var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
  911. var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
  912. var defineBuiltIn$7 = defineBuiltIn$8;
  913. var defineGlobalProperty = defineGlobalProperty$3;
  914. var copyConstructorProperties = copyConstructorProperties$1;
  915. var isForced = isForced_1;
  916. /*
  917. options.target - name of the target object
  918. options.global - target is the global object
  919. options.stat - export as static methods of target
  920. options.proto - export as prototype methods of target
  921. options.real - real prototype method for the `pure` version
  922. options.forced - export even if the native feature is available
  923. options.bind - bind methods to the target, required for the `pure` version
  924. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  925. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  926. options.sham - add a flag to not completely full polyfills
  927. options.enumerable - export as enumerable property
  928. options.dontCallGetSet - prevent calling a getter on target
  929. options.name - the .name of the function if it does not match the key
  930. */
  931. var _export = function (options, source) {
  932. var TARGET = options.target;
  933. var GLOBAL = options.global;
  934. var STATIC = options.stat;
  935. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  936. if (GLOBAL) {
  937. target = globalThis$7;
  938. } else if (STATIC) {
  939. target = globalThis$7[TARGET] || defineGlobalProperty(TARGET, {});
  940. } else {
  941. target = globalThis$7[TARGET] && globalThis$7[TARGET].prototype;
  942. }
  943. if (target) for (key in source) {
  944. sourceProperty = source[key];
  945. if (options.dontCallGetSet) {
  946. descriptor = getOwnPropertyDescriptor$1(target, key);
  947. targetProperty = descriptor && descriptor.value;
  948. } else targetProperty = target[key];
  949. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  950. // contained in target
  951. if (!FORCED && targetProperty !== undefined) {
  952. if (typeof sourceProperty == typeof targetProperty) continue;
  953. copyConstructorProperties(sourceProperty, targetProperty);
  954. }
  955. // add a flag to not completely full polyfills
  956. if (options.sham || (targetProperty && targetProperty.sham)) {
  957. createNonEnumerableProperty$3(sourceProperty, 'sham', true);
  958. }
  959. defineBuiltIn$7(target, key, sourceProperty, options);
  960. }
  961. };
  962. var classof$7 = classofRaw$2;
  963. // `IsArray` abstract operation
  964. // https://tc39.es/ecma262/#sec-isarray
  965. // eslint-disable-next-line es/no-array-isarray -- safe
  966. var isArray$2 = Array.isArray || function isArray(argument) {
  967. return classof$7(argument) === 'Array';
  968. };
  969. var $TypeError$5 = TypeError;
  970. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
  971. var doesNotExceedSafeInteger$1 = function (it) {
  972. if (it > MAX_SAFE_INTEGER) throw $TypeError$5('Maximum allowed index exceeded');
  973. return it;
  974. };
  975. var DESCRIPTORS$7 = descriptors;
  976. var definePropertyModule$1 = objectDefineProperty;
  977. var createPropertyDescriptor$2 = createPropertyDescriptor$5;
  978. var createProperty$1 = function (object, key, value) {
  979. if (DESCRIPTORS$7) definePropertyModule$1.f(object, key, createPropertyDescriptor$2(0, value));
  980. else object[key] = value;
  981. };
  982. var wellKnownSymbol$d = wellKnownSymbol$f;
  983. var TO_STRING_TAG$2 = wellKnownSymbol$d('toStringTag');
  984. var test = {};
  985. test[TO_STRING_TAG$2] = 'z';
  986. var toStringTagSupport = String(test) === '[object z]';
  987. var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
  988. var isCallable$6 = isCallable$h;
  989. var classofRaw$1 = classofRaw$2;
  990. var wellKnownSymbol$c = wellKnownSymbol$f;
  991. var TO_STRING_TAG$1 = wellKnownSymbol$c('toStringTag');
  992. var $Object$1 = Object;
  993. // ES3 wrong here
  994. var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
  995. // fallback for IE11 Script Access Denied error
  996. var tryGet = function (it, key) {
  997. try {
  998. return it[key];
  999. } catch (error) { /* empty */ }
  1000. };
  1001. // getting tag from ES6+ `Object.prototype.toString`
  1002. var classof$6 = TO_STRING_TAG_SUPPORT$2 ? classofRaw$1 : function (it) {
  1003. var O, tag, result;
  1004. return it === undefined ? 'Undefined' : it === null ? 'Null'
  1005. // @@toStringTag case
  1006. : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$1)) == 'string' ? tag
  1007. // builtinTag case
  1008. : CORRECT_ARGUMENTS ? classofRaw$1(O)
  1009. // ES3 arguments fallback
  1010. : (result = classofRaw$1(O)) === 'Object' && isCallable$6(O.callee) ? 'Arguments' : result;
  1011. };
  1012. var uncurryThis$a = functionUncurryThis;
  1013. var fails$c = fails$l;
  1014. var isCallable$5 = isCallable$h;
  1015. var classof$5 = classof$6;
  1016. var getBuiltIn$2 = getBuiltIn$5;
  1017. var inspectSource = inspectSource$2;
  1018. var noop = function () { /* empty */ };
  1019. var construct = getBuiltIn$2('Reflect', 'construct');
  1020. var constructorRegExp = /^\s*(?:class|function)\b/;
  1021. var exec$2 = uncurryThis$a(constructorRegExp.exec);
  1022. var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
  1023. var isConstructorModern = function isConstructor(argument) {
  1024. if (!isCallable$5(argument)) return false;
  1025. try {
  1026. construct(noop, [], argument);
  1027. return true;
  1028. } catch (error) {
  1029. return false;
  1030. }
  1031. };
  1032. var isConstructorLegacy = function isConstructor(argument) {
  1033. if (!isCallable$5(argument)) return false;
  1034. switch (classof$5(argument)) {
  1035. case 'AsyncFunction':
  1036. case 'GeneratorFunction':
  1037. case 'AsyncGeneratorFunction': return false;
  1038. }
  1039. try {
  1040. // we can't check .prototype since constructors produced by .bind haven't it
  1041. // `Function#toString` throws on some built-it function in some legacy engines
  1042. // (for example, `DOMQuad` and similar in FF41-)
  1043. return INCORRECT_TO_STRING || !!exec$2(constructorRegExp, inspectSource(argument));
  1044. } catch (error) {
  1045. return true;
  1046. }
  1047. };
  1048. isConstructorLegacy.sham = true;
  1049. // `IsConstructor` abstract operation
  1050. // https://tc39.es/ecma262/#sec-isconstructor
  1051. var isConstructor$1 = !construct || fails$c(function () {
  1052. var called;
  1053. return isConstructorModern(isConstructorModern.call)
  1054. || !isConstructorModern(Object)
  1055. || !isConstructorModern(function () { called = true; })
  1056. || called;
  1057. }) ? isConstructorLegacy : isConstructorModern;
  1058. var isArray$1 = isArray$2;
  1059. var isConstructor = isConstructor$1;
  1060. var isObject$5 = isObject$b;
  1061. var wellKnownSymbol$b = wellKnownSymbol$f;
  1062. var SPECIES$2 = wellKnownSymbol$b('species');
  1063. var $Array = Array;
  1064. // a part of `ArraySpeciesCreate` abstract operation
  1065. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1066. var arraySpeciesConstructor$1 = function (originalArray) {
  1067. var C;
  1068. if (isArray$1(originalArray)) {
  1069. C = originalArray.constructor;
  1070. // cross-realm fallback
  1071. if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined;
  1072. else if (isObject$5(C)) {
  1073. C = C[SPECIES$2];
  1074. if (C === null) C = undefined;
  1075. }
  1076. } return C === undefined ? $Array : C;
  1077. };
  1078. var arraySpeciesConstructor = arraySpeciesConstructor$1;
  1079. // `ArraySpeciesCreate` abstract operation
  1080. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1081. var arraySpeciesCreate$1 = function (originalArray, length) {
  1082. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1083. };
  1084. var fails$b = fails$l;
  1085. var wellKnownSymbol$a = wellKnownSymbol$f;
  1086. var V8_VERSION$1 = environmentV8Version;
  1087. var SPECIES$1 = wellKnownSymbol$a('species');
  1088. var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) {
  1089. // We can't use this feature detection in V8 since it causes
  1090. // deoptimization and serious performance degradation
  1091. // https://github.com/zloirock/core-js/issues/677
  1092. return V8_VERSION$1 >= 51 || !fails$b(function () {
  1093. var array = [];
  1094. var constructor = array.constructor = {};
  1095. constructor[SPECIES$1] = function () {
  1096. return { foo: 1 };
  1097. };
  1098. return array[METHOD_NAME](Boolean).foo !== 1;
  1099. });
  1100. };
  1101. var $$6 = _export;
  1102. var fails$a = fails$l;
  1103. var isArray = isArray$2;
  1104. var isObject$4 = isObject$b;
  1105. var toObject$2 = toObject$4;
  1106. var lengthOfArrayLike = lengthOfArrayLike$2;
  1107. var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
  1108. var createProperty = createProperty$1;
  1109. var arraySpeciesCreate = arraySpeciesCreate$1;
  1110. var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
  1111. var wellKnownSymbol$9 = wellKnownSymbol$f;
  1112. var V8_VERSION = environmentV8Version;
  1113. var IS_CONCAT_SPREADABLE = wellKnownSymbol$9('isConcatSpreadable');
  1114. // We can't use this feature detection in V8 since it causes
  1115. // deoptimization and serious performance degradation
  1116. // https://github.com/zloirock/core-js/issues/679
  1117. var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$a(function () {
  1118. var array = [];
  1119. array[IS_CONCAT_SPREADABLE] = false;
  1120. return array.concat()[0] !== array;
  1121. });
  1122. var isConcatSpreadable = function (O) {
  1123. if (!isObject$4(O)) return false;
  1124. var spreadable = O[IS_CONCAT_SPREADABLE];
  1125. return spreadable !== undefined ? !!spreadable : isArray(O);
  1126. };
  1127. var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');
  1128. // `Array.prototype.concat` method
  1129. // https://tc39.es/ecma262/#sec-array.prototype.concat
  1130. // with adding support of @@isConcatSpreadable and @@species
  1131. $$6({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
  1132. // eslint-disable-next-line no-unused-vars -- required for `.length`
  1133. concat: function concat(arg) {
  1134. var O = toObject$2(this);
  1135. var A = arraySpeciesCreate(O, 0);
  1136. var n = 0;
  1137. var i, k, length, len, E;
  1138. for (i = -1, length = arguments.length; i < length; i++) {
  1139. E = i === -1 ? O : arguments[i];
  1140. if (isConcatSpreadable(E)) {
  1141. len = lengthOfArrayLike(E);
  1142. doesNotExceedSafeInteger(n + len);
  1143. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  1144. } else {
  1145. doesNotExceedSafeInteger(n + 1);
  1146. createProperty(A, n++, E);
  1147. }
  1148. }
  1149. A.length = n;
  1150. return A;
  1151. }
  1152. });
  1153. var objectDefineProperties = {};
  1154. var internalObjectKeys = objectKeysInternal;
  1155. var enumBugKeys$1 = enumBugKeys$3;
  1156. // `Object.keys` method
  1157. // https://tc39.es/ecma262/#sec-object.keys
  1158. // eslint-disable-next-line es/no-object-keys -- safe
  1159. var objectKeys$3 = Object.keys || function keys(O) {
  1160. return internalObjectKeys(O, enumBugKeys$1);
  1161. };
  1162. var DESCRIPTORS$6 = descriptors;
  1163. var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
  1164. var definePropertyModule = objectDefineProperty;
  1165. var anObject$7 = anObject$a;
  1166. var toIndexedObject$2 = toIndexedObject$6;
  1167. var objectKeys$2 = objectKeys$3;
  1168. // `Object.defineProperties` method
  1169. // https://tc39.es/ecma262/#sec-object.defineproperties
  1170. // eslint-disable-next-line es/no-object-defineproperties -- safe
  1171. objectDefineProperties.f = DESCRIPTORS$6 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
  1172. anObject$7(O);
  1173. var props = toIndexedObject$2(Properties);
  1174. var keys = objectKeys$2(Properties);
  1175. var length = keys.length;
  1176. var index = 0;
  1177. var key;
  1178. while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
  1179. return O;
  1180. };
  1181. var getBuiltIn$1 = getBuiltIn$5;
  1182. var html$1 = getBuiltIn$1('document', 'documentElement');
  1183. /* global ActiveXObject -- old IE, WSH */
  1184. var anObject$6 = anObject$a;
  1185. var definePropertiesModule = objectDefineProperties;
  1186. var enumBugKeys = enumBugKeys$3;
  1187. var hiddenKeys = hiddenKeys$4;
  1188. var html = html$1;
  1189. var documentCreateElement$1 = documentCreateElement$2;
  1190. var sharedKey$1 = sharedKey$3;
  1191. var GT = '>';
  1192. var LT = '<';
  1193. var PROTOTYPE = 'prototype';
  1194. var SCRIPT = 'script';
  1195. var IE_PROTO$1 = sharedKey$1('IE_PROTO');
  1196. var EmptyConstructor = function () { /* empty */ };
  1197. var scriptTag = function (content) {
  1198. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  1199. };
  1200. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  1201. var NullProtoObjectViaActiveX = function (activeXDocument) {
  1202. activeXDocument.write(scriptTag(''));
  1203. activeXDocument.close();
  1204. var temp = activeXDocument.parentWindow.Object;
  1205. // eslint-disable-next-line no-useless-assignment -- avoid memory leak
  1206. activeXDocument = null;
  1207. return temp;
  1208. };
  1209. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  1210. var NullProtoObjectViaIFrame = function () {
  1211. // Thrash, waste and sodomy: IE GC bug
  1212. var iframe = documentCreateElement$1('iframe');
  1213. var JS = 'java' + SCRIPT + ':';
  1214. var iframeDocument;
  1215. iframe.style.display = 'none';
  1216. html.appendChild(iframe);
  1217. // https://github.com/zloirock/core-js/issues/475
  1218. iframe.src = String(JS);
  1219. iframeDocument = iframe.contentWindow.document;
  1220. iframeDocument.open();
  1221. iframeDocument.write(scriptTag('document.F=Object'));
  1222. iframeDocument.close();
  1223. return iframeDocument.F;
  1224. };
  1225. // Check for document.domain and active x support
  1226. // No need to use active x approach when document.domain is not set
  1227. // see https://github.com/es-shims/es5-shim/issues/150
  1228. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  1229. // avoid IE GC bug
  1230. var activeXDocument;
  1231. var NullProtoObject = function () {
  1232. try {
  1233. activeXDocument = new ActiveXObject('htmlfile');
  1234. } catch (error) { /* ignore */ }
  1235. NullProtoObject = typeof document != 'undefined'
  1236. ? document.domain && activeXDocument
  1237. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  1238. : NullProtoObjectViaIFrame()
  1239. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  1240. var length = enumBugKeys.length;
  1241. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  1242. return NullProtoObject();
  1243. };
  1244. hiddenKeys[IE_PROTO$1] = true;
  1245. // `Object.create` method
  1246. // https://tc39.es/ecma262/#sec-object.create
  1247. // eslint-disable-next-line es/no-object-create -- safe
  1248. var objectCreate = Object.create || function create(O, Properties) {
  1249. var result;
  1250. if (O !== null) {
  1251. EmptyConstructor[PROTOTYPE] = anObject$6(O);
  1252. result = new EmptyConstructor();
  1253. EmptyConstructor[PROTOTYPE] = null;
  1254. // add "__proto__" for Object.getPrototypeOf polyfill
  1255. result[IE_PROTO$1] = O;
  1256. } else result = NullProtoObject();
  1257. return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
  1258. };
  1259. var wellKnownSymbol$8 = wellKnownSymbol$f;
  1260. var create$3 = objectCreate;
  1261. var defineProperty$4 = objectDefineProperty.f;
  1262. var UNSCOPABLES = wellKnownSymbol$8('unscopables');
  1263. var ArrayPrototype = Array.prototype;
  1264. // Array.prototype[@@unscopables]
  1265. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1266. if (ArrayPrototype[UNSCOPABLES] === undefined) {
  1267. defineProperty$4(ArrayPrototype, UNSCOPABLES, {
  1268. configurable: true,
  1269. value: create$3(null)
  1270. });
  1271. }
  1272. // add a key to Array.prototype[@@unscopables]
  1273. var addToUnscopables$1 = function (key) {
  1274. ArrayPrototype[UNSCOPABLES][key] = true;
  1275. };
  1276. var iterators = {};
  1277. var fails$9 = fails$l;
  1278. var correctPrototypeGetter = !fails$9(function () {
  1279. function F() { /* empty */ }
  1280. F.prototype.constructor = null;
  1281. // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
  1282. return Object.getPrototypeOf(new F()) !== F.prototype;
  1283. });
  1284. var hasOwn$3 = hasOwnProperty_1;
  1285. var isCallable$4 = isCallable$h;
  1286. var toObject$1 = toObject$4;
  1287. var sharedKey = sharedKey$3;
  1288. var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
  1289. var IE_PROTO = sharedKey('IE_PROTO');
  1290. var $Object = Object;
  1291. var ObjectPrototype = $Object.prototype;
  1292. // `Object.getPrototypeOf` method
  1293. // https://tc39.es/ecma262/#sec-object.getprototypeof
  1294. // eslint-disable-next-line es/no-object-getprototypeof -- safe
  1295. var objectGetPrototypeOf$1 = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
  1296. var object = toObject$1(O);
  1297. if (hasOwn$3(object, IE_PROTO)) return object[IE_PROTO];
  1298. var constructor = object.constructor;
  1299. if (isCallable$4(constructor) && object instanceof constructor) {
  1300. return constructor.prototype;
  1301. } return object instanceof $Object ? ObjectPrototype : null;
  1302. };
  1303. var fails$8 = fails$l;
  1304. var isCallable$3 = isCallable$h;
  1305. var isObject$3 = isObject$b;
  1306. var getPrototypeOf$1 = objectGetPrototypeOf$1;
  1307. var defineBuiltIn$6 = defineBuiltIn$8;
  1308. var wellKnownSymbol$7 = wellKnownSymbol$f;
  1309. var ITERATOR$5 = wellKnownSymbol$7('iterator');
  1310. var BUGGY_SAFARI_ITERATORS$1 = false;
  1311. // `%IteratorPrototype%` object
  1312. // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
  1313. var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
  1314. /* eslint-disable es/no-array-prototype-keys -- safe */
  1315. if ([].keys) {
  1316. arrayIterator = [].keys();
  1317. // Safari 8 has buggy iterators w/o `next`
  1318. if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
  1319. else {
  1320. PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
  1321. if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
  1322. }
  1323. }
  1324. var NEW_ITERATOR_PROTOTYPE = !isObject$3(IteratorPrototype$2) || fails$8(function () {
  1325. var test = {};
  1326. // FF44- legacy iterators case
  1327. return IteratorPrototype$2[ITERATOR$5].call(test) !== test;
  1328. });
  1329. if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
  1330. // `%IteratorPrototype%[@@iterator]()` method
  1331. // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
  1332. if (!isCallable$3(IteratorPrototype$2[ITERATOR$5])) {
  1333. defineBuiltIn$6(IteratorPrototype$2, ITERATOR$5, function () {
  1334. return this;
  1335. });
  1336. }
  1337. var iteratorsCore = {
  1338. IteratorPrototype: IteratorPrototype$2,
  1339. BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
  1340. };
  1341. var defineProperty$3 = objectDefineProperty.f;
  1342. var hasOwn$2 = hasOwnProperty_1;
  1343. var wellKnownSymbol$6 = wellKnownSymbol$f;
  1344. var TO_STRING_TAG = wellKnownSymbol$6('toStringTag');
  1345. var setToStringTag$4 = function (target, TAG, STATIC) {
  1346. if (target && !STATIC) target = target.prototype;
  1347. if (target && !hasOwn$2(target, TO_STRING_TAG)) {
  1348. defineProperty$3(target, TO_STRING_TAG, { configurable: true, value: TAG });
  1349. }
  1350. };
  1351. var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
  1352. var create$2 = objectCreate;
  1353. var createPropertyDescriptor$1 = createPropertyDescriptor$5;
  1354. var setToStringTag$3 = setToStringTag$4;
  1355. var Iterators$3 = iterators;
  1356. var returnThis$1 = function () { return this; };
  1357. var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
  1358. var TO_STRING_TAG = NAME + ' Iterator';
  1359. IteratorConstructor.prototype = create$2(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
  1360. setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false);
  1361. Iterators$3[TO_STRING_TAG] = returnThis$1;
  1362. return IteratorConstructor;
  1363. };
  1364. var uncurryThis$9 = functionUncurryThis;
  1365. var aCallable$2 = aCallable$4;
  1366. var functionUncurryThisAccessor = function (object, key, method) {
  1367. try {
  1368. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  1369. return uncurryThis$9(aCallable$2(Object.getOwnPropertyDescriptor(object, key)[method]));
  1370. } catch (error) { /* empty */ }
  1371. };
  1372. var isObject$2 = isObject$b;
  1373. var isPossiblePrototype$1 = function (argument) {
  1374. return isObject$2(argument) || argument === null;
  1375. };
  1376. var isPossiblePrototype = isPossiblePrototype$1;
  1377. var $String$1 = String;
  1378. var $TypeError$4 = TypeError;
  1379. var aPossiblePrototype$1 = function (argument) {
  1380. if (isPossiblePrototype(argument)) return argument;
  1381. throw new $TypeError$4("Can't set " + $String$1(argument) + ' as a prototype');
  1382. };
  1383. /* eslint-disable no-proto -- safe */
  1384. var uncurryThisAccessor = functionUncurryThisAccessor;
  1385. var isObject$1 = isObject$b;
  1386. var requireObjectCoercible$2 = requireObjectCoercible$5;
  1387. var aPossiblePrototype = aPossiblePrototype$1;
  1388. // `Object.setPrototypeOf` method
  1389. // https://tc39.es/ecma262/#sec-object.setprototypeof
  1390. // Works with __proto__ only. Old v8 can't work with null proto objects.
  1391. // eslint-disable-next-line es/no-object-setprototypeof -- safe
  1392. var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
  1393. var CORRECT_SETTER = false;
  1394. var test = {};
  1395. var setter;
  1396. try {
  1397. setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
  1398. setter(test, []);
  1399. CORRECT_SETTER = test instanceof Array;
  1400. } catch (error) { /* empty */ }
  1401. return function setPrototypeOf(O, proto) {
  1402. requireObjectCoercible$2(O);
  1403. aPossiblePrototype(proto);
  1404. if (!isObject$1(O)) return O;
  1405. if (CORRECT_SETTER) setter(O, proto);
  1406. else O.__proto__ = proto;
  1407. return O;
  1408. };
  1409. }() : undefined);
  1410. var $$5 = _export;
  1411. var call$8 = functionCall;
  1412. var FunctionName = functionName;
  1413. var isCallable$2 = isCallable$h;
  1414. var createIteratorConstructor$1 = iteratorCreateConstructor;
  1415. var getPrototypeOf = objectGetPrototypeOf$1;
  1416. var setPrototypeOf = objectSetPrototypeOf;
  1417. var setToStringTag$2 = setToStringTag$4;
  1418. var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
  1419. var defineBuiltIn$5 = defineBuiltIn$8;
  1420. var wellKnownSymbol$5 = wellKnownSymbol$f;
  1421. var Iterators$2 = iterators;
  1422. var IteratorsCore = iteratorsCore;
  1423. var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
  1424. var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
  1425. var IteratorPrototype = IteratorsCore.IteratorPrototype;
  1426. var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
  1427. var ITERATOR$4 = wellKnownSymbol$5('iterator');
  1428. var KEYS = 'keys';
  1429. var VALUES = 'values';
  1430. var ENTRIES = 'entries';
  1431. var returnThis = function () { return this; };
  1432. var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
  1433. createIteratorConstructor$1(IteratorConstructor, NAME, next);
  1434. var getIterationMethod = function (KIND) {
  1435. if (KIND === DEFAULT && defaultIterator) return defaultIterator;
  1436. if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
  1437. switch (KIND) {
  1438. case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
  1439. case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
  1440. case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
  1441. }
  1442. return function () { return new IteratorConstructor(this); };
  1443. };
  1444. var TO_STRING_TAG = NAME + ' Iterator';
  1445. var INCORRECT_VALUES_NAME = false;
  1446. var IterablePrototype = Iterable.prototype;
  1447. var nativeIterator = IterablePrototype[ITERATOR$4]
  1448. || IterablePrototype['@@iterator']
  1449. || DEFAULT && IterablePrototype[DEFAULT];
  1450. var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
  1451. var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
  1452. var CurrentIteratorPrototype, methods, KEY;
  1453. // fix native
  1454. if (anyNativeIterator) {
  1455. CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
  1456. if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
  1457. if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
  1458. if (setPrototypeOf) {
  1459. setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
  1460. } else if (!isCallable$2(CurrentIteratorPrototype[ITERATOR$4])) {
  1461. defineBuiltIn$5(CurrentIteratorPrototype, ITERATOR$4, returnThis);
  1462. }
  1463. }
  1464. // Set @@toStringTag to native iterators
  1465. setToStringTag$2(CurrentIteratorPrototype, TO_STRING_TAG, true);
  1466. }
  1467. }
  1468. // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
  1469. if (PROPER_FUNCTION_NAME$1 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
  1470. if (CONFIGURABLE_FUNCTION_NAME) {
  1471. createNonEnumerableProperty$2(IterablePrototype, 'name', VALUES);
  1472. } else {
  1473. INCORRECT_VALUES_NAME = true;
  1474. defaultIterator = function values() { return call$8(nativeIterator, this); };
  1475. }
  1476. }
  1477. // export additional methods
  1478. if (DEFAULT) {
  1479. methods = {
  1480. values: getIterationMethod(VALUES),
  1481. keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
  1482. entries: getIterationMethod(ENTRIES)
  1483. };
  1484. if (FORCED) for (KEY in methods) {
  1485. if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
  1486. defineBuiltIn$5(IterablePrototype, KEY, methods[KEY]);
  1487. }
  1488. } else $$5({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
  1489. }
  1490. // define iterator
  1491. if (IterablePrototype[ITERATOR$4] !== defaultIterator) {
  1492. defineBuiltIn$5(IterablePrototype, ITERATOR$4, defaultIterator, { name: DEFAULT });
  1493. }
  1494. Iterators$2[NAME] = defaultIterator;
  1495. return methods;
  1496. };
  1497. // `CreateIterResultObject` abstract operation
  1498. // https://tc39.es/ecma262/#sec-createiterresultobject
  1499. var createIterResultObject$3 = function (value, done) {
  1500. return { value: value, done: done };
  1501. };
  1502. var toIndexedObject$1 = toIndexedObject$6;
  1503. var addToUnscopables = addToUnscopables$1;
  1504. var Iterators$1 = iterators;
  1505. var InternalStateModule$2 = internalState;
  1506. var defineProperty$2 = objectDefineProperty.f;
  1507. var defineIterator$1 = iteratorDefine;
  1508. var createIterResultObject$2 = createIterResultObject$3;
  1509. var DESCRIPTORS$5 = descriptors;
  1510. var ARRAY_ITERATOR = 'Array Iterator';
  1511. var setInternalState$2 = InternalStateModule$2.set;
  1512. var getInternalState$2 = InternalStateModule$2.getterFor(ARRAY_ITERATOR);
  1513. // `Array.prototype.entries` method
  1514. // https://tc39.es/ecma262/#sec-array.prototype.entries
  1515. // `Array.prototype.keys` method
  1516. // https://tc39.es/ecma262/#sec-array.prototype.keys
  1517. // `Array.prototype.values` method
  1518. // https://tc39.es/ecma262/#sec-array.prototype.values
  1519. // `Array.prototype[@@iterator]` method
  1520. // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
  1521. // `CreateArrayIterator` internal method
  1522. // https://tc39.es/ecma262/#sec-createarrayiterator
  1523. var es_array_iterator = defineIterator$1(Array, 'Array', function (iterated, kind) {
  1524. setInternalState$2(this, {
  1525. type: ARRAY_ITERATOR,
  1526. target: toIndexedObject$1(iterated), // target
  1527. index: 0, // next index
  1528. kind: kind // kind
  1529. });
  1530. // `%ArrayIteratorPrototype%.next` method
  1531. // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
  1532. }, function () {
  1533. var state = getInternalState$2(this);
  1534. var target = state.target;
  1535. var index = state.index++;
  1536. if (!target || index >= target.length) {
  1537. state.target = null;
  1538. return createIterResultObject$2(undefined, true);
  1539. }
  1540. switch (state.kind) {
  1541. case 'keys': return createIterResultObject$2(index, false);
  1542. case 'values': return createIterResultObject$2(target[index], false);
  1543. } return createIterResultObject$2([index, target[index]], false);
  1544. }, 'values');
  1545. // argumentsList[@@iterator] is %ArrayProto_values%
  1546. // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
  1547. // https://tc39.es/ecma262/#sec-createmappedargumentsobject
  1548. var values = Iterators$1.Arguments = Iterators$1.Array;
  1549. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1550. addToUnscopables('keys');
  1551. addToUnscopables('values');
  1552. addToUnscopables('entries');
  1553. // V8 ~ Chrome 45- bug
  1554. if (DESCRIPTORS$5 && values.name !== 'values') try {
  1555. defineProperty$2(values, 'name', { value: 'values' });
  1556. } catch (error) { /* empty */ }
  1557. var DESCRIPTORS$4 = descriptors;
  1558. var uncurryThis$8 = functionUncurryThis;
  1559. var call$7 = functionCall;
  1560. var fails$7 = fails$l;
  1561. var objectKeys$1 = objectKeys$3;
  1562. var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
  1563. var propertyIsEnumerableModule = objectPropertyIsEnumerable;
  1564. var toObject = toObject$4;
  1565. var IndexedObject = indexedObject;
  1566. // eslint-disable-next-line es/no-object-assign -- safe
  1567. var $assign = Object.assign;
  1568. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  1569. var defineProperty$1 = Object.defineProperty;
  1570. var concat = uncurryThis$8([].concat);
  1571. // `Object.assign` method
  1572. // https://tc39.es/ecma262/#sec-object.assign
  1573. var objectAssign = !$assign || fails$7(function () {
  1574. // should have correct order of operations (Edge bug)
  1575. if (DESCRIPTORS$4 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', {
  1576. enumerable: true,
  1577. get: function () {
  1578. defineProperty$1(this, 'b', {
  1579. value: 3,
  1580. enumerable: false
  1581. });
  1582. }
  1583. }), { b: 2 })).b !== 1) return true;
  1584. // should work with symbols and should have deterministic property order (V8 bug)
  1585. var A = {};
  1586. var B = {};
  1587. // eslint-disable-next-line es/no-symbol -- safe
  1588. var symbol = Symbol('assign detection');
  1589. var alphabet = 'abcdefghijklmnopqrst';
  1590. A[symbol] = 7;
  1591. alphabet.split('').forEach(function (chr) { B[chr] = chr; });
  1592. return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
  1593. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
  1594. var T = toObject(target);
  1595. var argumentsLength = arguments.length;
  1596. var index = 1;
  1597. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  1598. var propertyIsEnumerable = propertyIsEnumerableModule.f;
  1599. while (argumentsLength > index) {
  1600. var S = IndexedObject(arguments[index++]);
  1601. var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
  1602. var length = keys.length;
  1603. var j = 0;
  1604. var key;
  1605. while (length > j) {
  1606. key = keys[j++];
  1607. if (!DESCRIPTORS$4 || call$7(propertyIsEnumerable, S, key)) T[key] = S[key];
  1608. }
  1609. } return T;
  1610. } : $assign;
  1611. var $$4 = _export;
  1612. var assign = objectAssign;
  1613. // `Object.assign` method
  1614. // https://tc39.es/ecma262/#sec-object.assign
  1615. // eslint-disable-next-line es/no-object-assign -- required for testing
  1616. $$4({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
  1617. assign: assign
  1618. });
  1619. var DESCRIPTORS$3 = descriptors;
  1620. var fails$6 = fails$l;
  1621. var uncurryThis$7 = functionUncurryThis;
  1622. var objectGetPrototypeOf = objectGetPrototypeOf$1;
  1623. var objectKeys = objectKeys$3;
  1624. var toIndexedObject = toIndexedObject$6;
  1625. var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
  1626. var propertyIsEnumerable = uncurryThis$7($propertyIsEnumerable);
  1627. var push$1 = uncurryThis$7([].push);
  1628. // in some IE versions, `propertyIsEnumerable` returns incorrect result on integer keys
  1629. // of `null` prototype objects
  1630. var IE_BUG = DESCRIPTORS$3 && fails$6(function () {
  1631. // eslint-disable-next-line es/no-object-create -- safe
  1632. var O = Object.create(null);
  1633. O[2] = 2;
  1634. return !propertyIsEnumerable(O, 2);
  1635. });
  1636. // `Object.{ entries, values }` methods implementation
  1637. var createMethod$1 = function (TO_ENTRIES) {
  1638. return function (it) {
  1639. var O = toIndexedObject(it);
  1640. var keys = objectKeys(O);
  1641. var IE_WORKAROUND = IE_BUG && objectGetPrototypeOf(O) === null;
  1642. var length = keys.length;
  1643. var i = 0;
  1644. var result = [];
  1645. var key;
  1646. while (length > i) {
  1647. key = keys[i++];
  1648. if (!DESCRIPTORS$3 || (IE_WORKAROUND ? key in O : propertyIsEnumerable(O, key))) {
  1649. push$1(result, TO_ENTRIES ? [key, O[key]] : O[key]);
  1650. }
  1651. }
  1652. return result;
  1653. };
  1654. };
  1655. var objectToArray = {
  1656. // `Object.entries` method
  1657. // https://tc39.es/ecma262/#sec-object.entries
  1658. entries: createMethod$1(true),
  1659. // `Object.values` method
  1660. // https://tc39.es/ecma262/#sec-object.values
  1661. values: createMethod$1(false)
  1662. };
  1663. var $$3 = _export;
  1664. var $entries = objectToArray.entries;
  1665. // `Object.entries` method
  1666. // https://tc39.es/ecma262/#sec-object.entries
  1667. $$3({ target: 'Object', stat: true }, {
  1668. entries: function entries(O) {
  1669. return $entries(O);
  1670. }
  1671. });
  1672. var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
  1673. var classof$4 = classof$6;
  1674. // `Object.prototype.toString` method implementation
  1675. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1676. var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
  1677. return '[object ' + classof$4(this) + ']';
  1678. };
  1679. var TO_STRING_TAG_SUPPORT = toStringTagSupport;
  1680. var defineBuiltIn$4 = defineBuiltIn$8;
  1681. var toString$5 = objectToString;
  1682. // `Object.prototype.toString` method
  1683. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1684. if (!TO_STRING_TAG_SUPPORT) {
  1685. defineBuiltIn$4(Object.prototype, 'toString', toString$5, { unsafe: true });
  1686. }
  1687. var classof$3 = classof$6;
  1688. var $String = String;
  1689. var toString$4 = function (argument) {
  1690. if (classof$3(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
  1691. return $String(argument);
  1692. };
  1693. var anObject$5 = anObject$a;
  1694. // `RegExp.prototype.flags` getter implementation
  1695. // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
  1696. var regexpFlags$1 = function () {
  1697. var that = anObject$5(this);
  1698. var result = '';
  1699. if (that.hasIndices) result += 'd';
  1700. if (that.global) result += 'g';
  1701. if (that.ignoreCase) result += 'i';
  1702. if (that.multiline) result += 'm';
  1703. if (that.dotAll) result += 's';
  1704. if (that.unicode) result += 'u';
  1705. if (that.unicodeSets) result += 'v';
  1706. if (that.sticky) result += 'y';
  1707. return result;
  1708. };
  1709. var fails$5 = fails$l;
  1710. var globalThis$6 = globalThis_1;
  1711. // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
  1712. var $RegExp$2 = globalThis$6.RegExp;
  1713. var UNSUPPORTED_Y$1 = fails$5(function () {
  1714. var re = $RegExp$2('a', 'y');
  1715. re.lastIndex = 2;
  1716. return re.exec('abcd') !== null;
  1717. });
  1718. // UC Browser bug
  1719. // https://github.com/zloirock/core-js/issues/1008
  1720. var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$5(function () {
  1721. return !$RegExp$2('a', 'y').sticky;
  1722. });
  1723. var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$5(function () {
  1724. // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
  1725. var re = $RegExp$2('^r', 'gy');
  1726. re.lastIndex = 2;
  1727. return re.exec('str') !== null;
  1728. });
  1729. var regexpStickyHelpers = {
  1730. BROKEN_CARET: BROKEN_CARET,
  1731. MISSED_STICKY: MISSED_STICKY,
  1732. UNSUPPORTED_Y: UNSUPPORTED_Y$1
  1733. };
  1734. var fails$4 = fails$l;
  1735. var globalThis$5 = globalThis_1;
  1736. // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
  1737. var $RegExp$1 = globalThis$5.RegExp;
  1738. var regexpUnsupportedDotAll = fails$4(function () {
  1739. var re = $RegExp$1('.', 's');
  1740. return !(re.dotAll && re.test('\n') && re.flags === 's');
  1741. });
  1742. var fails$3 = fails$l;
  1743. var globalThis$4 = globalThis_1;
  1744. // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
  1745. var $RegExp = globalThis$4.RegExp;
  1746. var regexpUnsupportedNcg = fails$3(function () {
  1747. var re = $RegExp('(?<a>b)', 'g');
  1748. return re.exec('b').groups.a !== 'b' ||
  1749. 'b'.replace(re, '$<a>c') !== 'bc';
  1750. });
  1751. /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
  1752. /* eslint-disable regexp/no-useless-quantifier -- testing */
  1753. var call$6 = functionCall;
  1754. var uncurryThis$6 = functionUncurryThis;
  1755. var toString$3 = toString$4;
  1756. var regexpFlags = regexpFlags$1;
  1757. var stickyHelpers = regexpStickyHelpers;
  1758. var shared = shared$4;
  1759. var create$1 = objectCreate;
  1760. var getInternalState$1 = internalState.get;
  1761. var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
  1762. var UNSUPPORTED_NCG = regexpUnsupportedNcg;
  1763. var nativeReplace = shared('native-string-replace', String.prototype.replace);
  1764. var nativeExec = RegExp.prototype.exec;
  1765. var patchedExec = nativeExec;
  1766. var charAt$3 = uncurryThis$6(''.charAt);
  1767. var indexOf = uncurryThis$6(''.indexOf);
  1768. var replace$1 = uncurryThis$6(''.replace);
  1769. var stringSlice$2 = uncurryThis$6(''.slice);
  1770. var UPDATES_LAST_INDEX_WRONG = (function () {
  1771. var re1 = /a/;
  1772. var re2 = /b*/g;
  1773. call$6(nativeExec, re1, 'a');
  1774. call$6(nativeExec, re2, 'a');
  1775. return re1.lastIndex !== 0 || re2.lastIndex !== 0;
  1776. })();
  1777. var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
  1778. // nonparticipating capturing group, copied from es5-shim's String#split patch.
  1779. var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
  1780. var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
  1781. if (PATCH) {
  1782. patchedExec = function exec(string) {
  1783. var re = this;
  1784. var state = getInternalState$1(re);
  1785. var str = toString$3(string);
  1786. var raw = state.raw;
  1787. var result, reCopy, lastIndex, match, i, object, group;
  1788. if (raw) {
  1789. raw.lastIndex = re.lastIndex;
  1790. result = call$6(patchedExec, raw, str);
  1791. re.lastIndex = raw.lastIndex;
  1792. return result;
  1793. }
  1794. var groups = state.groups;
  1795. var sticky = UNSUPPORTED_Y && re.sticky;
  1796. var flags = call$6(regexpFlags, re);
  1797. var source = re.source;
  1798. var charsAdded = 0;
  1799. var strCopy = str;
  1800. if (sticky) {
  1801. flags = replace$1(flags, 'y', '');
  1802. if (indexOf(flags, 'g') === -1) {
  1803. flags += 'g';
  1804. }
  1805. strCopy = stringSlice$2(str, re.lastIndex);
  1806. // Support anchored sticky behavior.
  1807. if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
  1808. source = '(?: ' + source + ')';
  1809. strCopy = ' ' + strCopy;
  1810. charsAdded++;
  1811. }
  1812. // ^(? + rx + ) is needed, in combination with some str slicing, to
  1813. // simulate the 'y' flag.
  1814. reCopy = new RegExp('^(?:' + source + ')', flags);
  1815. }
  1816. if (NPCG_INCLUDED) {
  1817. reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
  1818. }
  1819. if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
  1820. match = call$6(nativeExec, sticky ? reCopy : re, strCopy);
  1821. if (sticky) {
  1822. if (match) {
  1823. match.input = stringSlice$2(match.input, charsAdded);
  1824. match[0] = stringSlice$2(match[0], charsAdded);
  1825. match.index = re.lastIndex;
  1826. re.lastIndex += match[0].length;
  1827. } else re.lastIndex = 0;
  1828. } else if (UPDATES_LAST_INDEX_WRONG && match) {
  1829. re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
  1830. }
  1831. if (NPCG_INCLUDED && match && match.length > 1) {
  1832. // Fix browsers whose `exec` methods don't consistently return `undefined`
  1833. // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
  1834. call$6(nativeReplace, match[0], reCopy, function () {
  1835. for (i = 1; i < arguments.length - 2; i++) {
  1836. if (arguments[i] === undefined) match[i] = undefined;
  1837. }
  1838. });
  1839. }
  1840. if (match && groups) {
  1841. match.groups = object = create$1(null);
  1842. for (i = 0; i < groups.length; i++) {
  1843. group = groups[i];
  1844. object[group[0]] = match[group[1]];
  1845. }
  1846. }
  1847. return match;
  1848. };
  1849. }
  1850. var regexpExec$2 = patchedExec;
  1851. var $$2 = _export;
  1852. var exec$1 = regexpExec$2;
  1853. // `RegExp.prototype.exec` method
  1854. // https://tc39.es/ecma262/#sec-regexp.prototype.exec
  1855. $$2({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
  1856. exec: exec$1
  1857. });
  1858. var call$5 = functionCall;
  1859. var hasOwn$1 = hasOwnProperty_1;
  1860. var isPrototypeOf$1 = objectIsPrototypeOf;
  1861. var regExpFlags = regexpFlags$1;
  1862. var RegExpPrototype$2 = RegExp.prototype;
  1863. var regexpGetFlags = function (R) {
  1864. var flags = R.flags;
  1865. return flags === undefined && !('flags' in RegExpPrototype$2) && !hasOwn$1(R, 'flags') && isPrototypeOf$1(RegExpPrototype$2, R)
  1866. ? call$5(regExpFlags, R) : flags;
  1867. };
  1868. var PROPER_FUNCTION_NAME = functionName.PROPER;
  1869. var defineBuiltIn$3 = defineBuiltIn$8;
  1870. var anObject$4 = anObject$a;
  1871. var $toString$1 = toString$4;
  1872. var fails$2 = fails$l;
  1873. var getRegExpFlags = regexpGetFlags;
  1874. var TO_STRING = 'toString';
  1875. var RegExpPrototype$1 = RegExp.prototype;
  1876. var nativeToString = RegExpPrototype$1[TO_STRING];
  1877. var NOT_GENERIC = fails$2(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
  1878. // FF44- RegExp#toString has a wrong name
  1879. var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
  1880. // `RegExp.prototype.toString` method
  1881. // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
  1882. if (NOT_GENERIC || INCORRECT_NAME) {
  1883. defineBuiltIn$3(RegExpPrototype$1, TO_STRING, function toString() {
  1884. var R = anObject$4(this);
  1885. var pattern = $toString$1(R.source);
  1886. var flags = $toString$1(getRegExpFlags(R));
  1887. return '/' + pattern + '/' + flags;
  1888. }, { unsafe: true });
  1889. }
  1890. var uncurryThis$5 = functionUncurryThis;
  1891. var toIntegerOrInfinity = toIntegerOrInfinity$3;
  1892. var toString$2 = toString$4;
  1893. var requireObjectCoercible$1 = requireObjectCoercible$5;
  1894. var charAt$2 = uncurryThis$5(''.charAt);
  1895. var charCodeAt = uncurryThis$5(''.charCodeAt);
  1896. var stringSlice$1 = uncurryThis$5(''.slice);
  1897. var createMethod = function (CONVERT_TO_STRING) {
  1898. return function ($this, pos) {
  1899. var S = toString$2(requireObjectCoercible$1($this));
  1900. var position = toIntegerOrInfinity(pos);
  1901. var size = S.length;
  1902. var first, second;
  1903. if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
  1904. first = charCodeAt(S, position);
  1905. return first < 0xD800 || first > 0xDBFF || position + 1 === size
  1906. || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
  1907. ? CONVERT_TO_STRING
  1908. ? charAt$2(S, position)
  1909. : first
  1910. : CONVERT_TO_STRING
  1911. ? stringSlice$1(S, position, position + 2)
  1912. : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
  1913. };
  1914. };
  1915. var stringMultibyte = {
  1916. // `String.prototype.codePointAt` method
  1917. // https://tc39.es/ecma262/#sec-string.prototype.codepointat
  1918. codeAt: createMethod(false),
  1919. // `String.prototype.at` method
  1920. // https://github.com/mathiasbynens/String.prototype.at
  1921. charAt: createMethod(true)
  1922. };
  1923. var charAt$1 = stringMultibyte.charAt;
  1924. var toString$1 = toString$4;
  1925. var InternalStateModule$1 = internalState;
  1926. var defineIterator = iteratorDefine;
  1927. var createIterResultObject$1 = createIterResultObject$3;
  1928. var STRING_ITERATOR = 'String Iterator';
  1929. var setInternalState$1 = InternalStateModule$1.set;
  1930. var getInternalState = InternalStateModule$1.getterFor(STRING_ITERATOR);
  1931. // `String.prototype[@@iterator]` method
  1932. // https://tc39.es/ecma262/#sec-string.prototype-@@iterator
  1933. defineIterator(String, 'String', function (iterated) {
  1934. setInternalState$1(this, {
  1935. type: STRING_ITERATOR,
  1936. string: toString$1(iterated),
  1937. index: 0
  1938. });
  1939. // `%StringIteratorPrototype%.next` method
  1940. // https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next
  1941. }, function next() {
  1942. var state = getInternalState(this);
  1943. var string = state.string;
  1944. var index = state.index;
  1945. var point;
  1946. if (index >= string.length) return createIterResultObject$1(undefined, true);
  1947. point = charAt$1(string, index);
  1948. state.index += point.length;
  1949. return createIterResultObject$1(point, false);
  1950. });
  1951. // TODO: Remove from `core-js@4` since it's moved to entry points
  1952. var call$4 = functionCall;
  1953. var defineBuiltIn$2 = defineBuiltIn$8;
  1954. var regexpExec$1 = regexpExec$2;
  1955. var fails$1 = fails$l;
  1956. var wellKnownSymbol$4 = wellKnownSymbol$f;
  1957. var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
  1958. var SPECIES = wellKnownSymbol$4('species');
  1959. var RegExpPrototype = RegExp.prototype;
  1960. var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
  1961. var SYMBOL = wellKnownSymbol$4(KEY);
  1962. var DELEGATES_TO_SYMBOL = !fails$1(function () {
  1963. // String methods call symbol-named RegExp methods
  1964. var O = {};
  1965. O[SYMBOL] = function () { return 7; };
  1966. return ''[KEY](O) !== 7;
  1967. });
  1968. var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
  1969. // Symbol-named RegExp methods call .exec
  1970. var execCalled = false;
  1971. var re = /a/;
  1972. if (KEY === 'split') {
  1973. // We can't use real regex here since it causes deoptimization
  1974. // and serious performance degradation in V8
  1975. // https://github.com/zloirock/core-js/issues/306
  1976. re = {};
  1977. // RegExp[@@split] doesn't call the regex's exec method, but first creates
  1978. // a new one. We need to return the patched regex when creating the new one.
  1979. re.constructor = {};
  1980. re.constructor[SPECIES] = function () { return re; };
  1981. re.flags = '';
  1982. re[SYMBOL] = /./[SYMBOL];
  1983. }
  1984. re.exec = function () {
  1985. execCalled = true;
  1986. return null;
  1987. };
  1988. re[SYMBOL]('');
  1989. return !execCalled;
  1990. });
  1991. if (
  1992. !DELEGATES_TO_SYMBOL ||
  1993. !DELEGATES_TO_EXEC ||
  1994. FORCED
  1995. ) {
  1996. var nativeRegExpMethod = /./[SYMBOL];
  1997. var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
  1998. var $exec = regexp.exec;
  1999. if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
  2000. if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
  2001. // The native String method already delegates to @@method (this
  2002. // polyfilled function), leasing to infinite recursion.
  2003. // We avoid it by directly calling the native @@method method.
  2004. return { done: true, value: call$4(nativeRegExpMethod, regexp, str, arg2) };
  2005. }
  2006. return { done: true, value: call$4(nativeMethod, str, regexp, arg2) };
  2007. }
  2008. return { done: false };
  2009. });
  2010. defineBuiltIn$2(String.prototype, KEY, methods[0]);
  2011. defineBuiltIn$2(RegExpPrototype, SYMBOL, methods[1]);
  2012. }
  2013. if (SHAM) createNonEnumerableProperty$1(RegExpPrototype[SYMBOL], 'sham', true);
  2014. };
  2015. // `SameValue` abstract operation
  2016. // https://tc39.es/ecma262/#sec-samevalue
  2017. // eslint-disable-next-line es/no-object-is -- safe
  2018. var sameValue$1 = Object.is || function is(x, y) {
  2019. // eslint-disable-next-line no-self-compare -- NaN check
  2020. return x === y ? x !== 0 || 1 / x === 1 / y : x !== x && y !== y;
  2021. };
  2022. var call$3 = functionCall;
  2023. var anObject$3 = anObject$a;
  2024. var isCallable$1 = isCallable$h;
  2025. var classof$2 = classofRaw$2;
  2026. var regexpExec = regexpExec$2;
  2027. var $TypeError$3 = TypeError;
  2028. // `RegExpExec` abstract operation
  2029. // https://tc39.es/ecma262/#sec-regexpexec
  2030. var regexpExecAbstract = function (R, S) {
  2031. var exec = R.exec;
  2032. if (isCallable$1(exec)) {
  2033. var result = call$3(exec, R, S);
  2034. if (result !== null) anObject$3(result);
  2035. return result;
  2036. }
  2037. if (classof$2(R) === 'RegExp') return call$3(regexpExec, R, S);
  2038. throw new $TypeError$3('RegExp#exec called on incompatible receiver');
  2039. };
  2040. var call$2 = functionCall;
  2041. var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
  2042. var anObject$2 = anObject$a;
  2043. var isNullOrUndefined$1 = isNullOrUndefined$4;
  2044. var requireObjectCoercible = requireObjectCoercible$5;
  2045. var sameValue = sameValue$1;
  2046. var toString = toString$4;
  2047. var getMethod$1 = getMethod$3;
  2048. var regExpExec = regexpExecAbstract;
  2049. // @@search logic
  2050. fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) {
  2051. return [
  2052. // `String.prototype.search` method
  2053. // https://tc39.es/ecma262/#sec-string.prototype.search
  2054. function search(regexp) {
  2055. var O = requireObjectCoercible(this);
  2056. var searcher = isNullOrUndefined$1(regexp) ? undefined : getMethod$1(regexp, SEARCH);
  2057. return searcher ? call$2(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString(O));
  2058. },
  2059. // `RegExp.prototype[@@search]` method
  2060. // https://tc39.es/ecma262/#sec-regexp.prototype-@@search
  2061. function (string) {
  2062. var rx = anObject$2(this);
  2063. var S = toString(string);
  2064. var res = maybeCallNative(nativeSearch, rx, S);
  2065. if (res.done) return res.value;
  2066. var previousLastIndex = rx.lastIndex;
  2067. if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
  2068. var result = regExpExec(rx, S);
  2069. if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
  2070. return result === null ? -1 : result.index;
  2071. }
  2072. ];
  2073. });
  2074. // iterable DOM collections
  2075. // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
  2076. var domIterables = {
  2077. CSSRuleList: 0,
  2078. CSSStyleDeclaration: 0,
  2079. CSSValueList: 0,
  2080. ClientRectList: 0,
  2081. DOMRectList: 0,
  2082. DOMStringList: 0,
  2083. DOMTokenList: 1,
  2084. DataTransferItemList: 0,
  2085. FileList: 0,
  2086. HTMLAllCollection: 0,
  2087. HTMLCollection: 0,
  2088. HTMLFormElement: 0,
  2089. HTMLSelectElement: 0,
  2090. MediaList: 0,
  2091. MimeTypeArray: 0,
  2092. NamedNodeMap: 0,
  2093. NodeList: 1,
  2094. PaintRequestList: 0,
  2095. Plugin: 0,
  2096. PluginArray: 0,
  2097. SVGLengthList: 0,
  2098. SVGNumberList: 0,
  2099. SVGPathSegList: 0,
  2100. SVGPointList: 0,
  2101. SVGStringList: 0,
  2102. SVGTransformList: 0,
  2103. SourceBufferList: 0,
  2104. StyleSheetList: 0,
  2105. TextTrackCueList: 0,
  2106. TextTrackList: 0,
  2107. TouchList: 0
  2108. };
  2109. // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
  2110. var documentCreateElement = documentCreateElement$2;
  2111. var classList = documentCreateElement('span').classList;
  2112. var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
  2113. var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
  2114. var globalThis$3 = globalThis_1;
  2115. var DOMIterables = domIterables;
  2116. var DOMTokenListPrototype = domTokenListPrototype;
  2117. var ArrayIteratorMethods = es_array_iterator;
  2118. var createNonEnumerableProperty = createNonEnumerableProperty$5;
  2119. var setToStringTag$1 = setToStringTag$4;
  2120. var wellKnownSymbol$3 = wellKnownSymbol$f;
  2121. var ITERATOR$3 = wellKnownSymbol$3('iterator');
  2122. var ArrayValues = ArrayIteratorMethods.values;
  2123. var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
  2124. if (CollectionPrototype) {
  2125. // some Chrome versions have non-configurable methods on DOMTokenList
  2126. if (CollectionPrototype[ITERATOR$3] !== ArrayValues) try {
  2127. createNonEnumerableProperty(CollectionPrototype, ITERATOR$3, ArrayValues);
  2128. } catch (error) {
  2129. CollectionPrototype[ITERATOR$3] = ArrayValues;
  2130. }
  2131. setToStringTag$1(CollectionPrototype, COLLECTION_NAME, true);
  2132. if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
  2133. // some Chrome versions have non-configurable methods on DOMTokenList
  2134. if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
  2135. createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
  2136. } catch (error) {
  2137. CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
  2138. }
  2139. }
  2140. }
  2141. };
  2142. for (var COLLECTION_NAME in DOMIterables) {
  2143. handlePrototype(globalThis$3[COLLECTION_NAME] && globalThis$3[COLLECTION_NAME].prototype, COLLECTION_NAME);
  2144. }
  2145. handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
  2146. var $$1 = _export;
  2147. var uncurryThis$4 = functionUncurryThis;
  2148. var toAbsoluteIndex = toAbsoluteIndex$2;
  2149. var $RangeError = RangeError;
  2150. var fromCharCode$1 = String.fromCharCode;
  2151. // eslint-disable-next-line es/no-string-fromcodepoint -- required for testing
  2152. var $fromCodePoint = String.fromCodePoint;
  2153. var join$1 = uncurryThis$4([].join);
  2154. // length should be 1, old FF problem
  2155. var INCORRECT_LENGTH = !!$fromCodePoint && $fromCodePoint.length !== 1;
  2156. // `String.fromCodePoint` method
  2157. // https://tc39.es/ecma262/#sec-string.fromcodepoint
  2158. $$1({ target: 'String', stat: true, arity: 1, forced: INCORRECT_LENGTH }, {
  2159. // eslint-disable-next-line no-unused-vars -- required for `.length`
  2160. fromCodePoint: function fromCodePoint(x) {
  2161. var elements = [];
  2162. var length = arguments.length;
  2163. var i = 0;
  2164. var code;
  2165. while (length > i) {
  2166. code = +arguments[i++];
  2167. if (toAbsoluteIndex(code, 0x10FFFF) !== code) throw new $RangeError(code + ' is not a valid code point');
  2168. elements[i] = code < 0x10000
  2169. ? fromCharCode$1(code)
  2170. : fromCharCode$1(((code -= 0x10000) >> 10) + 0xD800, code % 0x400 + 0xDC00);
  2171. } return join$1(elements, '');
  2172. }
  2173. });
  2174. var globalThis$2 = globalThis_1;
  2175. var DESCRIPTORS$2 = descriptors;
  2176. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  2177. var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  2178. // Avoid NodeJS experimental warning
  2179. var safeGetBuiltIn$1 = function (name) {
  2180. if (!DESCRIPTORS$2) return globalThis$2[name];
  2181. var descriptor = getOwnPropertyDescriptor(globalThis$2, name);
  2182. return descriptor && descriptor.value;
  2183. };
  2184. var fails = fails$l;
  2185. var wellKnownSymbol$2 = wellKnownSymbol$f;
  2186. var DESCRIPTORS$1 = descriptors;
  2187. var IS_PURE = isPure;
  2188. var ITERATOR$2 = wellKnownSymbol$2('iterator');
  2189. var urlConstructorDetection = !fails(function () {
  2190. // eslint-disable-next-line unicorn/relative-url-style -- required for testing
  2191. var url = new URL('b?a=1&b=2&c=3', 'https://a');
  2192. var params = url.searchParams;
  2193. var params2 = new URLSearchParams('a=1&a=2&b=3');
  2194. var result = '';
  2195. url.pathname = 'c%20d';
  2196. params.forEach(function (value, key) {
  2197. params['delete']('b');
  2198. result += key + value;
  2199. });
  2200. params2['delete']('a', 2);
  2201. // `undefined` case is a Chromium 117 bug
  2202. // https://bugs.chromium.org/p/v8/issues/detail?id=14222
  2203. params2['delete']('b', undefined);
  2204. return (IS_PURE && (!url.toJSON || !params2.has('a', 1) || params2.has('a', 2) || !params2.has('a', undefined) || params2.has('b')))
  2205. || (!params.size && (IS_PURE || !DESCRIPTORS$1))
  2206. || !params.sort
  2207. || url.href !== 'https://a/c%20d?a=1&c=3'
  2208. || params.get('c') !== '3'
  2209. || String(new URLSearchParams('?a=1')) !== 'a=1'
  2210. || !params[ITERATOR$2]
  2211. // throws in Edge
  2212. || new URL('https://a@b').username !== 'a'
  2213. || new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'
  2214. // not punycoded in Edge
  2215. || new URL('https://тест').host !== 'xn--e1aybc'
  2216. // not escaped in Chrome 62-
  2217. || new URL('https://a#б').hash !== '#%D0%B1'
  2218. // fails in Chrome 66-
  2219. || result !== 'a1c3'
  2220. // throws in Safari
  2221. || new URL('https://x', undefined).host !== 'x';
  2222. });
  2223. var makeBuiltIn = makeBuiltInExports;
  2224. var defineProperty = objectDefineProperty;
  2225. var defineBuiltInAccessor$1 = function (target, name, descriptor) {
  2226. if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
  2227. if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
  2228. return defineProperty.f(target, name, descriptor);
  2229. };
  2230. var defineBuiltIn$1 = defineBuiltIn$8;
  2231. var defineBuiltIns$1 = function (target, src, options) {
  2232. for (var key in src) defineBuiltIn$1(target, key, src[key], options);
  2233. return target;
  2234. };
  2235. var isPrototypeOf = objectIsPrototypeOf;
  2236. var $TypeError$2 = TypeError;
  2237. var anInstance$1 = function (it, Prototype) {
  2238. if (isPrototypeOf(Prototype, it)) return it;
  2239. throw new $TypeError$2('Incorrect invocation');
  2240. };
  2241. var classofRaw = classofRaw$2;
  2242. var uncurryThis$3 = functionUncurryThis;
  2243. var functionUncurryThisClause = function (fn) {
  2244. // Nashorn bug:
  2245. // https://github.com/zloirock/core-js/issues/1128
  2246. // https://github.com/zloirock/core-js/issues/1130
  2247. if (classofRaw(fn) === 'Function') return uncurryThis$3(fn);
  2248. };
  2249. var uncurryThis$2 = functionUncurryThisClause;
  2250. var aCallable$1 = aCallable$4;
  2251. var NATIVE_BIND = functionBindNative;
  2252. var bind$1 = uncurryThis$2(uncurryThis$2.bind);
  2253. // optional / simple context binding
  2254. var functionBindContext = function (fn, that) {
  2255. aCallable$1(fn);
  2256. return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
  2257. return fn.apply(that, arguments);
  2258. };
  2259. };
  2260. var classof$1 = classof$6;
  2261. var getMethod = getMethod$3;
  2262. var isNullOrUndefined = isNullOrUndefined$4;
  2263. var Iterators = iterators;
  2264. var wellKnownSymbol$1 = wellKnownSymbol$f;
  2265. var ITERATOR$1 = wellKnownSymbol$1('iterator');
  2266. var getIteratorMethod$2 = function (it) {
  2267. if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR$1)
  2268. || getMethod(it, '@@iterator')
  2269. || Iterators[classof$1(it)];
  2270. };
  2271. var call$1 = functionCall;
  2272. var aCallable = aCallable$4;
  2273. var anObject$1 = anObject$a;
  2274. var tryToString = tryToString$2;
  2275. var getIteratorMethod$1 = getIteratorMethod$2;
  2276. var $TypeError$1 = TypeError;
  2277. var getIterator$1 = function (argument, usingIterator) {
  2278. var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
  2279. if (aCallable(iteratorMethod)) return anObject$1(call$1(iteratorMethod, argument));
  2280. throw new $TypeError$1(tryToString(argument) + ' is not iterable');
  2281. };
  2282. var $TypeError = TypeError;
  2283. var validateArgumentsLength$1 = function (passed, required) {
  2284. if (passed < required) throw new $TypeError('Not enough arguments');
  2285. return passed;
  2286. };
  2287. var uncurryThis$1 = functionUncurryThis;
  2288. var arraySlice$1 = uncurryThis$1([].slice);
  2289. var arraySlice = arraySlice$1;
  2290. var floor = Math.floor;
  2291. var sort = function (array, comparefn) {
  2292. var length = array.length;
  2293. if (length < 8) {
  2294. // insertion sort
  2295. var i = 1;
  2296. var element, j;
  2297. while (i < length) {
  2298. j = i;
  2299. element = array[i];
  2300. while (j && comparefn(array[j - 1], element) > 0) {
  2301. array[j] = array[--j];
  2302. }
  2303. if (j !== i++) array[j] = element;
  2304. }
  2305. } else {
  2306. // merge sort
  2307. var middle = floor(length / 2);
  2308. var left = sort(arraySlice(array, 0, middle), comparefn);
  2309. var right = sort(arraySlice(array, middle), comparefn);
  2310. var llength = left.length;
  2311. var rlength = right.length;
  2312. var lindex = 0;
  2313. var rindex = 0;
  2314. while (lindex < llength || rindex < rlength) {
  2315. array[lindex + rindex] = (lindex < llength && rindex < rlength)
  2316. ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
  2317. : lindex < llength ? left[lindex++] : right[rindex++];
  2318. }
  2319. }
  2320. return array;
  2321. };
  2322. var arraySort$1 = sort;
  2323. // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
  2324. var $ = _export;
  2325. var globalThis$1 = globalThis_1;
  2326. var safeGetBuiltIn = safeGetBuiltIn$1;
  2327. var getBuiltIn = getBuiltIn$5;
  2328. var call = functionCall;
  2329. var uncurryThis = functionUncurryThis;
  2330. var DESCRIPTORS = descriptors;
  2331. var USE_NATIVE_URL = urlConstructorDetection;
  2332. var defineBuiltIn = defineBuiltIn$8;
  2333. var defineBuiltInAccessor = defineBuiltInAccessor$1;
  2334. var defineBuiltIns = defineBuiltIns$1;
  2335. var setToStringTag = setToStringTag$4;
  2336. var createIteratorConstructor = iteratorCreateConstructor;
  2337. var InternalStateModule = internalState;
  2338. var anInstance = anInstance$1;
  2339. var isCallable = isCallable$h;
  2340. var hasOwn = hasOwnProperty_1;
  2341. var bind = functionBindContext;
  2342. var classof = classof$6;
  2343. var anObject = anObject$a;
  2344. var isObject = isObject$b;
  2345. var $toString = toString$4;
  2346. var create = objectCreate;
  2347. var createPropertyDescriptor = createPropertyDescriptor$5;
  2348. var getIterator = getIterator$1;
  2349. var getIteratorMethod = getIteratorMethod$2;
  2350. var createIterResultObject = createIterResultObject$3;
  2351. var validateArgumentsLength = validateArgumentsLength$1;
  2352. var wellKnownSymbol = wellKnownSymbol$f;
  2353. var arraySort = arraySort$1;
  2354. var ITERATOR = wellKnownSymbol('iterator');
  2355. var URL_SEARCH_PARAMS = 'URLSearchParams';
  2356. var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
  2357. var setInternalState = InternalStateModule.set;
  2358. var getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS);
  2359. var getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR);
  2360. var nativeFetch = safeGetBuiltIn('fetch');
  2361. var NativeRequest = safeGetBuiltIn('Request');
  2362. var Headers = safeGetBuiltIn('Headers');
  2363. var RequestPrototype = NativeRequest && NativeRequest.prototype;
  2364. var HeadersPrototype = Headers && Headers.prototype;
  2365. var TypeError$1 = globalThis$1.TypeError;
  2366. var encodeURIComponent = globalThis$1.encodeURIComponent;
  2367. var fromCharCode = String.fromCharCode;
  2368. var fromCodePoint = getBuiltIn('String', 'fromCodePoint');
  2369. var $parseInt = parseInt;
  2370. var charAt = uncurryThis(''.charAt);
  2371. var join = uncurryThis([].join);
  2372. var push = uncurryThis([].push);
  2373. var replace = uncurryThis(''.replace);
  2374. var shift = uncurryThis([].shift);
  2375. var splice = uncurryThis([].splice);
  2376. var split = uncurryThis(''.split);
  2377. var stringSlice = uncurryThis(''.slice);
  2378. var exec = uncurryThis(/./.exec);
  2379. var plus = /\+/g;
  2380. var FALLBACK_REPLACER = '\uFFFD';
  2381. var VALID_HEX = /^[0-9a-f]+$/i;
  2382. var parseHexOctet = function (string, start) {
  2383. var substr = stringSlice(string, start, start + 2);
  2384. if (!exec(VALID_HEX, substr)) return NaN;
  2385. return $parseInt(substr, 16);
  2386. };
  2387. var getLeadingOnes = function (octet) {
  2388. var count = 0;
  2389. for (var mask = 0x80; mask > 0 && (octet & mask) !== 0; mask >>= 1) {
  2390. count++;
  2391. }
  2392. return count;
  2393. };
  2394. var utf8Decode = function (octets) {
  2395. var codePoint = null;
  2396. switch (octets.length) {
  2397. case 1:
  2398. codePoint = octets[0];
  2399. break;
  2400. case 2:
  2401. codePoint = (octets[0] & 0x1F) << 6 | (octets[1] & 0x3F);
  2402. break;
  2403. case 3:
  2404. codePoint = (octets[0] & 0x0F) << 12 | (octets[1] & 0x3F) << 6 | (octets[2] & 0x3F);
  2405. break;
  2406. case 4:
  2407. codePoint = (octets[0] & 0x07) << 18 | (octets[1] & 0x3F) << 12 | (octets[2] & 0x3F) << 6 | (octets[3] & 0x3F);
  2408. break;
  2409. }
  2410. return codePoint > 0x10FFFF ? null : codePoint;
  2411. };
  2412. var decode = function (input) {
  2413. input = replace(input, plus, ' ');
  2414. var length = input.length;
  2415. var result = '';
  2416. var i = 0;
  2417. while (i < length) {
  2418. var decodedChar = charAt(input, i);
  2419. if (decodedChar === '%') {
  2420. if (charAt(input, i + 1) === '%' || i + 3 > length) {
  2421. result += '%';
  2422. i++;
  2423. continue;
  2424. }
  2425. var octet = parseHexOctet(input, i + 1);
  2426. // eslint-disable-next-line no-self-compare -- NaN check
  2427. if (octet !== octet) {
  2428. result += decodedChar;
  2429. i++;
  2430. continue;
  2431. }
  2432. i += 2;
  2433. var byteSequenceLength = getLeadingOnes(octet);
  2434. if (byteSequenceLength === 0) {
  2435. decodedChar = fromCharCode(octet);
  2436. } else {
  2437. if (byteSequenceLength === 1 || byteSequenceLength > 4) {
  2438. result += FALLBACK_REPLACER;
  2439. i++;
  2440. continue;
  2441. }
  2442. var octets = [octet];
  2443. var sequenceIndex = 1;
  2444. while (sequenceIndex < byteSequenceLength) {
  2445. i++;
  2446. if (i + 3 > length || charAt(input, i) !== '%') break;
  2447. var nextByte = parseHexOctet(input, i + 1);
  2448. // eslint-disable-next-line no-self-compare -- NaN check
  2449. if (nextByte !== nextByte) {
  2450. i += 3;
  2451. break;
  2452. }
  2453. if (nextByte > 191 || nextByte < 128) break;
  2454. push(octets, nextByte);
  2455. i += 2;
  2456. sequenceIndex++;
  2457. }
  2458. if (octets.length !== byteSequenceLength) {
  2459. result += FALLBACK_REPLACER;
  2460. continue;
  2461. }
  2462. var codePoint = utf8Decode(octets);
  2463. if (codePoint === null) {
  2464. result += FALLBACK_REPLACER;
  2465. } else {
  2466. decodedChar = fromCodePoint(codePoint);
  2467. }
  2468. }
  2469. }
  2470. result += decodedChar;
  2471. i++;
  2472. }
  2473. return result;
  2474. };
  2475. var find = /[!'()~]|%20/g;
  2476. var replacements = {
  2477. '!': '%21',
  2478. "'": '%27',
  2479. '(': '%28',
  2480. ')': '%29',
  2481. '~': '%7E',
  2482. '%20': '+'
  2483. };
  2484. var replacer = function (match) {
  2485. return replacements[match];
  2486. };
  2487. var serialize = function (it) {
  2488. return replace(encodeURIComponent(it), find, replacer);
  2489. };
  2490. var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
  2491. setInternalState(this, {
  2492. type: URL_SEARCH_PARAMS_ITERATOR,
  2493. target: getInternalParamsState(params).entries,
  2494. index: 0,
  2495. kind: kind
  2496. });
  2497. }, URL_SEARCH_PARAMS, function next() {
  2498. var state = getInternalIteratorState(this);
  2499. var target = state.target;
  2500. var index = state.index++;
  2501. if (!target || index >= target.length) {
  2502. state.target = null;
  2503. return createIterResultObject(undefined, true);
  2504. }
  2505. var entry = target[index];
  2506. switch (state.kind) {
  2507. case 'keys': return createIterResultObject(entry.key, false);
  2508. case 'values': return createIterResultObject(entry.value, false);
  2509. } return createIterResultObject([entry.key, entry.value], false);
  2510. }, true);
  2511. var URLSearchParamsState = function (init) {
  2512. this.entries = [];
  2513. this.url = null;
  2514. if (init !== undefined) {
  2515. if (isObject(init)) this.parseObject(init);
  2516. else this.parseQuery(typeof init == 'string' ? charAt(init, 0) === '?' ? stringSlice(init, 1) : init : $toString(init));
  2517. }
  2518. };
  2519. URLSearchParamsState.prototype = {
  2520. type: URL_SEARCH_PARAMS,
  2521. bindURL: function (url) {
  2522. this.url = url;
  2523. this.update();
  2524. },
  2525. parseObject: function (object) {
  2526. var entries = this.entries;
  2527. var iteratorMethod = getIteratorMethod(object);
  2528. var iterator, next, step, entryIterator, entryNext, first, second;
  2529. if (iteratorMethod) {
  2530. iterator = getIterator(object, iteratorMethod);
  2531. next = iterator.next;
  2532. while (!(step = call(next, iterator)).done) {
  2533. entryIterator = getIterator(anObject(step.value));
  2534. entryNext = entryIterator.next;
  2535. if (
  2536. (first = call(entryNext, entryIterator)).done ||
  2537. (second = call(entryNext, entryIterator)).done ||
  2538. !call(entryNext, entryIterator).done
  2539. ) throw new TypeError$1('Expected sequence with length 2');
  2540. push(entries, { key: $toString(first.value), value: $toString(second.value) });
  2541. }
  2542. } else for (var key in object) if (hasOwn(object, key)) {
  2543. push(entries, { key: key, value: $toString(object[key]) });
  2544. }
  2545. },
  2546. parseQuery: function (query) {
  2547. if (query) {
  2548. var entries = this.entries;
  2549. var attributes = split(query, '&');
  2550. var index = 0;
  2551. var attribute, entry;
  2552. while (index < attributes.length) {
  2553. attribute = attributes[index++];
  2554. if (attribute.length) {
  2555. entry = split(attribute, '=');
  2556. push(entries, {
  2557. key: decode(shift(entry)),
  2558. value: decode(join(entry, '='))
  2559. });
  2560. }
  2561. }
  2562. }
  2563. },
  2564. serialize: function () {
  2565. var entries = this.entries;
  2566. var result = [];
  2567. var index = 0;
  2568. var entry;
  2569. while (index < entries.length) {
  2570. entry = entries[index++];
  2571. push(result, serialize(entry.key) + '=' + serialize(entry.value));
  2572. } return join(result, '&');
  2573. },
  2574. update: function () {
  2575. this.entries.length = 0;
  2576. this.parseQuery(this.url.query);
  2577. },
  2578. updateURL: function () {
  2579. if (this.url) this.url.update();
  2580. }
  2581. };
  2582. // `URLSearchParams` constructor
  2583. // https://url.spec.whatwg.org/#interface-urlsearchparams
  2584. var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
  2585. anInstance(this, URLSearchParamsPrototype);
  2586. var init = arguments.length > 0 ? arguments[0] : undefined;
  2587. var state = setInternalState(this, new URLSearchParamsState(init));
  2588. if (!DESCRIPTORS) this.size = state.entries.length;
  2589. };
  2590. var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
  2591. defineBuiltIns(URLSearchParamsPrototype, {
  2592. // `URLSearchParams.prototype.append` method
  2593. // https://url.spec.whatwg.org/#dom-urlsearchparams-append
  2594. append: function append(name, value) {
  2595. var state = getInternalParamsState(this);
  2596. validateArgumentsLength(arguments.length, 2);
  2597. push(state.entries, { key: $toString(name), value: $toString(value) });
  2598. if (!DESCRIPTORS) this.length++;
  2599. state.updateURL();
  2600. },
  2601. // `URLSearchParams.prototype.delete` method
  2602. // https://url.spec.whatwg.org/#dom-urlsearchparams-delete
  2603. 'delete': function (name /* , value */) {
  2604. var state = getInternalParamsState(this);
  2605. var length = validateArgumentsLength(arguments.length, 1);
  2606. var entries = state.entries;
  2607. var key = $toString(name);
  2608. var $value = length < 2 ? undefined : arguments[1];
  2609. var value = $value === undefined ? $value : $toString($value);
  2610. var index = 0;
  2611. while (index < entries.length) {
  2612. var entry = entries[index];
  2613. if (entry.key === key && (value === undefined || entry.value === value)) {
  2614. splice(entries, index, 1);
  2615. if (value !== undefined) break;
  2616. } else index++;
  2617. }
  2618. if (!DESCRIPTORS) this.size = entries.length;
  2619. state.updateURL();
  2620. },
  2621. // `URLSearchParams.prototype.get` method
  2622. // https://url.spec.whatwg.org/#dom-urlsearchparams-get
  2623. get: function get(name) {
  2624. var entries = getInternalParamsState(this).entries;
  2625. validateArgumentsLength(arguments.length, 1);
  2626. var key = $toString(name);
  2627. var index = 0;
  2628. for (; index < entries.length; index++) {
  2629. if (entries[index].key === key) return entries[index].value;
  2630. }
  2631. return null;
  2632. },
  2633. // `URLSearchParams.prototype.getAll` method
  2634. // https://url.spec.whatwg.org/#dom-urlsearchparams-getall
  2635. getAll: function getAll(name) {
  2636. var entries = getInternalParamsState(this).entries;
  2637. validateArgumentsLength(arguments.length, 1);
  2638. var key = $toString(name);
  2639. var result = [];
  2640. var index = 0;
  2641. for (; index < entries.length; index++) {
  2642. if (entries[index].key === key) push(result, entries[index].value);
  2643. }
  2644. return result;
  2645. },
  2646. // `URLSearchParams.prototype.has` method
  2647. // https://url.spec.whatwg.org/#dom-urlsearchparams-has
  2648. has: function has(name /* , value */) {
  2649. var entries = getInternalParamsState(this).entries;
  2650. var length = validateArgumentsLength(arguments.length, 1);
  2651. var key = $toString(name);
  2652. var $value = length < 2 ? undefined : arguments[1];
  2653. var value = $value === undefined ? $value : $toString($value);
  2654. var index = 0;
  2655. while (index < entries.length) {
  2656. var entry = entries[index++];
  2657. if (entry.key === key && (value === undefined || entry.value === value)) return true;
  2658. }
  2659. return false;
  2660. },
  2661. // `URLSearchParams.prototype.set` method
  2662. // https://url.spec.whatwg.org/#dom-urlsearchparams-set
  2663. set: function set(name, value) {
  2664. var state = getInternalParamsState(this);
  2665. validateArgumentsLength(arguments.length, 1);
  2666. var entries = state.entries;
  2667. var found = false;
  2668. var key = $toString(name);
  2669. var val = $toString(value);
  2670. var index = 0;
  2671. var entry;
  2672. for (; index < entries.length; index++) {
  2673. entry = entries[index];
  2674. if (entry.key === key) {
  2675. if (found) splice(entries, index--, 1);
  2676. else {
  2677. found = true;
  2678. entry.value = val;
  2679. }
  2680. }
  2681. }
  2682. if (!found) push(entries, { key: key, value: val });
  2683. if (!DESCRIPTORS) this.size = entries.length;
  2684. state.updateURL();
  2685. },
  2686. // `URLSearchParams.prototype.sort` method
  2687. // https://url.spec.whatwg.org/#dom-urlsearchparams-sort
  2688. sort: function sort() {
  2689. var state = getInternalParamsState(this);
  2690. arraySort(state.entries, function (a, b) {
  2691. return a.key > b.key ? 1 : -1;
  2692. });
  2693. state.updateURL();
  2694. },
  2695. // `URLSearchParams.prototype.forEach` method
  2696. forEach: function forEach(callback /* , thisArg */) {
  2697. var entries = getInternalParamsState(this).entries;
  2698. var boundFunction = bind(callback, arguments.length > 1 ? arguments[1] : undefined);
  2699. var index = 0;
  2700. var entry;
  2701. while (index < entries.length) {
  2702. entry = entries[index++];
  2703. boundFunction(entry.value, entry.key, this);
  2704. }
  2705. },
  2706. // `URLSearchParams.prototype.keys` method
  2707. keys: function keys() {
  2708. return new URLSearchParamsIterator(this, 'keys');
  2709. },
  2710. // `URLSearchParams.prototype.values` method
  2711. values: function values() {
  2712. return new URLSearchParamsIterator(this, 'values');
  2713. },
  2714. // `URLSearchParams.prototype.entries` method
  2715. entries: function entries() {
  2716. return new URLSearchParamsIterator(this, 'entries');
  2717. }
  2718. }, { enumerable: true });
  2719. // `URLSearchParams.prototype[@@iterator]` method
  2720. defineBuiltIn(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });
  2721. // `URLSearchParams.prototype.toString` method
  2722. // https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
  2723. defineBuiltIn(URLSearchParamsPrototype, 'toString', function toString() {
  2724. return getInternalParamsState(this).serialize();
  2725. }, { enumerable: true });
  2726. // `URLSearchParams.prototype.size` getter
  2727. // https://github.com/whatwg/url/pull/734
  2728. if (DESCRIPTORS) defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
  2729. get: function size() {
  2730. return getInternalParamsState(this).entries.length;
  2731. },
  2732. configurable: true,
  2733. enumerable: true
  2734. });
  2735. setToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
  2736. $({ global: true, constructor: true, forced: !USE_NATIVE_URL }, {
  2737. URLSearchParams: URLSearchParamsConstructor
  2738. });
  2739. // Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
  2740. if (!USE_NATIVE_URL && isCallable(Headers)) {
  2741. var headersHas = uncurryThis(HeadersPrototype.has);
  2742. var headersSet = uncurryThis(HeadersPrototype.set);
  2743. var wrapRequestOptions = function (init) {
  2744. if (isObject(init)) {
  2745. var body = init.body;
  2746. var headers;
  2747. if (classof(body) === URL_SEARCH_PARAMS) {
  2748. headers = init.headers ? new Headers(init.headers) : new Headers();
  2749. if (!headersHas(headers, 'content-type')) {
  2750. headersSet(headers, 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
  2751. }
  2752. return create(init, {
  2753. body: createPropertyDescriptor(0, $toString(body)),
  2754. headers: createPropertyDescriptor(0, headers)
  2755. });
  2756. }
  2757. } return init;
  2758. };
  2759. if (isCallable(nativeFetch)) {
  2760. $({ global: true, enumerable: true, dontCallGetSet: true, forced: true }, {
  2761. fetch: function fetch(input /* , init */) {
  2762. return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
  2763. }
  2764. });
  2765. }
  2766. if (isCallable(NativeRequest)) {
  2767. var RequestConstructor = function Request(input /* , init */) {
  2768. anInstance(this, RequestPrototype);
  2769. return new NativeRequest(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
  2770. };
  2771. RequestPrototype.constructor = RequestConstructor;
  2772. RequestConstructor.prototype = RequestPrototype;
  2773. $({ global: true, constructor: true, dontCallGetSet: true, forced: true }, {
  2774. Request: RequestConstructor
  2775. });
  2776. }
  2777. }
  2778. /**
  2779. * @author: general
  2780. * @website: note.generals.space
  2781. * @email: generals.space@gmail.com
  2782. * @github: https://github.com/generals-space/bootstrap-table-addrbar
  2783. * @update: zhixin wen <wenzhixin2010@gmail.com>
  2784. */
  2785. var Utils = $$7.fn.bootstrapTable.utils;
  2786. Object.assign($$7.fn.bootstrapTable.defaults, {
  2787. addrbar: false,
  2788. addrPrefix: '',
  2789. addrCustomParams: {}
  2790. });
  2791. $$7.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  2792. function _class() {
  2793. _classCallCheck(this, _class);
  2794. return _callSuper(this, _class, arguments);
  2795. }
  2796. _inherits(_class, _$$BootstrapTable);
  2797. return _createClass(_class, [{
  2798. key: "init",
  2799. value: function init() {
  2800. if (this.options.pagination && this.options.addrbar) {
  2801. this.initAddrbar();
  2802. }
  2803. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  2804. args[_key] = arguments[_key];
  2805. }
  2806. _superPropGet(_class, "init", this)(args);
  2807. }
  2808. /*
  2809. * Priority order:
  2810. * The value specified by the user has the highest priority.
  2811. * If it is not specified, it will be obtained from the address bar.
  2812. * If it is not obtained, the default value will be used.
  2813. */
  2814. }, {
  2815. key: "getDefaultOptionValue",
  2816. value: function getDefaultOptionValue(optionName, prefixName) {
  2817. if (this.options[optionName] !== $$7.BootstrapTable.DEFAULTS[optionName]) {
  2818. return this.options[optionName];
  2819. }
  2820. return this.searchParams.get("".concat(this.options.addrPrefix || '').concat(prefixName)) || $$7.BootstrapTable.DEFAULTS[optionName];
  2821. }
  2822. }, {
  2823. key: "initAddrbar",
  2824. value: function initAddrbar() {
  2825. var _this = this;
  2826. // 标志位, 初始加载后关闭
  2827. this.addrbarInit = true;
  2828. this.searchParams = new URLSearchParams(window.location.search.substring(1));
  2829. this.options.pageNumber = +this.getDefaultOptionValue('pageNumber', 'page');
  2830. this.options.pageSize = +this.getDefaultOptionValue('pageSize', 'size');
  2831. this.options.sortOrder = this.getDefaultOptionValue('sortOrder', 'order');
  2832. this.options.sortName = this.getDefaultOptionValue('sortName', 'sort');
  2833. this.options.searchText = this.getDefaultOptionValue('searchText', 'search');
  2834. var prefix = this.options.addrPrefix || '';
  2835. var onLoadSuccess = this.options.onLoadSuccess;
  2836. var onPageChange = this.options.onPageChange;
  2837. this.options.onLoadSuccess = function (data) {
  2838. if (_this.addrbarInit) {
  2839. _this.addrbarInit = false;
  2840. } else {
  2841. _this.updateHistoryState(prefix);
  2842. }
  2843. if (onLoadSuccess) {
  2844. onLoadSuccess.call(_this, data);
  2845. }
  2846. };
  2847. this.options.onPageChange = function (number, size) {
  2848. _this.updateHistoryState(prefix);
  2849. if (onPageChange) {
  2850. onPageChange.call(_this, number, size);
  2851. }
  2852. };
  2853. }
  2854. }, {
  2855. key: "updateHistoryState",
  2856. value: function updateHistoryState(prefix) {
  2857. var params = {};
  2858. params["".concat(prefix, "page")] = this.options.pageNumber;
  2859. params["".concat(prefix, "size")] = this.options.pageSize;
  2860. params["".concat(prefix, "order")] = this.options.sortOrder;
  2861. params["".concat(prefix, "sort")] = this.options.sortName;
  2862. params["".concat(prefix, "search")] = this.options.searchText;
  2863. for (var _i = 0, _Object$entries = Object.entries(params); _i < _Object$entries.length; _i++) {
  2864. var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
  2865. key = _Object$entries$_i[0],
  2866. value = _Object$entries$_i[1];
  2867. if (value === undefined) {
  2868. this.searchParams.delete(key);
  2869. } else {
  2870. this.searchParams.set(key, value);
  2871. }
  2872. }
  2873. var customParams = Utils.calculateObjectValue(this.options, this.options.addrCustomParams, [], {});
  2874. for (var _i2 = 0, _Object$entries2 = Object.entries(customParams); _i2 < _Object$entries2.length; _i2++) {
  2875. var _Object$entries2$_i = _slicedToArray(_Object$entries2[_i2], 2),
  2876. _key2 = _Object$entries2$_i[0],
  2877. _value = _Object$entries2$_i[1];
  2878. this.searchParams.set(_key2, _value);
  2879. }
  2880. var url = "?".concat(this.searchParams.toString());
  2881. if (location.hash) {
  2882. url += location.hash;
  2883. }
  2884. window.history.pushState({}, '', url);
  2885. }
  2886. }, {
  2887. key: "resetSearch",
  2888. value: function resetSearch(text) {
  2889. _superPropGet(_class, "resetSearch", this)([text]);
  2890. this.options.searchText = text || '';
  2891. }
  2892. }]);
  2893. }($$7.BootstrapTable);
  2894. }));