bootstrap-table-vue.js 64 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938
  1. (function (global, factory) {
  2. typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
  3. typeof define === 'function' && define.amd ? define(factory) :
  4. (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.BootstrapTable = factory());
  5. })(this, (function () { 'use strict';
  6. function ownKeys$1(object, enumerableOnly) {
  7. var keys = Object.keys(object);
  8. if (Object.getOwnPropertySymbols) {
  9. var symbols = Object.getOwnPropertySymbols(object);
  10. enumerableOnly && (symbols = symbols.filter(function (sym) {
  11. return Object.getOwnPropertyDescriptor(object, sym).enumerable;
  12. })), keys.push.apply(keys, symbols);
  13. }
  14. return keys;
  15. }
  16. function _objectSpread2(target) {
  17. for (var i = 1; i < arguments.length; i++) {
  18. var source = null != arguments[i] ? arguments[i] : {};
  19. i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
  20. _defineProperty(target, key, source[key]);
  21. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) {
  22. Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
  23. });
  24. }
  25. return target;
  26. }
  27. function _defineProperty(obj, key, value) {
  28. if (key in obj) {
  29. Object.defineProperty(obj, key, {
  30. value: value,
  31. enumerable: true,
  32. configurable: true,
  33. writable: true
  34. });
  35. } else {
  36. obj[key] = value;
  37. }
  38. return obj;
  39. }
  40. function _toConsumableArray(arr) {
  41. return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
  42. }
  43. function _arrayWithoutHoles(arr) {
  44. if (Array.isArray(arr)) return _arrayLikeToArray(arr);
  45. }
  46. function _iterableToArray(iter) {
  47. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  48. }
  49. function _unsupportedIterableToArray(o, minLen) {
  50. if (!o) return;
  51. if (typeof o === "string") return _arrayLikeToArray(o, minLen);
  52. var n = Object.prototype.toString.call(o).slice(8, -1);
  53. if (n === "Object" && o.constructor) n = o.constructor.name;
  54. if (n === "Map" || n === "Set") return Array.from(o);
  55. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
  56. }
  57. function _arrayLikeToArray(arr, len) {
  58. if (len == null || len > arr.length) len = arr.length;
  59. for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
  60. return arr2;
  61. }
  62. function _nonIterableSpread() {
  63. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  64. }
  65. function _createForOfIteratorHelper(o, allowArrayLike) {
  66. var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
  67. if (!it) {
  68. if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
  69. if (it) o = it;
  70. var i = 0;
  71. var F = function () {};
  72. return {
  73. s: F,
  74. n: function () {
  75. if (i >= o.length) return {
  76. done: true
  77. };
  78. return {
  79. done: false,
  80. value: o[i++]
  81. };
  82. },
  83. e: function (e) {
  84. throw e;
  85. },
  86. f: F
  87. };
  88. }
  89. throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  90. }
  91. var normalCompletion = true,
  92. didErr = false,
  93. err;
  94. return {
  95. s: function () {
  96. it = it.call(o);
  97. },
  98. n: function () {
  99. var step = it.next();
  100. normalCompletion = step.done;
  101. return step;
  102. },
  103. e: function (e) {
  104. didErr = true;
  105. err = e;
  106. },
  107. f: function () {
  108. try {
  109. if (!normalCompletion && it.return != null) it.return();
  110. } finally {
  111. if (didErr) throw err;
  112. }
  113. }
  114. };
  115. }
  116. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  117. function createCommonjsModule(fn, module) {
  118. return module = { exports: {} }, fn(module, module.exports), module.exports;
  119. }
  120. var check = function (it) {
  121. return it && it.Math == Math && it;
  122. };
  123. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  124. var global_1 =
  125. // eslint-disable-next-line es/no-global-this -- safe
  126. check(typeof globalThis == 'object' && globalThis) ||
  127. check(typeof window == 'object' && window) ||
  128. // eslint-disable-next-line no-restricted-globals -- safe
  129. check(typeof self == 'object' && self) ||
  130. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  131. // eslint-disable-next-line no-new-func -- fallback
  132. (function () { return this; })() || Function('return this')();
  133. var fails = function (exec) {
  134. try {
  135. return !!exec();
  136. } catch (error) {
  137. return true;
  138. }
  139. };
  140. // Detect IE8's incomplete defineProperty implementation
  141. var descriptors = !fails(function () {
  142. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  143. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
  144. });
  145. var functionBindNative = !fails(function () {
  146. var test = (function () { /* empty */ }).bind();
  147. // eslint-disable-next-line no-prototype-builtins -- safe
  148. return typeof test != 'function' || test.hasOwnProperty('prototype');
  149. });
  150. var call$2 = Function.prototype.call;
  151. var functionCall = functionBindNative ? call$2.bind(call$2) : function () {
  152. return call$2.apply(call$2, arguments);
  153. };
  154. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  155. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  156. var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  157. // Nashorn ~ JDK8 bug
  158. var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  159. // `Object.prototype.propertyIsEnumerable` method implementation
  160. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  161. var f$5 = NASHORN_BUG ? function propertyIsEnumerable(V) {
  162. var descriptor = getOwnPropertyDescriptor$1(this, V);
  163. return !!descriptor && descriptor.enumerable;
  164. } : $propertyIsEnumerable;
  165. var objectPropertyIsEnumerable = {
  166. f: f$5
  167. };
  168. var createPropertyDescriptor = function (bitmap, value) {
  169. return {
  170. enumerable: !(bitmap & 1),
  171. configurable: !(bitmap & 2),
  172. writable: !(bitmap & 4),
  173. value: value
  174. };
  175. };
  176. var FunctionPrototype$2 = Function.prototype;
  177. var bind = FunctionPrototype$2.bind;
  178. var call$1 = FunctionPrototype$2.call;
  179. var uncurryThis = functionBindNative && bind.bind(call$1, call$1);
  180. var functionUncurryThis = functionBindNative ? function (fn) {
  181. return fn && uncurryThis(fn);
  182. } : function (fn) {
  183. return fn && function () {
  184. return call$1.apply(fn, arguments);
  185. };
  186. };
  187. var toString$1 = functionUncurryThis({}.toString);
  188. var stringSlice$4 = functionUncurryThis(''.slice);
  189. var classofRaw = function (it) {
  190. return stringSlice$4(toString$1(it), 8, -1);
  191. };
  192. var Object$4 = global_1.Object;
  193. var split = functionUncurryThis(''.split);
  194. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  195. var indexedObject = fails(function () {
  196. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  197. // eslint-disable-next-line no-prototype-builtins -- safe
  198. return !Object$4('z').propertyIsEnumerable(0);
  199. }) ? function (it) {
  200. return classofRaw(it) == 'String' ? split(it, '') : Object$4(it);
  201. } : Object$4;
  202. var TypeError$9 = global_1.TypeError;
  203. // `RequireObjectCoercible` abstract operation
  204. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  205. var requireObjectCoercible = function (it) {
  206. if (it == undefined) throw TypeError$9("Can't call method on " + it);
  207. return it;
  208. };
  209. // toObject with fallback for non-array-like ES3 strings
  210. var toIndexedObject = function (it) {
  211. return indexedObject(requireObjectCoercible(it));
  212. };
  213. // `IsCallable` abstract operation
  214. // https://tc39.es/ecma262/#sec-iscallable
  215. var isCallable = function (argument) {
  216. return typeof argument == 'function';
  217. };
  218. var isObject = function (it) {
  219. return typeof it == 'object' ? it !== null : isCallable(it);
  220. };
  221. var aFunction = function (argument) {
  222. return isCallable(argument) ? argument : undefined;
  223. };
  224. var getBuiltIn = function (namespace, method) {
  225. return arguments.length < 2 ? aFunction(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
  226. };
  227. var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
  228. var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
  229. var process = global_1.process;
  230. var Deno = global_1.Deno;
  231. var versions = process && process.versions || Deno && Deno.version;
  232. var v8 = versions && versions.v8;
  233. var match, version;
  234. if (v8) {
  235. match = v8.split('.');
  236. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  237. // but their correct versions are not interesting for us
  238. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  239. }
  240. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  241. // so check `userAgent` even if `.v8` exists, but 0
  242. if (!version && engineUserAgent) {
  243. match = engineUserAgent.match(/Edge\/(\d+)/);
  244. if (!match || match[1] >= 74) {
  245. match = engineUserAgent.match(/Chrome\/(\d+)/);
  246. if (match) version = +match[1];
  247. }
  248. }
  249. var engineV8Version = version;
  250. /* eslint-disable es/no-symbol -- required for testing */
  251. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  252. var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
  253. var symbol = Symbol();
  254. // Chrome 38 Symbol has incorrect toString conversion
  255. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  256. return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
  257. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  258. !Symbol.sham && engineV8Version && engineV8Version < 41;
  259. });
  260. /* eslint-disable es/no-symbol -- required for testing */
  261. var useSymbolAsUid = nativeSymbol
  262. && !Symbol.sham
  263. && typeof Symbol.iterator == 'symbol';
  264. var Object$3 = global_1.Object;
  265. var isSymbol = useSymbolAsUid ? function (it) {
  266. return typeof it == 'symbol';
  267. } : function (it) {
  268. var $Symbol = getBuiltIn('Symbol');
  269. return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, Object$3(it));
  270. };
  271. var String$3 = global_1.String;
  272. var tryToString = function (argument) {
  273. try {
  274. return String$3(argument);
  275. } catch (error) {
  276. return 'Object';
  277. }
  278. };
  279. var TypeError$8 = global_1.TypeError;
  280. // `Assert: IsCallable(argument) is true`
  281. var aCallable = function (argument) {
  282. if (isCallable(argument)) return argument;
  283. throw TypeError$8(tryToString(argument) + ' is not a function');
  284. };
  285. // `GetMethod` abstract operation
  286. // https://tc39.es/ecma262/#sec-getmethod
  287. var getMethod = function (V, P) {
  288. var func = V[P];
  289. return func == null ? undefined : aCallable(func);
  290. };
  291. var TypeError$7 = global_1.TypeError;
  292. // `OrdinaryToPrimitive` abstract operation
  293. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  294. var ordinaryToPrimitive = function (input, pref) {
  295. var fn, val;
  296. if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
  297. if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
  298. if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
  299. throw TypeError$7("Can't convert object to primitive value");
  300. };
  301. // eslint-disable-next-line es/no-object-defineproperty -- safe
  302. var defineProperty = Object.defineProperty;
  303. var setGlobal = function (key, value) {
  304. try {
  305. defineProperty(global_1, key, { value: value, configurable: true, writable: true });
  306. } catch (error) {
  307. global_1[key] = value;
  308. } return value;
  309. };
  310. var SHARED = '__core-js_shared__';
  311. var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
  312. var sharedStore = store$1;
  313. var shared = createCommonjsModule(function (module) {
  314. (module.exports = function (key, value) {
  315. return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
  316. })('versions', []).push({
  317. version: '3.21.1',
  318. mode: 'global',
  319. copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
  320. license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
  321. source: 'https://github.com/zloirock/core-js'
  322. });
  323. });
  324. var Object$2 = global_1.Object;
  325. // `ToObject` abstract operation
  326. // https://tc39.es/ecma262/#sec-toobject
  327. var toObject = function (argument) {
  328. return Object$2(requireObjectCoercible(argument));
  329. };
  330. var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
  331. // `HasOwnProperty` abstract operation
  332. // https://tc39.es/ecma262/#sec-hasownproperty
  333. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  334. return hasOwnProperty(toObject(it), key);
  335. };
  336. var id = 0;
  337. var postfix = Math.random();
  338. var toString = functionUncurryThis(1.0.toString);
  339. var uid = function (key) {
  340. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
  341. };
  342. var WellKnownSymbolsStore = shared('wks');
  343. var Symbol$1 = global_1.Symbol;
  344. var symbolFor = Symbol$1 && Symbol$1['for'];
  345. var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
  346. var wellKnownSymbol = function (name) {
  347. if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
  348. var description = 'Symbol.' + name;
  349. if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
  350. WellKnownSymbolsStore[name] = Symbol$1[name];
  351. } else if (useSymbolAsUid && symbolFor) {
  352. WellKnownSymbolsStore[name] = symbolFor(description);
  353. } else {
  354. WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
  355. }
  356. } return WellKnownSymbolsStore[name];
  357. };
  358. var TypeError$6 = global_1.TypeError;
  359. var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
  360. // `ToPrimitive` abstract operation
  361. // https://tc39.es/ecma262/#sec-toprimitive
  362. var toPrimitive = function (input, pref) {
  363. if (!isObject(input) || isSymbol(input)) return input;
  364. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  365. var result;
  366. if (exoticToPrim) {
  367. if (pref === undefined) pref = 'default';
  368. result = functionCall(exoticToPrim, input, pref);
  369. if (!isObject(result) || isSymbol(result)) return result;
  370. throw TypeError$6("Can't convert object to primitive value");
  371. }
  372. if (pref === undefined) pref = 'number';
  373. return ordinaryToPrimitive(input, pref);
  374. };
  375. // `ToPropertyKey` abstract operation
  376. // https://tc39.es/ecma262/#sec-topropertykey
  377. var toPropertyKey = function (argument) {
  378. var key = toPrimitive(argument, 'string');
  379. return isSymbol(key) ? key : key + '';
  380. };
  381. var document$1 = global_1.document;
  382. // typeof document.createElement is 'object' in old IE
  383. var EXISTS$1 = isObject(document$1) && isObject(document$1.createElement);
  384. var documentCreateElement = function (it) {
  385. return EXISTS$1 ? document$1.createElement(it) : {};
  386. };
  387. // Thanks to IE8 for its funny defineProperty
  388. var ie8DomDefine = !descriptors && !fails(function () {
  389. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  390. return Object.defineProperty(documentCreateElement('div'), 'a', {
  391. get: function () { return 7; }
  392. }).a != 7;
  393. });
  394. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  395. var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  396. // `Object.getOwnPropertyDescriptor` method
  397. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  398. var f$4 = descriptors ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
  399. O = toIndexedObject(O);
  400. P = toPropertyKey(P);
  401. if (ie8DomDefine) try {
  402. return $getOwnPropertyDescriptor$1(O, P);
  403. } catch (error) { /* empty */ }
  404. if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!functionCall(objectPropertyIsEnumerable.f, O, P), O[P]);
  405. };
  406. var objectGetOwnPropertyDescriptor = {
  407. f: f$4
  408. };
  409. // V8 ~ Chrome 36-
  410. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  411. var v8PrototypeDefineBug = descriptors && fails(function () {
  412. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  413. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  414. value: 42,
  415. writable: false
  416. }).prototype != 42;
  417. });
  418. var String$2 = global_1.String;
  419. var TypeError$5 = global_1.TypeError;
  420. // `Assert: Type(argument) is Object`
  421. var anObject = function (argument) {
  422. if (isObject(argument)) return argument;
  423. throw TypeError$5(String$2(argument) + ' is not an object');
  424. };
  425. var TypeError$4 = global_1.TypeError;
  426. // eslint-disable-next-line es/no-object-defineproperty -- safe
  427. var $defineProperty = Object.defineProperty;
  428. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  429. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  430. var ENUMERABLE = 'enumerable';
  431. var CONFIGURABLE$1 = 'configurable';
  432. var WRITABLE = 'writable';
  433. // `Object.defineProperty` method
  434. // https://tc39.es/ecma262/#sec-object.defineproperty
  435. var f$3 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) {
  436. anObject(O);
  437. P = toPropertyKey(P);
  438. anObject(Attributes);
  439. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  440. var current = $getOwnPropertyDescriptor(O, P);
  441. if (current && current[WRITABLE]) {
  442. O[P] = Attributes.value;
  443. Attributes = {
  444. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  445. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  446. writable: false
  447. };
  448. }
  449. } return $defineProperty(O, P, Attributes);
  450. } : $defineProperty : function defineProperty(O, P, Attributes) {
  451. anObject(O);
  452. P = toPropertyKey(P);
  453. anObject(Attributes);
  454. if (ie8DomDefine) try {
  455. return $defineProperty(O, P, Attributes);
  456. } catch (error) { /* empty */ }
  457. if ('get' in Attributes || 'set' in Attributes) throw TypeError$4('Accessors not supported');
  458. if ('value' in Attributes) O[P] = Attributes.value;
  459. return O;
  460. };
  461. var objectDefineProperty = {
  462. f: f$3
  463. };
  464. var createNonEnumerableProperty = descriptors ? function (object, key, value) {
  465. return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
  466. } : function (object, key, value) {
  467. object[key] = value;
  468. return object;
  469. };
  470. var functionToString = functionUncurryThis(Function.toString);
  471. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  472. if (!isCallable(sharedStore.inspectSource)) {
  473. sharedStore.inspectSource = function (it) {
  474. return functionToString(it);
  475. };
  476. }
  477. var inspectSource = sharedStore.inspectSource;
  478. var WeakMap$1 = global_1.WeakMap;
  479. var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
  480. var keys = shared('keys');
  481. var sharedKey = function (key) {
  482. return keys[key] || (keys[key] = uid(key));
  483. };
  484. var hiddenKeys$1 = {};
  485. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  486. var TypeError$3 = global_1.TypeError;
  487. var WeakMap = global_1.WeakMap;
  488. var set, get, has;
  489. var enforce = function (it) {
  490. return has(it) ? get(it) : set(it, {});
  491. };
  492. var getterFor = function (TYPE) {
  493. return function (it) {
  494. var state;
  495. if (!isObject(it) || (state = get(it)).type !== TYPE) {
  496. throw TypeError$3('Incompatible receiver, ' + TYPE + ' required');
  497. } return state;
  498. };
  499. };
  500. if (nativeWeakMap || sharedStore.state) {
  501. var store = sharedStore.state || (sharedStore.state = new WeakMap());
  502. var wmget = functionUncurryThis(store.get);
  503. var wmhas = functionUncurryThis(store.has);
  504. var wmset = functionUncurryThis(store.set);
  505. set = function (it, metadata) {
  506. if (wmhas(store, it)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
  507. metadata.facade = it;
  508. wmset(store, it, metadata);
  509. return metadata;
  510. };
  511. get = function (it) {
  512. return wmget(store, it) || {};
  513. };
  514. has = function (it) {
  515. return wmhas(store, it);
  516. };
  517. } else {
  518. var STATE = sharedKey('state');
  519. hiddenKeys$1[STATE] = true;
  520. set = function (it, metadata) {
  521. if (hasOwnProperty_1(it, STATE)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
  522. metadata.facade = it;
  523. createNonEnumerableProperty(it, STATE, metadata);
  524. return metadata;
  525. };
  526. get = function (it) {
  527. return hasOwnProperty_1(it, STATE) ? it[STATE] : {};
  528. };
  529. has = function (it) {
  530. return hasOwnProperty_1(it, STATE);
  531. };
  532. }
  533. var internalState = {
  534. set: set,
  535. get: get,
  536. has: has,
  537. enforce: enforce,
  538. getterFor: getterFor
  539. };
  540. var FunctionPrototype$1 = Function.prototype;
  541. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  542. var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
  543. var EXISTS = hasOwnProperty_1(FunctionPrototype$1, 'name');
  544. // additional protection from minified / mangled / dropped function names
  545. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  546. var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype$1, 'name').configurable));
  547. var functionName = {
  548. EXISTS: EXISTS,
  549. PROPER: PROPER,
  550. CONFIGURABLE: CONFIGURABLE
  551. };
  552. var redefine = createCommonjsModule(function (module) {
  553. var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
  554. var getInternalState = internalState.get;
  555. var enforceInternalState = internalState.enforce;
  556. var TEMPLATE = String(String).split('String');
  557. (module.exports = function (O, key, value, options) {
  558. var unsafe = options ? !!options.unsafe : false;
  559. var simple = options ? !!options.enumerable : false;
  560. var noTargetGet = options ? !!options.noTargetGet : false;
  561. var name = options && options.name !== undefined ? options.name : key;
  562. var state;
  563. if (isCallable(value)) {
  564. if (String(name).slice(0, 7) === 'Symbol(') {
  565. name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
  566. }
  567. if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  568. createNonEnumerableProperty(value, 'name', name);
  569. }
  570. state = enforceInternalState(value);
  571. if (!state.source) {
  572. state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
  573. }
  574. }
  575. if (O === global_1) {
  576. if (simple) O[key] = value;
  577. else setGlobal(key, value);
  578. return;
  579. } else if (!unsafe) {
  580. delete O[key];
  581. } else if (!noTargetGet && O[key]) {
  582. simple = true;
  583. }
  584. if (simple) O[key] = value;
  585. else createNonEnumerableProperty(O, key, value);
  586. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  587. })(Function.prototype, 'toString', function toString() {
  588. return isCallable(this) && getInternalState(this).source || inspectSource(this);
  589. });
  590. });
  591. var ceil = Math.ceil;
  592. var floor$1 = Math.floor;
  593. // `ToIntegerOrInfinity` abstract operation
  594. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  595. var toIntegerOrInfinity = function (argument) {
  596. var number = +argument;
  597. // eslint-disable-next-line no-self-compare -- safe
  598. return number !== number || number === 0 ? 0 : (number > 0 ? floor$1 : ceil)(number);
  599. };
  600. var max$1 = Math.max;
  601. var min$2 = Math.min;
  602. // Helper for a popular repeating case of the spec:
  603. // Let integer be ? ToInteger(index).
  604. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  605. var toAbsoluteIndex = function (index, length) {
  606. var integer = toIntegerOrInfinity(index);
  607. return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
  608. };
  609. var min$1 = Math.min;
  610. // `ToLength` abstract operation
  611. // https://tc39.es/ecma262/#sec-tolength
  612. var toLength = function (argument) {
  613. return argument > 0 ? min$1(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  614. };
  615. // `LengthOfArrayLike` abstract operation
  616. // https://tc39.es/ecma262/#sec-lengthofarraylike
  617. var lengthOfArrayLike = function (obj) {
  618. return toLength(obj.length);
  619. };
  620. // `Array.prototype.{ indexOf, includes }` methods implementation
  621. var createMethod$1 = function (IS_INCLUDES) {
  622. return function ($this, el, fromIndex) {
  623. var O = toIndexedObject($this);
  624. var length = lengthOfArrayLike(O);
  625. var index = toAbsoluteIndex(fromIndex, length);
  626. var value;
  627. // Array#includes uses SameValueZero equality algorithm
  628. // eslint-disable-next-line no-self-compare -- NaN check
  629. if (IS_INCLUDES && el != el) while (length > index) {
  630. value = O[index++];
  631. // eslint-disable-next-line no-self-compare -- NaN check
  632. if (value != value) return true;
  633. // Array#indexOf ignores holes, Array#includes - not
  634. } else for (;length > index; index++) {
  635. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  636. } return !IS_INCLUDES && -1;
  637. };
  638. };
  639. var arrayIncludes = {
  640. // `Array.prototype.includes` method
  641. // https://tc39.es/ecma262/#sec-array.prototype.includes
  642. includes: createMethod$1(true),
  643. // `Array.prototype.indexOf` method
  644. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  645. indexOf: createMethod$1(false)
  646. };
  647. var indexOf$1 = arrayIncludes.indexOf;
  648. var push$1 = functionUncurryThis([].push);
  649. var objectKeysInternal = function (object, names) {
  650. var O = toIndexedObject(object);
  651. var i = 0;
  652. var result = [];
  653. var key;
  654. for (key in O) !hasOwnProperty_1(hiddenKeys$1, key) && hasOwnProperty_1(O, key) && push$1(result, key);
  655. // Don't enum bug & hidden keys
  656. while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) {
  657. ~indexOf$1(result, key) || push$1(result, key);
  658. }
  659. return result;
  660. };
  661. // IE8- don't enum bug keys
  662. var enumBugKeys = [
  663. 'constructor',
  664. 'hasOwnProperty',
  665. 'isPrototypeOf',
  666. 'propertyIsEnumerable',
  667. 'toLocaleString',
  668. 'toString',
  669. 'valueOf'
  670. ];
  671. var hiddenKeys = enumBugKeys.concat('length', 'prototype');
  672. // `Object.getOwnPropertyNames` method
  673. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  674. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  675. var f$2 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  676. return objectKeysInternal(O, hiddenKeys);
  677. };
  678. var objectGetOwnPropertyNames = {
  679. f: f$2
  680. };
  681. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  682. var f$1 = Object.getOwnPropertySymbols;
  683. var objectGetOwnPropertySymbols = {
  684. f: f$1
  685. };
  686. var concat$1 = functionUncurryThis([].concat);
  687. // all object keys, includes non-enumerable and symbols
  688. var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
  689. var keys = objectGetOwnPropertyNames.f(anObject(it));
  690. var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
  691. return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
  692. };
  693. var copyConstructorProperties = function (target, source, exceptions) {
  694. var keys = ownKeys(source);
  695. var defineProperty = objectDefineProperty.f;
  696. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  697. for (var i = 0; i < keys.length; i++) {
  698. var key = keys[i];
  699. if (!hasOwnProperty_1(target, key) && !(exceptions && hasOwnProperty_1(exceptions, key))) {
  700. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  701. }
  702. }
  703. };
  704. var replacement = /#|\.prototype\./;
  705. var isForced = function (feature, detection) {
  706. var value = data[normalize(feature)];
  707. return value == POLYFILL ? true
  708. : value == NATIVE ? false
  709. : isCallable(detection) ? fails(detection)
  710. : !!detection;
  711. };
  712. var normalize = isForced.normalize = function (string) {
  713. return String(string).replace(replacement, '.').toLowerCase();
  714. };
  715. var data = isForced.data = {};
  716. var NATIVE = isForced.NATIVE = 'N';
  717. var POLYFILL = isForced.POLYFILL = 'P';
  718. var isForced_1 = isForced;
  719. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  720. /*
  721. options.target - name of the target object
  722. options.global - target is the global object
  723. options.stat - export as static methods of target
  724. options.proto - export as prototype methods of target
  725. options.real - real prototype method for the `pure` version
  726. options.forced - export even if the native feature is available
  727. options.bind - bind methods to the target, required for the `pure` version
  728. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  729. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  730. options.sham - add a flag to not completely full polyfills
  731. options.enumerable - export as enumerable property
  732. options.noTargetGet - prevent calling a getter on target
  733. options.name - the .name of the function if it does not match the key
  734. */
  735. var _export = function (options, source) {
  736. var TARGET = options.target;
  737. var GLOBAL = options.global;
  738. var STATIC = options.stat;
  739. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  740. if (GLOBAL) {
  741. target = global_1;
  742. } else if (STATIC) {
  743. target = global_1[TARGET] || setGlobal(TARGET, {});
  744. } else {
  745. target = (global_1[TARGET] || {}).prototype;
  746. }
  747. if (target) for (key in source) {
  748. sourceProperty = source[key];
  749. if (options.noTargetGet) {
  750. descriptor = getOwnPropertyDescriptor(target, key);
  751. targetProperty = descriptor && descriptor.value;
  752. } else targetProperty = target[key];
  753. FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  754. // contained in target
  755. if (!FORCED && targetProperty !== undefined) {
  756. if (typeof sourceProperty == typeof targetProperty) continue;
  757. copyConstructorProperties(sourceProperty, targetProperty);
  758. }
  759. // add a flag to not completely full polyfills
  760. if (options.sham || (targetProperty && targetProperty.sham)) {
  761. createNonEnumerableProperty(sourceProperty, 'sham', true);
  762. }
  763. // extend global
  764. redefine(target, key, sourceProperty, options);
  765. }
  766. };
  767. var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
  768. var test = {};
  769. test[TO_STRING_TAG$1] = 'z';
  770. var toStringTagSupport = String(test) === '[object z]';
  771. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  772. var Object$1 = global_1.Object;
  773. // ES3 wrong here
  774. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
  775. // fallback for IE11 Script Access Denied error
  776. var tryGet = function (it, key) {
  777. try {
  778. return it[key];
  779. } catch (error) { /* empty */ }
  780. };
  781. // getting tag from ES6+ `Object.prototype.toString`
  782. var classof = toStringTagSupport ? classofRaw : function (it) {
  783. var O, tag, result;
  784. return it === undefined ? 'Undefined' : it === null ? 'Null'
  785. // @@toStringTag case
  786. : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
  787. // builtinTag case
  788. : CORRECT_ARGUMENTS ? classofRaw(O)
  789. // ES3 arguments fallback
  790. : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
  791. };
  792. var String$1 = global_1.String;
  793. var toString_1 = function (argument) {
  794. if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
  795. return String$1(argument);
  796. };
  797. // `RegExp.prototype.flags` getter implementation
  798. // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
  799. var regexpFlags = function () {
  800. var that = anObject(this);
  801. var result = '';
  802. if (that.global) result += 'g';
  803. if (that.ignoreCase) result += 'i';
  804. if (that.multiline) result += 'm';
  805. if (that.dotAll) result += 's';
  806. if (that.unicode) result += 'u';
  807. if (that.sticky) result += 'y';
  808. return result;
  809. };
  810. // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
  811. var $RegExp$2 = global_1.RegExp;
  812. var UNSUPPORTED_Y$1 = fails(function () {
  813. var re = $RegExp$2('a', 'y');
  814. re.lastIndex = 2;
  815. return re.exec('abcd') != null;
  816. });
  817. // UC Browser bug
  818. // https://github.com/zloirock/core-js/issues/1008
  819. var MISSED_STICKY = UNSUPPORTED_Y$1 || fails(function () {
  820. return !$RegExp$2('a', 'y').sticky;
  821. });
  822. var BROKEN_CARET = UNSUPPORTED_Y$1 || fails(function () {
  823. // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
  824. var re = $RegExp$2('^r', 'gy');
  825. re.lastIndex = 2;
  826. return re.exec('str') != null;
  827. });
  828. var regexpStickyHelpers = {
  829. BROKEN_CARET: BROKEN_CARET,
  830. MISSED_STICKY: MISSED_STICKY,
  831. UNSUPPORTED_Y: UNSUPPORTED_Y$1
  832. };
  833. // `Object.keys` method
  834. // https://tc39.es/ecma262/#sec-object.keys
  835. // eslint-disable-next-line es/no-object-keys -- safe
  836. var objectKeys = Object.keys || function keys(O) {
  837. return objectKeysInternal(O, enumBugKeys);
  838. };
  839. // `Object.defineProperties` method
  840. // https://tc39.es/ecma262/#sec-object.defineproperties
  841. // eslint-disable-next-line es/no-object-defineproperties -- safe
  842. var f = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
  843. anObject(O);
  844. var props = toIndexedObject(Properties);
  845. var keys = objectKeys(Properties);
  846. var length = keys.length;
  847. var index = 0;
  848. var key;
  849. while (length > index) objectDefineProperty.f(O, key = keys[index++], props[key]);
  850. return O;
  851. };
  852. var objectDefineProperties = {
  853. f: f
  854. };
  855. var html = getBuiltIn('document', 'documentElement');
  856. /* global ActiveXObject -- old IE, WSH */
  857. var GT = '>';
  858. var LT = '<';
  859. var PROTOTYPE = 'prototype';
  860. var SCRIPT = 'script';
  861. var IE_PROTO = sharedKey('IE_PROTO');
  862. var EmptyConstructor = function () { /* empty */ };
  863. var scriptTag = function (content) {
  864. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  865. };
  866. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  867. var NullProtoObjectViaActiveX = function (activeXDocument) {
  868. activeXDocument.write(scriptTag(''));
  869. activeXDocument.close();
  870. var temp = activeXDocument.parentWindow.Object;
  871. activeXDocument = null; // avoid memory leak
  872. return temp;
  873. };
  874. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  875. var NullProtoObjectViaIFrame = function () {
  876. // Thrash, waste and sodomy: IE GC bug
  877. var iframe = documentCreateElement('iframe');
  878. var JS = 'java' + SCRIPT + ':';
  879. var iframeDocument;
  880. iframe.style.display = 'none';
  881. html.appendChild(iframe);
  882. // https://github.com/zloirock/core-js/issues/475
  883. iframe.src = String(JS);
  884. iframeDocument = iframe.contentWindow.document;
  885. iframeDocument.open();
  886. iframeDocument.write(scriptTag('document.F=Object'));
  887. iframeDocument.close();
  888. return iframeDocument.F;
  889. };
  890. // Check for document.domain and active x support
  891. // No need to use active x approach when document.domain is not set
  892. // see https://github.com/es-shims/es5-shim/issues/150
  893. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  894. // avoid IE GC bug
  895. var activeXDocument;
  896. var NullProtoObject = function () {
  897. try {
  898. activeXDocument = new ActiveXObject('htmlfile');
  899. } catch (error) { /* ignore */ }
  900. NullProtoObject = typeof document != 'undefined'
  901. ? document.domain && activeXDocument
  902. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  903. : NullProtoObjectViaIFrame()
  904. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  905. var length = enumBugKeys.length;
  906. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  907. return NullProtoObject();
  908. };
  909. hiddenKeys$1[IE_PROTO] = true;
  910. // `Object.create` method
  911. // https://tc39.es/ecma262/#sec-object.create
  912. var objectCreate = Object.create || function create(O, Properties) {
  913. var result;
  914. if (O !== null) {
  915. EmptyConstructor[PROTOTYPE] = anObject(O);
  916. result = new EmptyConstructor();
  917. EmptyConstructor[PROTOTYPE] = null;
  918. // add "__proto__" for Object.getPrototypeOf polyfill
  919. result[IE_PROTO] = O;
  920. } else result = NullProtoObject();
  921. return Properties === undefined ? result : objectDefineProperties.f(result, Properties);
  922. };
  923. // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
  924. var $RegExp$1 = global_1.RegExp;
  925. var regexpUnsupportedDotAll = fails(function () {
  926. var re = $RegExp$1('.', 's');
  927. return !(re.dotAll && re.exec('\n') && re.flags === 's');
  928. });
  929. // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
  930. var $RegExp = global_1.RegExp;
  931. var regexpUnsupportedNcg = fails(function () {
  932. var re = $RegExp('(?<a>b)', 'g');
  933. return re.exec('b').groups.a !== 'b' ||
  934. 'b'.replace(re, '$<a>c') !== 'bc';
  935. });
  936. /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
  937. /* eslint-disable regexp/no-useless-quantifier -- testing */
  938. var getInternalState = internalState.get;
  939. var nativeReplace = shared('native-string-replace', String.prototype.replace);
  940. var nativeExec = RegExp.prototype.exec;
  941. var patchedExec = nativeExec;
  942. var charAt$3 = functionUncurryThis(''.charAt);
  943. var indexOf = functionUncurryThis(''.indexOf);
  944. var replace$1 = functionUncurryThis(''.replace);
  945. var stringSlice$3 = functionUncurryThis(''.slice);
  946. var UPDATES_LAST_INDEX_WRONG = (function () {
  947. var re1 = /a/;
  948. var re2 = /b*/g;
  949. functionCall(nativeExec, re1, 'a');
  950. functionCall(nativeExec, re2, 'a');
  951. return re1.lastIndex !== 0 || re2.lastIndex !== 0;
  952. })();
  953. var UNSUPPORTED_Y = regexpStickyHelpers.BROKEN_CARET;
  954. // nonparticipating capturing group, copied from es5-shim's String#split patch.
  955. var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
  956. var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || regexpUnsupportedDotAll || regexpUnsupportedNcg;
  957. if (PATCH) {
  958. patchedExec = function exec(string) {
  959. var re = this;
  960. var state = getInternalState(re);
  961. var str = toString_1(string);
  962. var raw = state.raw;
  963. var result, reCopy, lastIndex, match, i, object, group;
  964. if (raw) {
  965. raw.lastIndex = re.lastIndex;
  966. result = functionCall(patchedExec, raw, str);
  967. re.lastIndex = raw.lastIndex;
  968. return result;
  969. }
  970. var groups = state.groups;
  971. var sticky = UNSUPPORTED_Y && re.sticky;
  972. var flags = functionCall(regexpFlags, re);
  973. var source = re.source;
  974. var charsAdded = 0;
  975. var strCopy = str;
  976. if (sticky) {
  977. flags = replace$1(flags, 'y', '');
  978. if (indexOf(flags, 'g') === -1) {
  979. flags += 'g';
  980. }
  981. strCopy = stringSlice$3(str, re.lastIndex);
  982. // Support anchored sticky behavior.
  983. if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
  984. source = '(?: ' + source + ')';
  985. strCopy = ' ' + strCopy;
  986. charsAdded++;
  987. }
  988. // ^(? + rx + ) is needed, in combination with some str slicing, to
  989. // simulate the 'y' flag.
  990. reCopy = new RegExp('^(?:' + source + ')', flags);
  991. }
  992. if (NPCG_INCLUDED) {
  993. reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
  994. }
  995. if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
  996. match = functionCall(nativeExec, sticky ? reCopy : re, strCopy);
  997. if (sticky) {
  998. if (match) {
  999. match.input = stringSlice$3(match.input, charsAdded);
  1000. match[0] = stringSlice$3(match[0], charsAdded);
  1001. match.index = re.lastIndex;
  1002. re.lastIndex += match[0].length;
  1003. } else re.lastIndex = 0;
  1004. } else if (UPDATES_LAST_INDEX_WRONG && match) {
  1005. re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
  1006. }
  1007. if (NPCG_INCLUDED && match && match.length > 1) {
  1008. // Fix browsers whose `exec` methods don't consistently return `undefined`
  1009. // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
  1010. functionCall(nativeReplace, match[0], reCopy, function () {
  1011. for (i = 1; i < arguments.length - 2; i++) {
  1012. if (arguments[i] === undefined) match[i] = undefined;
  1013. }
  1014. });
  1015. }
  1016. if (match && groups) {
  1017. match.groups = object = objectCreate(null);
  1018. for (i = 0; i < groups.length; i++) {
  1019. group = groups[i];
  1020. object[group[0]] = match[group[1]];
  1021. }
  1022. }
  1023. return match;
  1024. };
  1025. }
  1026. var regexpExec = patchedExec;
  1027. // `RegExp.prototype.exec` method
  1028. // https://tc39.es/ecma262/#sec-regexp.prototype.exec
  1029. _export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {
  1030. exec: regexpExec
  1031. });
  1032. var FunctionPrototype = Function.prototype;
  1033. var apply = FunctionPrototype.apply;
  1034. var call = FunctionPrototype.call;
  1035. // eslint-disable-next-line es/no-reflect -- safe
  1036. var functionApply = typeof Reflect == 'object' && Reflect.apply || (functionBindNative ? call.bind(apply) : function () {
  1037. return call.apply(apply, arguments);
  1038. });
  1039. // TODO: Remove from `core-js@4` since it's moved to entry points
  1040. var SPECIES$2 = wellKnownSymbol('species');
  1041. var RegExpPrototype = RegExp.prototype;
  1042. var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
  1043. var SYMBOL = wellKnownSymbol(KEY);
  1044. var DELEGATES_TO_SYMBOL = !fails(function () {
  1045. // String methods call symbol-named RegEp methods
  1046. var O = {};
  1047. O[SYMBOL] = function () { return 7; };
  1048. return ''[KEY](O) != 7;
  1049. });
  1050. var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
  1051. // Symbol-named RegExp methods call .exec
  1052. var execCalled = false;
  1053. var re = /a/;
  1054. if (KEY === 'split') {
  1055. // We can't use real regex here since it causes deoptimization
  1056. // and serious performance degradation in V8
  1057. // https://github.com/zloirock/core-js/issues/306
  1058. re = {};
  1059. // RegExp[@@split] doesn't call the regex's exec method, but first creates
  1060. // a new one. We need to return the patched regex when creating the new one.
  1061. re.constructor = {};
  1062. re.constructor[SPECIES$2] = function () { return re; };
  1063. re.flags = '';
  1064. re[SYMBOL] = /./[SYMBOL];
  1065. }
  1066. re.exec = function () { execCalled = true; return null; };
  1067. re[SYMBOL]('');
  1068. return !execCalled;
  1069. });
  1070. if (
  1071. !DELEGATES_TO_SYMBOL ||
  1072. !DELEGATES_TO_EXEC ||
  1073. FORCED
  1074. ) {
  1075. var uncurriedNativeRegExpMethod = functionUncurryThis(/./[SYMBOL]);
  1076. var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
  1077. var uncurriedNativeMethod = functionUncurryThis(nativeMethod);
  1078. var $exec = regexp.exec;
  1079. if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
  1080. if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
  1081. // The native String method already delegates to @@method (this
  1082. // polyfilled function), leasing to infinite recursion.
  1083. // We avoid it by directly calling the native @@method method.
  1084. return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
  1085. }
  1086. return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
  1087. }
  1088. return { done: false };
  1089. });
  1090. redefine(String.prototype, KEY, methods[0]);
  1091. redefine(RegExpPrototype, SYMBOL, methods[1]);
  1092. }
  1093. if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
  1094. };
  1095. var charAt$2 = functionUncurryThis(''.charAt);
  1096. var charCodeAt = functionUncurryThis(''.charCodeAt);
  1097. var stringSlice$2 = functionUncurryThis(''.slice);
  1098. var createMethod = function (CONVERT_TO_STRING) {
  1099. return function ($this, pos) {
  1100. var S = toString_1(requireObjectCoercible($this));
  1101. var position = toIntegerOrInfinity(pos);
  1102. var size = S.length;
  1103. var first, second;
  1104. if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
  1105. first = charCodeAt(S, position);
  1106. return first < 0xD800 || first > 0xDBFF || position + 1 === size
  1107. || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
  1108. ? CONVERT_TO_STRING
  1109. ? charAt$2(S, position)
  1110. : first
  1111. : CONVERT_TO_STRING
  1112. ? stringSlice$2(S, position, position + 2)
  1113. : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
  1114. };
  1115. };
  1116. var stringMultibyte = {
  1117. // `String.prototype.codePointAt` method
  1118. // https://tc39.es/ecma262/#sec-string.prototype.codepointat
  1119. codeAt: createMethod(false),
  1120. // `String.prototype.at` method
  1121. // https://github.com/mathiasbynens/String.prototype.at
  1122. charAt: createMethod(true)
  1123. };
  1124. var charAt$1 = stringMultibyte.charAt;
  1125. // `AdvanceStringIndex` abstract operation
  1126. // https://tc39.es/ecma262/#sec-advancestringindex
  1127. var advanceStringIndex = function (S, index, unicode) {
  1128. return index + (unicode ? charAt$1(S, index).length : 1);
  1129. };
  1130. var floor = Math.floor;
  1131. var charAt = functionUncurryThis(''.charAt);
  1132. var replace = functionUncurryThis(''.replace);
  1133. var stringSlice$1 = functionUncurryThis(''.slice);
  1134. var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
  1135. var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
  1136. // `GetSubstitution` abstract operation
  1137. // https://tc39.es/ecma262/#sec-getsubstitution
  1138. var getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) {
  1139. var tailPos = position + matched.length;
  1140. var m = captures.length;
  1141. var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
  1142. if (namedCaptures !== undefined) {
  1143. namedCaptures = toObject(namedCaptures);
  1144. symbols = SUBSTITUTION_SYMBOLS;
  1145. }
  1146. return replace(replacement, symbols, function (match, ch) {
  1147. var capture;
  1148. switch (charAt(ch, 0)) {
  1149. case '$': return '$';
  1150. case '&': return matched;
  1151. case '`': return stringSlice$1(str, 0, position);
  1152. case "'": return stringSlice$1(str, tailPos);
  1153. case '<':
  1154. capture = namedCaptures[stringSlice$1(ch, 1, -1)];
  1155. break;
  1156. default: // \d\d?
  1157. var n = +ch;
  1158. if (n === 0) return match;
  1159. if (n > m) {
  1160. var f = floor(n / 10);
  1161. if (f === 0) return match;
  1162. if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
  1163. return match;
  1164. }
  1165. capture = captures[n - 1];
  1166. }
  1167. return capture === undefined ? '' : capture;
  1168. });
  1169. };
  1170. var TypeError$2 = global_1.TypeError;
  1171. // `RegExpExec` abstract operation
  1172. // https://tc39.es/ecma262/#sec-regexpexec
  1173. var regexpExecAbstract = function (R, S) {
  1174. var exec = R.exec;
  1175. if (isCallable(exec)) {
  1176. var result = functionCall(exec, R, S);
  1177. if (result !== null) anObject(result);
  1178. return result;
  1179. }
  1180. if (classofRaw(R) === 'RegExp') return functionCall(regexpExec, R, S);
  1181. throw TypeError$2('RegExp#exec called on incompatible receiver');
  1182. };
  1183. var REPLACE = wellKnownSymbol('replace');
  1184. var max = Math.max;
  1185. var min = Math.min;
  1186. var concat = functionUncurryThis([].concat);
  1187. var push = functionUncurryThis([].push);
  1188. var stringIndexOf = functionUncurryThis(''.indexOf);
  1189. var stringSlice = functionUncurryThis(''.slice);
  1190. var maybeToString = function (it) {
  1191. return it === undefined ? it : String(it);
  1192. };
  1193. // IE <= 11 replaces $0 with the whole match, as if it was $&
  1194. // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
  1195. var REPLACE_KEEPS_$0 = (function () {
  1196. // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
  1197. return 'a'.replace(/./, '$0') === '$0';
  1198. })();
  1199. // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
  1200. var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
  1201. if (/./[REPLACE]) {
  1202. return /./[REPLACE]('a', '$0') === '';
  1203. }
  1204. return false;
  1205. })();
  1206. var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
  1207. var re = /./;
  1208. re.exec = function () {
  1209. var result = [];
  1210. result.groups = { a: '7' };
  1211. return result;
  1212. };
  1213. // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
  1214. return ''.replace(re, '$<a>') !== '7';
  1215. });
  1216. // @@replace logic
  1217. fixRegexpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
  1218. var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
  1219. return [
  1220. // `String.prototype.replace` method
  1221. // https://tc39.es/ecma262/#sec-string.prototype.replace
  1222. function replace(searchValue, replaceValue) {
  1223. var O = requireObjectCoercible(this);
  1224. var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
  1225. return replacer
  1226. ? functionCall(replacer, searchValue, O, replaceValue)
  1227. : functionCall(nativeReplace, toString_1(O), searchValue, replaceValue);
  1228. },
  1229. // `RegExp.prototype[@@replace]` method
  1230. // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
  1231. function (string, replaceValue) {
  1232. var rx = anObject(this);
  1233. var S = toString_1(string);
  1234. if (
  1235. typeof replaceValue == 'string' &&
  1236. stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
  1237. stringIndexOf(replaceValue, '$<') === -1
  1238. ) {
  1239. var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
  1240. if (res.done) return res.value;
  1241. }
  1242. var functionalReplace = isCallable(replaceValue);
  1243. if (!functionalReplace) replaceValue = toString_1(replaceValue);
  1244. var global = rx.global;
  1245. if (global) {
  1246. var fullUnicode = rx.unicode;
  1247. rx.lastIndex = 0;
  1248. }
  1249. var results = [];
  1250. while (true) {
  1251. var result = regexpExecAbstract(rx, S);
  1252. if (result === null) break;
  1253. push(results, result);
  1254. if (!global) break;
  1255. var matchStr = toString_1(result[0]);
  1256. if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
  1257. }
  1258. var accumulatedResult = '';
  1259. var nextSourcePosition = 0;
  1260. for (var i = 0; i < results.length; i++) {
  1261. result = results[i];
  1262. var matched = toString_1(result[0]);
  1263. var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
  1264. var captures = [];
  1265. // NOTE: This is equivalent to
  1266. // captures = result.slice(1).map(maybeToString)
  1267. // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
  1268. // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
  1269. // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
  1270. for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
  1271. var namedCaptures = result.groups;
  1272. if (functionalReplace) {
  1273. var replacerArgs = concat([matched], captures, position, S);
  1274. if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
  1275. var replacement = toString_1(functionApply(replaceValue, undefined, replacerArgs));
  1276. } else {
  1277. replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
  1278. }
  1279. if (position >= nextSourcePosition) {
  1280. accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
  1281. nextSourcePosition = position + matched.length;
  1282. }
  1283. }
  1284. return accumulatedResult + stringSlice(S, nextSourcePosition);
  1285. }
  1286. ];
  1287. }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
  1288. // `IsArray` abstract operation
  1289. // https://tc39.es/ecma262/#sec-isarray
  1290. // eslint-disable-next-line es/no-array-isarray -- safe
  1291. var isArray = Array.isArray || function isArray(argument) {
  1292. return classofRaw(argument) == 'Array';
  1293. };
  1294. var createProperty = function (object, key, value) {
  1295. var propertyKey = toPropertyKey(key);
  1296. if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
  1297. else object[propertyKey] = value;
  1298. };
  1299. var noop = function () { /* empty */ };
  1300. var empty = [];
  1301. var construct = getBuiltIn('Reflect', 'construct');
  1302. var constructorRegExp = /^\s*(?:class|function)\b/;
  1303. var exec = functionUncurryThis(constructorRegExp.exec);
  1304. var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
  1305. var isConstructorModern = function isConstructor(argument) {
  1306. if (!isCallable(argument)) return false;
  1307. try {
  1308. construct(noop, empty, argument);
  1309. return true;
  1310. } catch (error) {
  1311. return false;
  1312. }
  1313. };
  1314. var isConstructorLegacy = function isConstructor(argument) {
  1315. if (!isCallable(argument)) return false;
  1316. switch (classof(argument)) {
  1317. case 'AsyncFunction':
  1318. case 'GeneratorFunction':
  1319. case 'AsyncGeneratorFunction': return false;
  1320. }
  1321. try {
  1322. // we can't check .prototype since constructors produced by .bind haven't it
  1323. // `Function#toString` throws on some built-it function in some legacy engines
  1324. // (for example, `DOMQuad` and similar in FF41-)
  1325. return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
  1326. } catch (error) {
  1327. return true;
  1328. }
  1329. };
  1330. isConstructorLegacy.sham = true;
  1331. // `IsConstructor` abstract operation
  1332. // https://tc39.es/ecma262/#sec-isconstructor
  1333. var isConstructor = !construct || fails(function () {
  1334. var called;
  1335. return isConstructorModern(isConstructorModern.call)
  1336. || !isConstructorModern(Object)
  1337. || !isConstructorModern(function () { called = true; })
  1338. || called;
  1339. }) ? isConstructorLegacy : isConstructorModern;
  1340. var SPECIES$1 = wellKnownSymbol('species');
  1341. var Array$1 = global_1.Array;
  1342. // a part of `ArraySpeciesCreate` abstract operation
  1343. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1344. var arraySpeciesConstructor = function (originalArray) {
  1345. var C;
  1346. if (isArray(originalArray)) {
  1347. C = originalArray.constructor;
  1348. // cross-realm fallback
  1349. if (isConstructor(C) && (C === Array$1 || isArray(C.prototype))) C = undefined;
  1350. else if (isObject(C)) {
  1351. C = C[SPECIES$1];
  1352. if (C === null) C = undefined;
  1353. }
  1354. } return C === undefined ? Array$1 : C;
  1355. };
  1356. // `ArraySpeciesCreate` abstract operation
  1357. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1358. var arraySpeciesCreate = function (originalArray, length) {
  1359. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1360. };
  1361. var SPECIES = wellKnownSymbol('species');
  1362. var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
  1363. // We can't use this feature detection in V8 since it causes
  1364. // deoptimization and serious performance degradation
  1365. // https://github.com/zloirock/core-js/issues/677
  1366. return engineV8Version >= 51 || !fails(function () {
  1367. var array = [];
  1368. var constructor = array.constructor = {};
  1369. constructor[SPECIES] = function () {
  1370. return { foo: 1 };
  1371. };
  1372. return array[METHOD_NAME](Boolean).foo !== 1;
  1373. });
  1374. };
  1375. var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
  1376. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
  1377. var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
  1378. var TypeError$1 = global_1.TypeError;
  1379. // We can't use this feature detection in V8 since it causes
  1380. // deoptimization and serious performance degradation
  1381. // https://github.com/zloirock/core-js/issues/679
  1382. var IS_CONCAT_SPREADABLE_SUPPORT = engineV8Version >= 51 || !fails(function () {
  1383. var array = [];
  1384. array[IS_CONCAT_SPREADABLE] = false;
  1385. return array.concat()[0] !== array;
  1386. });
  1387. var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
  1388. var isConcatSpreadable = function (O) {
  1389. if (!isObject(O)) return false;
  1390. var spreadable = O[IS_CONCAT_SPREADABLE];
  1391. return spreadable !== undefined ? !!spreadable : isArray(O);
  1392. };
  1393. var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
  1394. // `Array.prototype.concat` method
  1395. // https://tc39.es/ecma262/#sec-array.prototype.concat
  1396. // with adding support of @@isConcatSpreadable and @@species
  1397. _export({ target: 'Array', proto: true, forced: FORCED }, {
  1398. // eslint-disable-next-line no-unused-vars -- required for `.length`
  1399. concat: function concat(arg) {
  1400. var O = toObject(this);
  1401. var A = arraySpeciesCreate(O, 0);
  1402. var n = 0;
  1403. var i, k, length, len, E;
  1404. for (i = -1, length = arguments.length; i < length; i++) {
  1405. E = i === -1 ? O : arguments[i];
  1406. if (isConcatSpreadable(E)) {
  1407. len = lengthOfArrayLike(E);
  1408. if (n + len > MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
  1409. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  1410. } else {
  1411. if (n >= MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
  1412. createProperty(A, n++, E);
  1413. }
  1414. }
  1415. A.length = n;
  1416. return A;
  1417. }
  1418. });
  1419. //
  1420. //
  1421. //
  1422. //
  1423. var $ = window.jQuery;
  1424. var deepCopy = function deepCopy(arg) {
  1425. if (arg === undefined) {
  1426. return arg;
  1427. }
  1428. return $.extend(true, Array.isArray(arg) ? [] : {}, arg);
  1429. };
  1430. var script = {
  1431. name: 'BootstrapTable',
  1432. props: {
  1433. columns: {
  1434. type: Array,
  1435. require: true
  1436. },
  1437. data: {
  1438. type: [Array, Object],
  1439. default: function _default() {
  1440. return undefined;
  1441. }
  1442. },
  1443. options: {
  1444. type: Object,
  1445. default: function _default() {
  1446. return {};
  1447. }
  1448. }
  1449. },
  1450. mounted: function mounted() {
  1451. var _this = this;
  1452. this.$table = $(this.$el);
  1453. this.$table.on('all.bs.table', function (e, name, args) {
  1454. var eventName = $.fn.bootstrapTable.events[name];
  1455. eventName = eventName.replace(/([A-Z])/g, '-$1').toLowerCase();
  1456. _this.$emit.apply(_this, ['on-all'].concat(_toConsumableArray(args)));
  1457. _this.$emit.apply(_this, [eventName].concat(_toConsumableArray(args)));
  1458. });
  1459. this._initTable();
  1460. },
  1461. methods: _objectSpread2({
  1462. _initTable: function _initTable() {
  1463. var options = _objectSpread2(_objectSpread2({}, deepCopy(this.options)), {}, {
  1464. columns: deepCopy(this.columns),
  1465. data: deepCopy(this.data)
  1466. });
  1467. if (!this._hasInit) {
  1468. this.$table.bootstrapTable(options);
  1469. this._hasInit = true;
  1470. } else {
  1471. this.refreshOptions(options);
  1472. }
  1473. }
  1474. }, function () {
  1475. var res = {};
  1476. var _iterator = _createForOfIteratorHelper($.fn.bootstrapTable.methods),
  1477. _step;
  1478. try {
  1479. var _loop = function _loop() {
  1480. var method = _step.value;
  1481. res[method] = function () {
  1482. var _this$$table;
  1483. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  1484. args[_key] = arguments[_key];
  1485. }
  1486. return (_this$$table = this.$table).bootstrapTable.apply(_this$$table, [method].concat(args));
  1487. };
  1488. };
  1489. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  1490. _loop();
  1491. }
  1492. } catch (err) {
  1493. _iterator.e(err);
  1494. } finally {
  1495. _iterator.f();
  1496. }
  1497. return res;
  1498. }()),
  1499. watch: {
  1500. options: {
  1501. handler: function handler() {
  1502. this._initTable();
  1503. },
  1504. deep: true
  1505. },
  1506. columns: {
  1507. handler: function handler() {
  1508. this._initTable();
  1509. },
  1510. deep: true
  1511. },
  1512. data: {
  1513. handler: function handler() {
  1514. this.load(deepCopy(this.data));
  1515. },
  1516. deep: true
  1517. }
  1518. }
  1519. };
  1520. function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
  1521. if (typeof shadowMode !== 'boolean') {
  1522. createInjectorSSR = createInjector;
  1523. createInjector = shadowMode;
  1524. shadowMode = false;
  1525. }
  1526. // Vue.extend constructor export interop.
  1527. const options = typeof script === 'function' ? script.options : script;
  1528. // render functions
  1529. if (template && template.render) {
  1530. options.render = template.render;
  1531. options.staticRenderFns = template.staticRenderFns;
  1532. options._compiled = true;
  1533. // functional template
  1534. if (isFunctionalTemplate) {
  1535. options.functional = true;
  1536. }
  1537. }
  1538. // scopedId
  1539. if (scopeId) {
  1540. options._scopeId = scopeId;
  1541. }
  1542. let hook;
  1543. if (moduleIdentifier) {
  1544. // server build
  1545. hook = function (context) {
  1546. // 2.3 injection
  1547. context =
  1548. context || // cached call
  1549. (this.$vnode && this.$vnode.ssrContext) || // stateful
  1550. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
  1551. // 2.2 with runInNewContext: true
  1552. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  1553. context = __VUE_SSR_CONTEXT__;
  1554. }
  1555. // inject component styles
  1556. if (style) {
  1557. style.call(this, createInjectorSSR(context));
  1558. }
  1559. // register component module identifier for async chunk inference
  1560. if (context && context._registeredComponents) {
  1561. context._registeredComponents.add(moduleIdentifier);
  1562. }
  1563. };
  1564. // used by ssr in case component is cached and beforeCreate
  1565. // never gets called
  1566. options._ssrRegister = hook;
  1567. }
  1568. else if (style) {
  1569. hook = shadowMode
  1570. ? function (context) {
  1571. style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
  1572. }
  1573. : function (context) {
  1574. style.call(this, createInjector(context));
  1575. };
  1576. }
  1577. if (hook) {
  1578. if (options.functional) {
  1579. // register for functional component in vue file
  1580. const originalRender = options.render;
  1581. options.render = function renderWithStyleInjection(h, context) {
  1582. hook.call(context);
  1583. return originalRender(h, context);
  1584. };
  1585. }
  1586. else {
  1587. // inject component registration as beforeCreate hook
  1588. const existing = options.beforeCreate;
  1589. options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
  1590. }
  1591. }
  1592. return script;
  1593. }
  1594. /* script */
  1595. const __vue_script__ = script;
  1596. /* template */
  1597. var __vue_render__ = function () {
  1598. var _vm = this;
  1599. var _h = _vm.$createElement;
  1600. var _c = _vm._self._c || _h;
  1601. return _c("table")
  1602. };
  1603. var __vue_staticRenderFns__ = [];
  1604. __vue_render__._withStripped = true;
  1605. /* style */
  1606. const __vue_inject_styles__ = undefined;
  1607. /* scoped */
  1608. const __vue_scope_id__ = undefined;
  1609. /* module identifier */
  1610. const __vue_module_identifier__ = undefined;
  1611. /* functional template */
  1612. const __vue_is_functional_template__ = false;
  1613. /* style inject */
  1614. /* style inject SSR */
  1615. /* style inject shadow dom */
  1616. const __vue_component__ = /*#__PURE__*/normalizeComponent(
  1617. { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
  1618. __vue_inject_styles__,
  1619. __vue_script__,
  1620. __vue_scope_id__,
  1621. __vue_is_functional_template__,
  1622. __vue_module_identifier__,
  1623. false,
  1624. undefined,
  1625. undefined,
  1626. undefined
  1627. );
  1628. return __vue_component__;
  1629. }));