bootstrap-table-addrbar.js 93 KB

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