bootstrap-table-addrbar.js 59 KB

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