bootstrap-table-fixed-columns.js 74 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215
  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 ($$5) { 'use strict';
  6. function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
  7. var $__default = /*#__PURE__*/_interopDefaultLegacy($$5);
  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. 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$q =
  127. // eslint-disable-next-line es-x/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$d = function (exec) {
  137. try {
  138. return !!exec();
  139. } catch (error) {
  140. return true;
  141. }
  142. };
  143. var fails$c = fails$d;
  144. // Detect IE8's incomplete defineProperty implementation
  145. var descriptors = !fails$c(function () {
  146. // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
  147. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
  148. });
  149. var fails$b = fails$d;
  150. var functionBindNative = !fails$b(function () {
  151. // eslint-disable-next-line es-x/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$2 = functionBindNative;
  157. var call$4 = Function.prototype.call;
  158. var functionCall = NATIVE_BIND$2 ? 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-x/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$1 = functionBindNative;
  182. var FunctionPrototype$1 = Function.prototype;
  183. var bind$2 = FunctionPrototype$1.bind;
  184. var call$3 = FunctionPrototype$1.call;
  185. var uncurryThis$g = NATIVE_BIND$1 && bind$2.bind(call$3, call$3);
  186. var functionUncurryThis = NATIVE_BIND$1 ? function (fn) {
  187. return fn && uncurryThis$g(fn);
  188. } : function (fn) {
  189. return fn && function () {
  190. return call$3.apply(fn, arguments);
  191. };
  192. };
  193. var uncurryThis$f = functionUncurryThis;
  194. var toString$5 = uncurryThis$f({}.toString);
  195. var stringSlice = uncurryThis$f(''.slice);
  196. var classofRaw$1 = function (it) {
  197. return stringSlice(toString$5(it), 8, -1);
  198. };
  199. var global$p = global$q;
  200. var uncurryThis$e = functionUncurryThis;
  201. var fails$a = fails$d;
  202. var classof$5 = classofRaw$1;
  203. var Object$4 = global$p.Object;
  204. var split = uncurryThis$e(''.split);
  205. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  206. var indexedObject = fails$a(function () {
  207. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  208. // eslint-disable-next-line no-prototype-builtins -- safe
  209. return !Object$4('z').propertyIsEnumerable(0);
  210. }) ? function (it) {
  211. return classof$5(it) == 'String' ? split(it, '') : Object$4(it);
  212. } : Object$4;
  213. var global$o = global$q;
  214. var TypeError$8 = global$o.TypeError;
  215. // `RequireObjectCoercible` abstract operation
  216. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  217. var requireObjectCoercible$3 = function (it) {
  218. if (it == undefined) throw TypeError$8("Can't call method on " + it);
  219. return it;
  220. };
  221. // toObject with fallback for non-array-like ES3 strings
  222. var IndexedObject$1 = indexedObject;
  223. var requireObjectCoercible$2 = requireObjectCoercible$3;
  224. var toIndexedObject$4 = function (it) {
  225. return IndexedObject$1(requireObjectCoercible$2(it));
  226. };
  227. // `IsCallable` abstract operation
  228. // https://tc39.es/ecma262/#sec-iscallable
  229. var isCallable$c = function (argument) {
  230. return typeof argument == 'function';
  231. };
  232. var isCallable$b = isCallable$c;
  233. var isObject$7 = function (it) {
  234. return typeof it == 'object' ? it !== null : isCallable$b(it);
  235. };
  236. var global$n = global$q;
  237. var isCallable$a = isCallable$c;
  238. var aFunction = function (argument) {
  239. return isCallable$a(argument) ? argument : undefined;
  240. };
  241. var getBuiltIn$5 = function (namespace, method) {
  242. return arguments.length < 2 ? aFunction(global$n[namespace]) : global$n[namespace] && global$n[namespace][method];
  243. };
  244. var uncurryThis$d = functionUncurryThis;
  245. var objectIsPrototypeOf = uncurryThis$d({}.isPrototypeOf);
  246. var getBuiltIn$4 = getBuiltIn$5;
  247. var engineUserAgent = getBuiltIn$4('navigator', 'userAgent') || '';
  248. var global$m = global$q;
  249. var userAgent = engineUserAgent;
  250. var process = global$m.process;
  251. var Deno = global$m.Deno;
  252. var versions = process && process.versions || Deno && Deno.version;
  253. var v8 = versions && versions.v8;
  254. var match, version;
  255. if (v8) {
  256. match = v8.split('.');
  257. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  258. // but their correct versions are not interesting for us
  259. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  260. }
  261. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  262. // so check `userAgent` even if `.v8` exists, but 0
  263. if (!version && userAgent) {
  264. match = userAgent.match(/Edge\/(\d+)/);
  265. if (!match || match[1] >= 74) {
  266. match = userAgent.match(/Chrome\/(\d+)/);
  267. if (match) version = +match[1];
  268. }
  269. }
  270. var engineV8Version = version;
  271. /* eslint-disable es-x/no-symbol -- required for testing */
  272. var V8_VERSION$2 = engineV8Version;
  273. var fails$9 = fails$d;
  274. // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
  275. var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$9(function () {
  276. var symbol = Symbol();
  277. // Chrome 38 Symbol has incorrect toString conversion
  278. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  279. return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
  280. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  281. !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
  282. });
  283. /* eslint-disable es-x/no-symbol -- required for testing */
  284. var NATIVE_SYMBOL$1 = nativeSymbol;
  285. var useSymbolAsUid = NATIVE_SYMBOL$1
  286. && !Symbol.sham
  287. && typeof Symbol.iterator == 'symbol';
  288. var global$l = global$q;
  289. var getBuiltIn$3 = getBuiltIn$5;
  290. var isCallable$9 = isCallable$c;
  291. var isPrototypeOf = objectIsPrototypeOf;
  292. var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
  293. var Object$3 = global$l.Object;
  294. var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
  295. return typeof it == 'symbol';
  296. } : function (it) {
  297. var $Symbol = getBuiltIn$3('Symbol');
  298. return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, Object$3(it));
  299. };
  300. var global$k = global$q;
  301. var String$3 = global$k.String;
  302. var tryToString$1 = function (argument) {
  303. try {
  304. return String$3(argument);
  305. } catch (error) {
  306. return 'Object';
  307. }
  308. };
  309. var global$j = global$q;
  310. var isCallable$8 = isCallable$c;
  311. var tryToString = tryToString$1;
  312. var TypeError$7 = global$j.TypeError;
  313. // `Assert: IsCallable(argument) is true`
  314. var aCallable$2 = function (argument) {
  315. if (isCallable$8(argument)) return argument;
  316. throw TypeError$7(tryToString(argument) + ' is not a function');
  317. };
  318. var aCallable$1 = aCallable$2;
  319. // `GetMethod` abstract operation
  320. // https://tc39.es/ecma262/#sec-getmethod
  321. var getMethod$1 = function (V, P) {
  322. var func = V[P];
  323. return func == null ? undefined : aCallable$1(func);
  324. };
  325. var global$i = global$q;
  326. var call$2 = functionCall;
  327. var isCallable$7 = isCallable$c;
  328. var isObject$6 = isObject$7;
  329. var TypeError$6 = global$i.TypeError;
  330. // `OrdinaryToPrimitive` abstract operation
  331. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  332. var ordinaryToPrimitive$1 = function (input, pref) {
  333. var fn, val;
  334. if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val;
  335. if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$2(fn, input))) return val;
  336. if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val;
  337. throw TypeError$6("Can't convert object to primitive value");
  338. };
  339. var shared$3 = {exports: {}};
  340. var global$h = global$q;
  341. // eslint-disable-next-line es-x/no-object-defineproperty -- safe
  342. var defineProperty$1 = Object.defineProperty;
  343. var setGlobal$3 = function (key, value) {
  344. try {
  345. defineProperty$1(global$h, key, { value: value, configurable: true, writable: true });
  346. } catch (error) {
  347. global$h[key] = value;
  348. } return value;
  349. };
  350. var global$g = global$q;
  351. var setGlobal$2 = setGlobal$3;
  352. var SHARED = '__core-js_shared__';
  353. var store$3 = global$g[SHARED] || setGlobal$2(SHARED, {});
  354. var sharedStore = store$3;
  355. var store$2 = sharedStore;
  356. (shared$3.exports = function (key, value) {
  357. return store$2[key] || (store$2[key] = value !== undefined ? value : {});
  358. })('versions', []).push({
  359. version: '3.22.5',
  360. mode: 'global',
  361. copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
  362. license: 'https://github.com/zloirock/core-js/blob/v3.22.5/LICENSE',
  363. source: 'https://github.com/zloirock/core-js'
  364. });
  365. var global$f = global$q;
  366. var requireObjectCoercible$1 = requireObjectCoercible$3;
  367. var Object$2 = global$f.Object;
  368. // `ToObject` abstract operation
  369. // https://tc39.es/ecma262/#sec-toobject
  370. var toObject$3 = function (argument) {
  371. return Object$2(requireObjectCoercible$1(argument));
  372. };
  373. var uncurryThis$c = functionUncurryThis;
  374. var toObject$2 = toObject$3;
  375. var hasOwnProperty = uncurryThis$c({}.hasOwnProperty);
  376. // `HasOwnProperty` abstract operation
  377. // https://tc39.es/ecma262/#sec-hasownproperty
  378. // eslint-disable-next-line es-x/no-object-hasown -- safe
  379. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  380. return hasOwnProperty(toObject$2(it), key);
  381. };
  382. var uncurryThis$b = functionUncurryThis;
  383. var id = 0;
  384. var postfix = Math.random();
  385. var toString$4 = uncurryThis$b(1.0.toString);
  386. var uid$2 = function (key) {
  387. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
  388. };
  389. var global$e = global$q;
  390. var shared$2 = shared$3.exports;
  391. var hasOwn$6 = hasOwnProperty_1;
  392. var uid$1 = uid$2;
  393. var NATIVE_SYMBOL = nativeSymbol;
  394. var USE_SYMBOL_AS_UID = useSymbolAsUid;
  395. var WellKnownSymbolsStore = shared$2('wks');
  396. var Symbol$2 = global$e.Symbol;
  397. var symbolFor = Symbol$2 && Symbol$2['for'];
  398. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
  399. var wellKnownSymbol$7 = function (name) {
  400. if (!hasOwn$6(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
  401. var description = 'Symbol.' + name;
  402. if (NATIVE_SYMBOL && hasOwn$6(Symbol$2, name)) {
  403. WellKnownSymbolsStore[name] = Symbol$2[name];
  404. } else if (USE_SYMBOL_AS_UID && symbolFor) {
  405. WellKnownSymbolsStore[name] = symbolFor(description);
  406. } else {
  407. WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
  408. }
  409. } return WellKnownSymbolsStore[name];
  410. };
  411. var global$d = global$q;
  412. var call$1 = functionCall;
  413. var isObject$5 = isObject$7;
  414. var isSymbol$1 = isSymbol$2;
  415. var getMethod = getMethod$1;
  416. var ordinaryToPrimitive = ordinaryToPrimitive$1;
  417. var wellKnownSymbol$6 = wellKnownSymbol$7;
  418. var TypeError$5 = global$d.TypeError;
  419. var TO_PRIMITIVE = wellKnownSymbol$6('toPrimitive');
  420. // `ToPrimitive` abstract operation
  421. // https://tc39.es/ecma262/#sec-toprimitive
  422. var toPrimitive$1 = function (input, pref) {
  423. if (!isObject$5(input) || isSymbol$1(input)) return input;
  424. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  425. var result;
  426. if (exoticToPrim) {
  427. if (pref === undefined) pref = 'default';
  428. result = call$1(exoticToPrim, input, pref);
  429. if (!isObject$5(result) || isSymbol$1(result)) return result;
  430. throw TypeError$5("Can't convert object to primitive value");
  431. }
  432. if (pref === undefined) pref = 'number';
  433. return ordinaryToPrimitive(input, pref);
  434. };
  435. var toPrimitive = toPrimitive$1;
  436. var isSymbol = isSymbol$2;
  437. // `ToPropertyKey` abstract operation
  438. // https://tc39.es/ecma262/#sec-topropertykey
  439. var toPropertyKey$3 = function (argument) {
  440. var key = toPrimitive(argument, 'string');
  441. return isSymbol(key) ? key : key + '';
  442. };
  443. var global$c = global$q;
  444. var isObject$4 = isObject$7;
  445. var document$1 = global$c.document;
  446. // typeof document.createElement is 'object' in old IE
  447. var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
  448. var documentCreateElement$1 = function (it) {
  449. return EXISTS$1 ? document$1.createElement(it) : {};
  450. };
  451. var DESCRIPTORS$7 = descriptors;
  452. var fails$8 = fails$d;
  453. var createElement = documentCreateElement$1;
  454. // Thanks to IE8 for its funny defineProperty
  455. var ie8DomDefine = !DESCRIPTORS$7 && !fails$8(function () {
  456. // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
  457. return Object.defineProperty(createElement('div'), 'a', {
  458. get: function () { return 7; }
  459. }).a != 7;
  460. });
  461. var DESCRIPTORS$6 = descriptors;
  462. var call = functionCall;
  463. var propertyIsEnumerableModule = objectPropertyIsEnumerable;
  464. var createPropertyDescriptor$2 = createPropertyDescriptor$3;
  465. var toIndexedObject$3 = toIndexedObject$4;
  466. var toPropertyKey$2 = toPropertyKey$3;
  467. var hasOwn$5 = hasOwnProperty_1;
  468. var IE8_DOM_DEFINE$1 = ie8DomDefine;
  469. // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
  470. var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  471. // `Object.getOwnPropertyDescriptor` method
  472. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  473. objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
  474. O = toIndexedObject$3(O);
  475. P = toPropertyKey$2(P);
  476. if (IE8_DOM_DEFINE$1) try {
  477. return $getOwnPropertyDescriptor$1(O, P);
  478. } catch (error) { /* empty */ }
  479. if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call(propertyIsEnumerableModule.f, O, P), O[P]);
  480. };
  481. var objectDefineProperty = {};
  482. var DESCRIPTORS$5 = descriptors;
  483. var fails$7 = fails$d;
  484. // V8 ~ Chrome 36-
  485. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  486. var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$7(function () {
  487. // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
  488. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  489. value: 42,
  490. writable: false
  491. }).prototype != 42;
  492. });
  493. var global$b = global$q;
  494. var isObject$3 = isObject$7;
  495. var String$2 = global$b.String;
  496. var TypeError$4 = global$b.TypeError;
  497. // `Assert: Type(argument) is Object`
  498. var anObject$4 = function (argument) {
  499. if (isObject$3(argument)) return argument;
  500. throw TypeError$4(String$2(argument) + ' is not an object');
  501. };
  502. var global$a = global$q;
  503. var DESCRIPTORS$4 = descriptors;
  504. var IE8_DOM_DEFINE = ie8DomDefine;
  505. var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
  506. var anObject$3 = anObject$4;
  507. var toPropertyKey$1 = toPropertyKey$3;
  508. var TypeError$3 = global$a.TypeError;
  509. // eslint-disable-next-line es-x/no-object-defineproperty -- safe
  510. var $defineProperty = Object.defineProperty;
  511. // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
  512. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  513. var ENUMERABLE = 'enumerable';
  514. var CONFIGURABLE$1 = 'configurable';
  515. var WRITABLE = 'writable';
  516. // `Object.defineProperty` method
  517. // https://tc39.es/ecma262/#sec-object.defineproperty
  518. objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
  519. anObject$3(O);
  520. P = toPropertyKey$1(P);
  521. anObject$3(Attributes);
  522. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  523. var current = $getOwnPropertyDescriptor(O, P);
  524. if (current && current[WRITABLE]) {
  525. O[P] = Attributes.value;
  526. Attributes = {
  527. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  528. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  529. writable: false
  530. };
  531. }
  532. } return $defineProperty(O, P, Attributes);
  533. } : $defineProperty : function defineProperty(O, P, Attributes) {
  534. anObject$3(O);
  535. P = toPropertyKey$1(P);
  536. anObject$3(Attributes);
  537. if (IE8_DOM_DEFINE) try {
  538. return $defineProperty(O, P, Attributes);
  539. } catch (error) { /* empty */ }
  540. if ('get' in Attributes || 'set' in Attributes) throw TypeError$3('Accessors not supported');
  541. if ('value' in Attributes) O[P] = Attributes.value;
  542. return O;
  543. };
  544. var DESCRIPTORS$3 = descriptors;
  545. var definePropertyModule$4 = objectDefineProperty;
  546. var createPropertyDescriptor$1 = createPropertyDescriptor$3;
  547. var createNonEnumerableProperty$3 = DESCRIPTORS$3 ? function (object, key, value) {
  548. return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
  549. } : function (object, key, value) {
  550. object[key] = value;
  551. return object;
  552. };
  553. var makeBuiltIn$2 = {exports: {}};
  554. var DESCRIPTORS$2 = descriptors;
  555. var hasOwn$4 = hasOwnProperty_1;
  556. var FunctionPrototype = Function.prototype;
  557. // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
  558. var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
  559. var EXISTS = hasOwn$4(FunctionPrototype, 'name');
  560. // additional protection from minified / mangled / dropped function names
  561. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  562. var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype, 'name').configurable));
  563. var functionName = {
  564. EXISTS: EXISTS,
  565. PROPER: PROPER,
  566. CONFIGURABLE: CONFIGURABLE
  567. };
  568. var uncurryThis$a = functionUncurryThis;
  569. var isCallable$6 = isCallable$c;
  570. var store$1 = sharedStore;
  571. var functionToString = uncurryThis$a(Function.toString);
  572. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  573. if (!isCallable$6(store$1.inspectSource)) {
  574. store$1.inspectSource = function (it) {
  575. return functionToString(it);
  576. };
  577. }
  578. var inspectSource$3 = store$1.inspectSource;
  579. var global$9 = global$q;
  580. var isCallable$5 = isCallable$c;
  581. var inspectSource$2 = inspectSource$3;
  582. var WeakMap$1 = global$9.WeakMap;
  583. var nativeWeakMap = isCallable$5(WeakMap$1) && /native code/.test(inspectSource$2(WeakMap$1));
  584. var shared$1 = shared$3.exports;
  585. var uid = uid$2;
  586. var keys = shared$1('keys');
  587. var sharedKey$2 = function (key) {
  588. return keys[key] || (keys[key] = uid(key));
  589. };
  590. var hiddenKeys$4 = {};
  591. var NATIVE_WEAK_MAP = nativeWeakMap;
  592. var global$8 = global$q;
  593. var uncurryThis$9 = functionUncurryThis;
  594. var isObject$2 = isObject$7;
  595. var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
  596. var hasOwn$3 = hasOwnProperty_1;
  597. var shared = sharedStore;
  598. var sharedKey$1 = sharedKey$2;
  599. var hiddenKeys$3 = hiddenKeys$4;
  600. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  601. var TypeError$2 = global$8.TypeError;
  602. var WeakMap = global$8.WeakMap;
  603. var set, get, has;
  604. var enforce = function (it) {
  605. return has(it) ? get(it) : set(it, {});
  606. };
  607. var getterFor = function (TYPE) {
  608. return function (it) {
  609. var state;
  610. if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
  611. throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
  612. } return state;
  613. };
  614. };
  615. if (NATIVE_WEAK_MAP || shared.state) {
  616. var store = shared.state || (shared.state = new WeakMap());
  617. var wmget = uncurryThis$9(store.get);
  618. var wmhas = uncurryThis$9(store.has);
  619. var wmset = uncurryThis$9(store.set);
  620. set = function (it, metadata) {
  621. if (wmhas(store, it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
  622. metadata.facade = it;
  623. wmset(store, it, metadata);
  624. return metadata;
  625. };
  626. get = function (it) {
  627. return wmget(store, it) || {};
  628. };
  629. has = function (it) {
  630. return wmhas(store, it);
  631. };
  632. } else {
  633. var STATE = sharedKey$1('state');
  634. hiddenKeys$3[STATE] = true;
  635. set = function (it, metadata) {
  636. if (hasOwn$3(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
  637. metadata.facade = it;
  638. createNonEnumerableProperty$2(it, STATE, metadata);
  639. return metadata;
  640. };
  641. get = function (it) {
  642. return hasOwn$3(it, STATE) ? it[STATE] : {};
  643. };
  644. has = function (it) {
  645. return hasOwn$3(it, STATE);
  646. };
  647. }
  648. var internalState = {
  649. set: set,
  650. get: get,
  651. has: has,
  652. enforce: enforce,
  653. getterFor: getterFor
  654. };
  655. var fails$6 = fails$d;
  656. var isCallable$4 = isCallable$c;
  657. var hasOwn$2 = hasOwnProperty_1;
  658. var DESCRIPTORS$1 = descriptors;
  659. var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
  660. var inspectSource$1 = inspectSource$3;
  661. var InternalStateModule = internalState;
  662. var enforceInternalState = InternalStateModule.enforce;
  663. var getInternalState = InternalStateModule.get;
  664. // eslint-disable-next-line es-x/no-object-defineproperty -- safe
  665. var defineProperty = Object.defineProperty;
  666. var CONFIGURABLE_LENGTH = DESCRIPTORS$1 && !fails$6(function () {
  667. return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  668. });
  669. var TEMPLATE = String(String).split('String');
  670. var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
  671. if (String(name).slice(0, 7) === 'Symbol(') {
  672. name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
  673. }
  674. if (options && options.getter) name = 'get ' + name;
  675. if (options && options.setter) name = 'set ' + name;
  676. if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  677. defineProperty(value, 'name', { value: name, configurable: true });
  678. }
  679. if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
  680. defineProperty(value, 'length', { value: options.arity });
  681. }
  682. if (options && hasOwn$2(options, 'constructor') && options.constructor) {
  683. if (DESCRIPTORS$1) try {
  684. defineProperty(value, 'prototype', { writable: false });
  685. } catch (error) { /* empty */ }
  686. } else value.prototype = undefined;
  687. var state = enforceInternalState(value);
  688. if (!hasOwn$2(state, 'source')) {
  689. state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
  690. } return value;
  691. };
  692. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  693. // eslint-disable-next-line no-extend-native -- required
  694. Function.prototype.toString = makeBuiltIn$1(function toString() {
  695. return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this);
  696. }, 'toString');
  697. var global$7 = global$q;
  698. var isCallable$3 = isCallable$c;
  699. var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
  700. var makeBuiltIn = makeBuiltIn$2.exports;
  701. var setGlobal$1 = setGlobal$3;
  702. var defineBuiltIn$2 = function (O, key, value, options) {
  703. var unsafe = options ? !!options.unsafe : false;
  704. var simple = options ? !!options.enumerable : false;
  705. var noTargetGet = options ? !!options.noTargetGet : false;
  706. var name = options && options.name !== undefined ? options.name : key;
  707. if (isCallable$3(value)) makeBuiltIn(value, name, options);
  708. if (O === global$7) {
  709. if (simple) O[key] = value;
  710. else setGlobal$1(key, value);
  711. return O;
  712. } else if (!unsafe) {
  713. delete O[key];
  714. } else if (!noTargetGet && O[key]) {
  715. simple = true;
  716. }
  717. if (simple) O[key] = value;
  718. else createNonEnumerableProperty$1(O, key, value);
  719. return O;
  720. };
  721. var objectGetOwnPropertyNames = {};
  722. var ceil = Math.ceil;
  723. var floor = Math.floor;
  724. // `ToIntegerOrInfinity` abstract operation
  725. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  726. var toIntegerOrInfinity$2 = function (argument) {
  727. var number = +argument;
  728. // eslint-disable-next-line no-self-compare -- safe
  729. return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
  730. };
  731. var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
  732. var max = Math.max;
  733. var min$1 = Math.min;
  734. // Helper for a popular repeating case of the spec:
  735. // Let integer be ? ToInteger(index).
  736. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  737. var toAbsoluteIndex$1 = function (index, length) {
  738. var integer = toIntegerOrInfinity$1(index);
  739. return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
  740. };
  741. var toIntegerOrInfinity = toIntegerOrInfinity$2;
  742. var min = Math.min;
  743. // `ToLength` abstract operation
  744. // https://tc39.es/ecma262/#sec-tolength
  745. var toLength$1 = function (argument) {
  746. return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  747. };
  748. var toLength = toLength$1;
  749. // `LengthOfArrayLike` abstract operation
  750. // https://tc39.es/ecma262/#sec-lengthofarraylike
  751. var lengthOfArrayLike$3 = function (obj) {
  752. return toLength(obj.length);
  753. };
  754. var toIndexedObject$2 = toIndexedObject$4;
  755. var toAbsoluteIndex = toAbsoluteIndex$1;
  756. var lengthOfArrayLike$2 = lengthOfArrayLike$3;
  757. // `Array.prototype.{ indexOf, includes }` methods implementation
  758. var createMethod$2 = function (IS_INCLUDES) {
  759. return function ($this, el, fromIndex) {
  760. var O = toIndexedObject$2($this);
  761. var length = lengthOfArrayLike$2(O);
  762. var index = toAbsoluteIndex(fromIndex, length);
  763. var value;
  764. // Array#includes uses SameValueZero equality algorithm
  765. // eslint-disable-next-line no-self-compare -- NaN check
  766. if (IS_INCLUDES && el != el) while (length > index) {
  767. value = O[index++];
  768. // eslint-disable-next-line no-self-compare -- NaN check
  769. if (value != value) return true;
  770. // Array#indexOf ignores holes, Array#includes - not
  771. } else for (;length > index; index++) {
  772. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  773. } return !IS_INCLUDES && -1;
  774. };
  775. };
  776. var arrayIncludes = {
  777. // `Array.prototype.includes` method
  778. // https://tc39.es/ecma262/#sec-array.prototype.includes
  779. includes: createMethod$2(true),
  780. // `Array.prototype.indexOf` method
  781. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  782. indexOf: createMethod$2(false)
  783. };
  784. var uncurryThis$8 = functionUncurryThis;
  785. var hasOwn$1 = hasOwnProperty_1;
  786. var toIndexedObject$1 = toIndexedObject$4;
  787. var indexOf = arrayIncludes.indexOf;
  788. var hiddenKeys$2 = hiddenKeys$4;
  789. var push$1 = uncurryThis$8([].push);
  790. var objectKeysInternal = function (object, names) {
  791. var O = toIndexedObject$1(object);
  792. var i = 0;
  793. var result = [];
  794. var key;
  795. for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$1(result, key);
  796. // Don't enum bug & hidden keys
  797. while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
  798. ~indexOf(result, key) || push$1(result, key);
  799. }
  800. return result;
  801. };
  802. // IE8- don't enum bug keys
  803. var enumBugKeys$3 = [
  804. 'constructor',
  805. 'hasOwnProperty',
  806. 'isPrototypeOf',
  807. 'propertyIsEnumerable',
  808. 'toLocaleString',
  809. 'toString',
  810. 'valueOf'
  811. ];
  812. var internalObjectKeys$1 = objectKeysInternal;
  813. var enumBugKeys$2 = enumBugKeys$3;
  814. var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
  815. // `Object.getOwnPropertyNames` method
  816. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  817. // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
  818. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  819. return internalObjectKeys$1(O, hiddenKeys$1);
  820. };
  821. var objectGetOwnPropertySymbols = {};
  822. // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
  823. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  824. var getBuiltIn$2 = getBuiltIn$5;
  825. var uncurryThis$7 = functionUncurryThis;
  826. var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
  827. var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
  828. var anObject$2 = anObject$4;
  829. var concat = uncurryThis$7([].concat);
  830. // all object keys, includes non-enumerable and symbols
  831. var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
  832. var keys = getOwnPropertyNamesModule.f(anObject$2(it));
  833. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  834. return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
  835. };
  836. var hasOwn = hasOwnProperty_1;
  837. var ownKeys = ownKeys$1;
  838. var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
  839. var definePropertyModule$3 = objectDefineProperty;
  840. var copyConstructorProperties$1 = function (target, source, exceptions) {
  841. var keys = ownKeys(source);
  842. var defineProperty = definePropertyModule$3.f;
  843. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  844. for (var i = 0; i < keys.length; i++) {
  845. var key = keys[i];
  846. if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
  847. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  848. }
  849. }
  850. };
  851. var fails$5 = fails$d;
  852. var isCallable$2 = isCallable$c;
  853. var replacement = /#|\.prototype\./;
  854. var isForced$1 = function (feature, detection) {
  855. var value = data[normalize(feature)];
  856. return value == POLYFILL ? true
  857. : value == NATIVE ? false
  858. : isCallable$2(detection) ? fails$5(detection)
  859. : !!detection;
  860. };
  861. var normalize = isForced$1.normalize = function (string) {
  862. return String(string).replace(replacement, '.').toLowerCase();
  863. };
  864. var data = isForced$1.data = {};
  865. var NATIVE = isForced$1.NATIVE = 'N';
  866. var POLYFILL = isForced$1.POLYFILL = 'P';
  867. var isForced_1 = isForced$1;
  868. var global$6 = global$q;
  869. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  870. var createNonEnumerableProperty = createNonEnumerableProperty$3;
  871. var defineBuiltIn$1 = defineBuiltIn$2;
  872. var setGlobal = setGlobal$3;
  873. var copyConstructorProperties = copyConstructorProperties$1;
  874. var isForced = isForced_1;
  875. /*
  876. options.target - name of the target object
  877. options.global - target is the global object
  878. options.stat - export as static methods of target
  879. options.proto - export as prototype methods of target
  880. options.real - real prototype method for the `pure` version
  881. options.forced - export even if the native feature is available
  882. options.bind - bind methods to the target, required for the `pure` version
  883. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  884. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  885. options.sham - add a flag to not completely full polyfills
  886. options.enumerable - export as enumerable property
  887. options.noTargetGet - prevent calling a getter on target
  888. options.name - the .name of the function if it does not match the key
  889. */
  890. var _export = function (options, source) {
  891. var TARGET = options.target;
  892. var GLOBAL = options.global;
  893. var STATIC = options.stat;
  894. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  895. if (GLOBAL) {
  896. target = global$6;
  897. } else if (STATIC) {
  898. target = global$6[TARGET] || setGlobal(TARGET, {});
  899. } else {
  900. target = (global$6[TARGET] || {}).prototype;
  901. }
  902. if (target) for (key in source) {
  903. sourceProperty = source[key];
  904. if (options.noTargetGet) {
  905. descriptor = getOwnPropertyDescriptor(target, key);
  906. targetProperty = descriptor && descriptor.value;
  907. } else targetProperty = target[key];
  908. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  909. // contained in target
  910. if (!FORCED && targetProperty !== undefined) {
  911. if (typeof sourceProperty == typeof targetProperty) continue;
  912. copyConstructorProperties(sourceProperty, targetProperty);
  913. }
  914. // add a flag to not completely full polyfills
  915. if (options.sham || (targetProperty && targetProperty.sham)) {
  916. createNonEnumerableProperty(sourceProperty, 'sham', true);
  917. }
  918. defineBuiltIn$1(target, key, sourceProperty, options);
  919. }
  920. };
  921. var uncurryThis$6 = functionUncurryThis;
  922. var aCallable = aCallable$2;
  923. var NATIVE_BIND = functionBindNative;
  924. var bind$1 = uncurryThis$6(uncurryThis$6.bind);
  925. // optional / simple context binding
  926. var functionBindContext = function (fn, that) {
  927. aCallable(fn);
  928. return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
  929. return fn.apply(that, arguments);
  930. };
  931. };
  932. var classof$4 = classofRaw$1;
  933. // `IsArray` abstract operation
  934. // https://tc39.es/ecma262/#sec-isarray
  935. // eslint-disable-next-line es-x/no-array-isarray -- safe
  936. var isArray$3 = Array.isArray || function isArray(argument) {
  937. return classof$4(argument) == 'Array';
  938. };
  939. var wellKnownSymbol$5 = wellKnownSymbol$7;
  940. var TO_STRING_TAG$1 = wellKnownSymbol$5('toStringTag');
  941. var test$1 = {};
  942. test$1[TO_STRING_TAG$1] = 'z';
  943. var toStringTagSupport = String(test$1) === '[object z]';
  944. var global$5 = global$q;
  945. var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
  946. var isCallable$1 = isCallable$c;
  947. var classofRaw = classofRaw$1;
  948. var wellKnownSymbol$4 = wellKnownSymbol$7;
  949. var TO_STRING_TAG = wellKnownSymbol$4('toStringTag');
  950. var Object$1 = global$5.Object;
  951. // ES3 wrong here
  952. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
  953. // fallback for IE11 Script Access Denied error
  954. var tryGet = function (it, key) {
  955. try {
  956. return it[key];
  957. } catch (error) { /* empty */ }
  958. };
  959. // getting tag from ES6+ `Object.prototype.toString`
  960. var classof$3 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
  961. var O, tag, result;
  962. return it === undefined ? 'Undefined' : it === null ? 'Null'
  963. // @@toStringTag case
  964. : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
  965. // builtinTag case
  966. : CORRECT_ARGUMENTS ? classofRaw(O)
  967. // ES3 arguments fallback
  968. : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
  969. };
  970. var uncurryThis$5 = functionUncurryThis;
  971. var fails$4 = fails$d;
  972. var isCallable = isCallable$c;
  973. var classof$2 = classof$3;
  974. var getBuiltIn$1 = getBuiltIn$5;
  975. var inspectSource = inspectSource$3;
  976. var noop = function () { /* empty */ };
  977. var empty = [];
  978. var construct = getBuiltIn$1('Reflect', 'construct');
  979. var constructorRegExp = /^\s*(?:class|function)\b/;
  980. var exec$1 = uncurryThis$5(constructorRegExp.exec);
  981. var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
  982. var isConstructorModern = function isConstructor(argument) {
  983. if (!isCallable(argument)) return false;
  984. try {
  985. construct(noop, empty, argument);
  986. return true;
  987. } catch (error) {
  988. return false;
  989. }
  990. };
  991. var isConstructorLegacy = function isConstructor(argument) {
  992. if (!isCallable(argument)) return false;
  993. switch (classof$2(argument)) {
  994. case 'AsyncFunction':
  995. case 'GeneratorFunction':
  996. case 'AsyncGeneratorFunction': return false;
  997. }
  998. try {
  999. // we can't check .prototype since constructors produced by .bind haven't it
  1000. // `Function#toString` throws on some built-it function in some legacy engines
  1001. // (for example, `DOMQuad` and similar in FF41-)
  1002. return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
  1003. } catch (error) {
  1004. return true;
  1005. }
  1006. };
  1007. isConstructorLegacy.sham = true;
  1008. // `IsConstructor` abstract operation
  1009. // https://tc39.es/ecma262/#sec-isconstructor
  1010. var isConstructor$1 = !construct || fails$4(function () {
  1011. var called;
  1012. return isConstructorModern(isConstructorModern.call)
  1013. || !isConstructorModern(Object)
  1014. || !isConstructorModern(function () { called = true; })
  1015. || called;
  1016. }) ? isConstructorLegacy : isConstructorModern;
  1017. var global$4 = global$q;
  1018. var isArray$2 = isArray$3;
  1019. var isConstructor = isConstructor$1;
  1020. var isObject$1 = isObject$7;
  1021. var wellKnownSymbol$3 = wellKnownSymbol$7;
  1022. var SPECIES$1 = wellKnownSymbol$3('species');
  1023. var Array$1 = global$4.Array;
  1024. // a part of `ArraySpeciesCreate` abstract operation
  1025. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1026. var arraySpeciesConstructor$1 = function (originalArray) {
  1027. var C;
  1028. if (isArray$2(originalArray)) {
  1029. C = originalArray.constructor;
  1030. // cross-realm fallback
  1031. if (isConstructor(C) && (C === Array$1 || isArray$2(C.prototype))) C = undefined;
  1032. else if (isObject$1(C)) {
  1033. C = C[SPECIES$1];
  1034. if (C === null) C = undefined;
  1035. }
  1036. } return C === undefined ? Array$1 : C;
  1037. };
  1038. var arraySpeciesConstructor = arraySpeciesConstructor$1;
  1039. // `ArraySpeciesCreate` abstract operation
  1040. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1041. var arraySpeciesCreate$2 = function (originalArray, length) {
  1042. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1043. };
  1044. var bind = functionBindContext;
  1045. var uncurryThis$4 = functionUncurryThis;
  1046. var IndexedObject = indexedObject;
  1047. var toObject$1 = toObject$3;
  1048. var lengthOfArrayLike$1 = lengthOfArrayLike$3;
  1049. var arraySpeciesCreate$1 = arraySpeciesCreate$2;
  1050. var push = uncurryThis$4([].push);
  1051. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  1052. var createMethod$1 = function (TYPE) {
  1053. var IS_MAP = TYPE == 1;
  1054. var IS_FILTER = TYPE == 2;
  1055. var IS_SOME = TYPE == 3;
  1056. var IS_EVERY = TYPE == 4;
  1057. var IS_FIND_INDEX = TYPE == 6;
  1058. var IS_FILTER_REJECT = TYPE == 7;
  1059. var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
  1060. return function ($this, callbackfn, that, specificCreate) {
  1061. var O = toObject$1($this);
  1062. var self = IndexedObject(O);
  1063. var boundFunction = bind(callbackfn, that);
  1064. var length = lengthOfArrayLike$1(self);
  1065. var index = 0;
  1066. var create = specificCreate || arraySpeciesCreate$1;
  1067. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  1068. var value, result;
  1069. for (;length > index; index++) if (NO_HOLES || index in self) {
  1070. value = self[index];
  1071. result = boundFunction(value, index, O);
  1072. if (TYPE) {
  1073. if (IS_MAP) target[index] = result; // map
  1074. else if (result) switch (TYPE) {
  1075. case 3: return true; // some
  1076. case 5: return value; // find
  1077. case 6: return index; // findIndex
  1078. case 2: push(target, value); // filter
  1079. } else switch (TYPE) {
  1080. case 4: return false; // every
  1081. case 7: push(target, value); // filterReject
  1082. }
  1083. }
  1084. }
  1085. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  1086. };
  1087. };
  1088. var arrayIteration = {
  1089. // `Array.prototype.forEach` method
  1090. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1091. forEach: createMethod$1(0),
  1092. // `Array.prototype.map` method
  1093. // https://tc39.es/ecma262/#sec-array.prototype.map
  1094. map: createMethod$1(1),
  1095. // `Array.prototype.filter` method
  1096. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1097. filter: createMethod$1(2),
  1098. // `Array.prototype.some` method
  1099. // https://tc39.es/ecma262/#sec-array.prototype.some
  1100. some: createMethod$1(3),
  1101. // `Array.prototype.every` method
  1102. // https://tc39.es/ecma262/#sec-array.prototype.every
  1103. every: createMethod$1(4),
  1104. // `Array.prototype.find` method
  1105. // https://tc39.es/ecma262/#sec-array.prototype.find
  1106. find: createMethod$1(5),
  1107. // `Array.prototype.findIndex` method
  1108. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  1109. findIndex: createMethod$1(6),
  1110. // `Array.prototype.filterReject` method
  1111. // https://github.com/tc39/proposal-array-filtering
  1112. filterReject: createMethod$1(7)
  1113. };
  1114. var objectDefineProperties = {};
  1115. var internalObjectKeys = objectKeysInternal;
  1116. var enumBugKeys$1 = enumBugKeys$3;
  1117. // `Object.keys` method
  1118. // https://tc39.es/ecma262/#sec-object.keys
  1119. // eslint-disable-next-line es-x/no-object-keys -- safe
  1120. var objectKeys$1 = Object.keys || function keys(O) {
  1121. return internalObjectKeys(O, enumBugKeys$1);
  1122. };
  1123. var DESCRIPTORS = descriptors;
  1124. var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
  1125. var definePropertyModule$2 = objectDefineProperty;
  1126. var anObject$1 = anObject$4;
  1127. var toIndexedObject = toIndexedObject$4;
  1128. var objectKeys = objectKeys$1;
  1129. // `Object.defineProperties` method
  1130. // https://tc39.es/ecma262/#sec-object.defineproperties
  1131. // eslint-disable-next-line es-x/no-object-defineproperties -- safe
  1132. objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
  1133. anObject$1(O);
  1134. var props = toIndexedObject(Properties);
  1135. var keys = objectKeys(Properties);
  1136. var length = keys.length;
  1137. var index = 0;
  1138. var key;
  1139. while (length > index) definePropertyModule$2.f(O, key = keys[index++], props[key]);
  1140. return O;
  1141. };
  1142. var getBuiltIn = getBuiltIn$5;
  1143. var html$1 = getBuiltIn('document', 'documentElement');
  1144. /* global ActiveXObject -- old IE, WSH */
  1145. var anObject = anObject$4;
  1146. var definePropertiesModule = objectDefineProperties;
  1147. var enumBugKeys = enumBugKeys$3;
  1148. var hiddenKeys = hiddenKeys$4;
  1149. var html = html$1;
  1150. var documentCreateElement = documentCreateElement$1;
  1151. var sharedKey = sharedKey$2;
  1152. var GT = '>';
  1153. var LT = '<';
  1154. var PROTOTYPE = 'prototype';
  1155. var SCRIPT = 'script';
  1156. var IE_PROTO = sharedKey('IE_PROTO');
  1157. var EmptyConstructor = function () { /* empty */ };
  1158. var scriptTag = function (content) {
  1159. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  1160. };
  1161. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  1162. var NullProtoObjectViaActiveX = function (activeXDocument) {
  1163. activeXDocument.write(scriptTag(''));
  1164. activeXDocument.close();
  1165. var temp = activeXDocument.parentWindow.Object;
  1166. activeXDocument = null; // avoid memory leak
  1167. return temp;
  1168. };
  1169. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  1170. var NullProtoObjectViaIFrame = function () {
  1171. // Thrash, waste and sodomy: IE GC bug
  1172. var iframe = documentCreateElement('iframe');
  1173. var JS = 'java' + SCRIPT + ':';
  1174. var iframeDocument;
  1175. iframe.style.display = 'none';
  1176. html.appendChild(iframe);
  1177. // https://github.com/zloirock/core-js/issues/475
  1178. iframe.src = String(JS);
  1179. iframeDocument = iframe.contentWindow.document;
  1180. iframeDocument.open();
  1181. iframeDocument.write(scriptTag('document.F=Object'));
  1182. iframeDocument.close();
  1183. return iframeDocument.F;
  1184. };
  1185. // Check for document.domain and active x support
  1186. // No need to use active x approach when document.domain is not set
  1187. // see https://github.com/es-shims/es5-shim/issues/150
  1188. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  1189. // avoid IE GC bug
  1190. var activeXDocument;
  1191. var NullProtoObject = function () {
  1192. try {
  1193. activeXDocument = new ActiveXObject('htmlfile');
  1194. } catch (error) { /* ignore */ }
  1195. NullProtoObject = typeof document != 'undefined'
  1196. ? document.domain && activeXDocument
  1197. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  1198. : NullProtoObjectViaIFrame()
  1199. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  1200. var length = enumBugKeys.length;
  1201. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  1202. return NullProtoObject();
  1203. };
  1204. hiddenKeys[IE_PROTO] = true;
  1205. // `Object.create` method
  1206. // https://tc39.es/ecma262/#sec-object.create
  1207. // eslint-disable-next-line es-x/no-object-create -- safe
  1208. var objectCreate = Object.create || function create(O, Properties) {
  1209. var result;
  1210. if (O !== null) {
  1211. EmptyConstructor[PROTOTYPE] = anObject(O);
  1212. result = new EmptyConstructor();
  1213. EmptyConstructor[PROTOTYPE] = null;
  1214. // add "__proto__" for Object.getPrototypeOf polyfill
  1215. result[IE_PROTO] = O;
  1216. } else result = NullProtoObject();
  1217. return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
  1218. };
  1219. var wellKnownSymbol$2 = wellKnownSymbol$7;
  1220. var create = objectCreate;
  1221. var definePropertyModule$1 = objectDefineProperty;
  1222. var UNSCOPABLES = wellKnownSymbol$2('unscopables');
  1223. var ArrayPrototype = Array.prototype;
  1224. // Array.prototype[@@unscopables]
  1225. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1226. if (ArrayPrototype[UNSCOPABLES] == undefined) {
  1227. definePropertyModule$1.f(ArrayPrototype, UNSCOPABLES, {
  1228. configurable: true,
  1229. value: create(null)
  1230. });
  1231. }
  1232. // add a key to Array.prototype[@@unscopables]
  1233. var addToUnscopables$1 = function (key) {
  1234. ArrayPrototype[UNSCOPABLES][key] = true;
  1235. };
  1236. var $$4 = _export;
  1237. var $find = arrayIteration.find;
  1238. var addToUnscopables = addToUnscopables$1;
  1239. var FIND = 'find';
  1240. var SKIPS_HOLES = true;
  1241. // Shouldn't skip holes
  1242. if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
  1243. // `Array.prototype.find` method
  1244. // https://tc39.es/ecma262/#sec-array.prototype.find
  1245. $$4({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
  1246. find: function find(callbackfn /* , that = undefined */) {
  1247. return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1248. }
  1249. });
  1250. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1251. addToUnscopables(FIND);
  1252. var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
  1253. var classof$1 = classof$3;
  1254. // `Object.prototype.toString` method implementation
  1255. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1256. var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
  1257. return '[object ' + classof$1(this) + ']';
  1258. };
  1259. var TO_STRING_TAG_SUPPORT = toStringTagSupport;
  1260. var defineBuiltIn = defineBuiltIn$2;
  1261. var toString$3 = objectToString;
  1262. // `Object.prototype.toString` method
  1263. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1264. if (!TO_STRING_TAG_SUPPORT) {
  1265. defineBuiltIn(Object.prototype, 'toString', toString$3, { unsafe: true });
  1266. }
  1267. var toPropertyKey = toPropertyKey$3;
  1268. var definePropertyModule = objectDefineProperty;
  1269. var createPropertyDescriptor = createPropertyDescriptor$3;
  1270. var createProperty$1 = function (object, key, value) {
  1271. var propertyKey = toPropertyKey(key);
  1272. if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
  1273. else object[propertyKey] = value;
  1274. };
  1275. var fails$3 = fails$d;
  1276. var wellKnownSymbol$1 = wellKnownSymbol$7;
  1277. var V8_VERSION$1 = engineV8Version;
  1278. var SPECIES = wellKnownSymbol$1('species');
  1279. var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) {
  1280. // We can't use this feature detection in V8 since it causes
  1281. // deoptimization and serious performance degradation
  1282. // https://github.com/zloirock/core-js/issues/677
  1283. return V8_VERSION$1 >= 51 || !fails$3(function () {
  1284. var array = [];
  1285. var constructor = array.constructor = {};
  1286. constructor[SPECIES] = function () {
  1287. return { foo: 1 };
  1288. };
  1289. return array[METHOD_NAME](Boolean).foo !== 1;
  1290. });
  1291. };
  1292. var $$3 = _export;
  1293. var global$3 = global$q;
  1294. var fails$2 = fails$d;
  1295. var isArray$1 = isArray$3;
  1296. var isObject = isObject$7;
  1297. var toObject = toObject$3;
  1298. var lengthOfArrayLike = lengthOfArrayLike$3;
  1299. var createProperty = createProperty$1;
  1300. var arraySpeciesCreate = arraySpeciesCreate$2;
  1301. var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
  1302. var wellKnownSymbol = wellKnownSymbol$7;
  1303. var V8_VERSION = engineV8Version;
  1304. var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
  1305. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
  1306. var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
  1307. var TypeError$1 = global$3.TypeError;
  1308. // We can't use this feature detection in V8 since it causes
  1309. // deoptimization and serious performance degradation
  1310. // https://github.com/zloirock/core-js/issues/679
  1311. var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$2(function () {
  1312. var array = [];
  1313. array[IS_CONCAT_SPREADABLE] = false;
  1314. return array.concat()[0] !== array;
  1315. });
  1316. var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
  1317. var isConcatSpreadable = function (O) {
  1318. if (!isObject(O)) return false;
  1319. var spreadable = O[IS_CONCAT_SPREADABLE];
  1320. return spreadable !== undefined ? !!spreadable : isArray$1(O);
  1321. };
  1322. var FORCED$1 = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
  1323. // `Array.prototype.concat` method
  1324. // https://tc39.es/ecma262/#sec-array.prototype.concat
  1325. // with adding support of @@isConcatSpreadable and @@species
  1326. $$3({ target: 'Array', proto: true, arity: 1, forced: FORCED$1 }, {
  1327. // eslint-disable-next-line no-unused-vars -- required for `.length`
  1328. concat: function concat(arg) {
  1329. var O = toObject(this);
  1330. var A = arraySpeciesCreate(O, 0);
  1331. var n = 0;
  1332. var i, k, length, len, E;
  1333. for (i = -1, length = arguments.length; i < length; i++) {
  1334. E = i === -1 ? O : arguments[i];
  1335. if (isConcatSpreadable(E)) {
  1336. len = lengthOfArrayLike(E);
  1337. if (n + len > MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
  1338. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  1339. } else {
  1340. if (n >= MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
  1341. createProperty(A, n++, E);
  1342. }
  1343. }
  1344. A.length = n;
  1345. return A;
  1346. }
  1347. });
  1348. var $$2 = _export;
  1349. var uncurryThis$3 = functionUncurryThis;
  1350. var isArray = isArray$3;
  1351. var un$Reverse = uncurryThis$3([].reverse);
  1352. var test = [1, 2];
  1353. // `Array.prototype.reverse` method
  1354. // https://tc39.es/ecma262/#sec-array.prototype.reverse
  1355. // fix for Safari 12.0 bug
  1356. // https://bugs.webkit.org/show_bug.cgi?id=188794
  1357. $$2({ target: 'Array', proto: true, forced: String(test) === String(test.reverse()) }, {
  1358. reverse: function reverse() {
  1359. // eslint-disable-next-line no-self-assign -- dirty hack
  1360. if (isArray(this)) this.length = this.length;
  1361. return un$Reverse(this);
  1362. }
  1363. });
  1364. var global$2 = global$q;
  1365. var classof = classof$3;
  1366. var String$1 = global$2.String;
  1367. var toString$2 = function (argument) {
  1368. if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
  1369. return String$1(argument);
  1370. };
  1371. // a string of all valid unicode whitespaces
  1372. var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
  1373. '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
  1374. var uncurryThis$2 = functionUncurryThis;
  1375. var requireObjectCoercible = requireObjectCoercible$3;
  1376. var toString$1 = toString$2;
  1377. var whitespaces$1 = whitespaces$2;
  1378. var replace = uncurryThis$2(''.replace);
  1379. var whitespace = '[' + whitespaces$1 + ']';
  1380. var ltrim = RegExp('^' + whitespace + whitespace + '*');
  1381. var rtrim = RegExp(whitespace + whitespace + '*$');
  1382. // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
  1383. var createMethod = function (TYPE) {
  1384. return function ($this) {
  1385. var string = toString$1(requireObjectCoercible($this));
  1386. if (TYPE & 1) string = replace(string, ltrim, '');
  1387. if (TYPE & 2) string = replace(string, rtrim, '');
  1388. return string;
  1389. };
  1390. };
  1391. var stringTrim = {
  1392. // `String.prototype.{ trimLeft, trimStart }` methods
  1393. // https://tc39.es/ecma262/#sec-string.prototype.trimstart
  1394. start: createMethod(1),
  1395. // `String.prototype.{ trimRight, trimEnd }` methods
  1396. // https://tc39.es/ecma262/#sec-string.prototype.trimend
  1397. end: createMethod(2),
  1398. // `String.prototype.trim` method
  1399. // https://tc39.es/ecma262/#sec-string.prototype.trim
  1400. trim: createMethod(3)
  1401. };
  1402. var global$1 = global$q;
  1403. var fails$1 = fails$d;
  1404. var uncurryThis$1 = functionUncurryThis;
  1405. var toString = toString$2;
  1406. var trim = stringTrim.trim;
  1407. var whitespaces = whitespaces$2;
  1408. var $parseInt$1 = global$1.parseInt;
  1409. var Symbol$1 = global$1.Symbol;
  1410. var ITERATOR = Symbol$1 && Symbol$1.iterator;
  1411. var hex = /^[+-]?0x/i;
  1412. var exec = uncurryThis$1(hex.exec);
  1413. var FORCED = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
  1414. // MS Edge 18- broken with boxed symbols
  1415. || (ITERATOR && !fails$1(function () { $parseInt$1(Object(ITERATOR)); }));
  1416. // `parseInt` method
  1417. // https://tc39.es/ecma262/#sec-parseint-string-radix
  1418. var numberParseInt = FORCED ? function parseInt(string, radix) {
  1419. var S = trim(toString(string));
  1420. return $parseInt$1(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
  1421. } : $parseInt$1;
  1422. var $$1 = _export;
  1423. var $parseInt = numberParseInt;
  1424. // `parseInt` method
  1425. // https://tc39.es/ecma262/#sec-parseint-string-radix
  1426. $$1({ global: true, forced: parseInt != $parseInt }, {
  1427. parseInt: $parseInt
  1428. });
  1429. var fails = fails$d;
  1430. var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
  1431. var method = [][METHOD_NAME];
  1432. return !!method && fails(function () {
  1433. // eslint-disable-next-line no-useless-call -- required for testing
  1434. method.call(null, argument || function () { return 1; }, 1);
  1435. });
  1436. };
  1437. /* eslint-disable es-x/no-array-prototype-indexof -- required for testing */
  1438. var $ = _export;
  1439. var uncurryThis = functionUncurryThis;
  1440. var $IndexOf = arrayIncludes.indexOf;
  1441. var arrayMethodIsStrict = arrayMethodIsStrict$1;
  1442. var un$IndexOf = uncurryThis([].indexOf);
  1443. var NEGATIVE_ZERO = !!un$IndexOf && 1 / un$IndexOf([1], 1, -0) < 0;
  1444. var STRICT_METHOD = arrayMethodIsStrict('indexOf');
  1445. // `Array.prototype.indexOf` method
  1446. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  1447. $({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD }, {
  1448. indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
  1449. var fromIndex = arguments.length > 1 ? arguments[1] : undefined;
  1450. return NEGATIVE_ZERO
  1451. // convert -0 to +0
  1452. ? un$IndexOf(this, searchElement, fromIndex) || 0
  1453. : $IndexOf(this, searchElement, fromIndex);
  1454. }
  1455. });
  1456. /**
  1457. * @author zhixin wen <wenzhixin2010@gmail.com>
  1458. */
  1459. var Utils = $__default["default"].fn.bootstrapTable.utils; // Reasonable defaults
  1460. var PIXEL_STEP = 10;
  1461. var LINE_HEIGHT = 40;
  1462. var PAGE_HEIGHT = 800;
  1463. function normalizeWheel(event) {
  1464. var sX = 0; // spinX
  1465. var sY = 0; // spinY
  1466. var pX = 0; // pixelX
  1467. var pY = 0; // pixelY
  1468. // Legacy
  1469. if ('detail' in event) {
  1470. sY = event.detail;
  1471. }
  1472. if ('wheelDelta' in event) {
  1473. sY = -event.wheelDelta / 120;
  1474. }
  1475. if ('wheelDeltaY' in event) {
  1476. sY = -event.wheelDeltaY / 120;
  1477. }
  1478. if ('wheelDeltaX' in event) {
  1479. sX = -event.wheelDeltaX / 120;
  1480. } // side scrolling on FF with DOMMouseScroll
  1481. if ('axis' in event && event.axis === event.HORIZONTAL_AXIS) {
  1482. sX = sY;
  1483. sY = 0;
  1484. }
  1485. pX = sX * PIXEL_STEP;
  1486. pY = sY * PIXEL_STEP;
  1487. if ('deltaY' in event) {
  1488. pY = event.deltaY;
  1489. }
  1490. if ('deltaX' in event) {
  1491. pX = event.deltaX;
  1492. }
  1493. if ((pX || pY) && event.deltaMode) {
  1494. if (event.deltaMode === 1) {
  1495. // delta in LINE units
  1496. pX *= LINE_HEIGHT;
  1497. pY *= LINE_HEIGHT;
  1498. } else {
  1499. // delta in PAGE units
  1500. pX *= PAGE_HEIGHT;
  1501. pY *= PAGE_HEIGHT;
  1502. }
  1503. } // Fall-back if spin cannot be determined
  1504. if (pX && !sX) {
  1505. sX = pX < 1 ? -1 : 1;
  1506. }
  1507. if (pY && !sY) {
  1508. sY = pY < 1 ? -1 : 1;
  1509. }
  1510. return {
  1511. spinX: sX,
  1512. spinY: sY,
  1513. pixelX: pX,
  1514. pixelY: pY
  1515. };
  1516. }
  1517. $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
  1518. fixedColumns: false,
  1519. fixedNumber: 0,
  1520. fixedRightNumber: 0
  1521. });
  1522. $__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  1523. _inherits(_class, _$$BootstrapTable);
  1524. var _super = _createSuper(_class);
  1525. function _class() {
  1526. _classCallCheck(this, _class);
  1527. return _super.apply(this, arguments);
  1528. }
  1529. _createClass(_class, [{
  1530. key: "fixedColumnsSupported",
  1531. value: function fixedColumnsSupported() {
  1532. return this.options.fixedColumns && !this.options.detailView && !this.options.cardView;
  1533. }
  1534. }, {
  1535. key: "initContainer",
  1536. value: function initContainer() {
  1537. _get(_getPrototypeOf(_class.prototype), "initContainer", this).call(this);
  1538. if (!this.fixedColumnsSupported()) {
  1539. return;
  1540. }
  1541. if (this.options.fixedNumber) {
  1542. this.$tableContainer.append('<div class="fixed-columns"></div>');
  1543. this.$fixedColumns = this.$tableContainer.find('.fixed-columns');
  1544. }
  1545. if (this.options.fixedRightNumber) {
  1546. this.$tableContainer.append('<div class="fixed-columns-right"></div>');
  1547. this.$fixedColumnsRight = this.$tableContainer.find('.fixed-columns-right');
  1548. }
  1549. }
  1550. }, {
  1551. key: "initBody",
  1552. value: function initBody() {
  1553. var _get2;
  1554. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  1555. args[_key] = arguments[_key];
  1556. }
  1557. (_get2 = _get(_getPrototypeOf(_class.prototype), "initBody", this)).call.apply(_get2, [this].concat(args));
  1558. if (this.$fixedColumns && this.$fixedColumns.length) {
  1559. this.$fixedColumns.toggle(this.fixedColumnsSupported());
  1560. }
  1561. if (this.$fixedColumnsRight && this.$fixedColumnsRight.length) {
  1562. this.$fixedColumnsRight.toggle(this.fixedColumnsSupported());
  1563. }
  1564. if (!this.fixedColumnsSupported()) {
  1565. return;
  1566. }
  1567. if (this.options.showHeader && this.options.height) {
  1568. return;
  1569. }
  1570. this.initFixedColumnsBody();
  1571. this.initFixedColumnsEvents();
  1572. }
  1573. }, {
  1574. key: "trigger",
  1575. value: function trigger() {
  1576. var _get3;
  1577. for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  1578. args[_key2] = arguments[_key2];
  1579. }
  1580. (_get3 = _get(_getPrototypeOf(_class.prototype), "trigger", this)).call.apply(_get3, [this].concat(args));
  1581. if (!this.fixedColumnsSupported()) {
  1582. return;
  1583. }
  1584. if (args[0] === 'post-header') {
  1585. this.initFixedColumnsHeader();
  1586. } else if (args[0] === 'scroll-body') {
  1587. if (this.needFixedColumns && this.options.fixedNumber) {
  1588. this.$fixedBody.scrollTop(this.$tableBody.scrollTop());
  1589. }
  1590. if (this.needFixedColumns && this.options.fixedRightNumber) {
  1591. this.$fixedBodyRight.scrollTop(this.$tableBody.scrollTop());
  1592. }
  1593. }
  1594. }
  1595. }, {
  1596. key: "updateSelected",
  1597. value: function updateSelected() {
  1598. var _this = this;
  1599. _get(_getPrototypeOf(_class.prototype), "updateSelected", this).call(this);
  1600. if (!this.fixedColumnsSupported()) {
  1601. return;
  1602. }
  1603. this.$tableBody.find('tr').each(function (i, el) {
  1604. var $el = $__default["default"](el);
  1605. var index = $el.data('index');
  1606. var classes = $el.attr('class');
  1607. var inputSelector = "[name=\"".concat(_this.options.selectItemName, "\"]");
  1608. var $input = $el.find(inputSelector);
  1609. if (typeof index === 'undefined') {
  1610. return;
  1611. }
  1612. var updateFixedBody = function updateFixedBody($fixedHeader, $fixedBody) {
  1613. var $tr = $fixedBody.find("tr[data-index=\"".concat(index, "\"]"));
  1614. $tr.attr('class', classes);
  1615. if ($input.length) {
  1616. $tr.find(inputSelector).prop('checked', $input.prop('checked'));
  1617. }
  1618. if (_this.$selectAll.length) {
  1619. $fixedHeader.add($fixedBody).find('[name="btSelectAll"]').prop('checked', _this.$selectAll.prop('checked'));
  1620. }
  1621. };
  1622. if (_this.$fixedBody && _this.options.fixedNumber) {
  1623. updateFixedBody(_this.$fixedHeader, _this.$fixedBody);
  1624. }
  1625. if (_this.$fixedBodyRight && _this.options.fixedRightNumber) {
  1626. updateFixedBody(_this.$fixedHeaderRight, _this.$fixedBodyRight);
  1627. }
  1628. });
  1629. }
  1630. }, {
  1631. key: "hideLoading",
  1632. value: function hideLoading() {
  1633. _get(_getPrototypeOf(_class.prototype), "hideLoading", this).call(this);
  1634. if (this.needFixedColumns && this.options.fixedNumber) {
  1635. this.$fixedColumns.find('.fixed-table-loading').hide();
  1636. }
  1637. if (this.needFixedColumns && this.options.fixedRightNumber) {
  1638. this.$fixedColumnsRight.find('.fixed-table-loading').hide();
  1639. }
  1640. }
  1641. }, {
  1642. key: "initFixedColumnsHeader",
  1643. value: function initFixedColumnsHeader() {
  1644. var _this2 = this;
  1645. if (this.options.height) {
  1646. this.needFixedColumns = this.$tableHeader.outerWidth(true) < this.$tableHeader.find('table').outerWidth(true);
  1647. } else {
  1648. this.needFixedColumns = this.$tableBody.outerWidth(true) < this.$tableBody.find('table').outerWidth(true);
  1649. }
  1650. var initFixedHeader = function initFixedHeader($fixedColumns, isRight) {
  1651. $fixedColumns.find('.fixed-table-header').remove();
  1652. $fixedColumns.append(_this2.$tableHeader.clone(true));
  1653. $fixedColumns.css({
  1654. width: _this2.getFixedColumnsWidth(isRight)
  1655. });
  1656. return $fixedColumns.find('.fixed-table-header');
  1657. };
  1658. if (this.needFixedColumns && this.options.fixedNumber) {
  1659. this.$fixedHeader = initFixedHeader(this.$fixedColumns);
  1660. this.$fixedHeader.css('margin-right', '');
  1661. } else if (this.$fixedColumns) {
  1662. this.$fixedColumns.html('').css('width', '');
  1663. }
  1664. if (this.needFixedColumns && this.options.fixedRightNumber) {
  1665. this.$fixedHeaderRight = initFixedHeader(this.$fixedColumnsRight, true);
  1666. this.$fixedHeaderRight.scrollLeft(this.$fixedHeaderRight.find('table').width());
  1667. } else if (this.$fixedColumnsRight) {
  1668. this.$fixedColumnsRight.html('').css('width', '');
  1669. }
  1670. this.initFixedColumnsBody();
  1671. this.initFixedColumnsEvents();
  1672. }
  1673. }, {
  1674. key: "initFixedColumnsBody",
  1675. value: function initFixedColumnsBody() {
  1676. var _this3 = this;
  1677. var initFixedBody = function initFixedBody($fixedColumns, $fixedHeader) {
  1678. $fixedColumns.find('.fixed-table-body').remove();
  1679. $fixedColumns.append(_this3.$tableBody.clone(true));
  1680. $fixedColumns.find('.fixed-table-body table').removeAttr('id');
  1681. var $fixedBody = $fixedColumns.find('.fixed-table-body');
  1682. var tableBody = _this3.$tableBody.get(0);
  1683. var scrollHeight = tableBody.scrollWidth > tableBody.clientWidth ? Utils.getScrollBarWidth() : 0;
  1684. var height = _this3.$tableContainer.outerHeight(true) - scrollHeight - 1;
  1685. $fixedColumns.css({
  1686. height: height
  1687. });
  1688. $fixedBody.css({
  1689. height: height - $fixedHeader.height()
  1690. });
  1691. return $fixedBody;
  1692. };
  1693. if (this.needFixedColumns && this.options.fixedNumber) {
  1694. this.$fixedBody = initFixedBody(this.$fixedColumns, this.$fixedHeader);
  1695. }
  1696. if (this.needFixedColumns && this.options.fixedRightNumber) {
  1697. this.$fixedBodyRight = initFixedBody(this.$fixedColumnsRight, this.$fixedHeaderRight);
  1698. this.$fixedBodyRight.scrollLeft(this.$fixedBodyRight.find('table').width());
  1699. this.$fixedBodyRight.css('overflow-y', this.options.height ? 'auto' : 'hidden');
  1700. }
  1701. }
  1702. }, {
  1703. key: "getFixedColumnsWidth",
  1704. value: function getFixedColumnsWidth(isRight) {
  1705. var visibleFields = this.getVisibleFields();
  1706. var width = 0;
  1707. var fixedNumber = this.options.fixedNumber;
  1708. var marginRight = 0;
  1709. if (isRight) {
  1710. visibleFields = visibleFields.reverse();
  1711. fixedNumber = this.options.fixedRightNumber;
  1712. marginRight = parseInt(this.$tableHeader.css('margin-right'), 10);
  1713. }
  1714. for (var i = 0; i < fixedNumber; i++) {
  1715. width += this.$header.find("th[data-field=\"".concat(visibleFields[i], "\"]")).outerWidth(true);
  1716. }
  1717. return width + marginRight + 1;
  1718. }
  1719. }, {
  1720. key: "initFixedColumnsEvents",
  1721. value: function initFixedColumnsEvents() {
  1722. var _this4 = this;
  1723. var toggleHover = function toggleHover(e, toggle) {
  1724. var tr = "tr[data-index=\"".concat($__default["default"](e.currentTarget).data('index'), "\"]");
  1725. var $trs = _this4.$tableBody.find(tr);
  1726. if (_this4.$fixedBody) {
  1727. $trs = $trs.add(_this4.$fixedBody.find(tr));
  1728. }
  1729. if (_this4.$fixedBodyRight) {
  1730. $trs = $trs.add(_this4.$fixedBodyRight.find(tr));
  1731. }
  1732. $trs.css('background-color', toggle ? $__default["default"](e.currentTarget).css('background-color') : '');
  1733. };
  1734. this.$tableBody.find('tr').hover(function (e) {
  1735. toggleHover(e, true);
  1736. }, function (e) {
  1737. toggleHover(e, false);
  1738. });
  1739. var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
  1740. var mousewheel = isFirefox ? 'DOMMouseScroll' : 'mousewheel';
  1741. var updateScroll = function updateScroll(e, fixedBody) {
  1742. var normalized = normalizeWheel(e);
  1743. var deltaY = Math.ceil(normalized.pixelY);
  1744. var top = _this4.$tableBody.scrollTop() + deltaY;
  1745. if (deltaY < 0 && top > 0 || deltaY > 0 && top < fixedBody.scrollHeight - fixedBody.clientHeight) {
  1746. e.preventDefault();
  1747. }
  1748. _this4.$tableBody.scrollTop(top);
  1749. if (_this4.$fixedBody) {
  1750. _this4.$fixedBody.scrollTop(top);
  1751. }
  1752. if (_this4.$fixedBodyRight) {
  1753. _this4.$fixedBodyRight.scrollTop(top);
  1754. }
  1755. };
  1756. if (this.needFixedColumns && this.options.fixedNumber) {
  1757. this.$fixedBody.find('tr').hover(function (e) {
  1758. toggleHover(e, true);
  1759. }, function (e) {
  1760. toggleHover(e, false);
  1761. });
  1762. this.$fixedBody[0].addEventListener(mousewheel, function (e) {
  1763. updateScroll(e, _this4.$fixedBody[0]);
  1764. });
  1765. }
  1766. if (this.needFixedColumns && this.options.fixedRightNumber) {
  1767. this.$fixedBodyRight.find('tr').hover(function (e) {
  1768. toggleHover(e, true);
  1769. }, function (e) {
  1770. toggleHover(e, false);
  1771. });
  1772. this.$fixedBodyRight.off('scroll').on('scroll', function () {
  1773. var top = _this4.$fixedBodyRight.scrollTop();
  1774. _this4.$tableBody.scrollTop(top);
  1775. if (_this4.$fixedBody) {
  1776. _this4.$fixedBody.scrollTop(top);
  1777. }
  1778. });
  1779. }
  1780. if (this.options.filterControl) {
  1781. $__default["default"](this.$fixedColumns).off('keyup change').on('keyup change', function (e) {
  1782. var $target = $__default["default"](e.target);
  1783. var value = $target.val();
  1784. var field = $target.parents('th').data('field');
  1785. var $coreTh = _this4.$header.find("th[data-field=\"".concat(field, "\"]"));
  1786. if ($target.is('input')) {
  1787. $coreTh.find('input').val(value);
  1788. } else if ($target.is('select')) {
  1789. var $select = $coreTh.find('select');
  1790. $select.find('option[selected]').removeAttr('selected');
  1791. $select.find("option[value=\"".concat(value, "\"]")).attr('selected', true);
  1792. }
  1793. _this4.triggerSearch();
  1794. });
  1795. }
  1796. }
  1797. }, {
  1798. key: "renderStickyHeader",
  1799. value: function renderStickyHeader() {
  1800. if (!this.options.stickyHeader) {
  1801. return;
  1802. }
  1803. this.$stickyContainer = this.$container.find('.sticky-header-container');
  1804. _get(_getPrototypeOf(_class.prototype), "renderStickyHeader", this).call(this);
  1805. if (this.needFixedColumns && this.options.fixedNumber) {
  1806. this.$fixedColumns.css('z-index', 101).find('.sticky-header-container').css('right', '').width(this.$fixedColumns.outerWidth());
  1807. }
  1808. if (this.needFixedColumns && this.options.fixedRightNumber) {
  1809. var $stickyHeaderContainerRight = this.$fixedColumnsRight.find('.sticky-header-container');
  1810. this.$fixedColumnsRight.css('z-index', 101);
  1811. $stickyHeaderContainerRight.css('left', '').scrollLeft($stickyHeaderContainerRight.find('.table').outerWidth()).width(this.$fixedColumnsRight.outerWidth());
  1812. }
  1813. }
  1814. }, {
  1815. key: "matchPositionX",
  1816. value: function matchPositionX() {
  1817. if (!this.options.stickyHeader) {
  1818. return;
  1819. }
  1820. this.$stickyContainer.eq(0).scrollLeft(this.$tableBody.scrollLeft());
  1821. }
  1822. }]);
  1823. return _class;
  1824. }($__default["default"].BootstrapTable);
  1825. }));