bootstrap-table-addrbar.js 91 KB

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