bootstrap-table-export.js 123 KB

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