bootstrap-table-print.js 102 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922
  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 ($$c) { '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 _assertThisInitialized(e) {
  12. if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  13. return e;
  14. }
  15. function _callSuper(t, o, e) {
  16. return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
  17. }
  18. function _classCallCheck(a, n) {
  19. if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
  20. }
  21. function _defineProperties(e, r) {
  22. for (var t = 0; t < r.length; t++) {
  23. var o = r[t];
  24. o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
  25. }
  26. }
  27. function _createClass(e, r, t) {
  28. return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
  29. writable: !1
  30. }), e;
  31. }
  32. function _createForOfIteratorHelper(r, e) {
  33. var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  34. if (!t) {
  35. if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) {
  36. t && (r = t);
  37. var n = 0,
  38. F = function () {};
  39. return {
  40. s: F,
  41. n: function () {
  42. return n >= r.length ? {
  43. done: !0
  44. } : {
  45. done: !1,
  46. value: r[n++]
  47. };
  48. },
  49. e: function (r) {
  50. throw r;
  51. },
  52. f: F
  53. };
  54. }
  55. throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  56. }
  57. var o,
  58. a = !0,
  59. u = !1;
  60. return {
  61. s: function () {
  62. t = t.call(r);
  63. },
  64. n: function () {
  65. var r = t.next();
  66. return a = r.done, r;
  67. },
  68. e: function (r) {
  69. u = !0, o = r;
  70. },
  71. f: function () {
  72. try {
  73. a || null == t.return || t.return();
  74. } finally {
  75. if (u) throw o;
  76. }
  77. }
  78. };
  79. }
  80. function _get() {
  81. return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
  82. var p = _superPropBase(e, t);
  83. if (p) {
  84. var n = Object.getOwnPropertyDescriptor(p, t);
  85. return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
  86. }
  87. }, _get.apply(null, arguments);
  88. }
  89. function _getPrototypeOf(t) {
  90. return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
  91. return t.__proto__ || Object.getPrototypeOf(t);
  92. }, _getPrototypeOf(t);
  93. }
  94. function _inherits(t, e) {
  95. if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
  96. t.prototype = Object.create(e && e.prototype, {
  97. constructor: {
  98. value: t,
  99. writable: !0,
  100. configurable: !0
  101. }
  102. }), Object.defineProperty(t, "prototype", {
  103. writable: !1
  104. }), e && _setPrototypeOf(t, e);
  105. }
  106. function _isNativeReflectConstruct() {
  107. try {
  108. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  109. } catch (t) {}
  110. return (_isNativeReflectConstruct = function () {
  111. return !!t;
  112. })();
  113. }
  114. function _possibleConstructorReturn(t, e) {
  115. if (e && ("object" == typeof e || "function" == typeof e)) return e;
  116. if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
  117. return _assertThisInitialized(t);
  118. }
  119. function _setPrototypeOf(t, e) {
  120. return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
  121. return t.__proto__ = e, t;
  122. }, _setPrototypeOf(t, e);
  123. }
  124. function _superPropBase(t, o) {
  125. for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
  126. return t;
  127. }
  128. function _toPrimitive(t, r) {
  129. if ("object" != typeof t || !t) return t;
  130. var e = t[Symbol.toPrimitive];
  131. if (void 0 !== e) {
  132. var i = e.call(t, r);
  133. if ("object" != typeof i) return i;
  134. throw new TypeError("@@toPrimitive must return a primitive value.");
  135. }
  136. return (String )(t);
  137. }
  138. function _toPropertyKey(t) {
  139. var i = _toPrimitive(t, "string");
  140. return "symbol" == typeof i ? i : i + "";
  141. }
  142. function _unsupportedIterableToArray(r, a) {
  143. if (r) {
  144. if ("string" == typeof r) return _arrayLikeToArray(r, a);
  145. var t = {}.toString.call(r).slice(8, -1);
  146. 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;
  147. }
  148. }
  149. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  150. var check = function (it) {
  151. return it && it.Math === Math && it;
  152. };
  153. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  154. var global$d =
  155. // eslint-disable-next-line es/no-global-this -- safe
  156. check(typeof globalThis == 'object' && globalThis) ||
  157. check(typeof window == 'object' && window) ||
  158. // eslint-disable-next-line no-restricted-globals -- safe
  159. check(typeof self == 'object' && self) ||
  160. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  161. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  162. // eslint-disable-next-line no-new-func -- fallback
  163. (function () { return this; })() || Function('return this')();
  164. var objectGetOwnPropertyDescriptor = {};
  165. var fails$k = function (exec) {
  166. try {
  167. return !!exec();
  168. } catch (error) {
  169. return true;
  170. }
  171. };
  172. var fails$j = fails$k;
  173. // Detect IE8's incomplete defineProperty implementation
  174. var descriptors = !fails$j(function () {
  175. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  176. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
  177. });
  178. var fails$i = fails$k;
  179. var functionBindNative = !fails$i(function () {
  180. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  181. var test = (function () { /* empty */ }).bind();
  182. // eslint-disable-next-line no-prototype-builtins -- safe
  183. return typeof test != 'function' || test.hasOwnProperty('prototype');
  184. });
  185. var NATIVE_BIND$3 = functionBindNative;
  186. var call$a = Function.prototype.call;
  187. var functionCall = NATIVE_BIND$3 ? call$a.bind(call$a) : function () {
  188. return call$a.apply(call$a, arguments);
  189. };
  190. var objectPropertyIsEnumerable = {};
  191. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  192. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  193. var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  194. // Nashorn ~ JDK8 bug
  195. var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  196. // `Object.prototype.propertyIsEnumerable` method implementation
  197. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  198. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  199. var descriptor = getOwnPropertyDescriptor$1(this, V);
  200. return !!descriptor && descriptor.enumerable;
  201. } : $propertyIsEnumerable;
  202. var createPropertyDescriptor$3 = function (bitmap, value) {
  203. return {
  204. enumerable: !(bitmap & 1),
  205. configurable: !(bitmap & 2),
  206. writable: !(bitmap & 4),
  207. value: value
  208. };
  209. };
  210. var NATIVE_BIND$2 = functionBindNative;
  211. var FunctionPrototype$2 = Function.prototype;
  212. var call$9 = FunctionPrototype$2.call;
  213. var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$9, call$9);
  214. var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
  215. return function () {
  216. return call$9.apply(fn, arguments);
  217. };
  218. };
  219. var uncurryThis$l = functionUncurryThis;
  220. var toString$7 = uncurryThis$l({}.toString);
  221. var stringSlice$5 = uncurryThis$l(''.slice);
  222. var classofRaw$2 = function (it) {
  223. return stringSlice$5(toString$7(it), 8, -1);
  224. };
  225. var uncurryThis$k = functionUncurryThis;
  226. var fails$h = fails$k;
  227. var classof$6 = classofRaw$2;
  228. var $Object$3 = Object;
  229. var split = uncurryThis$k(''.split);
  230. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  231. var indexedObject = fails$h(function () {
  232. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  233. // eslint-disable-next-line no-prototype-builtins -- safe
  234. return !$Object$3('z').propertyIsEnumerable(0);
  235. }) ? function (it) {
  236. return classof$6(it) === 'String' ? split(it, '') : $Object$3(it);
  237. } : $Object$3;
  238. // we can't use just `it == null` since of `document.all` special case
  239. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  240. var isNullOrUndefined$3 = function (it) {
  241. return it === null || it === undefined;
  242. };
  243. var isNullOrUndefined$2 = isNullOrUndefined$3;
  244. var $TypeError$8 = TypeError;
  245. // `RequireObjectCoercible` abstract operation
  246. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  247. var requireObjectCoercible$4 = function (it) {
  248. if (isNullOrUndefined$2(it)) throw new $TypeError$8("Can't call method on " + it);
  249. return it;
  250. };
  251. // toObject with fallback for non-array-like ES3 strings
  252. var IndexedObject$3 = indexedObject;
  253. var requireObjectCoercible$3 = requireObjectCoercible$4;
  254. var toIndexedObject$6 = function (it) {
  255. return IndexedObject$3(requireObjectCoercible$3(it));
  256. };
  257. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  258. var documentAll = typeof document == 'object' && document.all;
  259. // `IsCallable` abstract operation
  260. // https://tc39.es/ecma262/#sec-iscallable
  261. // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
  262. var isCallable$e = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
  263. return typeof argument == 'function' || argument === documentAll;
  264. } : function (argument) {
  265. return typeof argument == 'function';
  266. };
  267. var isCallable$d = isCallable$e;
  268. var isObject$8 = function (it) {
  269. return typeof it == 'object' ? it !== null : isCallable$d(it);
  270. };
  271. var global$c = global$d;
  272. var isCallable$c = isCallable$e;
  273. var aFunction = function (argument) {
  274. return isCallable$c(argument) ? argument : undefined;
  275. };
  276. var getBuiltIn$4 = function (namespace, method) {
  277. return arguments.length < 2 ? aFunction(global$c[namespace]) : global$c[namespace] && global$c[namespace][method];
  278. };
  279. var uncurryThis$j = functionUncurryThis;
  280. var objectIsPrototypeOf = uncurryThis$j({}.isPrototypeOf);
  281. var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
  282. var global$b = global$d;
  283. var userAgent$2 = engineUserAgent;
  284. var process = global$b.process;
  285. var Deno = global$b.Deno;
  286. var versions = process && process.versions || Deno && Deno.version;
  287. var v8 = versions && versions.v8;
  288. var match, version;
  289. if (v8) {
  290. match = v8.split('.');
  291. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  292. // but their correct versions are not interesting for us
  293. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  294. }
  295. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  296. // so check `userAgent` even if `.v8` exists, but 0
  297. if (!version && userAgent$2) {
  298. match = userAgent$2.match(/Edge\/(\d+)/);
  299. if (!match || match[1] >= 74) {
  300. match = userAgent$2.match(/Chrome\/(\d+)/);
  301. if (match) version = +match[1];
  302. }
  303. }
  304. var engineV8Version = version;
  305. /* eslint-disable es/no-symbol -- required for testing */
  306. var V8_VERSION$2 = engineV8Version;
  307. var fails$g = fails$k;
  308. var global$a = global$d;
  309. var $String$4 = global$a.String;
  310. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  311. var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$g(function () {
  312. var symbol = Symbol('symbol detection');
  313. // Chrome 38 Symbol has incorrect toString conversion
  314. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  315. // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
  316. // of course, fail.
  317. return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
  318. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  319. !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
  320. });
  321. /* eslint-disable es/no-symbol -- required for testing */
  322. var NATIVE_SYMBOL$1 = symbolConstructorDetection;
  323. var useSymbolAsUid = NATIVE_SYMBOL$1
  324. && !Symbol.sham
  325. && typeof Symbol.iterator == 'symbol';
  326. var getBuiltIn$3 = getBuiltIn$4;
  327. var isCallable$b = isCallable$e;
  328. var isPrototypeOf = objectIsPrototypeOf;
  329. var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
  330. var $Object$2 = Object;
  331. var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
  332. return typeof it == 'symbol';
  333. } : function (it) {
  334. var $Symbol = getBuiltIn$3('Symbol');
  335. return isCallable$b($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
  336. };
  337. var $String$3 = String;
  338. var tryToString$2 = function (argument) {
  339. try {
  340. return $String$3(argument);
  341. } catch (error) {
  342. return 'Object';
  343. }
  344. };
  345. var isCallable$a = isCallable$e;
  346. var tryToString$1 = tryToString$2;
  347. var $TypeError$7 = TypeError;
  348. // `Assert: IsCallable(argument) is true`
  349. var aCallable$3 = function (argument) {
  350. if (isCallable$a(argument)) return argument;
  351. throw new $TypeError$7(tryToString$1(argument) + ' is not a function');
  352. };
  353. var aCallable$2 = aCallable$3;
  354. var isNullOrUndefined$1 = isNullOrUndefined$3;
  355. // `GetMethod` abstract operation
  356. // https://tc39.es/ecma262/#sec-getmethod
  357. var getMethod$2 = function (V, P) {
  358. var func = V[P];
  359. return isNullOrUndefined$1(func) ? undefined : aCallable$2(func);
  360. };
  361. var call$8 = functionCall;
  362. var isCallable$9 = isCallable$e;
  363. var isObject$7 = isObject$8;
  364. var $TypeError$6 = TypeError;
  365. // `OrdinaryToPrimitive` abstract operation
  366. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  367. var ordinaryToPrimitive$1 = function (input, pref) {
  368. var fn, val;
  369. if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$7(val = call$8(fn, input))) return val;
  370. if (isCallable$9(fn = input.valueOf) && !isObject$7(val = call$8(fn, input))) return val;
  371. if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$7(val = call$8(fn, input))) return val;
  372. throw new $TypeError$6("Can't convert object to primitive value");
  373. };
  374. var sharedStore = {exports: {}};
  375. var global$9 = global$d;
  376. // eslint-disable-next-line es/no-object-defineproperty -- safe
  377. var defineProperty$3 = Object.defineProperty;
  378. var defineGlobalProperty$3 = function (key, value) {
  379. try {
  380. defineProperty$3(global$9, key, { value: value, configurable: true, writable: true });
  381. } catch (error) {
  382. global$9[key] = value;
  383. } return value;
  384. };
  385. var globalThis$1 = global$d;
  386. var defineGlobalProperty$2 = defineGlobalProperty$3;
  387. var SHARED = '__core-js_shared__';
  388. var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
  389. (store$3.versions || (store$3.versions = [])).push({
  390. version: '3.37.1',
  391. mode: 'global',
  392. copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
  393. license: 'https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE',
  394. source: 'https://github.com/zloirock/core-js'
  395. });
  396. var sharedStoreExports = sharedStore.exports;
  397. var store$2 = sharedStoreExports;
  398. var shared$4 = function (key, value) {
  399. return store$2[key] || (store$2[key] = value || {});
  400. };
  401. var requireObjectCoercible$2 = requireObjectCoercible$4;
  402. var $Object$1 = Object;
  403. // `ToObject` abstract operation
  404. // https://tc39.es/ecma262/#sec-toobject
  405. var toObject$7 = function (argument) {
  406. return $Object$1(requireObjectCoercible$2(argument));
  407. };
  408. var uncurryThis$i = functionUncurryThis;
  409. var toObject$6 = toObject$7;
  410. var hasOwnProperty = uncurryThis$i({}.hasOwnProperty);
  411. // `HasOwnProperty` abstract operation
  412. // https://tc39.es/ecma262/#sec-hasownproperty
  413. // eslint-disable-next-line es/no-object-hasown -- safe
  414. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  415. return hasOwnProperty(toObject$6(it), key);
  416. };
  417. var uncurryThis$h = functionUncurryThis;
  418. var id = 0;
  419. var postfix = Math.random();
  420. var toString$6 = uncurryThis$h(1.0.toString);
  421. var uid$2 = function (key) {
  422. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$6(++id + postfix, 36);
  423. };
  424. var global$8 = global$d;
  425. var shared$3 = shared$4;
  426. var hasOwn$6 = hasOwnProperty_1;
  427. var uid$1 = uid$2;
  428. var NATIVE_SYMBOL = symbolConstructorDetection;
  429. var USE_SYMBOL_AS_UID = useSymbolAsUid;
  430. var Symbol$1 = global$8.Symbol;
  431. var WellKnownSymbolsStore = shared$3('wks');
  432. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
  433. var wellKnownSymbol$a = function (name) {
  434. if (!hasOwn$6(WellKnownSymbolsStore, name)) {
  435. WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
  436. ? Symbol$1[name]
  437. : createWellKnownSymbol('Symbol.' + name);
  438. } return WellKnownSymbolsStore[name];
  439. };
  440. var call$7 = functionCall;
  441. var isObject$6 = isObject$8;
  442. var isSymbol$1 = isSymbol$2;
  443. var getMethod$1 = getMethod$2;
  444. var ordinaryToPrimitive = ordinaryToPrimitive$1;
  445. var wellKnownSymbol$9 = wellKnownSymbol$a;
  446. var $TypeError$5 = TypeError;
  447. var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
  448. // `ToPrimitive` abstract operation
  449. // https://tc39.es/ecma262/#sec-toprimitive
  450. var toPrimitive$1 = function (input, pref) {
  451. if (!isObject$6(input) || isSymbol$1(input)) return input;
  452. var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
  453. var result;
  454. if (exoticToPrim) {
  455. if (pref === undefined) pref = 'default';
  456. result = call$7(exoticToPrim, input, pref);
  457. if (!isObject$6(result) || isSymbol$1(result)) return result;
  458. throw new $TypeError$5("Can't convert object to primitive value");
  459. }
  460. if (pref === undefined) pref = 'number';
  461. return ordinaryToPrimitive(input, pref);
  462. };
  463. var toPrimitive = toPrimitive$1;
  464. var isSymbol = isSymbol$2;
  465. // `ToPropertyKey` abstract operation
  466. // https://tc39.es/ecma262/#sec-topropertykey
  467. var toPropertyKey$2 = function (argument) {
  468. var key = toPrimitive(argument, 'string');
  469. return isSymbol(key) ? key : key + '';
  470. };
  471. var global$7 = global$d;
  472. var isObject$5 = isObject$8;
  473. var document$1 = global$7.document;
  474. // typeof document.createElement is 'object' in old IE
  475. var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
  476. var documentCreateElement$1 = function (it) {
  477. return EXISTS$1 ? document$1.createElement(it) : {};
  478. };
  479. var DESCRIPTORS$9 = descriptors;
  480. var fails$f = fails$k;
  481. var createElement = documentCreateElement$1;
  482. // Thanks to IE8 for its funny defineProperty
  483. var ie8DomDefine = !DESCRIPTORS$9 && !fails$f(function () {
  484. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  485. return Object.defineProperty(createElement('div'), 'a', {
  486. get: function () { return 7; }
  487. }).a !== 7;
  488. });
  489. var DESCRIPTORS$8 = descriptors;
  490. var call$6 = functionCall;
  491. var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
  492. var createPropertyDescriptor$2 = createPropertyDescriptor$3;
  493. var toIndexedObject$5 = toIndexedObject$6;
  494. var toPropertyKey$1 = toPropertyKey$2;
  495. var hasOwn$5 = hasOwnProperty_1;
  496. var IE8_DOM_DEFINE$1 = ie8DomDefine;
  497. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  498. var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  499. // `Object.getOwnPropertyDescriptor` method
  500. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  501. objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
  502. O = toIndexedObject$5(O);
  503. P = toPropertyKey$1(P);
  504. if (IE8_DOM_DEFINE$1) try {
  505. return $getOwnPropertyDescriptor$1(O, P);
  506. } catch (error) { /* empty */ }
  507. if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call$6(propertyIsEnumerableModule$1.f, O, P), O[P]);
  508. };
  509. var objectDefineProperty = {};
  510. var DESCRIPTORS$7 = descriptors;
  511. var fails$e = fails$k;
  512. // V8 ~ Chrome 36-
  513. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  514. var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$e(function () {
  515. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  516. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  517. value: 42,
  518. writable: false
  519. }).prototype !== 42;
  520. });
  521. var isObject$4 = isObject$8;
  522. var $String$2 = String;
  523. var $TypeError$4 = TypeError;
  524. // `Assert: Type(argument) is Object`
  525. var anObject$7 = function (argument) {
  526. if (isObject$4(argument)) return argument;
  527. throw new $TypeError$4($String$2(argument) + ' is not an object');
  528. };
  529. var DESCRIPTORS$6 = descriptors;
  530. var IE8_DOM_DEFINE = ie8DomDefine;
  531. var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
  532. var anObject$6 = anObject$7;
  533. var toPropertyKey = toPropertyKey$2;
  534. var $TypeError$3 = TypeError;
  535. // eslint-disable-next-line es/no-object-defineproperty -- safe
  536. var $defineProperty = Object.defineProperty;
  537. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  538. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  539. var ENUMERABLE = 'enumerable';
  540. var CONFIGURABLE$1 = 'configurable';
  541. var WRITABLE = 'writable';
  542. // `Object.defineProperty` method
  543. // https://tc39.es/ecma262/#sec-object.defineproperty
  544. objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
  545. anObject$6(O);
  546. P = toPropertyKey(P);
  547. anObject$6(Attributes);
  548. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  549. var current = $getOwnPropertyDescriptor(O, P);
  550. if (current && current[WRITABLE]) {
  551. O[P] = Attributes.value;
  552. Attributes = {
  553. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  554. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  555. writable: false
  556. };
  557. }
  558. } return $defineProperty(O, P, Attributes);
  559. } : $defineProperty : function defineProperty(O, P, Attributes) {
  560. anObject$6(O);
  561. P = toPropertyKey(P);
  562. anObject$6(Attributes);
  563. if (IE8_DOM_DEFINE) try {
  564. return $defineProperty(O, P, Attributes);
  565. } catch (error) { /* empty */ }
  566. if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$3('Accessors not supported');
  567. if ('value' in Attributes) O[P] = Attributes.value;
  568. return O;
  569. };
  570. var DESCRIPTORS$5 = descriptors;
  571. var definePropertyModule$4 = objectDefineProperty;
  572. var createPropertyDescriptor$1 = createPropertyDescriptor$3;
  573. var createNonEnumerableProperty$3 = DESCRIPTORS$5 ? function (object, key, value) {
  574. return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
  575. } : function (object, key, value) {
  576. object[key] = value;
  577. return object;
  578. };
  579. var makeBuiltIn$2 = {exports: {}};
  580. var DESCRIPTORS$4 = descriptors;
  581. var hasOwn$4 = hasOwnProperty_1;
  582. var FunctionPrototype$1 = Function.prototype;
  583. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  584. var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
  585. var EXISTS = hasOwn$4(FunctionPrototype$1, 'name');
  586. // additional protection from minified / mangled / dropped function names
  587. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  588. var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype$1, 'name').configurable));
  589. var functionName = {
  590. EXISTS: EXISTS,
  591. PROPER: PROPER,
  592. CONFIGURABLE: CONFIGURABLE
  593. };
  594. var uncurryThis$g = functionUncurryThis;
  595. var isCallable$8 = isCallable$e;
  596. var store$1 = sharedStoreExports;
  597. var functionToString = uncurryThis$g(Function.toString);
  598. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  599. if (!isCallable$8(store$1.inspectSource)) {
  600. store$1.inspectSource = function (it) {
  601. return functionToString(it);
  602. };
  603. }
  604. var inspectSource$2 = store$1.inspectSource;
  605. var global$6 = global$d;
  606. var isCallable$7 = isCallable$e;
  607. var WeakMap$1 = global$6.WeakMap;
  608. var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
  609. var shared$2 = shared$4;
  610. var uid = uid$2;
  611. var keys = shared$2('keys');
  612. var sharedKey$2 = function (key) {
  613. return keys[key] || (keys[key] = uid(key));
  614. };
  615. var hiddenKeys$4 = {};
  616. var NATIVE_WEAK_MAP = weakMapBasicDetection;
  617. var global$5 = global$d;
  618. var isObject$3 = isObject$8;
  619. var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
  620. var hasOwn$3 = hasOwnProperty_1;
  621. var shared$1 = sharedStoreExports;
  622. var sharedKey$1 = sharedKey$2;
  623. var hiddenKeys$3 = hiddenKeys$4;
  624. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  625. var TypeError$1 = global$5.TypeError;
  626. var WeakMap = global$5.WeakMap;
  627. var set, get, has;
  628. var enforce = function (it) {
  629. return has(it) ? get(it) : set(it, {});
  630. };
  631. var getterFor = function (TYPE) {
  632. return function (it) {
  633. var state;
  634. if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
  635. throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
  636. } return state;
  637. };
  638. };
  639. if (NATIVE_WEAK_MAP || shared$1.state) {
  640. var store = shared$1.state || (shared$1.state = new WeakMap());
  641. /* eslint-disable no-self-assign -- prototype methods protection */
  642. store.get = store.get;
  643. store.has = store.has;
  644. store.set = store.set;
  645. /* eslint-enable no-self-assign -- prototype methods protection */
  646. set = function (it, metadata) {
  647. if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  648. metadata.facade = it;
  649. store.set(it, metadata);
  650. return metadata;
  651. };
  652. get = function (it) {
  653. return store.get(it) || {};
  654. };
  655. has = function (it) {
  656. return store.has(it);
  657. };
  658. } else {
  659. var STATE = sharedKey$1('state');
  660. hiddenKeys$3[STATE] = true;
  661. set = function (it, metadata) {
  662. if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  663. metadata.facade = it;
  664. createNonEnumerableProperty$2(it, STATE, metadata);
  665. return metadata;
  666. };
  667. get = function (it) {
  668. return hasOwn$3(it, STATE) ? it[STATE] : {};
  669. };
  670. has = function (it) {
  671. return hasOwn$3(it, STATE);
  672. };
  673. }
  674. var internalState = {
  675. set: set,
  676. get: get,
  677. has: has,
  678. enforce: enforce,
  679. getterFor: getterFor
  680. };
  681. var uncurryThis$f = functionUncurryThis;
  682. var fails$d = fails$k;
  683. var isCallable$6 = isCallable$e;
  684. var hasOwn$2 = hasOwnProperty_1;
  685. var DESCRIPTORS$3 = descriptors;
  686. var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
  687. var inspectSource$1 = inspectSource$2;
  688. var InternalStateModule = internalState;
  689. var enforceInternalState = InternalStateModule.enforce;
  690. var getInternalState$1 = InternalStateModule.get;
  691. var $String$1 = String;
  692. // eslint-disable-next-line es/no-object-defineproperty -- safe
  693. var defineProperty$2 = Object.defineProperty;
  694. var stringSlice$4 = uncurryThis$f(''.slice);
  695. var replace$2 = uncurryThis$f(''.replace);
  696. var join = uncurryThis$f([].join);
  697. var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$d(function () {
  698. return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  699. });
  700. var TEMPLATE = String(String).split('String');
  701. var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
  702. if (stringSlice$4($String$1(name), 0, 7) === 'Symbol(') {
  703. name = '[' + replace$2($String$1(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
  704. }
  705. if (options && options.getter) name = 'get ' + name;
  706. if (options && options.setter) name = 'set ' + name;
  707. if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  708. if (DESCRIPTORS$3) defineProperty$2(value, 'name', { value: name, configurable: true });
  709. else value.name = name;
  710. }
  711. if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
  712. defineProperty$2(value, 'length', { value: options.arity });
  713. }
  714. try {
  715. if (options && hasOwn$2(options, 'constructor') && options.constructor) {
  716. if (DESCRIPTORS$3) defineProperty$2(value, 'prototype', { writable: false });
  717. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  718. } else if (value.prototype) value.prototype = undefined;
  719. } catch (error) { /* empty */ }
  720. var state = enforceInternalState(value);
  721. if (!hasOwn$2(state, 'source')) {
  722. state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
  723. } return value;
  724. };
  725. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  726. // eslint-disable-next-line no-extend-native -- required
  727. Function.prototype.toString = makeBuiltIn$1(function toString() {
  728. return isCallable$6(this) && getInternalState$1(this).source || inspectSource$1(this);
  729. }, 'toString');
  730. var makeBuiltInExports = makeBuiltIn$2.exports;
  731. var isCallable$5 = isCallable$e;
  732. var definePropertyModule$3 = objectDefineProperty;
  733. var makeBuiltIn = makeBuiltInExports;
  734. var defineGlobalProperty$1 = defineGlobalProperty$3;
  735. var defineBuiltIn$3 = function (O, key, value, options) {
  736. if (!options) options = {};
  737. var simple = options.enumerable;
  738. var name = options.name !== undefined ? options.name : key;
  739. if (isCallable$5(value)) makeBuiltIn(value, name, options);
  740. if (options.global) {
  741. if (simple) O[key] = value;
  742. else defineGlobalProperty$1(key, value);
  743. } else {
  744. try {
  745. if (!options.unsafe) delete O[key];
  746. else if (O[key]) simple = true;
  747. } catch (error) { /* empty */ }
  748. if (simple) O[key] = value;
  749. else definePropertyModule$3.f(O, key, {
  750. value: value,
  751. enumerable: false,
  752. configurable: !options.nonConfigurable,
  753. writable: !options.nonWritable
  754. });
  755. } return O;
  756. };
  757. var objectGetOwnPropertyNames = {};
  758. var ceil = Math.ceil;
  759. var floor$2 = Math.floor;
  760. // `Math.trunc` method
  761. // https://tc39.es/ecma262/#sec-math.trunc
  762. // eslint-disable-next-line es/no-math-trunc -- safe
  763. var mathTrunc = Math.trunc || function trunc(x) {
  764. var n = +x;
  765. return (n > 0 ? floor$2 : ceil)(n);
  766. };
  767. var trunc = mathTrunc;
  768. // `ToIntegerOrInfinity` abstract operation
  769. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  770. var toIntegerOrInfinity$5 = function (argument) {
  771. var number = +argument;
  772. // eslint-disable-next-line no-self-compare -- NaN check
  773. return number !== number || number === 0 ? 0 : trunc(number);
  774. };
  775. var toIntegerOrInfinity$4 = toIntegerOrInfinity$5;
  776. var max$2 = Math.max;
  777. var min$2 = Math.min;
  778. // Helper for a popular repeating case of the spec:
  779. // Let integer be ? ToInteger(index).
  780. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  781. var toAbsoluteIndex$2 = function (index, length) {
  782. var integer = toIntegerOrInfinity$4(index);
  783. return integer < 0 ? max$2(integer + length, 0) : min$2(integer, length);
  784. };
  785. var toIntegerOrInfinity$3 = toIntegerOrInfinity$5;
  786. var min$1 = Math.min;
  787. // `ToLength` abstract operation
  788. // https://tc39.es/ecma262/#sec-tolength
  789. var toLength$2 = function (argument) {
  790. var len = toIntegerOrInfinity$3(argument);
  791. return len > 0 ? min$1(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  792. };
  793. var toLength$1 = toLength$2;
  794. // `LengthOfArrayLike` abstract operation
  795. // https://tc39.es/ecma262/#sec-lengthofarraylike
  796. var lengthOfArrayLike$7 = function (obj) {
  797. return toLength$1(obj.length);
  798. };
  799. var toIndexedObject$4 = toIndexedObject$6;
  800. var toAbsoluteIndex$1 = toAbsoluteIndex$2;
  801. var lengthOfArrayLike$6 = lengthOfArrayLike$7;
  802. // `Array.prototype.{ indexOf, includes }` methods implementation
  803. var createMethod$2 = function (IS_INCLUDES) {
  804. return function ($this, el, fromIndex) {
  805. var O = toIndexedObject$4($this);
  806. var length = lengthOfArrayLike$6(O);
  807. if (length === 0) return !IS_INCLUDES && -1;
  808. var index = toAbsoluteIndex$1(fromIndex, length);
  809. var value;
  810. // Array#includes uses SameValueZero equality algorithm
  811. // eslint-disable-next-line no-self-compare -- NaN check
  812. if (IS_INCLUDES && el !== el) while (length > index) {
  813. value = O[index++];
  814. // eslint-disable-next-line no-self-compare -- NaN check
  815. if (value !== value) return true;
  816. // Array#indexOf ignores holes, Array#includes - not
  817. } else for (;length > index; index++) {
  818. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  819. } return !IS_INCLUDES && -1;
  820. };
  821. };
  822. var arrayIncludes = {
  823. // `Array.prototype.includes` method
  824. // https://tc39.es/ecma262/#sec-array.prototype.includes
  825. includes: createMethod$2(true),
  826. // `Array.prototype.indexOf` method
  827. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  828. indexOf: createMethod$2(false)
  829. };
  830. var uncurryThis$e = functionUncurryThis;
  831. var hasOwn$1 = hasOwnProperty_1;
  832. var toIndexedObject$3 = toIndexedObject$6;
  833. var indexOf$1 = arrayIncludes.indexOf;
  834. var hiddenKeys$2 = hiddenKeys$4;
  835. var push$3 = uncurryThis$e([].push);
  836. var objectKeysInternal = function (object, names) {
  837. var O = toIndexedObject$3(object);
  838. var i = 0;
  839. var result = [];
  840. var key;
  841. for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$3(result, key);
  842. // Don't enum bug & hidden keys
  843. while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
  844. ~indexOf$1(result, key) || push$3(result, key);
  845. }
  846. return result;
  847. };
  848. // IE8- don't enum bug keys
  849. var enumBugKeys$3 = [
  850. 'constructor',
  851. 'hasOwnProperty',
  852. 'isPrototypeOf',
  853. 'propertyIsEnumerable',
  854. 'toLocaleString',
  855. 'toString',
  856. 'valueOf'
  857. ];
  858. var internalObjectKeys$1 = objectKeysInternal;
  859. var enumBugKeys$2 = enumBugKeys$3;
  860. var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
  861. // `Object.getOwnPropertyNames` method
  862. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  863. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  864. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  865. return internalObjectKeys$1(O, hiddenKeys$1);
  866. };
  867. var objectGetOwnPropertySymbols = {};
  868. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  869. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  870. var getBuiltIn$2 = getBuiltIn$4;
  871. var uncurryThis$d = functionUncurryThis;
  872. var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
  873. var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
  874. var anObject$5 = anObject$7;
  875. var concat$2 = uncurryThis$d([].concat);
  876. // all object keys, includes non-enumerable and symbols
  877. var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
  878. var keys = getOwnPropertyNamesModule.f(anObject$5(it));
  879. var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
  880. return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
  881. };
  882. var hasOwn = hasOwnProperty_1;
  883. var ownKeys = ownKeys$1;
  884. var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
  885. var definePropertyModule$2 = objectDefineProperty;
  886. var copyConstructorProperties$1 = function (target, source, exceptions) {
  887. var keys = ownKeys(source);
  888. var defineProperty = definePropertyModule$2.f;
  889. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  890. for (var i = 0; i < keys.length; i++) {
  891. var key = keys[i];
  892. if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
  893. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  894. }
  895. }
  896. };
  897. var fails$c = fails$k;
  898. var isCallable$4 = isCallable$e;
  899. var replacement = /#|\.prototype\./;
  900. var isForced$1 = function (feature, detection) {
  901. var value = data[normalize(feature)];
  902. return value === POLYFILL ? true
  903. : value === NATIVE ? false
  904. : isCallable$4(detection) ? fails$c(detection)
  905. : !!detection;
  906. };
  907. var normalize = isForced$1.normalize = function (string) {
  908. return String(string).replace(replacement, '.').toLowerCase();
  909. };
  910. var data = isForced$1.data = {};
  911. var NATIVE = isForced$1.NATIVE = 'N';
  912. var POLYFILL = isForced$1.POLYFILL = 'P';
  913. var isForced_1 = isForced$1;
  914. var global$4 = global$d;
  915. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  916. var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
  917. var defineBuiltIn$2 = defineBuiltIn$3;
  918. var defineGlobalProperty = defineGlobalProperty$3;
  919. var copyConstructorProperties = copyConstructorProperties$1;
  920. var isForced = isForced_1;
  921. /*
  922. options.target - name of the target object
  923. options.global - target is the global object
  924. options.stat - export as static methods of target
  925. options.proto - export as prototype methods of target
  926. options.real - real prototype method for the `pure` version
  927. options.forced - export even if the native feature is available
  928. options.bind - bind methods to the target, required for the `pure` version
  929. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  930. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  931. options.sham - add a flag to not completely full polyfills
  932. options.enumerable - export as enumerable property
  933. options.dontCallGetSet - prevent calling a getter on target
  934. options.name - the .name of the function if it does not match the key
  935. */
  936. var _export = function (options, source) {
  937. var TARGET = options.target;
  938. var GLOBAL = options.global;
  939. var STATIC = options.stat;
  940. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  941. if (GLOBAL) {
  942. target = global$4;
  943. } else if (STATIC) {
  944. target = global$4[TARGET] || defineGlobalProperty(TARGET, {});
  945. } else {
  946. target = global$4[TARGET] && global$4[TARGET].prototype;
  947. }
  948. if (target) for (key in source) {
  949. sourceProperty = source[key];
  950. if (options.dontCallGetSet) {
  951. descriptor = getOwnPropertyDescriptor(target, key);
  952. targetProperty = descriptor && descriptor.value;
  953. } else targetProperty = target[key];
  954. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  955. // contained in target
  956. if (!FORCED && targetProperty !== undefined) {
  957. if (typeof sourceProperty == typeof targetProperty) continue;
  958. copyConstructorProperties(sourceProperty, targetProperty);
  959. }
  960. // add a flag to not completely full polyfills
  961. if (options.sham || (targetProperty && targetProperty.sham)) {
  962. createNonEnumerableProperty$1(sourceProperty, 'sham', true);
  963. }
  964. defineBuiltIn$2(target, key, sourceProperty, options);
  965. }
  966. };
  967. var classof$5 = classofRaw$2;
  968. // `IsArray` abstract operation
  969. // https://tc39.es/ecma262/#sec-isarray
  970. // eslint-disable-next-line es/no-array-isarray -- safe
  971. var isArray$4 = Array.isArray || function isArray(argument) {
  972. return classof$5(argument) === 'Array';
  973. };
  974. var $TypeError$2 = TypeError;
  975. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
  976. var doesNotExceedSafeInteger$2 = function (it) {
  977. if (it > MAX_SAFE_INTEGER) throw $TypeError$2('Maximum allowed index exceeded');
  978. return it;
  979. };
  980. var DESCRIPTORS$2 = descriptors;
  981. var definePropertyModule$1 = objectDefineProperty;
  982. var createPropertyDescriptor = createPropertyDescriptor$3;
  983. var createProperty$2 = function (object, key, value) {
  984. if (DESCRIPTORS$2) definePropertyModule$1.f(object, key, createPropertyDescriptor(0, value));
  985. else object[key] = value;
  986. };
  987. var wellKnownSymbol$8 = wellKnownSymbol$a;
  988. var TO_STRING_TAG$1 = wellKnownSymbol$8('toStringTag');
  989. var test$1 = {};
  990. test$1[TO_STRING_TAG$1] = 'z';
  991. var toStringTagSupport = String(test$1) === '[object z]';
  992. var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
  993. var isCallable$3 = isCallable$e;
  994. var classofRaw$1 = classofRaw$2;
  995. var wellKnownSymbol$7 = wellKnownSymbol$a;
  996. var TO_STRING_TAG = wellKnownSymbol$7('toStringTag');
  997. var $Object = Object;
  998. // ES3 wrong here
  999. var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
  1000. // fallback for IE11 Script Access Denied error
  1001. var tryGet = function (it, key) {
  1002. try {
  1003. return it[key];
  1004. } catch (error) { /* empty */ }
  1005. };
  1006. // getting tag from ES6+ `Object.prototype.toString`
  1007. var classof$4 = TO_STRING_TAG_SUPPORT$2 ? classofRaw$1 : function (it) {
  1008. var O, tag, result;
  1009. return it === undefined ? 'Undefined' : it === null ? 'Null'
  1010. // @@toStringTag case
  1011. : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
  1012. // builtinTag case
  1013. : CORRECT_ARGUMENTS ? classofRaw$1(O)
  1014. // ES3 arguments fallback
  1015. : (result = classofRaw$1(O)) === 'Object' && isCallable$3(O.callee) ? 'Arguments' : result;
  1016. };
  1017. var uncurryThis$c = functionUncurryThis;
  1018. var fails$b = fails$k;
  1019. var isCallable$2 = isCallable$e;
  1020. var classof$3 = classof$4;
  1021. var getBuiltIn$1 = getBuiltIn$4;
  1022. var inspectSource = inspectSource$2;
  1023. var noop = function () { /* empty */ };
  1024. var construct = getBuiltIn$1('Reflect', 'construct');
  1025. var constructorRegExp = /^\s*(?:class|function)\b/;
  1026. var exec$1 = uncurryThis$c(constructorRegExp.exec);
  1027. var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
  1028. var isConstructorModern = function isConstructor(argument) {
  1029. if (!isCallable$2(argument)) return false;
  1030. try {
  1031. construct(noop, [], argument);
  1032. return true;
  1033. } catch (error) {
  1034. return false;
  1035. }
  1036. };
  1037. var isConstructorLegacy = function isConstructor(argument) {
  1038. if (!isCallable$2(argument)) return false;
  1039. switch (classof$3(argument)) {
  1040. case 'AsyncFunction':
  1041. case 'GeneratorFunction':
  1042. case 'AsyncGeneratorFunction': return false;
  1043. }
  1044. try {
  1045. // we can't check .prototype since constructors produced by .bind haven't it
  1046. // `Function#toString` throws on some built-it function in some legacy engines
  1047. // (for example, `DOMQuad` and similar in FF41-)
  1048. return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
  1049. } catch (error) {
  1050. return true;
  1051. }
  1052. };
  1053. isConstructorLegacy.sham = true;
  1054. // `IsConstructor` abstract operation
  1055. // https://tc39.es/ecma262/#sec-isconstructor
  1056. var isConstructor$2 = !construct || fails$b(function () {
  1057. var called;
  1058. return isConstructorModern(isConstructorModern.call)
  1059. || !isConstructorModern(Object)
  1060. || !isConstructorModern(function () { called = true; })
  1061. || called;
  1062. }) ? isConstructorLegacy : isConstructorModern;
  1063. var isArray$3 = isArray$4;
  1064. var isConstructor$1 = isConstructor$2;
  1065. var isObject$2 = isObject$8;
  1066. var wellKnownSymbol$6 = wellKnownSymbol$a;
  1067. var SPECIES$3 = wellKnownSymbol$6('species');
  1068. var $Array$1 = Array;
  1069. // a part of `ArraySpeciesCreate` abstract operation
  1070. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1071. var arraySpeciesConstructor$1 = function (originalArray) {
  1072. var C;
  1073. if (isArray$3(originalArray)) {
  1074. C = originalArray.constructor;
  1075. // cross-realm fallback
  1076. if (isConstructor$1(C) && (C === $Array$1 || isArray$3(C.prototype))) C = undefined;
  1077. else if (isObject$2(C)) {
  1078. C = C[SPECIES$3];
  1079. if (C === null) C = undefined;
  1080. }
  1081. } return C === undefined ? $Array$1 : C;
  1082. };
  1083. var arraySpeciesConstructor = arraySpeciesConstructor$1;
  1084. // `ArraySpeciesCreate` abstract operation
  1085. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1086. var arraySpeciesCreate$3 = function (originalArray, length) {
  1087. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1088. };
  1089. var fails$a = fails$k;
  1090. var wellKnownSymbol$5 = wellKnownSymbol$a;
  1091. var V8_VERSION$1 = engineV8Version;
  1092. var SPECIES$2 = wellKnownSymbol$5('species');
  1093. var arrayMethodHasSpeciesSupport$4 = function (METHOD_NAME) {
  1094. // We can't use this feature detection in V8 since it causes
  1095. // deoptimization and serious performance degradation
  1096. // https://github.com/zloirock/core-js/issues/677
  1097. return V8_VERSION$1 >= 51 || !fails$a(function () {
  1098. var array = [];
  1099. var constructor = array.constructor = {};
  1100. constructor[SPECIES$2] = function () {
  1101. return { foo: 1 };
  1102. };
  1103. return array[METHOD_NAME](Boolean).foo !== 1;
  1104. });
  1105. };
  1106. var $$b = _export;
  1107. var fails$9 = fails$k;
  1108. var isArray$2 = isArray$4;
  1109. var isObject$1 = isObject$8;
  1110. var toObject$5 = toObject$7;
  1111. var lengthOfArrayLike$5 = lengthOfArrayLike$7;
  1112. var doesNotExceedSafeInteger$1 = doesNotExceedSafeInteger$2;
  1113. var createProperty$1 = createProperty$2;
  1114. var arraySpeciesCreate$2 = arraySpeciesCreate$3;
  1115. var arrayMethodHasSpeciesSupport$3 = arrayMethodHasSpeciesSupport$4;
  1116. var wellKnownSymbol$4 = wellKnownSymbol$a;
  1117. var V8_VERSION = engineV8Version;
  1118. var IS_CONCAT_SPREADABLE = wellKnownSymbol$4('isConcatSpreadable');
  1119. // We can't use this feature detection in V8 since it causes
  1120. // deoptimization and serious performance degradation
  1121. // https://github.com/zloirock/core-js/issues/679
  1122. var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$9(function () {
  1123. var array = [];
  1124. array[IS_CONCAT_SPREADABLE] = false;
  1125. return array.concat()[0] !== array;
  1126. });
  1127. var isConcatSpreadable = function (O) {
  1128. if (!isObject$1(O)) return false;
  1129. var spreadable = O[IS_CONCAT_SPREADABLE];
  1130. return spreadable !== undefined ? !!spreadable : isArray$2(O);
  1131. };
  1132. var FORCED$3 = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport$3('concat');
  1133. // `Array.prototype.concat` method
  1134. // https://tc39.es/ecma262/#sec-array.prototype.concat
  1135. // with adding support of @@isConcatSpreadable and @@species
  1136. $$b({ target: 'Array', proto: true, arity: 1, forced: FORCED$3 }, {
  1137. // eslint-disable-next-line no-unused-vars -- required for `.length`
  1138. concat: function concat(arg) {
  1139. var O = toObject$5(this);
  1140. var A = arraySpeciesCreate$2(O, 0);
  1141. var n = 0;
  1142. var i, k, length, len, E;
  1143. for (i = -1, length = arguments.length; i < length; i++) {
  1144. E = i === -1 ? O : arguments[i];
  1145. if (isConcatSpreadable(E)) {
  1146. len = lengthOfArrayLike$5(E);
  1147. doesNotExceedSafeInteger$1(n + len);
  1148. for (k = 0; k < len; k++, n++) if (k in E) createProperty$1(A, n, E[k]);
  1149. } else {
  1150. doesNotExceedSafeInteger$1(n + 1);
  1151. createProperty$1(A, n++, E);
  1152. }
  1153. }
  1154. A.length = n;
  1155. return A;
  1156. }
  1157. });
  1158. var classofRaw = classofRaw$2;
  1159. var uncurryThis$b = functionUncurryThis;
  1160. var functionUncurryThisClause = function (fn) {
  1161. // Nashorn bug:
  1162. // https://github.com/zloirock/core-js/issues/1128
  1163. // https://github.com/zloirock/core-js/issues/1130
  1164. if (classofRaw(fn) === 'Function') return uncurryThis$b(fn);
  1165. };
  1166. var uncurryThis$a = functionUncurryThisClause;
  1167. var aCallable$1 = aCallable$3;
  1168. var NATIVE_BIND$1 = functionBindNative;
  1169. var bind$2 = uncurryThis$a(uncurryThis$a.bind);
  1170. // optional / simple context binding
  1171. var functionBindContext = function (fn, that) {
  1172. aCallable$1(fn);
  1173. return that === undefined ? fn : NATIVE_BIND$1 ? bind$2(fn, that) : function (/* ...args */) {
  1174. return fn.apply(that, arguments);
  1175. };
  1176. };
  1177. var bind$1 = functionBindContext;
  1178. var uncurryThis$9 = functionUncurryThis;
  1179. var IndexedObject$2 = indexedObject;
  1180. var toObject$4 = toObject$7;
  1181. var lengthOfArrayLike$4 = lengthOfArrayLike$7;
  1182. var arraySpeciesCreate$1 = arraySpeciesCreate$3;
  1183. var push$2 = uncurryThis$9([].push);
  1184. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  1185. var createMethod$1 = function (TYPE) {
  1186. var IS_MAP = TYPE === 1;
  1187. var IS_FILTER = TYPE === 2;
  1188. var IS_SOME = TYPE === 3;
  1189. var IS_EVERY = TYPE === 4;
  1190. var IS_FIND_INDEX = TYPE === 6;
  1191. var IS_FILTER_REJECT = TYPE === 7;
  1192. var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
  1193. return function ($this, callbackfn, that, specificCreate) {
  1194. var O = toObject$4($this);
  1195. var self = IndexedObject$2(O);
  1196. var length = lengthOfArrayLike$4(self);
  1197. var boundFunction = bind$1(callbackfn, that);
  1198. var index = 0;
  1199. var create = specificCreate || arraySpeciesCreate$1;
  1200. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  1201. var value, result;
  1202. for (;length > index; index++) if (NO_HOLES || index in self) {
  1203. value = self[index];
  1204. result = boundFunction(value, index, O);
  1205. if (TYPE) {
  1206. if (IS_MAP) target[index] = result; // map
  1207. else if (result) switch (TYPE) {
  1208. case 3: return true; // some
  1209. case 5: return value; // find
  1210. case 6: return index; // findIndex
  1211. case 2: push$2(target, value); // filter
  1212. } else switch (TYPE) {
  1213. case 4: return false; // every
  1214. case 7: push$2(target, value); // filterReject
  1215. }
  1216. }
  1217. }
  1218. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  1219. };
  1220. };
  1221. var arrayIteration = {
  1222. // `Array.prototype.forEach` method
  1223. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1224. forEach: createMethod$1(0),
  1225. // `Array.prototype.map` method
  1226. // https://tc39.es/ecma262/#sec-array.prototype.map
  1227. map: createMethod$1(1),
  1228. // `Array.prototype.filter` method
  1229. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1230. filter: createMethod$1(2),
  1231. // `Array.prototype.some` method
  1232. // https://tc39.es/ecma262/#sec-array.prototype.some
  1233. some: createMethod$1(3),
  1234. // `Array.prototype.every` method
  1235. // https://tc39.es/ecma262/#sec-array.prototype.every
  1236. every: createMethod$1(4),
  1237. // `Array.prototype.find` method
  1238. // https://tc39.es/ecma262/#sec-array.prototype.find
  1239. find: createMethod$1(5),
  1240. // `Array.prototype.findIndex` method
  1241. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  1242. findIndex: createMethod$1(6),
  1243. // `Array.prototype.filterReject` method
  1244. // https://github.com/tc39/proposal-array-filtering
  1245. filterReject: createMethod$1(7)
  1246. };
  1247. var $$a = _export;
  1248. var $filter = arrayIteration.filter;
  1249. var arrayMethodHasSpeciesSupport$2 = arrayMethodHasSpeciesSupport$4;
  1250. var HAS_SPECIES_SUPPORT$2 = arrayMethodHasSpeciesSupport$2('filter');
  1251. // `Array.prototype.filter` method
  1252. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1253. // with adding support of @@species
  1254. $$a({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, {
  1255. filter: function filter(callbackfn /* , thisArg */) {
  1256. return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1257. }
  1258. });
  1259. var objectDefineProperties = {};
  1260. var internalObjectKeys = objectKeysInternal;
  1261. var enumBugKeys$1 = enumBugKeys$3;
  1262. // `Object.keys` method
  1263. // https://tc39.es/ecma262/#sec-object.keys
  1264. // eslint-disable-next-line es/no-object-keys -- safe
  1265. var objectKeys$2 = Object.keys || function keys(O) {
  1266. return internalObjectKeys(O, enumBugKeys$1);
  1267. };
  1268. var DESCRIPTORS$1 = descriptors;
  1269. var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
  1270. var definePropertyModule = objectDefineProperty;
  1271. var anObject$4 = anObject$7;
  1272. var toIndexedObject$2 = toIndexedObject$6;
  1273. var objectKeys$1 = objectKeys$2;
  1274. // `Object.defineProperties` method
  1275. // https://tc39.es/ecma262/#sec-object.defineproperties
  1276. // eslint-disable-next-line es/no-object-defineproperties -- safe
  1277. objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
  1278. anObject$4(O);
  1279. var props = toIndexedObject$2(Properties);
  1280. var keys = objectKeys$1(Properties);
  1281. var length = keys.length;
  1282. var index = 0;
  1283. var key;
  1284. while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
  1285. return O;
  1286. };
  1287. var getBuiltIn = getBuiltIn$4;
  1288. var html$1 = getBuiltIn('document', 'documentElement');
  1289. /* global ActiveXObject -- old IE, WSH */
  1290. var anObject$3 = anObject$7;
  1291. var definePropertiesModule = objectDefineProperties;
  1292. var enumBugKeys = enumBugKeys$3;
  1293. var hiddenKeys = hiddenKeys$4;
  1294. var html = html$1;
  1295. var documentCreateElement = documentCreateElement$1;
  1296. var sharedKey = sharedKey$2;
  1297. var GT = '>';
  1298. var LT = '<';
  1299. var PROTOTYPE = 'prototype';
  1300. var SCRIPT = 'script';
  1301. var IE_PROTO = sharedKey('IE_PROTO');
  1302. var EmptyConstructor = function () { /* empty */ };
  1303. var scriptTag = function (content) {
  1304. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  1305. };
  1306. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  1307. var NullProtoObjectViaActiveX = function (activeXDocument) {
  1308. activeXDocument.write(scriptTag(''));
  1309. activeXDocument.close();
  1310. var temp = activeXDocument.parentWindow.Object;
  1311. activeXDocument = null; // avoid memory leak
  1312. return temp;
  1313. };
  1314. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  1315. var NullProtoObjectViaIFrame = function () {
  1316. // Thrash, waste and sodomy: IE GC bug
  1317. var iframe = documentCreateElement('iframe');
  1318. var JS = 'java' + SCRIPT + ':';
  1319. var iframeDocument;
  1320. iframe.style.display = 'none';
  1321. html.appendChild(iframe);
  1322. // https://github.com/zloirock/core-js/issues/475
  1323. iframe.src = String(JS);
  1324. iframeDocument = iframe.contentWindow.document;
  1325. iframeDocument.open();
  1326. iframeDocument.write(scriptTag('document.F=Object'));
  1327. iframeDocument.close();
  1328. return iframeDocument.F;
  1329. };
  1330. // Check for document.domain and active x support
  1331. // No need to use active x approach when document.domain is not set
  1332. // see https://github.com/es-shims/es5-shim/issues/150
  1333. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  1334. // avoid IE GC bug
  1335. var activeXDocument;
  1336. var NullProtoObject = function () {
  1337. try {
  1338. activeXDocument = new ActiveXObject('htmlfile');
  1339. } catch (error) { /* ignore */ }
  1340. NullProtoObject = typeof document != 'undefined'
  1341. ? document.domain && activeXDocument
  1342. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  1343. : NullProtoObjectViaIFrame()
  1344. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  1345. var length = enumBugKeys.length;
  1346. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  1347. return NullProtoObject();
  1348. };
  1349. hiddenKeys[IE_PROTO] = true;
  1350. // `Object.create` method
  1351. // https://tc39.es/ecma262/#sec-object.create
  1352. // eslint-disable-next-line es/no-object-create -- safe
  1353. var objectCreate = Object.create || function create(O, Properties) {
  1354. var result;
  1355. if (O !== null) {
  1356. EmptyConstructor[PROTOTYPE] = anObject$3(O);
  1357. result = new EmptyConstructor();
  1358. EmptyConstructor[PROTOTYPE] = null;
  1359. // add "__proto__" for Object.getPrototypeOf polyfill
  1360. result[IE_PROTO] = O;
  1361. } else result = NullProtoObject();
  1362. return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
  1363. };
  1364. var wellKnownSymbol$3 = wellKnownSymbol$a;
  1365. var create$1 = objectCreate;
  1366. var defineProperty$1 = objectDefineProperty.f;
  1367. var UNSCOPABLES = wellKnownSymbol$3('unscopables');
  1368. var ArrayPrototype = Array.prototype;
  1369. // Array.prototype[@@unscopables]
  1370. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1371. if (ArrayPrototype[UNSCOPABLES] === undefined) {
  1372. defineProperty$1(ArrayPrototype, UNSCOPABLES, {
  1373. configurable: true,
  1374. value: create$1(null)
  1375. });
  1376. }
  1377. // add a key to Array.prototype[@@unscopables]
  1378. var addToUnscopables$3 = function (key) {
  1379. ArrayPrototype[UNSCOPABLES][key] = true;
  1380. };
  1381. var $$9 = _export;
  1382. var $find = arrayIteration.find;
  1383. var addToUnscopables$2 = addToUnscopables$3;
  1384. var FIND = 'find';
  1385. var SKIPS_HOLES = true;
  1386. // Shouldn't skip holes
  1387. // eslint-disable-next-line es/no-array-prototype-find -- testing
  1388. if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
  1389. // `Array.prototype.find` method
  1390. // https://tc39.es/ecma262/#sec-array.prototype.find
  1391. $$9({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
  1392. find: function find(callbackfn /* , that = undefined */) {
  1393. return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1394. }
  1395. });
  1396. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1397. addToUnscopables$2(FIND);
  1398. var isArray$1 = isArray$4;
  1399. var lengthOfArrayLike$3 = lengthOfArrayLike$7;
  1400. var doesNotExceedSafeInteger = doesNotExceedSafeInteger$2;
  1401. var bind = functionBindContext;
  1402. // `FlattenIntoArray` abstract operation
  1403. // https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray
  1404. var flattenIntoArray$1 = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {
  1405. var targetIndex = start;
  1406. var sourceIndex = 0;
  1407. var mapFn = mapper ? bind(mapper, thisArg) : false;
  1408. var element, elementLen;
  1409. while (sourceIndex < sourceLen) {
  1410. if (sourceIndex in source) {
  1411. element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];
  1412. if (depth > 0 && isArray$1(element)) {
  1413. elementLen = lengthOfArrayLike$3(element);
  1414. targetIndex = flattenIntoArray$1(target, original, element, elementLen, targetIndex, depth - 1) - 1;
  1415. } else {
  1416. doesNotExceedSafeInteger(targetIndex + 1);
  1417. target[targetIndex] = element;
  1418. }
  1419. targetIndex++;
  1420. }
  1421. sourceIndex++;
  1422. }
  1423. return targetIndex;
  1424. };
  1425. var flattenIntoArray_1 = flattenIntoArray$1;
  1426. var $$8 = _export;
  1427. var flattenIntoArray = flattenIntoArray_1;
  1428. var toObject$3 = toObject$7;
  1429. var lengthOfArrayLike$2 = lengthOfArrayLike$7;
  1430. var toIntegerOrInfinity$2 = toIntegerOrInfinity$5;
  1431. var arraySpeciesCreate = arraySpeciesCreate$3;
  1432. // `Array.prototype.flat` method
  1433. // https://tc39.es/ecma262/#sec-array.prototype.flat
  1434. $$8({ target: 'Array', proto: true }, {
  1435. flat: function flat(/* depthArg = 1 */) {
  1436. var depthArg = arguments.length ? arguments[0] : undefined;
  1437. var O = toObject$3(this);
  1438. var sourceLen = lengthOfArrayLike$2(O);
  1439. var A = arraySpeciesCreate(O, 0);
  1440. A.length = flattenIntoArray(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toIntegerOrInfinity$2(depthArg));
  1441. return A;
  1442. }
  1443. });
  1444. var $$7 = _export;
  1445. var $includes = arrayIncludes.includes;
  1446. var fails$8 = fails$k;
  1447. var addToUnscopables$1 = addToUnscopables$3;
  1448. // FF99+ bug
  1449. var BROKEN_ON_SPARSE = fails$8(function () {
  1450. // eslint-disable-next-line es/no-array-prototype-includes -- detection
  1451. return !Array(1).includes();
  1452. });
  1453. // `Array.prototype.includes` method
  1454. // https://tc39.es/ecma262/#sec-array.prototype.includes
  1455. $$7({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
  1456. includes: function includes(el /* , fromIndex = 0 */) {
  1457. return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
  1458. }
  1459. });
  1460. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1461. addToUnscopables$1('includes');
  1462. var fails$7 = fails$k;
  1463. var arrayMethodIsStrict$3 = function (METHOD_NAME, argument) {
  1464. var method = [][METHOD_NAME];
  1465. return !!method && fails$7(function () {
  1466. // eslint-disable-next-line no-useless-call -- required for testing
  1467. method.call(null, argument || function () { return 1; }, 1);
  1468. });
  1469. };
  1470. /* eslint-disable es/no-array-prototype-indexof -- required for testing */
  1471. var $$6 = _export;
  1472. var uncurryThis$8 = functionUncurryThisClause;
  1473. var $indexOf = arrayIncludes.indexOf;
  1474. var arrayMethodIsStrict$2 = arrayMethodIsStrict$3;
  1475. var nativeIndexOf = uncurryThis$8([].indexOf);
  1476. var NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;
  1477. var FORCED$2 = NEGATIVE_ZERO || !arrayMethodIsStrict$2('indexOf');
  1478. // `Array.prototype.indexOf` method
  1479. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  1480. $$6({ target: 'Array', proto: true, forced: FORCED$2 }, {
  1481. indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
  1482. var fromIndex = arguments.length > 1 ? arguments[1] : undefined;
  1483. return NEGATIVE_ZERO
  1484. // convert -0 to +0
  1485. ? nativeIndexOf(this, searchElement, fromIndex) || 0
  1486. : $indexOf(this, searchElement, fromIndex);
  1487. }
  1488. });
  1489. var $$5 = _export;
  1490. var uncurryThis$7 = functionUncurryThis;
  1491. var IndexedObject$1 = indexedObject;
  1492. var toIndexedObject$1 = toIndexedObject$6;
  1493. var arrayMethodIsStrict$1 = arrayMethodIsStrict$3;
  1494. var nativeJoin = uncurryThis$7([].join);
  1495. var ES3_STRINGS = IndexedObject$1 !== Object;
  1496. var FORCED$1 = ES3_STRINGS || !arrayMethodIsStrict$1('join', ',');
  1497. // `Array.prototype.join` method
  1498. // https://tc39.es/ecma262/#sec-array.prototype.join
  1499. $$5({ target: 'Array', proto: true, forced: FORCED$1 }, {
  1500. join: function join(separator) {
  1501. return nativeJoin(toIndexedObject$1(this), separator === undefined ? ',' : separator);
  1502. }
  1503. });
  1504. var $$4 = _export;
  1505. var $map = arrayIteration.map;
  1506. var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$4;
  1507. var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$1('map');
  1508. // `Array.prototype.map` method
  1509. // https://tc39.es/ecma262/#sec-array.prototype.map
  1510. // with adding support of @@species
  1511. $$4({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
  1512. map: function map(callbackfn /* , thisArg */) {
  1513. return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1514. }
  1515. });
  1516. var uncurryThis$6 = functionUncurryThis;
  1517. var arraySlice$1 = uncurryThis$6([].slice);
  1518. var $$3 = _export;
  1519. var isArray = isArray$4;
  1520. var isConstructor = isConstructor$2;
  1521. var isObject = isObject$8;
  1522. var toAbsoluteIndex = toAbsoluteIndex$2;
  1523. var lengthOfArrayLike$1 = lengthOfArrayLike$7;
  1524. var toIndexedObject = toIndexedObject$6;
  1525. var createProperty = createProperty$2;
  1526. var wellKnownSymbol$2 = wellKnownSymbol$a;
  1527. var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$4;
  1528. var nativeSlice = arraySlice$1;
  1529. var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');
  1530. var SPECIES$1 = wellKnownSymbol$2('species');
  1531. var $Array = Array;
  1532. var max$1 = Math.max;
  1533. // `Array.prototype.slice` method
  1534. // https://tc39.es/ecma262/#sec-array.prototype.slice
  1535. // fallback for not array-like ES3 strings and DOM objects
  1536. $$3({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
  1537. slice: function slice(start, end) {
  1538. var O = toIndexedObject(this);
  1539. var length = lengthOfArrayLike$1(O);
  1540. var k = toAbsoluteIndex(start, length);
  1541. var fin = toAbsoluteIndex(end === undefined ? length : end, length);
  1542. // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
  1543. var Constructor, result, n;
  1544. if (isArray(O)) {
  1545. Constructor = O.constructor;
  1546. // cross-realm fallback
  1547. if (isConstructor(Constructor) && (Constructor === $Array || isArray(Constructor.prototype))) {
  1548. Constructor = undefined;
  1549. } else if (isObject(Constructor)) {
  1550. Constructor = Constructor[SPECIES$1];
  1551. if (Constructor === null) Constructor = undefined;
  1552. }
  1553. if (Constructor === $Array || Constructor === undefined) {
  1554. return nativeSlice(O, k, fin);
  1555. }
  1556. }
  1557. result = new (Constructor === undefined ? $Array : Constructor)(max$1(fin - k, 0));
  1558. for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
  1559. result.length = n;
  1560. return result;
  1561. }
  1562. });
  1563. var tryToString = tryToString$2;
  1564. var $TypeError$1 = TypeError;
  1565. var deletePropertyOrThrow$1 = function (O, P) {
  1566. if (!delete O[P]) throw new $TypeError$1('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
  1567. };
  1568. var classof$2 = classof$4;
  1569. var $String = String;
  1570. var toString$5 = function (argument) {
  1571. if (classof$2(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
  1572. return $String(argument);
  1573. };
  1574. var arraySlice = arraySlice$1;
  1575. var floor$1 = Math.floor;
  1576. var sort = function (array, comparefn) {
  1577. var length = array.length;
  1578. if (length < 8) {
  1579. // insertion sort
  1580. var i = 1;
  1581. var element, j;
  1582. while (i < length) {
  1583. j = i;
  1584. element = array[i];
  1585. while (j && comparefn(array[j - 1], element) > 0) {
  1586. array[j] = array[--j];
  1587. }
  1588. if (j !== i++) array[j] = element;
  1589. }
  1590. } else {
  1591. // merge sort
  1592. var middle = floor$1(length / 2);
  1593. var left = sort(arraySlice(array, 0, middle), comparefn);
  1594. var right = sort(arraySlice(array, middle), comparefn);
  1595. var llength = left.length;
  1596. var rlength = right.length;
  1597. var lindex = 0;
  1598. var rindex = 0;
  1599. while (lindex < llength || rindex < rlength) {
  1600. array[lindex + rindex] = (lindex < llength && rindex < rlength)
  1601. ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
  1602. : lindex < llength ? left[lindex++] : right[rindex++];
  1603. }
  1604. }
  1605. return array;
  1606. };
  1607. var arraySort = sort;
  1608. var userAgent$1 = engineUserAgent;
  1609. var firefox = userAgent$1.match(/firefox\/(\d+)/i);
  1610. var engineFfVersion = !!firefox && +firefox[1];
  1611. var UA = engineUserAgent;
  1612. var engineIsIeOrEdge = /MSIE|Trident/.test(UA);
  1613. var userAgent = engineUserAgent;
  1614. var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
  1615. var engineWebkitVersion = !!webkit && +webkit[1];
  1616. var $$2 = _export;
  1617. var uncurryThis$5 = functionUncurryThis;
  1618. var aCallable = aCallable$3;
  1619. var toObject$2 = toObject$7;
  1620. var lengthOfArrayLike = lengthOfArrayLike$7;
  1621. var deletePropertyOrThrow = deletePropertyOrThrow$1;
  1622. var toString$4 = toString$5;
  1623. var fails$6 = fails$k;
  1624. var internalSort = arraySort;
  1625. var arrayMethodIsStrict = arrayMethodIsStrict$3;
  1626. var FF = engineFfVersion;
  1627. var IE_OR_EDGE = engineIsIeOrEdge;
  1628. var V8 = engineV8Version;
  1629. var WEBKIT = engineWebkitVersion;
  1630. var test = [];
  1631. var nativeSort = uncurryThis$5(test.sort);
  1632. var push$1 = uncurryThis$5(test.push);
  1633. // IE8-
  1634. var FAILS_ON_UNDEFINED = fails$6(function () {
  1635. test.sort(undefined);
  1636. });
  1637. // V8 bug
  1638. var FAILS_ON_NULL = fails$6(function () {
  1639. test.sort(null);
  1640. });
  1641. // Old WebKit
  1642. var STRICT_METHOD = arrayMethodIsStrict('sort');
  1643. var STABLE_SORT = !fails$6(function () {
  1644. // feature detection can be too slow, so check engines versions
  1645. if (V8) return V8 < 70;
  1646. if (FF && FF > 3) return;
  1647. if (IE_OR_EDGE) return true;
  1648. if (WEBKIT) return WEBKIT < 603;
  1649. var result = '';
  1650. var code, chr, value, index;
  1651. // generate an array with more 512 elements (Chakra and old V8 fails only in this case)
  1652. for (code = 65; code < 76; code++) {
  1653. chr = String.fromCharCode(code);
  1654. switch (code) {
  1655. case 66: case 69: case 70: case 72: value = 3; break;
  1656. case 68: case 71: value = 4; break;
  1657. default: value = 2;
  1658. }
  1659. for (index = 0; index < 47; index++) {
  1660. test.push({ k: chr + index, v: value });
  1661. }
  1662. }
  1663. test.sort(function (a, b) { return b.v - a.v; });
  1664. for (index = 0; index < test.length; index++) {
  1665. chr = test[index].k.charAt(0);
  1666. if (result.charAt(result.length - 1) !== chr) result += chr;
  1667. }
  1668. return result !== 'DGBEFHACIJK';
  1669. });
  1670. var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
  1671. var getSortCompare = function (comparefn) {
  1672. return function (x, y) {
  1673. if (y === undefined) return -1;
  1674. if (x === undefined) return 1;
  1675. if (comparefn !== undefined) return +comparefn(x, y) || 0;
  1676. return toString$4(x) > toString$4(y) ? 1 : -1;
  1677. };
  1678. };
  1679. // `Array.prototype.sort` method
  1680. // https://tc39.es/ecma262/#sec-array.prototype.sort
  1681. $$2({ target: 'Array', proto: true, forced: FORCED }, {
  1682. sort: function sort(comparefn) {
  1683. if (comparefn !== undefined) aCallable(comparefn);
  1684. var array = toObject$2(this);
  1685. if (STABLE_SORT) return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn);
  1686. var items = [];
  1687. var arrayLength = lengthOfArrayLike(array);
  1688. var itemsLength, index;
  1689. for (index = 0; index < arrayLength; index++) {
  1690. if (index in array) push$1(items, array[index]);
  1691. }
  1692. internalSort(items, getSortCompare(comparefn));
  1693. itemsLength = lengthOfArrayLike(items);
  1694. index = 0;
  1695. while (index < itemsLength) array[index] = items[index++];
  1696. while (index < arrayLength) deletePropertyOrThrow(array, index++);
  1697. return array;
  1698. }
  1699. });
  1700. // this method was added to unscopables after implementation
  1701. // in popular engines, so it's moved to a separate module
  1702. var addToUnscopables = addToUnscopables$3;
  1703. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1704. addToUnscopables('flat');
  1705. var DESCRIPTORS = descriptors;
  1706. var uncurryThis$4 = functionUncurryThis;
  1707. var call$5 = functionCall;
  1708. var fails$5 = fails$k;
  1709. var objectKeys = objectKeys$2;
  1710. var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
  1711. var propertyIsEnumerableModule = objectPropertyIsEnumerable;
  1712. var toObject$1 = toObject$7;
  1713. var IndexedObject = indexedObject;
  1714. // eslint-disable-next-line es/no-object-assign -- safe
  1715. var $assign = Object.assign;
  1716. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  1717. var defineProperty = Object.defineProperty;
  1718. var concat$1 = uncurryThis$4([].concat);
  1719. // `Object.assign` method
  1720. // https://tc39.es/ecma262/#sec-object.assign
  1721. var objectAssign = !$assign || fails$5(function () {
  1722. // should have correct order of operations (Edge bug)
  1723. if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
  1724. enumerable: true,
  1725. get: function () {
  1726. defineProperty(this, 'b', {
  1727. value: 3,
  1728. enumerable: false
  1729. });
  1730. }
  1731. }), { b: 2 })).b !== 1) return true;
  1732. // should work with symbols and should have deterministic property order (V8 bug)
  1733. var A = {};
  1734. var B = {};
  1735. // eslint-disable-next-line es/no-symbol -- safe
  1736. var symbol = Symbol('assign detection');
  1737. var alphabet = 'abcdefghijklmnopqrst';
  1738. A[symbol] = 7;
  1739. alphabet.split('').forEach(function (chr) { B[chr] = chr; });
  1740. return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
  1741. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
  1742. var T = toObject$1(target);
  1743. var argumentsLength = arguments.length;
  1744. var index = 1;
  1745. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  1746. var propertyIsEnumerable = propertyIsEnumerableModule.f;
  1747. while (argumentsLength > index) {
  1748. var S = IndexedObject(arguments[index++]);
  1749. var keys = getOwnPropertySymbols ? concat$1(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
  1750. var length = keys.length;
  1751. var j = 0;
  1752. var key;
  1753. while (length > j) {
  1754. key = keys[j++];
  1755. if (!DESCRIPTORS || call$5(propertyIsEnumerable, S, key)) T[key] = S[key];
  1756. }
  1757. } return T;
  1758. } : $assign;
  1759. var $$1 = _export;
  1760. var assign = objectAssign;
  1761. // `Object.assign` method
  1762. // https://tc39.es/ecma262/#sec-object.assign
  1763. // eslint-disable-next-line es/no-object-assign -- required for testing
  1764. $$1({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
  1765. assign: assign
  1766. });
  1767. var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
  1768. var classof$1 = classof$4;
  1769. // `Object.prototype.toString` method implementation
  1770. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1771. var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
  1772. return '[object ' + classof$1(this) + ']';
  1773. };
  1774. var TO_STRING_TAG_SUPPORT = toStringTagSupport;
  1775. var defineBuiltIn$1 = defineBuiltIn$3;
  1776. var toString$3 = objectToString;
  1777. // `Object.prototype.toString` method
  1778. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1779. if (!TO_STRING_TAG_SUPPORT) {
  1780. defineBuiltIn$1(Object.prototype, 'toString', toString$3, { unsafe: true });
  1781. }
  1782. var anObject$2 = anObject$7;
  1783. // `RegExp.prototype.flags` getter implementation
  1784. // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
  1785. var regexpFlags$1 = function () {
  1786. var that = anObject$2(this);
  1787. var result = '';
  1788. if (that.hasIndices) result += 'd';
  1789. if (that.global) result += 'g';
  1790. if (that.ignoreCase) result += 'i';
  1791. if (that.multiline) result += 'm';
  1792. if (that.dotAll) result += 's';
  1793. if (that.unicode) result += 'u';
  1794. if (that.unicodeSets) result += 'v';
  1795. if (that.sticky) result += 'y';
  1796. return result;
  1797. };
  1798. var fails$4 = fails$k;
  1799. var global$3 = global$d;
  1800. // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
  1801. var $RegExp$2 = global$3.RegExp;
  1802. var UNSUPPORTED_Y$1 = fails$4(function () {
  1803. var re = $RegExp$2('a', 'y');
  1804. re.lastIndex = 2;
  1805. return re.exec('abcd') !== null;
  1806. });
  1807. // UC Browser bug
  1808. // https://github.com/zloirock/core-js/issues/1008
  1809. var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$4(function () {
  1810. return !$RegExp$2('a', 'y').sticky;
  1811. });
  1812. var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$4(function () {
  1813. // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
  1814. var re = $RegExp$2('^r', 'gy');
  1815. re.lastIndex = 2;
  1816. return re.exec('str') !== null;
  1817. });
  1818. var regexpStickyHelpers = {
  1819. BROKEN_CARET: BROKEN_CARET,
  1820. MISSED_STICKY: MISSED_STICKY,
  1821. UNSUPPORTED_Y: UNSUPPORTED_Y$1
  1822. };
  1823. var fails$3 = fails$k;
  1824. var global$2 = global$d;
  1825. // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
  1826. var $RegExp$1 = global$2.RegExp;
  1827. var regexpUnsupportedDotAll = fails$3(function () {
  1828. var re = $RegExp$1('.', 's');
  1829. return !(re.dotAll && re.test('\n') && re.flags === 's');
  1830. });
  1831. var fails$2 = fails$k;
  1832. var global$1 = global$d;
  1833. // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
  1834. var $RegExp = global$1.RegExp;
  1835. var regexpUnsupportedNcg = fails$2(function () {
  1836. var re = $RegExp('(?<a>b)', 'g');
  1837. return re.exec('b').groups.a !== 'b' ||
  1838. 'b'.replace(re, '$<a>c') !== 'bc';
  1839. });
  1840. /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
  1841. /* eslint-disable regexp/no-useless-quantifier -- testing */
  1842. var call$4 = functionCall;
  1843. var uncurryThis$3 = functionUncurryThis;
  1844. var toString$2 = toString$5;
  1845. var regexpFlags = regexpFlags$1;
  1846. var stickyHelpers = regexpStickyHelpers;
  1847. var shared = shared$4;
  1848. var create = objectCreate;
  1849. var getInternalState = internalState.get;
  1850. var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
  1851. var UNSUPPORTED_NCG = regexpUnsupportedNcg;
  1852. var nativeReplace = shared('native-string-replace', String.prototype.replace);
  1853. var nativeExec = RegExp.prototype.exec;
  1854. var patchedExec = nativeExec;
  1855. var charAt$3 = uncurryThis$3(''.charAt);
  1856. var indexOf = uncurryThis$3(''.indexOf);
  1857. var replace$1 = uncurryThis$3(''.replace);
  1858. var stringSlice$3 = uncurryThis$3(''.slice);
  1859. var UPDATES_LAST_INDEX_WRONG = (function () {
  1860. var re1 = /a/;
  1861. var re2 = /b*/g;
  1862. call$4(nativeExec, re1, 'a');
  1863. call$4(nativeExec, re2, 'a');
  1864. return re1.lastIndex !== 0 || re2.lastIndex !== 0;
  1865. })();
  1866. var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
  1867. // nonparticipating capturing group, copied from es5-shim's String#split patch.
  1868. var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
  1869. var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
  1870. if (PATCH) {
  1871. patchedExec = function exec(string) {
  1872. var re = this;
  1873. var state = getInternalState(re);
  1874. var str = toString$2(string);
  1875. var raw = state.raw;
  1876. var result, reCopy, lastIndex, match, i, object, group;
  1877. if (raw) {
  1878. raw.lastIndex = re.lastIndex;
  1879. result = call$4(patchedExec, raw, str);
  1880. re.lastIndex = raw.lastIndex;
  1881. return result;
  1882. }
  1883. var groups = state.groups;
  1884. var sticky = UNSUPPORTED_Y && re.sticky;
  1885. var flags = call$4(regexpFlags, re);
  1886. var source = re.source;
  1887. var charsAdded = 0;
  1888. var strCopy = str;
  1889. if (sticky) {
  1890. flags = replace$1(flags, 'y', '');
  1891. if (indexOf(flags, 'g') === -1) {
  1892. flags += 'g';
  1893. }
  1894. strCopy = stringSlice$3(str, re.lastIndex);
  1895. // Support anchored sticky behavior.
  1896. if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
  1897. source = '(?: ' + source + ')';
  1898. strCopy = ' ' + strCopy;
  1899. charsAdded++;
  1900. }
  1901. // ^(? + rx + ) is needed, in combination with some str slicing, to
  1902. // simulate the 'y' flag.
  1903. reCopy = new RegExp('^(?:' + source + ')', flags);
  1904. }
  1905. if (NPCG_INCLUDED) {
  1906. reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
  1907. }
  1908. if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
  1909. match = call$4(nativeExec, sticky ? reCopy : re, strCopy);
  1910. if (sticky) {
  1911. if (match) {
  1912. match.input = stringSlice$3(match.input, charsAdded);
  1913. match[0] = stringSlice$3(match[0], charsAdded);
  1914. match.index = re.lastIndex;
  1915. re.lastIndex += match[0].length;
  1916. } else re.lastIndex = 0;
  1917. } else if (UPDATES_LAST_INDEX_WRONG && match) {
  1918. re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
  1919. }
  1920. if (NPCG_INCLUDED && match && match.length > 1) {
  1921. // Fix browsers whose `exec` methods don't consistently return `undefined`
  1922. // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
  1923. call$4(nativeReplace, match[0], reCopy, function () {
  1924. for (i = 1; i < arguments.length - 2; i++) {
  1925. if (arguments[i] === undefined) match[i] = undefined;
  1926. }
  1927. });
  1928. }
  1929. if (match && groups) {
  1930. match.groups = object = create(null);
  1931. for (i = 0; i < groups.length; i++) {
  1932. group = groups[i];
  1933. object[group[0]] = match[group[1]];
  1934. }
  1935. }
  1936. return match;
  1937. };
  1938. }
  1939. var regexpExec$2 = patchedExec;
  1940. var $ = _export;
  1941. var exec = regexpExec$2;
  1942. // `RegExp.prototype.exec` method
  1943. // https://tc39.es/ecma262/#sec-regexp.prototype.exec
  1944. $({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
  1945. exec: exec
  1946. });
  1947. var NATIVE_BIND = functionBindNative;
  1948. var FunctionPrototype = Function.prototype;
  1949. var apply$1 = FunctionPrototype.apply;
  1950. var call$3 = FunctionPrototype.call;
  1951. // eslint-disable-next-line es/no-reflect -- safe
  1952. var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$3.bind(apply$1) : function () {
  1953. return call$3.apply(apply$1, arguments);
  1954. });
  1955. // TODO: Remove from `core-js@4` since it's moved to entry points
  1956. var call$2 = functionCall;
  1957. var defineBuiltIn = defineBuiltIn$3;
  1958. var regexpExec$1 = regexpExec$2;
  1959. var fails$1 = fails$k;
  1960. var wellKnownSymbol$1 = wellKnownSymbol$a;
  1961. var createNonEnumerableProperty = createNonEnumerableProperty$3;
  1962. var SPECIES = wellKnownSymbol$1('species');
  1963. var RegExpPrototype = RegExp.prototype;
  1964. var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
  1965. var SYMBOL = wellKnownSymbol$1(KEY);
  1966. var DELEGATES_TO_SYMBOL = !fails$1(function () {
  1967. // String methods call symbol-named RegExp methods
  1968. var O = {};
  1969. O[SYMBOL] = function () { return 7; };
  1970. return ''[KEY](O) !== 7;
  1971. });
  1972. var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
  1973. // Symbol-named RegExp methods call .exec
  1974. var execCalled = false;
  1975. var re = /a/;
  1976. if (KEY === 'split') {
  1977. // We can't use real regex here since it causes deoptimization
  1978. // and serious performance degradation in V8
  1979. // https://github.com/zloirock/core-js/issues/306
  1980. re = {};
  1981. // RegExp[@@split] doesn't call the regex's exec method, but first creates
  1982. // a new one. We need to return the patched regex when creating the new one.
  1983. re.constructor = {};
  1984. re.constructor[SPECIES] = function () { return re; };
  1985. re.flags = '';
  1986. re[SYMBOL] = /./[SYMBOL];
  1987. }
  1988. re.exec = function () {
  1989. execCalled = true;
  1990. return null;
  1991. };
  1992. re[SYMBOL]('');
  1993. return !execCalled;
  1994. });
  1995. if (
  1996. !DELEGATES_TO_SYMBOL ||
  1997. !DELEGATES_TO_EXEC ||
  1998. FORCED
  1999. ) {
  2000. var nativeRegExpMethod = /./[SYMBOL];
  2001. var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
  2002. var $exec = regexp.exec;
  2003. if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
  2004. if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
  2005. // The native String method already delegates to @@method (this
  2006. // polyfilled function), leasing to infinite recursion.
  2007. // We avoid it by directly calling the native @@method method.
  2008. return { done: true, value: call$2(nativeRegExpMethod, regexp, str, arg2) };
  2009. }
  2010. return { done: true, value: call$2(nativeMethod, str, regexp, arg2) };
  2011. }
  2012. return { done: false };
  2013. });
  2014. defineBuiltIn(String.prototype, KEY, methods[0]);
  2015. defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
  2016. }
  2017. if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
  2018. };
  2019. var uncurryThis$2 = functionUncurryThis;
  2020. var toIntegerOrInfinity$1 = toIntegerOrInfinity$5;
  2021. var toString$1 = toString$5;
  2022. var requireObjectCoercible$1 = requireObjectCoercible$4;
  2023. var charAt$2 = uncurryThis$2(''.charAt);
  2024. var charCodeAt = uncurryThis$2(''.charCodeAt);
  2025. var stringSlice$2 = uncurryThis$2(''.slice);
  2026. var createMethod = function (CONVERT_TO_STRING) {
  2027. return function ($this, pos) {
  2028. var S = toString$1(requireObjectCoercible$1($this));
  2029. var position = toIntegerOrInfinity$1(pos);
  2030. var size = S.length;
  2031. var first, second;
  2032. if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
  2033. first = charCodeAt(S, position);
  2034. return first < 0xD800 || first > 0xDBFF || position + 1 === size
  2035. || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
  2036. ? CONVERT_TO_STRING
  2037. ? charAt$2(S, position)
  2038. : first
  2039. : CONVERT_TO_STRING
  2040. ? stringSlice$2(S, position, position + 2)
  2041. : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
  2042. };
  2043. };
  2044. var stringMultibyte = {
  2045. // `String.prototype.codePointAt` method
  2046. // https://tc39.es/ecma262/#sec-string.prototype.codepointat
  2047. codeAt: createMethod(false),
  2048. // `String.prototype.at` method
  2049. // https://github.com/mathiasbynens/String.prototype.at
  2050. charAt: createMethod(true)
  2051. };
  2052. var charAt$1 = stringMultibyte.charAt;
  2053. // `AdvanceStringIndex` abstract operation
  2054. // https://tc39.es/ecma262/#sec-advancestringindex
  2055. var advanceStringIndex$1 = function (S, index, unicode) {
  2056. return index + (unicode ? charAt$1(S, index).length : 1);
  2057. };
  2058. var uncurryThis$1 = functionUncurryThis;
  2059. var toObject = toObject$7;
  2060. var floor = Math.floor;
  2061. var charAt = uncurryThis$1(''.charAt);
  2062. var replace = uncurryThis$1(''.replace);
  2063. var stringSlice$1 = uncurryThis$1(''.slice);
  2064. // eslint-disable-next-line redos/no-vulnerable -- safe
  2065. var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
  2066. var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
  2067. // `GetSubstitution` abstract operation
  2068. // https://tc39.es/ecma262/#sec-getsubstitution
  2069. var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
  2070. var tailPos = position + matched.length;
  2071. var m = captures.length;
  2072. var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
  2073. if (namedCaptures !== undefined) {
  2074. namedCaptures = toObject(namedCaptures);
  2075. symbols = SUBSTITUTION_SYMBOLS;
  2076. }
  2077. return replace(replacement, symbols, function (match, ch) {
  2078. var capture;
  2079. switch (charAt(ch, 0)) {
  2080. case '$': return '$';
  2081. case '&': return matched;
  2082. case '`': return stringSlice$1(str, 0, position);
  2083. case "'": return stringSlice$1(str, tailPos);
  2084. case '<':
  2085. capture = namedCaptures[stringSlice$1(ch, 1, -1)];
  2086. break;
  2087. default: // \d\d?
  2088. var n = +ch;
  2089. if (n === 0) return match;
  2090. if (n > m) {
  2091. var f = floor(n / 10);
  2092. if (f === 0) return match;
  2093. if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
  2094. return match;
  2095. }
  2096. capture = captures[n - 1];
  2097. }
  2098. return capture === undefined ? '' : capture;
  2099. });
  2100. };
  2101. var call$1 = functionCall;
  2102. var anObject$1 = anObject$7;
  2103. var isCallable$1 = isCallable$e;
  2104. var classof = classofRaw$2;
  2105. var regexpExec = regexpExec$2;
  2106. var $TypeError = TypeError;
  2107. // `RegExpExec` abstract operation
  2108. // https://tc39.es/ecma262/#sec-regexpexec
  2109. var regexpExecAbstract = function (R, S) {
  2110. var exec = R.exec;
  2111. if (isCallable$1(exec)) {
  2112. var result = call$1(exec, R, S);
  2113. if (result !== null) anObject$1(result);
  2114. return result;
  2115. }
  2116. if (classof(R) === 'RegExp') return call$1(regexpExec, R, S);
  2117. throw new $TypeError('RegExp#exec called on incompatible receiver');
  2118. };
  2119. var apply = functionApply;
  2120. var call = functionCall;
  2121. var uncurryThis = functionUncurryThis;
  2122. var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
  2123. var fails = fails$k;
  2124. var anObject = anObject$7;
  2125. var isCallable = isCallable$e;
  2126. var isNullOrUndefined = isNullOrUndefined$3;
  2127. var toIntegerOrInfinity = toIntegerOrInfinity$5;
  2128. var toLength = toLength$2;
  2129. var toString = toString$5;
  2130. var requireObjectCoercible = requireObjectCoercible$4;
  2131. var advanceStringIndex = advanceStringIndex$1;
  2132. var getMethod = getMethod$2;
  2133. var getSubstitution = getSubstitution$1;
  2134. var regExpExec = regexpExecAbstract;
  2135. var wellKnownSymbol = wellKnownSymbol$a;
  2136. var REPLACE = wellKnownSymbol('replace');
  2137. var max = Math.max;
  2138. var min = Math.min;
  2139. var concat = uncurryThis([].concat);
  2140. var push = uncurryThis([].push);
  2141. var stringIndexOf = uncurryThis(''.indexOf);
  2142. var stringSlice = uncurryThis(''.slice);
  2143. var maybeToString = function (it) {
  2144. return it === undefined ? it : String(it);
  2145. };
  2146. // IE <= 11 replaces $0 with the whole match, as if it was $&
  2147. // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
  2148. var REPLACE_KEEPS_$0 = (function () {
  2149. // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
  2150. return 'a'.replace(/./, '$0') === '$0';
  2151. })();
  2152. // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
  2153. var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
  2154. if (/./[REPLACE]) {
  2155. return /./[REPLACE]('a', '$0') === '';
  2156. }
  2157. return false;
  2158. })();
  2159. var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
  2160. var re = /./;
  2161. re.exec = function () {
  2162. var result = [];
  2163. result.groups = { a: '7' };
  2164. return result;
  2165. };
  2166. // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
  2167. return ''.replace(re, '$<a>') !== '7';
  2168. });
  2169. // @@replace logic
  2170. fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
  2171. var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
  2172. return [
  2173. // `String.prototype.replace` method
  2174. // https://tc39.es/ecma262/#sec-string.prototype.replace
  2175. function replace(searchValue, replaceValue) {
  2176. var O = requireObjectCoercible(this);
  2177. var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
  2178. return replacer
  2179. ? call(replacer, searchValue, O, replaceValue)
  2180. : call(nativeReplace, toString(O), searchValue, replaceValue);
  2181. },
  2182. // `RegExp.prototype[@@replace]` method
  2183. // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
  2184. function (string, replaceValue) {
  2185. var rx = anObject(this);
  2186. var S = toString(string);
  2187. if (
  2188. typeof replaceValue == 'string' &&
  2189. stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
  2190. stringIndexOf(replaceValue, '$<') === -1
  2191. ) {
  2192. var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
  2193. if (res.done) return res.value;
  2194. }
  2195. var functionalReplace = isCallable(replaceValue);
  2196. if (!functionalReplace) replaceValue = toString(replaceValue);
  2197. var global = rx.global;
  2198. var fullUnicode;
  2199. if (global) {
  2200. fullUnicode = rx.unicode;
  2201. rx.lastIndex = 0;
  2202. }
  2203. var results = [];
  2204. var result;
  2205. while (true) {
  2206. result = regExpExec(rx, S);
  2207. if (result === null) break;
  2208. push(results, result);
  2209. if (!global) break;
  2210. var matchStr = toString(result[0]);
  2211. if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
  2212. }
  2213. var accumulatedResult = '';
  2214. var nextSourcePosition = 0;
  2215. for (var i = 0; i < results.length; i++) {
  2216. result = results[i];
  2217. var matched = toString(result[0]);
  2218. var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
  2219. var captures = [];
  2220. var replacement;
  2221. // NOTE: This is equivalent to
  2222. // captures = result.slice(1).map(maybeToString)
  2223. // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
  2224. // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
  2225. // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
  2226. for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
  2227. var namedCaptures = result.groups;
  2228. if (functionalReplace) {
  2229. var replacerArgs = concat([matched], captures, position, S);
  2230. if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
  2231. replacement = toString(apply(replaceValue, undefined, replacerArgs));
  2232. } else {
  2233. replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
  2234. }
  2235. if (position >= nextSourcePosition) {
  2236. accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
  2237. nextSourcePosition = position + matched.length;
  2238. }
  2239. }
  2240. return accumulatedResult + stringSlice(S, nextSourcePosition);
  2241. }
  2242. ];
  2243. }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
  2244. /**
  2245. * @update zhixin wen <wenzhixin2010@gmail.com>
  2246. */
  2247. var Utils = $$c.fn.bootstrapTable.utils;
  2248. function printPageBuilderDefault(table, styles) {
  2249. return "\n <html>\n <head>\n ".concat(styles, "\n <style type=\"text/css\" media=\"print\">\n @page {\n size: auto;\n margin: 25px 0 25px 0;\n }\n </style>\n <style type=\"text/css\" media=\"all\">\n table {\n border-collapse: collapse;\n font-size: 12px;\n }\n table, th, td {\n border: 1px solid grey;\n }\n th, td {\n text-align: center;\n vertical-align: middle;\n }\n p {\n font-weight: bold;\n margin-left:20px;\n }\n table {\n width: 94%;\n margin-left: 3%;\n margin-right: 3%;\n }\n div.bs-table-print {\n text-align: center;\n }\n </style>\n </head>\n <title>Print Table</title>\n <body>\n <p>Printed on: ").concat(new Date(), " </p>\n <div class=\"bs-table-print\">").concat(table, "</div>\n </body>\n </html>\n ");
  2250. }
  2251. Object.assign($$c.fn.bootstrapTable.locales, {
  2252. formatPrint: function formatPrint() {
  2253. return 'Print';
  2254. }
  2255. });
  2256. Object.assign($$c.fn.bootstrapTable.defaults, $$c.fn.bootstrapTable.locales);
  2257. Object.assign($$c.fn.bootstrapTable.defaults, {
  2258. showPrint: false,
  2259. printAsFilteredAndSortedOnUI: true,
  2260. printSortColumn: undefined,
  2261. printSortOrder: 'asc',
  2262. printStyles: [],
  2263. printPageBuilder: function printPageBuilder(table, styles) {
  2264. return printPageBuilderDefault(table, styles);
  2265. }
  2266. });
  2267. Object.assign($$c.fn.bootstrapTable.columnDefaults, {
  2268. printFilter: undefined,
  2269. printIgnore: false,
  2270. printFormatter: undefined
  2271. });
  2272. Object.assign($$c.fn.bootstrapTable.defaults.icons, {
  2273. print: {
  2274. bootstrap3: 'glyphicon-print icon-share',
  2275. bootstrap5: 'bi-printer',
  2276. 'bootstrap-table': 'icon-printer'
  2277. }[$$c.fn.bootstrapTable.theme] || 'fa-print'
  2278. });
  2279. $$c.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  2280. function _class() {
  2281. _classCallCheck(this, _class);
  2282. return _callSuper(this, _class, arguments);
  2283. }
  2284. _inherits(_class, _$$BootstrapTable);
  2285. return _createClass(_class, [{
  2286. key: "init",
  2287. value: function init() {
  2288. var _get2;
  2289. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  2290. args[_key] = arguments[_key];
  2291. }
  2292. (_get2 = _get(_getPrototypeOf(_class.prototype), "init", this)).call.apply(_get2, [this].concat(args));
  2293. if (!this.options.showPrint) {
  2294. return;
  2295. }
  2296. this.mergedCells = [];
  2297. }
  2298. }, {
  2299. key: "initToolbar",
  2300. value: function initToolbar() {
  2301. var _this = this,
  2302. _get3;
  2303. this.showToolbar = this.showToolbar || this.options.showPrint;
  2304. if (this.options.showPrint) {
  2305. this.buttons = Object.assign(this.buttons, {
  2306. print: {
  2307. text: this.options.formatPrint(),
  2308. icon: this.options.icons.print,
  2309. event: function event() {
  2310. _this.doPrint(_this.options.printAsFilteredAndSortedOnUI ? _this.getData() : _this.options.data.slice(0));
  2311. },
  2312. attributes: {
  2313. 'aria-label': this.options.formatPrint(),
  2314. title: this.options.formatPrint()
  2315. }
  2316. }
  2317. });
  2318. }
  2319. for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  2320. args[_key2] = arguments[_key2];
  2321. }
  2322. (_get3 = _get(_getPrototypeOf(_class.prototype), "initToolbar", this)).call.apply(_get3, [this].concat(args));
  2323. }
  2324. }, {
  2325. key: "mergeCells",
  2326. value: function mergeCells(options) {
  2327. _get(_getPrototypeOf(_class.prototype), "mergeCells", this).call(this, options);
  2328. if (!this.options.showPrint) {
  2329. return;
  2330. }
  2331. var col = this.getVisibleFields().indexOf(options.field);
  2332. if (Utils.hasDetailViewIcon(this.options)) {
  2333. col += 1;
  2334. }
  2335. this.mergedCells.push({
  2336. row: options.index,
  2337. col: col,
  2338. rowspan: options.rowspan || 1,
  2339. colspan: options.colspan || 1
  2340. });
  2341. }
  2342. }, {
  2343. key: "doPrint",
  2344. value: function doPrint(data) {
  2345. var _this2 = this;
  2346. var canPrint = function canPrint(column) {
  2347. return !column.printIgnore && column.visible;
  2348. };
  2349. var formatValue = function formatValue(row, i, column) {
  2350. var value_ = Utils.getItemField(row, column.field, _this2.options.escape, column.escape);
  2351. var value = Utils.calculateObjectValue(column, column.printFormatter || column.formatter, [value_, row, i], value_);
  2352. return typeof value === 'undefined' || value === null ? _this2.options.undefinedText : value;
  2353. };
  2354. var buildTable = function buildTable(data, columnsArray) {
  2355. var dir = _this2.$el.attr('dir') || 'ltr';
  2356. var html = ["<table dir=\"".concat(dir, "\"><thead>")];
  2357. var _iterator = _createForOfIteratorHelper(columnsArray),
  2358. _step;
  2359. try {
  2360. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  2361. var _columns2 = _step.value;
  2362. html.push('<tr>');
  2363. for (var _h = 0; _h < _columns2.length; _h++) {
  2364. if (canPrint(_columns2[_h])) {
  2365. html.push("<th\n ".concat(Utils.sprintf(' rowspan="%s"', _columns2[_h].rowspan), "\n ").concat(Utils.sprintf(' colspan="%s"', _columns2[_h].colspan), "\n >").concat(_columns2[_h].title, "</th>"));
  2366. }
  2367. }
  2368. html.push('</tr>');
  2369. }
  2370. } catch (err) {
  2371. _iterator.e(err);
  2372. } finally {
  2373. _iterator.f();
  2374. }
  2375. html.push('</thead><tbody>');
  2376. var notRender = [];
  2377. if (_this2.mergedCells) {
  2378. for (var mc = 0; mc < _this2.mergedCells.length; mc++) {
  2379. var currentMergedCell = _this2.mergedCells[mc];
  2380. for (var rs = 0; rs < currentMergedCell.rowspan; rs++) {
  2381. var row = currentMergedCell.row + rs;
  2382. for (var cs = 0; cs < currentMergedCell.colspan; cs++) {
  2383. var col = currentMergedCell.col + cs;
  2384. notRender.push("".concat(row, ",").concat(col));
  2385. }
  2386. }
  2387. }
  2388. }
  2389. for (var i = 0; i < data.length; i++) {
  2390. html.push('<tr>');
  2391. var columns = columnsArray.flat(1);
  2392. columns.sort(function (c1, c2) {
  2393. return c1.colspanIndex - c2.colspanIndex;
  2394. });
  2395. for (var j = 0; j < columns.length; j++) {
  2396. if (columns[j].colspanGroup > 0) continue;
  2397. var rowspan = 0;
  2398. var colspan = 0;
  2399. if (_this2.mergedCells) {
  2400. for (var _mc = 0; _mc < _this2.mergedCells.length; _mc++) {
  2401. var _currentMergedCell = _this2.mergedCells[_mc];
  2402. if (_currentMergedCell.col === j && _currentMergedCell.row === i) {
  2403. rowspan = _currentMergedCell.rowspan;
  2404. colspan = _currentMergedCell.colspan;
  2405. }
  2406. }
  2407. }
  2408. if (canPrint(columns[j]) && (!notRender.includes("".concat(i, ",").concat(j)) || rowspan > 0 && colspan > 0)) {
  2409. if (rowspan > 0 && colspan > 0) {
  2410. html.push("<td ".concat(Utils.sprintf(' rowspan="%s"', rowspan), " ").concat(Utils.sprintf(' colspan="%s"', colspan), ">"), formatValue(data[i], i, columns[j]), '</td>');
  2411. } else {
  2412. html.push('<td>', formatValue(data[i], i, columns[j]), '</td>');
  2413. }
  2414. }
  2415. }
  2416. html.push('</tr>');
  2417. }
  2418. html.push('</tbody>');
  2419. if (_this2.options.showFooter) {
  2420. html.push('<footer><tr>');
  2421. var _iterator2 = _createForOfIteratorHelper(columnsArray),
  2422. _step2;
  2423. try {
  2424. for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
  2425. var _columns = _step2.value;
  2426. for (var h = 0; h < _columns.length; h++) {
  2427. if (canPrint(_columns)) {
  2428. var footerData = Utils.trToData(_columns, _this2.$el.find('>tfoot>tr'));
  2429. var footerValue = Utils.calculateObjectValue(_columns[h], _columns[h].footerFormatter, [data], footerData[0] && footerData[0][_columns[h].field] || '');
  2430. html.push("<th>".concat(footerValue, "</th>"));
  2431. }
  2432. }
  2433. }
  2434. } catch (err) {
  2435. _iterator2.e(err);
  2436. } finally {
  2437. _iterator2.f();
  2438. }
  2439. html.push('</tr></footer>');
  2440. }
  2441. html.push('</table>');
  2442. return html.join('');
  2443. };
  2444. var sortRows = function sortRows(data, colName, sortOrder) {
  2445. if (!colName) {
  2446. return data;
  2447. }
  2448. var reverse = sortOrder !== 'asc';
  2449. reverse = -(+reverse || -1);
  2450. return data.sort(function (a, b) {
  2451. return reverse * a[colName].localeCompare(b[colName]);
  2452. });
  2453. };
  2454. var filterRow = function filterRow(row, filters) {
  2455. for (var index = 0; index < filters.length; ++index) {
  2456. if (row[filters[index].colName] !== filters[index].value) {
  2457. return false;
  2458. }
  2459. }
  2460. return true;
  2461. };
  2462. var filterRows = function filterRows(data, filters) {
  2463. return data.filter(function (row) {
  2464. return filterRow(row, filters);
  2465. });
  2466. };
  2467. var getColumnFilters = function getColumnFilters(columns) {
  2468. return !columns || !columns[0] ? [] : columns[0].filter(function (col) {
  2469. return col.printFilter;
  2470. }).map(function (col) {
  2471. return {
  2472. colName: col.field,
  2473. value: col.printFilter
  2474. };
  2475. });
  2476. };
  2477. data = filterRows(data, getColumnFilters(this.options.columns));
  2478. data = sortRows(data, this.options.printSortColumn, this.options.printSortOrder);
  2479. var table = buildTable(data, this.options.columns);
  2480. var newWin = window.open('');
  2481. var printStyles = typeof this.options.printStyles === 'string' ? this.options.printStyles.replace(/\[|\]| /g, '').toLowerCase().split(',') : this.options.printStyles;
  2482. var styles = printStyles.map(function (it) {
  2483. return "<link rel=\"stylesheet\" href=\"".concat(it, "\" />");
  2484. }).join('');
  2485. var calculatedPrintPage = Utils.calculateObjectValue(this, this.options.printPageBuilder, [table, styles], printPageBuilderDefault(table, styles));
  2486. var startPrint = function startPrint() {
  2487. newWin.focus();
  2488. newWin.print();
  2489. newWin.close();
  2490. };
  2491. newWin.document.write(calculatedPrintPage);
  2492. newWin.document.close();
  2493. if (printStyles.length) {
  2494. var links = document.getElementsByTagName('link');
  2495. var lastLink = links[links.length - 1];
  2496. lastLink.onload = startPrint;
  2497. } else {
  2498. startPrint();
  2499. }
  2500. }
  2501. }]);
  2502. }($$c.BootstrapTable);
  2503. }));