bootstrap-table-addrbar.js 60 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792
  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. return Constructor;
  26. }
  27. function _inherits(subClass, superClass) {
  28. if (typeof superClass !== "function" && superClass !== null) {
  29. throw new TypeError("Super expression must either be null or a function");
  30. }
  31. subClass.prototype = Object.create(superClass && superClass.prototype, {
  32. constructor: {
  33. value: subClass,
  34. writable: true,
  35. configurable: true
  36. }
  37. });
  38. if (superClass) _setPrototypeOf(subClass, superClass);
  39. }
  40. function _getPrototypeOf(o) {
  41. _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
  42. return o.__proto__ || Object.getPrototypeOf(o);
  43. };
  44. return _getPrototypeOf(o);
  45. }
  46. function _setPrototypeOf(o, p) {
  47. _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
  48. o.__proto__ = p;
  49. return o;
  50. };
  51. return _setPrototypeOf(o, p);
  52. }
  53. function _isNativeReflectConstruct() {
  54. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  55. if (Reflect.construct.sham) return false;
  56. if (typeof Proxy === "function") return true;
  57. try {
  58. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  59. return true;
  60. } catch (e) {
  61. return false;
  62. }
  63. }
  64. function _assertThisInitialized(self) {
  65. if (self === void 0) {
  66. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  67. }
  68. return self;
  69. }
  70. function _possibleConstructorReturn(self, call) {
  71. if (call && (typeof call === "object" || typeof call === "function")) {
  72. return call;
  73. }
  74. return _assertThisInitialized(self);
  75. }
  76. function _createSuper(Derived) {
  77. var hasNativeReflectConstruct = _isNativeReflectConstruct();
  78. return function _createSuperInternal() {
  79. var Super = _getPrototypeOf(Derived),
  80. result;
  81. if (hasNativeReflectConstruct) {
  82. var NewTarget = _getPrototypeOf(this).constructor;
  83. result = Reflect.construct(Super, arguments, NewTarget);
  84. } else {
  85. result = Super.apply(this, arguments);
  86. }
  87. return _possibleConstructorReturn(this, result);
  88. };
  89. }
  90. function _superPropBase(object, property) {
  91. while (!Object.prototype.hasOwnProperty.call(object, property)) {
  92. object = _getPrototypeOf(object);
  93. if (object === null) break;
  94. }
  95. return object;
  96. }
  97. function _get(target, property, receiver) {
  98. if (typeof Reflect !== "undefined" && Reflect.get) {
  99. _get = Reflect.get;
  100. } else {
  101. _get = function _get(target, property, receiver) {
  102. var base = _superPropBase(target, property);
  103. if (!base) return;
  104. var desc = Object.getOwnPropertyDescriptor(base, property);
  105. if (desc.get) {
  106. return desc.get.call(receiver);
  107. }
  108. return desc.value;
  109. };
  110. }
  111. return _get(target, property, receiver || target);
  112. }
  113. function _slicedToArray(arr, i) {
  114. return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
  115. }
  116. function _arrayWithHoles(arr) {
  117. if (Array.isArray(arr)) return arr;
  118. }
  119. function _iterableToArrayLimit(arr, i) {
  120. if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
  121. var _arr = [];
  122. var _n = true;
  123. var _d = false;
  124. var _e = undefined;
  125. try {
  126. for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
  127. _arr.push(_s.value);
  128. if (i && _arr.length === i) break;
  129. }
  130. } catch (err) {
  131. _d = true;
  132. _e = err;
  133. } finally {
  134. try {
  135. if (!_n && _i["return"] != null) _i["return"]();
  136. } finally {
  137. if (_d) throw _e;
  138. }
  139. }
  140. return _arr;
  141. }
  142. function _unsupportedIterableToArray(o, minLen) {
  143. if (!o) return;
  144. if (typeof o === "string") return _arrayLikeToArray(o, minLen);
  145. var n = Object.prototype.toString.call(o).slice(8, -1);
  146. if (n === "Object" && o.constructor) n = o.constructor.name;
  147. if (n === "Map" || n === "Set") return Array.from(o);
  148. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
  149. }
  150. function _arrayLikeToArray(arr, len) {
  151. if (len == null || len > arr.length) len = arr.length;
  152. for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
  153. return arr2;
  154. }
  155. function _nonIterableRest() {
  156. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  157. }
  158. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  159. function createCommonjsModule(fn, module) {
  160. return module = { exports: {} }, fn(module, module.exports), module.exports;
  161. }
  162. var check = function (it) {
  163. return it && it.Math == Math && it;
  164. };
  165. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  166. var global_1 =
  167. // eslint-disable-next-line es/no-global-this -- safe
  168. check(typeof globalThis == 'object' && globalThis) ||
  169. check(typeof window == 'object' && window) ||
  170. // eslint-disable-next-line no-restricted-globals -- safe
  171. check(typeof self == 'object' && self) ||
  172. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  173. // eslint-disable-next-line no-new-func -- fallback
  174. (function () { return this; })() || Function('return this')();
  175. var fails = function (exec) {
  176. try {
  177. return !!exec();
  178. } catch (error) {
  179. return true;
  180. }
  181. };
  182. // Detect IE8's incomplete defineProperty implementation
  183. var descriptors = !fails(function () {
  184. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  185. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
  186. });
  187. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  188. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  189. var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  190. // Nashorn ~ JDK8 bug
  191. var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  192. // `Object.prototype.propertyIsEnumerable` method implementation
  193. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  194. var f$4 = NASHORN_BUG ? function propertyIsEnumerable(V) {
  195. var descriptor = getOwnPropertyDescriptor$1(this, V);
  196. return !!descriptor && descriptor.enumerable;
  197. } : $propertyIsEnumerable;
  198. var objectPropertyIsEnumerable = {
  199. f: f$4
  200. };
  201. var createPropertyDescriptor = function (bitmap, value) {
  202. return {
  203. enumerable: !(bitmap & 1),
  204. configurable: !(bitmap & 2),
  205. writable: !(bitmap & 4),
  206. value: value
  207. };
  208. };
  209. var toString = {}.toString;
  210. var classofRaw = function (it) {
  211. return toString.call(it).slice(8, -1);
  212. };
  213. var split = ''.split;
  214. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  215. var indexedObject = fails(function () {
  216. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  217. // eslint-disable-next-line no-prototype-builtins -- safe
  218. return !Object('z').propertyIsEnumerable(0);
  219. }) ? function (it) {
  220. return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
  221. } : Object;
  222. // `RequireObjectCoercible` abstract operation
  223. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  224. var requireObjectCoercible = function (it) {
  225. if (it == undefined) throw TypeError("Can't call method on " + it);
  226. return it;
  227. };
  228. // toObject with fallback for non-array-like ES3 strings
  229. var toIndexedObject = function (it) {
  230. return indexedObject(requireObjectCoercible(it));
  231. };
  232. var isObject = function (it) {
  233. return typeof it === 'object' ? it !== null : typeof it === 'function';
  234. };
  235. // `ToPrimitive` abstract operation
  236. // https://tc39.es/ecma262/#sec-toprimitive
  237. // instead of the ES6 spec version, we didn't implement @@toPrimitive case
  238. // and the second argument - flag - preferred type is a string
  239. var toPrimitive = function (input, PREFERRED_STRING) {
  240. if (!isObject(input)) return input;
  241. var fn, val;
  242. if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
  243. if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
  244. if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
  245. throw TypeError("Can't convert object to primitive value");
  246. };
  247. var hasOwnProperty = {}.hasOwnProperty;
  248. var has$1 = function (it, key) {
  249. return hasOwnProperty.call(it, key);
  250. };
  251. var document = global_1.document;
  252. // typeof document.createElement is 'object' in old IE
  253. var EXISTS = isObject(document) && isObject(document.createElement);
  254. var documentCreateElement = function (it) {
  255. return EXISTS ? document.createElement(it) : {};
  256. };
  257. // Thank's IE8 for his funny defineProperty
  258. var ie8DomDefine = !descriptors && !fails(function () {
  259. // eslint-disable-next-line es/no-object-defineproperty -- requied for testing
  260. return Object.defineProperty(documentCreateElement('div'), 'a', {
  261. get: function () { return 7; }
  262. }).a != 7;
  263. });
  264. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  265. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  266. // `Object.getOwnPropertyDescriptor` method
  267. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  268. var f$3 = descriptors ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
  269. O = toIndexedObject(O);
  270. P = toPrimitive(P, true);
  271. if (ie8DomDefine) try {
  272. return $getOwnPropertyDescriptor(O, P);
  273. } catch (error) { /* empty */ }
  274. if (has$1(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
  275. };
  276. var objectGetOwnPropertyDescriptor = {
  277. f: f$3
  278. };
  279. var anObject = function (it) {
  280. if (!isObject(it)) {
  281. throw TypeError(String(it) + ' is not an object');
  282. } return it;
  283. };
  284. // eslint-disable-next-line es/no-object-defineproperty -- safe
  285. var $defineProperty = Object.defineProperty;
  286. // `Object.defineProperty` method
  287. // https://tc39.es/ecma262/#sec-object.defineproperty
  288. var f$2 = descriptors ? $defineProperty : function defineProperty(O, P, Attributes) {
  289. anObject(O);
  290. P = toPrimitive(P, true);
  291. anObject(Attributes);
  292. if (ie8DomDefine) try {
  293. return $defineProperty(O, P, Attributes);
  294. } catch (error) { /* empty */ }
  295. if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
  296. if ('value' in Attributes) O[P] = Attributes.value;
  297. return O;
  298. };
  299. var objectDefineProperty = {
  300. f: f$2
  301. };
  302. var createNonEnumerableProperty = descriptors ? function (object, key, value) {
  303. return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
  304. } : function (object, key, value) {
  305. object[key] = value;
  306. return object;
  307. };
  308. var setGlobal = function (key, value) {
  309. try {
  310. createNonEnumerableProperty(global_1, key, value);
  311. } catch (error) {
  312. global_1[key] = value;
  313. } return value;
  314. };
  315. var SHARED = '__core-js_shared__';
  316. var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
  317. var sharedStore = store$1;
  318. var functionToString = Function.toString;
  319. // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
  320. if (typeof sharedStore.inspectSource != 'function') {
  321. sharedStore.inspectSource = function (it) {
  322. return functionToString.call(it);
  323. };
  324. }
  325. var inspectSource = sharedStore.inspectSource;
  326. var WeakMap$1 = global_1.WeakMap;
  327. var nativeWeakMap = typeof WeakMap$1 === 'function' && /native code/.test(inspectSource(WeakMap$1));
  328. var shared = createCommonjsModule(function (module) {
  329. (module.exports = function (key, value) {
  330. return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
  331. })('versions', []).push({
  332. version: '3.10.1',
  333. mode: 'global',
  334. copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
  335. });
  336. });
  337. var id = 0;
  338. var postfix = Math.random();
  339. var uid = function (key) {
  340. return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
  341. };
  342. var keys$1 = shared('keys');
  343. var sharedKey = function (key) {
  344. return keys$1[key] || (keys$1[key] = uid(key));
  345. };
  346. var hiddenKeys$1 = {};
  347. var WeakMap = global_1.WeakMap;
  348. var set, get, has;
  349. var enforce = function (it) {
  350. return has(it) ? get(it) : set(it, {});
  351. };
  352. var getterFor = function (TYPE) {
  353. return function (it) {
  354. var state;
  355. if (!isObject(it) || (state = get(it)).type !== TYPE) {
  356. throw TypeError('Incompatible receiver, ' + TYPE + ' required');
  357. } return state;
  358. };
  359. };
  360. if (nativeWeakMap) {
  361. var store = sharedStore.state || (sharedStore.state = new WeakMap());
  362. var wmget = store.get;
  363. var wmhas = store.has;
  364. var wmset = store.set;
  365. set = function (it, metadata) {
  366. metadata.facade = it;
  367. wmset.call(store, it, metadata);
  368. return metadata;
  369. };
  370. get = function (it) {
  371. return wmget.call(store, it) || {};
  372. };
  373. has = function (it) {
  374. return wmhas.call(store, it);
  375. };
  376. } else {
  377. var STATE = sharedKey('state');
  378. hiddenKeys$1[STATE] = true;
  379. set = function (it, metadata) {
  380. metadata.facade = it;
  381. createNonEnumerableProperty(it, STATE, metadata);
  382. return metadata;
  383. };
  384. get = function (it) {
  385. return has$1(it, STATE) ? it[STATE] : {};
  386. };
  387. has = function (it) {
  388. return has$1(it, STATE);
  389. };
  390. }
  391. var internalState = {
  392. set: set,
  393. get: get,
  394. has: has,
  395. enforce: enforce,
  396. getterFor: getterFor
  397. };
  398. var redefine = createCommonjsModule(function (module) {
  399. var getInternalState = internalState.get;
  400. var enforceInternalState = internalState.enforce;
  401. var TEMPLATE = String(String).split('String');
  402. (module.exports = function (O, key, value, options) {
  403. var unsafe = options ? !!options.unsafe : false;
  404. var simple = options ? !!options.enumerable : false;
  405. var noTargetGet = options ? !!options.noTargetGet : false;
  406. var state;
  407. if (typeof value == 'function') {
  408. if (typeof key == 'string' && !has$1(value, 'name')) {
  409. createNonEnumerableProperty(value, 'name', key);
  410. }
  411. state = enforceInternalState(value);
  412. if (!state.source) {
  413. state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
  414. }
  415. }
  416. if (O === global_1) {
  417. if (simple) O[key] = value;
  418. else setGlobal(key, value);
  419. return;
  420. } else if (!unsafe) {
  421. delete O[key];
  422. } else if (!noTargetGet && O[key]) {
  423. simple = true;
  424. }
  425. if (simple) O[key] = value;
  426. else createNonEnumerableProperty(O, key, value);
  427. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  428. })(Function.prototype, 'toString', function toString() {
  429. return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
  430. });
  431. });
  432. var path = global_1;
  433. var aFunction = function (variable) {
  434. return typeof variable == 'function' ? variable : undefined;
  435. };
  436. var getBuiltIn = function (namespace, method) {
  437. return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])
  438. : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
  439. };
  440. var ceil = Math.ceil;
  441. var floor$1 = Math.floor;
  442. // `ToInteger` abstract operation
  443. // https://tc39.es/ecma262/#sec-tointeger
  444. var toInteger = function (argument) {
  445. return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor$1 : ceil)(argument);
  446. };
  447. var min$2 = Math.min;
  448. // `ToLength` abstract operation
  449. // https://tc39.es/ecma262/#sec-tolength
  450. var toLength = function (argument) {
  451. return argument > 0 ? min$2(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  452. };
  453. var max$1 = Math.max;
  454. var min$1 = Math.min;
  455. // Helper for a popular repeating case of the spec:
  456. // Let integer be ? ToInteger(index).
  457. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  458. var toAbsoluteIndex = function (index, length) {
  459. var integer = toInteger(index);
  460. return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
  461. };
  462. // `Array.prototype.{ indexOf, includes }` methods implementation
  463. var createMethod$2 = function (IS_INCLUDES) {
  464. return function ($this, el, fromIndex) {
  465. var O = toIndexedObject($this);
  466. var length = toLength(O.length);
  467. var index = toAbsoluteIndex(fromIndex, length);
  468. var value;
  469. // Array#includes uses SameValueZero equality algorithm
  470. // eslint-disable-next-line no-self-compare -- NaN check
  471. if (IS_INCLUDES && el != el) while (length > index) {
  472. value = O[index++];
  473. // eslint-disable-next-line no-self-compare -- NaN check
  474. if (value != value) return true;
  475. // Array#indexOf ignores holes, Array#includes - not
  476. } else for (;length > index; index++) {
  477. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  478. } return !IS_INCLUDES && -1;
  479. };
  480. };
  481. var arrayIncludes = {
  482. // `Array.prototype.includes` method
  483. // https://tc39.es/ecma262/#sec-array.prototype.includes
  484. includes: createMethod$2(true),
  485. // `Array.prototype.indexOf` method
  486. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  487. indexOf: createMethod$2(false)
  488. };
  489. var indexOf = arrayIncludes.indexOf;
  490. var objectKeysInternal = function (object, names) {
  491. var O = toIndexedObject(object);
  492. var i = 0;
  493. var result = [];
  494. var key;
  495. for (key in O) !has$1(hiddenKeys$1, key) && has$1(O, key) && result.push(key);
  496. // Don't enum bug & hidden keys
  497. while (names.length > i) if (has$1(O, key = names[i++])) {
  498. ~indexOf(result, key) || result.push(key);
  499. }
  500. return result;
  501. };
  502. // IE8- don't enum bug keys
  503. var enumBugKeys = [
  504. 'constructor',
  505. 'hasOwnProperty',
  506. 'isPrototypeOf',
  507. 'propertyIsEnumerable',
  508. 'toLocaleString',
  509. 'toString',
  510. 'valueOf'
  511. ];
  512. var hiddenKeys = enumBugKeys.concat('length', 'prototype');
  513. // `Object.getOwnPropertyNames` method
  514. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  515. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  516. var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  517. return objectKeysInternal(O, hiddenKeys);
  518. };
  519. var objectGetOwnPropertyNames = {
  520. f: f$1
  521. };
  522. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  523. var f = Object.getOwnPropertySymbols;
  524. var objectGetOwnPropertySymbols = {
  525. f: f
  526. };
  527. // all object keys, includes non-enumerable and symbols
  528. var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
  529. var keys = objectGetOwnPropertyNames.f(anObject(it));
  530. var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
  531. return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
  532. };
  533. var copyConstructorProperties = function (target, source) {
  534. var keys = ownKeys(source);
  535. var defineProperty = objectDefineProperty.f;
  536. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  537. for (var i = 0; i < keys.length; i++) {
  538. var key = keys[i];
  539. if (!has$1(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  540. }
  541. };
  542. var replacement = /#|\.prototype\./;
  543. var isForced = function (feature, detection) {
  544. var value = data[normalize(feature)];
  545. return value == POLYFILL ? true
  546. : value == NATIVE ? false
  547. : typeof detection == 'function' ? fails(detection)
  548. : !!detection;
  549. };
  550. var normalize = isForced.normalize = function (string) {
  551. return String(string).replace(replacement, '.').toLowerCase();
  552. };
  553. var data = isForced.data = {};
  554. var NATIVE = isForced.NATIVE = 'N';
  555. var POLYFILL = isForced.POLYFILL = 'P';
  556. var isForced_1 = isForced;
  557. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  558. /*
  559. options.target - name of the target object
  560. options.global - target is the global object
  561. options.stat - export as static methods of target
  562. options.proto - export as prototype methods of target
  563. options.real - real prototype method for the `pure` version
  564. options.forced - export even if the native feature is available
  565. options.bind - bind methods to the target, required for the `pure` version
  566. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  567. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  568. options.sham - add a flag to not completely full polyfills
  569. options.enumerable - export as enumerable property
  570. options.noTargetGet - prevent calling a getter on target
  571. */
  572. var _export = function (options, source) {
  573. var TARGET = options.target;
  574. var GLOBAL = options.global;
  575. var STATIC = options.stat;
  576. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  577. if (GLOBAL) {
  578. target = global_1;
  579. } else if (STATIC) {
  580. target = global_1[TARGET] || setGlobal(TARGET, {});
  581. } else {
  582. target = (global_1[TARGET] || {}).prototype;
  583. }
  584. if (target) for (key in source) {
  585. sourceProperty = source[key];
  586. if (options.noTargetGet) {
  587. descriptor = getOwnPropertyDescriptor(target, key);
  588. targetProperty = descriptor && descriptor.value;
  589. } else targetProperty = target[key];
  590. FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  591. // contained in target
  592. if (!FORCED && targetProperty !== undefined) {
  593. if (typeof sourceProperty === typeof targetProperty) continue;
  594. copyConstructorProperties(sourceProperty, targetProperty);
  595. }
  596. // add a flag to not completely full polyfills
  597. if (options.sham || (targetProperty && targetProperty.sham)) {
  598. createNonEnumerableProperty(sourceProperty, 'sham', true);
  599. }
  600. // extend global
  601. redefine(target, key, sourceProperty, options);
  602. }
  603. };
  604. // `RegExp.prototype.flags` getter implementation
  605. // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
  606. var regexpFlags = function () {
  607. var that = anObject(this);
  608. var result = '';
  609. if (that.global) result += 'g';
  610. if (that.ignoreCase) result += 'i';
  611. if (that.multiline) result += 'm';
  612. if (that.dotAll) result += 's';
  613. if (that.unicode) result += 'u';
  614. if (that.sticky) result += 'y';
  615. return result;
  616. };
  617. // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
  618. // so we use an intermediate function.
  619. function RE(s, f) {
  620. return RegExp(s, f);
  621. }
  622. var UNSUPPORTED_Y$2 = fails(function () {
  623. // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
  624. var re = RE('a', 'y');
  625. re.lastIndex = 2;
  626. return re.exec('abcd') != null;
  627. });
  628. var BROKEN_CARET = fails(function () {
  629. // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
  630. var re = RE('^r', 'gy');
  631. re.lastIndex = 2;
  632. return re.exec('str') != null;
  633. });
  634. var regexpStickyHelpers = {
  635. UNSUPPORTED_Y: UNSUPPORTED_Y$2,
  636. BROKEN_CARET: BROKEN_CARET
  637. };
  638. var nativeExec = RegExp.prototype.exec;
  639. var nativeReplace = shared('native-string-replace', String.prototype.replace);
  640. var patchedExec = nativeExec;
  641. var UPDATES_LAST_INDEX_WRONG = (function () {
  642. var re1 = /a/;
  643. var re2 = /b*/g;
  644. nativeExec.call(re1, 'a');
  645. nativeExec.call(re2, 'a');
  646. return re1.lastIndex !== 0 || re2.lastIndex !== 0;
  647. })();
  648. var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
  649. // nonparticipating capturing group, copied from es5-shim's String#split patch.
  650. // eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
  651. var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
  652. var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1;
  653. if (PATCH) {
  654. patchedExec = function exec(str) {
  655. var re = this;
  656. var lastIndex, reCopy, match, i;
  657. var sticky = UNSUPPORTED_Y$1 && re.sticky;
  658. var flags = regexpFlags.call(re);
  659. var source = re.source;
  660. var charsAdded = 0;
  661. var strCopy = str;
  662. if (sticky) {
  663. flags = flags.replace('y', '');
  664. if (flags.indexOf('g') === -1) {
  665. flags += 'g';
  666. }
  667. strCopy = String(str).slice(re.lastIndex);
  668. // Support anchored sticky behavior.
  669. if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
  670. source = '(?: ' + source + ')';
  671. strCopy = ' ' + strCopy;
  672. charsAdded++;
  673. }
  674. // ^(? + rx + ) is needed, in combination with some str slicing, to
  675. // simulate the 'y' flag.
  676. reCopy = new RegExp('^(?:' + source + ')', flags);
  677. }
  678. if (NPCG_INCLUDED) {
  679. reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
  680. }
  681. if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
  682. match = nativeExec.call(sticky ? reCopy : re, strCopy);
  683. if (sticky) {
  684. if (match) {
  685. match.input = match.input.slice(charsAdded);
  686. match[0] = match[0].slice(charsAdded);
  687. match.index = re.lastIndex;
  688. re.lastIndex += match[0].length;
  689. } else re.lastIndex = 0;
  690. } else if (UPDATES_LAST_INDEX_WRONG && match) {
  691. re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
  692. }
  693. if (NPCG_INCLUDED && match && match.length > 1) {
  694. // Fix browsers whose `exec` methods don't consistently return `undefined`
  695. // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
  696. nativeReplace.call(match[0], reCopy, function () {
  697. for (i = 1; i < arguments.length - 2; i++) {
  698. if (arguments[i] === undefined) match[i] = undefined;
  699. }
  700. });
  701. }
  702. return match;
  703. };
  704. }
  705. var regexpExec = patchedExec;
  706. // `RegExp.prototype.exec` method
  707. // https://tc39.es/ecma262/#sec-regexp.prototype.exec
  708. _export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {
  709. exec: regexpExec
  710. });
  711. var engineIsNode = classofRaw(global_1.process) == 'process';
  712. var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
  713. var process = global_1.process;
  714. var versions = process && process.versions;
  715. var v8 = versions && versions.v8;
  716. var match, version;
  717. if (v8) {
  718. match = v8.split('.');
  719. version = match[0] + match[1];
  720. } else if (engineUserAgent) {
  721. match = engineUserAgent.match(/Edge\/(\d+)/);
  722. if (!match || match[1] >= 74) {
  723. match = engineUserAgent.match(/Chrome\/(\d+)/);
  724. if (match) version = match[1];
  725. }
  726. }
  727. var engineV8Version = version && +version;
  728. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  729. var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
  730. // eslint-disable-next-line es/no-symbol -- required for testing
  731. return !Symbol.sham &&
  732. // Chrome 38 Symbol has incorrect toString conversion
  733. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  734. (engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
  735. });
  736. /* eslint-disable es/no-symbol -- required for testing */
  737. var useSymbolAsUid = nativeSymbol
  738. && !Symbol.sham
  739. && typeof Symbol.iterator == 'symbol';
  740. var WellKnownSymbolsStore = shared('wks');
  741. var Symbol$1 = global_1.Symbol;
  742. var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
  743. var wellKnownSymbol = function (name) {
  744. if (!has$1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
  745. if (nativeSymbol && has$1(Symbol$1, name)) {
  746. WellKnownSymbolsStore[name] = Symbol$1[name];
  747. } else {
  748. WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
  749. }
  750. } return WellKnownSymbolsStore[name];
  751. };
  752. // TODO: Remove from `core-js@4` since it's moved to entry points
  753. var SPECIES$3 = wellKnownSymbol('species');
  754. var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
  755. // #replace needs built-in support for named groups.
  756. // #match works fine because it just return the exec results, even if it has
  757. // a "grops" property.
  758. var re = /./;
  759. re.exec = function () {
  760. var result = [];
  761. result.groups = { a: '7' };
  762. return result;
  763. };
  764. return ''.replace(re, '$<a>') !== '7';
  765. });
  766. // IE <= 11 replaces $0 with the whole match, as if it was $&
  767. // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
  768. var REPLACE_KEEPS_$0 = (function () {
  769. // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
  770. return 'a'.replace(/./, '$0') === '$0';
  771. })();
  772. var REPLACE = wellKnownSymbol('replace');
  773. // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
  774. var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
  775. if (/./[REPLACE]) {
  776. return /./[REPLACE]('a', '$0') === '';
  777. }
  778. return false;
  779. })();
  780. // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
  781. // Weex JS has frozen built-in prototypes, so use try / catch wrapper
  782. var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
  783. // eslint-disable-next-line regexp/no-empty-group -- required for testing
  784. var re = /(?:)/;
  785. var originalExec = re.exec;
  786. re.exec = function () { return originalExec.apply(this, arguments); };
  787. var result = 'ab'.split(re);
  788. return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
  789. });
  790. var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {
  791. var SYMBOL = wellKnownSymbol(KEY);
  792. var DELEGATES_TO_SYMBOL = !fails(function () {
  793. // String methods call symbol-named RegEp methods
  794. var O = {};
  795. O[SYMBOL] = function () { return 7; };
  796. return ''[KEY](O) != 7;
  797. });
  798. var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
  799. // Symbol-named RegExp methods call .exec
  800. var execCalled = false;
  801. var re = /a/;
  802. if (KEY === 'split') {
  803. // We can't use real regex here since it causes deoptimization
  804. // and serious performance degradation in V8
  805. // https://github.com/zloirock/core-js/issues/306
  806. re = {};
  807. // RegExp[@@split] doesn't call the regex's exec method, but first creates
  808. // a new one. We need to return the patched regex when creating the new one.
  809. re.constructor = {};
  810. re.constructor[SPECIES$3] = function () { return re; };
  811. re.flags = '';
  812. re[SYMBOL] = /./[SYMBOL];
  813. }
  814. re.exec = function () { execCalled = true; return null; };
  815. re[SYMBOL]('');
  816. return !execCalled;
  817. });
  818. if (
  819. !DELEGATES_TO_SYMBOL ||
  820. !DELEGATES_TO_EXEC ||
  821. (KEY === 'replace' && !(
  822. REPLACE_SUPPORTS_NAMED_GROUPS &&
  823. REPLACE_KEEPS_$0 &&
  824. !REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
  825. )) ||
  826. (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
  827. ) {
  828. var nativeRegExpMethod = /./[SYMBOL];
  829. var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
  830. if (regexp.exec === RegExp.prototype.exec) {
  831. if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
  832. // The native String method already delegates to @@method (this
  833. // polyfilled function), leasing to infinite recursion.
  834. // We avoid it by directly calling the native @@method method.
  835. return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
  836. }
  837. return { done: true, value: nativeMethod.call(str, regexp, arg2) };
  838. }
  839. return { done: false };
  840. }, {
  841. REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
  842. REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
  843. });
  844. var stringMethod = methods[0];
  845. var regexMethod = methods[1];
  846. redefine(String.prototype, KEY, stringMethod);
  847. redefine(RegExp.prototype, SYMBOL, length == 2
  848. // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
  849. // 21.2.5.11 RegExp.prototype[@@split](string, limit)
  850. ? function (string, arg) { return regexMethod.call(string, this, arg); }
  851. // 21.2.5.6 RegExp.prototype[@@match](string)
  852. // 21.2.5.9 RegExp.prototype[@@search](string)
  853. : function (string) { return regexMethod.call(string, this); }
  854. );
  855. }
  856. if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
  857. };
  858. // `SameValue` abstract operation
  859. // https://tc39.es/ecma262/#sec-samevalue
  860. // eslint-disable-next-line es/no-object-is -- safe
  861. var sameValue = Object.is || function is(x, y) {
  862. // eslint-disable-next-line no-self-compare -- NaN check
  863. return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
  864. };
  865. // `RegExpExec` abstract operation
  866. // https://tc39.es/ecma262/#sec-regexpexec
  867. var regexpExecAbstract = function (R, S) {
  868. var exec = R.exec;
  869. if (typeof exec === 'function') {
  870. var result = exec.call(R, S);
  871. if (typeof result !== 'object') {
  872. throw TypeError('RegExp exec method returned something other than an Object or null');
  873. }
  874. return result;
  875. }
  876. if (classofRaw(R) !== 'RegExp') {
  877. throw TypeError('RegExp#exec called on incompatible receiver');
  878. }
  879. return regexpExec.call(R, S);
  880. };
  881. // @@search logic
  882. fixRegexpWellKnownSymbolLogic('search', 1, function (SEARCH, nativeSearch, maybeCallNative) {
  883. return [
  884. // `String.prototype.search` method
  885. // https://tc39.es/ecma262/#sec-string.prototype.search
  886. function search(regexp) {
  887. var O = requireObjectCoercible(this);
  888. var searcher = regexp == undefined ? undefined : regexp[SEARCH];
  889. return searcher !== undefined ? searcher.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));
  890. },
  891. // `RegExp.prototype[@@search]` method
  892. // https://tc39.es/ecma262/#sec-regexp.prototype-@@search
  893. function (regexp) {
  894. var res = maybeCallNative(nativeSearch, regexp, this);
  895. if (res.done) return res.value;
  896. var rx = anObject(regexp);
  897. var S = String(this);
  898. var previousLastIndex = rx.lastIndex;
  899. if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
  900. var result = regexpExecAbstract(rx, S);
  901. if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
  902. return result === null ? -1 : result.index;
  903. }
  904. ];
  905. });
  906. var aPossiblePrototype = function (it) {
  907. if (!isObject(it) && it !== null) {
  908. throw TypeError("Can't set " + String(it) + ' as a prototype');
  909. } return it;
  910. };
  911. /* eslint-disable no-proto -- safe */
  912. // `Object.setPrototypeOf` method
  913. // https://tc39.es/ecma262/#sec-object.setprototypeof
  914. // Works with __proto__ only. Old v8 can't work with null proto objects.
  915. // eslint-disable-next-line es/no-object-setprototypeof -- safe
  916. var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
  917. var CORRECT_SETTER = false;
  918. var test = {};
  919. var setter;
  920. try {
  921. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  922. setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
  923. setter.call(test, []);
  924. CORRECT_SETTER = test instanceof Array;
  925. } catch (error) { /* empty */ }
  926. return function setPrototypeOf(O, proto) {
  927. anObject(O);
  928. aPossiblePrototype(proto);
  929. if (CORRECT_SETTER) setter.call(O, proto);
  930. else O.__proto__ = proto;
  931. return O;
  932. };
  933. }() : undefined);
  934. // makes subclassing work correct for wrapped built-ins
  935. var inheritIfRequired = function ($this, dummy, Wrapper) {
  936. var NewTarget, NewTargetPrototype;
  937. if (
  938. // it can work only with native `setPrototypeOf`
  939. objectSetPrototypeOf &&
  940. // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
  941. typeof (NewTarget = dummy.constructor) == 'function' &&
  942. NewTarget !== Wrapper &&
  943. isObject(NewTargetPrototype = NewTarget.prototype) &&
  944. NewTargetPrototype !== Wrapper.prototype
  945. ) objectSetPrototypeOf($this, NewTargetPrototype);
  946. return $this;
  947. };
  948. var MATCH$1 = wellKnownSymbol('match');
  949. // `IsRegExp` abstract operation
  950. // https://tc39.es/ecma262/#sec-isregexp
  951. var isRegexp = function (it) {
  952. var isRegExp;
  953. return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
  954. };
  955. var SPECIES$2 = wellKnownSymbol('species');
  956. var setSpecies = function (CONSTRUCTOR_NAME) {
  957. var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
  958. var defineProperty = objectDefineProperty.f;
  959. if (descriptors && Constructor && !Constructor[SPECIES$2]) {
  960. defineProperty(Constructor, SPECIES$2, {
  961. configurable: true,
  962. get: function () { return this; }
  963. });
  964. }
  965. };
  966. var defineProperty = objectDefineProperty.f;
  967. var getOwnPropertyNames = objectGetOwnPropertyNames.f;
  968. var setInternalState = internalState.set;
  969. var MATCH = wellKnownSymbol('match');
  970. var NativeRegExp = global_1.RegExp;
  971. var RegExpPrototype$1 = NativeRegExp.prototype;
  972. var re1 = /a/g;
  973. var re2 = /a/g;
  974. // "new" should create a new object, old webkit bug
  975. var CORRECT_NEW = new NativeRegExp(re1) !== re1;
  976. var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y;
  977. var FORCED$1 = descriptors && isForced_1('RegExp', (!CORRECT_NEW || UNSUPPORTED_Y || fails(function () {
  978. re2[MATCH] = false;
  979. // RegExp constructor can alter flags and IsRegExp works correct with @@match
  980. return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i';
  981. })));
  982. // `RegExp` constructor
  983. // https://tc39.es/ecma262/#sec-regexp-constructor
  984. if (FORCED$1) {
  985. var RegExpWrapper = function RegExp(pattern, flags) {
  986. var thisIsRegExp = this instanceof RegExpWrapper;
  987. var patternIsRegExp = isRegexp(pattern);
  988. var flagsAreUndefined = flags === undefined;
  989. var sticky;
  990. if (!thisIsRegExp && patternIsRegExp && pattern.constructor === RegExpWrapper && flagsAreUndefined) {
  991. return pattern;
  992. }
  993. if (CORRECT_NEW) {
  994. if (patternIsRegExp && !flagsAreUndefined) pattern = pattern.source;
  995. } else if (pattern instanceof RegExpWrapper) {
  996. if (flagsAreUndefined) flags = regexpFlags.call(pattern);
  997. pattern = pattern.source;
  998. }
  999. if (UNSUPPORTED_Y) {
  1000. sticky = !!flags && flags.indexOf('y') > -1;
  1001. if (sticky) flags = flags.replace(/y/g, '');
  1002. }
  1003. var result = inheritIfRequired(
  1004. CORRECT_NEW ? new NativeRegExp(pattern, flags) : NativeRegExp(pattern, flags),
  1005. thisIsRegExp ? this : RegExpPrototype$1,
  1006. RegExpWrapper
  1007. );
  1008. if (UNSUPPORTED_Y && sticky) setInternalState(result, { sticky: sticky });
  1009. return result;
  1010. };
  1011. var proxy = function (key) {
  1012. key in RegExpWrapper || defineProperty(RegExpWrapper, key, {
  1013. configurable: true,
  1014. get: function () { return NativeRegExp[key]; },
  1015. set: function (it) { NativeRegExp[key] = it; }
  1016. });
  1017. };
  1018. var keys = getOwnPropertyNames(NativeRegExp);
  1019. var index = 0;
  1020. while (keys.length > index) proxy(keys[index++]);
  1021. RegExpPrototype$1.constructor = RegExpWrapper;
  1022. RegExpWrapper.prototype = RegExpPrototype$1;
  1023. redefine(global_1, 'RegExp', RegExpWrapper);
  1024. }
  1025. // https://tc39.es/ecma262/#sec-get-regexp-@@species
  1026. setSpecies('RegExp');
  1027. var TO_STRING = 'toString';
  1028. var RegExpPrototype = RegExp.prototype;
  1029. var nativeToString = RegExpPrototype[TO_STRING];
  1030. var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
  1031. // FF44- RegExp#toString has a wrong name
  1032. var INCORRECT_NAME = nativeToString.name != TO_STRING;
  1033. // `RegExp.prototype.toString` method
  1034. // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
  1035. if (NOT_GENERIC || INCORRECT_NAME) {
  1036. redefine(RegExp.prototype, TO_STRING, function toString() {
  1037. var R = anObject(this);
  1038. var p = String(R.source);
  1039. var rf = R.flags;
  1040. var f = String(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype) ? regexpFlags.call(R) : rf);
  1041. return '/' + p + '/' + f;
  1042. }, { unsafe: true });
  1043. }
  1044. // `String.prototype.{ codePointAt, at }` methods implementation
  1045. var createMethod$1 = function (CONVERT_TO_STRING) {
  1046. return function ($this, pos) {
  1047. var S = String(requireObjectCoercible($this));
  1048. var position = toInteger(pos);
  1049. var size = S.length;
  1050. var first, second;
  1051. if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
  1052. first = S.charCodeAt(position);
  1053. return first < 0xD800 || first > 0xDBFF || position + 1 === size
  1054. || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
  1055. ? CONVERT_TO_STRING ? S.charAt(position) : first
  1056. : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
  1057. };
  1058. };
  1059. var stringMultibyte = {
  1060. // `String.prototype.codePointAt` method
  1061. // https://tc39.es/ecma262/#sec-string.prototype.codepointat
  1062. codeAt: createMethod$1(false),
  1063. // `String.prototype.at` method
  1064. // https://github.com/mathiasbynens/String.prototype.at
  1065. charAt: createMethod$1(true)
  1066. };
  1067. var charAt = stringMultibyte.charAt;
  1068. // `AdvanceStringIndex` abstract operation
  1069. // https://tc39.es/ecma262/#sec-advancestringindex
  1070. var advanceStringIndex = function (S, index, unicode) {
  1071. return index + (unicode ? charAt(S, index).length : 1);
  1072. };
  1073. // @@match logic
  1074. fixRegexpWellKnownSymbolLogic('match', 1, function (MATCH, nativeMatch, maybeCallNative) {
  1075. return [
  1076. // `String.prototype.match` method
  1077. // https://tc39.es/ecma262/#sec-string.prototype.match
  1078. function match(regexp) {
  1079. var O = requireObjectCoercible(this);
  1080. var matcher = regexp == undefined ? undefined : regexp[MATCH];
  1081. return matcher !== undefined ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
  1082. },
  1083. // `RegExp.prototype[@@match]` method
  1084. // https://tc39.es/ecma262/#sec-regexp.prototype-@@match
  1085. function (regexp) {
  1086. var res = maybeCallNative(nativeMatch, regexp, this);
  1087. if (res.done) return res.value;
  1088. var rx = anObject(regexp);
  1089. var S = String(this);
  1090. if (!rx.global) return regexpExecAbstract(rx, S);
  1091. var fullUnicode = rx.unicode;
  1092. rx.lastIndex = 0;
  1093. var A = [];
  1094. var n = 0;
  1095. var result;
  1096. while ((result = regexpExecAbstract(rx, S)) !== null) {
  1097. var matchStr = String(result[0]);
  1098. A[n] = matchStr;
  1099. if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
  1100. n++;
  1101. }
  1102. return n === 0 ? null : A;
  1103. }
  1104. ];
  1105. });
  1106. // `Object.keys` method
  1107. // https://tc39.es/ecma262/#sec-object.keys
  1108. // eslint-disable-next-line es/no-object-keys -- safe
  1109. var objectKeys = Object.keys || function keys(O) {
  1110. return objectKeysInternal(O, enumBugKeys);
  1111. };
  1112. var propertyIsEnumerable = objectPropertyIsEnumerable.f;
  1113. // `Object.{ entries, values }` methods implementation
  1114. var createMethod = function (TO_ENTRIES) {
  1115. return function (it) {
  1116. var O = toIndexedObject(it);
  1117. var keys = objectKeys(O);
  1118. var length = keys.length;
  1119. var i = 0;
  1120. var result = [];
  1121. var key;
  1122. while (length > i) {
  1123. key = keys[i++];
  1124. if (!descriptors || propertyIsEnumerable.call(O, key)) {
  1125. result.push(TO_ENTRIES ? [key, O[key]] : O[key]);
  1126. }
  1127. }
  1128. return result;
  1129. };
  1130. };
  1131. var objectToArray = {
  1132. // `Object.entries` method
  1133. // https://tc39.es/ecma262/#sec-object.entries
  1134. entries: createMethod(true),
  1135. // `Object.values` method
  1136. // https://tc39.es/ecma262/#sec-object.values
  1137. values: createMethod(false)
  1138. };
  1139. var $entries = objectToArray.entries;
  1140. // `Object.entries` method
  1141. // https://tc39.es/ecma262/#sec-object.entries
  1142. _export({ target: 'Object', stat: true }, {
  1143. entries: function entries(O) {
  1144. return $entries(O);
  1145. }
  1146. });
  1147. // `IsArray` abstract operation
  1148. // https://tc39.es/ecma262/#sec-isarray
  1149. // eslint-disable-next-line es/no-array-isarray -- safe
  1150. var isArray = Array.isArray || function isArray(arg) {
  1151. return classofRaw(arg) == 'Array';
  1152. };
  1153. // `ToObject` abstract operation
  1154. // https://tc39.es/ecma262/#sec-toobject
  1155. var toObject = function (argument) {
  1156. return Object(requireObjectCoercible(argument));
  1157. };
  1158. var createProperty = function (object, key, value) {
  1159. var propertyKey = toPrimitive(key);
  1160. if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
  1161. else object[propertyKey] = value;
  1162. };
  1163. var SPECIES$1 = wellKnownSymbol('species');
  1164. // `ArraySpeciesCreate` abstract operation
  1165. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1166. var arraySpeciesCreate = function (originalArray, length) {
  1167. var C;
  1168. if (isArray(originalArray)) {
  1169. C = originalArray.constructor;
  1170. // cross-realm fallback
  1171. if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
  1172. else if (isObject(C)) {
  1173. C = C[SPECIES$1];
  1174. if (C === null) C = undefined;
  1175. }
  1176. } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
  1177. };
  1178. var SPECIES = wellKnownSymbol('species');
  1179. var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
  1180. // We can't use this feature detection in V8 since it causes
  1181. // deoptimization and serious performance degradation
  1182. // https://github.com/zloirock/core-js/issues/677
  1183. return engineV8Version >= 51 || !fails(function () {
  1184. var array = [];
  1185. var constructor = array.constructor = {};
  1186. constructor[SPECIES] = function () {
  1187. return { foo: 1 };
  1188. };
  1189. return array[METHOD_NAME](Boolean).foo !== 1;
  1190. });
  1191. };
  1192. var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
  1193. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
  1194. var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
  1195. // We can't use this feature detection in V8 since it causes
  1196. // deoptimization and serious performance degradation
  1197. // https://github.com/zloirock/core-js/issues/679
  1198. var IS_CONCAT_SPREADABLE_SUPPORT = engineV8Version >= 51 || !fails(function () {
  1199. var array = [];
  1200. array[IS_CONCAT_SPREADABLE] = false;
  1201. return array.concat()[0] !== array;
  1202. });
  1203. var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
  1204. var isConcatSpreadable = function (O) {
  1205. if (!isObject(O)) return false;
  1206. var spreadable = O[IS_CONCAT_SPREADABLE];
  1207. return spreadable !== undefined ? !!spreadable : isArray(O);
  1208. };
  1209. var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
  1210. // `Array.prototype.concat` method
  1211. // https://tc39.es/ecma262/#sec-array.prototype.concat
  1212. // with adding support of @@isConcatSpreadable and @@species
  1213. _export({ target: 'Array', proto: true, forced: FORCED }, {
  1214. // eslint-disable-next-line no-unused-vars -- required for `.length`
  1215. concat: function concat(arg) {
  1216. var O = toObject(this);
  1217. var A = arraySpeciesCreate(O, 0);
  1218. var n = 0;
  1219. var i, k, length, len, E;
  1220. for (i = -1, length = arguments.length; i < length; i++) {
  1221. E = i === -1 ? O : arguments[i];
  1222. if (isConcatSpreadable(E)) {
  1223. len = toLength(E.length);
  1224. if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
  1225. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  1226. } else {
  1227. if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
  1228. createProperty(A, n++, E);
  1229. }
  1230. }
  1231. A.length = n;
  1232. return A;
  1233. }
  1234. });
  1235. var floor = Math.floor;
  1236. var replace = ''.replace;
  1237. var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
  1238. var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
  1239. // https://tc39.es/ecma262/#sec-getsubstitution
  1240. var getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) {
  1241. var tailPos = position + matched.length;
  1242. var m = captures.length;
  1243. var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
  1244. if (namedCaptures !== undefined) {
  1245. namedCaptures = toObject(namedCaptures);
  1246. symbols = SUBSTITUTION_SYMBOLS;
  1247. }
  1248. return replace.call(replacement, symbols, function (match, ch) {
  1249. var capture;
  1250. switch (ch.charAt(0)) {
  1251. case '$': return '$';
  1252. case '&': return matched;
  1253. case '`': return str.slice(0, position);
  1254. case "'": return str.slice(tailPos);
  1255. case '<':
  1256. capture = namedCaptures[ch.slice(1, -1)];
  1257. break;
  1258. default: // \d\d?
  1259. var n = +ch;
  1260. if (n === 0) return match;
  1261. if (n > m) {
  1262. var f = floor(n / 10);
  1263. if (f === 0) return match;
  1264. if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
  1265. return match;
  1266. }
  1267. capture = captures[n - 1];
  1268. }
  1269. return capture === undefined ? '' : capture;
  1270. });
  1271. };
  1272. var max = Math.max;
  1273. var min = Math.min;
  1274. var maybeToString = function (it) {
  1275. return it === undefined ? it : String(it);
  1276. };
  1277. // @@replace logic
  1278. fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
  1279. var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
  1280. var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
  1281. var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
  1282. return [
  1283. // `String.prototype.replace` method
  1284. // https://tc39.es/ecma262/#sec-string.prototype.replace
  1285. function replace(searchValue, replaceValue) {
  1286. var O = requireObjectCoercible(this);
  1287. var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
  1288. return replacer !== undefined
  1289. ? replacer.call(searchValue, O, replaceValue)
  1290. : nativeReplace.call(String(O), searchValue, replaceValue);
  1291. },
  1292. // `RegExp.prototype[@@replace]` method
  1293. // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
  1294. function (regexp, replaceValue) {
  1295. if (
  1296. (!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
  1297. (typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
  1298. ) {
  1299. var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
  1300. if (res.done) return res.value;
  1301. }
  1302. var rx = anObject(regexp);
  1303. var S = String(this);
  1304. var functionalReplace = typeof replaceValue === 'function';
  1305. if (!functionalReplace) replaceValue = String(replaceValue);
  1306. var global = rx.global;
  1307. if (global) {
  1308. var fullUnicode = rx.unicode;
  1309. rx.lastIndex = 0;
  1310. }
  1311. var results = [];
  1312. while (true) {
  1313. var result = regexpExecAbstract(rx, S);
  1314. if (result === null) break;
  1315. results.push(result);
  1316. if (!global) break;
  1317. var matchStr = String(result[0]);
  1318. if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
  1319. }
  1320. var accumulatedResult = '';
  1321. var nextSourcePosition = 0;
  1322. for (var i = 0; i < results.length; i++) {
  1323. result = results[i];
  1324. var matched = String(result[0]);
  1325. var position = max(min(toInteger(result.index), S.length), 0);
  1326. var captures = [];
  1327. // NOTE: This is equivalent to
  1328. // captures = result.slice(1).map(maybeToString)
  1329. // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
  1330. // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
  1331. // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
  1332. for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
  1333. var namedCaptures = result.groups;
  1334. if (functionalReplace) {
  1335. var replacerArgs = [matched].concat(captures, position, S);
  1336. if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
  1337. var replacement = String(replaceValue.apply(undefined, replacerArgs));
  1338. } else {
  1339. replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
  1340. }
  1341. if (position >= nextSourcePosition) {
  1342. accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
  1343. nextSourcePosition = position + matched.length;
  1344. }
  1345. }
  1346. return accumulatedResult + S.slice(nextSourcePosition);
  1347. }
  1348. ];
  1349. });
  1350. /**
  1351. * @author: general
  1352. * @website: note.generals.space
  1353. * @email: generals.space@gmail.com
  1354. * @github: https://github.com/generals-space/bootstrap-table-addrbar
  1355. * @update: zhixin wen <wenzhixin2010@gmail.com>
  1356. */
  1357. /*
  1358. * function: 获取浏览器地址栏中的指定参数.
  1359. * key: 参数名
  1360. * url: 默认为当前地址栏
  1361. */
  1362. function _GET(key) {
  1363. var url = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.location.search;
  1364. /*
  1365. * 注意这里正则表达式的书写方法
  1366. * (^|&)key匹配: 直接以key开始或以&key开始的字符串
  1367. * 同理(&|$)表示以&结束或是直接结束的字符串
  1368. * ...当然, 我并不知道这种用法.
  1369. */
  1370. var reg = new RegExp("(^|&)".concat(key, "=([^&]*)(&|$)"));
  1371. var result = url.substr(1).match(reg);
  1372. if (result) {
  1373. return decodeURIComponent(result[2]);
  1374. }
  1375. return null;
  1376. }
  1377. /*
  1378. * function: 根据给定参数生成url地址
  1379. * var dic = {name: 'genreal', age: 24}
  1380. * var url = 'https://www.baidu.com?age=22';
  1381. * _buildUrl(dic, url);
  1382. * 将得到"https://www.baidu.com?age=24&name=genreal"
  1383. * 哦, 忽略先后顺序吧...
  1384. *
  1385. * 补充: 可以参考浏览器URLSearchParams对象, 更加方便和强大.
  1386. * 考虑到兼容性, 暂时不使用这个工具.
  1387. */
  1388. function _buildUrl(dict) {
  1389. var url = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.location.search;
  1390. for (var _i = 0, _Object$entries = Object.entries(dict); _i < _Object$entries.length; _i++) {
  1391. var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
  1392. key = _Object$entries$_i[0],
  1393. val = _Object$entries$_i[1];
  1394. // 搜索name=general这种形式的字符串(&是分隔符)
  1395. var pattern = "".concat(key, "=([^&]*)");
  1396. var targetStr = "".concat(key, "=").concat(val);
  1397. if (val === undefined) continue;
  1398. /*
  1399. * 如果目标url中包含了key键, 我们需要将它替换成我们自己的val
  1400. * 不然就直接添加好了.
  1401. */
  1402. if (url.match(pattern)) {
  1403. var tmp = new RegExp("(".concat(key, "=)([^&]*)"), 'gi');
  1404. url = url.replace(tmp, targetStr);
  1405. } else {
  1406. var seperator = url.match('[?]') ? '&' : '?';
  1407. url = url + seperator + targetStr;
  1408. }
  1409. }
  1410. if (location.hash) {
  1411. url += location.hash;
  1412. }
  1413. return url;
  1414. }
  1415. /*
  1416. * function: _updateHistoryState
  1417. * var _prefix = this.options.addrPrefix || ''
  1418. * var table = this
  1419. * _updateHistoryState( table,_prefix)
  1420. * returns void
  1421. */
  1422. function _updateHistoryState(table, _prefix) {
  1423. var params = {};
  1424. params["".concat(_prefix, "page")] = table.options.pageNumber;
  1425. params["".concat(_prefix, "size")] = table.options.pageSize;
  1426. params["".concat(_prefix, "order")] = table.options.sortOrder;
  1427. params["".concat(_prefix, "sort")] = table.options.sortName;
  1428. params["".concat(_prefix, "search")] = table.options.searchText;
  1429. window.history.pushState({}, '', _buildUrl(params));
  1430. }
  1431. $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults, {
  1432. addrbar: false,
  1433. addrPrefix: ''
  1434. });
  1435. $__default['default'].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  1436. _inherits(_class, _$$BootstrapTable);
  1437. var _super = _createSuper(_class);
  1438. function _class() {
  1439. _classCallCheck(this, _class);
  1440. return _super.apply(this, arguments);
  1441. }
  1442. _createClass(_class, [{
  1443. key: "init",
  1444. value: function init() {
  1445. var _this = this,
  1446. _get2;
  1447. if (this.options.pagination && this.options.addrbar) {
  1448. // 标志位, 初始加载后关闭
  1449. this.addrbarInit = true;
  1450. this.options.pageNumber = +this.getDefaultOptionValue('pageNumber', 'page');
  1451. this.options.pageSize = +this.getDefaultOptionValue('pageSize', 'size');
  1452. this.options.sortOrder = this.getDefaultOptionValue('sortOrder', 'order');
  1453. this.options.sortName = this.getDefaultOptionValue('sortName', 'sort');
  1454. this.options.searchText = this.getDefaultOptionValue('searchText', 'search');
  1455. var _prefix = this.options.addrPrefix || '';
  1456. var _onLoadSuccess = this.options.onLoadSuccess;
  1457. var _onPageChange = this.options.onPageChange;
  1458. this.options.onLoadSuccess = function (data) {
  1459. if (_this.addrbarInit) {
  1460. _this.addrbarInit = false;
  1461. } else {
  1462. _updateHistoryState(_this, _prefix);
  1463. }
  1464. if (_onLoadSuccess) {
  1465. _onLoadSuccess.call(_this, data);
  1466. }
  1467. };
  1468. this.options.onPageChange = function (number, size) {
  1469. _updateHistoryState(_this, _prefix);
  1470. if (_onPageChange) {
  1471. _onPageChange.call(_this, number, size);
  1472. }
  1473. };
  1474. }
  1475. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  1476. args[_key] = arguments[_key];
  1477. }
  1478. (_get2 = _get(_getPrototypeOf(_class.prototype), "init", this)).call.apply(_get2, [this].concat(args));
  1479. }
  1480. /*
  1481. * Priority order:
  1482. * The value specified by the user has the highest priority.
  1483. * If it is not specified, it will be obtained from the address bar.
  1484. * If it is not obtained, the default value will be used.
  1485. */
  1486. }, {
  1487. key: "getDefaultOptionValue",
  1488. value: function getDefaultOptionValue(optionName, prefixName) {
  1489. if (this.options[optionName] !== $__default['default'].BootstrapTable.DEFAULTS[optionName]) {
  1490. return this.options[optionName];
  1491. }
  1492. return _GET("".concat(this.options.addrPrefix || '').concat(prefixName)) || $__default['default'].BootstrapTable.DEFAULTS[optionName];
  1493. }
  1494. }]);
  1495. return _class;
  1496. }($__default['default'].BootstrapTable);
  1497. })));