bootstrap-table-resizable.js 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452
  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 ($$1) { 'use strict';
  6. function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
  7. var $__default = /*#__PURE__*/_interopDefaultLegacy($$1);
  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.bind() : 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 ? Object.setPrototypeOf.bind() : 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.bind();
  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. var check = function (it) {
  123. return it && it.Math == Math && it;
  124. };
  125. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  126. var global$a =
  127. // eslint-disable-next-line es/no-global-this -- safe
  128. check(typeof globalThis == 'object' && globalThis) ||
  129. check(typeof window == 'object' && window) ||
  130. // eslint-disable-next-line no-restricted-globals -- safe
  131. check(typeof self == 'object' && self) ||
  132. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  133. // eslint-disable-next-line no-new-func -- fallback
  134. (function () { return this; })() || Function('return this')();
  135. var objectGetOwnPropertyDescriptor = {};
  136. var fails$b = function (exec) {
  137. try {
  138. return !!exec();
  139. } catch (error) {
  140. return true;
  141. }
  142. };
  143. var fails$a = fails$b;
  144. // Detect IE8's incomplete defineProperty implementation
  145. var descriptors = !fails$a(function () {
  146. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  147. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
  148. });
  149. var fails$9 = fails$b;
  150. var functionBindNative = !fails$9(function () {
  151. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  152. var test = (function () { /* empty */ }).bind();
  153. // eslint-disable-next-line no-prototype-builtins -- safe
  154. return typeof test != 'function' || test.hasOwnProperty('prototype');
  155. });
  156. var NATIVE_BIND$1 = functionBindNative;
  157. var call$4 = Function.prototype.call;
  158. var functionCall = NATIVE_BIND$1 ? call$4.bind(call$4) : function () {
  159. return call$4.apply(call$4, arguments);
  160. };
  161. var objectPropertyIsEnumerable = {};
  162. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  163. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  164. var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  165. // Nashorn ~ JDK8 bug
  166. var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  167. // `Object.prototype.propertyIsEnumerable` method implementation
  168. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  169. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  170. var descriptor = getOwnPropertyDescriptor$1(this, V);
  171. return !!descriptor && descriptor.enumerable;
  172. } : $propertyIsEnumerable;
  173. var createPropertyDescriptor$3 = function (bitmap, value) {
  174. return {
  175. enumerable: !(bitmap & 1),
  176. configurable: !(bitmap & 2),
  177. writable: !(bitmap & 4),
  178. value: value
  179. };
  180. };
  181. var NATIVE_BIND = functionBindNative;
  182. var FunctionPrototype$1 = Function.prototype;
  183. var call$3 = FunctionPrototype$1.call;
  184. var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$3, call$3);
  185. var functionUncurryThisRaw = function (fn) {
  186. return NATIVE_BIND ? uncurryThisWithBind(fn) : function () {
  187. return call$3.apply(fn, arguments);
  188. };
  189. };
  190. var uncurryThisRaw$1 = functionUncurryThisRaw;
  191. var toString$1 = uncurryThisRaw$1({}.toString);
  192. var stringSlice = uncurryThisRaw$1(''.slice);
  193. var classofRaw$2 = function (it) {
  194. return stringSlice(toString$1(it), 8, -1);
  195. };
  196. var classofRaw$1 = classofRaw$2;
  197. var uncurryThisRaw = functionUncurryThisRaw;
  198. var functionUncurryThis = function (fn) {
  199. // Nashorn bug:
  200. // https://github.com/zloirock/core-js/issues/1128
  201. // https://github.com/zloirock/core-js/issues/1130
  202. if (classofRaw$1(fn) === 'Function') return uncurryThisRaw(fn);
  203. };
  204. var uncurryThis$7 = functionUncurryThis;
  205. var fails$8 = fails$b;
  206. var classof$3 = classofRaw$2;
  207. var $Object$3 = Object;
  208. var split = uncurryThis$7(''.split);
  209. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  210. var indexedObject = fails$8(function () {
  211. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  212. // eslint-disable-next-line no-prototype-builtins -- safe
  213. return !$Object$3('z').propertyIsEnumerable(0);
  214. }) ? function (it) {
  215. return classof$3(it) == 'String' ? split(it, '') : $Object$3(it);
  216. } : $Object$3;
  217. // we can't use just `it == null` since of `document.all` special case
  218. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  219. var isNullOrUndefined$2 = function (it) {
  220. return it === null || it === undefined;
  221. };
  222. var isNullOrUndefined$1 = isNullOrUndefined$2;
  223. var $TypeError$6 = TypeError;
  224. // `RequireObjectCoercible` abstract operation
  225. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  226. var requireObjectCoercible$2 = function (it) {
  227. if (isNullOrUndefined$1(it)) throw $TypeError$6("Can't call method on " + it);
  228. return it;
  229. };
  230. // toObject with fallback for non-array-like ES3 strings
  231. var IndexedObject = indexedObject;
  232. var requireObjectCoercible$1 = requireObjectCoercible$2;
  233. var toIndexedObject$3 = function (it) {
  234. return IndexedObject(requireObjectCoercible$1(it));
  235. };
  236. var documentAll$2 = typeof document == 'object' && document.all;
  237. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  238. var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
  239. var documentAll_1 = {
  240. all: documentAll$2,
  241. IS_HTMLDDA: IS_HTMLDDA
  242. };
  243. var $documentAll$1 = documentAll_1;
  244. var documentAll$1 = $documentAll$1.all;
  245. // `IsCallable` abstract operation
  246. // https://tc39.es/ecma262/#sec-iscallable
  247. var isCallable$c = $documentAll$1.IS_HTMLDDA ? function (argument) {
  248. return typeof argument == 'function' || argument === documentAll$1;
  249. } : function (argument) {
  250. return typeof argument == 'function';
  251. };
  252. var isCallable$b = isCallable$c;
  253. var $documentAll = documentAll_1;
  254. var documentAll = $documentAll.all;
  255. var isObject$7 = $documentAll.IS_HTMLDDA ? function (it) {
  256. return typeof it == 'object' ? it !== null : isCallable$b(it) || it === documentAll;
  257. } : function (it) {
  258. return typeof it == 'object' ? it !== null : isCallable$b(it);
  259. };
  260. var global$9 = global$a;
  261. var isCallable$a = isCallable$c;
  262. var aFunction = function (argument) {
  263. return isCallable$a(argument) ? argument : undefined;
  264. };
  265. var getBuiltIn$4 = function (namespace, method) {
  266. return arguments.length < 2 ? aFunction(global$9[namespace]) : global$9[namespace] && global$9[namespace][method];
  267. };
  268. var uncurryThis$6 = functionUncurryThis;
  269. var objectIsPrototypeOf = uncurryThis$6({}.isPrototypeOf);
  270. var getBuiltIn$3 = getBuiltIn$4;
  271. var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
  272. var global$8 = global$a;
  273. var userAgent = engineUserAgent;
  274. var process = global$8.process;
  275. var Deno = global$8.Deno;
  276. var versions = process && process.versions || Deno && Deno.version;
  277. var v8 = versions && versions.v8;
  278. var match, version;
  279. if (v8) {
  280. match = v8.split('.');
  281. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  282. // but their correct versions are not interesting for us
  283. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  284. }
  285. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  286. // so check `userAgent` even if `.v8` exists, but 0
  287. if (!version && userAgent) {
  288. match = userAgent.match(/Edge\/(\d+)/);
  289. if (!match || match[1] >= 74) {
  290. match = userAgent.match(/Chrome\/(\d+)/);
  291. if (match) version = +match[1];
  292. }
  293. }
  294. var engineV8Version = version;
  295. /* eslint-disable es/no-symbol -- required for testing */
  296. var V8_VERSION$2 = engineV8Version;
  297. var fails$7 = fails$b;
  298. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  299. var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () {
  300. var symbol = Symbol();
  301. // Chrome 38 Symbol has incorrect toString conversion
  302. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  303. return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
  304. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  305. !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
  306. });
  307. /* eslint-disable es/no-symbol -- required for testing */
  308. var NATIVE_SYMBOL$1 = symbolConstructorDetection;
  309. var useSymbolAsUid = NATIVE_SYMBOL$1
  310. && !Symbol.sham
  311. && typeof Symbol.iterator == 'symbol';
  312. var getBuiltIn$2 = getBuiltIn$4;
  313. var isCallable$9 = isCallable$c;
  314. var isPrototypeOf = objectIsPrototypeOf;
  315. var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
  316. var $Object$2 = Object;
  317. var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
  318. return typeof it == 'symbol';
  319. } : function (it) {
  320. var $Symbol = getBuiltIn$2('Symbol');
  321. return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
  322. };
  323. var $String$1 = String;
  324. var tryToString$1 = function (argument) {
  325. try {
  326. return $String$1(argument);
  327. } catch (error) {
  328. return 'Object';
  329. }
  330. };
  331. var isCallable$8 = isCallable$c;
  332. var tryToString = tryToString$1;
  333. var $TypeError$5 = TypeError;
  334. // `Assert: IsCallable(argument) is true`
  335. var aCallable$1 = function (argument) {
  336. if (isCallable$8(argument)) return argument;
  337. throw $TypeError$5(tryToString(argument) + ' is not a function');
  338. };
  339. var aCallable = aCallable$1;
  340. var isNullOrUndefined = isNullOrUndefined$2;
  341. // `GetMethod` abstract operation
  342. // https://tc39.es/ecma262/#sec-getmethod
  343. var getMethod$1 = function (V, P) {
  344. var func = V[P];
  345. return isNullOrUndefined(func) ? undefined : aCallable(func);
  346. };
  347. var call$2 = functionCall;
  348. var isCallable$7 = isCallable$c;
  349. var isObject$6 = isObject$7;
  350. var $TypeError$4 = TypeError;
  351. // `OrdinaryToPrimitive` abstract operation
  352. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  353. var ordinaryToPrimitive$1 = function (input, pref) {
  354. var fn, val;
  355. if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val;
  356. if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$2(fn, input))) return val;
  357. if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val;
  358. throw $TypeError$4("Can't convert object to primitive value");
  359. };
  360. var shared$3 = {exports: {}};
  361. var global$7 = global$a;
  362. // eslint-disable-next-line es/no-object-defineproperty -- safe
  363. var defineProperty$1 = Object.defineProperty;
  364. var defineGlobalProperty$3 = function (key, value) {
  365. try {
  366. defineProperty$1(global$7, key, { value: value, configurable: true, writable: true });
  367. } catch (error) {
  368. global$7[key] = value;
  369. } return value;
  370. };
  371. var global$6 = global$a;
  372. var defineGlobalProperty$2 = defineGlobalProperty$3;
  373. var SHARED = '__core-js_shared__';
  374. var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {});
  375. var sharedStore = store$3;
  376. var store$2 = sharedStore;
  377. (shared$3.exports = function (key, value) {
  378. return store$2[key] || (store$2[key] = value !== undefined ? value : {});
  379. })('versions', []).push({
  380. version: '3.25.5',
  381. mode: 'global',
  382. copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
  383. license: 'https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE',
  384. source: 'https://github.com/zloirock/core-js'
  385. });
  386. var requireObjectCoercible = requireObjectCoercible$2;
  387. var $Object$1 = Object;
  388. // `ToObject` abstract operation
  389. // https://tc39.es/ecma262/#sec-toobject
  390. var toObject$2 = function (argument) {
  391. return $Object$1(requireObjectCoercible(argument));
  392. };
  393. var uncurryThis$5 = functionUncurryThis;
  394. var toObject$1 = toObject$2;
  395. var hasOwnProperty = uncurryThis$5({}.hasOwnProperty);
  396. // `HasOwnProperty` abstract operation
  397. // https://tc39.es/ecma262/#sec-hasownproperty
  398. // eslint-disable-next-line es/no-object-hasown -- safe
  399. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  400. return hasOwnProperty(toObject$1(it), key);
  401. };
  402. var uncurryThis$4 = functionUncurryThis;
  403. var id = 0;
  404. var postfix = Math.random();
  405. var toString = uncurryThis$4(1.0.toString);
  406. var uid$2 = function (key) {
  407. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
  408. };
  409. var global$5 = global$a;
  410. var shared$2 = shared$3.exports;
  411. var hasOwn$6 = hasOwnProperty_1;
  412. var uid$1 = uid$2;
  413. var NATIVE_SYMBOL = symbolConstructorDetection;
  414. var USE_SYMBOL_AS_UID = useSymbolAsUid;
  415. var WellKnownSymbolsStore = shared$2('wks');
  416. var Symbol$1 = global$5.Symbol;
  417. var symbolFor = Symbol$1 && Symbol$1['for'];
  418. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
  419. var wellKnownSymbol$6 = function (name) {
  420. if (!hasOwn$6(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
  421. var description = 'Symbol.' + name;
  422. if (NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)) {
  423. WellKnownSymbolsStore[name] = Symbol$1[name];
  424. } else if (USE_SYMBOL_AS_UID && symbolFor) {
  425. WellKnownSymbolsStore[name] = symbolFor(description);
  426. } else {
  427. WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
  428. }
  429. } return WellKnownSymbolsStore[name];
  430. };
  431. var call$1 = functionCall;
  432. var isObject$5 = isObject$7;
  433. var isSymbol$1 = isSymbol$2;
  434. var getMethod = getMethod$1;
  435. var ordinaryToPrimitive = ordinaryToPrimitive$1;
  436. var wellKnownSymbol$5 = wellKnownSymbol$6;
  437. var $TypeError$3 = TypeError;
  438. var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
  439. // `ToPrimitive` abstract operation
  440. // https://tc39.es/ecma262/#sec-toprimitive
  441. var toPrimitive$1 = function (input, pref) {
  442. if (!isObject$5(input) || isSymbol$1(input)) return input;
  443. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  444. var result;
  445. if (exoticToPrim) {
  446. if (pref === undefined) pref = 'default';
  447. result = call$1(exoticToPrim, input, pref);
  448. if (!isObject$5(result) || isSymbol$1(result)) return result;
  449. throw $TypeError$3("Can't convert object to primitive value");
  450. }
  451. if (pref === undefined) pref = 'number';
  452. return ordinaryToPrimitive(input, pref);
  453. };
  454. var toPrimitive = toPrimitive$1;
  455. var isSymbol = isSymbol$2;
  456. // `ToPropertyKey` abstract operation
  457. // https://tc39.es/ecma262/#sec-topropertykey
  458. var toPropertyKey$3 = function (argument) {
  459. var key = toPrimitive(argument, 'string');
  460. return isSymbol(key) ? key : key + '';
  461. };
  462. var global$4 = global$a;
  463. var isObject$4 = isObject$7;
  464. var document$1 = global$4.document;
  465. // typeof document.createElement is 'object' in old IE
  466. var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
  467. var documentCreateElement = function (it) {
  468. return EXISTS$1 ? document$1.createElement(it) : {};
  469. };
  470. var DESCRIPTORS$6 = descriptors;
  471. var fails$6 = fails$b;
  472. var createElement = documentCreateElement;
  473. // Thanks to IE8 for its funny defineProperty
  474. var ie8DomDefine = !DESCRIPTORS$6 && !fails$6(function () {
  475. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  476. return Object.defineProperty(createElement('div'), 'a', {
  477. get: function () { return 7; }
  478. }).a != 7;
  479. });
  480. var DESCRIPTORS$5 = descriptors;
  481. var call = functionCall;
  482. var propertyIsEnumerableModule = objectPropertyIsEnumerable;
  483. var createPropertyDescriptor$2 = createPropertyDescriptor$3;
  484. var toIndexedObject$2 = toIndexedObject$3;
  485. var toPropertyKey$2 = toPropertyKey$3;
  486. var hasOwn$5 = hasOwnProperty_1;
  487. var IE8_DOM_DEFINE$1 = ie8DomDefine;
  488. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  489. var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  490. // `Object.getOwnPropertyDescriptor` method
  491. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  492. objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
  493. O = toIndexedObject$2(O);
  494. P = toPropertyKey$2(P);
  495. if (IE8_DOM_DEFINE$1) try {
  496. return $getOwnPropertyDescriptor$1(O, P);
  497. } catch (error) { /* empty */ }
  498. if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call(propertyIsEnumerableModule.f, O, P), O[P]);
  499. };
  500. var objectDefineProperty = {};
  501. var DESCRIPTORS$4 = descriptors;
  502. var fails$5 = fails$b;
  503. // V8 ~ Chrome 36-
  504. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  505. var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$5(function () {
  506. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  507. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  508. value: 42,
  509. writable: false
  510. }).prototype != 42;
  511. });
  512. var isObject$3 = isObject$7;
  513. var $String = String;
  514. var $TypeError$2 = TypeError;
  515. // `Assert: Type(argument) is Object`
  516. var anObject$2 = function (argument) {
  517. if (isObject$3(argument)) return argument;
  518. throw $TypeError$2($String(argument) + ' is not an object');
  519. };
  520. var DESCRIPTORS$3 = descriptors;
  521. var IE8_DOM_DEFINE = ie8DomDefine;
  522. var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
  523. var anObject$1 = anObject$2;
  524. var toPropertyKey$1 = toPropertyKey$3;
  525. var $TypeError$1 = TypeError;
  526. // eslint-disable-next-line es/no-object-defineproperty -- safe
  527. var $defineProperty = Object.defineProperty;
  528. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  529. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  530. var ENUMERABLE = 'enumerable';
  531. var CONFIGURABLE$1 = 'configurable';
  532. var WRITABLE = 'writable';
  533. // `Object.defineProperty` method
  534. // https://tc39.es/ecma262/#sec-object.defineproperty
  535. objectDefineProperty.f = DESCRIPTORS$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
  536. anObject$1(O);
  537. P = toPropertyKey$1(P);
  538. anObject$1(Attributes);
  539. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  540. var current = $getOwnPropertyDescriptor(O, P);
  541. if (current && current[WRITABLE]) {
  542. O[P] = Attributes.value;
  543. Attributes = {
  544. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  545. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  546. writable: false
  547. };
  548. }
  549. } return $defineProperty(O, P, Attributes);
  550. } : $defineProperty : function defineProperty(O, P, Attributes) {
  551. anObject$1(O);
  552. P = toPropertyKey$1(P);
  553. anObject$1(Attributes);
  554. if (IE8_DOM_DEFINE) try {
  555. return $defineProperty(O, P, Attributes);
  556. } catch (error) { /* empty */ }
  557. if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported');
  558. if ('value' in Attributes) O[P] = Attributes.value;
  559. return O;
  560. };
  561. var DESCRIPTORS$2 = descriptors;
  562. var definePropertyModule$3 = objectDefineProperty;
  563. var createPropertyDescriptor$1 = createPropertyDescriptor$3;
  564. var createNonEnumerableProperty$2 = DESCRIPTORS$2 ? function (object, key, value) {
  565. return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
  566. } : function (object, key, value) {
  567. object[key] = value;
  568. return object;
  569. };
  570. var makeBuiltIn$2 = {exports: {}};
  571. var DESCRIPTORS$1 = descriptors;
  572. var hasOwn$4 = hasOwnProperty_1;
  573. var FunctionPrototype = Function.prototype;
  574. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  575. var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor;
  576. var EXISTS = hasOwn$4(FunctionPrototype, 'name');
  577. // additional protection from minified / mangled / dropped function names
  578. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  579. var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable));
  580. var functionName = {
  581. EXISTS: EXISTS,
  582. PROPER: PROPER,
  583. CONFIGURABLE: CONFIGURABLE
  584. };
  585. var uncurryThis$3 = functionUncurryThis;
  586. var isCallable$6 = isCallable$c;
  587. var store$1 = sharedStore;
  588. var functionToString = uncurryThis$3(Function.toString);
  589. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  590. if (!isCallable$6(store$1.inspectSource)) {
  591. store$1.inspectSource = function (it) {
  592. return functionToString(it);
  593. };
  594. }
  595. var inspectSource$2 = store$1.inspectSource;
  596. var global$3 = global$a;
  597. var isCallable$5 = isCallable$c;
  598. var WeakMap$1 = global$3.WeakMap;
  599. var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1));
  600. var shared$1 = shared$3.exports;
  601. var uid = uid$2;
  602. var keys = shared$1('keys');
  603. var sharedKey$1 = function (key) {
  604. return keys[key] || (keys[key] = uid(key));
  605. };
  606. var hiddenKeys$3 = {};
  607. var NATIVE_WEAK_MAP = weakMapBasicDetection;
  608. var global$2 = global$a;
  609. var isObject$2 = isObject$7;
  610. var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
  611. var hasOwn$3 = hasOwnProperty_1;
  612. var shared = sharedStore;
  613. var sharedKey = sharedKey$1;
  614. var hiddenKeys$2 = hiddenKeys$3;
  615. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  616. var TypeError$1 = global$2.TypeError;
  617. var WeakMap = global$2.WeakMap;
  618. var set, get, has;
  619. var enforce = function (it) {
  620. return has(it) ? get(it) : set(it, {});
  621. };
  622. var getterFor = function (TYPE) {
  623. return function (it) {
  624. var state;
  625. if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
  626. throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
  627. } return state;
  628. };
  629. };
  630. if (NATIVE_WEAK_MAP || shared.state) {
  631. var store = shared.state || (shared.state = new WeakMap());
  632. /* eslint-disable no-self-assign -- prototype methods protection */
  633. store.get = store.get;
  634. store.has = store.has;
  635. store.set = store.set;
  636. /* eslint-enable no-self-assign -- prototype methods protection */
  637. set = function (it, metadata) {
  638. if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
  639. metadata.facade = it;
  640. store.set(it, metadata);
  641. return metadata;
  642. };
  643. get = function (it) {
  644. return store.get(it) || {};
  645. };
  646. has = function (it) {
  647. return store.has(it);
  648. };
  649. } else {
  650. var STATE = sharedKey('state');
  651. hiddenKeys$2[STATE] = true;
  652. set = function (it, metadata) {
  653. if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
  654. metadata.facade = it;
  655. createNonEnumerableProperty$1(it, STATE, metadata);
  656. return metadata;
  657. };
  658. get = function (it) {
  659. return hasOwn$3(it, STATE) ? it[STATE] : {};
  660. };
  661. has = function (it) {
  662. return hasOwn$3(it, STATE);
  663. };
  664. }
  665. var internalState = {
  666. set: set,
  667. get: get,
  668. has: has,
  669. enforce: enforce,
  670. getterFor: getterFor
  671. };
  672. var fails$4 = fails$b;
  673. var isCallable$4 = isCallable$c;
  674. var hasOwn$2 = hasOwnProperty_1;
  675. var DESCRIPTORS = descriptors;
  676. var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
  677. var inspectSource$1 = inspectSource$2;
  678. var InternalStateModule = internalState;
  679. var enforceInternalState = InternalStateModule.enforce;
  680. var getInternalState = InternalStateModule.get;
  681. // eslint-disable-next-line es/no-object-defineproperty -- safe
  682. var defineProperty = Object.defineProperty;
  683. var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$4(function () {
  684. return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  685. });
  686. var TEMPLATE = String(String).split('String');
  687. var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
  688. if (String(name).slice(0, 7) === 'Symbol(') {
  689. name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
  690. }
  691. if (options && options.getter) name = 'get ' + name;
  692. if (options && options.setter) name = 'set ' + name;
  693. if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  694. if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
  695. else value.name = name;
  696. }
  697. if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
  698. defineProperty(value, 'length', { value: options.arity });
  699. }
  700. try {
  701. if (options && hasOwn$2(options, 'constructor') && options.constructor) {
  702. if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
  703. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  704. } else if (value.prototype) value.prototype = undefined;
  705. } catch (error) { /* empty */ }
  706. var state = enforceInternalState(value);
  707. if (!hasOwn$2(state, 'source')) {
  708. state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
  709. } return value;
  710. };
  711. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  712. // eslint-disable-next-line no-extend-native -- required
  713. Function.prototype.toString = makeBuiltIn$1(function toString() {
  714. return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this);
  715. }, 'toString');
  716. var isCallable$3 = isCallable$c;
  717. var definePropertyModule$2 = objectDefineProperty;
  718. var makeBuiltIn = makeBuiltIn$2.exports;
  719. var defineGlobalProperty$1 = defineGlobalProperty$3;
  720. var defineBuiltIn$1 = function (O, key, value, options) {
  721. if (!options) options = {};
  722. var simple = options.enumerable;
  723. var name = options.name !== undefined ? options.name : key;
  724. if (isCallable$3(value)) makeBuiltIn(value, name, options);
  725. if (options.global) {
  726. if (simple) O[key] = value;
  727. else defineGlobalProperty$1(key, value);
  728. } else {
  729. try {
  730. if (!options.unsafe) delete O[key];
  731. else if (O[key]) simple = true;
  732. } catch (error) { /* empty */ }
  733. if (simple) O[key] = value;
  734. else definePropertyModule$2.f(O, key, {
  735. value: value,
  736. enumerable: false,
  737. configurable: !options.nonConfigurable,
  738. writable: !options.nonWritable
  739. });
  740. } return O;
  741. };
  742. var objectGetOwnPropertyNames = {};
  743. var ceil = Math.ceil;
  744. var floor = Math.floor;
  745. // `Math.trunc` method
  746. // https://tc39.es/ecma262/#sec-math.trunc
  747. // eslint-disable-next-line es/no-math-trunc -- safe
  748. var mathTrunc = Math.trunc || function trunc(x) {
  749. var n = +x;
  750. return (n > 0 ? floor : ceil)(n);
  751. };
  752. var trunc = mathTrunc;
  753. // `ToIntegerOrInfinity` abstract operation
  754. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  755. var toIntegerOrInfinity$2 = function (argument) {
  756. var number = +argument;
  757. // eslint-disable-next-line no-self-compare -- NaN check
  758. return number !== number || number === 0 ? 0 : trunc(number);
  759. };
  760. var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
  761. var max = Math.max;
  762. var min$1 = Math.min;
  763. // Helper for a popular repeating case of the spec:
  764. // Let integer be ? ToInteger(index).
  765. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  766. var toAbsoluteIndex$1 = function (index, length) {
  767. var integer = toIntegerOrInfinity$1(index);
  768. return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
  769. };
  770. var toIntegerOrInfinity = toIntegerOrInfinity$2;
  771. var min = Math.min;
  772. // `ToLength` abstract operation
  773. // https://tc39.es/ecma262/#sec-tolength
  774. var toLength$1 = function (argument) {
  775. return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  776. };
  777. var toLength = toLength$1;
  778. // `LengthOfArrayLike` abstract operation
  779. // https://tc39.es/ecma262/#sec-lengthofarraylike
  780. var lengthOfArrayLike$2 = function (obj) {
  781. return toLength(obj.length);
  782. };
  783. var toIndexedObject$1 = toIndexedObject$3;
  784. var toAbsoluteIndex = toAbsoluteIndex$1;
  785. var lengthOfArrayLike$1 = lengthOfArrayLike$2;
  786. // `Array.prototype.{ indexOf, includes }` methods implementation
  787. var createMethod = function (IS_INCLUDES) {
  788. return function ($this, el, fromIndex) {
  789. var O = toIndexedObject$1($this);
  790. var length = lengthOfArrayLike$1(O);
  791. var index = toAbsoluteIndex(fromIndex, length);
  792. var value;
  793. // Array#includes uses SameValueZero equality algorithm
  794. // eslint-disable-next-line no-self-compare -- NaN check
  795. if (IS_INCLUDES && el != el) while (length > index) {
  796. value = O[index++];
  797. // eslint-disable-next-line no-self-compare -- NaN check
  798. if (value != value) return true;
  799. // Array#indexOf ignores holes, Array#includes - not
  800. } else for (;length > index; index++) {
  801. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  802. } return !IS_INCLUDES && -1;
  803. };
  804. };
  805. var arrayIncludes = {
  806. // `Array.prototype.includes` method
  807. // https://tc39.es/ecma262/#sec-array.prototype.includes
  808. includes: createMethod(true),
  809. // `Array.prototype.indexOf` method
  810. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  811. indexOf: createMethod(false)
  812. };
  813. var uncurryThis$2 = functionUncurryThis;
  814. var hasOwn$1 = hasOwnProperty_1;
  815. var toIndexedObject = toIndexedObject$3;
  816. var indexOf = arrayIncludes.indexOf;
  817. var hiddenKeys$1 = hiddenKeys$3;
  818. var push = uncurryThis$2([].push);
  819. var objectKeysInternal = function (object, names) {
  820. var O = toIndexedObject(object);
  821. var i = 0;
  822. var result = [];
  823. var key;
  824. for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key);
  825. // Don't enum bug & hidden keys
  826. while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
  827. ~indexOf(result, key) || push(result, key);
  828. }
  829. return result;
  830. };
  831. // IE8- don't enum bug keys
  832. var enumBugKeys$1 = [
  833. 'constructor',
  834. 'hasOwnProperty',
  835. 'isPrototypeOf',
  836. 'propertyIsEnumerable',
  837. 'toLocaleString',
  838. 'toString',
  839. 'valueOf'
  840. ];
  841. var internalObjectKeys = objectKeysInternal;
  842. var enumBugKeys = enumBugKeys$1;
  843. var hiddenKeys = enumBugKeys.concat('length', 'prototype');
  844. // `Object.getOwnPropertyNames` method
  845. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  846. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  847. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  848. return internalObjectKeys(O, hiddenKeys);
  849. };
  850. var objectGetOwnPropertySymbols = {};
  851. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  852. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  853. var getBuiltIn$1 = getBuiltIn$4;
  854. var uncurryThis$1 = functionUncurryThis;
  855. var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
  856. var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
  857. var anObject = anObject$2;
  858. var concat = uncurryThis$1([].concat);
  859. // all object keys, includes non-enumerable and symbols
  860. var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
  861. var keys = getOwnPropertyNamesModule.f(anObject(it));
  862. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  863. return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
  864. };
  865. var hasOwn = hasOwnProperty_1;
  866. var ownKeys = ownKeys$1;
  867. var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
  868. var definePropertyModule$1 = objectDefineProperty;
  869. var copyConstructorProperties$1 = function (target, source, exceptions) {
  870. var keys = ownKeys(source);
  871. var defineProperty = definePropertyModule$1.f;
  872. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  873. for (var i = 0; i < keys.length; i++) {
  874. var key = keys[i];
  875. if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
  876. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  877. }
  878. }
  879. };
  880. var fails$3 = fails$b;
  881. var isCallable$2 = isCallable$c;
  882. var replacement = /#|\.prototype\./;
  883. var isForced$1 = function (feature, detection) {
  884. var value = data[normalize(feature)];
  885. return value == POLYFILL ? true
  886. : value == NATIVE ? false
  887. : isCallable$2(detection) ? fails$3(detection)
  888. : !!detection;
  889. };
  890. var normalize = isForced$1.normalize = function (string) {
  891. return String(string).replace(replacement, '.').toLowerCase();
  892. };
  893. var data = isForced$1.data = {};
  894. var NATIVE = isForced$1.NATIVE = 'N';
  895. var POLYFILL = isForced$1.POLYFILL = 'P';
  896. var isForced_1 = isForced$1;
  897. var global$1 = global$a;
  898. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  899. var createNonEnumerableProperty = createNonEnumerableProperty$2;
  900. var defineBuiltIn = defineBuiltIn$1;
  901. var defineGlobalProperty = defineGlobalProperty$3;
  902. var copyConstructorProperties = copyConstructorProperties$1;
  903. var isForced = isForced_1;
  904. /*
  905. options.target - name of the target object
  906. options.global - target is the global object
  907. options.stat - export as static methods of target
  908. options.proto - export as prototype methods of target
  909. options.real - real prototype method for the `pure` version
  910. options.forced - export even if the native feature is available
  911. options.bind - bind methods to the target, required for the `pure` version
  912. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  913. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  914. options.sham - add a flag to not completely full polyfills
  915. options.enumerable - export as enumerable property
  916. options.dontCallGetSet - prevent calling a getter on target
  917. options.name - the .name of the function if it does not match the key
  918. */
  919. var _export = function (options, source) {
  920. var TARGET = options.target;
  921. var GLOBAL = options.global;
  922. var STATIC = options.stat;
  923. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  924. if (GLOBAL) {
  925. target = global$1;
  926. } else if (STATIC) {
  927. target = global$1[TARGET] || defineGlobalProperty(TARGET, {});
  928. } else {
  929. target = (global$1[TARGET] || {}).prototype;
  930. }
  931. if (target) for (key in source) {
  932. sourceProperty = source[key];
  933. if (options.dontCallGetSet) {
  934. descriptor = getOwnPropertyDescriptor(target, key);
  935. targetProperty = descriptor && descriptor.value;
  936. } else targetProperty = target[key];
  937. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  938. // contained in target
  939. if (!FORCED && targetProperty !== undefined) {
  940. if (typeof sourceProperty == typeof targetProperty) continue;
  941. copyConstructorProperties(sourceProperty, targetProperty);
  942. }
  943. // add a flag to not completely full polyfills
  944. if (options.sham || (targetProperty && targetProperty.sham)) {
  945. createNonEnumerableProperty(sourceProperty, 'sham', true);
  946. }
  947. defineBuiltIn(target, key, sourceProperty, options);
  948. }
  949. };
  950. var classof$2 = classofRaw$2;
  951. // `IsArray` abstract operation
  952. // https://tc39.es/ecma262/#sec-isarray
  953. // eslint-disable-next-line es/no-array-isarray -- safe
  954. var isArray$2 = Array.isArray || function isArray(argument) {
  955. return classof$2(argument) == 'Array';
  956. };
  957. var $TypeError = TypeError;
  958. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
  959. var doesNotExceedSafeInteger$1 = function (it) {
  960. if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
  961. return it;
  962. };
  963. var toPropertyKey = toPropertyKey$3;
  964. var definePropertyModule = objectDefineProperty;
  965. var createPropertyDescriptor = createPropertyDescriptor$3;
  966. var createProperty$1 = function (object, key, value) {
  967. var propertyKey = toPropertyKey(key);
  968. if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
  969. else object[propertyKey] = value;
  970. };
  971. var wellKnownSymbol$4 = wellKnownSymbol$6;
  972. var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag');
  973. var test = {};
  974. test[TO_STRING_TAG$1] = 'z';
  975. var toStringTagSupport = String(test) === '[object z]';
  976. var TO_STRING_TAG_SUPPORT = toStringTagSupport;
  977. var isCallable$1 = isCallable$c;
  978. var classofRaw = classofRaw$2;
  979. var wellKnownSymbol$3 = wellKnownSymbol$6;
  980. var TO_STRING_TAG = wellKnownSymbol$3('toStringTag');
  981. var $Object = Object;
  982. // ES3 wrong here
  983. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
  984. // fallback for IE11 Script Access Denied error
  985. var tryGet = function (it, key) {
  986. try {
  987. return it[key];
  988. } catch (error) { /* empty */ }
  989. };
  990. // getting tag from ES6+ `Object.prototype.toString`
  991. var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
  992. var O, tag, result;
  993. return it === undefined ? 'Undefined' : it === null ? 'Null'
  994. // @@toStringTag case
  995. : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
  996. // builtinTag case
  997. : CORRECT_ARGUMENTS ? classofRaw(O)
  998. // ES3 arguments fallback
  999. : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
  1000. };
  1001. var uncurryThis = functionUncurryThis;
  1002. var fails$2 = fails$b;
  1003. var isCallable = isCallable$c;
  1004. var classof = classof$1;
  1005. var getBuiltIn = getBuiltIn$4;
  1006. var inspectSource = inspectSource$2;
  1007. var noop = function () { /* empty */ };
  1008. var empty = [];
  1009. var construct = getBuiltIn('Reflect', 'construct');
  1010. var constructorRegExp = /^\s*(?:class|function)\b/;
  1011. var exec = uncurryThis(constructorRegExp.exec);
  1012. var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
  1013. var isConstructorModern = function isConstructor(argument) {
  1014. if (!isCallable(argument)) return false;
  1015. try {
  1016. construct(noop, empty, argument);
  1017. return true;
  1018. } catch (error) {
  1019. return false;
  1020. }
  1021. };
  1022. var isConstructorLegacy = function isConstructor(argument) {
  1023. if (!isCallable(argument)) return false;
  1024. switch (classof(argument)) {
  1025. case 'AsyncFunction':
  1026. case 'GeneratorFunction':
  1027. case 'AsyncGeneratorFunction': return false;
  1028. }
  1029. try {
  1030. // we can't check .prototype since constructors produced by .bind haven't it
  1031. // `Function#toString` throws on some built-it function in some legacy engines
  1032. // (for example, `DOMQuad` and similar in FF41-)
  1033. return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
  1034. } catch (error) {
  1035. return true;
  1036. }
  1037. };
  1038. isConstructorLegacy.sham = true;
  1039. // `IsConstructor` abstract operation
  1040. // https://tc39.es/ecma262/#sec-isconstructor
  1041. var isConstructor$1 = !construct || fails$2(function () {
  1042. var called;
  1043. return isConstructorModern(isConstructorModern.call)
  1044. || !isConstructorModern(Object)
  1045. || !isConstructorModern(function () { called = true; })
  1046. || called;
  1047. }) ? isConstructorLegacy : isConstructorModern;
  1048. var isArray$1 = isArray$2;
  1049. var isConstructor = isConstructor$1;
  1050. var isObject$1 = isObject$7;
  1051. var wellKnownSymbol$2 = wellKnownSymbol$6;
  1052. var SPECIES$1 = wellKnownSymbol$2('species');
  1053. var $Array = Array;
  1054. // a part of `ArraySpeciesCreate` abstract operation
  1055. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1056. var arraySpeciesConstructor$1 = function (originalArray) {
  1057. var C;
  1058. if (isArray$1(originalArray)) {
  1059. C = originalArray.constructor;
  1060. // cross-realm fallback
  1061. if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined;
  1062. else if (isObject$1(C)) {
  1063. C = C[SPECIES$1];
  1064. if (C === null) C = undefined;
  1065. }
  1066. } return C === undefined ? $Array : C;
  1067. };
  1068. var arraySpeciesConstructor = arraySpeciesConstructor$1;
  1069. // `ArraySpeciesCreate` abstract operation
  1070. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1071. var arraySpeciesCreate$1 = function (originalArray, length) {
  1072. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1073. };
  1074. var fails$1 = fails$b;
  1075. var wellKnownSymbol$1 = wellKnownSymbol$6;
  1076. var V8_VERSION$1 = engineV8Version;
  1077. var SPECIES = wellKnownSymbol$1('species');
  1078. var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) {
  1079. // We can't use this feature detection in V8 since it causes
  1080. // deoptimization and serious performance degradation
  1081. // https://github.com/zloirock/core-js/issues/677
  1082. return V8_VERSION$1 >= 51 || !fails$1(function () {
  1083. var array = [];
  1084. var constructor = array.constructor = {};
  1085. constructor[SPECIES] = function () {
  1086. return { foo: 1 };
  1087. };
  1088. return array[METHOD_NAME](Boolean).foo !== 1;
  1089. });
  1090. };
  1091. var $ = _export;
  1092. var fails = fails$b;
  1093. var isArray = isArray$2;
  1094. var isObject = isObject$7;
  1095. var toObject = toObject$2;
  1096. var lengthOfArrayLike = lengthOfArrayLike$2;
  1097. var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
  1098. var createProperty = createProperty$1;
  1099. var arraySpeciesCreate = arraySpeciesCreate$1;
  1100. var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
  1101. var wellKnownSymbol = wellKnownSymbol$6;
  1102. var V8_VERSION = engineV8Version;
  1103. var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
  1104. // We can't use this feature detection in V8 since it causes
  1105. // deoptimization and serious performance degradation
  1106. // https://github.com/zloirock/core-js/issues/679
  1107. var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
  1108. var array = [];
  1109. array[IS_CONCAT_SPREADABLE] = false;
  1110. return array.concat()[0] !== array;
  1111. });
  1112. var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
  1113. var isConcatSpreadable = function (O) {
  1114. if (!isObject(O)) return false;
  1115. var spreadable = O[IS_CONCAT_SPREADABLE];
  1116. return spreadable !== undefined ? !!spreadable : isArray(O);
  1117. };
  1118. var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
  1119. // `Array.prototype.concat` method
  1120. // https://tc39.es/ecma262/#sec-array.prototype.concat
  1121. // with adding support of @@isConcatSpreadable and @@species
  1122. $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
  1123. // eslint-disable-next-line no-unused-vars -- required for `.length`
  1124. concat: function concat(arg) {
  1125. var O = toObject(this);
  1126. var A = arraySpeciesCreate(O, 0);
  1127. var n = 0;
  1128. var i, k, length, len, E;
  1129. for (i = -1, length = arguments.length; i < length; i++) {
  1130. E = i === -1 ? O : arguments[i];
  1131. if (isConcatSpreadable(E)) {
  1132. len = lengthOfArrayLike(E);
  1133. doesNotExceedSafeInteger(n + len);
  1134. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  1135. } else {
  1136. doesNotExceedSafeInteger(n + 1);
  1137. createProperty(A, n++, E);
  1138. }
  1139. }
  1140. A.length = n;
  1141. return A;
  1142. }
  1143. });
  1144. /**
  1145. * @author: Dennis Hernández
  1146. * @version: v2.0.0
  1147. */
  1148. var isInit = function isInit(that) {
  1149. return that.$el.data('resizableColumns') !== undefined;
  1150. };
  1151. var initResizable = function initResizable(that) {
  1152. if (that.options.resizable && !that.options.cardView && !isInit(that) && that.$el.is(':visible')) {
  1153. that.$el.resizableColumns({
  1154. store: window.store
  1155. });
  1156. }
  1157. };
  1158. var destroy = function destroy(that) {
  1159. if (isInit(that)) {
  1160. that.$el.data('resizableColumns').destroy();
  1161. }
  1162. };
  1163. var reInitResizable = function reInitResizable(that) {
  1164. destroy(that);
  1165. initResizable(that);
  1166. };
  1167. $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
  1168. resizable: false
  1169. });
  1170. $__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  1171. _inherits(_class, _$$BootstrapTable);
  1172. var _super = _createSuper(_class);
  1173. function _class() {
  1174. _classCallCheck(this, _class);
  1175. return _super.apply(this, arguments);
  1176. }
  1177. _createClass(_class, [{
  1178. key: "initBody",
  1179. value: function initBody() {
  1180. var _get2,
  1181. _this = this;
  1182. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  1183. args[_key] = arguments[_key];
  1184. }
  1185. (_get2 = _get(_getPrototypeOf(_class.prototype), "initBody", this)).call.apply(_get2, [this].concat(args));
  1186. this.$el.off('column-switch.bs.table page-change.bs.table').on('column-switch.bs.table page-change.bs.table', function () {
  1187. reInitResizable(_this);
  1188. });
  1189. reInitResizable(this);
  1190. }
  1191. }, {
  1192. key: "toggleView",
  1193. value: function toggleView() {
  1194. var _get3;
  1195. for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  1196. args[_key2] = arguments[_key2];
  1197. }
  1198. (_get3 = _get(_getPrototypeOf(_class.prototype), "toggleView", this)).call.apply(_get3, [this].concat(args));
  1199. if (this.options.resizable && this.options.cardView) {
  1200. // Destroy the plugin
  1201. destroy(this);
  1202. }
  1203. }
  1204. }, {
  1205. key: "resetView",
  1206. value: function resetView() {
  1207. var _get4,
  1208. _this2 = this;
  1209. for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  1210. args[_key3] = arguments[_key3];
  1211. }
  1212. (_get4 = _get(_getPrototypeOf(_class.prototype), "resetView", this)).call.apply(_get4, [this].concat(args));
  1213. if (this.options.resizable) {
  1214. // because in fitHeader function, we use setTimeout(func, 100);
  1215. setTimeout(function () {
  1216. initResizable(_this2);
  1217. }, 100);
  1218. }
  1219. }
  1220. }]);
  1221. return _class;
  1222. }($__default["default"].BootstrapTable);
  1223. }));