bootstrap-table-editable.js 92 KB

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