bootstrap-table-materialize.js 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432
  1. (function (global, factory) {
  2. typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
  3. typeof define === 'function' && define.amd ? define(['jquery'], factory) :
  4. (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
  5. })(this, (function ($) { 'use strict';
  6. function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
  7. var $__default = /*#__PURE__*/_interopDefaultLegacy($);
  8. function _classCallCheck(instance, Constructor) {
  9. if (!(instance instanceof Constructor)) {
  10. throw new TypeError("Cannot call a class as a function");
  11. }
  12. }
  13. function _defineProperties(target, props) {
  14. for (var i = 0; i < props.length; i++) {
  15. var descriptor = props[i];
  16. descriptor.enumerable = descriptor.enumerable || false;
  17. descriptor.configurable = true;
  18. if ("value" in descriptor) descriptor.writable = true;
  19. Object.defineProperty(target, descriptor.key, descriptor);
  20. }
  21. }
  22. function _createClass(Constructor, protoProps, staticProps) {
  23. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  24. if (staticProps) _defineProperties(Constructor, staticProps);
  25. Object.defineProperty(Constructor, "prototype", {
  26. writable: false
  27. });
  28. return Constructor;
  29. }
  30. function _inherits(subClass, superClass) {
  31. if (typeof superClass !== "function" && superClass !== null) {
  32. throw new TypeError("Super expression must either be null or a function");
  33. }
  34. subClass.prototype = Object.create(superClass && superClass.prototype, {
  35. constructor: {
  36. value: subClass,
  37. writable: true,
  38. configurable: true
  39. }
  40. });
  41. Object.defineProperty(subClass, "prototype", {
  42. writable: false
  43. });
  44. if (superClass) _setPrototypeOf(subClass, superClass);
  45. }
  46. function _getPrototypeOf(o) {
  47. _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
  48. return o.__proto__ || Object.getPrototypeOf(o);
  49. };
  50. return _getPrototypeOf(o);
  51. }
  52. function _setPrototypeOf(o, p) {
  53. _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
  54. o.__proto__ = p;
  55. return o;
  56. };
  57. return _setPrototypeOf(o, p);
  58. }
  59. function _isNativeReflectConstruct() {
  60. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  61. if (Reflect.construct.sham) return false;
  62. if (typeof Proxy === "function") return true;
  63. try {
  64. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  65. return true;
  66. } catch (e) {
  67. return false;
  68. }
  69. }
  70. function _assertThisInitialized(self) {
  71. if (self === void 0) {
  72. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  73. }
  74. return self;
  75. }
  76. function _possibleConstructorReturn(self, call) {
  77. if (call && (typeof call === "object" || typeof call === "function")) {
  78. return call;
  79. } else if (call !== void 0) {
  80. throw new TypeError("Derived constructors may only return object or undefined");
  81. }
  82. return _assertThisInitialized(self);
  83. }
  84. function _createSuper(Derived) {
  85. var hasNativeReflectConstruct = _isNativeReflectConstruct();
  86. return function _createSuperInternal() {
  87. var Super = _getPrototypeOf(Derived),
  88. result;
  89. if (hasNativeReflectConstruct) {
  90. var NewTarget = _getPrototypeOf(this).constructor;
  91. result = Reflect.construct(Super, arguments, NewTarget);
  92. } else {
  93. result = Super.apply(this, arguments);
  94. }
  95. return _possibleConstructorReturn(this, result);
  96. };
  97. }
  98. function _superPropBase(object, property) {
  99. while (!Object.prototype.hasOwnProperty.call(object, property)) {
  100. object = _getPrototypeOf(object);
  101. if (object === null) break;
  102. }
  103. return object;
  104. }
  105. function _get() {
  106. if (typeof Reflect !== "undefined" && Reflect.get) {
  107. _get = Reflect.get;
  108. } else {
  109. _get = function _get(target, property, receiver) {
  110. var base = _superPropBase(target, property);
  111. if (!base) return;
  112. var desc = Object.getOwnPropertyDescriptor(base, property);
  113. if (desc.get) {
  114. return desc.get.call(arguments.length < 3 ? target : receiver);
  115. }
  116. return desc.value;
  117. };
  118. }
  119. return _get.apply(this, arguments);
  120. }
  121. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  122. function createCommonjsModule(fn, module) {
  123. return module = { exports: {} }, fn(module, module.exports), module.exports;
  124. }
  125. var check = function (it) {
  126. return it && it.Math == Math && it;
  127. };
  128. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  129. var global_1 =
  130. // eslint-disable-next-line es/no-global-this -- safe
  131. check(typeof globalThis == 'object' && globalThis) ||
  132. check(typeof window == 'object' && window) ||
  133. // eslint-disable-next-line no-restricted-globals -- safe
  134. check(typeof self == 'object' && self) ||
  135. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  136. // eslint-disable-next-line no-new-func -- fallback
  137. (function () { return this; })() || Function('return this')();
  138. var fails = function (exec) {
  139. try {
  140. return !!exec();
  141. } catch (error) {
  142. return true;
  143. }
  144. };
  145. // Detect IE8's incomplete defineProperty implementation
  146. var descriptors = !fails(function () {
  147. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  148. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
  149. });
  150. var functionBindNative = !fails(function () {
  151. var test = (function () { /* empty */ }).bind();
  152. // eslint-disable-next-line no-prototype-builtins -- safe
  153. return typeof test != 'function' || test.hasOwnProperty('prototype');
  154. });
  155. var call$1 = Function.prototype.call;
  156. var functionCall = functionBindNative ? call$1.bind(call$1) : function () {
  157. return call$1.apply(call$1, arguments);
  158. };
  159. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  160. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  161. var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  162. // Nashorn ~ JDK8 bug
  163. var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  164. // `Object.prototype.propertyIsEnumerable` method implementation
  165. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  166. var f$5 = NASHORN_BUG ? function propertyIsEnumerable(V) {
  167. var descriptor = getOwnPropertyDescriptor$1(this, V);
  168. return !!descriptor && descriptor.enumerable;
  169. } : $propertyIsEnumerable;
  170. var objectPropertyIsEnumerable = {
  171. f: f$5
  172. };
  173. var createPropertyDescriptor = function (bitmap, value) {
  174. return {
  175. enumerable: !(bitmap & 1),
  176. configurable: !(bitmap & 2),
  177. writable: !(bitmap & 4),
  178. value: value
  179. };
  180. };
  181. var FunctionPrototype$1 = Function.prototype;
  182. var bind$1 = FunctionPrototype$1.bind;
  183. var call = FunctionPrototype$1.call;
  184. var uncurryThis = functionBindNative && bind$1.bind(call, call);
  185. var functionUncurryThis = functionBindNative ? function (fn) {
  186. return fn && uncurryThis(fn);
  187. } : function (fn) {
  188. return fn && function () {
  189. return call.apply(fn, arguments);
  190. };
  191. };
  192. var toString$1 = functionUncurryThis({}.toString);
  193. var stringSlice = functionUncurryThis(''.slice);
  194. var classofRaw = function (it) {
  195. return stringSlice(toString$1(it), 8, -1);
  196. };
  197. var Object$4 = global_1.Object;
  198. var split = functionUncurryThis(''.split);
  199. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  200. var indexedObject = fails(function () {
  201. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  202. // eslint-disable-next-line no-prototype-builtins -- safe
  203. return !Object$4('z').propertyIsEnumerable(0);
  204. }) ? function (it) {
  205. return classofRaw(it) == 'String' ? split(it, '') : Object$4(it);
  206. } : Object$4;
  207. var TypeError$8 = global_1.TypeError;
  208. // `RequireObjectCoercible` abstract operation
  209. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  210. var requireObjectCoercible = function (it) {
  211. if (it == undefined) throw TypeError$8("Can't call method on " + it);
  212. return it;
  213. };
  214. // toObject with fallback for non-array-like ES3 strings
  215. var toIndexedObject = function (it) {
  216. return indexedObject(requireObjectCoercible(it));
  217. };
  218. // `IsCallable` abstract operation
  219. // https://tc39.es/ecma262/#sec-iscallable
  220. var isCallable = function (argument) {
  221. return typeof argument == 'function';
  222. };
  223. var isObject = function (it) {
  224. return typeof it == 'object' ? it !== null : isCallable(it);
  225. };
  226. var aFunction = function (argument) {
  227. return isCallable(argument) ? argument : undefined;
  228. };
  229. var getBuiltIn = function (namespace, method) {
  230. return arguments.length < 2 ? aFunction(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
  231. };
  232. var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
  233. var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
  234. var process = global_1.process;
  235. var Deno = global_1.Deno;
  236. var versions = process && process.versions || Deno && Deno.version;
  237. var v8 = versions && versions.v8;
  238. var match, version;
  239. if (v8) {
  240. match = v8.split('.');
  241. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  242. // but their correct versions are not interesting for us
  243. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  244. }
  245. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  246. // so check `userAgent` even if `.v8` exists, but 0
  247. if (!version && engineUserAgent) {
  248. match = engineUserAgent.match(/Edge\/(\d+)/);
  249. if (!match || match[1] >= 74) {
  250. match = engineUserAgent.match(/Chrome\/(\d+)/);
  251. if (match) version = +match[1];
  252. }
  253. }
  254. var engineV8Version = version;
  255. /* eslint-disable es/no-symbol -- required for testing */
  256. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  257. var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
  258. var symbol = Symbol();
  259. // Chrome 38 Symbol has incorrect toString conversion
  260. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  261. return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
  262. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  263. !Symbol.sham && engineV8Version && engineV8Version < 41;
  264. });
  265. /* eslint-disable es/no-symbol -- required for testing */
  266. var useSymbolAsUid = nativeSymbol
  267. && !Symbol.sham
  268. && typeof Symbol.iterator == 'symbol';
  269. var Object$3 = global_1.Object;
  270. var isSymbol = useSymbolAsUid ? function (it) {
  271. return typeof it == 'symbol';
  272. } : function (it) {
  273. var $Symbol = getBuiltIn('Symbol');
  274. return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, Object$3(it));
  275. };
  276. var String$3 = global_1.String;
  277. var tryToString = function (argument) {
  278. try {
  279. return String$3(argument);
  280. } catch (error) {
  281. return 'Object';
  282. }
  283. };
  284. var TypeError$7 = global_1.TypeError;
  285. // `Assert: IsCallable(argument) is true`
  286. var aCallable = function (argument) {
  287. if (isCallable(argument)) return argument;
  288. throw TypeError$7(tryToString(argument) + ' is not a function');
  289. };
  290. // `GetMethod` abstract operation
  291. // https://tc39.es/ecma262/#sec-getmethod
  292. var getMethod = function (V, P) {
  293. var func = V[P];
  294. return func == null ? undefined : aCallable(func);
  295. };
  296. var TypeError$6 = global_1.TypeError;
  297. // `OrdinaryToPrimitive` abstract operation
  298. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  299. var ordinaryToPrimitive = function (input, pref) {
  300. var fn, val;
  301. if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
  302. if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
  303. if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
  304. throw TypeError$6("Can't convert object to primitive value");
  305. };
  306. // eslint-disable-next-line es/no-object-defineproperty -- safe
  307. var defineProperty = Object.defineProperty;
  308. var setGlobal = function (key, value) {
  309. try {
  310. defineProperty(global_1, key, { value: value, configurable: true, writable: true });
  311. } catch (error) {
  312. global_1[key] = value;
  313. } return value;
  314. };
  315. var SHARED = '__core-js_shared__';
  316. var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
  317. var sharedStore = store$1;
  318. var shared = createCommonjsModule(function (module) {
  319. (module.exports = function (key, value) {
  320. return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
  321. })('versions', []).push({
  322. version: '3.21.1',
  323. mode: 'global',
  324. copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
  325. license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
  326. source: 'https://github.com/zloirock/core-js'
  327. });
  328. });
  329. var Object$2 = global_1.Object;
  330. // `ToObject` abstract operation
  331. // https://tc39.es/ecma262/#sec-toobject
  332. var toObject = function (argument) {
  333. return Object$2(requireObjectCoercible(argument));
  334. };
  335. var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
  336. // `HasOwnProperty` abstract operation
  337. // https://tc39.es/ecma262/#sec-hasownproperty
  338. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  339. return hasOwnProperty(toObject(it), key);
  340. };
  341. var id = 0;
  342. var postfix = Math.random();
  343. var toString = functionUncurryThis(1.0.toString);
  344. var uid = function (key) {
  345. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
  346. };
  347. var WellKnownSymbolsStore = shared('wks');
  348. var Symbol$1 = global_1.Symbol;
  349. var symbolFor = Symbol$1 && Symbol$1['for'];
  350. var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
  351. var wellKnownSymbol = function (name) {
  352. if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
  353. var description = 'Symbol.' + name;
  354. if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
  355. WellKnownSymbolsStore[name] = Symbol$1[name];
  356. } else if (useSymbolAsUid && symbolFor) {
  357. WellKnownSymbolsStore[name] = symbolFor(description);
  358. } else {
  359. WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
  360. }
  361. } return WellKnownSymbolsStore[name];
  362. };
  363. var TypeError$5 = global_1.TypeError;
  364. var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
  365. // `ToPrimitive` abstract operation
  366. // https://tc39.es/ecma262/#sec-toprimitive
  367. var toPrimitive = function (input, pref) {
  368. if (!isObject(input) || isSymbol(input)) return input;
  369. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  370. var result;
  371. if (exoticToPrim) {
  372. if (pref === undefined) pref = 'default';
  373. result = functionCall(exoticToPrim, input, pref);
  374. if (!isObject(result) || isSymbol(result)) return result;
  375. throw TypeError$5("Can't convert object to primitive value");
  376. }
  377. if (pref === undefined) pref = 'number';
  378. return ordinaryToPrimitive(input, pref);
  379. };
  380. // `ToPropertyKey` abstract operation
  381. // https://tc39.es/ecma262/#sec-topropertykey
  382. var toPropertyKey = function (argument) {
  383. var key = toPrimitive(argument, 'string');
  384. return isSymbol(key) ? key : key + '';
  385. };
  386. var document$1 = global_1.document;
  387. // typeof document.createElement is 'object' in old IE
  388. var EXISTS$1 = isObject(document$1) && isObject(document$1.createElement);
  389. var documentCreateElement = function (it) {
  390. return EXISTS$1 ? document$1.createElement(it) : {};
  391. };
  392. // Thanks to IE8 for its funny defineProperty
  393. var ie8DomDefine = !descriptors && !fails(function () {
  394. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  395. return Object.defineProperty(documentCreateElement('div'), 'a', {
  396. get: function () { return 7; }
  397. }).a != 7;
  398. });
  399. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  400. var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  401. // `Object.getOwnPropertyDescriptor` method
  402. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  403. var f$4 = descriptors ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
  404. O = toIndexedObject(O);
  405. P = toPropertyKey(P);
  406. if (ie8DomDefine) try {
  407. return $getOwnPropertyDescriptor$1(O, P);
  408. } catch (error) { /* empty */ }
  409. if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!functionCall(objectPropertyIsEnumerable.f, O, P), O[P]);
  410. };
  411. var objectGetOwnPropertyDescriptor = {
  412. f: f$4
  413. };
  414. // V8 ~ Chrome 36-
  415. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  416. var v8PrototypeDefineBug = descriptors && fails(function () {
  417. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  418. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  419. value: 42,
  420. writable: false
  421. }).prototype != 42;
  422. });
  423. var String$2 = global_1.String;
  424. var TypeError$4 = global_1.TypeError;
  425. // `Assert: Type(argument) is Object`
  426. var anObject = function (argument) {
  427. if (isObject(argument)) return argument;
  428. throw TypeError$4(String$2(argument) + ' is not an object');
  429. };
  430. var TypeError$3 = global_1.TypeError;
  431. // eslint-disable-next-line es/no-object-defineproperty -- safe
  432. var $defineProperty = Object.defineProperty;
  433. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  434. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  435. var ENUMERABLE = 'enumerable';
  436. var CONFIGURABLE$1 = 'configurable';
  437. var WRITABLE = 'writable';
  438. // `Object.defineProperty` method
  439. // https://tc39.es/ecma262/#sec-object.defineproperty
  440. var f$3 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) {
  441. anObject(O);
  442. P = toPropertyKey(P);
  443. anObject(Attributes);
  444. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  445. var current = $getOwnPropertyDescriptor(O, P);
  446. if (current && current[WRITABLE]) {
  447. O[P] = Attributes.value;
  448. Attributes = {
  449. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  450. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  451. writable: false
  452. };
  453. }
  454. } return $defineProperty(O, P, Attributes);
  455. } : $defineProperty : function defineProperty(O, P, Attributes) {
  456. anObject(O);
  457. P = toPropertyKey(P);
  458. anObject(Attributes);
  459. if (ie8DomDefine) try {
  460. return $defineProperty(O, P, Attributes);
  461. } catch (error) { /* empty */ }
  462. if ('get' in Attributes || 'set' in Attributes) throw TypeError$3('Accessors not supported');
  463. if ('value' in Attributes) O[P] = Attributes.value;
  464. return O;
  465. };
  466. var objectDefineProperty = {
  467. f: f$3
  468. };
  469. var createNonEnumerableProperty = descriptors ? function (object, key, value) {
  470. return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
  471. } : function (object, key, value) {
  472. object[key] = value;
  473. return object;
  474. };
  475. var functionToString = functionUncurryThis(Function.toString);
  476. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  477. if (!isCallable(sharedStore.inspectSource)) {
  478. sharedStore.inspectSource = function (it) {
  479. return functionToString(it);
  480. };
  481. }
  482. var inspectSource = sharedStore.inspectSource;
  483. var WeakMap$1 = global_1.WeakMap;
  484. var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
  485. var keys = shared('keys');
  486. var sharedKey = function (key) {
  487. return keys[key] || (keys[key] = uid(key));
  488. };
  489. var hiddenKeys$1 = {};
  490. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  491. var TypeError$2 = global_1.TypeError;
  492. var WeakMap = global_1.WeakMap;
  493. var set, get, has;
  494. var enforce = function (it) {
  495. return has(it) ? get(it) : set(it, {});
  496. };
  497. var getterFor = function (TYPE) {
  498. return function (it) {
  499. var state;
  500. if (!isObject(it) || (state = get(it)).type !== TYPE) {
  501. throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
  502. } return state;
  503. };
  504. };
  505. if (nativeWeakMap || sharedStore.state) {
  506. var store = sharedStore.state || (sharedStore.state = new WeakMap());
  507. var wmget = functionUncurryThis(store.get);
  508. var wmhas = functionUncurryThis(store.has);
  509. var wmset = functionUncurryThis(store.set);
  510. set = function (it, metadata) {
  511. if (wmhas(store, it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
  512. metadata.facade = it;
  513. wmset(store, it, metadata);
  514. return metadata;
  515. };
  516. get = function (it) {
  517. return wmget(store, it) || {};
  518. };
  519. has = function (it) {
  520. return wmhas(store, it);
  521. };
  522. } else {
  523. var STATE = sharedKey('state');
  524. hiddenKeys$1[STATE] = true;
  525. set = function (it, metadata) {
  526. if (hasOwnProperty_1(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
  527. metadata.facade = it;
  528. createNonEnumerableProperty(it, STATE, metadata);
  529. return metadata;
  530. };
  531. get = function (it) {
  532. return hasOwnProperty_1(it, STATE) ? it[STATE] : {};
  533. };
  534. has = function (it) {
  535. return hasOwnProperty_1(it, STATE);
  536. };
  537. }
  538. var internalState = {
  539. set: set,
  540. get: get,
  541. has: has,
  542. enforce: enforce,
  543. getterFor: getterFor
  544. };
  545. var FunctionPrototype = Function.prototype;
  546. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  547. var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
  548. var EXISTS = hasOwnProperty_1(FunctionPrototype, 'name');
  549. // additional protection from minified / mangled / dropped function names
  550. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  551. var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype, 'name').configurable));
  552. var functionName = {
  553. EXISTS: EXISTS,
  554. PROPER: PROPER,
  555. CONFIGURABLE: CONFIGURABLE
  556. };
  557. var redefine = createCommonjsModule(function (module) {
  558. var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
  559. var getInternalState = internalState.get;
  560. var enforceInternalState = internalState.enforce;
  561. var TEMPLATE = String(String).split('String');
  562. (module.exports = function (O, key, value, options) {
  563. var unsafe = options ? !!options.unsafe : false;
  564. var simple = options ? !!options.enumerable : false;
  565. var noTargetGet = options ? !!options.noTargetGet : false;
  566. var name = options && options.name !== undefined ? options.name : key;
  567. var state;
  568. if (isCallable(value)) {
  569. if (String(name).slice(0, 7) === 'Symbol(') {
  570. name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
  571. }
  572. if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  573. createNonEnumerableProperty(value, 'name', name);
  574. }
  575. state = enforceInternalState(value);
  576. if (!state.source) {
  577. state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
  578. }
  579. }
  580. if (O === global_1) {
  581. if (simple) O[key] = value;
  582. else setGlobal(key, value);
  583. return;
  584. } else if (!unsafe) {
  585. delete O[key];
  586. } else if (!noTargetGet && O[key]) {
  587. simple = true;
  588. }
  589. if (simple) O[key] = value;
  590. else createNonEnumerableProperty(O, key, value);
  591. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  592. })(Function.prototype, 'toString', function toString() {
  593. return isCallable(this) && getInternalState(this).source || inspectSource(this);
  594. });
  595. });
  596. var ceil = Math.ceil;
  597. var floor = Math.floor;
  598. // `ToIntegerOrInfinity` abstract operation
  599. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  600. var toIntegerOrInfinity = function (argument) {
  601. var number = +argument;
  602. // eslint-disable-next-line no-self-compare -- safe
  603. return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
  604. };
  605. var max = Math.max;
  606. var min$1 = Math.min;
  607. // Helper for a popular repeating case of the spec:
  608. // Let integer be ? ToInteger(index).
  609. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  610. var toAbsoluteIndex = function (index, length) {
  611. var integer = toIntegerOrInfinity(index);
  612. return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
  613. };
  614. var min = Math.min;
  615. // `ToLength` abstract operation
  616. // https://tc39.es/ecma262/#sec-tolength
  617. var toLength = function (argument) {
  618. return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  619. };
  620. // `LengthOfArrayLike` abstract operation
  621. // https://tc39.es/ecma262/#sec-lengthofarraylike
  622. var lengthOfArrayLike = function (obj) {
  623. return toLength(obj.length);
  624. };
  625. // `Array.prototype.{ indexOf, includes }` methods implementation
  626. var createMethod$1 = function (IS_INCLUDES) {
  627. return function ($this, el, fromIndex) {
  628. var O = toIndexedObject($this);
  629. var length = lengthOfArrayLike(O);
  630. var index = toAbsoluteIndex(fromIndex, length);
  631. var value;
  632. // Array#includes uses SameValueZero equality algorithm
  633. // eslint-disable-next-line no-self-compare -- NaN check
  634. if (IS_INCLUDES && el != el) while (length > index) {
  635. value = O[index++];
  636. // eslint-disable-next-line no-self-compare -- NaN check
  637. if (value != value) return true;
  638. // Array#indexOf ignores holes, Array#includes - not
  639. } else for (;length > index; index++) {
  640. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  641. } return !IS_INCLUDES && -1;
  642. };
  643. };
  644. var arrayIncludes = {
  645. // `Array.prototype.includes` method
  646. // https://tc39.es/ecma262/#sec-array.prototype.includes
  647. includes: createMethod$1(true),
  648. // `Array.prototype.indexOf` method
  649. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  650. indexOf: createMethod$1(false)
  651. };
  652. var indexOf = arrayIncludes.indexOf;
  653. var push$1 = functionUncurryThis([].push);
  654. var objectKeysInternal = function (object, names) {
  655. var O = toIndexedObject(object);
  656. var i = 0;
  657. var result = [];
  658. var key;
  659. for (key in O) !hasOwnProperty_1(hiddenKeys$1, key) && hasOwnProperty_1(O, key) && push$1(result, key);
  660. // Don't enum bug & hidden keys
  661. while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) {
  662. ~indexOf(result, key) || push$1(result, key);
  663. }
  664. return result;
  665. };
  666. // IE8- don't enum bug keys
  667. var enumBugKeys = [
  668. 'constructor',
  669. 'hasOwnProperty',
  670. 'isPrototypeOf',
  671. 'propertyIsEnumerable',
  672. 'toLocaleString',
  673. 'toString',
  674. 'valueOf'
  675. ];
  676. var hiddenKeys = enumBugKeys.concat('length', 'prototype');
  677. // `Object.getOwnPropertyNames` method
  678. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  679. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  680. var f$2 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  681. return objectKeysInternal(O, hiddenKeys);
  682. };
  683. var objectGetOwnPropertyNames = {
  684. f: f$2
  685. };
  686. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  687. var f$1 = Object.getOwnPropertySymbols;
  688. var objectGetOwnPropertySymbols = {
  689. f: f$1
  690. };
  691. var concat = functionUncurryThis([].concat);
  692. // all object keys, includes non-enumerable and symbols
  693. var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
  694. var keys = objectGetOwnPropertyNames.f(anObject(it));
  695. var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
  696. return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
  697. };
  698. var copyConstructorProperties = function (target, source, exceptions) {
  699. var keys = ownKeys(source);
  700. var defineProperty = objectDefineProperty.f;
  701. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  702. for (var i = 0; i < keys.length; i++) {
  703. var key = keys[i];
  704. if (!hasOwnProperty_1(target, key) && !(exceptions && hasOwnProperty_1(exceptions, key))) {
  705. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  706. }
  707. }
  708. };
  709. var replacement = /#|\.prototype\./;
  710. var isForced = function (feature, detection) {
  711. var value = data[normalize(feature)];
  712. return value == POLYFILL ? true
  713. : value == NATIVE ? false
  714. : isCallable(detection) ? fails(detection)
  715. : !!detection;
  716. };
  717. var normalize = isForced.normalize = function (string) {
  718. return String(string).replace(replacement, '.').toLowerCase();
  719. };
  720. var data = isForced.data = {};
  721. var NATIVE = isForced.NATIVE = 'N';
  722. var POLYFILL = isForced.POLYFILL = 'P';
  723. var isForced_1 = isForced;
  724. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  725. /*
  726. options.target - name of the target object
  727. options.global - target is the global object
  728. options.stat - export as static methods of target
  729. options.proto - export as prototype methods of target
  730. options.real - real prototype method for the `pure` version
  731. options.forced - export even if the native feature is available
  732. options.bind - bind methods to the target, required for the `pure` version
  733. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  734. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  735. options.sham - add a flag to not completely full polyfills
  736. options.enumerable - export as enumerable property
  737. options.noTargetGet - prevent calling a getter on target
  738. options.name - the .name of the function if it does not match the key
  739. */
  740. var _export = function (options, source) {
  741. var TARGET = options.target;
  742. var GLOBAL = options.global;
  743. var STATIC = options.stat;
  744. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  745. if (GLOBAL) {
  746. target = global_1;
  747. } else if (STATIC) {
  748. target = global_1[TARGET] || setGlobal(TARGET, {});
  749. } else {
  750. target = (global_1[TARGET] || {}).prototype;
  751. }
  752. if (target) for (key in source) {
  753. sourceProperty = source[key];
  754. if (options.noTargetGet) {
  755. descriptor = getOwnPropertyDescriptor(target, key);
  756. targetProperty = descriptor && descriptor.value;
  757. } else targetProperty = target[key];
  758. FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  759. // contained in target
  760. if (!FORCED && targetProperty !== undefined) {
  761. if (typeof sourceProperty == typeof targetProperty) continue;
  762. copyConstructorProperties(sourceProperty, targetProperty);
  763. }
  764. // add a flag to not completely full polyfills
  765. if (options.sham || (targetProperty && targetProperty.sham)) {
  766. createNonEnumerableProperty(sourceProperty, 'sham', true);
  767. }
  768. // extend global
  769. redefine(target, key, sourceProperty, options);
  770. }
  771. };
  772. var bind = functionUncurryThis(functionUncurryThis.bind);
  773. // optional / simple context binding
  774. var functionBindContext = function (fn, that) {
  775. aCallable(fn);
  776. return that === undefined ? fn : functionBindNative ? bind(fn, that) : function (/* ...args */) {
  777. return fn.apply(that, arguments);
  778. };
  779. };
  780. // `IsArray` abstract operation
  781. // https://tc39.es/ecma262/#sec-isarray
  782. // eslint-disable-next-line es/no-array-isarray -- safe
  783. var isArray = Array.isArray || function isArray(argument) {
  784. return classofRaw(argument) == 'Array';
  785. };
  786. var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
  787. var test = {};
  788. test[TO_STRING_TAG$1] = 'z';
  789. var toStringTagSupport = String(test) === '[object z]';
  790. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  791. var Object$1 = global_1.Object;
  792. // ES3 wrong here
  793. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
  794. // fallback for IE11 Script Access Denied error
  795. var tryGet = function (it, key) {
  796. try {
  797. return it[key];
  798. } catch (error) { /* empty */ }
  799. };
  800. // getting tag from ES6+ `Object.prototype.toString`
  801. var classof = toStringTagSupport ? classofRaw : function (it) {
  802. var O, tag, result;
  803. return it === undefined ? 'Undefined' : it === null ? 'Null'
  804. // @@toStringTag case
  805. : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
  806. // builtinTag case
  807. : CORRECT_ARGUMENTS ? classofRaw(O)
  808. // ES3 arguments fallback
  809. : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
  810. };
  811. var noop = function () { /* empty */ };
  812. var empty = [];
  813. var construct = getBuiltIn('Reflect', 'construct');
  814. var constructorRegExp = /^\s*(?:class|function)\b/;
  815. var exec = functionUncurryThis(constructorRegExp.exec);
  816. var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
  817. var isConstructorModern = function isConstructor(argument) {
  818. if (!isCallable(argument)) return false;
  819. try {
  820. construct(noop, empty, argument);
  821. return true;
  822. } catch (error) {
  823. return false;
  824. }
  825. };
  826. var isConstructorLegacy = function isConstructor(argument) {
  827. if (!isCallable(argument)) return false;
  828. switch (classof(argument)) {
  829. case 'AsyncFunction':
  830. case 'GeneratorFunction':
  831. case 'AsyncGeneratorFunction': return false;
  832. }
  833. try {
  834. // we can't check .prototype since constructors produced by .bind haven't it
  835. // `Function#toString` throws on some built-it function in some legacy engines
  836. // (for example, `DOMQuad` and similar in FF41-)
  837. return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
  838. } catch (error) {
  839. return true;
  840. }
  841. };
  842. isConstructorLegacy.sham = true;
  843. // `IsConstructor` abstract operation
  844. // https://tc39.es/ecma262/#sec-isconstructor
  845. var isConstructor = !construct || fails(function () {
  846. var called;
  847. return isConstructorModern(isConstructorModern.call)
  848. || !isConstructorModern(Object)
  849. || !isConstructorModern(function () { called = true; })
  850. || called;
  851. }) ? isConstructorLegacy : isConstructorModern;
  852. var SPECIES = wellKnownSymbol('species');
  853. var Array$1 = global_1.Array;
  854. // a part of `ArraySpeciesCreate` abstract operation
  855. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  856. var arraySpeciesConstructor = function (originalArray) {
  857. var C;
  858. if (isArray(originalArray)) {
  859. C = originalArray.constructor;
  860. // cross-realm fallback
  861. if (isConstructor(C) && (C === Array$1 || isArray(C.prototype))) C = undefined;
  862. else if (isObject(C)) {
  863. C = C[SPECIES];
  864. if (C === null) C = undefined;
  865. }
  866. } return C === undefined ? Array$1 : C;
  867. };
  868. // `ArraySpeciesCreate` abstract operation
  869. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  870. var arraySpeciesCreate = function (originalArray, length) {
  871. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  872. };
  873. var push = functionUncurryThis([].push);
  874. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  875. var createMethod = function (TYPE) {
  876. var IS_MAP = TYPE == 1;
  877. var IS_FILTER = TYPE == 2;
  878. var IS_SOME = TYPE == 3;
  879. var IS_EVERY = TYPE == 4;
  880. var IS_FIND_INDEX = TYPE == 6;
  881. var IS_FILTER_REJECT = TYPE == 7;
  882. var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
  883. return function ($this, callbackfn, that, specificCreate) {
  884. var O = toObject($this);
  885. var self = indexedObject(O);
  886. var boundFunction = functionBindContext(callbackfn, that);
  887. var length = lengthOfArrayLike(self);
  888. var index = 0;
  889. var create = specificCreate || arraySpeciesCreate;
  890. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  891. var value, result;
  892. for (;length > index; index++) if (NO_HOLES || index in self) {
  893. value = self[index];
  894. result = boundFunction(value, index, O);
  895. if (TYPE) {
  896. if (IS_MAP) target[index] = result; // map
  897. else if (result) switch (TYPE) {
  898. case 3: return true; // some
  899. case 5: return value; // find
  900. case 6: return index; // findIndex
  901. case 2: push(target, value); // filter
  902. } else switch (TYPE) {
  903. case 4: return false; // every
  904. case 7: push(target, value); // filterReject
  905. }
  906. }
  907. }
  908. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  909. };
  910. };
  911. var arrayIteration = {
  912. // `Array.prototype.forEach` method
  913. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  914. forEach: createMethod(0),
  915. // `Array.prototype.map` method
  916. // https://tc39.es/ecma262/#sec-array.prototype.map
  917. map: createMethod(1),
  918. // `Array.prototype.filter` method
  919. // https://tc39.es/ecma262/#sec-array.prototype.filter
  920. filter: createMethod(2),
  921. // `Array.prototype.some` method
  922. // https://tc39.es/ecma262/#sec-array.prototype.some
  923. some: createMethod(3),
  924. // `Array.prototype.every` method
  925. // https://tc39.es/ecma262/#sec-array.prototype.every
  926. every: createMethod(4),
  927. // `Array.prototype.find` method
  928. // https://tc39.es/ecma262/#sec-array.prototype.find
  929. find: createMethod(5),
  930. // `Array.prototype.findIndex` method
  931. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  932. findIndex: createMethod(6),
  933. // `Array.prototype.filterReject` method
  934. // https://github.com/tc39/proposal-array-filtering
  935. filterReject: createMethod(7)
  936. };
  937. // `Object.keys` method
  938. // https://tc39.es/ecma262/#sec-object.keys
  939. // eslint-disable-next-line es/no-object-keys -- safe
  940. var objectKeys = Object.keys || function keys(O) {
  941. return objectKeysInternal(O, enumBugKeys);
  942. };
  943. // `Object.defineProperties` method
  944. // https://tc39.es/ecma262/#sec-object.defineproperties
  945. // eslint-disable-next-line es/no-object-defineproperties -- safe
  946. var f = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
  947. anObject(O);
  948. var props = toIndexedObject(Properties);
  949. var keys = objectKeys(Properties);
  950. var length = keys.length;
  951. var index = 0;
  952. var key;
  953. while (length > index) objectDefineProperty.f(O, key = keys[index++], props[key]);
  954. return O;
  955. };
  956. var objectDefineProperties = {
  957. f: f
  958. };
  959. var html = getBuiltIn('document', 'documentElement');
  960. /* global ActiveXObject -- old IE, WSH */
  961. var GT = '>';
  962. var LT = '<';
  963. var PROTOTYPE = 'prototype';
  964. var SCRIPT = 'script';
  965. var IE_PROTO = sharedKey('IE_PROTO');
  966. var EmptyConstructor = function () { /* empty */ };
  967. var scriptTag = function (content) {
  968. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  969. };
  970. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  971. var NullProtoObjectViaActiveX = function (activeXDocument) {
  972. activeXDocument.write(scriptTag(''));
  973. activeXDocument.close();
  974. var temp = activeXDocument.parentWindow.Object;
  975. activeXDocument = null; // avoid memory leak
  976. return temp;
  977. };
  978. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  979. var NullProtoObjectViaIFrame = function () {
  980. // Thrash, waste and sodomy: IE GC bug
  981. var iframe = documentCreateElement('iframe');
  982. var JS = 'java' + SCRIPT + ':';
  983. var iframeDocument;
  984. iframe.style.display = 'none';
  985. html.appendChild(iframe);
  986. // https://github.com/zloirock/core-js/issues/475
  987. iframe.src = String(JS);
  988. iframeDocument = iframe.contentWindow.document;
  989. iframeDocument.open();
  990. iframeDocument.write(scriptTag('document.F=Object'));
  991. iframeDocument.close();
  992. return iframeDocument.F;
  993. };
  994. // Check for document.domain and active x support
  995. // No need to use active x approach when document.domain is not set
  996. // see https://github.com/es-shims/es5-shim/issues/150
  997. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  998. // avoid IE GC bug
  999. var activeXDocument;
  1000. var NullProtoObject = function () {
  1001. try {
  1002. activeXDocument = new ActiveXObject('htmlfile');
  1003. } catch (error) { /* ignore */ }
  1004. NullProtoObject = typeof document != 'undefined'
  1005. ? document.domain && activeXDocument
  1006. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  1007. : NullProtoObjectViaIFrame()
  1008. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  1009. var length = enumBugKeys.length;
  1010. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  1011. return NullProtoObject();
  1012. };
  1013. hiddenKeys$1[IE_PROTO] = true;
  1014. // `Object.create` method
  1015. // https://tc39.es/ecma262/#sec-object.create
  1016. var objectCreate = Object.create || function create(O, Properties) {
  1017. var result;
  1018. if (O !== null) {
  1019. EmptyConstructor[PROTOTYPE] = anObject(O);
  1020. result = new EmptyConstructor();
  1021. EmptyConstructor[PROTOTYPE] = null;
  1022. // add "__proto__" for Object.getPrototypeOf polyfill
  1023. result[IE_PROTO] = O;
  1024. } else result = NullProtoObject();
  1025. return Properties === undefined ? result : objectDefineProperties.f(result, Properties);
  1026. };
  1027. var UNSCOPABLES = wellKnownSymbol('unscopables');
  1028. var ArrayPrototype = Array.prototype;
  1029. // Array.prototype[@@unscopables]
  1030. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1031. if (ArrayPrototype[UNSCOPABLES] == undefined) {
  1032. objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {
  1033. configurable: true,
  1034. value: objectCreate(null)
  1035. });
  1036. }
  1037. // add a key to Array.prototype[@@unscopables]
  1038. var addToUnscopables = function (key) {
  1039. ArrayPrototype[UNSCOPABLES][key] = true;
  1040. };
  1041. var $find = arrayIteration.find;
  1042. var FIND = 'find';
  1043. var SKIPS_HOLES = true;
  1044. // Shouldn't skip holes
  1045. if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
  1046. // `Array.prototype.find` method
  1047. // https://tc39.es/ecma262/#sec-array.prototype.find
  1048. _export({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
  1049. find: function find(callbackfn /* , that = undefined */) {
  1050. return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1051. }
  1052. });
  1053. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1054. addToUnscopables(FIND);
  1055. // `Object.prototype.toString` method implementation
  1056. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1057. var objectToString = toStringTagSupport ? {}.toString : function toString() {
  1058. return '[object ' + classof(this) + ']';
  1059. };
  1060. // `Object.prototype.toString` method
  1061. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1062. if (!toStringTagSupport) {
  1063. redefine(Object.prototype, 'toString', objectToString, { unsafe: true });
  1064. }
  1065. var $includes = arrayIncludes.includes;
  1066. // `Array.prototype.includes` method
  1067. // https://tc39.es/ecma262/#sec-array.prototype.includes
  1068. _export({ target: 'Array', proto: true }, {
  1069. includes: function includes(el /* , fromIndex = 0 */) {
  1070. return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
  1071. }
  1072. });
  1073. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1074. addToUnscopables('includes');
  1075. var MATCH$1 = wellKnownSymbol('match');
  1076. // `IsRegExp` abstract operation
  1077. // https://tc39.es/ecma262/#sec-isregexp
  1078. var isRegexp = function (it) {
  1079. var isRegExp;
  1080. return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
  1081. };
  1082. var TypeError$1 = global_1.TypeError;
  1083. var notARegexp = function (it) {
  1084. if (isRegexp(it)) {
  1085. throw TypeError$1("The method doesn't accept regular expressions");
  1086. } return it;
  1087. };
  1088. var String$1 = global_1.String;
  1089. var toString_1 = function (argument) {
  1090. if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
  1091. return String$1(argument);
  1092. };
  1093. var MATCH = wellKnownSymbol('match');
  1094. var correctIsRegexpLogic = function (METHOD_NAME) {
  1095. var regexp = /./;
  1096. try {
  1097. '/./'[METHOD_NAME](regexp);
  1098. } catch (error1) {
  1099. try {
  1100. regexp[MATCH] = false;
  1101. return '/./'[METHOD_NAME](regexp);
  1102. } catch (error2) { /* empty */ }
  1103. } return false;
  1104. };
  1105. var stringIndexOf = functionUncurryThis(''.indexOf);
  1106. // `String.prototype.includes` method
  1107. // https://tc39.es/ecma262/#sec-string.prototype.includes
  1108. _export({ target: 'String', proto: true, forced: !correctIsRegexpLogic('includes') }, {
  1109. includes: function includes(searchString /* , position = 0 */) {
  1110. return !!~stringIndexOf(
  1111. toString_1(requireObjectCoercible(this)),
  1112. toString_1(notARegexp(searchString)),
  1113. arguments.length > 1 ? arguments[1] : undefined
  1114. );
  1115. }
  1116. });
  1117. /**
  1118. * @author zhixin wen <wenzhixin2010@gmail.com>
  1119. * https://github.com/wenzhixin/bootstrap-table/
  1120. * theme: https://materializecss.com/
  1121. */
  1122. $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
  1123. classes: 'table highlight',
  1124. buttonsPrefix: '',
  1125. buttonsClass: 'waves-effect waves-light btn'
  1126. });
  1127. $__default["default"].fn.bootstrapTable.theme = 'materialize';
  1128. $__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  1129. _inherits(_class, _$$BootstrapTable);
  1130. var _super = _createSuper(_class);
  1131. function _class() {
  1132. _classCallCheck(this, _class);
  1133. return _super.apply(this, arguments);
  1134. }
  1135. _createClass(_class, [{
  1136. key: "initConstants",
  1137. value: function initConstants() {
  1138. _get(_getPrototypeOf(_class.prototype), "initConstants", this).call(this);
  1139. this.constants.classes.buttonsGroup = 'button-group';
  1140. this.constants.classes.buttonsDropdown = '';
  1141. this.constants.classes.input = 'input-field';
  1142. this.constants.classes.input = '';
  1143. this.constants.classes.paginationDropdown = '';
  1144. this.constants.classes.buttonActive = 'green';
  1145. this.constants.html.toolbarDropdown = ['<ul class="dropdown-content">', '</ul>'];
  1146. this.constants.html.toolbarDropdownItem = '<li class="dropdown-item-marker"><label>%s</label></li>';
  1147. this.constants.html.toolbarDropdownSeparator = '<li class="divider" tabindex="-1"></li>';
  1148. this.constants.html.pageDropdown = ['<ul id="pagination-list-id" class="dropdown-content">', '</ul>'];
  1149. this.constants.html.pageDropdownItem = '<li><a class="%s" href="#">%s</a></li>';
  1150. this.constants.html.dropdownCaret = '<i class="material-icons">arrow_drop_down</i>';
  1151. this.constants.html.pagination = ['<ul class="pagination%s">', '</ul>'];
  1152. this.constants.html.paginationItem = '<li class="waves-effect page-item%s" aria-label="%s"><a href="#">%s</a></li>';
  1153. this.constants.html.icon = '<i class="%s">%s</i>';
  1154. this.constants.html.inputGroup = '%s%s';
  1155. }
  1156. }, {
  1157. key: "initToolbar",
  1158. value: function initToolbar() {
  1159. _get(_getPrototypeOf(_class.prototype), "initToolbar", this).call(this);
  1160. this.handleToolbar();
  1161. }
  1162. }, {
  1163. key: "handleToolbar",
  1164. value: function handleToolbar() {
  1165. if (this.$toolbar.find('.dropdown-toggle').length) {
  1166. this.$toolbar.find('.dropdown-toggle').each(function (i, el) {
  1167. if (!$__default["default"](el).next().length) {
  1168. return;
  1169. }
  1170. var id = "toolbar-columns-id".concat(i);
  1171. $__default["default"](el).next().attr('id', id);
  1172. $__default["default"](el).attr('data-target', id).dropdown({
  1173. alignment: 'right',
  1174. constrainWidth: false,
  1175. closeOnClick: false
  1176. });
  1177. });
  1178. }
  1179. }
  1180. }, {
  1181. key: "initPagination",
  1182. value: function initPagination() {
  1183. _get(_getPrototypeOf(_class.prototype), "initPagination", this).call(this);
  1184. if (this.options.pagination && this.paginationParts.includes('pageSize')) {
  1185. this.$pagination.find('.dropdown-toggle').attr('data-target', this.$pagination.find('.dropdown-content').attr('id')).dropdown();
  1186. }
  1187. }
  1188. }]);
  1189. return _class;
  1190. }($__default["default"].BootstrapTable);
  1191. }));