bootstrap-table-editable.js 118 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500
  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 ($) { 'use strict';
  6. function _arrayLikeToArray(r, a) {
  7. (null == a || a > r.length) && (a = r.length);
  8. for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
  9. return n;
  10. }
  11. function _arrayWithHoles(r) {
  12. if (Array.isArray(r)) return r;
  13. }
  14. function _assertThisInitialized(e) {
  15. if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  16. return e;
  17. }
  18. function _callSuper(t, o, e) {
  19. return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
  20. }
  21. function _classCallCheck(a, n) {
  22. if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
  23. }
  24. function _defineProperties(e, r) {
  25. for (var t = 0; t < r.length; t++) {
  26. var o = r[t];
  27. o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
  28. }
  29. }
  30. function _createClass(e, r, t) {
  31. return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
  32. writable: !1
  33. }), e;
  34. }
  35. function _createForOfIteratorHelper(r, e) {
  36. var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  37. if (!t) {
  38. if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) {
  39. t && (r = t);
  40. var n = 0,
  41. F = function () {};
  42. return {
  43. s: F,
  44. n: function () {
  45. return n >= r.length ? {
  46. done: !0
  47. } : {
  48. done: !1,
  49. value: r[n++]
  50. };
  51. },
  52. e: function (r) {
  53. throw r;
  54. },
  55. f: F
  56. };
  57. }
  58. throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  59. }
  60. var o,
  61. a = !0,
  62. u = !1;
  63. return {
  64. s: function () {
  65. t = t.call(r);
  66. },
  67. n: function () {
  68. var r = t.next();
  69. return a = r.done, r;
  70. },
  71. e: function (r) {
  72. u = !0, o = r;
  73. },
  74. f: function () {
  75. try {
  76. a || null == t.return || t.return();
  77. } finally {
  78. if (u) throw o;
  79. }
  80. }
  81. };
  82. }
  83. function _get() {
  84. return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
  85. var p = _superPropBase(e, t);
  86. if (p) {
  87. var n = Object.getOwnPropertyDescriptor(p, t);
  88. return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
  89. }
  90. }, _get.apply(null, arguments);
  91. }
  92. function _getPrototypeOf(t) {
  93. return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
  94. return t.__proto__ || Object.getPrototypeOf(t);
  95. }, _getPrototypeOf(t);
  96. }
  97. function _inherits(t, e) {
  98. if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
  99. t.prototype = Object.create(e && e.prototype, {
  100. constructor: {
  101. value: t,
  102. writable: !0,
  103. configurable: !0
  104. }
  105. }), Object.defineProperty(t, "prototype", {
  106. writable: !1
  107. }), e && _setPrototypeOf(t, e);
  108. }
  109. function _isNativeReflectConstruct() {
  110. try {
  111. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  112. } catch (t) {}
  113. return (_isNativeReflectConstruct = function () {
  114. return !!t;
  115. })();
  116. }
  117. function _iterableToArrayLimit(r, l) {
  118. var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  119. if (null != t) {
  120. var e,
  121. n,
  122. i,
  123. u,
  124. a = [],
  125. f = !0,
  126. o = !1;
  127. try {
  128. if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
  129. } catch (r) {
  130. o = !0, n = r;
  131. } finally {
  132. try {
  133. if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
  134. } finally {
  135. if (o) throw n;
  136. }
  137. }
  138. return a;
  139. }
  140. }
  141. function _nonIterableRest() {
  142. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  143. }
  144. function _possibleConstructorReturn(t, e) {
  145. if (e && ("object" == typeof e || "function" == typeof e)) return e;
  146. if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
  147. return _assertThisInitialized(t);
  148. }
  149. function _setPrototypeOf(t, e) {
  150. return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
  151. return t.__proto__ = e, t;
  152. }, _setPrototypeOf(t, e);
  153. }
  154. function _slicedToArray(r, e) {
  155. return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
  156. }
  157. function _superPropBase(t, o) {
  158. for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
  159. return t;
  160. }
  161. function _superPropGet(t, e, r, o) {
  162. var p = _get(_getPrototypeOf(t.prototype ), e, r);
  163. return function (t) {
  164. return p.apply(r, t);
  165. } ;
  166. }
  167. function _toPrimitive(t, r) {
  168. if ("object" != typeof t || !t) return t;
  169. var e = t[Symbol.toPrimitive];
  170. if (void 0 !== e) {
  171. var i = e.call(t, r);
  172. if ("object" != typeof i) return i;
  173. throw new TypeError("@@toPrimitive must return a primitive value.");
  174. }
  175. return (String )(t);
  176. }
  177. function _toPropertyKey(t) {
  178. var i = _toPrimitive(t, "string");
  179. return "symbol" == typeof i ? i : i + "";
  180. }
  181. function _unsupportedIterableToArray(r, a) {
  182. if (r) {
  183. if ("string" == typeof r) return _arrayLikeToArray(r, a);
  184. var t = {}.toString.call(r).slice(8, -1);
  185. return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
  186. }
  187. }
  188. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  189. var es_array_concat = {};
  190. var globalThis_1;
  191. var hasRequiredGlobalThis;
  192. function requireGlobalThis () {
  193. if (hasRequiredGlobalThis) return globalThis_1;
  194. hasRequiredGlobalThis = 1;
  195. var check = function (it) {
  196. return it && it.Math === Math && it;
  197. };
  198. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  199. globalThis_1 =
  200. // eslint-disable-next-line es/no-global-this -- safe
  201. check(typeof globalThis == 'object' && globalThis) ||
  202. check(typeof window == 'object' && window) ||
  203. // eslint-disable-next-line no-restricted-globals -- safe
  204. check(typeof self == 'object' && self) ||
  205. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  206. check(typeof globalThis_1 == 'object' && globalThis_1) ||
  207. // eslint-disable-next-line no-new-func -- fallback
  208. (function () { return this; })() || Function('return this')();
  209. return globalThis_1;
  210. }
  211. var objectGetOwnPropertyDescriptor = {};
  212. var fails;
  213. var hasRequiredFails;
  214. function requireFails () {
  215. if (hasRequiredFails) return fails;
  216. hasRequiredFails = 1;
  217. fails = function (exec) {
  218. try {
  219. return !!exec();
  220. } catch (error) {
  221. return true;
  222. }
  223. };
  224. return fails;
  225. }
  226. var descriptors;
  227. var hasRequiredDescriptors;
  228. function requireDescriptors () {
  229. if (hasRequiredDescriptors) return descriptors;
  230. hasRequiredDescriptors = 1;
  231. var fails = requireFails();
  232. // Detect IE8's incomplete defineProperty implementation
  233. descriptors = !fails(function () {
  234. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  235. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
  236. });
  237. return descriptors;
  238. }
  239. var functionBindNative;
  240. var hasRequiredFunctionBindNative;
  241. function requireFunctionBindNative () {
  242. if (hasRequiredFunctionBindNative) return functionBindNative;
  243. hasRequiredFunctionBindNative = 1;
  244. var fails = requireFails();
  245. functionBindNative = !fails(function () {
  246. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  247. var test = (function () { /* empty */ }).bind();
  248. // eslint-disable-next-line no-prototype-builtins -- safe
  249. return typeof test != 'function' || test.hasOwnProperty('prototype');
  250. });
  251. return functionBindNative;
  252. }
  253. var functionCall;
  254. var hasRequiredFunctionCall;
  255. function requireFunctionCall () {
  256. if (hasRequiredFunctionCall) return functionCall;
  257. hasRequiredFunctionCall = 1;
  258. var NATIVE_BIND = requireFunctionBindNative();
  259. var call = Function.prototype.call;
  260. functionCall = NATIVE_BIND ? call.bind(call) : function () {
  261. return call.apply(call, arguments);
  262. };
  263. return functionCall;
  264. }
  265. var objectPropertyIsEnumerable = {};
  266. var hasRequiredObjectPropertyIsEnumerable;
  267. function requireObjectPropertyIsEnumerable () {
  268. if (hasRequiredObjectPropertyIsEnumerable) return objectPropertyIsEnumerable;
  269. hasRequiredObjectPropertyIsEnumerable = 1;
  270. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  271. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  272. var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  273. // Nashorn ~ JDK8 bug
  274. var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  275. // `Object.prototype.propertyIsEnumerable` method implementation
  276. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  277. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  278. var descriptor = getOwnPropertyDescriptor(this, V);
  279. return !!descriptor && descriptor.enumerable;
  280. } : $propertyIsEnumerable;
  281. return objectPropertyIsEnumerable;
  282. }
  283. var createPropertyDescriptor;
  284. var hasRequiredCreatePropertyDescriptor;
  285. function requireCreatePropertyDescriptor () {
  286. if (hasRequiredCreatePropertyDescriptor) return createPropertyDescriptor;
  287. hasRequiredCreatePropertyDescriptor = 1;
  288. createPropertyDescriptor = function (bitmap, value) {
  289. return {
  290. enumerable: !(bitmap & 1),
  291. configurable: !(bitmap & 2),
  292. writable: !(bitmap & 4),
  293. value: value
  294. };
  295. };
  296. return createPropertyDescriptor;
  297. }
  298. var functionUncurryThis;
  299. var hasRequiredFunctionUncurryThis;
  300. function requireFunctionUncurryThis () {
  301. if (hasRequiredFunctionUncurryThis) return functionUncurryThis;
  302. hasRequiredFunctionUncurryThis = 1;
  303. var NATIVE_BIND = requireFunctionBindNative();
  304. var FunctionPrototype = Function.prototype;
  305. var call = FunctionPrototype.call;
  306. var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
  307. functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
  308. return function () {
  309. return call.apply(fn, arguments);
  310. };
  311. };
  312. return functionUncurryThis;
  313. }
  314. var classofRaw;
  315. var hasRequiredClassofRaw;
  316. function requireClassofRaw () {
  317. if (hasRequiredClassofRaw) return classofRaw;
  318. hasRequiredClassofRaw = 1;
  319. var uncurryThis = requireFunctionUncurryThis();
  320. var toString = uncurryThis({}.toString);
  321. var stringSlice = uncurryThis(''.slice);
  322. classofRaw = function (it) {
  323. return stringSlice(toString(it), 8, -1);
  324. };
  325. return classofRaw;
  326. }
  327. var indexedObject;
  328. var hasRequiredIndexedObject;
  329. function requireIndexedObject () {
  330. if (hasRequiredIndexedObject) return indexedObject;
  331. hasRequiredIndexedObject = 1;
  332. var uncurryThis = requireFunctionUncurryThis();
  333. var fails = requireFails();
  334. var classof = requireClassofRaw();
  335. var $Object = Object;
  336. var split = uncurryThis(''.split);
  337. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  338. indexedObject = fails(function () {
  339. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  340. // eslint-disable-next-line no-prototype-builtins -- safe
  341. return !$Object('z').propertyIsEnumerable(0);
  342. }) ? function (it) {
  343. return classof(it) === 'String' ? split(it, '') : $Object(it);
  344. } : $Object;
  345. return indexedObject;
  346. }
  347. var isNullOrUndefined;
  348. var hasRequiredIsNullOrUndefined;
  349. function requireIsNullOrUndefined () {
  350. if (hasRequiredIsNullOrUndefined) return isNullOrUndefined;
  351. hasRequiredIsNullOrUndefined = 1;
  352. // we can't use just `it == null` since of `document.all` special case
  353. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  354. isNullOrUndefined = function (it) {
  355. return it === null || it === undefined;
  356. };
  357. return isNullOrUndefined;
  358. }
  359. var requireObjectCoercible;
  360. var hasRequiredRequireObjectCoercible;
  361. function requireRequireObjectCoercible () {
  362. if (hasRequiredRequireObjectCoercible) return requireObjectCoercible;
  363. hasRequiredRequireObjectCoercible = 1;
  364. var isNullOrUndefined = requireIsNullOrUndefined();
  365. var $TypeError = TypeError;
  366. // `RequireObjectCoercible` abstract operation
  367. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  368. requireObjectCoercible = function (it) {
  369. if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
  370. return it;
  371. };
  372. return requireObjectCoercible;
  373. }
  374. var toIndexedObject;
  375. var hasRequiredToIndexedObject;
  376. function requireToIndexedObject () {
  377. if (hasRequiredToIndexedObject) return toIndexedObject;
  378. hasRequiredToIndexedObject = 1;
  379. // toObject with fallback for non-array-like ES3 strings
  380. var IndexedObject = requireIndexedObject();
  381. var requireObjectCoercible = requireRequireObjectCoercible();
  382. toIndexedObject = function (it) {
  383. return IndexedObject(requireObjectCoercible(it));
  384. };
  385. return toIndexedObject;
  386. }
  387. var isCallable;
  388. var hasRequiredIsCallable;
  389. function requireIsCallable () {
  390. if (hasRequiredIsCallable) return isCallable;
  391. hasRequiredIsCallable = 1;
  392. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  393. var documentAll = typeof document == 'object' && document.all;
  394. // `IsCallable` abstract operation
  395. // https://tc39.es/ecma262/#sec-iscallable
  396. // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
  397. isCallable = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
  398. return typeof argument == 'function' || argument === documentAll;
  399. } : function (argument) {
  400. return typeof argument == 'function';
  401. };
  402. return isCallable;
  403. }
  404. var isObject;
  405. var hasRequiredIsObject;
  406. function requireIsObject () {
  407. if (hasRequiredIsObject) return isObject;
  408. hasRequiredIsObject = 1;
  409. var isCallable = requireIsCallable();
  410. isObject = function (it) {
  411. return typeof it == 'object' ? it !== null : isCallable(it);
  412. };
  413. return isObject;
  414. }
  415. var getBuiltIn;
  416. var hasRequiredGetBuiltIn;
  417. function requireGetBuiltIn () {
  418. if (hasRequiredGetBuiltIn) return getBuiltIn;
  419. hasRequiredGetBuiltIn = 1;
  420. var globalThis = requireGlobalThis();
  421. var isCallable = requireIsCallable();
  422. var aFunction = function (argument) {
  423. return isCallable(argument) ? argument : undefined;
  424. };
  425. getBuiltIn = function (namespace, method) {
  426. return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method];
  427. };
  428. return getBuiltIn;
  429. }
  430. var objectIsPrototypeOf;
  431. var hasRequiredObjectIsPrototypeOf;
  432. function requireObjectIsPrototypeOf () {
  433. if (hasRequiredObjectIsPrototypeOf) return objectIsPrototypeOf;
  434. hasRequiredObjectIsPrototypeOf = 1;
  435. var uncurryThis = requireFunctionUncurryThis();
  436. objectIsPrototypeOf = uncurryThis({}.isPrototypeOf);
  437. return objectIsPrototypeOf;
  438. }
  439. var environmentUserAgent;
  440. var hasRequiredEnvironmentUserAgent;
  441. function requireEnvironmentUserAgent () {
  442. if (hasRequiredEnvironmentUserAgent) return environmentUserAgent;
  443. hasRequiredEnvironmentUserAgent = 1;
  444. var globalThis = requireGlobalThis();
  445. var navigator = globalThis.navigator;
  446. var userAgent = navigator && navigator.userAgent;
  447. environmentUserAgent = userAgent ? String(userAgent) : '';
  448. return environmentUserAgent;
  449. }
  450. var environmentV8Version;
  451. var hasRequiredEnvironmentV8Version;
  452. function requireEnvironmentV8Version () {
  453. if (hasRequiredEnvironmentV8Version) return environmentV8Version;
  454. hasRequiredEnvironmentV8Version = 1;
  455. var globalThis = requireGlobalThis();
  456. var userAgent = requireEnvironmentUserAgent();
  457. var process = globalThis.process;
  458. var Deno = globalThis.Deno;
  459. var versions = process && process.versions || Deno && Deno.version;
  460. var v8 = versions && versions.v8;
  461. var match, version;
  462. if (v8) {
  463. match = v8.split('.');
  464. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  465. // but their correct versions are not interesting for us
  466. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  467. }
  468. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  469. // so check `userAgent` even if `.v8` exists, but 0
  470. if (!version && userAgent) {
  471. match = userAgent.match(/Edge\/(\d+)/);
  472. if (!match || match[1] >= 74) {
  473. match = userAgent.match(/Chrome\/(\d+)/);
  474. if (match) version = +match[1];
  475. }
  476. }
  477. environmentV8Version = version;
  478. return environmentV8Version;
  479. }
  480. var symbolConstructorDetection;
  481. var hasRequiredSymbolConstructorDetection;
  482. function requireSymbolConstructorDetection () {
  483. if (hasRequiredSymbolConstructorDetection) return symbolConstructorDetection;
  484. hasRequiredSymbolConstructorDetection = 1;
  485. /* eslint-disable es/no-symbol -- required for testing */
  486. var V8_VERSION = requireEnvironmentV8Version();
  487. var fails = requireFails();
  488. var globalThis = requireGlobalThis();
  489. var $String = globalThis.String;
  490. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  491. symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
  492. var symbol = Symbol('symbol detection');
  493. // Chrome 38 Symbol has incorrect toString conversion
  494. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  495. // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
  496. // of course, fail.
  497. return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
  498. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  499. !Symbol.sham && V8_VERSION && V8_VERSION < 41;
  500. });
  501. return symbolConstructorDetection;
  502. }
  503. var useSymbolAsUid;
  504. var hasRequiredUseSymbolAsUid;
  505. function requireUseSymbolAsUid () {
  506. if (hasRequiredUseSymbolAsUid) return useSymbolAsUid;
  507. hasRequiredUseSymbolAsUid = 1;
  508. /* eslint-disable es/no-symbol -- required for testing */
  509. var NATIVE_SYMBOL = requireSymbolConstructorDetection();
  510. useSymbolAsUid = NATIVE_SYMBOL
  511. && !Symbol.sham
  512. && typeof Symbol.iterator == 'symbol';
  513. return useSymbolAsUid;
  514. }
  515. var isSymbol;
  516. var hasRequiredIsSymbol;
  517. function requireIsSymbol () {
  518. if (hasRequiredIsSymbol) return isSymbol;
  519. hasRequiredIsSymbol = 1;
  520. var getBuiltIn = requireGetBuiltIn();
  521. var isCallable = requireIsCallable();
  522. var isPrototypeOf = requireObjectIsPrototypeOf();
  523. var USE_SYMBOL_AS_UID = requireUseSymbolAsUid();
  524. var $Object = Object;
  525. isSymbol = USE_SYMBOL_AS_UID ? function (it) {
  526. return typeof it == 'symbol';
  527. } : function (it) {
  528. var $Symbol = getBuiltIn('Symbol');
  529. return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
  530. };
  531. return isSymbol;
  532. }
  533. var tryToString;
  534. var hasRequiredTryToString;
  535. function requireTryToString () {
  536. if (hasRequiredTryToString) return tryToString;
  537. hasRequiredTryToString = 1;
  538. var $String = String;
  539. tryToString = function (argument) {
  540. try {
  541. return $String(argument);
  542. } catch (error) {
  543. return 'Object';
  544. }
  545. };
  546. return tryToString;
  547. }
  548. var aCallable;
  549. var hasRequiredACallable;
  550. function requireACallable () {
  551. if (hasRequiredACallable) return aCallable;
  552. hasRequiredACallable = 1;
  553. var isCallable = requireIsCallable();
  554. var tryToString = requireTryToString();
  555. var $TypeError = TypeError;
  556. // `Assert: IsCallable(argument) is true`
  557. aCallable = function (argument) {
  558. if (isCallable(argument)) return argument;
  559. throw new $TypeError(tryToString(argument) + ' is not a function');
  560. };
  561. return aCallable;
  562. }
  563. var getMethod;
  564. var hasRequiredGetMethod;
  565. function requireGetMethod () {
  566. if (hasRequiredGetMethod) return getMethod;
  567. hasRequiredGetMethod = 1;
  568. var aCallable = requireACallable();
  569. var isNullOrUndefined = requireIsNullOrUndefined();
  570. // `GetMethod` abstract operation
  571. // https://tc39.es/ecma262/#sec-getmethod
  572. getMethod = function (V, P) {
  573. var func = V[P];
  574. return isNullOrUndefined(func) ? undefined : aCallable(func);
  575. };
  576. return getMethod;
  577. }
  578. var ordinaryToPrimitive;
  579. var hasRequiredOrdinaryToPrimitive;
  580. function requireOrdinaryToPrimitive () {
  581. if (hasRequiredOrdinaryToPrimitive) return ordinaryToPrimitive;
  582. hasRequiredOrdinaryToPrimitive = 1;
  583. var call = requireFunctionCall();
  584. var isCallable = requireIsCallable();
  585. var isObject = requireIsObject();
  586. var $TypeError = TypeError;
  587. // `OrdinaryToPrimitive` abstract operation
  588. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  589. ordinaryToPrimitive = function (input, pref) {
  590. var fn, val;
  591. if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
  592. if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;
  593. if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
  594. throw new $TypeError("Can't convert object to primitive value");
  595. };
  596. return ordinaryToPrimitive;
  597. }
  598. var sharedStore = {exports: {}};
  599. var isPure;
  600. var hasRequiredIsPure;
  601. function requireIsPure () {
  602. if (hasRequiredIsPure) return isPure;
  603. hasRequiredIsPure = 1;
  604. isPure = false;
  605. return isPure;
  606. }
  607. var defineGlobalProperty;
  608. var hasRequiredDefineGlobalProperty;
  609. function requireDefineGlobalProperty () {
  610. if (hasRequiredDefineGlobalProperty) return defineGlobalProperty;
  611. hasRequiredDefineGlobalProperty = 1;
  612. var globalThis = requireGlobalThis();
  613. // eslint-disable-next-line es/no-object-defineproperty -- safe
  614. var defineProperty = Object.defineProperty;
  615. defineGlobalProperty = function (key, value) {
  616. try {
  617. defineProperty(globalThis, key, { value: value, configurable: true, writable: true });
  618. } catch (error) {
  619. globalThis[key] = value;
  620. } return value;
  621. };
  622. return defineGlobalProperty;
  623. }
  624. var hasRequiredSharedStore;
  625. function requireSharedStore () {
  626. if (hasRequiredSharedStore) return sharedStore.exports;
  627. hasRequiredSharedStore = 1;
  628. var IS_PURE = requireIsPure();
  629. var globalThis = requireGlobalThis();
  630. var defineGlobalProperty = requireDefineGlobalProperty();
  631. var SHARED = '__core-js_shared__';
  632. var store = sharedStore.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
  633. (store.versions || (store.versions = [])).push({
  634. version: '3.38.1',
  635. mode: IS_PURE ? 'pure' : 'global',
  636. copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
  637. license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE',
  638. source: 'https://github.com/zloirock/core-js'
  639. });
  640. return sharedStore.exports;
  641. }
  642. var shared;
  643. var hasRequiredShared;
  644. function requireShared () {
  645. if (hasRequiredShared) return shared;
  646. hasRequiredShared = 1;
  647. var store = requireSharedStore();
  648. shared = function (key, value) {
  649. return store[key] || (store[key] = value || {});
  650. };
  651. return shared;
  652. }
  653. var toObject;
  654. var hasRequiredToObject;
  655. function requireToObject () {
  656. if (hasRequiredToObject) return toObject;
  657. hasRequiredToObject = 1;
  658. var requireObjectCoercible = requireRequireObjectCoercible();
  659. var $Object = Object;
  660. // `ToObject` abstract operation
  661. // https://tc39.es/ecma262/#sec-toobject
  662. toObject = function (argument) {
  663. return $Object(requireObjectCoercible(argument));
  664. };
  665. return toObject;
  666. }
  667. var hasOwnProperty_1;
  668. var hasRequiredHasOwnProperty;
  669. function requireHasOwnProperty () {
  670. if (hasRequiredHasOwnProperty) return hasOwnProperty_1;
  671. hasRequiredHasOwnProperty = 1;
  672. var uncurryThis = requireFunctionUncurryThis();
  673. var toObject = requireToObject();
  674. var hasOwnProperty = uncurryThis({}.hasOwnProperty);
  675. // `HasOwnProperty` abstract operation
  676. // https://tc39.es/ecma262/#sec-hasownproperty
  677. // eslint-disable-next-line es/no-object-hasown -- safe
  678. hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  679. return hasOwnProperty(toObject(it), key);
  680. };
  681. return hasOwnProperty_1;
  682. }
  683. var uid;
  684. var hasRequiredUid;
  685. function requireUid () {
  686. if (hasRequiredUid) return uid;
  687. hasRequiredUid = 1;
  688. var uncurryThis = requireFunctionUncurryThis();
  689. var id = 0;
  690. var postfix = Math.random();
  691. var toString = uncurryThis(1.0.toString);
  692. uid = function (key) {
  693. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
  694. };
  695. return uid;
  696. }
  697. var wellKnownSymbol;
  698. var hasRequiredWellKnownSymbol;
  699. function requireWellKnownSymbol () {
  700. if (hasRequiredWellKnownSymbol) return wellKnownSymbol;
  701. hasRequiredWellKnownSymbol = 1;
  702. var globalThis = requireGlobalThis();
  703. var shared = requireShared();
  704. var hasOwn = requireHasOwnProperty();
  705. var uid = requireUid();
  706. var NATIVE_SYMBOL = requireSymbolConstructorDetection();
  707. var USE_SYMBOL_AS_UID = requireUseSymbolAsUid();
  708. var Symbol = globalThis.Symbol;
  709. var WellKnownSymbolsStore = shared('wks');
  710. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;
  711. wellKnownSymbol = function (name) {
  712. if (!hasOwn(WellKnownSymbolsStore, name)) {
  713. WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)
  714. ? Symbol[name]
  715. : createWellKnownSymbol('Symbol.' + name);
  716. } return WellKnownSymbolsStore[name];
  717. };
  718. return wellKnownSymbol;
  719. }
  720. var toPrimitive;
  721. var hasRequiredToPrimitive;
  722. function requireToPrimitive () {
  723. if (hasRequiredToPrimitive) return toPrimitive;
  724. hasRequiredToPrimitive = 1;
  725. var call = requireFunctionCall();
  726. var isObject = requireIsObject();
  727. var isSymbol = requireIsSymbol();
  728. var getMethod = requireGetMethod();
  729. var ordinaryToPrimitive = requireOrdinaryToPrimitive();
  730. var wellKnownSymbol = requireWellKnownSymbol();
  731. var $TypeError = TypeError;
  732. var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
  733. // `ToPrimitive` abstract operation
  734. // https://tc39.es/ecma262/#sec-toprimitive
  735. toPrimitive = function (input, pref) {
  736. if (!isObject(input) || isSymbol(input)) return input;
  737. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  738. var result;
  739. if (exoticToPrim) {
  740. if (pref === undefined) pref = 'default';
  741. result = call(exoticToPrim, input, pref);
  742. if (!isObject(result) || isSymbol(result)) return result;
  743. throw new $TypeError("Can't convert object to primitive value");
  744. }
  745. if (pref === undefined) pref = 'number';
  746. return ordinaryToPrimitive(input, pref);
  747. };
  748. return toPrimitive;
  749. }
  750. var toPropertyKey;
  751. var hasRequiredToPropertyKey;
  752. function requireToPropertyKey () {
  753. if (hasRequiredToPropertyKey) return toPropertyKey;
  754. hasRequiredToPropertyKey = 1;
  755. var toPrimitive = requireToPrimitive();
  756. var isSymbol = requireIsSymbol();
  757. // `ToPropertyKey` abstract operation
  758. // https://tc39.es/ecma262/#sec-topropertykey
  759. toPropertyKey = function (argument) {
  760. var key = toPrimitive(argument, 'string');
  761. return isSymbol(key) ? key : key + '';
  762. };
  763. return toPropertyKey;
  764. }
  765. var documentCreateElement;
  766. var hasRequiredDocumentCreateElement;
  767. function requireDocumentCreateElement () {
  768. if (hasRequiredDocumentCreateElement) return documentCreateElement;
  769. hasRequiredDocumentCreateElement = 1;
  770. var globalThis = requireGlobalThis();
  771. var isObject = requireIsObject();
  772. var document = globalThis.document;
  773. // typeof document.createElement is 'object' in old IE
  774. var EXISTS = isObject(document) && isObject(document.createElement);
  775. documentCreateElement = function (it) {
  776. return EXISTS ? document.createElement(it) : {};
  777. };
  778. return documentCreateElement;
  779. }
  780. var ie8DomDefine;
  781. var hasRequiredIe8DomDefine;
  782. function requireIe8DomDefine () {
  783. if (hasRequiredIe8DomDefine) return ie8DomDefine;
  784. hasRequiredIe8DomDefine = 1;
  785. var DESCRIPTORS = requireDescriptors();
  786. var fails = requireFails();
  787. var createElement = requireDocumentCreateElement();
  788. // Thanks to IE8 for its funny defineProperty
  789. ie8DomDefine = !DESCRIPTORS && !fails(function () {
  790. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  791. return Object.defineProperty(createElement('div'), 'a', {
  792. get: function () { return 7; }
  793. }).a !== 7;
  794. });
  795. return ie8DomDefine;
  796. }
  797. var hasRequiredObjectGetOwnPropertyDescriptor;
  798. function requireObjectGetOwnPropertyDescriptor () {
  799. if (hasRequiredObjectGetOwnPropertyDescriptor) return objectGetOwnPropertyDescriptor;
  800. hasRequiredObjectGetOwnPropertyDescriptor = 1;
  801. var DESCRIPTORS = requireDescriptors();
  802. var call = requireFunctionCall();
  803. var propertyIsEnumerableModule = requireObjectPropertyIsEnumerable();
  804. var createPropertyDescriptor = requireCreatePropertyDescriptor();
  805. var toIndexedObject = requireToIndexedObject();
  806. var toPropertyKey = requireToPropertyKey();
  807. var hasOwn = requireHasOwnProperty();
  808. var IE8_DOM_DEFINE = requireIe8DomDefine();
  809. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  810. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  811. // `Object.getOwnPropertyDescriptor` method
  812. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  813. objectGetOwnPropertyDescriptor.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
  814. O = toIndexedObject(O);
  815. P = toPropertyKey(P);
  816. if (IE8_DOM_DEFINE) try {
  817. return $getOwnPropertyDescriptor(O, P);
  818. } catch (error) { /* empty */ }
  819. if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
  820. };
  821. return objectGetOwnPropertyDescriptor;
  822. }
  823. var objectDefineProperty = {};
  824. var v8PrototypeDefineBug;
  825. var hasRequiredV8PrototypeDefineBug;
  826. function requireV8PrototypeDefineBug () {
  827. if (hasRequiredV8PrototypeDefineBug) return v8PrototypeDefineBug;
  828. hasRequiredV8PrototypeDefineBug = 1;
  829. var DESCRIPTORS = requireDescriptors();
  830. var fails = requireFails();
  831. // V8 ~ Chrome 36-
  832. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  833. v8PrototypeDefineBug = DESCRIPTORS && fails(function () {
  834. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  835. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  836. value: 42,
  837. writable: false
  838. }).prototype !== 42;
  839. });
  840. return v8PrototypeDefineBug;
  841. }
  842. var anObject;
  843. var hasRequiredAnObject;
  844. function requireAnObject () {
  845. if (hasRequiredAnObject) return anObject;
  846. hasRequiredAnObject = 1;
  847. var isObject = requireIsObject();
  848. var $String = String;
  849. var $TypeError = TypeError;
  850. // `Assert: Type(argument) is Object`
  851. anObject = function (argument) {
  852. if (isObject(argument)) return argument;
  853. throw new $TypeError($String(argument) + ' is not an object');
  854. };
  855. return anObject;
  856. }
  857. var hasRequiredObjectDefineProperty;
  858. function requireObjectDefineProperty () {
  859. if (hasRequiredObjectDefineProperty) return objectDefineProperty;
  860. hasRequiredObjectDefineProperty = 1;
  861. var DESCRIPTORS = requireDescriptors();
  862. var IE8_DOM_DEFINE = requireIe8DomDefine();
  863. var V8_PROTOTYPE_DEFINE_BUG = requireV8PrototypeDefineBug();
  864. var anObject = requireAnObject();
  865. var toPropertyKey = requireToPropertyKey();
  866. var $TypeError = TypeError;
  867. // eslint-disable-next-line es/no-object-defineproperty -- safe
  868. var $defineProperty = Object.defineProperty;
  869. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  870. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  871. var ENUMERABLE = 'enumerable';
  872. var CONFIGURABLE = 'configurable';
  873. var WRITABLE = 'writable';
  874. // `Object.defineProperty` method
  875. // https://tc39.es/ecma262/#sec-object.defineproperty
  876. objectDefineProperty.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
  877. anObject(O);
  878. P = toPropertyKey(P);
  879. anObject(Attributes);
  880. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  881. var current = $getOwnPropertyDescriptor(O, P);
  882. if (current && current[WRITABLE]) {
  883. O[P] = Attributes.value;
  884. Attributes = {
  885. configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
  886. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  887. writable: false
  888. };
  889. }
  890. } return $defineProperty(O, P, Attributes);
  891. } : $defineProperty : function defineProperty(O, P, Attributes) {
  892. anObject(O);
  893. P = toPropertyKey(P);
  894. anObject(Attributes);
  895. if (IE8_DOM_DEFINE) try {
  896. return $defineProperty(O, P, Attributes);
  897. } catch (error) { /* empty */ }
  898. if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
  899. if ('value' in Attributes) O[P] = Attributes.value;
  900. return O;
  901. };
  902. return objectDefineProperty;
  903. }
  904. var createNonEnumerableProperty;
  905. var hasRequiredCreateNonEnumerableProperty;
  906. function requireCreateNonEnumerableProperty () {
  907. if (hasRequiredCreateNonEnumerableProperty) return createNonEnumerableProperty;
  908. hasRequiredCreateNonEnumerableProperty = 1;
  909. var DESCRIPTORS = requireDescriptors();
  910. var definePropertyModule = requireObjectDefineProperty();
  911. var createPropertyDescriptor = requireCreatePropertyDescriptor();
  912. createNonEnumerableProperty = DESCRIPTORS ? function (object, key, value) {
  913. return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
  914. } : function (object, key, value) {
  915. object[key] = value;
  916. return object;
  917. };
  918. return createNonEnumerableProperty;
  919. }
  920. var makeBuiltIn = {exports: {}};
  921. var functionName;
  922. var hasRequiredFunctionName;
  923. function requireFunctionName () {
  924. if (hasRequiredFunctionName) return functionName;
  925. hasRequiredFunctionName = 1;
  926. var DESCRIPTORS = requireDescriptors();
  927. var hasOwn = requireHasOwnProperty();
  928. var FunctionPrototype = Function.prototype;
  929. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  930. var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
  931. var EXISTS = hasOwn(FunctionPrototype, 'name');
  932. // additional protection from minified / mangled / dropped function names
  933. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  934. var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
  935. functionName = {
  936. EXISTS: EXISTS,
  937. PROPER: PROPER,
  938. CONFIGURABLE: CONFIGURABLE
  939. };
  940. return functionName;
  941. }
  942. var inspectSource;
  943. var hasRequiredInspectSource;
  944. function requireInspectSource () {
  945. if (hasRequiredInspectSource) return inspectSource;
  946. hasRequiredInspectSource = 1;
  947. var uncurryThis = requireFunctionUncurryThis();
  948. var isCallable = requireIsCallable();
  949. var store = requireSharedStore();
  950. var functionToString = uncurryThis(Function.toString);
  951. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  952. if (!isCallable(store.inspectSource)) {
  953. store.inspectSource = function (it) {
  954. return functionToString(it);
  955. };
  956. }
  957. inspectSource = store.inspectSource;
  958. return inspectSource;
  959. }
  960. var weakMapBasicDetection;
  961. var hasRequiredWeakMapBasicDetection;
  962. function requireWeakMapBasicDetection () {
  963. if (hasRequiredWeakMapBasicDetection) return weakMapBasicDetection;
  964. hasRequiredWeakMapBasicDetection = 1;
  965. var globalThis = requireGlobalThis();
  966. var isCallable = requireIsCallable();
  967. var WeakMap = globalThis.WeakMap;
  968. weakMapBasicDetection = isCallable(WeakMap) && /native code/.test(String(WeakMap));
  969. return weakMapBasicDetection;
  970. }
  971. var sharedKey;
  972. var hasRequiredSharedKey;
  973. function requireSharedKey () {
  974. if (hasRequiredSharedKey) return sharedKey;
  975. hasRequiredSharedKey = 1;
  976. var shared = requireShared();
  977. var uid = requireUid();
  978. var keys = shared('keys');
  979. sharedKey = function (key) {
  980. return keys[key] || (keys[key] = uid(key));
  981. };
  982. return sharedKey;
  983. }
  984. var hiddenKeys;
  985. var hasRequiredHiddenKeys;
  986. function requireHiddenKeys () {
  987. if (hasRequiredHiddenKeys) return hiddenKeys;
  988. hasRequiredHiddenKeys = 1;
  989. hiddenKeys = {};
  990. return hiddenKeys;
  991. }
  992. var internalState;
  993. var hasRequiredInternalState;
  994. function requireInternalState () {
  995. if (hasRequiredInternalState) return internalState;
  996. hasRequiredInternalState = 1;
  997. var NATIVE_WEAK_MAP = requireWeakMapBasicDetection();
  998. var globalThis = requireGlobalThis();
  999. var isObject = requireIsObject();
  1000. var createNonEnumerableProperty = requireCreateNonEnumerableProperty();
  1001. var hasOwn = requireHasOwnProperty();
  1002. var shared = requireSharedStore();
  1003. var sharedKey = requireSharedKey();
  1004. var hiddenKeys = requireHiddenKeys();
  1005. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  1006. var TypeError = globalThis.TypeError;
  1007. var WeakMap = globalThis.WeakMap;
  1008. var set, get, has;
  1009. var enforce = function (it) {
  1010. return has(it) ? get(it) : set(it, {});
  1011. };
  1012. var getterFor = function (TYPE) {
  1013. return function (it) {
  1014. var state;
  1015. if (!isObject(it) || (state = get(it)).type !== TYPE) {
  1016. throw new TypeError('Incompatible receiver, ' + TYPE + ' required');
  1017. } return state;
  1018. };
  1019. };
  1020. if (NATIVE_WEAK_MAP || shared.state) {
  1021. var store = shared.state || (shared.state = new WeakMap());
  1022. /* eslint-disable no-self-assign -- prototype methods protection */
  1023. store.get = store.get;
  1024. store.has = store.has;
  1025. store.set = store.set;
  1026. /* eslint-enable no-self-assign -- prototype methods protection */
  1027. set = function (it, metadata) {
  1028. if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
  1029. metadata.facade = it;
  1030. store.set(it, metadata);
  1031. return metadata;
  1032. };
  1033. get = function (it) {
  1034. return store.get(it) || {};
  1035. };
  1036. has = function (it) {
  1037. return store.has(it);
  1038. };
  1039. } else {
  1040. var STATE = sharedKey('state');
  1041. hiddenKeys[STATE] = true;
  1042. set = function (it, metadata) {
  1043. if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
  1044. metadata.facade = it;
  1045. createNonEnumerableProperty(it, STATE, metadata);
  1046. return metadata;
  1047. };
  1048. get = function (it) {
  1049. return hasOwn(it, STATE) ? it[STATE] : {};
  1050. };
  1051. has = function (it) {
  1052. return hasOwn(it, STATE);
  1053. };
  1054. }
  1055. internalState = {
  1056. set: set,
  1057. get: get,
  1058. has: has,
  1059. enforce: enforce,
  1060. getterFor: getterFor
  1061. };
  1062. return internalState;
  1063. }
  1064. var hasRequiredMakeBuiltIn;
  1065. function requireMakeBuiltIn () {
  1066. if (hasRequiredMakeBuiltIn) return makeBuiltIn.exports;
  1067. hasRequiredMakeBuiltIn = 1;
  1068. var uncurryThis = requireFunctionUncurryThis();
  1069. var fails = requireFails();
  1070. var isCallable = requireIsCallable();
  1071. var hasOwn = requireHasOwnProperty();
  1072. var DESCRIPTORS = requireDescriptors();
  1073. var CONFIGURABLE_FUNCTION_NAME = requireFunctionName().CONFIGURABLE;
  1074. var inspectSource = requireInspectSource();
  1075. var InternalStateModule = requireInternalState();
  1076. var enforceInternalState = InternalStateModule.enforce;
  1077. var getInternalState = InternalStateModule.get;
  1078. var $String = String;
  1079. // eslint-disable-next-line es/no-object-defineproperty -- safe
  1080. var defineProperty = Object.defineProperty;
  1081. var stringSlice = uncurryThis(''.slice);
  1082. var replace = uncurryThis(''.replace);
  1083. var join = uncurryThis([].join);
  1084. var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
  1085. return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  1086. });
  1087. var TEMPLATE = String(String).split('String');
  1088. var makeBuiltIn$1 = makeBuiltIn.exports = function (value, name, options) {
  1089. if (stringSlice($String(name), 0, 7) === 'Symbol(') {
  1090. name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
  1091. }
  1092. if (options && options.getter) name = 'get ' + name;
  1093. if (options && options.setter) name = 'set ' + name;
  1094. if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  1095. if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
  1096. else value.name = name;
  1097. }
  1098. if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
  1099. defineProperty(value, 'length', { value: options.arity });
  1100. }
  1101. try {
  1102. if (options && hasOwn(options, 'constructor') && options.constructor) {
  1103. if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
  1104. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  1105. } else if (value.prototype) value.prototype = undefined;
  1106. } catch (error) { /* empty */ }
  1107. var state = enforceInternalState(value);
  1108. if (!hasOwn(state, 'source')) {
  1109. state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
  1110. } return value;
  1111. };
  1112. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  1113. // eslint-disable-next-line no-extend-native -- required
  1114. Function.prototype.toString = makeBuiltIn$1(function toString() {
  1115. return isCallable(this) && getInternalState(this).source || inspectSource(this);
  1116. }, 'toString');
  1117. return makeBuiltIn.exports;
  1118. }
  1119. var defineBuiltIn;
  1120. var hasRequiredDefineBuiltIn;
  1121. function requireDefineBuiltIn () {
  1122. if (hasRequiredDefineBuiltIn) return defineBuiltIn;
  1123. hasRequiredDefineBuiltIn = 1;
  1124. var isCallable = requireIsCallable();
  1125. var definePropertyModule = requireObjectDefineProperty();
  1126. var makeBuiltIn = requireMakeBuiltIn();
  1127. var defineGlobalProperty = requireDefineGlobalProperty();
  1128. defineBuiltIn = function (O, key, value, options) {
  1129. if (!options) options = {};
  1130. var simple = options.enumerable;
  1131. var name = options.name !== undefined ? options.name : key;
  1132. if (isCallable(value)) makeBuiltIn(value, name, options);
  1133. if (options.global) {
  1134. if (simple) O[key] = value;
  1135. else defineGlobalProperty(key, value);
  1136. } else {
  1137. try {
  1138. if (!options.unsafe) delete O[key];
  1139. else if (O[key]) simple = true;
  1140. } catch (error) { /* empty */ }
  1141. if (simple) O[key] = value;
  1142. else definePropertyModule.f(O, key, {
  1143. value: value,
  1144. enumerable: false,
  1145. configurable: !options.nonConfigurable,
  1146. writable: !options.nonWritable
  1147. });
  1148. } return O;
  1149. };
  1150. return defineBuiltIn;
  1151. }
  1152. var objectGetOwnPropertyNames = {};
  1153. var mathTrunc;
  1154. var hasRequiredMathTrunc;
  1155. function requireMathTrunc () {
  1156. if (hasRequiredMathTrunc) return mathTrunc;
  1157. hasRequiredMathTrunc = 1;
  1158. var ceil = Math.ceil;
  1159. var floor = Math.floor;
  1160. // `Math.trunc` method
  1161. // https://tc39.es/ecma262/#sec-math.trunc
  1162. // eslint-disable-next-line es/no-math-trunc -- safe
  1163. mathTrunc = Math.trunc || function trunc(x) {
  1164. var n = +x;
  1165. return (n > 0 ? floor : ceil)(n);
  1166. };
  1167. return mathTrunc;
  1168. }
  1169. var toIntegerOrInfinity;
  1170. var hasRequiredToIntegerOrInfinity;
  1171. function requireToIntegerOrInfinity () {
  1172. if (hasRequiredToIntegerOrInfinity) return toIntegerOrInfinity;
  1173. hasRequiredToIntegerOrInfinity = 1;
  1174. var trunc = requireMathTrunc();
  1175. // `ToIntegerOrInfinity` abstract operation
  1176. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  1177. toIntegerOrInfinity = function (argument) {
  1178. var number = +argument;
  1179. // eslint-disable-next-line no-self-compare -- NaN check
  1180. return number !== number || number === 0 ? 0 : trunc(number);
  1181. };
  1182. return toIntegerOrInfinity;
  1183. }
  1184. var toAbsoluteIndex;
  1185. var hasRequiredToAbsoluteIndex;
  1186. function requireToAbsoluteIndex () {
  1187. if (hasRequiredToAbsoluteIndex) return toAbsoluteIndex;
  1188. hasRequiredToAbsoluteIndex = 1;
  1189. var toIntegerOrInfinity = requireToIntegerOrInfinity();
  1190. var max = Math.max;
  1191. var min = Math.min;
  1192. // Helper for a popular repeating case of the spec:
  1193. // Let integer be ? ToInteger(index).
  1194. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  1195. toAbsoluteIndex = function (index, length) {
  1196. var integer = toIntegerOrInfinity(index);
  1197. return integer < 0 ? max(integer + length, 0) : min(integer, length);
  1198. };
  1199. return toAbsoluteIndex;
  1200. }
  1201. var toLength;
  1202. var hasRequiredToLength;
  1203. function requireToLength () {
  1204. if (hasRequiredToLength) return toLength;
  1205. hasRequiredToLength = 1;
  1206. var toIntegerOrInfinity = requireToIntegerOrInfinity();
  1207. var min = Math.min;
  1208. // `ToLength` abstract operation
  1209. // https://tc39.es/ecma262/#sec-tolength
  1210. toLength = function (argument) {
  1211. var len = toIntegerOrInfinity(argument);
  1212. return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  1213. };
  1214. return toLength;
  1215. }
  1216. var lengthOfArrayLike;
  1217. var hasRequiredLengthOfArrayLike;
  1218. function requireLengthOfArrayLike () {
  1219. if (hasRequiredLengthOfArrayLike) return lengthOfArrayLike;
  1220. hasRequiredLengthOfArrayLike = 1;
  1221. var toLength = requireToLength();
  1222. // `LengthOfArrayLike` abstract operation
  1223. // https://tc39.es/ecma262/#sec-lengthofarraylike
  1224. lengthOfArrayLike = function (obj) {
  1225. return toLength(obj.length);
  1226. };
  1227. return lengthOfArrayLike;
  1228. }
  1229. var arrayIncludes;
  1230. var hasRequiredArrayIncludes;
  1231. function requireArrayIncludes () {
  1232. if (hasRequiredArrayIncludes) return arrayIncludes;
  1233. hasRequiredArrayIncludes = 1;
  1234. var toIndexedObject = requireToIndexedObject();
  1235. var toAbsoluteIndex = requireToAbsoluteIndex();
  1236. var lengthOfArrayLike = requireLengthOfArrayLike();
  1237. // `Array.prototype.{ indexOf, includes }` methods implementation
  1238. var createMethod = function (IS_INCLUDES) {
  1239. return function ($this, el, fromIndex) {
  1240. var O = toIndexedObject($this);
  1241. var length = lengthOfArrayLike(O);
  1242. if (length === 0) return !IS_INCLUDES && -1;
  1243. var index = toAbsoluteIndex(fromIndex, length);
  1244. var value;
  1245. // Array#includes uses SameValueZero equality algorithm
  1246. // eslint-disable-next-line no-self-compare -- NaN check
  1247. if (IS_INCLUDES && el !== el) while (length > index) {
  1248. value = O[index++];
  1249. // eslint-disable-next-line no-self-compare -- NaN check
  1250. if (value !== value) return true;
  1251. // Array#indexOf ignores holes, Array#includes - not
  1252. } else for (;length > index; index++) {
  1253. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  1254. } return !IS_INCLUDES && -1;
  1255. };
  1256. };
  1257. arrayIncludes = {
  1258. // `Array.prototype.includes` method
  1259. // https://tc39.es/ecma262/#sec-array.prototype.includes
  1260. includes: createMethod(true),
  1261. // `Array.prototype.indexOf` method
  1262. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  1263. indexOf: createMethod(false)
  1264. };
  1265. return arrayIncludes;
  1266. }
  1267. var objectKeysInternal;
  1268. var hasRequiredObjectKeysInternal;
  1269. function requireObjectKeysInternal () {
  1270. if (hasRequiredObjectKeysInternal) return objectKeysInternal;
  1271. hasRequiredObjectKeysInternal = 1;
  1272. var uncurryThis = requireFunctionUncurryThis();
  1273. var hasOwn = requireHasOwnProperty();
  1274. var toIndexedObject = requireToIndexedObject();
  1275. var indexOf = requireArrayIncludes().indexOf;
  1276. var hiddenKeys = requireHiddenKeys();
  1277. var push = uncurryThis([].push);
  1278. objectKeysInternal = function (object, names) {
  1279. var O = toIndexedObject(object);
  1280. var i = 0;
  1281. var result = [];
  1282. var key;
  1283. for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);
  1284. // Don't enum bug & hidden keys
  1285. while (names.length > i) if (hasOwn(O, key = names[i++])) {
  1286. ~indexOf(result, key) || push(result, key);
  1287. }
  1288. return result;
  1289. };
  1290. return objectKeysInternal;
  1291. }
  1292. var enumBugKeys;
  1293. var hasRequiredEnumBugKeys;
  1294. function requireEnumBugKeys () {
  1295. if (hasRequiredEnumBugKeys) return enumBugKeys;
  1296. hasRequiredEnumBugKeys = 1;
  1297. // IE8- don't enum bug keys
  1298. enumBugKeys = [
  1299. 'constructor',
  1300. 'hasOwnProperty',
  1301. 'isPrototypeOf',
  1302. 'propertyIsEnumerable',
  1303. 'toLocaleString',
  1304. 'toString',
  1305. 'valueOf'
  1306. ];
  1307. return enumBugKeys;
  1308. }
  1309. var hasRequiredObjectGetOwnPropertyNames;
  1310. function requireObjectGetOwnPropertyNames () {
  1311. if (hasRequiredObjectGetOwnPropertyNames) return objectGetOwnPropertyNames;
  1312. hasRequiredObjectGetOwnPropertyNames = 1;
  1313. var internalObjectKeys = requireObjectKeysInternal();
  1314. var enumBugKeys = requireEnumBugKeys();
  1315. var hiddenKeys = enumBugKeys.concat('length', 'prototype');
  1316. // `Object.getOwnPropertyNames` method
  1317. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  1318. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  1319. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  1320. return internalObjectKeys(O, hiddenKeys);
  1321. };
  1322. return objectGetOwnPropertyNames;
  1323. }
  1324. var objectGetOwnPropertySymbols = {};
  1325. var hasRequiredObjectGetOwnPropertySymbols;
  1326. function requireObjectGetOwnPropertySymbols () {
  1327. if (hasRequiredObjectGetOwnPropertySymbols) return objectGetOwnPropertySymbols;
  1328. hasRequiredObjectGetOwnPropertySymbols = 1;
  1329. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  1330. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  1331. return objectGetOwnPropertySymbols;
  1332. }
  1333. var ownKeys;
  1334. var hasRequiredOwnKeys;
  1335. function requireOwnKeys () {
  1336. if (hasRequiredOwnKeys) return ownKeys;
  1337. hasRequiredOwnKeys = 1;
  1338. var getBuiltIn = requireGetBuiltIn();
  1339. var uncurryThis = requireFunctionUncurryThis();
  1340. var getOwnPropertyNamesModule = requireObjectGetOwnPropertyNames();
  1341. var getOwnPropertySymbolsModule = requireObjectGetOwnPropertySymbols();
  1342. var anObject = requireAnObject();
  1343. var concat = uncurryThis([].concat);
  1344. // all object keys, includes non-enumerable and symbols
  1345. ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
  1346. var keys = getOwnPropertyNamesModule.f(anObject(it));
  1347. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  1348. return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
  1349. };
  1350. return ownKeys;
  1351. }
  1352. var copyConstructorProperties;
  1353. var hasRequiredCopyConstructorProperties;
  1354. function requireCopyConstructorProperties () {
  1355. if (hasRequiredCopyConstructorProperties) return copyConstructorProperties;
  1356. hasRequiredCopyConstructorProperties = 1;
  1357. var hasOwn = requireHasOwnProperty();
  1358. var ownKeys = requireOwnKeys();
  1359. var getOwnPropertyDescriptorModule = requireObjectGetOwnPropertyDescriptor();
  1360. var definePropertyModule = requireObjectDefineProperty();
  1361. copyConstructorProperties = function (target, source, exceptions) {
  1362. var keys = ownKeys(source);
  1363. var defineProperty = definePropertyModule.f;
  1364. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  1365. for (var i = 0; i < keys.length; i++) {
  1366. var key = keys[i];
  1367. if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
  1368. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  1369. }
  1370. }
  1371. };
  1372. return copyConstructorProperties;
  1373. }
  1374. var isForced_1;
  1375. var hasRequiredIsForced;
  1376. function requireIsForced () {
  1377. if (hasRequiredIsForced) return isForced_1;
  1378. hasRequiredIsForced = 1;
  1379. var fails = requireFails();
  1380. var isCallable = requireIsCallable();
  1381. var replacement = /#|\.prototype\./;
  1382. var isForced = function (feature, detection) {
  1383. var value = data[normalize(feature)];
  1384. return value === POLYFILL ? true
  1385. : value === NATIVE ? false
  1386. : isCallable(detection) ? fails(detection)
  1387. : !!detection;
  1388. };
  1389. var normalize = isForced.normalize = function (string) {
  1390. return String(string).replace(replacement, '.').toLowerCase();
  1391. };
  1392. var data = isForced.data = {};
  1393. var NATIVE = isForced.NATIVE = 'N';
  1394. var POLYFILL = isForced.POLYFILL = 'P';
  1395. isForced_1 = isForced;
  1396. return isForced_1;
  1397. }
  1398. var _export;
  1399. var hasRequired_export;
  1400. function require_export () {
  1401. if (hasRequired_export) return _export;
  1402. hasRequired_export = 1;
  1403. var globalThis = requireGlobalThis();
  1404. var getOwnPropertyDescriptor = requireObjectGetOwnPropertyDescriptor().f;
  1405. var createNonEnumerableProperty = requireCreateNonEnumerableProperty();
  1406. var defineBuiltIn = requireDefineBuiltIn();
  1407. var defineGlobalProperty = requireDefineGlobalProperty();
  1408. var copyConstructorProperties = requireCopyConstructorProperties();
  1409. var isForced = requireIsForced();
  1410. /*
  1411. options.target - name of the target object
  1412. options.global - target is the global object
  1413. options.stat - export as static methods of target
  1414. options.proto - export as prototype methods of target
  1415. options.real - real prototype method for the `pure` version
  1416. options.forced - export even if the native feature is available
  1417. options.bind - bind methods to the target, required for the `pure` version
  1418. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  1419. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  1420. options.sham - add a flag to not completely full polyfills
  1421. options.enumerable - export as enumerable property
  1422. options.dontCallGetSet - prevent calling a getter on target
  1423. options.name - the .name of the function if it does not match the key
  1424. */
  1425. _export = function (options, source) {
  1426. var TARGET = options.target;
  1427. var GLOBAL = options.global;
  1428. var STATIC = options.stat;
  1429. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  1430. if (GLOBAL) {
  1431. target = globalThis;
  1432. } else if (STATIC) {
  1433. target = globalThis[TARGET] || defineGlobalProperty(TARGET, {});
  1434. } else {
  1435. target = globalThis[TARGET] && globalThis[TARGET].prototype;
  1436. }
  1437. if (target) for (key in source) {
  1438. sourceProperty = source[key];
  1439. if (options.dontCallGetSet) {
  1440. descriptor = getOwnPropertyDescriptor(target, key);
  1441. targetProperty = descriptor && descriptor.value;
  1442. } else targetProperty = target[key];
  1443. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  1444. // contained in target
  1445. if (!FORCED && targetProperty !== undefined) {
  1446. if (typeof sourceProperty == typeof targetProperty) continue;
  1447. copyConstructorProperties(sourceProperty, targetProperty);
  1448. }
  1449. // add a flag to not completely full polyfills
  1450. if (options.sham || (targetProperty && targetProperty.sham)) {
  1451. createNonEnumerableProperty(sourceProperty, 'sham', true);
  1452. }
  1453. defineBuiltIn(target, key, sourceProperty, options);
  1454. }
  1455. };
  1456. return _export;
  1457. }
  1458. var isArray;
  1459. var hasRequiredIsArray;
  1460. function requireIsArray () {
  1461. if (hasRequiredIsArray) return isArray;
  1462. hasRequiredIsArray = 1;
  1463. var classof = requireClassofRaw();
  1464. // `IsArray` abstract operation
  1465. // https://tc39.es/ecma262/#sec-isarray
  1466. // eslint-disable-next-line es/no-array-isarray -- safe
  1467. isArray = Array.isArray || function isArray(argument) {
  1468. return classof(argument) === 'Array';
  1469. };
  1470. return isArray;
  1471. }
  1472. var doesNotExceedSafeInteger;
  1473. var hasRequiredDoesNotExceedSafeInteger;
  1474. function requireDoesNotExceedSafeInteger () {
  1475. if (hasRequiredDoesNotExceedSafeInteger) return doesNotExceedSafeInteger;
  1476. hasRequiredDoesNotExceedSafeInteger = 1;
  1477. var $TypeError = TypeError;
  1478. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
  1479. doesNotExceedSafeInteger = function (it) {
  1480. if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
  1481. return it;
  1482. };
  1483. return doesNotExceedSafeInteger;
  1484. }
  1485. var createProperty;
  1486. var hasRequiredCreateProperty;
  1487. function requireCreateProperty () {
  1488. if (hasRequiredCreateProperty) return createProperty;
  1489. hasRequiredCreateProperty = 1;
  1490. var DESCRIPTORS = requireDescriptors();
  1491. var definePropertyModule = requireObjectDefineProperty();
  1492. var createPropertyDescriptor = requireCreatePropertyDescriptor();
  1493. createProperty = function (object, key, value) {
  1494. if (DESCRIPTORS) definePropertyModule.f(object, key, createPropertyDescriptor(0, value));
  1495. else object[key] = value;
  1496. };
  1497. return createProperty;
  1498. }
  1499. var toStringTagSupport;
  1500. var hasRequiredToStringTagSupport;
  1501. function requireToStringTagSupport () {
  1502. if (hasRequiredToStringTagSupport) return toStringTagSupport;
  1503. hasRequiredToStringTagSupport = 1;
  1504. var wellKnownSymbol = requireWellKnownSymbol();
  1505. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  1506. var test = {};
  1507. test[TO_STRING_TAG] = 'z';
  1508. toStringTagSupport = String(test) === '[object z]';
  1509. return toStringTagSupport;
  1510. }
  1511. var classof;
  1512. var hasRequiredClassof;
  1513. function requireClassof () {
  1514. if (hasRequiredClassof) return classof;
  1515. hasRequiredClassof = 1;
  1516. var TO_STRING_TAG_SUPPORT = requireToStringTagSupport();
  1517. var isCallable = requireIsCallable();
  1518. var classofRaw = requireClassofRaw();
  1519. var wellKnownSymbol = requireWellKnownSymbol();
  1520. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  1521. var $Object = Object;
  1522. // ES3 wrong here
  1523. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
  1524. // fallback for IE11 Script Access Denied error
  1525. var tryGet = function (it, key) {
  1526. try {
  1527. return it[key];
  1528. } catch (error) { /* empty */ }
  1529. };
  1530. // getting tag from ES6+ `Object.prototype.toString`
  1531. classof = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
  1532. var O, tag, result;
  1533. return it === undefined ? 'Undefined' : it === null ? 'Null'
  1534. // @@toStringTag case
  1535. : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
  1536. // builtinTag case
  1537. : CORRECT_ARGUMENTS ? classofRaw(O)
  1538. // ES3 arguments fallback
  1539. : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
  1540. };
  1541. return classof;
  1542. }
  1543. var isConstructor;
  1544. var hasRequiredIsConstructor;
  1545. function requireIsConstructor () {
  1546. if (hasRequiredIsConstructor) return isConstructor;
  1547. hasRequiredIsConstructor = 1;
  1548. var uncurryThis = requireFunctionUncurryThis();
  1549. var fails = requireFails();
  1550. var isCallable = requireIsCallable();
  1551. var classof = requireClassof();
  1552. var getBuiltIn = requireGetBuiltIn();
  1553. var inspectSource = requireInspectSource();
  1554. var noop = function () { /* empty */ };
  1555. var construct = getBuiltIn('Reflect', 'construct');
  1556. var constructorRegExp = /^\s*(?:class|function)\b/;
  1557. var exec = uncurryThis(constructorRegExp.exec);
  1558. var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
  1559. var isConstructorModern = function isConstructor(argument) {
  1560. if (!isCallable(argument)) return false;
  1561. try {
  1562. construct(noop, [], argument);
  1563. return true;
  1564. } catch (error) {
  1565. return false;
  1566. }
  1567. };
  1568. var isConstructorLegacy = function isConstructor(argument) {
  1569. if (!isCallable(argument)) return false;
  1570. switch (classof(argument)) {
  1571. case 'AsyncFunction':
  1572. case 'GeneratorFunction':
  1573. case 'AsyncGeneratorFunction': return false;
  1574. }
  1575. try {
  1576. // we can't check .prototype since constructors produced by .bind haven't it
  1577. // `Function#toString` throws on some built-it function in some legacy engines
  1578. // (for example, `DOMQuad` and similar in FF41-)
  1579. return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
  1580. } catch (error) {
  1581. return true;
  1582. }
  1583. };
  1584. isConstructorLegacy.sham = true;
  1585. // `IsConstructor` abstract operation
  1586. // https://tc39.es/ecma262/#sec-isconstructor
  1587. isConstructor = !construct || fails(function () {
  1588. var called;
  1589. return isConstructorModern(isConstructorModern.call)
  1590. || !isConstructorModern(Object)
  1591. || !isConstructorModern(function () { called = true; })
  1592. || called;
  1593. }) ? isConstructorLegacy : isConstructorModern;
  1594. return isConstructor;
  1595. }
  1596. var arraySpeciesConstructor;
  1597. var hasRequiredArraySpeciesConstructor;
  1598. function requireArraySpeciesConstructor () {
  1599. if (hasRequiredArraySpeciesConstructor) return arraySpeciesConstructor;
  1600. hasRequiredArraySpeciesConstructor = 1;
  1601. var isArray = requireIsArray();
  1602. var isConstructor = requireIsConstructor();
  1603. var isObject = requireIsObject();
  1604. var wellKnownSymbol = requireWellKnownSymbol();
  1605. var SPECIES = wellKnownSymbol('species');
  1606. var $Array = Array;
  1607. // a part of `ArraySpeciesCreate` abstract operation
  1608. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1609. arraySpeciesConstructor = function (originalArray) {
  1610. var C;
  1611. if (isArray(originalArray)) {
  1612. C = originalArray.constructor;
  1613. // cross-realm fallback
  1614. if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;
  1615. else if (isObject(C)) {
  1616. C = C[SPECIES];
  1617. if (C === null) C = undefined;
  1618. }
  1619. } return C === undefined ? $Array : C;
  1620. };
  1621. return arraySpeciesConstructor;
  1622. }
  1623. var arraySpeciesCreate;
  1624. var hasRequiredArraySpeciesCreate;
  1625. function requireArraySpeciesCreate () {
  1626. if (hasRequiredArraySpeciesCreate) return arraySpeciesCreate;
  1627. hasRequiredArraySpeciesCreate = 1;
  1628. var arraySpeciesConstructor = requireArraySpeciesConstructor();
  1629. // `ArraySpeciesCreate` abstract operation
  1630. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1631. arraySpeciesCreate = function (originalArray, length) {
  1632. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1633. };
  1634. return arraySpeciesCreate;
  1635. }
  1636. var arrayMethodHasSpeciesSupport;
  1637. var hasRequiredArrayMethodHasSpeciesSupport;
  1638. function requireArrayMethodHasSpeciesSupport () {
  1639. if (hasRequiredArrayMethodHasSpeciesSupport) return arrayMethodHasSpeciesSupport;
  1640. hasRequiredArrayMethodHasSpeciesSupport = 1;
  1641. var fails = requireFails();
  1642. var wellKnownSymbol = requireWellKnownSymbol();
  1643. var V8_VERSION = requireEnvironmentV8Version();
  1644. var SPECIES = wellKnownSymbol('species');
  1645. arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
  1646. // We can't use this feature detection in V8 since it causes
  1647. // deoptimization and serious performance degradation
  1648. // https://github.com/zloirock/core-js/issues/677
  1649. return V8_VERSION >= 51 || !fails(function () {
  1650. var array = [];
  1651. var constructor = array.constructor = {};
  1652. constructor[SPECIES] = function () {
  1653. return { foo: 1 };
  1654. };
  1655. return array[METHOD_NAME](Boolean).foo !== 1;
  1656. });
  1657. };
  1658. return arrayMethodHasSpeciesSupport;
  1659. }
  1660. var hasRequiredEs_array_concat;
  1661. function requireEs_array_concat () {
  1662. if (hasRequiredEs_array_concat) return es_array_concat;
  1663. hasRequiredEs_array_concat = 1;
  1664. var $ = require_export();
  1665. var fails = requireFails();
  1666. var isArray = requireIsArray();
  1667. var isObject = requireIsObject();
  1668. var toObject = requireToObject();
  1669. var lengthOfArrayLike = requireLengthOfArrayLike();
  1670. var doesNotExceedSafeInteger = requireDoesNotExceedSafeInteger();
  1671. var createProperty = requireCreateProperty();
  1672. var arraySpeciesCreate = requireArraySpeciesCreate();
  1673. var arrayMethodHasSpeciesSupport = requireArrayMethodHasSpeciesSupport();
  1674. var wellKnownSymbol = requireWellKnownSymbol();
  1675. var V8_VERSION = requireEnvironmentV8Version();
  1676. var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
  1677. // We can't use this feature detection in V8 since it causes
  1678. // deoptimization and serious performance degradation
  1679. // https://github.com/zloirock/core-js/issues/679
  1680. var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
  1681. var array = [];
  1682. array[IS_CONCAT_SPREADABLE] = false;
  1683. return array.concat()[0] !== array;
  1684. });
  1685. var isConcatSpreadable = function (O) {
  1686. if (!isObject(O)) return false;
  1687. var spreadable = O[IS_CONCAT_SPREADABLE];
  1688. return spreadable !== undefined ? !!spreadable : isArray(O);
  1689. };
  1690. var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');
  1691. // `Array.prototype.concat` method
  1692. // https://tc39.es/ecma262/#sec-array.prototype.concat
  1693. // with adding support of @@isConcatSpreadable and @@species
  1694. $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
  1695. // eslint-disable-next-line no-unused-vars -- required for `.length`
  1696. concat: function concat(arg) {
  1697. var O = toObject(this);
  1698. var A = arraySpeciesCreate(O, 0);
  1699. var n = 0;
  1700. var i, k, length, len, E;
  1701. for (i = -1, length = arguments.length; i < length; i++) {
  1702. E = i === -1 ? O : arguments[i];
  1703. if (isConcatSpreadable(E)) {
  1704. len = lengthOfArrayLike(E);
  1705. doesNotExceedSafeInteger(n + len);
  1706. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  1707. } else {
  1708. doesNotExceedSafeInteger(n + 1);
  1709. createProperty(A, n++, E);
  1710. }
  1711. }
  1712. A.length = n;
  1713. return A;
  1714. }
  1715. });
  1716. return es_array_concat;
  1717. }
  1718. requireEs_array_concat();
  1719. var es_array_find = {};
  1720. var functionUncurryThisClause;
  1721. var hasRequiredFunctionUncurryThisClause;
  1722. function requireFunctionUncurryThisClause () {
  1723. if (hasRequiredFunctionUncurryThisClause) return functionUncurryThisClause;
  1724. hasRequiredFunctionUncurryThisClause = 1;
  1725. var classofRaw = requireClassofRaw();
  1726. var uncurryThis = requireFunctionUncurryThis();
  1727. functionUncurryThisClause = function (fn) {
  1728. // Nashorn bug:
  1729. // https://github.com/zloirock/core-js/issues/1128
  1730. // https://github.com/zloirock/core-js/issues/1130
  1731. if (classofRaw(fn) === 'Function') return uncurryThis(fn);
  1732. };
  1733. return functionUncurryThisClause;
  1734. }
  1735. var functionBindContext;
  1736. var hasRequiredFunctionBindContext;
  1737. function requireFunctionBindContext () {
  1738. if (hasRequiredFunctionBindContext) return functionBindContext;
  1739. hasRequiredFunctionBindContext = 1;
  1740. var uncurryThis = requireFunctionUncurryThisClause();
  1741. var aCallable = requireACallable();
  1742. var NATIVE_BIND = requireFunctionBindNative();
  1743. var bind = uncurryThis(uncurryThis.bind);
  1744. // optional / simple context binding
  1745. functionBindContext = function (fn, that) {
  1746. aCallable(fn);
  1747. return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {
  1748. return fn.apply(that, arguments);
  1749. };
  1750. };
  1751. return functionBindContext;
  1752. }
  1753. var arrayIteration;
  1754. var hasRequiredArrayIteration;
  1755. function requireArrayIteration () {
  1756. if (hasRequiredArrayIteration) return arrayIteration;
  1757. hasRequiredArrayIteration = 1;
  1758. var bind = requireFunctionBindContext();
  1759. var uncurryThis = requireFunctionUncurryThis();
  1760. var IndexedObject = requireIndexedObject();
  1761. var toObject = requireToObject();
  1762. var lengthOfArrayLike = requireLengthOfArrayLike();
  1763. var arraySpeciesCreate = requireArraySpeciesCreate();
  1764. var push = uncurryThis([].push);
  1765. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  1766. var createMethod = function (TYPE) {
  1767. var IS_MAP = TYPE === 1;
  1768. var IS_FILTER = TYPE === 2;
  1769. var IS_SOME = TYPE === 3;
  1770. var IS_EVERY = TYPE === 4;
  1771. var IS_FIND_INDEX = TYPE === 6;
  1772. var IS_FILTER_REJECT = TYPE === 7;
  1773. var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
  1774. return function ($this, callbackfn, that, specificCreate) {
  1775. var O = toObject($this);
  1776. var self = IndexedObject(O);
  1777. var length = lengthOfArrayLike(self);
  1778. var boundFunction = bind(callbackfn, that);
  1779. var index = 0;
  1780. var create = specificCreate || arraySpeciesCreate;
  1781. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  1782. var value, result;
  1783. for (;length > index; index++) if (NO_HOLES || index in self) {
  1784. value = self[index];
  1785. result = boundFunction(value, index, O);
  1786. if (TYPE) {
  1787. if (IS_MAP) target[index] = result; // map
  1788. else if (result) switch (TYPE) {
  1789. case 3: return true; // some
  1790. case 5: return value; // find
  1791. case 6: return index; // findIndex
  1792. case 2: push(target, value); // filter
  1793. } else switch (TYPE) {
  1794. case 4: return false; // every
  1795. case 7: push(target, value); // filterReject
  1796. }
  1797. }
  1798. }
  1799. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  1800. };
  1801. };
  1802. arrayIteration = {
  1803. // `Array.prototype.forEach` method
  1804. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1805. forEach: createMethod(0),
  1806. // `Array.prototype.map` method
  1807. // https://tc39.es/ecma262/#sec-array.prototype.map
  1808. map: createMethod(1),
  1809. // `Array.prototype.filter` method
  1810. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1811. filter: createMethod(2),
  1812. // `Array.prototype.some` method
  1813. // https://tc39.es/ecma262/#sec-array.prototype.some
  1814. some: createMethod(3),
  1815. // `Array.prototype.every` method
  1816. // https://tc39.es/ecma262/#sec-array.prototype.every
  1817. every: createMethod(4),
  1818. // `Array.prototype.find` method
  1819. // https://tc39.es/ecma262/#sec-array.prototype.find
  1820. find: createMethod(5),
  1821. // `Array.prototype.findIndex` method
  1822. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  1823. findIndex: createMethod(6),
  1824. // `Array.prototype.filterReject` method
  1825. // https://github.com/tc39/proposal-array-filtering
  1826. filterReject: createMethod(7)
  1827. };
  1828. return arrayIteration;
  1829. }
  1830. var objectDefineProperties = {};
  1831. var objectKeys;
  1832. var hasRequiredObjectKeys;
  1833. function requireObjectKeys () {
  1834. if (hasRequiredObjectKeys) return objectKeys;
  1835. hasRequiredObjectKeys = 1;
  1836. var internalObjectKeys = requireObjectKeysInternal();
  1837. var enumBugKeys = requireEnumBugKeys();
  1838. // `Object.keys` method
  1839. // https://tc39.es/ecma262/#sec-object.keys
  1840. // eslint-disable-next-line es/no-object-keys -- safe
  1841. objectKeys = Object.keys || function keys(O) {
  1842. return internalObjectKeys(O, enumBugKeys);
  1843. };
  1844. return objectKeys;
  1845. }
  1846. var hasRequiredObjectDefineProperties;
  1847. function requireObjectDefineProperties () {
  1848. if (hasRequiredObjectDefineProperties) return objectDefineProperties;
  1849. hasRequiredObjectDefineProperties = 1;
  1850. var DESCRIPTORS = requireDescriptors();
  1851. var V8_PROTOTYPE_DEFINE_BUG = requireV8PrototypeDefineBug();
  1852. var definePropertyModule = requireObjectDefineProperty();
  1853. var anObject = requireAnObject();
  1854. var toIndexedObject = requireToIndexedObject();
  1855. var objectKeys = requireObjectKeys();
  1856. // `Object.defineProperties` method
  1857. // https://tc39.es/ecma262/#sec-object.defineproperties
  1858. // eslint-disable-next-line es/no-object-defineproperties -- safe
  1859. objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
  1860. anObject(O);
  1861. var props = toIndexedObject(Properties);
  1862. var keys = objectKeys(Properties);
  1863. var length = keys.length;
  1864. var index = 0;
  1865. var key;
  1866. while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
  1867. return O;
  1868. };
  1869. return objectDefineProperties;
  1870. }
  1871. var html;
  1872. var hasRequiredHtml;
  1873. function requireHtml () {
  1874. if (hasRequiredHtml) return html;
  1875. hasRequiredHtml = 1;
  1876. var getBuiltIn = requireGetBuiltIn();
  1877. html = getBuiltIn('document', 'documentElement');
  1878. return html;
  1879. }
  1880. var objectCreate;
  1881. var hasRequiredObjectCreate;
  1882. function requireObjectCreate () {
  1883. if (hasRequiredObjectCreate) return objectCreate;
  1884. hasRequiredObjectCreate = 1;
  1885. /* global ActiveXObject -- old IE, WSH */
  1886. var anObject = requireAnObject();
  1887. var definePropertiesModule = requireObjectDefineProperties();
  1888. var enumBugKeys = requireEnumBugKeys();
  1889. var hiddenKeys = requireHiddenKeys();
  1890. var html = requireHtml();
  1891. var documentCreateElement = requireDocumentCreateElement();
  1892. var sharedKey = requireSharedKey();
  1893. var GT = '>';
  1894. var LT = '<';
  1895. var PROTOTYPE = 'prototype';
  1896. var SCRIPT = 'script';
  1897. var IE_PROTO = sharedKey('IE_PROTO');
  1898. var EmptyConstructor = function () { /* empty */ };
  1899. var scriptTag = function (content) {
  1900. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  1901. };
  1902. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  1903. var NullProtoObjectViaActiveX = function (activeXDocument) {
  1904. activeXDocument.write(scriptTag(''));
  1905. activeXDocument.close();
  1906. var temp = activeXDocument.parentWindow.Object;
  1907. // eslint-disable-next-line no-useless-assignment -- avoid memory leak
  1908. activeXDocument = null;
  1909. return temp;
  1910. };
  1911. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  1912. var NullProtoObjectViaIFrame = function () {
  1913. // Thrash, waste and sodomy: IE GC bug
  1914. var iframe = documentCreateElement('iframe');
  1915. var JS = 'java' + SCRIPT + ':';
  1916. var iframeDocument;
  1917. iframe.style.display = 'none';
  1918. html.appendChild(iframe);
  1919. // https://github.com/zloirock/core-js/issues/475
  1920. iframe.src = String(JS);
  1921. iframeDocument = iframe.contentWindow.document;
  1922. iframeDocument.open();
  1923. iframeDocument.write(scriptTag('document.F=Object'));
  1924. iframeDocument.close();
  1925. return iframeDocument.F;
  1926. };
  1927. // Check for document.domain and active x support
  1928. // No need to use active x approach when document.domain is not set
  1929. // see https://github.com/es-shims/es5-shim/issues/150
  1930. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  1931. // avoid IE GC bug
  1932. var activeXDocument;
  1933. var NullProtoObject = function () {
  1934. try {
  1935. activeXDocument = new ActiveXObject('htmlfile');
  1936. } catch (error) { /* ignore */ }
  1937. NullProtoObject = typeof document != 'undefined'
  1938. ? document.domain && activeXDocument
  1939. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  1940. : NullProtoObjectViaIFrame()
  1941. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  1942. var length = enumBugKeys.length;
  1943. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  1944. return NullProtoObject();
  1945. };
  1946. hiddenKeys[IE_PROTO] = true;
  1947. // `Object.create` method
  1948. // https://tc39.es/ecma262/#sec-object.create
  1949. // eslint-disable-next-line es/no-object-create -- safe
  1950. objectCreate = Object.create || function create(O, Properties) {
  1951. var result;
  1952. if (O !== null) {
  1953. EmptyConstructor[PROTOTYPE] = anObject(O);
  1954. result = new EmptyConstructor();
  1955. EmptyConstructor[PROTOTYPE] = null;
  1956. // add "__proto__" for Object.getPrototypeOf polyfill
  1957. result[IE_PROTO] = O;
  1958. } else result = NullProtoObject();
  1959. return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
  1960. };
  1961. return objectCreate;
  1962. }
  1963. var addToUnscopables;
  1964. var hasRequiredAddToUnscopables;
  1965. function requireAddToUnscopables () {
  1966. if (hasRequiredAddToUnscopables) return addToUnscopables;
  1967. hasRequiredAddToUnscopables = 1;
  1968. var wellKnownSymbol = requireWellKnownSymbol();
  1969. var create = requireObjectCreate();
  1970. var defineProperty = requireObjectDefineProperty().f;
  1971. var UNSCOPABLES = wellKnownSymbol('unscopables');
  1972. var ArrayPrototype = Array.prototype;
  1973. // Array.prototype[@@unscopables]
  1974. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1975. if (ArrayPrototype[UNSCOPABLES] === undefined) {
  1976. defineProperty(ArrayPrototype, UNSCOPABLES, {
  1977. configurable: true,
  1978. value: create(null)
  1979. });
  1980. }
  1981. // add a key to Array.prototype[@@unscopables]
  1982. addToUnscopables = function (key) {
  1983. ArrayPrototype[UNSCOPABLES][key] = true;
  1984. };
  1985. return addToUnscopables;
  1986. }
  1987. var hasRequiredEs_array_find;
  1988. function requireEs_array_find () {
  1989. if (hasRequiredEs_array_find) return es_array_find;
  1990. hasRequiredEs_array_find = 1;
  1991. var $ = require_export();
  1992. var $find = requireArrayIteration().find;
  1993. var addToUnscopables = requireAddToUnscopables();
  1994. var FIND = 'find';
  1995. var SKIPS_HOLES = true;
  1996. // Shouldn't skip holes
  1997. // eslint-disable-next-line es/no-array-prototype-find -- testing
  1998. if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
  1999. // `Array.prototype.find` method
  2000. // https://tc39.es/ecma262/#sec-array.prototype.find
  2001. $({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
  2002. find: function find(callbackfn /* , that = undefined */) {
  2003. return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  2004. }
  2005. });
  2006. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  2007. addToUnscopables(FIND);
  2008. return es_array_find;
  2009. }
  2010. requireEs_array_find();
  2011. var es_array_indexOf = {};
  2012. var arrayMethodIsStrict;
  2013. var hasRequiredArrayMethodIsStrict;
  2014. function requireArrayMethodIsStrict () {
  2015. if (hasRequiredArrayMethodIsStrict) return arrayMethodIsStrict;
  2016. hasRequiredArrayMethodIsStrict = 1;
  2017. var fails = requireFails();
  2018. arrayMethodIsStrict = function (METHOD_NAME, argument) {
  2019. var method = [][METHOD_NAME];
  2020. return !!method && fails(function () {
  2021. // eslint-disable-next-line no-useless-call -- required for testing
  2022. method.call(null, argument || function () { return 1; }, 1);
  2023. });
  2024. };
  2025. return arrayMethodIsStrict;
  2026. }
  2027. var hasRequiredEs_array_indexOf;
  2028. function requireEs_array_indexOf () {
  2029. if (hasRequiredEs_array_indexOf) return es_array_indexOf;
  2030. hasRequiredEs_array_indexOf = 1;
  2031. /* eslint-disable es/no-array-prototype-indexof -- required for testing */
  2032. var $ = require_export();
  2033. var uncurryThis = requireFunctionUncurryThisClause();
  2034. var $indexOf = requireArrayIncludes().indexOf;
  2035. var arrayMethodIsStrict = requireArrayMethodIsStrict();
  2036. var nativeIndexOf = uncurryThis([].indexOf);
  2037. var NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;
  2038. var FORCED = NEGATIVE_ZERO || !arrayMethodIsStrict('indexOf');
  2039. // `Array.prototype.indexOf` method
  2040. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  2041. $({ target: 'Array', proto: true, forced: FORCED }, {
  2042. indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
  2043. var fromIndex = arguments.length > 1 ? arguments[1] : undefined;
  2044. return NEGATIVE_ZERO
  2045. // convert -0 to +0
  2046. ? nativeIndexOf(this, searchElement, fromIndex) || 0
  2047. : $indexOf(this, searchElement, fromIndex);
  2048. }
  2049. });
  2050. return es_array_indexOf;
  2051. }
  2052. requireEs_array_indexOf();
  2053. var es_object_assign = {};
  2054. var objectAssign;
  2055. var hasRequiredObjectAssign;
  2056. function requireObjectAssign () {
  2057. if (hasRequiredObjectAssign) return objectAssign;
  2058. hasRequiredObjectAssign = 1;
  2059. var DESCRIPTORS = requireDescriptors();
  2060. var uncurryThis = requireFunctionUncurryThis();
  2061. var call = requireFunctionCall();
  2062. var fails = requireFails();
  2063. var objectKeys = requireObjectKeys();
  2064. var getOwnPropertySymbolsModule = requireObjectGetOwnPropertySymbols();
  2065. var propertyIsEnumerableModule = requireObjectPropertyIsEnumerable();
  2066. var toObject = requireToObject();
  2067. var IndexedObject = requireIndexedObject();
  2068. // eslint-disable-next-line es/no-object-assign -- safe
  2069. var $assign = Object.assign;
  2070. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  2071. var defineProperty = Object.defineProperty;
  2072. var concat = uncurryThis([].concat);
  2073. // `Object.assign` method
  2074. // https://tc39.es/ecma262/#sec-object.assign
  2075. objectAssign = !$assign || fails(function () {
  2076. // should have correct order of operations (Edge bug)
  2077. if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
  2078. enumerable: true,
  2079. get: function () {
  2080. defineProperty(this, 'b', {
  2081. value: 3,
  2082. enumerable: false
  2083. });
  2084. }
  2085. }), { b: 2 })).b !== 1) return true;
  2086. // should work with symbols and should have deterministic property order (V8 bug)
  2087. var A = {};
  2088. var B = {};
  2089. // eslint-disable-next-line es/no-symbol -- safe
  2090. var symbol = Symbol('assign detection');
  2091. var alphabet = 'abcdefghijklmnopqrst';
  2092. A[symbol] = 7;
  2093. alphabet.split('').forEach(function (chr) { B[chr] = chr; });
  2094. return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
  2095. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
  2096. var T = toObject(target);
  2097. var argumentsLength = arguments.length;
  2098. var index = 1;
  2099. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  2100. var propertyIsEnumerable = propertyIsEnumerableModule.f;
  2101. while (argumentsLength > index) {
  2102. var S = IndexedObject(arguments[index++]);
  2103. var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
  2104. var length = keys.length;
  2105. var j = 0;
  2106. var key;
  2107. while (length > j) {
  2108. key = keys[j++];
  2109. if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
  2110. }
  2111. } return T;
  2112. } : $assign;
  2113. return objectAssign;
  2114. }
  2115. var hasRequiredEs_object_assign;
  2116. function requireEs_object_assign () {
  2117. if (hasRequiredEs_object_assign) return es_object_assign;
  2118. hasRequiredEs_object_assign = 1;
  2119. var $ = require_export();
  2120. var assign = requireObjectAssign();
  2121. // `Object.assign` method
  2122. // https://tc39.es/ecma262/#sec-object.assign
  2123. // eslint-disable-next-line es/no-object-assign -- required for testing
  2124. $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
  2125. assign: assign
  2126. });
  2127. return es_object_assign;
  2128. }
  2129. requireEs_object_assign();
  2130. var es_object_entries = {};
  2131. var correctPrototypeGetter;
  2132. var hasRequiredCorrectPrototypeGetter;
  2133. function requireCorrectPrototypeGetter () {
  2134. if (hasRequiredCorrectPrototypeGetter) return correctPrototypeGetter;
  2135. hasRequiredCorrectPrototypeGetter = 1;
  2136. var fails = requireFails();
  2137. correctPrototypeGetter = !fails(function () {
  2138. function F() { /* empty */ }
  2139. F.prototype.constructor = null;
  2140. // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
  2141. return Object.getPrototypeOf(new F()) !== F.prototype;
  2142. });
  2143. return correctPrototypeGetter;
  2144. }
  2145. var objectGetPrototypeOf;
  2146. var hasRequiredObjectGetPrototypeOf;
  2147. function requireObjectGetPrototypeOf () {
  2148. if (hasRequiredObjectGetPrototypeOf) return objectGetPrototypeOf;
  2149. hasRequiredObjectGetPrototypeOf = 1;
  2150. var hasOwn = requireHasOwnProperty();
  2151. var isCallable = requireIsCallable();
  2152. var toObject = requireToObject();
  2153. var sharedKey = requireSharedKey();
  2154. var CORRECT_PROTOTYPE_GETTER = requireCorrectPrototypeGetter();
  2155. var IE_PROTO = sharedKey('IE_PROTO');
  2156. var $Object = Object;
  2157. var ObjectPrototype = $Object.prototype;
  2158. // `Object.getPrototypeOf` method
  2159. // https://tc39.es/ecma262/#sec-object.getprototypeof
  2160. // eslint-disable-next-line es/no-object-getprototypeof -- safe
  2161. objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
  2162. var object = toObject(O);
  2163. if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];
  2164. var constructor = object.constructor;
  2165. if (isCallable(constructor) && object instanceof constructor) {
  2166. return constructor.prototype;
  2167. } return object instanceof $Object ? ObjectPrototype : null;
  2168. };
  2169. return objectGetPrototypeOf;
  2170. }
  2171. var objectToArray;
  2172. var hasRequiredObjectToArray;
  2173. function requireObjectToArray () {
  2174. if (hasRequiredObjectToArray) return objectToArray;
  2175. hasRequiredObjectToArray = 1;
  2176. var DESCRIPTORS = requireDescriptors();
  2177. var fails = requireFails();
  2178. var uncurryThis = requireFunctionUncurryThis();
  2179. var objectGetPrototypeOf = requireObjectGetPrototypeOf();
  2180. var objectKeys = requireObjectKeys();
  2181. var toIndexedObject = requireToIndexedObject();
  2182. var $propertyIsEnumerable = requireObjectPropertyIsEnumerable().f;
  2183. var propertyIsEnumerable = uncurryThis($propertyIsEnumerable);
  2184. var push = uncurryThis([].push);
  2185. // in some IE versions, `propertyIsEnumerable` returns incorrect result on integer keys
  2186. // of `null` prototype objects
  2187. var IE_BUG = DESCRIPTORS && fails(function () {
  2188. // eslint-disable-next-line es/no-object-create -- safe
  2189. var O = Object.create(null);
  2190. O[2] = 2;
  2191. return !propertyIsEnumerable(O, 2);
  2192. });
  2193. // `Object.{ entries, values }` methods implementation
  2194. var createMethod = function (TO_ENTRIES) {
  2195. return function (it) {
  2196. var O = toIndexedObject(it);
  2197. var keys = objectKeys(O);
  2198. var IE_WORKAROUND = IE_BUG && objectGetPrototypeOf(O) === null;
  2199. var length = keys.length;
  2200. var i = 0;
  2201. var result = [];
  2202. var key;
  2203. while (length > i) {
  2204. key = keys[i++];
  2205. if (!DESCRIPTORS || (IE_WORKAROUND ? key in O : propertyIsEnumerable(O, key))) {
  2206. push(result, TO_ENTRIES ? [key, O[key]] : O[key]);
  2207. }
  2208. }
  2209. return result;
  2210. };
  2211. };
  2212. objectToArray = {
  2213. // `Object.entries` method
  2214. // https://tc39.es/ecma262/#sec-object.entries
  2215. entries: createMethod(true),
  2216. // `Object.values` method
  2217. // https://tc39.es/ecma262/#sec-object.values
  2218. values: createMethod(false)
  2219. };
  2220. return objectToArray;
  2221. }
  2222. var hasRequiredEs_object_entries;
  2223. function requireEs_object_entries () {
  2224. if (hasRequiredEs_object_entries) return es_object_entries;
  2225. hasRequiredEs_object_entries = 1;
  2226. var $ = require_export();
  2227. var $entries = requireObjectToArray().entries;
  2228. // `Object.entries` method
  2229. // https://tc39.es/ecma262/#sec-object.entries
  2230. $({ target: 'Object', stat: true }, {
  2231. entries: function entries(O) {
  2232. return $entries(O);
  2233. }
  2234. });
  2235. return es_object_entries;
  2236. }
  2237. requireEs_object_entries();
  2238. var es_object_toString = {};
  2239. var objectToString;
  2240. var hasRequiredObjectToString;
  2241. function requireObjectToString () {
  2242. if (hasRequiredObjectToString) return objectToString;
  2243. hasRequiredObjectToString = 1;
  2244. var TO_STRING_TAG_SUPPORT = requireToStringTagSupport();
  2245. var classof = requireClassof();
  2246. // `Object.prototype.toString` method implementation
  2247. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  2248. objectToString = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
  2249. return '[object ' + classof(this) + ']';
  2250. };
  2251. return objectToString;
  2252. }
  2253. var hasRequiredEs_object_toString;
  2254. function requireEs_object_toString () {
  2255. if (hasRequiredEs_object_toString) return es_object_toString;
  2256. hasRequiredEs_object_toString = 1;
  2257. var TO_STRING_TAG_SUPPORT = requireToStringTagSupport();
  2258. var defineBuiltIn = requireDefineBuiltIn();
  2259. var toString = requireObjectToString();
  2260. // `Object.prototype.toString` method
  2261. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  2262. if (!TO_STRING_TAG_SUPPORT) {
  2263. defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });
  2264. }
  2265. return es_object_toString;
  2266. }
  2267. requireEs_object_toString();
  2268. var es_regexp_exec = {};
  2269. var toString;
  2270. var hasRequiredToString;
  2271. function requireToString () {
  2272. if (hasRequiredToString) return toString;
  2273. hasRequiredToString = 1;
  2274. var classof = requireClassof();
  2275. var $String = String;
  2276. toString = function (argument) {
  2277. if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
  2278. return $String(argument);
  2279. };
  2280. return toString;
  2281. }
  2282. var regexpFlags;
  2283. var hasRequiredRegexpFlags;
  2284. function requireRegexpFlags () {
  2285. if (hasRequiredRegexpFlags) return regexpFlags;
  2286. hasRequiredRegexpFlags = 1;
  2287. var anObject = requireAnObject();
  2288. // `RegExp.prototype.flags` getter implementation
  2289. // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
  2290. regexpFlags = function () {
  2291. var that = anObject(this);
  2292. var result = '';
  2293. if (that.hasIndices) result += 'd';
  2294. if (that.global) result += 'g';
  2295. if (that.ignoreCase) result += 'i';
  2296. if (that.multiline) result += 'm';
  2297. if (that.dotAll) result += 's';
  2298. if (that.unicode) result += 'u';
  2299. if (that.unicodeSets) result += 'v';
  2300. if (that.sticky) result += 'y';
  2301. return result;
  2302. };
  2303. return regexpFlags;
  2304. }
  2305. var regexpStickyHelpers;
  2306. var hasRequiredRegexpStickyHelpers;
  2307. function requireRegexpStickyHelpers () {
  2308. if (hasRequiredRegexpStickyHelpers) return regexpStickyHelpers;
  2309. hasRequiredRegexpStickyHelpers = 1;
  2310. var fails = requireFails();
  2311. var globalThis = requireGlobalThis();
  2312. // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
  2313. var $RegExp = globalThis.RegExp;
  2314. var UNSUPPORTED_Y = fails(function () {
  2315. var re = $RegExp('a', 'y');
  2316. re.lastIndex = 2;
  2317. return re.exec('abcd') !== null;
  2318. });
  2319. // UC Browser bug
  2320. // https://github.com/zloirock/core-js/issues/1008
  2321. var MISSED_STICKY = UNSUPPORTED_Y || fails(function () {
  2322. return !$RegExp('a', 'y').sticky;
  2323. });
  2324. var BROKEN_CARET = UNSUPPORTED_Y || fails(function () {
  2325. // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
  2326. var re = $RegExp('^r', 'gy');
  2327. re.lastIndex = 2;
  2328. return re.exec('str') !== null;
  2329. });
  2330. regexpStickyHelpers = {
  2331. BROKEN_CARET: BROKEN_CARET,
  2332. MISSED_STICKY: MISSED_STICKY,
  2333. UNSUPPORTED_Y: UNSUPPORTED_Y
  2334. };
  2335. return regexpStickyHelpers;
  2336. }
  2337. var regexpUnsupportedDotAll;
  2338. var hasRequiredRegexpUnsupportedDotAll;
  2339. function requireRegexpUnsupportedDotAll () {
  2340. if (hasRequiredRegexpUnsupportedDotAll) return regexpUnsupportedDotAll;
  2341. hasRequiredRegexpUnsupportedDotAll = 1;
  2342. var fails = requireFails();
  2343. var globalThis = requireGlobalThis();
  2344. // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
  2345. var $RegExp = globalThis.RegExp;
  2346. regexpUnsupportedDotAll = fails(function () {
  2347. var re = $RegExp('.', 's');
  2348. return !(re.dotAll && re.test('\n') && re.flags === 's');
  2349. });
  2350. return regexpUnsupportedDotAll;
  2351. }
  2352. var regexpUnsupportedNcg;
  2353. var hasRequiredRegexpUnsupportedNcg;
  2354. function requireRegexpUnsupportedNcg () {
  2355. if (hasRequiredRegexpUnsupportedNcg) return regexpUnsupportedNcg;
  2356. hasRequiredRegexpUnsupportedNcg = 1;
  2357. var fails = requireFails();
  2358. var globalThis = requireGlobalThis();
  2359. // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
  2360. var $RegExp = globalThis.RegExp;
  2361. regexpUnsupportedNcg = fails(function () {
  2362. var re = $RegExp('(?<a>b)', 'g');
  2363. return re.exec('b').groups.a !== 'b' ||
  2364. 'b'.replace(re, '$<a>c') !== 'bc';
  2365. });
  2366. return regexpUnsupportedNcg;
  2367. }
  2368. var regexpExec;
  2369. var hasRequiredRegexpExec;
  2370. function requireRegexpExec () {
  2371. if (hasRequiredRegexpExec) return regexpExec;
  2372. hasRequiredRegexpExec = 1;
  2373. /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
  2374. /* eslint-disable regexp/no-useless-quantifier -- testing */
  2375. var call = requireFunctionCall();
  2376. var uncurryThis = requireFunctionUncurryThis();
  2377. var toString = requireToString();
  2378. var regexpFlags = requireRegexpFlags();
  2379. var stickyHelpers = requireRegexpStickyHelpers();
  2380. var shared = requireShared();
  2381. var create = requireObjectCreate();
  2382. var getInternalState = requireInternalState().get;
  2383. var UNSUPPORTED_DOT_ALL = requireRegexpUnsupportedDotAll();
  2384. var UNSUPPORTED_NCG = requireRegexpUnsupportedNcg();
  2385. var nativeReplace = shared('native-string-replace', String.prototype.replace);
  2386. var nativeExec = RegExp.prototype.exec;
  2387. var patchedExec = nativeExec;
  2388. var charAt = uncurryThis(''.charAt);
  2389. var indexOf = uncurryThis(''.indexOf);
  2390. var replace = uncurryThis(''.replace);
  2391. var stringSlice = uncurryThis(''.slice);
  2392. var UPDATES_LAST_INDEX_WRONG = (function () {
  2393. var re1 = /a/;
  2394. var re2 = /b*/g;
  2395. call(nativeExec, re1, 'a');
  2396. call(nativeExec, re2, 'a');
  2397. return re1.lastIndex !== 0 || re2.lastIndex !== 0;
  2398. })();
  2399. var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
  2400. // nonparticipating capturing group, copied from es5-shim's String#split patch.
  2401. var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
  2402. var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
  2403. if (PATCH) {
  2404. patchedExec = function exec(string) {
  2405. var re = this;
  2406. var state = getInternalState(re);
  2407. var str = toString(string);
  2408. var raw = state.raw;
  2409. var result, reCopy, lastIndex, match, i, object, group;
  2410. if (raw) {
  2411. raw.lastIndex = re.lastIndex;
  2412. result = call(patchedExec, raw, str);
  2413. re.lastIndex = raw.lastIndex;
  2414. return result;
  2415. }
  2416. var groups = state.groups;
  2417. var sticky = UNSUPPORTED_Y && re.sticky;
  2418. var flags = call(regexpFlags, re);
  2419. var source = re.source;
  2420. var charsAdded = 0;
  2421. var strCopy = str;
  2422. if (sticky) {
  2423. flags = replace(flags, 'y', '');
  2424. if (indexOf(flags, 'g') === -1) {
  2425. flags += 'g';
  2426. }
  2427. strCopy = stringSlice(str, re.lastIndex);
  2428. // Support anchored sticky behavior.
  2429. if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\n')) {
  2430. source = '(?: ' + source + ')';
  2431. strCopy = ' ' + strCopy;
  2432. charsAdded++;
  2433. }
  2434. // ^(? + rx + ) is needed, in combination with some str slicing, to
  2435. // simulate the 'y' flag.
  2436. reCopy = new RegExp('^(?:' + source + ')', flags);
  2437. }
  2438. if (NPCG_INCLUDED) {
  2439. reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
  2440. }
  2441. if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
  2442. match = call(nativeExec, sticky ? reCopy : re, strCopy);
  2443. if (sticky) {
  2444. if (match) {
  2445. match.input = stringSlice(match.input, charsAdded);
  2446. match[0] = stringSlice(match[0], charsAdded);
  2447. match.index = re.lastIndex;
  2448. re.lastIndex += match[0].length;
  2449. } else re.lastIndex = 0;
  2450. } else if (UPDATES_LAST_INDEX_WRONG && match) {
  2451. re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
  2452. }
  2453. if (NPCG_INCLUDED && match && match.length > 1) {
  2454. // Fix browsers whose `exec` methods don't consistently return `undefined`
  2455. // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
  2456. call(nativeReplace, match[0], reCopy, function () {
  2457. for (i = 1; i < arguments.length - 2; i++) {
  2458. if (arguments[i] === undefined) match[i] = undefined;
  2459. }
  2460. });
  2461. }
  2462. if (match && groups) {
  2463. match.groups = object = create(null);
  2464. for (i = 0; i < groups.length; i++) {
  2465. group = groups[i];
  2466. object[group[0]] = match[group[1]];
  2467. }
  2468. }
  2469. return match;
  2470. };
  2471. }
  2472. regexpExec = patchedExec;
  2473. return regexpExec;
  2474. }
  2475. var hasRequiredEs_regexp_exec;
  2476. function requireEs_regexp_exec () {
  2477. if (hasRequiredEs_regexp_exec) return es_regexp_exec;
  2478. hasRequiredEs_regexp_exec = 1;
  2479. var $ = require_export();
  2480. var exec = requireRegexpExec();
  2481. // `RegExp.prototype.exec` method
  2482. // https://tc39.es/ecma262/#sec-regexp.prototype.exec
  2483. $({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
  2484. exec: exec
  2485. });
  2486. return es_regexp_exec;
  2487. }
  2488. requireEs_regexp_exec();
  2489. var es_string_replace = {};
  2490. var functionApply;
  2491. var hasRequiredFunctionApply;
  2492. function requireFunctionApply () {
  2493. if (hasRequiredFunctionApply) return functionApply;
  2494. hasRequiredFunctionApply = 1;
  2495. var NATIVE_BIND = requireFunctionBindNative();
  2496. var FunctionPrototype = Function.prototype;
  2497. var apply = FunctionPrototype.apply;
  2498. var call = FunctionPrototype.call;
  2499. // eslint-disable-next-line es/no-reflect -- safe
  2500. functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {
  2501. return call.apply(apply, arguments);
  2502. });
  2503. return functionApply;
  2504. }
  2505. var fixRegexpWellKnownSymbolLogic;
  2506. var hasRequiredFixRegexpWellKnownSymbolLogic;
  2507. function requireFixRegexpWellKnownSymbolLogic () {
  2508. if (hasRequiredFixRegexpWellKnownSymbolLogic) return fixRegexpWellKnownSymbolLogic;
  2509. hasRequiredFixRegexpWellKnownSymbolLogic = 1;
  2510. // TODO: Remove from `core-js@4` since it's moved to entry points
  2511. requireEs_regexp_exec();
  2512. var call = requireFunctionCall();
  2513. var defineBuiltIn = requireDefineBuiltIn();
  2514. var regexpExec = requireRegexpExec();
  2515. var fails = requireFails();
  2516. var wellKnownSymbol = requireWellKnownSymbol();
  2517. var createNonEnumerableProperty = requireCreateNonEnumerableProperty();
  2518. var SPECIES = wellKnownSymbol('species');
  2519. var RegExpPrototype = RegExp.prototype;
  2520. fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
  2521. var SYMBOL = wellKnownSymbol(KEY);
  2522. var DELEGATES_TO_SYMBOL = !fails(function () {
  2523. // String methods call symbol-named RegExp methods
  2524. var O = {};
  2525. O[SYMBOL] = function () { return 7; };
  2526. return ''[KEY](O) !== 7;
  2527. });
  2528. var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
  2529. // Symbol-named RegExp methods call .exec
  2530. var execCalled = false;
  2531. var re = /a/;
  2532. if (KEY === 'split') {
  2533. // We can't use real regex here since it causes deoptimization
  2534. // and serious performance degradation in V8
  2535. // https://github.com/zloirock/core-js/issues/306
  2536. re = {};
  2537. // RegExp[@@split] doesn't call the regex's exec method, but first creates
  2538. // a new one. We need to return the patched regex when creating the new one.
  2539. re.constructor = {};
  2540. re.constructor[SPECIES] = function () { return re; };
  2541. re.flags = '';
  2542. re[SYMBOL] = /./[SYMBOL];
  2543. }
  2544. re.exec = function () {
  2545. execCalled = true;
  2546. return null;
  2547. };
  2548. re[SYMBOL]('');
  2549. return !execCalled;
  2550. });
  2551. if (
  2552. !DELEGATES_TO_SYMBOL ||
  2553. !DELEGATES_TO_EXEC ||
  2554. FORCED
  2555. ) {
  2556. var nativeRegExpMethod = /./[SYMBOL];
  2557. var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
  2558. var $exec = regexp.exec;
  2559. if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
  2560. if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
  2561. // The native String method already delegates to @@method (this
  2562. // polyfilled function), leasing to infinite recursion.
  2563. // We avoid it by directly calling the native @@method method.
  2564. return { done: true, value: call(nativeRegExpMethod, regexp, str, arg2) };
  2565. }
  2566. return { done: true, value: call(nativeMethod, str, regexp, arg2) };
  2567. }
  2568. return { done: false };
  2569. });
  2570. defineBuiltIn(String.prototype, KEY, methods[0]);
  2571. defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
  2572. }
  2573. if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
  2574. };
  2575. return fixRegexpWellKnownSymbolLogic;
  2576. }
  2577. var stringMultibyte;
  2578. var hasRequiredStringMultibyte;
  2579. function requireStringMultibyte () {
  2580. if (hasRequiredStringMultibyte) return stringMultibyte;
  2581. hasRequiredStringMultibyte = 1;
  2582. var uncurryThis = requireFunctionUncurryThis();
  2583. var toIntegerOrInfinity = requireToIntegerOrInfinity();
  2584. var toString = requireToString();
  2585. var requireObjectCoercible = requireRequireObjectCoercible();
  2586. var charAt = uncurryThis(''.charAt);
  2587. var charCodeAt = uncurryThis(''.charCodeAt);
  2588. var stringSlice = uncurryThis(''.slice);
  2589. var createMethod = function (CONVERT_TO_STRING) {
  2590. return function ($this, pos) {
  2591. var S = toString(requireObjectCoercible($this));
  2592. var position = toIntegerOrInfinity(pos);
  2593. var size = S.length;
  2594. var first, second;
  2595. if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
  2596. first = charCodeAt(S, position);
  2597. return first < 0xD800 || first > 0xDBFF || position + 1 === size
  2598. || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
  2599. ? CONVERT_TO_STRING
  2600. ? charAt(S, position)
  2601. : first
  2602. : CONVERT_TO_STRING
  2603. ? stringSlice(S, position, position + 2)
  2604. : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
  2605. };
  2606. };
  2607. stringMultibyte = {
  2608. // `String.prototype.codePointAt` method
  2609. // https://tc39.es/ecma262/#sec-string.prototype.codepointat
  2610. codeAt: createMethod(false),
  2611. // `String.prototype.at` method
  2612. // https://github.com/mathiasbynens/String.prototype.at
  2613. charAt: createMethod(true)
  2614. };
  2615. return stringMultibyte;
  2616. }
  2617. var advanceStringIndex;
  2618. var hasRequiredAdvanceStringIndex;
  2619. function requireAdvanceStringIndex () {
  2620. if (hasRequiredAdvanceStringIndex) return advanceStringIndex;
  2621. hasRequiredAdvanceStringIndex = 1;
  2622. var charAt = requireStringMultibyte().charAt;
  2623. // `AdvanceStringIndex` abstract operation
  2624. // https://tc39.es/ecma262/#sec-advancestringindex
  2625. advanceStringIndex = function (S, index, unicode) {
  2626. return index + (unicode ? charAt(S, index).length : 1);
  2627. };
  2628. return advanceStringIndex;
  2629. }
  2630. var getSubstitution;
  2631. var hasRequiredGetSubstitution;
  2632. function requireGetSubstitution () {
  2633. if (hasRequiredGetSubstitution) return getSubstitution;
  2634. hasRequiredGetSubstitution = 1;
  2635. var uncurryThis = requireFunctionUncurryThis();
  2636. var toObject = requireToObject();
  2637. var floor = Math.floor;
  2638. var charAt = uncurryThis(''.charAt);
  2639. var replace = uncurryThis(''.replace);
  2640. var stringSlice = uncurryThis(''.slice);
  2641. // eslint-disable-next-line redos/no-vulnerable -- safe
  2642. var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
  2643. var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
  2644. // `GetSubstitution` abstract operation
  2645. // https://tc39.es/ecma262/#sec-getsubstitution
  2646. getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) {
  2647. var tailPos = position + matched.length;
  2648. var m = captures.length;
  2649. var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
  2650. if (namedCaptures !== undefined) {
  2651. namedCaptures = toObject(namedCaptures);
  2652. symbols = SUBSTITUTION_SYMBOLS;
  2653. }
  2654. return replace(replacement, symbols, function (match, ch) {
  2655. var capture;
  2656. switch (charAt(ch, 0)) {
  2657. case '$': return '$';
  2658. case '&': return matched;
  2659. case '`': return stringSlice(str, 0, position);
  2660. case "'": return stringSlice(str, tailPos);
  2661. case '<':
  2662. capture = namedCaptures[stringSlice(ch, 1, -1)];
  2663. break;
  2664. default: // \d\d?
  2665. var n = +ch;
  2666. if (n === 0) return match;
  2667. if (n > m) {
  2668. var f = floor(n / 10);
  2669. if (f === 0) return match;
  2670. if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
  2671. return match;
  2672. }
  2673. capture = captures[n - 1];
  2674. }
  2675. return capture === undefined ? '' : capture;
  2676. });
  2677. };
  2678. return getSubstitution;
  2679. }
  2680. var regexpExecAbstract;
  2681. var hasRequiredRegexpExecAbstract;
  2682. function requireRegexpExecAbstract () {
  2683. if (hasRequiredRegexpExecAbstract) return regexpExecAbstract;
  2684. hasRequiredRegexpExecAbstract = 1;
  2685. var call = requireFunctionCall();
  2686. var anObject = requireAnObject();
  2687. var isCallable = requireIsCallable();
  2688. var classof = requireClassofRaw();
  2689. var regexpExec = requireRegexpExec();
  2690. var $TypeError = TypeError;
  2691. // `RegExpExec` abstract operation
  2692. // https://tc39.es/ecma262/#sec-regexpexec
  2693. regexpExecAbstract = function (R, S) {
  2694. var exec = R.exec;
  2695. if (isCallable(exec)) {
  2696. var result = call(exec, R, S);
  2697. if (result !== null) anObject(result);
  2698. return result;
  2699. }
  2700. if (classof(R) === 'RegExp') return call(regexpExec, R, S);
  2701. throw new $TypeError('RegExp#exec called on incompatible receiver');
  2702. };
  2703. return regexpExecAbstract;
  2704. }
  2705. var hasRequiredEs_string_replace;
  2706. function requireEs_string_replace () {
  2707. if (hasRequiredEs_string_replace) return es_string_replace;
  2708. hasRequiredEs_string_replace = 1;
  2709. var apply = requireFunctionApply();
  2710. var call = requireFunctionCall();
  2711. var uncurryThis = requireFunctionUncurryThis();
  2712. var fixRegExpWellKnownSymbolLogic = requireFixRegexpWellKnownSymbolLogic();
  2713. var fails = requireFails();
  2714. var anObject = requireAnObject();
  2715. var isCallable = requireIsCallable();
  2716. var isNullOrUndefined = requireIsNullOrUndefined();
  2717. var toIntegerOrInfinity = requireToIntegerOrInfinity();
  2718. var toLength = requireToLength();
  2719. var toString = requireToString();
  2720. var requireObjectCoercible = requireRequireObjectCoercible();
  2721. var advanceStringIndex = requireAdvanceStringIndex();
  2722. var getMethod = requireGetMethod();
  2723. var getSubstitution = requireGetSubstitution();
  2724. var regExpExec = requireRegexpExecAbstract();
  2725. var wellKnownSymbol = requireWellKnownSymbol();
  2726. var REPLACE = wellKnownSymbol('replace');
  2727. var max = Math.max;
  2728. var min = Math.min;
  2729. var concat = uncurryThis([].concat);
  2730. var push = uncurryThis([].push);
  2731. var stringIndexOf = uncurryThis(''.indexOf);
  2732. var stringSlice = uncurryThis(''.slice);
  2733. var maybeToString = function (it) {
  2734. return it === undefined ? it : String(it);
  2735. };
  2736. // IE <= 11 replaces $0 with the whole match, as if it was $&
  2737. // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
  2738. var REPLACE_KEEPS_$0 = (function () {
  2739. // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
  2740. return 'a'.replace(/./, '$0') === '$0';
  2741. })();
  2742. // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
  2743. var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
  2744. if (/./[REPLACE]) {
  2745. return /./[REPLACE]('a', '$0') === '';
  2746. }
  2747. return false;
  2748. })();
  2749. var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
  2750. var re = /./;
  2751. re.exec = function () {
  2752. var result = [];
  2753. result.groups = { a: '7' };
  2754. return result;
  2755. };
  2756. // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
  2757. return ''.replace(re, '$<a>') !== '7';
  2758. });
  2759. // @@replace logic
  2760. fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
  2761. var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
  2762. return [
  2763. // `String.prototype.replace` method
  2764. // https://tc39.es/ecma262/#sec-string.prototype.replace
  2765. function replace(searchValue, replaceValue) {
  2766. var O = requireObjectCoercible(this);
  2767. var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
  2768. return replacer
  2769. ? call(replacer, searchValue, O, replaceValue)
  2770. : call(nativeReplace, toString(O), searchValue, replaceValue);
  2771. },
  2772. // `RegExp.prototype[@@replace]` method
  2773. // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
  2774. function (string, replaceValue) {
  2775. var rx = anObject(this);
  2776. var S = toString(string);
  2777. if (
  2778. typeof replaceValue == 'string' &&
  2779. stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
  2780. stringIndexOf(replaceValue, '$<') === -1
  2781. ) {
  2782. var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
  2783. if (res.done) return res.value;
  2784. }
  2785. var functionalReplace = isCallable(replaceValue);
  2786. if (!functionalReplace) replaceValue = toString(replaceValue);
  2787. var global = rx.global;
  2788. var fullUnicode;
  2789. if (global) {
  2790. fullUnicode = rx.unicode;
  2791. rx.lastIndex = 0;
  2792. }
  2793. var results = [];
  2794. var result;
  2795. while (true) {
  2796. result = regExpExec(rx, S);
  2797. if (result === null) break;
  2798. push(results, result);
  2799. if (!global) break;
  2800. var matchStr = toString(result[0]);
  2801. if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
  2802. }
  2803. var accumulatedResult = '';
  2804. var nextSourcePosition = 0;
  2805. for (var i = 0; i < results.length; i++) {
  2806. result = results[i];
  2807. var matched = toString(result[0]);
  2808. var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
  2809. var captures = [];
  2810. var replacement;
  2811. // NOTE: This is equivalent to
  2812. // captures = result.slice(1).map(maybeToString)
  2813. // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
  2814. // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
  2815. // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
  2816. for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
  2817. var namedCaptures = result.groups;
  2818. if (functionalReplace) {
  2819. var replacerArgs = concat([matched], captures, position, S);
  2820. if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
  2821. replacement = toString(apply(replaceValue, undefined, replacerArgs));
  2822. } else {
  2823. replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
  2824. }
  2825. if (position >= nextSourcePosition) {
  2826. accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
  2827. nextSourcePosition = position + matched.length;
  2828. }
  2829. }
  2830. return accumulatedResult + stringSlice(S, nextSourcePosition);
  2831. }
  2832. ];
  2833. }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
  2834. return es_string_replace;
  2835. }
  2836. requireEs_string_replace();
  2837. /* eslint-disable no-unused-vars */
  2838. /**
  2839. * @author zhixin wen <wenzhixin2010@gmail.com>
  2840. * extensions: https://github.com/vitalets/x-editable
  2841. */
  2842. var Utils = $.fn.bootstrapTable.utils;
  2843. Object.assign($.fn.bootstrapTable.defaults, {
  2844. editable: true,
  2845. onEditableInit: function onEditableInit() {
  2846. return false;
  2847. },
  2848. onEditableSave: function onEditableSave(field, row, rowIndex, oldValue, $el) {
  2849. return false;
  2850. },
  2851. onEditableShown: function onEditableShown(field, row, $el, editable) {
  2852. return false;
  2853. },
  2854. onEditableHidden: function onEditableHidden(field, row, $el, reason) {
  2855. return false;
  2856. }
  2857. });
  2858. Object.assign($.fn.bootstrapTable.columnDefaults, {
  2859. alwaysUseFormatter: false
  2860. });
  2861. Object.assign($.fn.bootstrapTable.events, {
  2862. 'editable-init.bs.table': 'onEditableInit',
  2863. 'editable-save.bs.table': 'onEditableSave',
  2864. 'editable-shown.bs.table': 'onEditableShown',
  2865. 'editable-hidden.bs.table': 'onEditableHidden'
  2866. });
  2867. $.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  2868. function _class() {
  2869. _classCallCheck(this, _class);
  2870. return _callSuper(this, _class, arguments);
  2871. }
  2872. _inherits(_class, _$$BootstrapTable);
  2873. return _createClass(_class, [{
  2874. key: "initTable",
  2875. value: function initTable() {
  2876. var _this = this;
  2877. _superPropGet(_class, "initTable", this)([]);
  2878. if (!this.options.editable) {
  2879. return;
  2880. }
  2881. this.editedCells = [];
  2882. $.each(this.columns, function (i, column) {
  2883. if (!column.editable) {
  2884. return;
  2885. }
  2886. var editableOptions = {};
  2887. var editableDataPrefix = 'editable-';
  2888. var processDataOptions = function processDataOptions(key, value) {
  2889. // Replace camel case with dashes.
  2890. var dashKey = key.replace(/([A-Z])/g, function ($1) {
  2891. return "-".concat($1.toLowerCase());
  2892. });
  2893. if (dashKey.indexOf(editableDataPrefix) === 0) {
  2894. editableOptions[dashKey.replace(editableDataPrefix, 'data-')] = value;
  2895. }
  2896. };
  2897. var formatterIsSet = column.formatter ? true : false;
  2898. $.each(_this.options, processDataOptions);
  2899. column.formatter = column.formatter || function (value) {
  2900. return value;
  2901. };
  2902. column._formatter = column._formatter ? column._formatter : column.formatter;
  2903. column.formatter = function (value, row, index, field) {
  2904. var result = Utils.calculateObjectValue(column, column._formatter, [value, row, index, field], value);
  2905. result = typeof result === 'undefined' || result === null ? _this.options.undefinedText : result;
  2906. if (_this.options.uniqueId !== undefined && !column.alwaysUseFormatter) {
  2907. var uniqueId = Utils.getItemField(row, _this.options.uniqueId, false);
  2908. if ($.inArray(column.field + uniqueId, _this.editedCells) !== -1) {
  2909. result = value;
  2910. }
  2911. }
  2912. $.each(column, processDataOptions);
  2913. var editableOpts = Utils.calculateObjectValue(column, column.editable, [index, row], {});
  2914. var noEditFormatter = editableOpts.hasOwnProperty('noEditFormatter') && editableOpts.noEditFormatter(value, row, index, field);
  2915. if (noEditFormatter) {
  2916. return noEditFormatter;
  2917. }
  2918. var editableDataMarkup = '';
  2919. $.each(editableOptions, function (key, value) {
  2920. editableDataMarkup += " ".concat(key, "=\"").concat(value, "\"");
  2921. });
  2922. return "<a href=\"javascript:void(0)\"\n data-name=\"".concat(column.field, "\"\n data-pk=\"").concat(row[_this.options.idField], "\"\n data-value=\"").concat(value || '', "\"\n ").concat(editableDataMarkup, ">").concat(formatterIsSet ? result : '', "</a>"); // expand all data-editable-XXX
  2923. };
  2924. });
  2925. }
  2926. }, {
  2927. key: "initBody",
  2928. value: function initBody(fixedScroll) {
  2929. var _this2 = this;
  2930. _superPropGet(_class, "initBody", this)([fixedScroll]);
  2931. if (!this.options.editable) {
  2932. return;
  2933. }
  2934. $.each(this.columns, function (i, column) {
  2935. if (!column.editable) {
  2936. return;
  2937. }
  2938. var data = _this2.getData({
  2939. escape: true
  2940. });
  2941. var $field = _this2.$body.find("a[data-name=\"".concat(column.field, "\"]"));
  2942. $field.each(function (i, element) {
  2943. var $element = $(element);
  2944. var $tr = $element.closest('tr');
  2945. var index = $tr.data('index');
  2946. var row = data[index];
  2947. var editableOpts = Utils.calculateObjectValue(column, column.editable, [index, row, $element], {});
  2948. $element.editable(editableOpts);
  2949. });
  2950. $field.off('save').on('save', function (_ref, _ref2) {
  2951. var currentTarget = _ref.currentTarget;
  2952. var submitValue = _ref2.submitValue;
  2953. var $this = $(currentTarget);
  2954. var data = _this2.getData();
  2955. var rowIndex = $this.parents('tr[data-index]').data('index');
  2956. var row = data[rowIndex];
  2957. var oldValue = row[column.field];
  2958. if (_this2.options.uniqueId !== undefined && !column.alwaysUseFormatter) {
  2959. var uniqueId = Utils.getItemField(row, _this2.options.uniqueId, false);
  2960. if ($.inArray(column.field + uniqueId, _this2.editedCells) === -1) {
  2961. _this2.editedCells.push(column.field + uniqueId);
  2962. }
  2963. }
  2964. submitValue = Utils.escapeHTML(submitValue);
  2965. $this.data('value', submitValue);
  2966. row[column.field] = submitValue;
  2967. _this2.trigger('editable-save', column.field, row, rowIndex, oldValue, $this);
  2968. _this2.initBody();
  2969. });
  2970. $field.off('shown').on('shown', function (_ref3, editable) {
  2971. var currentTarget = _ref3.currentTarget;
  2972. var $this = $(currentTarget);
  2973. var data = _this2.getData();
  2974. var rowIndex = $this.parents('tr[data-index]').data('index');
  2975. var row = data[rowIndex];
  2976. _this2.trigger('editable-shown', column.field, row, $this, editable);
  2977. });
  2978. $field.off('hidden').on('hidden', function (_ref4, reason) {
  2979. var currentTarget = _ref4.currentTarget;
  2980. var $this = $(currentTarget);
  2981. var data = _this2.getData();
  2982. var rowIndex = $this.parents('tr[data-index]').data('index');
  2983. var row = data[rowIndex];
  2984. _this2.trigger('editable-hidden', column.field, row, $this, reason);
  2985. });
  2986. });
  2987. this.trigger('editable-init');
  2988. }
  2989. }, {
  2990. key: "getData",
  2991. value: function getData(params) {
  2992. var data = _superPropGet(_class, "getData", this)([params]);
  2993. if (params && params.escape) {
  2994. var _iterator = _createForOfIteratorHelper(data),
  2995. _step;
  2996. try {
  2997. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  2998. var row = _step.value;
  2999. for (var _i = 0, _Object$entries = Object.entries(row); _i < _Object$entries.length; _i++) {
  3000. var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
  3001. key = _Object$entries$_i[0],
  3002. value = _Object$entries$_i[1];
  3003. row[key] = Utils.unescapeHTML(value);
  3004. }
  3005. }
  3006. } catch (err) {
  3007. _iterator.e(err);
  3008. } finally {
  3009. _iterator.f();
  3010. }
  3011. }
  3012. return data;
  3013. }
  3014. }]);
  3015. }($.BootstrapTable);
  3016. }));