bootstrap-table-addrbar.js 113 KB

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