bootstrap-table-addrbar.js 99 KB

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