bootstrap-table-addrbar.js 79 KB

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