bootstrap-table-editable.js 91 KB

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