| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048 |
- (function (global, factory) {
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
- typeof define === 'function' && define.amd ? define(['jquery'], factory) :
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
- })(this, (function ($$7) { 'use strict';
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
- var $__default = /*#__PURE__*/_interopDefaultLegacy($$7);
- function _classCallCheck(instance, Constructor) {
- if (!(instance instanceof Constructor)) {
- throw new TypeError("Cannot call a class as a function");
- }
- }
- function _defineProperties(target, props) {
- for (var i = 0; i < props.length; i++) {
- var descriptor = props[i];
- descriptor.enumerable = descriptor.enumerable || false;
- descriptor.configurable = true;
- if ("value" in descriptor) descriptor.writable = true;
- Object.defineProperty(target, descriptor.key, descriptor);
- }
- }
- function _createClass(Constructor, protoProps, staticProps) {
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
- if (staticProps) _defineProperties(Constructor, staticProps);
- Object.defineProperty(Constructor, "prototype", {
- writable: false
- });
- return Constructor;
- }
- function _defineProperty(obj, key, value) {
- if (key in obj) {
- Object.defineProperty(obj, key, {
- value: value,
- enumerable: true,
- configurable: true,
- writable: true
- });
- } else {
- obj[key] = value;
- }
- return obj;
- }
- function _inherits(subClass, superClass) {
- if (typeof superClass !== "function" && superClass !== null) {
- throw new TypeError("Super expression must either be null or a function");
- }
- subClass.prototype = Object.create(superClass && superClass.prototype, {
- constructor: {
- value: subClass,
- writable: true,
- configurable: true
- }
- });
- Object.defineProperty(subClass, "prototype", {
- writable: false
- });
- if (superClass) _setPrototypeOf(subClass, superClass);
- }
- function _getPrototypeOf(o) {
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
- return o.__proto__ || Object.getPrototypeOf(o);
- };
- return _getPrototypeOf(o);
- }
- function _setPrototypeOf(o, p) {
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
- o.__proto__ = p;
- return o;
- };
- return _setPrototypeOf(o, p);
- }
- function _isNativeReflectConstruct() {
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
- if (Reflect.construct.sham) return false;
- if (typeof Proxy === "function") return true;
- try {
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
- return true;
- } catch (e) {
- return false;
- }
- }
- function _assertThisInitialized(self) {
- if (self === void 0) {
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- }
- return self;
- }
- function _possibleConstructorReturn(self, call) {
- if (call && (typeof call === "object" || typeof call === "function")) {
- return call;
- } else if (call !== void 0) {
- throw new TypeError("Derived constructors may only return object or undefined");
- }
- return _assertThisInitialized(self);
- }
- function _createSuper(Derived) {
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
- return function _createSuperInternal() {
- var Super = _getPrototypeOf(Derived),
- result;
- if (hasNativeReflectConstruct) {
- var NewTarget = _getPrototypeOf(this).constructor;
- result = Reflect.construct(Super, arguments, NewTarget);
- } else {
- result = Super.apply(this, arguments);
- }
- return _possibleConstructorReturn(this, result);
- };
- }
- function _superPropBase(object, property) {
- while (!Object.prototype.hasOwnProperty.call(object, property)) {
- object = _getPrototypeOf(object);
- if (object === null) break;
- }
- return object;
- }
- function _get() {
- if (typeof Reflect !== "undefined" && Reflect.get) {
- _get = Reflect.get;
- } else {
- _get = function _get(target, property, receiver) {
- var base = _superPropBase(target, property);
- if (!base) return;
- var desc = Object.getOwnPropertyDescriptor(base, property);
- if (desc.get) {
- return desc.get.call(arguments.length < 3 ? target : receiver);
- }
- return desc.value;
- };
- }
- return _get.apply(this, arguments);
- }
- function _unsupportedIterableToArray(o, minLen) {
- if (!o) return;
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
- var n = Object.prototype.toString.call(o).slice(8, -1);
- if (n === "Object" && o.constructor) n = o.constructor.name;
- if (n === "Map" || n === "Set") return Array.from(o);
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
- }
- function _arrayLikeToArray(arr, len) {
- if (len == null || len > arr.length) len = arr.length;
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
- return arr2;
- }
- function _createForOfIteratorHelper(o, allowArrayLike) {
- var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
- if (!it) {
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
- if (it) o = it;
- var i = 0;
- var F = function () {};
- return {
- s: F,
- n: function () {
- if (i >= o.length) return {
- done: true
- };
- return {
- done: false,
- value: o[i++]
- };
- },
- e: function (e) {
- throw e;
- },
- f: F
- };
- }
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }
- var normalCompletion = true,
- didErr = false,
- err;
- return {
- s: function () {
- it = it.call(o);
- },
- n: function () {
- var step = it.next();
- normalCompletion = step.done;
- return step;
- },
- e: function (e) {
- didErr = true;
- err = e;
- },
- f: function () {
- try {
- if (!normalCompletion && it.return != null) it.return();
- } finally {
- if (didErr) throw err;
- }
- }
- };
- }
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
- var check = function (it) {
- return it && it.Math == Math && it;
- };
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
- var global$x =
- // eslint-disable-next-line es-x/no-global-this -- safe
- check(typeof globalThis == 'object' && globalThis) ||
- check(typeof window == 'object' && window) ||
- // eslint-disable-next-line no-restricted-globals -- safe
- check(typeof self == 'object' && self) ||
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
- // eslint-disable-next-line no-new-func -- fallback
- (function () { return this; })() || Function('return this')();
- var objectGetOwnPropertyDescriptor = {};
- var fails$j = function (exec) {
- try {
- return !!exec();
- } catch (error) {
- return true;
- }
- };
- var fails$i = fails$j;
- // Detect IE8's incomplete defineProperty implementation
- var descriptors = !fails$i(function () {
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
- });
- var fails$h = fails$j;
- var functionBindNative = !fails$h(function () {
- // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
- var test = (function () { /* empty */ }).bind();
- // eslint-disable-next-line no-prototype-builtins -- safe
- return typeof test != 'function' || test.hasOwnProperty('prototype');
- });
- var NATIVE_BIND$3 = functionBindNative;
- var call$a = Function.prototype.call;
- var functionCall = NATIVE_BIND$3 ? call$a.bind(call$a) : function () {
- return call$a.apply(call$a, arguments);
- };
- var objectPropertyIsEnumerable = {};
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
- // Nashorn ~ JDK8 bug
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
- // `Object.prototype.propertyIsEnumerable` method implementation
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
- var descriptor = getOwnPropertyDescriptor$1(this, V);
- return !!descriptor && descriptor.enumerable;
- } : $propertyIsEnumerable;
- var createPropertyDescriptor$3 = function (bitmap, value) {
- return {
- enumerable: !(bitmap & 1),
- configurable: !(bitmap & 2),
- writable: !(bitmap & 4),
- value: value
- };
- };
- var NATIVE_BIND$2 = functionBindNative;
- var FunctionPrototype$2 = Function.prototype;
- var bind$2 = FunctionPrototype$2.bind;
- var call$9 = FunctionPrototype$2.call;
- var uncurryThis$l = NATIVE_BIND$2 && bind$2.bind(call$9, call$9);
- var functionUncurryThis = NATIVE_BIND$2 ? function (fn) {
- return fn && uncurryThis$l(fn);
- } : function (fn) {
- return fn && function () {
- return call$9.apply(fn, arguments);
- };
- };
- var uncurryThis$k = functionUncurryThis;
- var toString$7 = uncurryThis$k({}.toString);
- var stringSlice$5 = uncurryThis$k(''.slice);
- var classofRaw$1 = function (it) {
- return stringSlice$5(toString$7(it), 8, -1);
- };
- var global$w = global$x;
- var uncurryThis$j = functionUncurryThis;
- var fails$g = fails$j;
- var classof$7 = classofRaw$1;
- var Object$4 = global$w.Object;
- var split = uncurryThis$j(''.split);
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
- var indexedObject = fails$g(function () {
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
- // eslint-disable-next-line no-prototype-builtins -- safe
- return !Object$4('z').propertyIsEnumerable(0);
- }) ? function (it) {
- return classof$7(it) == 'String' ? split(it, '') : Object$4(it);
- } : Object$4;
- var global$v = global$x;
- var TypeError$a = global$v.TypeError;
- // `RequireObjectCoercible` abstract operation
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
- var requireObjectCoercible$5 = function (it) {
- if (it == undefined) throw TypeError$a("Can't call method on " + it);
- return it;
- };
- // toObject with fallback for non-array-like ES3 strings
- var IndexedObject$3 = indexedObject;
- var requireObjectCoercible$4 = requireObjectCoercible$5;
- var toIndexedObject$6 = function (it) {
- return IndexedObject$3(requireObjectCoercible$4(it));
- };
- // `IsCallable` abstract operation
- // https://tc39.es/ecma262/#sec-iscallable
- var isCallable$e = function (argument) {
- return typeof argument == 'function';
- };
- var isCallable$d = isCallable$e;
- var isObject$9 = function (it) {
- return typeof it == 'object' ? it !== null : isCallable$d(it);
- };
- var global$u = global$x;
- var isCallable$c = isCallable$e;
- var aFunction = function (argument) {
- return isCallable$c(argument) ? argument : undefined;
- };
- var getBuiltIn$5 = function (namespace, method) {
- return arguments.length < 2 ? aFunction(global$u[namespace]) : global$u[namespace] && global$u[namespace][method];
- };
- var uncurryThis$i = functionUncurryThis;
- var objectIsPrototypeOf = uncurryThis$i({}.isPrototypeOf);
- var getBuiltIn$4 = getBuiltIn$5;
- var engineUserAgent = getBuiltIn$4('navigator', 'userAgent') || '';
- var global$t = global$x;
- var userAgent = engineUserAgent;
- var process = global$t.process;
- var Deno = global$t.Deno;
- var versions = process && process.versions || Deno && Deno.version;
- var v8 = versions && versions.v8;
- var match, version;
- if (v8) {
- match = v8.split('.');
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
- // but their correct versions are not interesting for us
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
- }
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
- // so check `userAgent` even if `.v8` exists, but 0
- if (!version && userAgent) {
- match = userAgent.match(/Edge\/(\d+)/);
- if (!match || match[1] >= 74) {
- match = userAgent.match(/Chrome\/(\d+)/);
- if (match) version = +match[1];
- }
- }
- var engineV8Version = version;
- /* eslint-disable es-x/no-symbol -- required for testing */
- var V8_VERSION$2 = engineV8Version;
- var fails$f = fails$j;
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$f(function () {
- var symbol = Symbol();
- // Chrome 38 Symbol has incorrect toString conversion
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
- return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
- !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
- });
- /* eslint-disable es-x/no-symbol -- required for testing */
- var NATIVE_SYMBOL$1 = nativeSymbol;
- var useSymbolAsUid = NATIVE_SYMBOL$1
- && !Symbol.sham
- && typeof Symbol.iterator == 'symbol';
- var global$s = global$x;
- var getBuiltIn$3 = getBuiltIn$5;
- var isCallable$b = isCallable$e;
- var isPrototypeOf = objectIsPrototypeOf;
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
- var Object$3 = global$s.Object;
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
- return typeof it == 'symbol';
- } : function (it) {
- var $Symbol = getBuiltIn$3('Symbol');
- return isCallable$b($Symbol) && isPrototypeOf($Symbol.prototype, Object$3(it));
- };
- var global$r = global$x;
- var String$3 = global$r.String;
- var tryToString$2 = function (argument) {
- try {
- return String$3(argument);
- } catch (error) {
- return 'Object';
- }
- };
- var global$q = global$x;
- var isCallable$a = isCallable$e;
- var tryToString$1 = tryToString$2;
- var TypeError$9 = global$q.TypeError;
- // `Assert: IsCallable(argument) is true`
- var aCallable$2 = function (argument) {
- if (isCallable$a(argument)) return argument;
- throw TypeError$9(tryToString$1(argument) + ' is not a function');
- };
- var aCallable$1 = aCallable$2;
- // `GetMethod` abstract operation
- // https://tc39.es/ecma262/#sec-getmethod
- var getMethod$3 = function (V, P) {
- var func = V[P];
- return func == null ? undefined : aCallable$1(func);
- };
- var global$p = global$x;
- var call$8 = functionCall;
- var isCallable$9 = isCallable$e;
- var isObject$8 = isObject$9;
- var TypeError$8 = global$p.TypeError;
- // `OrdinaryToPrimitive` abstract operation
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
- var ordinaryToPrimitive$1 = function (input, pref) {
- var fn, val;
- if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$8(val = call$8(fn, input))) return val;
- if (isCallable$9(fn = input.valueOf) && !isObject$8(val = call$8(fn, input))) return val;
- if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$8(val = call$8(fn, input))) return val;
- throw TypeError$8("Can't convert object to primitive value");
- };
- var shared$4 = {exports: {}};
- var global$o = global$x;
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
- var defineProperty$2 = Object.defineProperty;
- var setGlobal$3 = function (key, value) {
- try {
- defineProperty$2(global$o, key, { value: value, configurable: true, writable: true });
- } catch (error) {
- global$o[key] = value;
- } return value;
- };
- var global$n = global$x;
- var setGlobal$2 = setGlobal$3;
- var SHARED = '__core-js_shared__';
- var store$3 = global$n[SHARED] || setGlobal$2(SHARED, {});
- var sharedStore = store$3;
- var store$2 = sharedStore;
- (shared$4.exports = function (key, value) {
- return store$2[key] || (store$2[key] = value !== undefined ? value : {});
- })('versions', []).push({
- version: '3.22.5',
- mode: 'global',
- copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
- license: 'https://github.com/zloirock/core-js/blob/v3.22.5/LICENSE',
- source: 'https://github.com/zloirock/core-js'
- });
- var global$m = global$x;
- var requireObjectCoercible$3 = requireObjectCoercible$5;
- var Object$2 = global$m.Object;
- // `ToObject` abstract operation
- // https://tc39.es/ecma262/#sec-toobject
- var toObject$5 = function (argument) {
- return Object$2(requireObjectCoercible$3(argument));
- };
- var uncurryThis$h = functionUncurryThis;
- var toObject$4 = toObject$5;
- var hasOwnProperty = uncurryThis$h({}.hasOwnProperty);
- // `HasOwnProperty` abstract operation
- // https://tc39.es/ecma262/#sec-hasownproperty
- // eslint-disable-next-line es-x/no-object-hasown -- safe
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
- return hasOwnProperty(toObject$4(it), key);
- };
- var uncurryThis$g = functionUncurryThis;
- var id = 0;
- var postfix = Math.random();
- var toString$6 = uncurryThis$g(1.0.toString);
- var uid$2 = function (key) {
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$6(++id + postfix, 36);
- };
- var global$l = global$x;
- var shared$3 = shared$4.exports;
- var hasOwn$6 = hasOwnProperty_1;
- var uid$1 = uid$2;
- var NATIVE_SYMBOL = nativeSymbol;
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
- var WellKnownSymbolsStore = shared$3('wks');
- var Symbol$1 = global$l.Symbol;
- var symbolFor = Symbol$1 && Symbol$1['for'];
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
- var wellKnownSymbol$c = function (name) {
- if (!hasOwn$6(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
- var description = 'Symbol.' + name;
- if (NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)) {
- WellKnownSymbolsStore[name] = Symbol$1[name];
- } else if (USE_SYMBOL_AS_UID && symbolFor) {
- WellKnownSymbolsStore[name] = symbolFor(description);
- } else {
- WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
- }
- } return WellKnownSymbolsStore[name];
- };
- var global$k = global$x;
- var call$7 = functionCall;
- var isObject$7 = isObject$9;
- var isSymbol$1 = isSymbol$2;
- var getMethod$2 = getMethod$3;
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
- var wellKnownSymbol$b = wellKnownSymbol$c;
- var TypeError$7 = global$k.TypeError;
- var TO_PRIMITIVE = wellKnownSymbol$b('toPrimitive');
- // `ToPrimitive` abstract operation
- // https://tc39.es/ecma262/#sec-toprimitive
- var toPrimitive$1 = function (input, pref) {
- if (!isObject$7(input) || isSymbol$1(input)) return input;
- var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
- var result;
- if (exoticToPrim) {
- if (pref === undefined) pref = 'default';
- result = call$7(exoticToPrim, input, pref);
- if (!isObject$7(result) || isSymbol$1(result)) return result;
- throw TypeError$7("Can't convert object to primitive value");
- }
- if (pref === undefined) pref = 'number';
- return ordinaryToPrimitive(input, pref);
- };
- var toPrimitive = toPrimitive$1;
- var isSymbol = isSymbol$2;
- // `ToPropertyKey` abstract operation
- // https://tc39.es/ecma262/#sec-topropertykey
- var toPropertyKey$3 = function (argument) {
- var key = toPrimitive(argument, 'string');
- return isSymbol(key) ? key : key + '';
- };
- var global$j = global$x;
- var isObject$6 = isObject$9;
- var document$1 = global$j.document;
- // typeof document.createElement is 'object' in old IE
- var EXISTS$1 = isObject$6(document$1) && isObject$6(document$1.createElement);
- var documentCreateElement$2 = function (it) {
- return EXISTS$1 ? document$1.createElement(it) : {};
- };
- var DESCRIPTORS$8 = descriptors;
- var fails$e = fails$j;
- var createElement = documentCreateElement$2;
- // Thanks to IE8 for its funny defineProperty
- var ie8DomDefine = !DESCRIPTORS$8 && !fails$e(function () {
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
- return Object.defineProperty(createElement('div'), 'a', {
- get: function () { return 7; }
- }).a != 7;
- });
- var DESCRIPTORS$7 = descriptors;
- var call$6 = functionCall;
- var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
- var createPropertyDescriptor$2 = createPropertyDescriptor$3;
- var toIndexedObject$5 = toIndexedObject$6;
- var toPropertyKey$2 = toPropertyKey$3;
- var hasOwn$5 = hasOwnProperty_1;
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
- // `Object.getOwnPropertyDescriptor` method
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
- O = toIndexedObject$5(O);
- P = toPropertyKey$2(P);
- if (IE8_DOM_DEFINE$1) try {
- return $getOwnPropertyDescriptor$1(O, P);
- } catch (error) { /* empty */ }
- if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call$6(propertyIsEnumerableModule$1.f, O, P), O[P]);
- };
- var objectDefineProperty = {};
- var DESCRIPTORS$6 = descriptors;
- var fails$d = fails$j;
- // V8 ~ Chrome 36-
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
- var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$d(function () {
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
- value: 42,
- writable: false
- }).prototype != 42;
- });
- var global$i = global$x;
- var isObject$5 = isObject$9;
- var String$2 = global$i.String;
- var TypeError$6 = global$i.TypeError;
- // `Assert: Type(argument) is Object`
- var anObject$9 = function (argument) {
- if (isObject$5(argument)) return argument;
- throw TypeError$6(String$2(argument) + ' is not an object');
- };
- var global$h = global$x;
- var DESCRIPTORS$5 = descriptors;
- var IE8_DOM_DEFINE = ie8DomDefine;
- var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
- var anObject$8 = anObject$9;
- var toPropertyKey$1 = toPropertyKey$3;
- var TypeError$5 = global$h.TypeError;
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
- var $defineProperty = Object.defineProperty;
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
- var ENUMERABLE = 'enumerable';
- var CONFIGURABLE$1 = 'configurable';
- var WRITABLE = 'writable';
- // `Object.defineProperty` method
- // https://tc39.es/ecma262/#sec-object.defineproperty
- objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
- anObject$8(O);
- P = toPropertyKey$1(P);
- anObject$8(Attributes);
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
- var current = $getOwnPropertyDescriptor(O, P);
- if (current && current[WRITABLE]) {
- O[P] = Attributes.value;
- Attributes = {
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
- writable: false
- };
- }
- } return $defineProperty(O, P, Attributes);
- } : $defineProperty : function defineProperty(O, P, Attributes) {
- anObject$8(O);
- P = toPropertyKey$1(P);
- anObject$8(Attributes);
- if (IE8_DOM_DEFINE) try {
- return $defineProperty(O, P, Attributes);
- } catch (error) { /* empty */ }
- if ('get' in Attributes || 'set' in Attributes) throw TypeError$5('Accessors not supported');
- if ('value' in Attributes) O[P] = Attributes.value;
- return O;
- };
- var DESCRIPTORS$4 = descriptors;
- var definePropertyModule$4 = objectDefineProperty;
- var createPropertyDescriptor$1 = createPropertyDescriptor$3;
- var createNonEnumerableProperty$5 = DESCRIPTORS$4 ? function (object, key, value) {
- return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
- } : function (object, key, value) {
- object[key] = value;
- return object;
- };
- var makeBuiltIn$2 = {exports: {}};
- var DESCRIPTORS$3 = descriptors;
- var hasOwn$4 = hasOwnProperty_1;
- var FunctionPrototype$1 = Function.prototype;
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
- var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
- var EXISTS = hasOwn$4(FunctionPrototype$1, 'name');
- // additional protection from minified / mangled / dropped function names
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype$1, 'name').configurable));
- var functionName = {
- EXISTS: EXISTS,
- PROPER: PROPER,
- CONFIGURABLE: CONFIGURABLE
- };
- var uncurryThis$f = functionUncurryThis;
- var isCallable$8 = isCallable$e;
- var store$1 = sharedStore;
- var functionToString = uncurryThis$f(Function.toString);
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
- if (!isCallable$8(store$1.inspectSource)) {
- store$1.inspectSource = function (it) {
- return functionToString(it);
- };
- }
- var inspectSource$3 = store$1.inspectSource;
- var global$g = global$x;
- var isCallable$7 = isCallable$e;
- var inspectSource$2 = inspectSource$3;
- var WeakMap$1 = global$g.WeakMap;
- var nativeWeakMap = isCallable$7(WeakMap$1) && /native code/.test(inspectSource$2(WeakMap$1));
- var shared$2 = shared$4.exports;
- var uid = uid$2;
- var keys = shared$2('keys');
- var sharedKey$2 = function (key) {
- return keys[key] || (keys[key] = uid(key));
- };
- var hiddenKeys$4 = {};
- var NATIVE_WEAK_MAP = nativeWeakMap;
- var global$f = global$x;
- var uncurryThis$e = functionUncurryThis;
- var isObject$4 = isObject$9;
- var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
- var hasOwn$3 = hasOwnProperty_1;
- var shared$1 = sharedStore;
- var sharedKey$1 = sharedKey$2;
- var hiddenKeys$3 = hiddenKeys$4;
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
- var TypeError$4 = global$f.TypeError;
- var WeakMap = global$f.WeakMap;
- var set, get, has;
- var enforce = function (it) {
- return has(it) ? get(it) : set(it, {});
- };
- var getterFor = function (TYPE) {
- return function (it) {
- var state;
- if (!isObject$4(it) || (state = get(it)).type !== TYPE) {
- throw TypeError$4('Incompatible receiver, ' + TYPE + ' required');
- } return state;
- };
- };
- if (NATIVE_WEAK_MAP || shared$1.state) {
- var store = shared$1.state || (shared$1.state = new WeakMap());
- var wmget = uncurryThis$e(store.get);
- var wmhas = uncurryThis$e(store.has);
- var wmset = uncurryThis$e(store.set);
- set = function (it, metadata) {
- if (wmhas(store, it)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
- metadata.facade = it;
- wmset(store, it, metadata);
- return metadata;
- };
- get = function (it) {
- return wmget(store, it) || {};
- };
- has = function (it) {
- return wmhas(store, it);
- };
- } else {
- var STATE = sharedKey$1('state');
- hiddenKeys$3[STATE] = true;
- set = function (it, metadata) {
- if (hasOwn$3(it, STATE)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
- metadata.facade = it;
- createNonEnumerableProperty$4(it, STATE, metadata);
- return metadata;
- };
- get = function (it) {
- return hasOwn$3(it, STATE) ? it[STATE] : {};
- };
- has = function (it) {
- return hasOwn$3(it, STATE);
- };
- }
- var internalState = {
- set: set,
- get: get,
- has: has,
- enforce: enforce,
- getterFor: getterFor
- };
- var fails$c = fails$j;
- var isCallable$6 = isCallable$e;
- var hasOwn$2 = hasOwnProperty_1;
- var DESCRIPTORS$2 = descriptors;
- var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
- var inspectSource$1 = inspectSource$3;
- var InternalStateModule = internalState;
- var enforceInternalState = InternalStateModule.enforce;
- var getInternalState$1 = InternalStateModule.get;
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
- var defineProperty$1 = Object.defineProperty;
- var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$c(function () {
- return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
- });
- var TEMPLATE = String(String).split('String');
- var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
- if (String(name).slice(0, 7) === 'Symbol(') {
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
- }
- if (options && options.getter) name = 'get ' + name;
- if (options && options.setter) name = 'set ' + name;
- if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
- defineProperty$1(value, 'name', { value: name, configurable: true });
- }
- if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
- defineProperty$1(value, 'length', { value: options.arity });
- }
- if (options && hasOwn$2(options, 'constructor') && options.constructor) {
- if (DESCRIPTORS$2) try {
- defineProperty$1(value, 'prototype', { writable: false });
- } catch (error) { /* empty */ }
- } else value.prototype = undefined;
- var state = enforceInternalState(value);
- if (!hasOwn$2(state, 'source')) {
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
- } return value;
- };
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
- // eslint-disable-next-line no-extend-native -- required
- Function.prototype.toString = makeBuiltIn$1(function toString() {
- return isCallable$6(this) && getInternalState$1(this).source || inspectSource$1(this);
- }, 'toString');
- var global$e = global$x;
- var isCallable$5 = isCallable$e;
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
- var makeBuiltIn = makeBuiltIn$2.exports;
- var setGlobal$1 = setGlobal$3;
- var defineBuiltIn$3 = function (O, key, value, options) {
- var unsafe = options ? !!options.unsafe : false;
- var simple = options ? !!options.enumerable : false;
- var noTargetGet = options ? !!options.noTargetGet : false;
- var name = options && options.name !== undefined ? options.name : key;
- if (isCallable$5(value)) makeBuiltIn(value, name, options);
- if (O === global$e) {
- if (simple) O[key] = value;
- else setGlobal$1(key, value);
- return O;
- } else if (!unsafe) {
- delete O[key];
- } else if (!noTargetGet && O[key]) {
- simple = true;
- }
- if (simple) O[key] = value;
- else createNonEnumerableProperty$3(O, key, value);
- return O;
- };
- var objectGetOwnPropertyNames = {};
- var ceil = Math.ceil;
- var floor$1 = Math.floor;
- // `ToIntegerOrInfinity` abstract operation
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
- var toIntegerOrInfinity$4 = function (argument) {
- var number = +argument;
- // eslint-disable-next-line no-self-compare -- safe
- return number !== number || number === 0 ? 0 : (number > 0 ? floor$1 : ceil)(number);
- };
- var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
- var max$3 = Math.max;
- var min$3 = Math.min;
- // Helper for a popular repeating case of the spec:
- // Let integer be ? ToInteger(index).
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
- var toAbsoluteIndex$3 = function (index, length) {
- var integer = toIntegerOrInfinity$3(index);
- return integer < 0 ? max$3(integer + length, 0) : min$3(integer, length);
- };
- var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
- var min$2 = Math.min;
- // `ToLength` abstract operation
- // https://tc39.es/ecma262/#sec-tolength
- var toLength$3 = function (argument) {
- return argument > 0 ? min$2(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
- };
- var toLength$2 = toLength$3;
- // `LengthOfArrayLike` abstract operation
- // https://tc39.es/ecma262/#sec-lengthofarraylike
- var lengthOfArrayLike$5 = function (obj) {
- return toLength$2(obj.length);
- };
- var toIndexedObject$4 = toIndexedObject$6;
- var toAbsoluteIndex$2 = toAbsoluteIndex$3;
- var lengthOfArrayLike$4 = lengthOfArrayLike$5;
- // `Array.prototype.{ indexOf, includes }` methods implementation
- var createMethod$2 = function (IS_INCLUDES) {
- return function ($this, el, fromIndex) {
- var O = toIndexedObject$4($this);
- var length = lengthOfArrayLike$4(O);
- var index = toAbsoluteIndex$2(fromIndex, length);
- var value;
- // Array#includes uses SameValueZero equality algorithm
- // eslint-disable-next-line no-self-compare -- NaN check
- if (IS_INCLUDES && el != el) while (length > index) {
- value = O[index++];
- // eslint-disable-next-line no-self-compare -- NaN check
- if (value != value) return true;
- // Array#indexOf ignores holes, Array#includes - not
- } else for (;length > index; index++) {
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
- } return !IS_INCLUDES && -1;
- };
- };
- var arrayIncludes = {
- // `Array.prototype.includes` method
- // https://tc39.es/ecma262/#sec-array.prototype.includes
- includes: createMethod$2(true),
- // `Array.prototype.indexOf` method
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
- indexOf: createMethod$2(false)
- };
- var uncurryThis$d = functionUncurryThis;
- var hasOwn$1 = hasOwnProperty_1;
- var toIndexedObject$3 = toIndexedObject$6;
- var indexOf$1 = arrayIncludes.indexOf;
- var hiddenKeys$2 = hiddenKeys$4;
- var push$3 = uncurryThis$d([].push);
- var objectKeysInternal = function (object, names) {
- var O = toIndexedObject$3(object);
- var i = 0;
- var result = [];
- var key;
- for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$3(result, key);
- // Don't enum bug & hidden keys
- while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
- ~indexOf$1(result, key) || push$3(result, key);
- }
- return result;
- };
- // IE8- don't enum bug keys
- var enumBugKeys$3 = [
- 'constructor',
- 'hasOwnProperty',
- 'isPrototypeOf',
- 'propertyIsEnumerable',
- 'toLocaleString',
- 'toString',
- 'valueOf'
- ];
- var internalObjectKeys$1 = objectKeysInternal;
- var enumBugKeys$2 = enumBugKeys$3;
- var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
- // `Object.getOwnPropertyNames` method
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
- // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
- objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
- return internalObjectKeys$1(O, hiddenKeys$1);
- };
- var objectGetOwnPropertySymbols = {};
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
- var getBuiltIn$2 = getBuiltIn$5;
- var uncurryThis$c = functionUncurryThis;
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
- var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
- var anObject$7 = anObject$9;
- var concat$2 = uncurryThis$c([].concat);
- // all object keys, includes non-enumerable and symbols
- var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
- var keys = getOwnPropertyNamesModule.f(anObject$7(it));
- var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
- return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
- };
- var hasOwn = hasOwnProperty_1;
- var ownKeys = ownKeys$1;
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
- var definePropertyModule$3 = objectDefineProperty;
- var copyConstructorProperties$1 = function (target, source, exceptions) {
- var keys = ownKeys(source);
- var defineProperty = definePropertyModule$3.f;
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
- for (var i = 0; i < keys.length; i++) {
- var key = keys[i];
- if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
- }
- }
- };
- var fails$b = fails$j;
- var isCallable$4 = isCallable$e;
- var replacement = /#|\.prototype\./;
- var isForced$1 = function (feature, detection) {
- var value = data[normalize(feature)];
- return value == POLYFILL ? true
- : value == NATIVE ? false
- : isCallable$4(detection) ? fails$b(detection)
- : !!detection;
- };
- var normalize = isForced$1.normalize = function (string) {
- return String(string).replace(replacement, '.').toLowerCase();
- };
- var data = isForced$1.data = {};
- var NATIVE = isForced$1.NATIVE = 'N';
- var POLYFILL = isForced$1.POLYFILL = 'P';
- var isForced_1 = isForced$1;
- var global$d = global$x;
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
- var defineBuiltIn$2 = defineBuiltIn$3;
- var setGlobal = setGlobal$3;
- var copyConstructorProperties = copyConstructorProperties$1;
- var isForced = isForced_1;
- /*
- options.target - name of the target object
- options.global - target is the global object
- options.stat - export as static methods of target
- options.proto - export as prototype methods of target
- options.real - real prototype method for the `pure` version
- options.forced - export even if the native feature is available
- options.bind - bind methods to the target, required for the `pure` version
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
- options.sham - add a flag to not completely full polyfills
- options.enumerable - export as enumerable property
- options.noTargetGet - prevent calling a getter on target
- options.name - the .name of the function if it does not match the key
- */
- var _export = function (options, source) {
- var TARGET = options.target;
- var GLOBAL = options.global;
- var STATIC = options.stat;
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
- if (GLOBAL) {
- target = global$d;
- } else if (STATIC) {
- target = global$d[TARGET] || setGlobal(TARGET, {});
- } else {
- target = (global$d[TARGET] || {}).prototype;
- }
- if (target) for (key in source) {
- sourceProperty = source[key];
- if (options.noTargetGet) {
- descriptor = getOwnPropertyDescriptor(target, key);
- targetProperty = descriptor && descriptor.value;
- } else targetProperty = target[key];
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
- // contained in target
- if (!FORCED && targetProperty !== undefined) {
- if (typeof sourceProperty == typeof targetProperty) continue;
- copyConstructorProperties(sourceProperty, targetProperty);
- }
- // add a flag to not completely full polyfills
- if (options.sham || (targetProperty && targetProperty.sham)) {
- createNonEnumerableProperty$2(sourceProperty, 'sham', true);
- }
- defineBuiltIn$2(target, key, sourceProperty, options);
- }
- };
- var wellKnownSymbol$a = wellKnownSymbol$c;
- var TO_STRING_TAG$1 = wellKnownSymbol$a('toStringTag');
- var test = {};
- test[TO_STRING_TAG$1] = 'z';
- var toStringTagSupport = String(test) === '[object z]';
- var global$c = global$x;
- var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
- var isCallable$3 = isCallable$e;
- var classofRaw = classofRaw$1;
- var wellKnownSymbol$9 = wellKnownSymbol$c;
- var TO_STRING_TAG = wellKnownSymbol$9('toStringTag');
- var Object$1 = global$c.Object;
- // ES3 wrong here
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
- // fallback for IE11 Script Access Denied error
- var tryGet = function (it, key) {
- try {
- return it[key];
- } catch (error) { /* empty */ }
- };
- // getting tag from ES6+ `Object.prototype.toString`
- var classof$6 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
- var O, tag, result;
- return it === undefined ? 'Undefined' : it === null ? 'Null'
- // @@toStringTag case
- : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
- // builtinTag case
- : CORRECT_ARGUMENTS ? classofRaw(O)
- // ES3 arguments fallback
- : (result = classofRaw(O)) == 'Object' && isCallable$3(O.callee) ? 'Arguments' : result;
- };
- var global$b = global$x;
- var classof$5 = classof$6;
- var String$1 = global$b.String;
- var toString$5 = function (argument) {
- if (classof$5(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
- return String$1(argument);
- };
- var anObject$6 = anObject$9;
- // `RegExp.prototype.flags` getter implementation
- // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
- var regexpFlags$1 = function () {
- var that = anObject$6(this);
- var result = '';
- if (that.hasIndices) result += 'd';
- if (that.global) result += 'g';
- if (that.ignoreCase) result += 'i';
- if (that.multiline) result += 'm';
- if (that.dotAll) result += 's';
- if (that.unicode) result += 'u';
- if (that.sticky) result += 'y';
- return result;
- };
- var fails$a = fails$j;
- var global$a = global$x;
- // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
- var $RegExp$2 = global$a.RegExp;
- var UNSUPPORTED_Y$2 = fails$a(function () {
- var re = $RegExp$2('a', 'y');
- re.lastIndex = 2;
- return re.exec('abcd') != null;
- });
- // UC Browser bug
- // https://github.com/zloirock/core-js/issues/1008
- var MISSED_STICKY = UNSUPPORTED_Y$2 || fails$a(function () {
- return !$RegExp$2('a', 'y').sticky;
- });
- var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$a(function () {
- // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
- var re = $RegExp$2('^r', 'gy');
- re.lastIndex = 2;
- return re.exec('str') != null;
- });
- var regexpStickyHelpers = {
- BROKEN_CARET: BROKEN_CARET,
- MISSED_STICKY: MISSED_STICKY,
- UNSUPPORTED_Y: UNSUPPORTED_Y$2
- };
- var objectDefineProperties = {};
- var internalObjectKeys = objectKeysInternal;
- var enumBugKeys$1 = enumBugKeys$3;
- // `Object.keys` method
- // https://tc39.es/ecma262/#sec-object.keys
- // eslint-disable-next-line es-x/no-object-keys -- safe
- var objectKeys$2 = Object.keys || function keys(O) {
- return internalObjectKeys(O, enumBugKeys$1);
- };
- var DESCRIPTORS$1 = descriptors;
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
- var definePropertyModule$2 = objectDefineProperty;
- var anObject$5 = anObject$9;
- var toIndexedObject$2 = toIndexedObject$6;
- var objectKeys$1 = objectKeys$2;
- // `Object.defineProperties` method
- // https://tc39.es/ecma262/#sec-object.defineproperties
- // eslint-disable-next-line es-x/no-object-defineproperties -- safe
- objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
- anObject$5(O);
- var props = toIndexedObject$2(Properties);
- var keys = objectKeys$1(Properties);
- var length = keys.length;
- var index = 0;
- var key;
- while (length > index) definePropertyModule$2.f(O, key = keys[index++], props[key]);
- return O;
- };
- var getBuiltIn$1 = getBuiltIn$5;
- var html$1 = getBuiltIn$1('document', 'documentElement');
- /* global ActiveXObject -- old IE, WSH */
- var anObject$4 = anObject$9;
- var definePropertiesModule = objectDefineProperties;
- var enumBugKeys = enumBugKeys$3;
- var hiddenKeys = hiddenKeys$4;
- var html = html$1;
- var documentCreateElement$1 = documentCreateElement$2;
- var sharedKey = sharedKey$2;
- var GT = '>';
- var LT = '<';
- var PROTOTYPE = 'prototype';
- var SCRIPT = 'script';
- var IE_PROTO = sharedKey('IE_PROTO');
- var EmptyConstructor = function () { /* empty */ };
- var scriptTag = function (content) {
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
- };
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
- var NullProtoObjectViaActiveX = function (activeXDocument) {
- activeXDocument.write(scriptTag(''));
- activeXDocument.close();
- var temp = activeXDocument.parentWindow.Object;
- activeXDocument = null; // avoid memory leak
- return temp;
- };
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
- var NullProtoObjectViaIFrame = function () {
- // Thrash, waste and sodomy: IE GC bug
- var iframe = documentCreateElement$1('iframe');
- var JS = 'java' + SCRIPT + ':';
- var iframeDocument;
- iframe.style.display = 'none';
- html.appendChild(iframe);
- // https://github.com/zloirock/core-js/issues/475
- iframe.src = String(JS);
- iframeDocument = iframe.contentWindow.document;
- iframeDocument.open();
- iframeDocument.write(scriptTag('document.F=Object'));
- iframeDocument.close();
- return iframeDocument.F;
- };
- // Check for document.domain and active x support
- // No need to use active x approach when document.domain is not set
- // see https://github.com/es-shims/es5-shim/issues/150
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
- // avoid IE GC bug
- var activeXDocument;
- var NullProtoObject = function () {
- try {
- activeXDocument = new ActiveXObject('htmlfile');
- } catch (error) { /* ignore */ }
- NullProtoObject = typeof document != 'undefined'
- ? document.domain && activeXDocument
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
- : NullProtoObjectViaIFrame()
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
- var length = enumBugKeys.length;
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
- return NullProtoObject();
- };
- hiddenKeys[IE_PROTO] = true;
- // `Object.create` method
- // https://tc39.es/ecma262/#sec-object.create
- // eslint-disable-next-line es-x/no-object-create -- safe
- var objectCreate = Object.create || function create(O, Properties) {
- var result;
- if (O !== null) {
- EmptyConstructor[PROTOTYPE] = anObject$4(O);
- result = new EmptyConstructor();
- EmptyConstructor[PROTOTYPE] = null;
- // add "__proto__" for Object.getPrototypeOf polyfill
- result[IE_PROTO] = O;
- } else result = NullProtoObject();
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
- };
- var fails$9 = fails$j;
- var global$9 = global$x;
- // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
- var $RegExp$1 = global$9.RegExp;
- var regexpUnsupportedDotAll = fails$9(function () {
- var re = $RegExp$1('.', 's');
- return !(re.dotAll && re.exec('\n') && re.flags === 's');
- });
- var fails$8 = fails$j;
- var global$8 = global$x;
- // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
- var $RegExp = global$8.RegExp;
- var regexpUnsupportedNcg = fails$8(function () {
- var re = $RegExp('(?<a>b)', 'g');
- return re.exec('b').groups.a !== 'b' ||
- 'b'.replace(re, '$<a>c') !== 'bc';
- });
- /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
- /* eslint-disable regexp/no-useless-quantifier -- testing */
- var call$5 = functionCall;
- var uncurryThis$b = functionUncurryThis;
- var toString$4 = toString$5;
- var regexpFlags = regexpFlags$1;
- var stickyHelpers$1 = regexpStickyHelpers;
- var shared = shared$4.exports;
- var create$1 = objectCreate;
- var getInternalState = internalState.get;
- var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
- var UNSUPPORTED_NCG = regexpUnsupportedNcg;
- var nativeReplace = shared('native-string-replace', String.prototype.replace);
- var nativeExec = RegExp.prototype.exec;
- var patchedExec = nativeExec;
- var charAt$3 = uncurryThis$b(''.charAt);
- var indexOf = uncurryThis$b(''.indexOf);
- var replace$1 = uncurryThis$b(''.replace);
- var stringSlice$4 = uncurryThis$b(''.slice);
- var UPDATES_LAST_INDEX_WRONG = (function () {
- var re1 = /a/;
- var re2 = /b*/g;
- call$5(nativeExec, re1, 'a');
- call$5(nativeExec, re2, 'a');
- return re1.lastIndex !== 0 || re2.lastIndex !== 0;
- })();
- var UNSUPPORTED_Y$1 = stickyHelpers$1.BROKEN_CARET;
- // nonparticipating capturing group, copied from es5-shim's String#split patch.
- var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1 || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
- if (PATCH) {
- patchedExec = function exec(string) {
- var re = this;
- var state = getInternalState(re);
- var str = toString$4(string);
- var raw = state.raw;
- var result, reCopy, lastIndex, match, i, object, group;
- if (raw) {
- raw.lastIndex = re.lastIndex;
- result = call$5(patchedExec, raw, str);
- re.lastIndex = raw.lastIndex;
- return result;
- }
- var groups = state.groups;
- var sticky = UNSUPPORTED_Y$1 && re.sticky;
- var flags = call$5(regexpFlags, re);
- var source = re.source;
- var charsAdded = 0;
- var strCopy = str;
- if (sticky) {
- flags = replace$1(flags, 'y', '');
- if (indexOf(flags, 'g') === -1) {
- flags += 'g';
- }
- strCopy = stringSlice$4(str, re.lastIndex);
- // Support anchored sticky behavior.
- if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
- source = '(?: ' + source + ')';
- strCopy = ' ' + strCopy;
- charsAdded++;
- }
- // ^(? + rx + ) is needed, in combination with some str slicing, to
- // simulate the 'y' flag.
- reCopy = new RegExp('^(?:' + source + ')', flags);
- }
- if (NPCG_INCLUDED) {
- reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
- }
- if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
- match = call$5(nativeExec, sticky ? reCopy : re, strCopy);
- if (sticky) {
- if (match) {
- match.input = stringSlice$4(match.input, charsAdded);
- match[0] = stringSlice$4(match[0], charsAdded);
- match.index = re.lastIndex;
- re.lastIndex += match[0].length;
- } else re.lastIndex = 0;
- } else if (UPDATES_LAST_INDEX_WRONG && match) {
- re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
- }
- if (NPCG_INCLUDED && match && match.length > 1) {
- // Fix browsers whose `exec` methods don't consistently return `undefined`
- // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
- call$5(nativeReplace, match[0], reCopy, function () {
- for (i = 1; i < arguments.length - 2; i++) {
- if (arguments[i] === undefined) match[i] = undefined;
- }
- });
- }
- if (match && groups) {
- match.groups = object = create$1(null);
- for (i = 0; i < groups.length; i++) {
- group = groups[i];
- object[group[0]] = match[group[1]];
- }
- }
- return match;
- };
- }
- var regexpExec$3 = patchedExec;
- var $$6 = _export;
- var exec$2 = regexpExec$3;
- // `RegExp.prototype.exec` method
- // https://tc39.es/ecma262/#sec-regexp.prototype.exec
- $$6({ target: 'RegExp', proto: true, forced: /./.exec !== exec$2 }, {
- exec: exec$2
- });
- var NATIVE_BIND$1 = functionBindNative;
- var FunctionPrototype = Function.prototype;
- var apply$2 = FunctionPrototype.apply;
- var call$4 = FunctionPrototype.call;
- // eslint-disable-next-line es-x/no-reflect -- safe
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$4.bind(apply$2) : function () {
- return call$4.apply(apply$2, arguments);
- });
- // TODO: Remove from `core-js@4` since it's moved to entry points
- var uncurryThis$a = functionUncurryThis;
- var defineBuiltIn$1 = defineBuiltIn$3;
- var regexpExec$2 = regexpExec$3;
- var fails$7 = fails$j;
- var wellKnownSymbol$8 = wellKnownSymbol$c;
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
- var SPECIES$4 = wellKnownSymbol$8('species');
- var RegExpPrototype = RegExp.prototype;
- var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
- var SYMBOL = wellKnownSymbol$8(KEY);
- var DELEGATES_TO_SYMBOL = !fails$7(function () {
- // String methods call symbol-named RegEp methods
- var O = {};
- O[SYMBOL] = function () { return 7; };
- return ''[KEY](O) != 7;
- });
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$7(function () {
- // Symbol-named RegExp methods call .exec
- var execCalled = false;
- var re = /a/;
- if (KEY === 'split') {
- // We can't use real regex here since it causes deoptimization
- // and serious performance degradation in V8
- // https://github.com/zloirock/core-js/issues/306
- re = {};
- // RegExp[@@split] doesn't call the regex's exec method, but first creates
- // a new one. We need to return the patched regex when creating the new one.
- re.constructor = {};
- re.constructor[SPECIES$4] = function () { return re; };
- re.flags = '';
- re[SYMBOL] = /./[SYMBOL];
- }
- re.exec = function () { execCalled = true; return null; };
- re[SYMBOL]('');
- return !execCalled;
- });
- if (
- !DELEGATES_TO_SYMBOL ||
- !DELEGATES_TO_EXEC ||
- FORCED
- ) {
- var uncurriedNativeRegExpMethod = uncurryThis$a(/./[SYMBOL]);
- var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
- var uncurriedNativeMethod = uncurryThis$a(nativeMethod);
- var $exec = regexp.exec;
- if ($exec === regexpExec$2 || $exec === RegExpPrototype.exec) {
- if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
- // The native String method already delegates to @@method (this
- // polyfilled function), leasing to infinite recursion.
- // We avoid it by directly calling the native @@method method.
- return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
- }
- return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
- }
- return { done: false };
- });
- defineBuiltIn$1(String.prototype, KEY, methods[0]);
- defineBuiltIn$1(RegExpPrototype, SYMBOL, methods[1]);
- }
- if (SHAM) createNonEnumerableProperty$1(RegExpPrototype[SYMBOL], 'sham', true);
- };
- var isObject$3 = isObject$9;
- var classof$4 = classofRaw$1;
- var wellKnownSymbol$7 = wellKnownSymbol$c;
- var MATCH = wellKnownSymbol$7('match');
- // `IsRegExp` abstract operation
- // https://tc39.es/ecma262/#sec-isregexp
- var isRegexp = function (it) {
- var isRegExp;
- return isObject$3(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof$4(it) == 'RegExp');
- };
- var uncurryThis$9 = functionUncurryThis;
- var fails$6 = fails$j;
- var isCallable$2 = isCallable$e;
- var classof$3 = classof$6;
- var getBuiltIn = getBuiltIn$5;
- var inspectSource = inspectSource$3;
- var noop = function () { /* empty */ };
- var empty = [];
- var construct = getBuiltIn('Reflect', 'construct');
- var constructorRegExp = /^\s*(?:class|function)\b/;
- var exec$1 = uncurryThis$9(constructorRegExp.exec);
- var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
- var isConstructorModern = function isConstructor(argument) {
- if (!isCallable$2(argument)) return false;
- try {
- construct(noop, empty, argument);
- return true;
- } catch (error) {
- return false;
- }
- };
- var isConstructorLegacy = function isConstructor(argument) {
- if (!isCallable$2(argument)) return false;
- switch (classof$3(argument)) {
- case 'AsyncFunction':
- case 'GeneratorFunction':
- case 'AsyncGeneratorFunction': return false;
- }
- try {
- // we can't check .prototype since constructors produced by .bind haven't it
- // `Function#toString` throws on some built-it function in some legacy engines
- // (for example, `DOMQuad` and similar in FF41-)
- return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
- } catch (error) {
- return true;
- }
- };
- isConstructorLegacy.sham = true;
- // `IsConstructor` abstract operation
- // https://tc39.es/ecma262/#sec-isconstructor
- var isConstructor$3 = !construct || fails$6(function () {
- var called;
- return isConstructorModern(isConstructorModern.call)
- || !isConstructorModern(Object)
- || !isConstructorModern(function () { called = true; })
- || called;
- }) ? isConstructorLegacy : isConstructorModern;
- var global$7 = global$x;
- var isConstructor$2 = isConstructor$3;
- var tryToString = tryToString$2;
- var TypeError$3 = global$7.TypeError;
- // `Assert: IsConstructor(argument) is true`
- var aConstructor$1 = function (argument) {
- if (isConstructor$2(argument)) return argument;
- throw TypeError$3(tryToString(argument) + ' is not a constructor');
- };
- var anObject$3 = anObject$9;
- var aConstructor = aConstructor$1;
- var wellKnownSymbol$6 = wellKnownSymbol$c;
- var SPECIES$3 = wellKnownSymbol$6('species');
- // `SpeciesConstructor` abstract operation
- // https://tc39.es/ecma262/#sec-speciesconstructor
- var speciesConstructor$1 = function (O, defaultConstructor) {
- var C = anObject$3(O).constructor;
- var S;
- return C === undefined || (S = anObject$3(C)[SPECIES$3]) == undefined ? defaultConstructor : aConstructor(S);
- };
- var uncurryThis$8 = functionUncurryThis;
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
- var toString$3 = toString$5;
- var requireObjectCoercible$2 = requireObjectCoercible$5;
- var charAt$2 = uncurryThis$8(''.charAt);
- var charCodeAt = uncurryThis$8(''.charCodeAt);
- var stringSlice$3 = uncurryThis$8(''.slice);
- var createMethod$1 = function (CONVERT_TO_STRING) {
- return function ($this, pos) {
- var S = toString$3(requireObjectCoercible$2($this));
- var position = toIntegerOrInfinity$1(pos);
- var size = S.length;
- var first, second;
- if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
- first = charCodeAt(S, position);
- return first < 0xD800 || first > 0xDBFF || position + 1 === size
- || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
- ? CONVERT_TO_STRING
- ? charAt$2(S, position)
- : first
- : CONVERT_TO_STRING
- ? stringSlice$3(S, position, position + 2)
- : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
- };
- };
- var stringMultibyte = {
- // `String.prototype.codePointAt` method
- // https://tc39.es/ecma262/#sec-string.prototype.codepointat
- codeAt: createMethod$1(false),
- // `String.prototype.at` method
- // https://github.com/mathiasbynens/String.prototype.at
- charAt: createMethod$1(true)
- };
- var charAt$1 = stringMultibyte.charAt;
- // `AdvanceStringIndex` abstract operation
- // https://tc39.es/ecma262/#sec-advancestringindex
- var advanceStringIndex$2 = function (S, index, unicode) {
- return index + (unicode ? charAt$1(S, index).length : 1);
- };
- var toPropertyKey = toPropertyKey$3;
- var definePropertyModule$1 = objectDefineProperty;
- var createPropertyDescriptor = createPropertyDescriptor$3;
- var createProperty$3 = function (object, key, value) {
- var propertyKey = toPropertyKey(key);
- if (propertyKey in object) definePropertyModule$1.f(object, propertyKey, createPropertyDescriptor(0, value));
- else object[propertyKey] = value;
- };
- var global$6 = global$x;
- var toAbsoluteIndex$1 = toAbsoluteIndex$3;
- var lengthOfArrayLike$3 = lengthOfArrayLike$5;
- var createProperty$2 = createProperty$3;
- var Array$3 = global$6.Array;
- var max$2 = Math.max;
- var arraySliceSimple = function (O, start, end) {
- var length = lengthOfArrayLike$3(O);
- var k = toAbsoluteIndex$1(start, length);
- var fin = toAbsoluteIndex$1(end === undefined ? length : end, length);
- var result = Array$3(max$2(fin - k, 0));
- for (var n = 0; k < fin; k++, n++) createProperty$2(result, n, O[k]);
- result.length = n;
- return result;
- };
- var global$5 = global$x;
- var call$3 = functionCall;
- var anObject$2 = anObject$9;
- var isCallable$1 = isCallable$e;
- var classof$2 = classofRaw$1;
- var regexpExec$1 = regexpExec$3;
- var TypeError$2 = global$5.TypeError;
- // `RegExpExec` abstract operation
- // https://tc39.es/ecma262/#sec-regexpexec
- var regexpExecAbstract = function (R, S) {
- var exec = R.exec;
- if (isCallable$1(exec)) {
- var result = call$3(exec, R, S);
- if (result !== null) anObject$2(result);
- return result;
- }
- if (classof$2(R) === 'RegExp') return call$3(regexpExec$1, R, S);
- throw TypeError$2('RegExp#exec called on incompatible receiver');
- };
- var apply$1 = functionApply;
- var call$2 = functionCall;
- var uncurryThis$7 = functionUncurryThis;
- var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
- var isRegExp = isRegexp;
- var anObject$1 = anObject$9;
- var requireObjectCoercible$1 = requireObjectCoercible$5;
- var speciesConstructor = speciesConstructor$1;
- var advanceStringIndex$1 = advanceStringIndex$2;
- var toLength$1 = toLength$3;
- var toString$2 = toString$5;
- var getMethod$1 = getMethod$3;
- var arraySlice$1 = arraySliceSimple;
- var callRegExpExec = regexpExecAbstract;
- var regexpExec = regexpExec$3;
- var stickyHelpers = regexpStickyHelpers;
- var fails$5 = fails$j;
- var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
- var MAX_UINT32 = 0xFFFFFFFF;
- var min$1 = Math.min;
- var $push = [].push;
- var exec = uncurryThis$7(/./.exec);
- var push$2 = uncurryThis$7($push);
- var stringSlice$2 = uncurryThis$7(''.slice);
- // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
- // Weex JS has frozen built-in prototypes, so use try / catch wrapper
- var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$5(function () {
- // eslint-disable-next-line regexp/no-empty-group -- required for testing
- var re = /(?:)/;
- var originalExec = re.exec;
- re.exec = function () { return originalExec.apply(this, arguments); };
- var result = 'ab'.split(re);
- return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
- });
- // @@split logic
- fixRegExpWellKnownSymbolLogic$1('split', function (SPLIT, nativeSplit, maybeCallNative) {
- var internalSplit;
- if (
- 'abbc'.split(/(b)*/)[1] == 'c' ||
- // eslint-disable-next-line regexp/no-empty-group -- required for testing
- 'test'.split(/(?:)/, -1).length != 4 ||
- 'ab'.split(/(?:ab)*/).length != 2 ||
- '.'.split(/(.?)(.?)/).length != 4 ||
- // eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
- '.'.split(/()()/).length > 1 ||
- ''.split(/.?/).length
- ) {
- // based on es5-shim implementation, need to rework it
- internalSplit = function (separator, limit) {
- var string = toString$2(requireObjectCoercible$1(this));
- var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
- if (lim === 0) return [];
- if (separator === undefined) return [string];
- // If `separator` is not a regex, use native split
- if (!isRegExp(separator)) {
- return call$2(nativeSplit, string, separator, lim);
- }
- var output = [];
- var flags = (separator.ignoreCase ? 'i' : '') +
- (separator.multiline ? 'm' : '') +
- (separator.unicode ? 'u' : '') +
- (separator.sticky ? 'y' : '');
- var lastLastIndex = 0;
- // Make `global` and avoid `lastIndex` issues by working with a copy
- var separatorCopy = new RegExp(separator.source, flags + 'g');
- var match, lastIndex, lastLength;
- while (match = call$2(regexpExec, separatorCopy, string)) {
- lastIndex = separatorCopy.lastIndex;
- if (lastIndex > lastLastIndex) {
- push$2(output, stringSlice$2(string, lastLastIndex, match.index));
- if (match.length > 1 && match.index < string.length) apply$1($push, output, arraySlice$1(match, 1));
- lastLength = match[0].length;
- lastLastIndex = lastIndex;
- if (output.length >= lim) break;
- }
- if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
- }
- if (lastLastIndex === string.length) {
- if (lastLength || !exec(separatorCopy, '')) push$2(output, '');
- } else push$2(output, stringSlice$2(string, lastLastIndex));
- return output.length > lim ? arraySlice$1(output, 0, lim) : output;
- };
- // Chakra, V8
- } else if ('0'.split(undefined, 0).length) {
- internalSplit = function (separator, limit) {
- return separator === undefined && limit === 0 ? [] : call$2(nativeSplit, this, separator, limit);
- };
- } else internalSplit = nativeSplit;
- return [
- // `String.prototype.split` method
- // https://tc39.es/ecma262/#sec-string.prototype.split
- function split(separator, limit) {
- var O = requireObjectCoercible$1(this);
- var splitter = separator == undefined ? undefined : getMethod$1(separator, SPLIT);
- return splitter
- ? call$2(splitter, separator, O, limit)
- : call$2(internalSplit, toString$2(O), separator, limit);
- },
- // `RegExp.prototype[@@split]` method
- // https://tc39.es/ecma262/#sec-regexp.prototype-@@split
- //
- // NOTE: This cannot be properly polyfilled in engines that don't support
- // the 'y' flag.
- function (string, limit) {
- var rx = anObject$1(this);
- var S = toString$2(string);
- var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
- if (res.done) return res.value;
- var C = speciesConstructor(rx, RegExp);
- var unicodeMatching = rx.unicode;
- var flags = (rx.ignoreCase ? 'i' : '') +
- (rx.multiline ? 'm' : '') +
- (rx.unicode ? 'u' : '') +
- (UNSUPPORTED_Y ? 'g' : 'y');
- // ^(? + rx + ) is needed, in combination with some S slicing, to
- // simulate the 'y' flag.
- var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
- var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
- if (lim === 0) return [];
- if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
- var p = 0;
- var q = 0;
- var A = [];
- while (q < S.length) {
- splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
- var z = callRegExpExec(splitter, UNSUPPORTED_Y ? stringSlice$2(S, q) : S);
- var e;
- if (
- z === null ||
- (e = min$1(toLength$1(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p
- ) {
- q = advanceStringIndex$1(S, q, unicodeMatching);
- } else {
- push$2(A, stringSlice$2(S, p, q));
- if (A.length === lim) return A;
- for (var i = 1; i <= z.length - 1; i++) {
- push$2(A, z[i]);
- if (A.length === lim) return A;
- }
- q = p = e;
- }
- }
- push$2(A, stringSlice$2(S, p));
- return A;
- }
- ];
- }, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
- var uncurryThis$6 = functionUncurryThis;
- var toObject$3 = toObject$5;
- var floor = Math.floor;
- var charAt = uncurryThis$6(''.charAt);
- var replace = uncurryThis$6(''.replace);
- var stringSlice$1 = uncurryThis$6(''.slice);
- var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
- var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
- // `GetSubstitution` abstract operation
- // https://tc39.es/ecma262/#sec-getsubstitution
- var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
- var tailPos = position + matched.length;
- var m = captures.length;
- var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
- if (namedCaptures !== undefined) {
- namedCaptures = toObject$3(namedCaptures);
- symbols = SUBSTITUTION_SYMBOLS;
- }
- return replace(replacement, symbols, function (match, ch) {
- var capture;
- switch (charAt(ch, 0)) {
- case '$': return '$';
- case '&': return matched;
- case '`': return stringSlice$1(str, 0, position);
- case "'": return stringSlice$1(str, tailPos);
- case '<':
- capture = namedCaptures[stringSlice$1(ch, 1, -1)];
- break;
- default: // \d\d?
- var n = +ch;
- if (n === 0) return match;
- if (n > m) {
- var f = floor(n / 10);
- if (f === 0) return match;
- if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
- return match;
- }
- capture = captures[n - 1];
- }
- return capture === undefined ? '' : capture;
- });
- };
- var apply = functionApply;
- var call$1 = functionCall;
- var uncurryThis$5 = functionUncurryThis;
- var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
- var fails$4 = fails$j;
- var anObject = anObject$9;
- var isCallable = isCallable$e;
- var toIntegerOrInfinity = toIntegerOrInfinity$4;
- var toLength = toLength$3;
- var toString$1 = toString$5;
- var requireObjectCoercible = requireObjectCoercible$5;
- var advanceStringIndex = advanceStringIndex$2;
- var getMethod = getMethod$3;
- var getSubstitution = getSubstitution$1;
- var regExpExec = regexpExecAbstract;
- var wellKnownSymbol$5 = wellKnownSymbol$c;
- var REPLACE = wellKnownSymbol$5('replace');
- var max$1 = Math.max;
- var min = Math.min;
- var concat$1 = uncurryThis$5([].concat);
- var push$1 = uncurryThis$5([].push);
- var stringIndexOf = uncurryThis$5(''.indexOf);
- var stringSlice = uncurryThis$5(''.slice);
- var maybeToString = function (it) {
- return it === undefined ? it : String(it);
- };
- // IE <= 11 replaces $0 with the whole match, as if it was $&
- // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
- var REPLACE_KEEPS_$0 = (function () {
- // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
- return 'a'.replace(/./, '$0') === '$0';
- })();
- // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
- var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
- if (/./[REPLACE]) {
- return /./[REPLACE]('a', '$0') === '';
- }
- return false;
- })();
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$4(function () {
- var re = /./;
- re.exec = function () {
- var result = [];
- result.groups = { a: '7' };
- return result;
- };
- // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
- return ''.replace(re, '$<a>') !== '7';
- });
- // @@replace logic
- fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
- var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
- return [
- // `String.prototype.replace` method
- // https://tc39.es/ecma262/#sec-string.prototype.replace
- function replace(searchValue, replaceValue) {
- var O = requireObjectCoercible(this);
- var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
- return replacer
- ? call$1(replacer, searchValue, O, replaceValue)
- : call$1(nativeReplace, toString$1(O), searchValue, replaceValue);
- },
- // `RegExp.prototype[@@replace]` method
- // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
- function (string, replaceValue) {
- var rx = anObject(this);
- var S = toString$1(string);
- if (
- typeof replaceValue == 'string' &&
- stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
- stringIndexOf(replaceValue, '$<') === -1
- ) {
- var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
- if (res.done) return res.value;
- }
- var functionalReplace = isCallable(replaceValue);
- if (!functionalReplace) replaceValue = toString$1(replaceValue);
- var global = rx.global;
- if (global) {
- var fullUnicode = rx.unicode;
- rx.lastIndex = 0;
- }
- var results = [];
- while (true) {
- var result = regExpExec(rx, S);
- if (result === null) break;
- push$1(results, result);
- if (!global) break;
- var matchStr = toString$1(result[0]);
- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
- }
- var accumulatedResult = '';
- var nextSourcePosition = 0;
- for (var i = 0; i < results.length; i++) {
- result = results[i];
- var matched = toString$1(result[0]);
- var position = max$1(min(toIntegerOrInfinity(result.index), S.length), 0);
- var captures = [];
- // NOTE: This is equivalent to
- // captures = result.slice(1).map(maybeToString)
- // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
- // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
- // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
- for (var j = 1; j < result.length; j++) push$1(captures, maybeToString(result[j]));
- var namedCaptures = result.groups;
- if (functionalReplace) {
- var replacerArgs = concat$1([matched], captures, position, S);
- if (namedCaptures !== undefined) push$1(replacerArgs, namedCaptures);
- var replacement = toString$1(apply(replaceValue, undefined, replacerArgs));
- } else {
- replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
- }
- if (position >= nextSourcePosition) {
- accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
- nextSourcePosition = position + matched.length;
- }
- }
- return accumulatedResult + stringSlice(S, nextSourcePosition);
- }
- ];
- }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
- var classof$1 = classofRaw$1;
- // `IsArray` abstract operation
- // https://tc39.es/ecma262/#sec-isarray
- // eslint-disable-next-line es-x/no-array-isarray -- safe
- var isArray$3 = Array.isArray || function isArray(argument) {
- return classof$1(argument) == 'Array';
- };
- var fails$3 = fails$j;
- var wellKnownSymbol$4 = wellKnownSymbol$c;
- var V8_VERSION$1 = engineV8Version;
- var SPECIES$2 = wellKnownSymbol$4('species');
- var arrayMethodHasSpeciesSupport$3 = function (METHOD_NAME) {
- // We can't use this feature detection in V8 since it causes
- // deoptimization and serious performance degradation
- // https://github.com/zloirock/core-js/issues/677
- return V8_VERSION$1 >= 51 || !fails$3(function () {
- var array = [];
- var constructor = array.constructor = {};
- constructor[SPECIES$2] = function () {
- return { foo: 1 };
- };
- return array[METHOD_NAME](Boolean).foo !== 1;
- });
- };
- var uncurryThis$4 = functionUncurryThis;
- var arraySlice = uncurryThis$4([].slice);
- var $$5 = _export;
- var global$4 = global$x;
- var isArray$2 = isArray$3;
- var isConstructor$1 = isConstructor$3;
- var isObject$2 = isObject$9;
- var toAbsoluteIndex = toAbsoluteIndex$3;
- var lengthOfArrayLike$2 = lengthOfArrayLike$5;
- var toIndexedObject$1 = toIndexedObject$6;
- var createProperty$1 = createProperty$3;
- var wellKnownSymbol$3 = wellKnownSymbol$c;
- var arrayMethodHasSpeciesSupport$2 = arrayMethodHasSpeciesSupport$3;
- var un$Slice = arraySlice;
- var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$2('slice');
- var SPECIES$1 = wellKnownSymbol$3('species');
- var Array$2 = global$4.Array;
- var max = Math.max;
- // `Array.prototype.slice` method
- // https://tc39.es/ecma262/#sec-array.prototype.slice
- // fallback for not array-like ES3 strings and DOM objects
- $$5({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
- slice: function slice(start, end) {
- var O = toIndexedObject$1(this);
- var length = lengthOfArrayLike$2(O);
- var k = toAbsoluteIndex(start, length);
- var fin = toAbsoluteIndex(end === undefined ? length : end, length);
- // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
- var Constructor, result, n;
- if (isArray$2(O)) {
- Constructor = O.constructor;
- // cross-realm fallback
- if (isConstructor$1(Constructor) && (Constructor === Array$2 || isArray$2(Constructor.prototype))) {
- Constructor = undefined;
- } else if (isObject$2(Constructor)) {
- Constructor = Constructor[SPECIES$1];
- if (Constructor === null) Constructor = undefined;
- }
- if (Constructor === Array$2 || Constructor === undefined) {
- return un$Slice(O, k, fin);
- }
- }
- result = new (Constructor === undefined ? Array$2 : Constructor)(max(fin - k, 0));
- for (n = 0; k < fin; k++, n++) if (k in O) createProperty$1(result, n, O[k]);
- result.length = n;
- return result;
- }
- });
- var uncurryThis$3 = functionUncurryThis;
- var aCallable = aCallable$2;
- var NATIVE_BIND = functionBindNative;
- var bind$1 = uncurryThis$3(uncurryThis$3.bind);
- // optional / simple context binding
- var functionBindContext = function (fn, that) {
- aCallable(fn);
- return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
- return fn.apply(that, arguments);
- };
- };
- var global$3 = global$x;
- var isArray$1 = isArray$3;
- var isConstructor = isConstructor$3;
- var isObject$1 = isObject$9;
- var wellKnownSymbol$2 = wellKnownSymbol$c;
- var SPECIES = wellKnownSymbol$2('species');
- var Array$1 = global$3.Array;
- // a part of `ArraySpeciesCreate` abstract operation
- // https://tc39.es/ecma262/#sec-arrayspeciescreate
- var arraySpeciesConstructor$1 = function (originalArray) {
- var C;
- if (isArray$1(originalArray)) {
- C = originalArray.constructor;
- // cross-realm fallback
- if (isConstructor(C) && (C === Array$1 || isArray$1(C.prototype))) C = undefined;
- else if (isObject$1(C)) {
- C = C[SPECIES];
- if (C === null) C = undefined;
- }
- } return C === undefined ? Array$1 : C;
- };
- var arraySpeciesConstructor = arraySpeciesConstructor$1;
- // `ArraySpeciesCreate` abstract operation
- // https://tc39.es/ecma262/#sec-arrayspeciescreate
- var arraySpeciesCreate$2 = function (originalArray, length) {
- return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
- };
- var bind = functionBindContext;
- var uncurryThis$2 = functionUncurryThis;
- var IndexedObject$2 = indexedObject;
- var toObject$2 = toObject$5;
- var lengthOfArrayLike$1 = lengthOfArrayLike$5;
- var arraySpeciesCreate$1 = arraySpeciesCreate$2;
- var push = uncurryThis$2([].push);
- // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
- var createMethod = function (TYPE) {
- var IS_MAP = TYPE == 1;
- var IS_FILTER = TYPE == 2;
- var IS_SOME = TYPE == 3;
- var IS_EVERY = TYPE == 4;
- var IS_FIND_INDEX = TYPE == 6;
- var IS_FILTER_REJECT = TYPE == 7;
- var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
- return function ($this, callbackfn, that, specificCreate) {
- var O = toObject$2($this);
- var self = IndexedObject$2(O);
- var boundFunction = bind(callbackfn, that);
- var length = lengthOfArrayLike$1(self);
- var index = 0;
- var create = specificCreate || arraySpeciesCreate$1;
- var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
- var value, result;
- for (;length > index; index++) if (NO_HOLES || index in self) {
- value = self[index];
- result = boundFunction(value, index, O);
- if (TYPE) {
- if (IS_MAP) target[index] = result; // map
- else if (result) switch (TYPE) {
- case 3: return true; // some
- case 5: return value; // find
- case 6: return index; // findIndex
- case 2: push(target, value); // filter
- } else switch (TYPE) {
- case 4: return false; // every
- case 7: push(target, value); // filterReject
- }
- }
- }
- return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
- };
- };
- var arrayIteration = {
- // `Array.prototype.forEach` method
- // https://tc39.es/ecma262/#sec-array.prototype.foreach
- forEach: createMethod(0),
- // `Array.prototype.map` method
- // https://tc39.es/ecma262/#sec-array.prototype.map
- map: createMethod(1),
- // `Array.prototype.filter` method
- // https://tc39.es/ecma262/#sec-array.prototype.filter
- filter: createMethod(2),
- // `Array.prototype.some` method
- // https://tc39.es/ecma262/#sec-array.prototype.some
- some: createMethod(3),
- // `Array.prototype.every` method
- // https://tc39.es/ecma262/#sec-array.prototype.every
- every: createMethod(4),
- // `Array.prototype.find` method
- // https://tc39.es/ecma262/#sec-array.prototype.find
- find: createMethod(5),
- // `Array.prototype.findIndex` method
- // https://tc39.es/ecma262/#sec-array.prototype.findIndex
- findIndex: createMethod(6),
- // `Array.prototype.filterReject` method
- // https://github.com/tc39/proposal-array-filtering
- filterReject: createMethod(7)
- };
- var $$4 = _export;
- var $map = arrayIteration.map;
- var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$3;
- var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$1('map');
- // `Array.prototype.map` method
- // https://tc39.es/ecma262/#sec-array.prototype.map
- // with adding support of @@species
- $$4({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
- map: function map(callbackfn /* , thisArg */) {
- return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
- }
- });
- var wellKnownSymbol$1 = wellKnownSymbol$c;
- var create = objectCreate;
- var definePropertyModule = objectDefineProperty;
- var UNSCOPABLES = wellKnownSymbol$1('unscopables');
- var ArrayPrototype = Array.prototype;
- // Array.prototype[@@unscopables]
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
- if (ArrayPrototype[UNSCOPABLES] == undefined) {
- definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
- configurable: true,
- value: create(null)
- });
- }
- // add a key to Array.prototype[@@unscopables]
- var addToUnscopables$1 = function (key) {
- ArrayPrototype[UNSCOPABLES][key] = true;
- };
- var $$3 = _export;
- var $find = arrayIteration.find;
- var addToUnscopables = addToUnscopables$1;
- var FIND = 'find';
- var SKIPS_HOLES = true;
- // Shouldn't skip holes
- if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
- // `Array.prototype.find` method
- // https://tc39.es/ecma262/#sec-array.prototype.find
- $$3({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
- find: function find(callbackfn /* , that = undefined */) {
- return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
- }
- });
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
- addToUnscopables(FIND);
- var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
- var classof = classof$6;
- // `Object.prototype.toString` method implementation
- // https://tc39.es/ecma262/#sec-object.prototype.tostring
- var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
- return '[object ' + classof(this) + ']';
- };
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
- var defineBuiltIn = defineBuiltIn$3;
- var toString = objectToString;
- // `Object.prototype.toString` method
- // https://tc39.es/ecma262/#sec-object.prototype.tostring
- if (!TO_STRING_TAG_SUPPORT) {
- defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });
- }
- var DESCRIPTORS = descriptors;
- var uncurryThis$1 = functionUncurryThis;
- var call = functionCall;
- var fails$2 = fails$j;
- var objectKeys = objectKeys$2;
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
- var toObject$1 = toObject$5;
- var IndexedObject$1 = indexedObject;
- // eslint-disable-next-line es-x/no-object-assign -- safe
- var $assign = Object.assign;
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
- var defineProperty = Object.defineProperty;
- var concat = uncurryThis$1([].concat);
- // `Object.assign` method
- // https://tc39.es/ecma262/#sec-object.assign
- var objectAssign = !$assign || fails$2(function () {
- // should have correct order of operations (Edge bug)
- if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
- enumerable: true,
- get: function () {
- defineProperty(this, 'b', {
- value: 3,
- enumerable: false
- });
- }
- }), { b: 2 })).b !== 1) return true;
- // should work with symbols and should have deterministic property order (V8 bug)
- var A = {};
- var B = {};
- // eslint-disable-next-line es-x/no-symbol -- safe
- var symbol = Symbol();
- var alphabet = 'abcdefghijklmnopqrst';
- A[symbol] = 7;
- alphabet.split('').forEach(function (chr) { B[chr] = chr; });
- return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
- var T = toObject$1(target);
- var argumentsLength = arguments.length;
- var index = 1;
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
- var propertyIsEnumerable = propertyIsEnumerableModule.f;
- while (argumentsLength > index) {
- var S = IndexedObject$1(arguments[index++]);
- var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
- var length = keys.length;
- var j = 0;
- var key;
- while (length > j) {
- key = keys[j++];
- if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
- }
- } return T;
- } : $assign;
- var $$2 = _export;
- var assign = objectAssign;
- // `Object.assign` method
- // https://tc39.es/ecma262/#sec-object.assign
- // eslint-disable-next-line es-x/no-object-assign -- required for testing
- $$2({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
- assign: assign
- });
- var $$1 = _export;
- var global$2 = global$x;
- var fails$1 = fails$j;
- var isArray = isArray$3;
- var isObject = isObject$9;
- var toObject = toObject$5;
- var lengthOfArrayLike = lengthOfArrayLike$5;
- var createProperty = createProperty$3;
- var arraySpeciesCreate = arraySpeciesCreate$2;
- var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$3;
- var wellKnownSymbol = wellKnownSymbol$c;
- var V8_VERSION = engineV8Version;
- var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
- var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
- var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
- var TypeError$1 = global$2.TypeError;
- // We can't use this feature detection in V8 since it causes
- // deoptimization and serious performance degradation
- // https://github.com/zloirock/core-js/issues/679
- var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$1(function () {
- var array = [];
- array[IS_CONCAT_SPREADABLE] = false;
- return array.concat()[0] !== array;
- });
- var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
- var isConcatSpreadable = function (O) {
- if (!isObject(O)) return false;
- var spreadable = O[IS_CONCAT_SPREADABLE];
- return spreadable !== undefined ? !!spreadable : isArray(O);
- };
- var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
- // `Array.prototype.concat` method
- // https://tc39.es/ecma262/#sec-array.prototype.concat
- // with adding support of @@isConcatSpreadable and @@species
- $$1({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
- // eslint-disable-next-line no-unused-vars -- required for `.length`
- concat: function concat(arg) {
- var O = toObject(this);
- var A = arraySpeciesCreate(O, 0);
- var n = 0;
- var i, k, length, len, E;
- for (i = -1, length = arguments.length; i < length; i++) {
- E = i === -1 ? O : arguments[i];
- if (isConcatSpreadable(E)) {
- len = lengthOfArrayLike(E);
- if (n + len > MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
- for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
- } else {
- if (n >= MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
- createProperty(A, n++, E);
- }
- }
- A.length = n;
- return A;
- }
- });
- var fails = fails$j;
- var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
- var method = [][METHOD_NAME];
- return !!method && fails(function () {
- // eslint-disable-next-line no-useless-call -- required for testing
- method.call(null, argument || function () { return 1; }, 1);
- });
- };
- var $ = _export;
- var uncurryThis = functionUncurryThis;
- var IndexedObject = indexedObject;
- var toIndexedObject = toIndexedObject$6;
- var arrayMethodIsStrict$1 = arrayMethodIsStrict$2;
- var un$Join = uncurryThis([].join);
- var ES3_STRINGS = IndexedObject != Object;
- var STRICT_METHOD$1 = arrayMethodIsStrict$1('join', ',');
- // `Array.prototype.join` method
- // https://tc39.es/ecma262/#sec-array.prototype.join
- $({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$1 }, {
- join: function join(separator) {
- return un$Join(toIndexedObject(this), separator === undefined ? ',' : separator);
- }
- });
- // iterable DOM collections
- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
- var domIterables = {
- CSSRuleList: 0,
- CSSStyleDeclaration: 0,
- CSSValueList: 0,
- ClientRectList: 0,
- DOMRectList: 0,
- DOMStringList: 0,
- DOMTokenList: 1,
- DataTransferItemList: 0,
- FileList: 0,
- HTMLAllCollection: 0,
- HTMLCollection: 0,
- HTMLFormElement: 0,
- HTMLSelectElement: 0,
- MediaList: 0,
- MimeTypeArray: 0,
- NamedNodeMap: 0,
- NodeList: 1,
- PaintRequestList: 0,
- Plugin: 0,
- PluginArray: 0,
- SVGLengthList: 0,
- SVGNumberList: 0,
- SVGPathSegList: 0,
- SVGPointList: 0,
- SVGStringList: 0,
- SVGTransformList: 0,
- SourceBufferList: 0,
- StyleSheetList: 0,
- TextTrackCueList: 0,
- TextTrackList: 0,
- TouchList: 0
- };
- // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
- var documentCreateElement = documentCreateElement$2;
- var classList = documentCreateElement('span').classList;
- var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
- var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
- var $forEach = arrayIteration.forEach;
- var arrayMethodIsStrict = arrayMethodIsStrict$2;
- var STRICT_METHOD = arrayMethodIsStrict('forEach');
- // `Array.prototype.forEach` method implementation
- // https://tc39.es/ecma262/#sec-array.prototype.foreach
- var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
- return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
- // eslint-disable-next-line es-x/no-array-prototype-foreach -- safe
- } : [].forEach;
- var global$1 = global$x;
- var DOMIterables = domIterables;
- var DOMTokenListPrototype = domTokenListPrototype;
- var forEach = arrayForEach;
- var createNonEnumerableProperty = createNonEnumerableProperty$5;
- var handlePrototype = function (CollectionPrototype) {
- // some Chrome versions have non-configurable methods on DOMTokenList
- if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
- createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
- } catch (error) {
- CollectionPrototype.forEach = forEach;
- }
- };
- for (var COLLECTION_NAME in DOMIterables) {
- if (DOMIterables[COLLECTION_NAME]) {
- handlePrototype(global$1[COLLECTION_NAME] && global$1[COLLECTION_NAME].prototype);
- }
- }
- handlePrototype(DOMTokenListPrototype);
- /**
- * @author zhixin wen <wenzhixin2010@gmail.com>
- * extensions: https://github.com/hhurz/tableExport.jquery.plugin
- */
- var Utils = $__default["default"].fn.bootstrapTable.utils;
- var TYPE_NAME = {
- json: 'JSON',
- xml: 'XML',
- png: 'PNG',
- csv: 'CSV',
- txt: 'TXT',
- sql: 'SQL',
- doc: 'MS-Word',
- excel: 'MS-Excel',
- xlsx: 'MS-Excel (OpenXML)',
- powerpoint: 'MS-Powerpoint',
- pdf: 'PDF'
- };
- $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
- showExport: false,
- exportDataType: 'basic',
- // basic, all, selected
- exportTypes: ['json', 'xml', 'csv', 'txt', 'sql', 'excel'],
- exportOptions: {},
- exportFooter: false
- });
- $__default["default"].extend($__default["default"].fn.bootstrapTable.columnDefaults, {
- forceExport: false,
- forceHide: false
- });
- $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults.icons, {
- export: {
- bootstrap3: 'glyphicon-export icon-share',
- bootstrap5: 'bi-download',
- materialize: 'file_download',
- 'bootstrap-table': 'icon-download'
- }[$__default["default"].fn.bootstrapTable.theme] || 'fa-download'
- });
- $__default["default"].extend($__default["default"].fn.bootstrapTable.locales, {
- formatExport: function formatExport() {
- return 'Export data';
- }
- });
- $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, $__default["default"].fn.bootstrapTable.locales);
- $__default["default"].fn.bootstrapTable.methods.push('exportTable');
- $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
- // eslint-disable-next-line no-unused-vars
- onExportSaved: function onExportSaved(exportedRows) {
- return false;
- }
- });
- $__default["default"].extend($__default["default"].fn.bootstrapTable.Constructor.EVENTS, {
- 'export-saved.bs.table': 'onExportSaved'
- });
- $__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
- _inherits(_class, _$$BootstrapTable);
- var _super = _createSuper(_class);
- function _class() {
- _classCallCheck(this, _class);
- return _super.apply(this, arguments);
- }
- _createClass(_class, [{
- key: "initToolbar",
- value: function initToolbar() {
- var _this = this,
- _get2;
- var o = this.options;
- var exportTypes = o.exportTypes;
- this.showToolbar = this.showToolbar || o.showExport;
- if (this.options.showExport) {
- if (typeof exportTypes === 'string') {
- var types = exportTypes.slice(1, -1).replace(/ /g, '').split(',');
- exportTypes = types.map(function (t) {
- return t.slice(1, -1);
- });
- }
- if (typeof o.exportOptions === 'string') {
- o.exportOptions = Utils.calculateObjectValue(null, o.exportOptions);
- }
- this.$export = this.$toolbar.find('>.columns div.export');
- if (this.$export.length) {
- this.updateExportButton();
- return;
- }
- this.buttons = Object.assign(this.buttons, {
- export: {
- html: function html() {
- if (exportTypes.length === 1) {
- return "\n <div class=\"export ".concat(_this.constants.classes.buttonsDropdown, "\"\n data-type=\"").concat(exportTypes[0], "\">\n <button class=\"").concat(_this.constants.buttonsClass, "\"\n aria-label=\"Export\"\n type=\"button\"\n title=\"").concat(o.formatExport(), "\">\n ").concat(o.showButtonIcons ? Utils.sprintf(_this.constants.html.icon, o.iconsPrefix, o.icons.export) : '', "\n ").concat(o.showButtonText ? o.formatExport() : '', "\n </button>\n </div>\n ");
- }
- var html = [];
- html.push("\n <div class=\"export ".concat(_this.constants.classes.buttonsDropdown, "\">\n <button class=\"").concat(_this.constants.buttonsClass, " dropdown-toggle\"\n aria-label=\"Export\"\n ").concat(_this.constants.dataToggle, "=\"dropdown\"\n type=\"button\"\n title=\"").concat(o.formatExport(), "\">\n ").concat(o.showButtonIcons ? Utils.sprintf(_this.constants.html.icon, o.iconsPrefix, o.icons.export) : '', "\n ").concat(o.showButtonText ? o.formatExport() : '', "\n ").concat(_this.constants.html.dropdownCaret, "\n </button>\n ").concat(_this.constants.html.toolbarDropdown[0], "\n "));
- var _iterator = _createForOfIteratorHelper(exportTypes),
- _step;
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- var type = _step.value;
- if (TYPE_NAME.hasOwnProperty(type)) {
- var $item = $__default["default"](Utils.sprintf(_this.constants.html.pageDropdownItem, '', TYPE_NAME[type]));
- $item.attr('data-type', type);
- html.push($item.prop('outerHTML'));
- }
- }
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
- html.push(_this.constants.html.toolbarDropdown[1], '</div>');
- return html.join('');
- }
- }
- });
- }
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- (_get2 = _get(_getPrototypeOf(_class.prototype), "initToolbar", this)).call.apply(_get2, [this].concat(args));
- this.$export = this.$toolbar.find('>.columns div.export');
- if (!this.options.showExport) {
- return;
- }
- this.updateExportButton();
- var $exportButtons = this.$export.find('[data-type]');
- if (exportTypes.length === 1) {
- $exportButtons = this.$export;
- }
- $exportButtons.click(function (e) {
- e.preventDefault();
- _this.exportTable({
- type: $__default["default"](e.currentTarget).data('type')
- });
- });
- this.handleToolbar();
- }
- }, {
- key: "handleToolbar",
- value: function handleToolbar() {
- if (!this.$export) {
- return;
- }
- if (_get(_getPrototypeOf(_class.prototype), "handleToolbar", this)) {
- _get(_getPrototypeOf(_class.prototype), "handleToolbar", this).call(this);
- }
- }
- }, {
- key: "exportTable",
- value: function exportTable(options) {
- var _this2 = this;
- var o = this.options;
- var stateField = this.header.stateField;
- var isCardView = o.cardView;
- var doExport = function doExport(callback) {
- if (stateField) {
- _this2.hideColumn(stateField);
- }
- if (isCardView) {
- _this2.toggleView();
- }
- _this2.columns.forEach(function (row) {
- if (row.forceHide) {
- _this2.hideColumn(row.field);
- }
- });
- var data = _this2.getData();
- if (o.detailView && o.detailViewIcon) {
- var detailViewIndex = o.detailViewAlign === 'left' ? 0 : _this2.getVisibleFields().length + Utils.getDetailViewIndexOffset(_this2.options);
- o.exportOptions.ignoreColumn = [detailViewIndex].concat(o.exportOptions.ignoreColumn || []);
- }
- if (o.exportFooter && o.height) {
- var $footerRow = _this2.$tableFooter.find('tr').first();
- var footerData = {};
- var footerHtml = [];
- $__default["default"].each($footerRow.children(), function (index, footerCell) {
- var footerCellHtml = $__default["default"](footerCell).children('.th-inner').first().html();
- footerData[_this2.columns[index].field] = footerCellHtml === ' ' ? null : footerCellHtml; // grab footer cell text into cell index-based array
- footerHtml.push(footerCellHtml);
- });
- _this2.$body.append(_this2.$body.children().last()[0].outerHTML);
- var $lastTableRow = _this2.$body.children().last();
- $__default["default"].each($lastTableRow.children(), function (index, lastTableRowCell) {
- $__default["default"](lastTableRowCell).html(footerHtml[index]);
- });
- }
- var hiddenColumns = _this2.getHiddenColumns();
- hiddenColumns.forEach(function (row) {
- if (row.forceExport) {
- _this2.showColumn(row.field);
- }
- });
- if (typeof o.exportOptions.fileName === 'function') {
- options.fileName = o.exportOptions.fileName();
- }
- _this2.$el.tableExport($__default["default"].extend({
- onAfterSaveToFile: function onAfterSaveToFile() {
- if (o.exportFooter) {
- _this2.load(data);
- }
- if (stateField) {
- _this2.showColumn(stateField);
- }
- if (isCardView) {
- _this2.toggleView();
- }
- hiddenColumns.forEach(function (row) {
- if (row.forceExport) {
- _this2.hideColumn(row.field);
- }
- });
- _this2.columns.forEach(function (row) {
- if (row.forceHide) {
- _this2.showColumn(row.field);
- }
- });
- if (callback) callback();
- }
- }, o.exportOptions, options));
- };
- if (o.exportDataType === 'all' && o.pagination) {
- var eventName = o.sidePagination === 'server' ? 'post-body.bs.table' : 'page-change.bs.table';
- var virtualScroll = this.options.virtualScroll;
- this.$el.one(eventName, function () {
- setTimeout(function () {
- doExport(function () {
- _this2.options.virtualScroll = virtualScroll;
- _this2.togglePagination();
- });
- }, 0);
- });
- this.options.virtualScroll = false;
- this.togglePagination();
- this.trigger('export-saved', this.getData());
- } else if (o.exportDataType === 'selected') {
- var data = this.getData();
- var selectedData = this.getSelections();
- var pagination = o.pagination;
- if (!selectedData.length) {
- return;
- }
- if (o.sidePagination === 'server') {
- data = _defineProperty({
- total: o.totalRows
- }, this.options.dataField, data);
- selectedData = _defineProperty({
- total: selectedData.length
- }, this.options.dataField, selectedData);
- }
- this.load(selectedData);
- if (pagination) {
- this.togglePagination();
- }
- doExport(function () {
- if (pagination) {
- _this2.togglePagination();
- }
- _this2.load(data);
- });
- this.trigger('export-saved', selectedData);
- } else {
- doExport();
- this.trigger('export-saved', this.getData(true));
- }
- }
- }, {
- key: "updateSelected",
- value: function updateSelected() {
- _get(_getPrototypeOf(_class.prototype), "updateSelected", this).call(this);
- this.updateExportButton();
- }
- }, {
- key: "updateExportButton",
- value: function updateExportButton() {
- if (this.options.exportDataType === 'selected') {
- this.$export.find('> button').prop('disabled', !this.getSelections().length);
- }
- }
- }]);
- return _class;
- }($__default["default"].BootstrapTable);
- }));
|