bootstrap-table-editable.js 88 KB

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