bootstrap-table-sticky-header.js 63 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771
  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 ($$2) { 'use strict';
  6. function _assertThisInitialized(e) {
  7. if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  8. return e;
  9. }
  10. function _callSuper(t, o, e) {
  11. return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
  12. }
  13. function _classCallCheck(a, n) {
  14. if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
  15. }
  16. function _defineProperties(e, r) {
  17. for (var t = 0; t < r.length; t++) {
  18. var o = r[t];
  19. o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
  20. }
  21. }
  22. function _createClass(e, r, t) {
  23. return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
  24. writable: !1
  25. }), e;
  26. }
  27. function _get() {
  28. return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
  29. var p = _superPropBase(e, t);
  30. if (p) {
  31. var n = Object.getOwnPropertyDescriptor(p, t);
  32. return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
  33. }
  34. }, _get.apply(null, arguments);
  35. }
  36. function _getPrototypeOf(t) {
  37. return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
  38. return t.__proto__ || Object.getPrototypeOf(t);
  39. }, _getPrototypeOf(t);
  40. }
  41. function _inherits(t, e) {
  42. if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
  43. t.prototype = Object.create(e && e.prototype, {
  44. constructor: {
  45. value: t,
  46. writable: !0,
  47. configurable: !0
  48. }
  49. }), Object.defineProperty(t, "prototype", {
  50. writable: !1
  51. }), e && _setPrototypeOf(t, e);
  52. }
  53. function _isNativeReflectConstruct() {
  54. try {
  55. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  56. } catch (t) {}
  57. return (_isNativeReflectConstruct = function () {
  58. return !!t;
  59. })();
  60. }
  61. function _possibleConstructorReturn(t, e) {
  62. if (e && ("object" == typeof e || "function" == typeof e)) return e;
  63. if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
  64. return _assertThisInitialized(t);
  65. }
  66. function _setPrototypeOf(t, e) {
  67. return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
  68. return t.__proto__ = e, t;
  69. }, _setPrototypeOf(t, e);
  70. }
  71. function _superPropBase(t, o) {
  72. for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
  73. return t;
  74. }
  75. function _superPropGet(t, e, r, o) {
  76. var p = _get(_getPrototypeOf(t.prototype ), e, r);
  77. return function (t) {
  78. return p.apply(r, t);
  79. } ;
  80. }
  81. function _toPrimitive(t, r) {
  82. if ("object" != typeof t || !t) return t;
  83. var e = t[Symbol.toPrimitive];
  84. if (void 0 !== e) {
  85. var i = e.call(t, r);
  86. if ("object" != typeof i) return i;
  87. throw new TypeError("@@toPrimitive must return a primitive value.");
  88. }
  89. return (String )(t);
  90. }
  91. function _toPropertyKey(t) {
  92. var i = _toPrimitive(t, "string");
  93. return "symbol" == typeof i ? i : i + "";
  94. }
  95. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  96. var check = function (it) {
  97. return it && it.Math === Math && it;
  98. };
  99. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  100. var globalThis_1 =
  101. // eslint-disable-next-line es/no-global-this -- safe
  102. check(typeof globalThis == 'object' && globalThis) ||
  103. check(typeof window == 'object' && window) ||
  104. // eslint-disable-next-line no-restricted-globals -- safe
  105. check(typeof self == 'object' && self) ||
  106. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  107. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  108. // eslint-disable-next-line no-new-func -- fallback
  109. (function () { return this; })() || Function('return this')();
  110. var objectGetOwnPropertyDescriptor = {};
  111. var fails$a = function (exec) {
  112. try {
  113. return !!exec();
  114. } catch (error) {
  115. return true;
  116. }
  117. };
  118. var fails$9 = fails$a;
  119. // Detect IE8's incomplete defineProperty implementation
  120. var descriptors = !fails$9(function () {
  121. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  122. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
  123. });
  124. var fails$8 = fails$a;
  125. var functionBindNative = !fails$8(function () {
  126. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  127. var test = (function () { /* empty */ }).bind();
  128. // eslint-disable-next-line no-prototype-builtins -- safe
  129. return typeof test != 'function' || test.hasOwnProperty('prototype');
  130. });
  131. var NATIVE_BIND$2 = functionBindNative;
  132. var call$5 = Function.prototype.call;
  133. var functionCall = NATIVE_BIND$2 ? call$5.bind(call$5) : function () {
  134. return call$5.apply(call$5, arguments);
  135. };
  136. var objectPropertyIsEnumerable = {};
  137. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  138. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  139. var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  140. // Nashorn ~ JDK8 bug
  141. var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  142. // `Object.prototype.propertyIsEnumerable` method implementation
  143. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  144. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  145. var descriptor = getOwnPropertyDescriptor$1(this, V);
  146. return !!descriptor && descriptor.enumerable;
  147. } : $propertyIsEnumerable;
  148. var createPropertyDescriptor$2 = function (bitmap, value) {
  149. return {
  150. enumerable: !(bitmap & 1),
  151. configurable: !(bitmap & 2),
  152. writable: !(bitmap & 4),
  153. value: value
  154. };
  155. };
  156. var NATIVE_BIND$1 = functionBindNative;
  157. var FunctionPrototype$1 = Function.prototype;
  158. var call$4 = FunctionPrototype$1.call;
  159. var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$4, call$4);
  160. var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
  161. return function () {
  162. return call$4.apply(fn, arguments);
  163. };
  164. };
  165. var uncurryThis$d = functionUncurryThis;
  166. var toString$2 = uncurryThis$d({}.toString);
  167. var stringSlice$1 = uncurryThis$d(''.slice);
  168. var classofRaw$2 = function (it) {
  169. return stringSlice$1(toString$2(it), 8, -1);
  170. };
  171. var uncurryThis$c = functionUncurryThis;
  172. var fails$7 = fails$a;
  173. var classof$4 = classofRaw$2;
  174. var $Object$3 = Object;
  175. var split = uncurryThis$c(''.split);
  176. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  177. var indexedObject = fails$7(function () {
  178. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  179. // eslint-disable-next-line no-prototype-builtins -- safe
  180. return !$Object$3('z').propertyIsEnumerable(0);
  181. }) ? function (it) {
  182. return classof$4(it) === 'String' ? split(it, '') : $Object$3(it);
  183. } : $Object$3;
  184. // we can't use just `it == null` since of `document.all` special case
  185. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  186. var isNullOrUndefined$2 = function (it) {
  187. return it === null || it === undefined;
  188. };
  189. var isNullOrUndefined$1 = isNullOrUndefined$2;
  190. var $TypeError$5 = TypeError;
  191. // `RequireObjectCoercible` abstract operation
  192. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  193. var requireObjectCoercible$2 = function (it) {
  194. if (isNullOrUndefined$1(it)) throw new $TypeError$5("Can't call method on " + it);
  195. return it;
  196. };
  197. // toObject with fallback for non-array-like ES3 strings
  198. var IndexedObject$2 = indexedObject;
  199. var requireObjectCoercible$1 = requireObjectCoercible$2;
  200. var toIndexedObject$4 = function (it) {
  201. return IndexedObject$2(requireObjectCoercible$1(it));
  202. };
  203. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  204. var documentAll = typeof document == 'object' && document.all;
  205. // `IsCallable` abstract operation
  206. // https://tc39.es/ecma262/#sec-iscallable
  207. // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
  208. var isCallable$c = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
  209. return typeof argument == 'function' || argument === documentAll;
  210. } : function (argument) {
  211. return typeof argument == 'function';
  212. };
  213. var isCallable$b = isCallable$c;
  214. var isObject$6 = function (it) {
  215. return typeof it == 'object' ? it !== null : isCallable$b(it);
  216. };
  217. var globalThis$b = globalThis_1;
  218. var isCallable$a = isCallable$c;
  219. var aFunction = function (argument) {
  220. return isCallable$a(argument) ? argument : undefined;
  221. };
  222. var getBuiltIn$4 = function (namespace, method) {
  223. return arguments.length < 2 ? aFunction(globalThis$b[namespace]) : globalThis$b[namespace] && globalThis$b[namespace][method];
  224. };
  225. var uncurryThis$b = functionUncurryThis;
  226. var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
  227. var globalThis$a = globalThis_1;
  228. var navigator = globalThis$a.navigator;
  229. var userAgent$1 = navigator && navigator.userAgent;
  230. var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
  231. var globalThis$9 = globalThis_1;
  232. var userAgent = environmentUserAgent;
  233. var process = globalThis$9.process;
  234. var Deno = globalThis$9.Deno;
  235. var versions = process && process.versions || Deno && Deno.version;
  236. var v8 = versions && versions.v8;
  237. var match, version;
  238. if (v8) {
  239. match = v8.split('.');
  240. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  241. // but their correct versions are not interesting for us
  242. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  243. }
  244. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  245. // so check `userAgent` even if `.v8` exists, but 0
  246. if (!version && userAgent) {
  247. match = userAgent.match(/Edge\/(\d+)/);
  248. if (!match || match[1] >= 74) {
  249. match = userAgent.match(/Chrome\/(\d+)/);
  250. if (match) version = +match[1];
  251. }
  252. }
  253. var environmentV8Version = version;
  254. /* eslint-disable es/no-symbol -- required for testing */
  255. var V8_VERSION = environmentV8Version;
  256. var fails$6 = fails$a;
  257. var globalThis$8 = globalThis_1;
  258. var $String$3 = globalThis$8.String;
  259. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  260. var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$6(function () {
  261. var symbol = Symbol('symbol detection');
  262. // Chrome 38 Symbol has incorrect toString conversion
  263. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  264. // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
  265. // of course, fail.
  266. return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) ||
  267. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  268. !Symbol.sham && V8_VERSION && V8_VERSION < 41;
  269. });
  270. /* eslint-disable es/no-symbol -- required for testing */
  271. var NATIVE_SYMBOL$1 = symbolConstructorDetection;
  272. var useSymbolAsUid = NATIVE_SYMBOL$1
  273. && !Symbol.sham
  274. && typeof Symbol.iterator == 'symbol';
  275. var getBuiltIn$3 = getBuiltIn$4;
  276. var isCallable$9 = isCallable$c;
  277. var isPrototypeOf = objectIsPrototypeOf;
  278. var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
  279. var $Object$2 = Object;
  280. var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
  281. return typeof it == 'symbol';
  282. } : function (it) {
  283. var $Symbol = getBuiltIn$3('Symbol');
  284. return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
  285. };
  286. var $String$2 = String;
  287. var tryToString$1 = function (argument) {
  288. try {
  289. return $String$2(argument);
  290. } catch (error) {
  291. return 'Object';
  292. }
  293. };
  294. var isCallable$8 = isCallable$c;
  295. var tryToString = tryToString$1;
  296. var $TypeError$4 = TypeError;
  297. // `Assert: IsCallable(argument) is true`
  298. var aCallable$2 = function (argument) {
  299. if (isCallable$8(argument)) return argument;
  300. throw new $TypeError$4(tryToString(argument) + ' is not a function');
  301. };
  302. var aCallable$1 = aCallable$2;
  303. var isNullOrUndefined = isNullOrUndefined$2;
  304. // `GetMethod` abstract operation
  305. // https://tc39.es/ecma262/#sec-getmethod
  306. var getMethod$1 = function (V, P) {
  307. var func = V[P];
  308. return isNullOrUndefined(func) ? undefined : aCallable$1(func);
  309. };
  310. var call$3 = functionCall;
  311. var isCallable$7 = isCallable$c;
  312. var isObject$5 = isObject$6;
  313. var $TypeError$3 = TypeError;
  314. // `OrdinaryToPrimitive` abstract operation
  315. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  316. var ordinaryToPrimitive$1 = function (input, pref) {
  317. var fn, val;
  318. if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$5(val = call$3(fn, input))) return val;
  319. if (isCallable$7(fn = input.valueOf) && !isObject$5(val = call$3(fn, input))) return val;
  320. if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$5(val = call$3(fn, input))) return val;
  321. throw new $TypeError$3("Can't convert object to primitive value");
  322. };
  323. var sharedStore = {exports: {}};
  324. var globalThis$7 = globalThis_1;
  325. // eslint-disable-next-line es/no-object-defineproperty -- safe
  326. var defineProperty$3 = Object.defineProperty;
  327. var defineGlobalProperty$3 = function (key, value) {
  328. try {
  329. defineProperty$3(globalThis$7, key, { value: value, configurable: true, writable: true });
  330. } catch (error) {
  331. globalThis$7[key] = value;
  332. } return value;
  333. };
  334. var globalThis$6 = globalThis_1;
  335. var defineGlobalProperty$2 = defineGlobalProperty$3;
  336. var SHARED = '__core-js_shared__';
  337. var store$3 = sharedStore.exports = globalThis$6[SHARED] || defineGlobalProperty$2(SHARED, {});
  338. (store$3.versions || (store$3.versions = [])).push({
  339. version: '3.38.1',
  340. mode: 'global',
  341. copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
  342. license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE',
  343. source: 'https://github.com/zloirock/core-js'
  344. });
  345. var sharedStoreExports = sharedStore.exports;
  346. var store$2 = sharedStoreExports;
  347. var shared$3 = function (key, value) {
  348. return store$2[key] || (store$2[key] = value || {});
  349. };
  350. var requireObjectCoercible = requireObjectCoercible$2;
  351. var $Object$1 = Object;
  352. // `ToObject` abstract operation
  353. // https://tc39.es/ecma262/#sec-toobject
  354. var toObject$3 = function (argument) {
  355. return $Object$1(requireObjectCoercible(argument));
  356. };
  357. var uncurryThis$a = functionUncurryThis;
  358. var toObject$2 = toObject$3;
  359. var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
  360. // `HasOwnProperty` abstract operation
  361. // https://tc39.es/ecma262/#sec-hasownproperty
  362. // eslint-disable-next-line es/no-object-hasown -- safe
  363. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  364. return hasOwnProperty(toObject$2(it), key);
  365. };
  366. var uncurryThis$9 = functionUncurryThis;
  367. var id = 0;
  368. var postfix = Math.random();
  369. var toString$1 = uncurryThis$9(1.0.toString);
  370. var uid$2 = function (key) {
  371. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$1(++id + postfix, 36);
  372. };
  373. var globalThis$5 = globalThis_1;
  374. var shared$2 = shared$3;
  375. var hasOwn$6 = hasOwnProperty_1;
  376. var uid$1 = uid$2;
  377. var NATIVE_SYMBOL = symbolConstructorDetection;
  378. var USE_SYMBOL_AS_UID = useSymbolAsUid;
  379. var Symbol$1 = globalThis$5.Symbol;
  380. var WellKnownSymbolsStore = shared$2('wks');
  381. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
  382. var wellKnownSymbol$5 = function (name) {
  383. if (!hasOwn$6(WellKnownSymbolsStore, name)) {
  384. WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
  385. ? Symbol$1[name]
  386. : createWellKnownSymbol('Symbol.' + name);
  387. } return WellKnownSymbolsStore[name];
  388. };
  389. var call$2 = functionCall;
  390. var isObject$4 = isObject$6;
  391. var isSymbol$1 = isSymbol$2;
  392. var getMethod = getMethod$1;
  393. var ordinaryToPrimitive = ordinaryToPrimitive$1;
  394. var wellKnownSymbol$4 = wellKnownSymbol$5;
  395. var $TypeError$2 = TypeError;
  396. var TO_PRIMITIVE = wellKnownSymbol$4('toPrimitive');
  397. // `ToPrimitive` abstract operation
  398. // https://tc39.es/ecma262/#sec-toprimitive
  399. var toPrimitive$1 = function (input, pref) {
  400. if (!isObject$4(input) || isSymbol$1(input)) return input;
  401. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  402. var result;
  403. if (exoticToPrim) {
  404. if (pref === undefined) pref = 'default';
  405. result = call$2(exoticToPrim, input, pref);
  406. if (!isObject$4(result) || isSymbol$1(result)) return result;
  407. throw new $TypeError$2("Can't convert object to primitive value");
  408. }
  409. if (pref === undefined) pref = 'number';
  410. return ordinaryToPrimitive(input, pref);
  411. };
  412. var toPrimitive = toPrimitive$1;
  413. var isSymbol = isSymbol$2;
  414. // `ToPropertyKey` abstract operation
  415. // https://tc39.es/ecma262/#sec-topropertykey
  416. var toPropertyKey$2 = function (argument) {
  417. var key = toPrimitive(argument, 'string');
  418. return isSymbol(key) ? key : key + '';
  419. };
  420. var globalThis$4 = globalThis_1;
  421. var isObject$3 = isObject$6;
  422. var document$1 = globalThis$4.document;
  423. // typeof document.createElement is 'object' in old IE
  424. var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
  425. var documentCreateElement$1 = function (it) {
  426. return EXISTS$1 ? document$1.createElement(it) : {};
  427. };
  428. var DESCRIPTORS$8 = descriptors;
  429. var fails$5 = fails$a;
  430. var createElement = documentCreateElement$1;
  431. // Thanks to IE8 for its funny defineProperty
  432. var ie8DomDefine = !DESCRIPTORS$8 && !fails$5(function () {
  433. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  434. return Object.defineProperty(createElement('div'), 'a', {
  435. get: function () { return 7; }
  436. }).a !== 7;
  437. });
  438. var DESCRIPTORS$7 = descriptors;
  439. var call$1 = functionCall;
  440. var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
  441. var createPropertyDescriptor$1 = createPropertyDescriptor$2;
  442. var toIndexedObject$3 = toIndexedObject$4;
  443. var toPropertyKey$1 = toPropertyKey$2;
  444. var hasOwn$5 = hasOwnProperty_1;
  445. var IE8_DOM_DEFINE$1 = ie8DomDefine;
  446. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  447. var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  448. // `Object.getOwnPropertyDescriptor` method
  449. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  450. objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
  451. O = toIndexedObject$3(O);
  452. P = toPropertyKey$1(P);
  453. if (IE8_DOM_DEFINE$1) try {
  454. return $getOwnPropertyDescriptor$1(O, P);
  455. } catch (error) { /* empty */ }
  456. if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
  457. };
  458. var objectDefineProperty = {};
  459. var DESCRIPTORS$6 = descriptors;
  460. var fails$4 = fails$a;
  461. // V8 ~ Chrome 36-
  462. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  463. var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$4(function () {
  464. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  465. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  466. value: 42,
  467. writable: false
  468. }).prototype !== 42;
  469. });
  470. var isObject$2 = isObject$6;
  471. var $String$1 = String;
  472. var $TypeError$1 = TypeError;
  473. // `Assert: Type(argument) is Object`
  474. var anObject$4 = function (argument) {
  475. if (isObject$2(argument)) return argument;
  476. throw new $TypeError$1($String$1(argument) + ' is not an object');
  477. };
  478. var DESCRIPTORS$5 = descriptors;
  479. var IE8_DOM_DEFINE = ie8DomDefine;
  480. var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
  481. var anObject$3 = anObject$4;
  482. var toPropertyKey = toPropertyKey$2;
  483. var $TypeError = TypeError;
  484. // eslint-disable-next-line es/no-object-defineproperty -- safe
  485. var $defineProperty = Object.defineProperty;
  486. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  487. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  488. var ENUMERABLE = 'enumerable';
  489. var CONFIGURABLE$1 = 'configurable';
  490. var WRITABLE = 'writable';
  491. // `Object.defineProperty` method
  492. // https://tc39.es/ecma262/#sec-object.defineproperty
  493. objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
  494. anObject$3(O);
  495. P = toPropertyKey(P);
  496. anObject$3(Attributes);
  497. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  498. var current = $getOwnPropertyDescriptor(O, P);
  499. if (current && current[WRITABLE]) {
  500. O[P] = Attributes.value;
  501. Attributes = {
  502. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  503. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  504. writable: false
  505. };
  506. }
  507. } return $defineProperty(O, P, Attributes);
  508. } : $defineProperty : function defineProperty(O, P, Attributes) {
  509. anObject$3(O);
  510. P = toPropertyKey(P);
  511. anObject$3(Attributes);
  512. if (IE8_DOM_DEFINE) try {
  513. return $defineProperty(O, P, Attributes);
  514. } catch (error) { /* empty */ }
  515. if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
  516. if ('value' in Attributes) O[P] = Attributes.value;
  517. return O;
  518. };
  519. var DESCRIPTORS$4 = descriptors;
  520. var definePropertyModule$3 = objectDefineProperty;
  521. var createPropertyDescriptor = createPropertyDescriptor$2;
  522. var createNonEnumerableProperty$2 = DESCRIPTORS$4 ? function (object, key, value) {
  523. return definePropertyModule$3.f(object, key, createPropertyDescriptor(1, value));
  524. } : function (object, key, value) {
  525. object[key] = value;
  526. return object;
  527. };
  528. var makeBuiltIn$2 = {exports: {}};
  529. var DESCRIPTORS$3 = descriptors;
  530. var hasOwn$4 = hasOwnProperty_1;
  531. var FunctionPrototype = Function.prototype;
  532. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  533. var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
  534. var EXISTS = hasOwn$4(FunctionPrototype, 'name');
  535. // additional protection from minified / mangled / dropped function names
  536. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  537. var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype, 'name').configurable));
  538. var functionName = {
  539. EXISTS: EXISTS,
  540. PROPER: PROPER,
  541. CONFIGURABLE: CONFIGURABLE
  542. };
  543. var uncurryThis$8 = functionUncurryThis;
  544. var isCallable$6 = isCallable$c;
  545. var store$1 = sharedStoreExports;
  546. var functionToString = uncurryThis$8(Function.toString);
  547. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  548. if (!isCallable$6(store$1.inspectSource)) {
  549. store$1.inspectSource = function (it) {
  550. return functionToString(it);
  551. };
  552. }
  553. var inspectSource$2 = store$1.inspectSource;
  554. var globalThis$3 = globalThis_1;
  555. var isCallable$5 = isCallable$c;
  556. var WeakMap$1 = globalThis$3.WeakMap;
  557. var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1));
  558. var shared$1 = shared$3;
  559. var uid = uid$2;
  560. var keys = shared$1('keys');
  561. var sharedKey$2 = function (key) {
  562. return keys[key] || (keys[key] = uid(key));
  563. };
  564. var hiddenKeys$4 = {};
  565. var NATIVE_WEAK_MAP = weakMapBasicDetection;
  566. var globalThis$2 = globalThis_1;
  567. var isObject$1 = isObject$6;
  568. var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
  569. var hasOwn$3 = hasOwnProperty_1;
  570. var shared = sharedStoreExports;
  571. var sharedKey$1 = sharedKey$2;
  572. var hiddenKeys$3 = hiddenKeys$4;
  573. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  574. var TypeError$1 = globalThis$2.TypeError;
  575. var WeakMap = globalThis$2.WeakMap;
  576. var set, get, has;
  577. var enforce = function (it) {
  578. return has(it) ? get(it) : set(it, {});
  579. };
  580. var getterFor = function (TYPE) {
  581. return function (it) {
  582. var state;
  583. if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
  584. throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
  585. } return state;
  586. };
  587. };
  588. if (NATIVE_WEAK_MAP || shared.state) {
  589. var store = shared.state || (shared.state = new WeakMap());
  590. /* eslint-disable no-self-assign -- prototype methods protection */
  591. store.get = store.get;
  592. store.has = store.has;
  593. store.set = store.set;
  594. /* eslint-enable no-self-assign -- prototype methods protection */
  595. set = function (it, metadata) {
  596. if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  597. metadata.facade = it;
  598. store.set(it, metadata);
  599. return metadata;
  600. };
  601. get = function (it) {
  602. return store.get(it) || {};
  603. };
  604. has = function (it) {
  605. return store.has(it);
  606. };
  607. } else {
  608. var STATE = sharedKey$1('state');
  609. hiddenKeys$3[STATE] = true;
  610. set = function (it, metadata) {
  611. if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  612. metadata.facade = it;
  613. createNonEnumerableProperty$1(it, STATE, metadata);
  614. return metadata;
  615. };
  616. get = function (it) {
  617. return hasOwn$3(it, STATE) ? it[STATE] : {};
  618. };
  619. has = function (it) {
  620. return hasOwn$3(it, STATE);
  621. };
  622. }
  623. var internalState = {
  624. set: set,
  625. get: get,
  626. has: has,
  627. enforce: enforce,
  628. getterFor: getterFor
  629. };
  630. var uncurryThis$7 = functionUncurryThis;
  631. var fails$3 = fails$a;
  632. var isCallable$4 = isCallable$c;
  633. var hasOwn$2 = hasOwnProperty_1;
  634. var DESCRIPTORS$2 = descriptors;
  635. var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
  636. var inspectSource$1 = inspectSource$2;
  637. var InternalStateModule = internalState;
  638. var enforceInternalState = InternalStateModule.enforce;
  639. var getInternalState = InternalStateModule.get;
  640. var $String = String;
  641. // eslint-disable-next-line es/no-object-defineproperty -- safe
  642. var defineProperty$2 = Object.defineProperty;
  643. var stringSlice = uncurryThis$7(''.slice);
  644. var replace = uncurryThis$7(''.replace);
  645. var join = uncurryThis$7([].join);
  646. var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$3(function () {
  647. return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  648. });
  649. var TEMPLATE = String(String).split('String');
  650. var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
  651. if (stringSlice($String(name), 0, 7) === 'Symbol(') {
  652. name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
  653. }
  654. if (options && options.getter) name = 'get ' + name;
  655. if (options && options.setter) name = 'set ' + name;
  656. if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  657. if (DESCRIPTORS$2) defineProperty$2(value, 'name', { value: name, configurable: true });
  658. else value.name = name;
  659. }
  660. if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
  661. defineProperty$2(value, 'length', { value: options.arity });
  662. }
  663. try {
  664. if (options && hasOwn$2(options, 'constructor') && options.constructor) {
  665. if (DESCRIPTORS$2) defineProperty$2(value, 'prototype', { writable: false });
  666. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  667. } else if (value.prototype) value.prototype = undefined;
  668. } catch (error) { /* empty */ }
  669. var state = enforceInternalState(value);
  670. if (!hasOwn$2(state, 'source')) {
  671. state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
  672. } return value;
  673. };
  674. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  675. // eslint-disable-next-line no-extend-native -- required
  676. Function.prototype.toString = makeBuiltIn$1(function toString() {
  677. return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this);
  678. }, 'toString');
  679. var makeBuiltInExports = makeBuiltIn$2.exports;
  680. var isCallable$3 = isCallable$c;
  681. var definePropertyModule$2 = objectDefineProperty;
  682. var makeBuiltIn = makeBuiltInExports;
  683. var defineGlobalProperty$1 = defineGlobalProperty$3;
  684. var defineBuiltIn$2 = function (O, key, value, options) {
  685. if (!options) options = {};
  686. var simple = options.enumerable;
  687. var name = options.name !== undefined ? options.name : key;
  688. if (isCallable$3(value)) makeBuiltIn(value, name, options);
  689. if (options.global) {
  690. if (simple) O[key] = value;
  691. else defineGlobalProperty$1(key, value);
  692. } else {
  693. try {
  694. if (!options.unsafe) delete O[key];
  695. else if (O[key]) simple = true;
  696. } catch (error) { /* empty */ }
  697. if (simple) O[key] = value;
  698. else definePropertyModule$2.f(O, key, {
  699. value: value,
  700. enumerable: false,
  701. configurable: !options.nonConfigurable,
  702. writable: !options.nonWritable
  703. });
  704. } return O;
  705. };
  706. var objectGetOwnPropertyNames = {};
  707. var ceil = Math.ceil;
  708. var floor = Math.floor;
  709. // `Math.trunc` method
  710. // https://tc39.es/ecma262/#sec-math.trunc
  711. // eslint-disable-next-line es/no-math-trunc -- safe
  712. var mathTrunc = Math.trunc || function trunc(x) {
  713. var n = +x;
  714. return (n > 0 ? floor : ceil)(n);
  715. };
  716. var trunc = mathTrunc;
  717. // `ToIntegerOrInfinity` abstract operation
  718. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  719. var toIntegerOrInfinity$2 = function (argument) {
  720. var number = +argument;
  721. // eslint-disable-next-line no-self-compare -- NaN check
  722. return number !== number || number === 0 ? 0 : trunc(number);
  723. };
  724. var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
  725. var max = Math.max;
  726. var min$1 = Math.min;
  727. // Helper for a popular repeating case of the spec:
  728. // Let integer be ? ToInteger(index).
  729. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  730. var toAbsoluteIndex$1 = function (index, length) {
  731. var integer = toIntegerOrInfinity$1(index);
  732. return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
  733. };
  734. var toIntegerOrInfinity = toIntegerOrInfinity$2;
  735. var min = Math.min;
  736. // `ToLength` abstract operation
  737. // https://tc39.es/ecma262/#sec-tolength
  738. var toLength$1 = function (argument) {
  739. var len = toIntegerOrInfinity(argument);
  740. return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  741. };
  742. var toLength = toLength$1;
  743. // `LengthOfArrayLike` abstract operation
  744. // https://tc39.es/ecma262/#sec-lengthofarraylike
  745. var lengthOfArrayLike$2 = function (obj) {
  746. return toLength(obj.length);
  747. };
  748. var toIndexedObject$2 = toIndexedObject$4;
  749. var toAbsoluteIndex = toAbsoluteIndex$1;
  750. var lengthOfArrayLike$1 = lengthOfArrayLike$2;
  751. // `Array.prototype.{ indexOf, includes }` methods implementation
  752. var createMethod$1 = function (IS_INCLUDES) {
  753. return function ($this, el, fromIndex) {
  754. var O = toIndexedObject$2($this);
  755. var length = lengthOfArrayLike$1(O);
  756. if (length === 0) return !IS_INCLUDES && -1;
  757. var index = toAbsoluteIndex(fromIndex, length);
  758. var value;
  759. // Array#includes uses SameValueZero equality algorithm
  760. // eslint-disable-next-line no-self-compare -- NaN check
  761. if (IS_INCLUDES && el !== el) while (length > index) {
  762. value = O[index++];
  763. // eslint-disable-next-line no-self-compare -- NaN check
  764. if (value !== value) return true;
  765. // Array#indexOf ignores holes, Array#includes - not
  766. } else for (;length > index; index++) {
  767. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  768. } return !IS_INCLUDES && -1;
  769. };
  770. };
  771. var arrayIncludes = {
  772. // `Array.prototype.includes` method
  773. // https://tc39.es/ecma262/#sec-array.prototype.includes
  774. includes: createMethod$1(true),
  775. // `Array.prototype.indexOf` method
  776. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  777. indexOf: createMethod$1(false)
  778. };
  779. var uncurryThis$6 = functionUncurryThis;
  780. var hasOwn$1 = hasOwnProperty_1;
  781. var toIndexedObject$1 = toIndexedObject$4;
  782. var indexOf = arrayIncludes.indexOf;
  783. var hiddenKeys$2 = hiddenKeys$4;
  784. var push$1 = uncurryThis$6([].push);
  785. var objectKeysInternal = function (object, names) {
  786. var O = toIndexedObject$1(object);
  787. var i = 0;
  788. var result = [];
  789. var key;
  790. for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$1(result, key);
  791. // Don't enum bug & hidden keys
  792. while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
  793. ~indexOf(result, key) || push$1(result, key);
  794. }
  795. return result;
  796. };
  797. // IE8- don't enum bug keys
  798. var enumBugKeys$3 = [
  799. 'constructor',
  800. 'hasOwnProperty',
  801. 'isPrototypeOf',
  802. 'propertyIsEnumerable',
  803. 'toLocaleString',
  804. 'toString',
  805. 'valueOf'
  806. ];
  807. var internalObjectKeys$1 = objectKeysInternal;
  808. var enumBugKeys$2 = enumBugKeys$3;
  809. var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
  810. // `Object.getOwnPropertyNames` method
  811. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  812. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  813. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  814. return internalObjectKeys$1(O, hiddenKeys$1);
  815. };
  816. var objectGetOwnPropertySymbols = {};
  817. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  818. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  819. var getBuiltIn$2 = getBuiltIn$4;
  820. var uncurryThis$5 = functionUncurryThis;
  821. var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
  822. var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
  823. var anObject$2 = anObject$4;
  824. var concat$1 = uncurryThis$5([].concat);
  825. // all object keys, includes non-enumerable and symbols
  826. var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
  827. var keys = getOwnPropertyNamesModule.f(anObject$2(it));
  828. var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
  829. return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
  830. };
  831. var hasOwn = hasOwnProperty_1;
  832. var ownKeys = ownKeys$1;
  833. var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
  834. var definePropertyModule$1 = objectDefineProperty;
  835. var copyConstructorProperties$1 = function (target, source, exceptions) {
  836. var keys = ownKeys(source);
  837. var defineProperty = definePropertyModule$1.f;
  838. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  839. for (var i = 0; i < keys.length; i++) {
  840. var key = keys[i];
  841. if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
  842. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  843. }
  844. }
  845. };
  846. var fails$2 = fails$a;
  847. var isCallable$2 = isCallable$c;
  848. var replacement = /#|\.prototype\./;
  849. var isForced$1 = function (feature, detection) {
  850. var value = data[normalize(feature)];
  851. return value === POLYFILL ? true
  852. : value === NATIVE ? false
  853. : isCallable$2(detection) ? fails$2(detection)
  854. : !!detection;
  855. };
  856. var normalize = isForced$1.normalize = function (string) {
  857. return String(string).replace(replacement, '.').toLowerCase();
  858. };
  859. var data = isForced$1.data = {};
  860. var NATIVE = isForced$1.NATIVE = 'N';
  861. var POLYFILL = isForced$1.POLYFILL = 'P';
  862. var isForced_1 = isForced$1;
  863. var globalThis$1 = globalThis_1;
  864. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  865. var createNonEnumerableProperty = createNonEnumerableProperty$2;
  866. var defineBuiltIn$1 = defineBuiltIn$2;
  867. var defineGlobalProperty = defineGlobalProperty$3;
  868. var copyConstructorProperties = copyConstructorProperties$1;
  869. var isForced = isForced_1;
  870. /*
  871. options.target - name of the target object
  872. options.global - target is the global object
  873. options.stat - export as static methods of target
  874. options.proto - export as prototype methods of target
  875. options.real - real prototype method for the `pure` version
  876. options.forced - export even if the native feature is available
  877. options.bind - bind methods to the target, required for the `pure` version
  878. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  879. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  880. options.sham - add a flag to not completely full polyfills
  881. options.enumerable - export as enumerable property
  882. options.dontCallGetSet - prevent calling a getter on target
  883. options.name - the .name of the function if it does not match the key
  884. */
  885. var _export = function (options, source) {
  886. var TARGET = options.target;
  887. var GLOBAL = options.global;
  888. var STATIC = options.stat;
  889. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  890. if (GLOBAL) {
  891. target = globalThis$1;
  892. } else if (STATIC) {
  893. target = globalThis$1[TARGET] || defineGlobalProperty(TARGET, {});
  894. } else {
  895. target = globalThis$1[TARGET] && globalThis$1[TARGET].prototype;
  896. }
  897. if (target) for (key in source) {
  898. sourceProperty = source[key];
  899. if (options.dontCallGetSet) {
  900. descriptor = getOwnPropertyDescriptor(target, key);
  901. targetProperty = descriptor && descriptor.value;
  902. } else targetProperty = target[key];
  903. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  904. // contained in target
  905. if (!FORCED && targetProperty !== undefined) {
  906. if (typeof sourceProperty == typeof targetProperty) continue;
  907. copyConstructorProperties(sourceProperty, targetProperty);
  908. }
  909. // add a flag to not completely full polyfills
  910. if (options.sham || (targetProperty && targetProperty.sham)) {
  911. createNonEnumerableProperty(sourceProperty, 'sham', true);
  912. }
  913. defineBuiltIn$1(target, key, sourceProperty, options);
  914. }
  915. };
  916. var classofRaw$1 = classofRaw$2;
  917. var uncurryThis$4 = functionUncurryThis;
  918. var functionUncurryThisClause = function (fn) {
  919. // Nashorn bug:
  920. // https://github.com/zloirock/core-js/issues/1128
  921. // https://github.com/zloirock/core-js/issues/1130
  922. if (classofRaw$1(fn) === 'Function') return uncurryThis$4(fn);
  923. };
  924. var uncurryThis$3 = functionUncurryThisClause;
  925. var aCallable = aCallable$2;
  926. var NATIVE_BIND = functionBindNative;
  927. var bind$1 = uncurryThis$3(uncurryThis$3.bind);
  928. // optional / simple context binding
  929. var functionBindContext = function (fn, that) {
  930. aCallable(fn);
  931. return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
  932. return fn.apply(that, arguments);
  933. };
  934. };
  935. var classof$3 = classofRaw$2;
  936. // `IsArray` abstract operation
  937. // https://tc39.es/ecma262/#sec-isarray
  938. // eslint-disable-next-line es/no-array-isarray -- safe
  939. var isArray$1 = Array.isArray || function isArray(argument) {
  940. return classof$3(argument) === 'Array';
  941. };
  942. var wellKnownSymbol$3 = wellKnownSymbol$5;
  943. var TO_STRING_TAG$1 = wellKnownSymbol$3('toStringTag');
  944. var test = {};
  945. test[TO_STRING_TAG$1] = 'z';
  946. var toStringTagSupport = String(test) === '[object z]';
  947. var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
  948. var isCallable$1 = isCallable$c;
  949. var classofRaw = classofRaw$2;
  950. var wellKnownSymbol$2 = wellKnownSymbol$5;
  951. var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
  952. var $Object = Object;
  953. // ES3 wrong here
  954. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
  955. // fallback for IE11 Script Access Denied error
  956. var tryGet = function (it, key) {
  957. try {
  958. return it[key];
  959. } catch (error) { /* empty */ }
  960. };
  961. // getting tag from ES6+ `Object.prototype.toString`
  962. var classof$2 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
  963. var O, tag, result;
  964. return it === undefined ? 'Undefined' : it === null ? 'Null'
  965. // @@toStringTag case
  966. : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
  967. // builtinTag case
  968. : CORRECT_ARGUMENTS ? classofRaw(O)
  969. // ES3 arguments fallback
  970. : (result = classofRaw(O)) === 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
  971. };
  972. var uncurryThis$2 = functionUncurryThis;
  973. var fails$1 = fails$a;
  974. var isCallable = isCallable$c;
  975. var classof$1 = classof$2;
  976. var getBuiltIn$1 = getBuiltIn$4;
  977. var inspectSource = inspectSource$2;
  978. var noop = function () { /* empty */ };
  979. var construct = getBuiltIn$1('Reflect', 'construct');
  980. var constructorRegExp = /^\s*(?:class|function)\b/;
  981. var exec = uncurryThis$2(constructorRegExp.exec);
  982. var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
  983. var isConstructorModern = function isConstructor(argument) {
  984. if (!isCallable(argument)) return false;
  985. try {
  986. construct(noop, [], argument);
  987. return true;
  988. } catch (error) {
  989. return false;
  990. }
  991. };
  992. var isConstructorLegacy = function isConstructor(argument) {
  993. if (!isCallable(argument)) return false;
  994. switch (classof$1(argument)) {
  995. case 'AsyncFunction':
  996. case 'GeneratorFunction':
  997. case 'AsyncGeneratorFunction': return false;
  998. }
  999. try {
  1000. // we can't check .prototype since constructors produced by .bind haven't it
  1001. // `Function#toString` throws on some built-it function in some legacy engines
  1002. // (for example, `DOMQuad` and similar in FF41-)
  1003. return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
  1004. } catch (error) {
  1005. return true;
  1006. }
  1007. };
  1008. isConstructorLegacy.sham = true;
  1009. // `IsConstructor` abstract operation
  1010. // https://tc39.es/ecma262/#sec-isconstructor
  1011. var isConstructor$1 = !construct || fails$1(function () {
  1012. var called;
  1013. return isConstructorModern(isConstructorModern.call)
  1014. || !isConstructorModern(Object)
  1015. || !isConstructorModern(function () { called = true; })
  1016. || called;
  1017. }) ? isConstructorLegacy : isConstructorModern;
  1018. var isArray = isArray$1;
  1019. var isConstructor = isConstructor$1;
  1020. var isObject = isObject$6;
  1021. var wellKnownSymbol$1 = wellKnownSymbol$5;
  1022. var SPECIES = wellKnownSymbol$1('species');
  1023. var $Array = 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(originalArray)) {
  1029. C = originalArray.constructor;
  1030. // cross-realm fallback
  1031. if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;
  1032. else if (isObject(C)) {
  1033. C = C[SPECIES];
  1034. if (C === null) C = undefined;
  1035. }
  1036. } return C === undefined ? $Array : C;
  1037. };
  1038. var arraySpeciesConstructor = arraySpeciesConstructor$1;
  1039. // `ArraySpeciesCreate` abstract operation
  1040. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1041. var arraySpeciesCreate$1 = function (originalArray, length) {
  1042. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1043. };
  1044. var bind = functionBindContext;
  1045. var uncurryThis$1 = functionUncurryThis;
  1046. var IndexedObject$1 = indexedObject;
  1047. var toObject$1 = toObject$3;
  1048. var lengthOfArrayLike = lengthOfArrayLike$2;
  1049. var arraySpeciesCreate = arraySpeciesCreate$1;
  1050. var push = uncurryThis$1([].push);
  1051. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  1052. var createMethod = 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$1(O);
  1063. var length = lengthOfArrayLike(self);
  1064. var boundFunction = bind(callbackfn, that);
  1065. var index = 0;
  1066. var create = specificCreate || arraySpeciesCreate;
  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(0),
  1092. // `Array.prototype.map` method
  1093. // https://tc39.es/ecma262/#sec-array.prototype.map
  1094. map: createMethod(1),
  1095. // `Array.prototype.filter` method
  1096. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1097. filter: createMethod(2),
  1098. // `Array.prototype.some` method
  1099. // https://tc39.es/ecma262/#sec-array.prototype.some
  1100. some: createMethod(3),
  1101. // `Array.prototype.every` method
  1102. // https://tc39.es/ecma262/#sec-array.prototype.every
  1103. every: createMethod(4),
  1104. // `Array.prototype.find` method
  1105. // https://tc39.es/ecma262/#sec-array.prototype.find
  1106. find: createMethod(5),
  1107. // `Array.prototype.findIndex` method
  1108. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  1109. findIndex: createMethod(6),
  1110. // `Array.prototype.filterReject` method
  1111. // https://github.com/tc39/proposal-array-filtering
  1112. filterReject: createMethod(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/no-object-keys -- safe
  1120. var objectKeys$2 = Object.keys || function keys(O) {
  1121. return internalObjectKeys(O, enumBugKeys$1);
  1122. };
  1123. var DESCRIPTORS$1 = descriptors;
  1124. var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
  1125. var definePropertyModule = objectDefineProperty;
  1126. var anObject$1 = anObject$4;
  1127. var toIndexedObject = toIndexedObject$4;
  1128. var objectKeys$1 = objectKeys$2;
  1129. // `Object.defineProperties` method
  1130. // https://tc39.es/ecma262/#sec-object.defineproperties
  1131. // eslint-disable-next-line es/no-object-defineproperties -- safe
  1132. objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
  1133. anObject$1(O);
  1134. var props = toIndexedObject(Properties);
  1135. var keys = objectKeys$1(Properties);
  1136. var length = keys.length;
  1137. var index = 0;
  1138. var key;
  1139. while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
  1140. return O;
  1141. };
  1142. var getBuiltIn = getBuiltIn$4;
  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. // eslint-disable-next-line no-useless-assignment -- avoid memory leak
  1167. activeXDocument = null;
  1168. return temp;
  1169. };
  1170. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  1171. var NullProtoObjectViaIFrame = function () {
  1172. // Thrash, waste and sodomy: IE GC bug
  1173. var iframe = documentCreateElement('iframe');
  1174. var JS = 'java' + SCRIPT + ':';
  1175. var iframeDocument;
  1176. iframe.style.display = 'none';
  1177. html.appendChild(iframe);
  1178. // https://github.com/zloirock/core-js/issues/475
  1179. iframe.src = String(JS);
  1180. iframeDocument = iframe.contentWindow.document;
  1181. iframeDocument.open();
  1182. iframeDocument.write(scriptTag('document.F=Object'));
  1183. iframeDocument.close();
  1184. return iframeDocument.F;
  1185. };
  1186. // Check for document.domain and active x support
  1187. // No need to use active x approach when document.domain is not set
  1188. // see https://github.com/es-shims/es5-shim/issues/150
  1189. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  1190. // avoid IE GC bug
  1191. var activeXDocument;
  1192. var NullProtoObject = function () {
  1193. try {
  1194. activeXDocument = new ActiveXObject('htmlfile');
  1195. } catch (error) { /* ignore */ }
  1196. NullProtoObject = typeof document != 'undefined'
  1197. ? document.domain && activeXDocument
  1198. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  1199. : NullProtoObjectViaIFrame()
  1200. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  1201. var length = enumBugKeys.length;
  1202. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  1203. return NullProtoObject();
  1204. };
  1205. hiddenKeys[IE_PROTO] = true;
  1206. // `Object.create` method
  1207. // https://tc39.es/ecma262/#sec-object.create
  1208. // eslint-disable-next-line es/no-object-create -- safe
  1209. var objectCreate = Object.create || function create(O, Properties) {
  1210. var result;
  1211. if (O !== null) {
  1212. EmptyConstructor[PROTOTYPE] = anObject(O);
  1213. result = new EmptyConstructor();
  1214. EmptyConstructor[PROTOTYPE] = null;
  1215. // add "__proto__" for Object.getPrototypeOf polyfill
  1216. result[IE_PROTO] = O;
  1217. } else result = NullProtoObject();
  1218. return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
  1219. };
  1220. var wellKnownSymbol = wellKnownSymbol$5;
  1221. var create = objectCreate;
  1222. var defineProperty$1 = objectDefineProperty.f;
  1223. var UNSCOPABLES = wellKnownSymbol('unscopables');
  1224. var ArrayPrototype = Array.prototype;
  1225. // Array.prototype[@@unscopables]
  1226. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1227. if (ArrayPrototype[UNSCOPABLES] === undefined) {
  1228. defineProperty$1(ArrayPrototype, UNSCOPABLES, {
  1229. configurable: true,
  1230. value: create(null)
  1231. });
  1232. }
  1233. // add a key to Array.prototype[@@unscopables]
  1234. var addToUnscopables$1 = function (key) {
  1235. ArrayPrototype[UNSCOPABLES][key] = true;
  1236. };
  1237. var $$1 = _export;
  1238. var $find = arrayIteration.find;
  1239. var addToUnscopables = addToUnscopables$1;
  1240. var FIND = 'find';
  1241. var SKIPS_HOLES = true;
  1242. // Shouldn't skip holes
  1243. // eslint-disable-next-line es/no-array-prototype-find -- testing
  1244. if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
  1245. // `Array.prototype.find` method
  1246. // https://tc39.es/ecma262/#sec-array.prototype.find
  1247. $$1({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
  1248. find: function find(callbackfn /* , that = undefined */) {
  1249. return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1250. }
  1251. });
  1252. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1253. addToUnscopables(FIND);
  1254. var DESCRIPTORS = descriptors;
  1255. var uncurryThis = functionUncurryThis;
  1256. var call = functionCall;
  1257. var fails = fails$a;
  1258. var objectKeys = objectKeys$2;
  1259. var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
  1260. var propertyIsEnumerableModule = objectPropertyIsEnumerable;
  1261. var toObject = toObject$3;
  1262. var IndexedObject = indexedObject;
  1263. // eslint-disable-next-line es/no-object-assign -- safe
  1264. var $assign = Object.assign;
  1265. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  1266. var defineProperty = Object.defineProperty;
  1267. var concat = uncurryThis([].concat);
  1268. // `Object.assign` method
  1269. // https://tc39.es/ecma262/#sec-object.assign
  1270. var objectAssign = !$assign || fails(function () {
  1271. // should have correct order of operations (Edge bug)
  1272. if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
  1273. enumerable: true,
  1274. get: function () {
  1275. defineProperty(this, 'b', {
  1276. value: 3,
  1277. enumerable: false
  1278. });
  1279. }
  1280. }), { b: 2 })).b !== 1) return true;
  1281. // should work with symbols and should have deterministic property order (V8 bug)
  1282. var A = {};
  1283. var B = {};
  1284. // eslint-disable-next-line es/no-symbol -- safe
  1285. var symbol = Symbol('assign detection');
  1286. var alphabet = 'abcdefghijklmnopqrst';
  1287. A[symbol] = 7;
  1288. alphabet.split('').forEach(function (chr) { B[chr] = chr; });
  1289. return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
  1290. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
  1291. var T = toObject(target);
  1292. var argumentsLength = arguments.length;
  1293. var index = 1;
  1294. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  1295. var propertyIsEnumerable = propertyIsEnumerableModule.f;
  1296. while (argumentsLength > index) {
  1297. var S = IndexedObject(arguments[index++]);
  1298. var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
  1299. var length = keys.length;
  1300. var j = 0;
  1301. var key;
  1302. while (length > j) {
  1303. key = keys[j++];
  1304. if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
  1305. }
  1306. } return T;
  1307. } : $assign;
  1308. var $ = _export;
  1309. var assign = objectAssign;
  1310. // `Object.assign` method
  1311. // https://tc39.es/ecma262/#sec-object.assign
  1312. // eslint-disable-next-line es/no-object-assign -- required for testing
  1313. $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
  1314. assign: assign
  1315. });
  1316. var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
  1317. var classof = classof$2;
  1318. // `Object.prototype.toString` method implementation
  1319. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1320. var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
  1321. return '[object ' + classof(this) + ']';
  1322. };
  1323. var TO_STRING_TAG_SUPPORT = toStringTagSupport;
  1324. var defineBuiltIn = defineBuiltIn$2;
  1325. var toString = objectToString;
  1326. // `Object.prototype.toString` method
  1327. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1328. if (!TO_STRING_TAG_SUPPORT) {
  1329. defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });
  1330. }
  1331. /**
  1332. * @author vincent loh <vincent.ml@gmail.com>
  1333. * @update J Manuel Corona <jmcg92@gmail.com>
  1334. * @update zhixin wen <wenzhixin2010@gmail.com>
  1335. */
  1336. var Utils = $$2.fn.bootstrapTable.utils;
  1337. Object.assign($$2.fn.bootstrapTable.defaults, {
  1338. stickyHeader: false,
  1339. stickyHeaderOffsetY: 0,
  1340. stickyHeaderOffsetLeft: 0,
  1341. stickyHeaderOffsetRight: 0
  1342. });
  1343. $$2.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  1344. function _class() {
  1345. _classCallCheck(this, _class);
  1346. return _callSuper(this, _class, arguments);
  1347. }
  1348. _inherits(_class, _$$BootstrapTable);
  1349. return _createClass(_class, [{
  1350. key: "initHeader",
  1351. value: function initHeader() {
  1352. var _this = this;
  1353. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  1354. args[_key] = arguments[_key];
  1355. }
  1356. _superPropGet(_class, "initHeader", this)(args);
  1357. if (!this.options.stickyHeader) {
  1358. return;
  1359. }
  1360. this.$tableBody.find('.sticky-header-container,.sticky_anchor_begin,.sticky_anchor_end').remove();
  1361. this.$el.before('<div class="sticky-header-container"></div>');
  1362. this.$el.before('<div class="sticky_anchor_begin"></div>');
  1363. this.$el.after('<div class="sticky_anchor_end"></div>');
  1364. this.$header.addClass('sticky-header');
  1365. // clone header just once, to be used as sticky header
  1366. // deep clone header, using source header affects tbody>td width
  1367. this.$stickyContainer = this.$tableBody.find('.sticky-header-container');
  1368. this.$stickyBegin = this.$tableBody.find('.sticky_anchor_begin');
  1369. this.$stickyEnd = this.$tableBody.find('.sticky_anchor_end');
  1370. this.$stickyHeader = this.$header.clone(true, true);
  1371. // render sticky on window scroll or resize
  1372. var resizeEvent = Utils.getEventName('resize.sticky-header-table', this.$el.attr('id'));
  1373. var scrollEvent = Utils.getEventName('scroll.sticky-header-table', this.$el.attr('id'));
  1374. $$2(window).off(resizeEvent).on(resizeEvent, function () {
  1375. return _this.renderStickyHeader();
  1376. });
  1377. $$2(window).off(scrollEvent).on(scrollEvent, function () {
  1378. return _this.renderStickyHeader();
  1379. });
  1380. this.$tableBody.off('scroll').on('scroll', function () {
  1381. return _this.matchPositionX();
  1382. });
  1383. }
  1384. }, {
  1385. key: "onColumnSearch",
  1386. value: function onColumnSearch(_ref) {
  1387. var currentTarget = _ref.currentTarget,
  1388. keyCode = _ref.keyCode;
  1389. _superPropGet(_class, "onColumnSearch", this)([{
  1390. currentTarget: currentTarget,
  1391. keyCode: keyCode
  1392. }]);
  1393. if (!this.options.stickyHeader) {
  1394. return;
  1395. }
  1396. this.renderStickyHeader();
  1397. }
  1398. }, {
  1399. key: "resetView",
  1400. value: function resetView() {
  1401. var _this2 = this;
  1402. for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  1403. args[_key2] = arguments[_key2];
  1404. }
  1405. _superPropGet(_class, "resetView", this)(args);
  1406. if (!this.options.stickyHeader) {
  1407. return;
  1408. }
  1409. $$2('.bootstrap-table.fullscreen').off('scroll').on('scroll', function () {
  1410. return _this2.renderStickyHeader();
  1411. });
  1412. }
  1413. }, {
  1414. key: "getCaret",
  1415. value: function getCaret() {
  1416. for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  1417. args[_key3] = arguments[_key3];
  1418. }
  1419. _superPropGet(_class, "getCaret", this)(args);
  1420. if (!this.options.stickyHeader) {
  1421. return;
  1422. }
  1423. if (this.$stickyHeader) {
  1424. var $ths = this.$stickyHeader.find('th');
  1425. this.$header.find('th').each(function (i, th) {
  1426. $ths.eq(i).find('.sortable').attr('class', $$2(th).find('.sortable').attr('class'));
  1427. });
  1428. }
  1429. }
  1430. }, {
  1431. key: "horizontalScroll",
  1432. value: function horizontalScroll() {
  1433. var _this3 = this;
  1434. _superPropGet(_class, "horizontalScroll", this)([]);
  1435. if (!this.options.stickyHeader) {
  1436. return;
  1437. }
  1438. this.$tableBody.on('scroll', function () {
  1439. return _this3.matchPositionX();
  1440. });
  1441. }
  1442. }, {
  1443. key: "renderStickyHeader",
  1444. value: function renderStickyHeader() {
  1445. var _this4 = this;
  1446. var that = this;
  1447. this.$stickyHeader = this.$header.clone(true, true);
  1448. if (this.options.filterControl) {
  1449. $$2(this.$stickyHeader).off('keyup change mouseup').on('keyup change mouse', function (e) {
  1450. var $target = $$2(e.target);
  1451. var value = $target.val();
  1452. var field = $target.parents('th').data('field');
  1453. var $coreTh = that.$header.find("th[data-field=\"".concat(field, "\"]"));
  1454. if ($target.is('input')) {
  1455. $coreTh.find('input').val(value);
  1456. } else if ($target.is('select')) {
  1457. var $select = $coreTh.find('select');
  1458. $select.find('option[selected]').removeAttr('selected');
  1459. $select.find("option[value=\"".concat(value, "\"]")).attr('selected', true);
  1460. }
  1461. that.triggerSearch();
  1462. });
  1463. }
  1464. var top = $$2(window).scrollTop();
  1465. // top anchor scroll position, minus header height
  1466. var start = this.$stickyBegin.offset().top - this.options.stickyHeaderOffsetY;
  1467. // bottom anchor scroll position, minus header height, minus sticky height
  1468. var end = this.$stickyEnd.offset().top - this.options.stickyHeaderOffsetY - this.$header.height();
  1469. // show sticky when top anchor touches header, and when bottom anchor not exceeded
  1470. if (top > start && top <= end) {
  1471. // ensure clone and source column widths are the same
  1472. this.$stickyHeader.find('tr').each(function (indexRows, rows) {
  1473. $$2(rows).find('th').each(function (index, el) {
  1474. $$2(el).css('min-width', _this4.$header.find("tr:eq(".concat(indexRows, ")")).find("th:eq(".concat(index, ")")).css('width'));
  1475. });
  1476. });
  1477. // match bootstrap table style
  1478. this.$stickyContainer.show().addClass('fix-sticky fixed-table-container');
  1479. // stick it in position
  1480. var coords = this.$tableBody[0].getBoundingClientRect();
  1481. var width = '100%';
  1482. var stickyHeaderOffsetLeft = this.options.stickyHeaderOffsetLeft;
  1483. var stickyHeaderOffsetRight = this.options.stickyHeaderOffsetRight;
  1484. if (!stickyHeaderOffsetLeft) {
  1485. stickyHeaderOffsetLeft = coords.left;
  1486. }
  1487. if (!stickyHeaderOffsetRight) {
  1488. width = "".concat(coords.width, "px");
  1489. }
  1490. if (this.$el.closest('.bootstrap-table').hasClass('fullscreen')) {
  1491. stickyHeaderOffsetLeft = 0;
  1492. stickyHeaderOffsetRight = 0;
  1493. width = '100%';
  1494. }
  1495. this.$stickyContainer.css('top', "".concat(this.options.stickyHeaderOffsetY, "px"));
  1496. this.$stickyContainer.css('left', "".concat(stickyHeaderOffsetLeft, "px"));
  1497. this.$stickyContainer.css('right', "".concat(stickyHeaderOffsetRight, "px"));
  1498. this.$stickyContainer.css('width', "".concat(width));
  1499. // create scrollable container for header
  1500. this.$stickyTable = $$2('<table/>');
  1501. this.$stickyTable.addClass(this.options.classes);
  1502. // append cloned header to dom
  1503. this.$stickyContainer.html(this.$stickyTable.append(this.$stickyHeader));
  1504. // match clone and source header positions when left-right scroll
  1505. this.matchPositionX();
  1506. } else {
  1507. this.$stickyContainer.removeClass('fix-sticky').hide();
  1508. }
  1509. }
  1510. }, {
  1511. key: "matchPositionX",
  1512. value: function matchPositionX() {
  1513. this.$stickyContainer.scrollLeft(this.$tableBody.scrollLeft());
  1514. }
  1515. }]);
  1516. }($$2.BootstrapTable);
  1517. }));