bootstrap-table-mobile.js 69 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014
  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 ($$4) { 'use strict';
  6. function _toPrimitive(t, r) {
  7. if ("object" != typeof t || !t) return t;
  8. var e = t[Symbol.toPrimitive];
  9. if (void 0 !== e) {
  10. var i = e.call(t, r || "default");
  11. if ("object" != typeof i) return i;
  12. throw new TypeError("@@toPrimitive must return a primitive value.");
  13. }
  14. return ("string" === r ? String : Number)(t);
  15. }
  16. function _toPropertyKey(t) {
  17. var i = _toPrimitive(t, "string");
  18. return "symbol" == typeof i ? i : String(i);
  19. }
  20. function _classCallCheck(instance, Constructor) {
  21. if (!(instance instanceof Constructor)) {
  22. throw new TypeError("Cannot call a class as a function");
  23. }
  24. }
  25. function _defineProperties(target, props) {
  26. for (var i = 0; i < props.length; i++) {
  27. var descriptor = props[i];
  28. descriptor.enumerable = descriptor.enumerable || false;
  29. descriptor.configurable = true;
  30. if ("value" in descriptor) descriptor.writable = true;
  31. Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
  32. }
  33. }
  34. function _createClass(Constructor, protoProps, staticProps) {
  35. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  36. if (staticProps) _defineProperties(Constructor, staticProps);
  37. Object.defineProperty(Constructor, "prototype", {
  38. writable: false
  39. });
  40. return Constructor;
  41. }
  42. function _inherits(subClass, superClass) {
  43. if (typeof superClass !== "function" && superClass !== null) {
  44. throw new TypeError("Super expression must either be null or a function");
  45. }
  46. subClass.prototype = Object.create(superClass && superClass.prototype, {
  47. constructor: {
  48. value: subClass,
  49. writable: true,
  50. configurable: true
  51. }
  52. });
  53. Object.defineProperty(subClass, "prototype", {
  54. writable: false
  55. });
  56. if (superClass) _setPrototypeOf(subClass, superClass);
  57. }
  58. function _getPrototypeOf(o) {
  59. _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
  60. return o.__proto__ || Object.getPrototypeOf(o);
  61. };
  62. return _getPrototypeOf(o);
  63. }
  64. function _setPrototypeOf(o, p) {
  65. _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  66. o.__proto__ = p;
  67. return o;
  68. };
  69. return _setPrototypeOf(o, p);
  70. }
  71. function _isNativeReflectConstruct() {
  72. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  73. if (Reflect.construct.sham) return false;
  74. if (typeof Proxy === "function") return true;
  75. try {
  76. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  77. return true;
  78. } catch (e) {
  79. return false;
  80. }
  81. }
  82. function _assertThisInitialized(self) {
  83. if (self === void 0) {
  84. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  85. }
  86. return self;
  87. }
  88. function _possibleConstructorReturn(self, call) {
  89. if (call && (typeof call === "object" || typeof call === "function")) {
  90. return call;
  91. } else if (call !== void 0) {
  92. throw new TypeError("Derived constructors may only return object or undefined");
  93. }
  94. return _assertThisInitialized(self);
  95. }
  96. function _createSuper(Derived) {
  97. var hasNativeReflectConstruct = _isNativeReflectConstruct();
  98. return function _createSuperInternal() {
  99. var Super = _getPrototypeOf(Derived),
  100. result;
  101. if (hasNativeReflectConstruct) {
  102. var NewTarget = _getPrototypeOf(this).constructor;
  103. result = Reflect.construct(Super, arguments, NewTarget);
  104. } else {
  105. result = Super.apply(this, arguments);
  106. }
  107. return _possibleConstructorReturn(this, result);
  108. };
  109. }
  110. function _superPropBase(object, property) {
  111. while (!Object.prototype.hasOwnProperty.call(object, property)) {
  112. object = _getPrototypeOf(object);
  113. if (object === null) break;
  114. }
  115. return object;
  116. }
  117. function _get() {
  118. if (typeof Reflect !== "undefined" && Reflect.get) {
  119. _get = Reflect.get.bind();
  120. } else {
  121. _get = function _get(target, property, receiver) {
  122. var base = _superPropBase(target, property);
  123. if (!base) return;
  124. var desc = Object.getOwnPropertyDescriptor(base, property);
  125. if (desc.get) {
  126. return desc.get.call(arguments.length < 3 ? target : receiver);
  127. }
  128. return desc.value;
  129. };
  130. }
  131. return _get.apply(this, arguments);
  132. }
  133. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  134. var check = function (it) {
  135. return it && it.Math === Math && it;
  136. };
  137. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  138. var global$c =
  139. // eslint-disable-next-line es/no-global-this -- safe
  140. check(typeof globalThis == 'object' && globalThis) ||
  141. check(typeof window == 'object' && window) ||
  142. // eslint-disable-next-line no-restricted-globals -- safe
  143. check(typeof self == 'object' && self) ||
  144. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  145. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  146. // eslint-disable-next-line no-new-func -- fallback
  147. (function () { return this; })() || Function('return this')();
  148. var objectGetOwnPropertyDescriptor = {};
  149. var fails$e = function (exec) {
  150. try {
  151. return !!exec();
  152. } catch (error) {
  153. return true;
  154. }
  155. };
  156. var fails$d = fails$e;
  157. // Detect IE8's incomplete defineProperty implementation
  158. var descriptors = !fails$d(function () {
  159. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  160. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
  161. });
  162. var fails$c = fails$e;
  163. var functionBindNative = !fails$c(function () {
  164. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  165. var test = (function () { /* empty */ }).bind();
  166. // eslint-disable-next-line no-prototype-builtins -- safe
  167. return typeof test != 'function' || test.hasOwnProperty('prototype');
  168. });
  169. var NATIVE_BIND$2 = functionBindNative;
  170. var call$5 = Function.prototype.call;
  171. var functionCall = NATIVE_BIND$2 ? call$5.bind(call$5) : function () {
  172. return call$5.apply(call$5, arguments);
  173. };
  174. var objectPropertyIsEnumerable = {};
  175. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  176. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  177. var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  178. // Nashorn ~ JDK8 bug
  179. var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  180. // `Object.prototype.propertyIsEnumerable` method implementation
  181. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  182. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  183. var descriptor = getOwnPropertyDescriptor$1(this, V);
  184. return !!descriptor && descriptor.enumerable;
  185. } : $propertyIsEnumerable;
  186. var createPropertyDescriptor$3 = function (bitmap, value) {
  187. return {
  188. enumerable: !(bitmap & 1),
  189. configurable: !(bitmap & 2),
  190. writable: !(bitmap & 4),
  191. value: value
  192. };
  193. };
  194. var NATIVE_BIND$1 = functionBindNative;
  195. var FunctionPrototype$1 = Function.prototype;
  196. var call$4 = FunctionPrototype$1.call;
  197. var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$4, call$4);
  198. var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
  199. return function () {
  200. return call$4.apply(fn, arguments);
  201. };
  202. };
  203. var uncurryThis$e = functionUncurryThis;
  204. var toString$4 = uncurryThis$e({}.toString);
  205. var stringSlice$1 = uncurryThis$e(''.slice);
  206. var classofRaw$2 = function (it) {
  207. return stringSlice$1(toString$4(it), 8, -1);
  208. };
  209. var uncurryThis$d = functionUncurryThis;
  210. var fails$b = fails$e;
  211. var classof$6 = classofRaw$2;
  212. var $Object$3 = Object;
  213. var split = uncurryThis$d(''.split);
  214. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  215. var indexedObject = fails$b(function () {
  216. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  217. // eslint-disable-next-line no-prototype-builtins -- safe
  218. return !$Object$3('z').propertyIsEnumerable(0);
  219. }) ? function (it) {
  220. return classof$6(it) === 'String' ? split(it, '') : $Object$3(it);
  221. } : $Object$3;
  222. // we can't use just `it == null` since of `document.all` special case
  223. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  224. var isNullOrUndefined$2 = function (it) {
  225. return it === null || it === undefined;
  226. };
  227. var isNullOrUndefined$1 = isNullOrUndefined$2;
  228. var $TypeError$7 = TypeError;
  229. // `RequireObjectCoercible` abstract operation
  230. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  231. var requireObjectCoercible$3 = function (it) {
  232. if (isNullOrUndefined$1(it)) throw new $TypeError$7("Can't call method on " + it);
  233. return it;
  234. };
  235. // toObject with fallback for non-array-like ES3 strings
  236. var IndexedObject$2 = indexedObject;
  237. var requireObjectCoercible$2 = requireObjectCoercible$3;
  238. var toIndexedObject$4 = function (it) {
  239. return IndexedObject$2(requireObjectCoercible$2(it));
  240. };
  241. var documentAll$2 = typeof document == 'object' && document.all;
  242. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  243. // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
  244. var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
  245. var documentAll_1 = {
  246. all: documentAll$2,
  247. IS_HTMLDDA: IS_HTMLDDA
  248. };
  249. var $documentAll$1 = documentAll_1;
  250. var documentAll$1 = $documentAll$1.all;
  251. // `IsCallable` abstract operation
  252. // https://tc39.es/ecma262/#sec-iscallable
  253. var isCallable$c = $documentAll$1.IS_HTMLDDA ? function (argument) {
  254. return typeof argument == 'function' || argument === documentAll$1;
  255. } : function (argument) {
  256. return typeof argument == 'function';
  257. };
  258. var isCallable$b = isCallable$c;
  259. var $documentAll = documentAll_1;
  260. var documentAll = $documentAll.all;
  261. var isObject$8 = $documentAll.IS_HTMLDDA ? function (it) {
  262. return typeof it == 'object' ? it !== null : isCallable$b(it) || it === documentAll;
  263. } : function (it) {
  264. return typeof it == 'object' ? it !== null : isCallable$b(it);
  265. };
  266. var global$b = global$c;
  267. var isCallable$a = isCallable$c;
  268. var aFunction = function (argument) {
  269. return isCallable$a(argument) ? argument : undefined;
  270. };
  271. var getBuiltIn$4 = function (namespace, method) {
  272. return arguments.length < 2 ? aFunction(global$b[namespace]) : global$b[namespace] && global$b[namespace][method];
  273. };
  274. var uncurryThis$c = functionUncurryThis;
  275. var objectIsPrototypeOf = uncurryThis$c({}.isPrototypeOf);
  276. var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
  277. var global$a = global$c;
  278. var userAgent = engineUserAgent;
  279. var process = global$a.process;
  280. var Deno = global$a.Deno;
  281. var versions = process && process.versions || Deno && Deno.version;
  282. var v8 = versions && versions.v8;
  283. var match, version;
  284. if (v8) {
  285. match = v8.split('.');
  286. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  287. // but their correct versions are not interesting for us
  288. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  289. }
  290. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  291. // so check `userAgent` even if `.v8` exists, but 0
  292. if (!version && userAgent) {
  293. match = userAgent.match(/Edge\/(\d+)/);
  294. if (!match || match[1] >= 74) {
  295. match = userAgent.match(/Chrome\/(\d+)/);
  296. if (match) version = +match[1];
  297. }
  298. }
  299. var engineV8Version = version;
  300. /* eslint-disable es/no-symbol -- required for testing */
  301. var V8_VERSION$2 = engineV8Version;
  302. var fails$a = fails$e;
  303. var global$9 = global$c;
  304. var $String$4 = global$9.String;
  305. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  306. var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$a(function () {
  307. var symbol = Symbol('symbol detection');
  308. // Chrome 38 Symbol has incorrect toString conversion
  309. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  310. // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
  311. // of course, fail.
  312. return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
  313. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  314. !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
  315. });
  316. /* eslint-disable es/no-symbol -- required for testing */
  317. var NATIVE_SYMBOL$1 = symbolConstructorDetection;
  318. var useSymbolAsUid = NATIVE_SYMBOL$1
  319. && !Symbol.sham
  320. && typeof Symbol.iterator == 'symbol';
  321. var getBuiltIn$3 = getBuiltIn$4;
  322. var isCallable$9 = isCallable$c;
  323. var isPrototypeOf = objectIsPrototypeOf;
  324. var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
  325. var $Object$2 = Object;
  326. var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
  327. return typeof it == 'symbol';
  328. } : function (it) {
  329. var $Symbol = getBuiltIn$3('Symbol');
  330. return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
  331. };
  332. var $String$3 = String;
  333. var tryToString$1 = function (argument) {
  334. try {
  335. return $String$3(argument);
  336. } catch (error) {
  337. return 'Object';
  338. }
  339. };
  340. var isCallable$8 = isCallable$c;
  341. var tryToString = tryToString$1;
  342. var $TypeError$6 = TypeError;
  343. // `Assert: IsCallable(argument) is true`
  344. var aCallable$2 = function (argument) {
  345. if (isCallable$8(argument)) return argument;
  346. throw new $TypeError$6(tryToString(argument) + ' is not a function');
  347. };
  348. var aCallable$1 = aCallable$2;
  349. var isNullOrUndefined = isNullOrUndefined$2;
  350. // `GetMethod` abstract operation
  351. // https://tc39.es/ecma262/#sec-getmethod
  352. var getMethod$1 = function (V, P) {
  353. var func = V[P];
  354. return isNullOrUndefined(func) ? undefined : aCallable$1(func);
  355. };
  356. var call$3 = functionCall;
  357. var isCallable$7 = isCallable$c;
  358. var isObject$7 = isObject$8;
  359. var $TypeError$5 = TypeError;
  360. // `OrdinaryToPrimitive` abstract operation
  361. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  362. var ordinaryToPrimitive$1 = function (input, pref) {
  363. var fn, val;
  364. if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$7(val = call$3(fn, input))) return val;
  365. if (isCallable$7(fn = input.valueOf) && !isObject$7(val = call$3(fn, input))) return val;
  366. if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$7(val = call$3(fn, input))) return val;
  367. throw new $TypeError$5("Can't convert object to primitive value");
  368. };
  369. var shared$3 = {exports: {}};
  370. var global$8 = global$c;
  371. // eslint-disable-next-line es/no-object-defineproperty -- safe
  372. var defineProperty$3 = Object.defineProperty;
  373. var defineGlobalProperty$3 = function (key, value) {
  374. try {
  375. defineProperty$3(global$8, key, { value: value, configurable: true, writable: true });
  376. } catch (error) {
  377. global$8[key] = value;
  378. } return value;
  379. };
  380. var global$7 = global$c;
  381. var defineGlobalProperty$2 = defineGlobalProperty$3;
  382. var SHARED = '__core-js_shared__';
  383. var store$3 = global$7[SHARED] || defineGlobalProperty$2(SHARED, {});
  384. var sharedStore = store$3;
  385. var store$2 = sharedStore;
  386. (shared$3.exports = function (key, value) {
  387. return store$2[key] || (store$2[key] = value !== undefined ? value : {});
  388. })('versions', []).push({
  389. version: '3.34.0',
  390. mode: 'global',
  391. copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
  392. license: 'https://github.com/zloirock/core-js/blob/v3.34.0/LICENSE',
  393. source: 'https://github.com/zloirock/core-js'
  394. });
  395. var sharedExports = shared$3.exports;
  396. var requireObjectCoercible$1 = requireObjectCoercible$3;
  397. var $Object$1 = Object;
  398. // `ToObject` abstract operation
  399. // https://tc39.es/ecma262/#sec-toobject
  400. var toObject$4 = function (argument) {
  401. return $Object$1(requireObjectCoercible$1(argument));
  402. };
  403. var uncurryThis$b = functionUncurryThis;
  404. var toObject$3 = toObject$4;
  405. var hasOwnProperty = uncurryThis$b({}.hasOwnProperty);
  406. // `HasOwnProperty` abstract operation
  407. // https://tc39.es/ecma262/#sec-hasownproperty
  408. // eslint-disable-next-line es/no-object-hasown -- safe
  409. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  410. return hasOwnProperty(toObject$3(it), key);
  411. };
  412. var uncurryThis$a = functionUncurryThis;
  413. var id = 0;
  414. var postfix = Math.random();
  415. var toString$3 = uncurryThis$a(1.0.toString);
  416. var uid$2 = function (key) {
  417. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
  418. };
  419. var global$6 = global$c;
  420. var shared$2 = sharedExports;
  421. var hasOwn$6 = hasOwnProperty_1;
  422. var uid$1 = uid$2;
  423. var NATIVE_SYMBOL = symbolConstructorDetection;
  424. var USE_SYMBOL_AS_UID = useSymbolAsUid;
  425. var Symbol$1 = global$6.Symbol;
  426. var WellKnownSymbolsStore = shared$2('wks');
  427. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
  428. var wellKnownSymbol$9 = function (name) {
  429. if (!hasOwn$6(WellKnownSymbolsStore, name)) {
  430. WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
  431. ? Symbol$1[name]
  432. : createWellKnownSymbol('Symbol.' + name);
  433. } return WellKnownSymbolsStore[name];
  434. };
  435. var call$2 = functionCall;
  436. var isObject$6 = isObject$8;
  437. var isSymbol$1 = isSymbol$2;
  438. var getMethod = getMethod$1;
  439. var ordinaryToPrimitive = ordinaryToPrimitive$1;
  440. var wellKnownSymbol$8 = wellKnownSymbol$9;
  441. var $TypeError$4 = TypeError;
  442. var TO_PRIMITIVE = wellKnownSymbol$8('toPrimitive');
  443. // `ToPrimitive` abstract operation
  444. // https://tc39.es/ecma262/#sec-toprimitive
  445. var toPrimitive$1 = function (input, pref) {
  446. if (!isObject$6(input) || isSymbol$1(input)) return input;
  447. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  448. var result;
  449. if (exoticToPrim) {
  450. if (pref === undefined) pref = 'default';
  451. result = call$2(exoticToPrim, input, pref);
  452. if (!isObject$6(result) || isSymbol$1(result)) return result;
  453. throw new $TypeError$4("Can't convert object to primitive value");
  454. }
  455. if (pref === undefined) pref = 'number';
  456. return ordinaryToPrimitive(input, pref);
  457. };
  458. var toPrimitive = toPrimitive$1;
  459. var isSymbol = isSymbol$2;
  460. // `ToPropertyKey` abstract operation
  461. // https://tc39.es/ecma262/#sec-topropertykey
  462. var toPropertyKey$3 = function (argument) {
  463. var key = toPrimitive(argument, 'string');
  464. return isSymbol(key) ? key : key + '';
  465. };
  466. var global$5 = global$c;
  467. var isObject$5 = isObject$8;
  468. var document$1 = global$5.document;
  469. // typeof document.createElement is 'object' in old IE
  470. var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
  471. var documentCreateElement$2 = function (it) {
  472. return EXISTS$1 ? document$1.createElement(it) : {};
  473. };
  474. var DESCRIPTORS$8 = descriptors;
  475. var fails$9 = fails$e;
  476. var createElement = documentCreateElement$2;
  477. // Thanks to IE8 for its funny defineProperty
  478. var ie8DomDefine = !DESCRIPTORS$8 && !fails$9(function () {
  479. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  480. return Object.defineProperty(createElement('div'), 'a', {
  481. get: function () { return 7; }
  482. }).a !== 7;
  483. });
  484. var DESCRIPTORS$7 = descriptors;
  485. var call$1 = functionCall;
  486. var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
  487. var createPropertyDescriptor$2 = createPropertyDescriptor$3;
  488. var toIndexedObject$3 = toIndexedObject$4;
  489. var toPropertyKey$2 = toPropertyKey$3;
  490. var hasOwn$5 = hasOwnProperty_1;
  491. var IE8_DOM_DEFINE$1 = ie8DomDefine;
  492. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  493. var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  494. // `Object.getOwnPropertyDescriptor` method
  495. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  496. objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
  497. O = toIndexedObject$3(O);
  498. P = toPropertyKey$2(P);
  499. if (IE8_DOM_DEFINE$1) try {
  500. return $getOwnPropertyDescriptor$1(O, P);
  501. } catch (error) { /* empty */ }
  502. if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
  503. };
  504. var objectDefineProperty = {};
  505. var DESCRIPTORS$6 = descriptors;
  506. var fails$8 = fails$e;
  507. // V8 ~ Chrome 36-
  508. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  509. var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$8(function () {
  510. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  511. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  512. value: 42,
  513. writable: false
  514. }).prototype !== 42;
  515. });
  516. var isObject$4 = isObject$8;
  517. var $String$2 = String;
  518. var $TypeError$3 = TypeError;
  519. // `Assert: Type(argument) is Object`
  520. var anObject$4 = function (argument) {
  521. if (isObject$4(argument)) return argument;
  522. throw new $TypeError$3($String$2(argument) + ' is not an object');
  523. };
  524. var DESCRIPTORS$5 = descriptors;
  525. var IE8_DOM_DEFINE = ie8DomDefine;
  526. var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
  527. var anObject$3 = anObject$4;
  528. var toPropertyKey$1 = toPropertyKey$3;
  529. var $TypeError$2 = TypeError;
  530. // eslint-disable-next-line es/no-object-defineproperty -- safe
  531. var $defineProperty = Object.defineProperty;
  532. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  533. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  534. var ENUMERABLE = 'enumerable';
  535. var CONFIGURABLE$1 = 'configurable';
  536. var WRITABLE = 'writable';
  537. // `Object.defineProperty` method
  538. // https://tc39.es/ecma262/#sec-object.defineproperty
  539. objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
  540. anObject$3(O);
  541. P = toPropertyKey$1(P);
  542. anObject$3(Attributes);
  543. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  544. var current = $getOwnPropertyDescriptor(O, P);
  545. if (current && current[WRITABLE]) {
  546. O[P] = Attributes.value;
  547. Attributes = {
  548. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  549. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  550. writable: false
  551. };
  552. }
  553. } return $defineProperty(O, P, Attributes);
  554. } : $defineProperty : function defineProperty(O, P, Attributes) {
  555. anObject$3(O);
  556. P = toPropertyKey$1(P);
  557. anObject$3(Attributes);
  558. if (IE8_DOM_DEFINE) try {
  559. return $defineProperty(O, P, Attributes);
  560. } catch (error) { /* empty */ }
  561. if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$2('Accessors not supported');
  562. if ('value' in Attributes) O[P] = Attributes.value;
  563. return O;
  564. };
  565. var DESCRIPTORS$4 = descriptors;
  566. var definePropertyModule$4 = objectDefineProperty;
  567. var createPropertyDescriptor$1 = createPropertyDescriptor$3;
  568. var createNonEnumerableProperty$3 = DESCRIPTORS$4 ? function (object, key, value) {
  569. return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
  570. } : function (object, key, value) {
  571. object[key] = value;
  572. return object;
  573. };
  574. var makeBuiltIn$2 = {exports: {}};
  575. var DESCRIPTORS$3 = descriptors;
  576. var hasOwn$4 = hasOwnProperty_1;
  577. var FunctionPrototype = Function.prototype;
  578. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  579. var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
  580. var EXISTS = hasOwn$4(FunctionPrototype, 'name');
  581. // additional protection from minified / mangled / dropped function names
  582. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  583. var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype, 'name').configurable));
  584. var functionName = {
  585. EXISTS: EXISTS,
  586. PROPER: PROPER,
  587. CONFIGURABLE: CONFIGURABLE
  588. };
  589. var uncurryThis$9 = functionUncurryThis;
  590. var isCallable$6 = isCallable$c;
  591. var store$1 = sharedStore;
  592. var functionToString = uncurryThis$9(Function.toString);
  593. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  594. if (!isCallable$6(store$1.inspectSource)) {
  595. store$1.inspectSource = function (it) {
  596. return functionToString(it);
  597. };
  598. }
  599. var inspectSource$2 = store$1.inspectSource;
  600. var global$4 = global$c;
  601. var isCallable$5 = isCallable$c;
  602. var WeakMap$1 = global$4.WeakMap;
  603. var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1));
  604. var shared$1 = sharedExports;
  605. var uid = uid$2;
  606. var keys = shared$1('keys');
  607. var sharedKey$2 = function (key) {
  608. return keys[key] || (keys[key] = uid(key));
  609. };
  610. var hiddenKeys$4 = {};
  611. var NATIVE_WEAK_MAP = weakMapBasicDetection;
  612. var global$3 = global$c;
  613. var isObject$3 = isObject$8;
  614. var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
  615. var hasOwn$3 = hasOwnProperty_1;
  616. var shared = sharedStore;
  617. var sharedKey$1 = sharedKey$2;
  618. var hiddenKeys$3 = hiddenKeys$4;
  619. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  620. var TypeError$1 = global$3.TypeError;
  621. var WeakMap = global$3.WeakMap;
  622. var set, get, has;
  623. var enforce = function (it) {
  624. return has(it) ? get(it) : set(it, {});
  625. };
  626. var getterFor = function (TYPE) {
  627. return function (it) {
  628. var state;
  629. if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
  630. throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
  631. } return state;
  632. };
  633. };
  634. if (NATIVE_WEAK_MAP || shared.state) {
  635. var store = shared.state || (shared.state = new WeakMap());
  636. /* eslint-disable no-self-assign -- prototype methods protection */
  637. store.get = store.get;
  638. store.has = store.has;
  639. store.set = store.set;
  640. /* eslint-enable no-self-assign -- prototype methods protection */
  641. set = function (it, metadata) {
  642. if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  643. metadata.facade = it;
  644. store.set(it, metadata);
  645. return metadata;
  646. };
  647. get = function (it) {
  648. return store.get(it) || {};
  649. };
  650. has = function (it) {
  651. return store.has(it);
  652. };
  653. } else {
  654. var STATE = sharedKey$1('state');
  655. hiddenKeys$3[STATE] = true;
  656. set = function (it, metadata) {
  657. if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  658. metadata.facade = it;
  659. createNonEnumerableProperty$2(it, STATE, metadata);
  660. return metadata;
  661. };
  662. get = function (it) {
  663. return hasOwn$3(it, STATE) ? it[STATE] : {};
  664. };
  665. has = function (it) {
  666. return hasOwn$3(it, STATE);
  667. };
  668. }
  669. var internalState = {
  670. set: set,
  671. get: get,
  672. has: has,
  673. enforce: enforce,
  674. getterFor: getterFor
  675. };
  676. var uncurryThis$8 = functionUncurryThis;
  677. var fails$7 = fails$e;
  678. var isCallable$4 = isCallable$c;
  679. var hasOwn$2 = hasOwnProperty_1;
  680. var DESCRIPTORS$2 = descriptors;
  681. var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
  682. var inspectSource$1 = inspectSource$2;
  683. var InternalStateModule = internalState;
  684. var enforceInternalState = InternalStateModule.enforce;
  685. var getInternalState = InternalStateModule.get;
  686. var $String$1 = String;
  687. // eslint-disable-next-line es/no-object-defineproperty -- safe
  688. var defineProperty$2 = Object.defineProperty;
  689. var stringSlice = uncurryThis$8(''.slice);
  690. var replace = uncurryThis$8(''.replace);
  691. var join = uncurryThis$8([].join);
  692. var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$7(function () {
  693. return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  694. });
  695. var TEMPLATE = String(String).split('String');
  696. var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
  697. if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
  698. name = '[' + replace($String$1(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
  699. }
  700. if (options && options.getter) name = 'get ' + name;
  701. if (options && options.setter) name = 'set ' + name;
  702. if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  703. if (DESCRIPTORS$2) defineProperty$2(value, 'name', { value: name, configurable: true });
  704. else value.name = name;
  705. }
  706. if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
  707. defineProperty$2(value, 'length', { value: options.arity });
  708. }
  709. try {
  710. if (options && hasOwn$2(options, 'constructor') && options.constructor) {
  711. if (DESCRIPTORS$2) defineProperty$2(value, 'prototype', { writable: false });
  712. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  713. } else if (value.prototype) value.prototype = undefined;
  714. } catch (error) { /* empty */ }
  715. var state = enforceInternalState(value);
  716. if (!hasOwn$2(state, 'source')) {
  717. state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
  718. } return value;
  719. };
  720. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  721. // eslint-disable-next-line no-extend-native -- required
  722. Function.prototype.toString = makeBuiltIn$1(function toString() {
  723. return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this);
  724. }, 'toString');
  725. var makeBuiltInExports = makeBuiltIn$2.exports;
  726. var isCallable$3 = isCallable$c;
  727. var definePropertyModule$3 = objectDefineProperty;
  728. var makeBuiltIn = makeBuiltInExports;
  729. var defineGlobalProperty$1 = defineGlobalProperty$3;
  730. var defineBuiltIn$2 = function (O, key, value, options) {
  731. if (!options) options = {};
  732. var simple = options.enumerable;
  733. var name = options.name !== undefined ? options.name : key;
  734. if (isCallable$3(value)) makeBuiltIn(value, name, options);
  735. if (options.global) {
  736. if (simple) O[key] = value;
  737. else defineGlobalProperty$1(key, value);
  738. } else {
  739. try {
  740. if (!options.unsafe) delete O[key];
  741. else if (O[key]) simple = true;
  742. } catch (error) { /* empty */ }
  743. if (simple) O[key] = value;
  744. else definePropertyModule$3.f(O, key, {
  745. value: value,
  746. enumerable: false,
  747. configurable: !options.nonConfigurable,
  748. writable: !options.nonWritable
  749. });
  750. } return O;
  751. };
  752. var objectGetOwnPropertyNames = {};
  753. var ceil = Math.ceil;
  754. var floor = Math.floor;
  755. // `Math.trunc` method
  756. // https://tc39.es/ecma262/#sec-math.trunc
  757. // eslint-disable-next-line es/no-math-trunc -- safe
  758. var mathTrunc = Math.trunc || function trunc(x) {
  759. var n = +x;
  760. return (n > 0 ? floor : ceil)(n);
  761. };
  762. var trunc = mathTrunc;
  763. // `ToIntegerOrInfinity` abstract operation
  764. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  765. var toIntegerOrInfinity$2 = function (argument) {
  766. var number = +argument;
  767. // eslint-disable-next-line no-self-compare -- NaN check
  768. return number !== number || number === 0 ? 0 : trunc(number);
  769. };
  770. var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
  771. var max = Math.max;
  772. var min$1 = Math.min;
  773. // Helper for a popular repeating case of the spec:
  774. // Let integer be ? ToInteger(index).
  775. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  776. var toAbsoluteIndex$1 = function (index, length) {
  777. var integer = toIntegerOrInfinity$1(index);
  778. return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
  779. };
  780. var toIntegerOrInfinity = toIntegerOrInfinity$2;
  781. var min = Math.min;
  782. // `ToLength` abstract operation
  783. // https://tc39.es/ecma262/#sec-tolength
  784. var toLength$1 = function (argument) {
  785. return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  786. };
  787. var toLength = toLength$1;
  788. // `LengthOfArrayLike` abstract operation
  789. // https://tc39.es/ecma262/#sec-lengthofarraylike
  790. var lengthOfArrayLike$3 = function (obj) {
  791. return toLength(obj.length);
  792. };
  793. var toIndexedObject$2 = toIndexedObject$4;
  794. var toAbsoluteIndex = toAbsoluteIndex$1;
  795. var lengthOfArrayLike$2 = lengthOfArrayLike$3;
  796. // `Array.prototype.{ indexOf, includes }` methods implementation
  797. var createMethod$1 = function (IS_INCLUDES) {
  798. return function ($this, el, fromIndex) {
  799. var O = toIndexedObject$2($this);
  800. var length = lengthOfArrayLike$2(O);
  801. var index = toAbsoluteIndex(fromIndex, length);
  802. var value;
  803. // Array#includes uses SameValueZero equality algorithm
  804. // eslint-disable-next-line no-self-compare -- NaN check
  805. if (IS_INCLUDES && el !== el) while (length > index) {
  806. value = O[index++];
  807. // eslint-disable-next-line no-self-compare -- NaN check
  808. if (value !== value) return true;
  809. // Array#indexOf ignores holes, Array#includes - not
  810. } else for (;length > index; index++) {
  811. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  812. } return !IS_INCLUDES && -1;
  813. };
  814. };
  815. var arrayIncludes = {
  816. // `Array.prototype.includes` method
  817. // https://tc39.es/ecma262/#sec-array.prototype.includes
  818. includes: createMethod$1(true),
  819. // `Array.prototype.indexOf` method
  820. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  821. indexOf: createMethod$1(false)
  822. };
  823. var uncurryThis$7 = functionUncurryThis;
  824. var hasOwn$1 = hasOwnProperty_1;
  825. var toIndexedObject$1 = toIndexedObject$4;
  826. var indexOf = arrayIncludes.indexOf;
  827. var hiddenKeys$2 = hiddenKeys$4;
  828. var push$1 = uncurryThis$7([].push);
  829. var objectKeysInternal = function (object, names) {
  830. var O = toIndexedObject$1(object);
  831. var i = 0;
  832. var result = [];
  833. var key;
  834. for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$1(result, key);
  835. // Don't enum bug & hidden keys
  836. while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
  837. ~indexOf(result, key) || push$1(result, key);
  838. }
  839. return result;
  840. };
  841. // IE8- don't enum bug keys
  842. var enumBugKeys$3 = [
  843. 'constructor',
  844. 'hasOwnProperty',
  845. 'isPrototypeOf',
  846. 'propertyIsEnumerable',
  847. 'toLocaleString',
  848. 'toString',
  849. 'valueOf'
  850. ];
  851. var internalObjectKeys$1 = objectKeysInternal;
  852. var enumBugKeys$2 = enumBugKeys$3;
  853. var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
  854. // `Object.getOwnPropertyNames` method
  855. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  856. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  857. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  858. return internalObjectKeys$1(O, hiddenKeys$1);
  859. };
  860. var objectGetOwnPropertySymbols = {};
  861. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  862. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  863. var getBuiltIn$2 = getBuiltIn$4;
  864. var uncurryThis$6 = functionUncurryThis;
  865. var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
  866. var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
  867. var anObject$2 = anObject$4;
  868. var concat$1 = uncurryThis$6([].concat);
  869. // all object keys, includes non-enumerable and symbols
  870. var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
  871. var keys = getOwnPropertyNamesModule.f(anObject$2(it));
  872. var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
  873. return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
  874. };
  875. var hasOwn = hasOwnProperty_1;
  876. var ownKeys = ownKeys$1;
  877. var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
  878. var definePropertyModule$2 = objectDefineProperty;
  879. var copyConstructorProperties$1 = function (target, source, exceptions) {
  880. var keys = ownKeys(source);
  881. var defineProperty = definePropertyModule$2.f;
  882. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  883. for (var i = 0; i < keys.length; i++) {
  884. var key = keys[i];
  885. if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
  886. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  887. }
  888. }
  889. };
  890. var fails$6 = fails$e;
  891. var isCallable$2 = isCallable$c;
  892. var replacement = /#|\.prototype\./;
  893. var isForced$1 = function (feature, detection) {
  894. var value = data[normalize(feature)];
  895. return value === POLYFILL ? true
  896. : value === NATIVE ? false
  897. : isCallable$2(detection) ? fails$6(detection)
  898. : !!detection;
  899. };
  900. var normalize = isForced$1.normalize = function (string) {
  901. return String(string).replace(replacement, '.').toLowerCase();
  902. };
  903. var data = isForced$1.data = {};
  904. var NATIVE = isForced$1.NATIVE = 'N';
  905. var POLYFILL = isForced$1.POLYFILL = 'P';
  906. var isForced_1 = isForced$1;
  907. var global$2 = global$c;
  908. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  909. var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
  910. var defineBuiltIn$1 = defineBuiltIn$2;
  911. var defineGlobalProperty = defineGlobalProperty$3;
  912. var copyConstructorProperties = copyConstructorProperties$1;
  913. var isForced = isForced_1;
  914. /*
  915. options.target - name of the target object
  916. options.global - target is the global object
  917. options.stat - export as static methods of target
  918. options.proto - export as prototype methods of target
  919. options.real - real prototype method for the `pure` version
  920. options.forced - export even if the native feature is available
  921. options.bind - bind methods to the target, required for the `pure` version
  922. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  923. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  924. options.sham - add a flag to not completely full polyfills
  925. options.enumerable - export as enumerable property
  926. options.dontCallGetSet - prevent calling a getter on target
  927. options.name - the .name of the function if it does not match the key
  928. */
  929. var _export = function (options, source) {
  930. var TARGET = options.target;
  931. var GLOBAL = options.global;
  932. var STATIC = options.stat;
  933. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  934. if (GLOBAL) {
  935. target = global$2;
  936. } else if (STATIC) {
  937. target = global$2[TARGET] || defineGlobalProperty(TARGET, {});
  938. } else {
  939. target = (global$2[TARGET] || {}).prototype;
  940. }
  941. if (target) for (key in source) {
  942. sourceProperty = source[key];
  943. if (options.dontCallGetSet) {
  944. descriptor = getOwnPropertyDescriptor(target, key);
  945. targetProperty = descriptor && descriptor.value;
  946. } else targetProperty = target[key];
  947. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  948. // contained in target
  949. if (!FORCED && targetProperty !== undefined) {
  950. if (typeof sourceProperty == typeof targetProperty) continue;
  951. copyConstructorProperties(sourceProperty, targetProperty);
  952. }
  953. // add a flag to not completely full polyfills
  954. if (options.sham || (targetProperty && targetProperty.sham)) {
  955. createNonEnumerableProperty$1(sourceProperty, 'sham', true);
  956. }
  957. defineBuiltIn$1(target, key, sourceProperty, options);
  958. }
  959. };
  960. var internalObjectKeys = objectKeysInternal;
  961. var enumBugKeys$1 = enumBugKeys$3;
  962. // `Object.keys` method
  963. // https://tc39.es/ecma262/#sec-object.keys
  964. // eslint-disable-next-line es/no-object-keys -- safe
  965. var objectKeys$2 = Object.keys || function keys(O) {
  966. return internalObjectKeys(O, enumBugKeys$1);
  967. };
  968. var DESCRIPTORS$1 = descriptors;
  969. var uncurryThis$5 = functionUncurryThis;
  970. var call = functionCall;
  971. var fails$5 = fails$e;
  972. var objectKeys$1 = objectKeys$2;
  973. var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
  974. var propertyIsEnumerableModule = objectPropertyIsEnumerable;
  975. var toObject$2 = toObject$4;
  976. var IndexedObject$1 = indexedObject;
  977. // eslint-disable-next-line es/no-object-assign -- safe
  978. var $assign = Object.assign;
  979. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  980. var defineProperty$1 = Object.defineProperty;
  981. var concat = uncurryThis$5([].concat);
  982. // `Object.assign` method
  983. // https://tc39.es/ecma262/#sec-object.assign
  984. var objectAssign = !$assign || fails$5(function () {
  985. // should have correct order of operations (Edge bug)
  986. if (DESCRIPTORS$1 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', {
  987. enumerable: true,
  988. get: function () {
  989. defineProperty$1(this, 'b', {
  990. value: 3,
  991. enumerable: false
  992. });
  993. }
  994. }), { b: 2 })).b !== 1) return true;
  995. // should work with symbols and should have deterministic property order (V8 bug)
  996. var A = {};
  997. var B = {};
  998. // eslint-disable-next-line es/no-symbol -- safe
  999. var symbol = Symbol('assign detection');
  1000. var alphabet = 'abcdefghijklmnopqrst';
  1001. A[symbol] = 7;
  1002. alphabet.split('').forEach(function (chr) { B[chr] = chr; });
  1003. return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
  1004. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
  1005. var T = toObject$2(target);
  1006. var argumentsLength = arguments.length;
  1007. var index = 1;
  1008. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  1009. var propertyIsEnumerable = propertyIsEnumerableModule.f;
  1010. while (argumentsLength > index) {
  1011. var S = IndexedObject$1(arguments[index++]);
  1012. var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
  1013. var length = keys.length;
  1014. var j = 0;
  1015. var key;
  1016. while (length > j) {
  1017. key = keys[j++];
  1018. if (!DESCRIPTORS$1 || call(propertyIsEnumerable, S, key)) T[key] = S[key];
  1019. }
  1020. } return T;
  1021. } : $assign;
  1022. var $$3 = _export;
  1023. var assign = objectAssign;
  1024. // `Object.assign` method
  1025. // https://tc39.es/ecma262/#sec-object.assign
  1026. // eslint-disable-next-line es/no-object-assign -- required for testing
  1027. $$3({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
  1028. assign: assign
  1029. });
  1030. var classof$5 = classofRaw$2;
  1031. // `IsArray` abstract operation
  1032. // https://tc39.es/ecma262/#sec-isarray
  1033. // eslint-disable-next-line es/no-array-isarray -- safe
  1034. var isArray$2 = Array.isArray || function isArray(argument) {
  1035. return classof$5(argument) === 'Array';
  1036. };
  1037. var $TypeError$1 = TypeError;
  1038. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
  1039. var doesNotExceedSafeInteger$1 = function (it) {
  1040. if (it > MAX_SAFE_INTEGER) throw $TypeError$1('Maximum allowed index exceeded');
  1041. return it;
  1042. };
  1043. var toPropertyKey = toPropertyKey$3;
  1044. var definePropertyModule$1 = objectDefineProperty;
  1045. var createPropertyDescriptor = createPropertyDescriptor$3;
  1046. var createProperty$1 = function (object, key, value) {
  1047. var propertyKey = toPropertyKey(key);
  1048. if (propertyKey in object) definePropertyModule$1.f(object, propertyKey, createPropertyDescriptor(0, value));
  1049. else object[propertyKey] = value;
  1050. };
  1051. var wellKnownSymbol$7 = wellKnownSymbol$9;
  1052. var TO_STRING_TAG$1 = wellKnownSymbol$7('toStringTag');
  1053. var test = {};
  1054. test[TO_STRING_TAG$1] = 'z';
  1055. var toStringTagSupport = String(test) === '[object z]';
  1056. var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
  1057. var isCallable$1 = isCallable$c;
  1058. var classofRaw$1 = classofRaw$2;
  1059. var wellKnownSymbol$6 = wellKnownSymbol$9;
  1060. var TO_STRING_TAG = wellKnownSymbol$6('toStringTag');
  1061. var $Object = Object;
  1062. // ES3 wrong here
  1063. var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
  1064. // fallback for IE11 Script Access Denied error
  1065. var tryGet = function (it, key) {
  1066. try {
  1067. return it[key];
  1068. } catch (error) { /* empty */ }
  1069. };
  1070. // getting tag from ES6+ `Object.prototype.toString`
  1071. var classof$4 = TO_STRING_TAG_SUPPORT$2 ? classofRaw$1 : function (it) {
  1072. var O, tag, result;
  1073. return it === undefined ? 'Undefined' : it === null ? 'Null'
  1074. // @@toStringTag case
  1075. : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
  1076. // builtinTag case
  1077. : CORRECT_ARGUMENTS ? classofRaw$1(O)
  1078. // ES3 arguments fallback
  1079. : (result = classofRaw$1(O)) === 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
  1080. };
  1081. var uncurryThis$4 = functionUncurryThis;
  1082. var fails$4 = fails$e;
  1083. var isCallable = isCallable$c;
  1084. var classof$3 = classof$4;
  1085. var getBuiltIn$1 = getBuiltIn$4;
  1086. var inspectSource = inspectSource$2;
  1087. var noop = function () { /* empty */ };
  1088. var empty = [];
  1089. var construct = getBuiltIn$1('Reflect', 'construct');
  1090. var constructorRegExp = /^\s*(?:class|function)\b/;
  1091. var exec = uncurryThis$4(constructorRegExp.exec);
  1092. var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
  1093. var isConstructorModern = function isConstructor(argument) {
  1094. if (!isCallable(argument)) return false;
  1095. try {
  1096. construct(noop, empty, argument);
  1097. return true;
  1098. } catch (error) {
  1099. return false;
  1100. }
  1101. };
  1102. var isConstructorLegacy = function isConstructor(argument) {
  1103. if (!isCallable(argument)) return false;
  1104. switch (classof$3(argument)) {
  1105. case 'AsyncFunction':
  1106. case 'GeneratorFunction':
  1107. case 'AsyncGeneratorFunction': return false;
  1108. }
  1109. try {
  1110. // we can't check .prototype since constructors produced by .bind haven't it
  1111. // `Function#toString` throws on some built-it function in some legacy engines
  1112. // (for example, `DOMQuad` and similar in FF41-)
  1113. return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
  1114. } catch (error) {
  1115. return true;
  1116. }
  1117. };
  1118. isConstructorLegacy.sham = true;
  1119. // `IsConstructor` abstract operation
  1120. // https://tc39.es/ecma262/#sec-isconstructor
  1121. var isConstructor$1 = !construct || fails$4(function () {
  1122. var called;
  1123. return isConstructorModern(isConstructorModern.call)
  1124. || !isConstructorModern(Object)
  1125. || !isConstructorModern(function () { called = true; })
  1126. || called;
  1127. }) ? isConstructorLegacy : isConstructorModern;
  1128. var isArray$1 = isArray$2;
  1129. var isConstructor = isConstructor$1;
  1130. var isObject$2 = isObject$8;
  1131. var wellKnownSymbol$5 = wellKnownSymbol$9;
  1132. var SPECIES$1 = wellKnownSymbol$5('species');
  1133. var $Array = Array;
  1134. // a part of `ArraySpeciesCreate` abstract operation
  1135. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1136. var arraySpeciesConstructor$1 = function (originalArray) {
  1137. var C;
  1138. if (isArray$1(originalArray)) {
  1139. C = originalArray.constructor;
  1140. // cross-realm fallback
  1141. if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined;
  1142. else if (isObject$2(C)) {
  1143. C = C[SPECIES$1];
  1144. if (C === null) C = undefined;
  1145. }
  1146. } return C === undefined ? $Array : C;
  1147. };
  1148. var arraySpeciesConstructor = arraySpeciesConstructor$1;
  1149. // `ArraySpeciesCreate` abstract operation
  1150. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1151. var arraySpeciesCreate$2 = function (originalArray, length) {
  1152. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1153. };
  1154. var fails$3 = fails$e;
  1155. var wellKnownSymbol$4 = wellKnownSymbol$9;
  1156. var V8_VERSION$1 = engineV8Version;
  1157. var SPECIES = wellKnownSymbol$4('species');
  1158. var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) {
  1159. // We can't use this feature detection in V8 since it causes
  1160. // deoptimization and serious performance degradation
  1161. // https://github.com/zloirock/core-js/issues/677
  1162. return V8_VERSION$1 >= 51 || !fails$3(function () {
  1163. var array = [];
  1164. var constructor = array.constructor = {};
  1165. constructor[SPECIES] = function () {
  1166. return { foo: 1 };
  1167. };
  1168. return array[METHOD_NAME](Boolean).foo !== 1;
  1169. });
  1170. };
  1171. var $$2 = _export;
  1172. var fails$2 = fails$e;
  1173. var isArray = isArray$2;
  1174. var isObject$1 = isObject$8;
  1175. var toObject$1 = toObject$4;
  1176. var lengthOfArrayLike$1 = lengthOfArrayLike$3;
  1177. var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
  1178. var createProperty = createProperty$1;
  1179. var arraySpeciesCreate$1 = arraySpeciesCreate$2;
  1180. var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
  1181. var wellKnownSymbol$3 = wellKnownSymbol$9;
  1182. var V8_VERSION = engineV8Version;
  1183. var IS_CONCAT_SPREADABLE = wellKnownSymbol$3('isConcatSpreadable');
  1184. // We can't use this feature detection in V8 since it causes
  1185. // deoptimization and serious performance degradation
  1186. // https://github.com/zloirock/core-js/issues/679
  1187. var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$2(function () {
  1188. var array = [];
  1189. array[IS_CONCAT_SPREADABLE] = false;
  1190. return array.concat()[0] !== array;
  1191. });
  1192. var isConcatSpreadable = function (O) {
  1193. if (!isObject$1(O)) return false;
  1194. var spreadable = O[IS_CONCAT_SPREADABLE];
  1195. return spreadable !== undefined ? !!spreadable : isArray(O);
  1196. };
  1197. var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');
  1198. // `Array.prototype.concat` method
  1199. // https://tc39.es/ecma262/#sec-array.prototype.concat
  1200. // with adding support of @@isConcatSpreadable and @@species
  1201. $$2({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
  1202. // eslint-disable-next-line no-unused-vars -- required for `.length`
  1203. concat: function concat(arg) {
  1204. var O = toObject$1(this);
  1205. var A = arraySpeciesCreate$1(O, 0);
  1206. var n = 0;
  1207. var i, k, length, len, E;
  1208. for (i = -1, length = arguments.length; i < length; i++) {
  1209. E = i === -1 ? O : arguments[i];
  1210. if (isConcatSpreadable(E)) {
  1211. len = lengthOfArrayLike$1(E);
  1212. doesNotExceedSafeInteger(n + len);
  1213. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  1214. } else {
  1215. doesNotExceedSafeInteger(n + 1);
  1216. createProperty(A, n++, E);
  1217. }
  1218. }
  1219. A.length = n;
  1220. return A;
  1221. }
  1222. });
  1223. var objectDefineProperties = {};
  1224. var DESCRIPTORS = descriptors;
  1225. var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
  1226. var definePropertyModule = objectDefineProperty;
  1227. var anObject$1 = anObject$4;
  1228. var toIndexedObject = toIndexedObject$4;
  1229. var objectKeys = objectKeys$2;
  1230. // `Object.defineProperties` method
  1231. // https://tc39.es/ecma262/#sec-object.defineproperties
  1232. // eslint-disable-next-line es/no-object-defineproperties -- safe
  1233. objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
  1234. anObject$1(O);
  1235. var props = toIndexedObject(Properties);
  1236. var keys = objectKeys(Properties);
  1237. var length = keys.length;
  1238. var index = 0;
  1239. var key;
  1240. while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
  1241. return O;
  1242. };
  1243. var getBuiltIn = getBuiltIn$4;
  1244. var html$1 = getBuiltIn('document', 'documentElement');
  1245. /* global ActiveXObject -- old IE, WSH */
  1246. var anObject = anObject$4;
  1247. var definePropertiesModule = objectDefineProperties;
  1248. var enumBugKeys = enumBugKeys$3;
  1249. var hiddenKeys = hiddenKeys$4;
  1250. var html = html$1;
  1251. var documentCreateElement$1 = documentCreateElement$2;
  1252. var sharedKey = sharedKey$2;
  1253. var GT = '>';
  1254. var LT = '<';
  1255. var PROTOTYPE = 'prototype';
  1256. var SCRIPT = 'script';
  1257. var IE_PROTO = sharedKey('IE_PROTO');
  1258. var EmptyConstructor = function () { /* empty */ };
  1259. var scriptTag = function (content) {
  1260. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  1261. };
  1262. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  1263. var NullProtoObjectViaActiveX = function (activeXDocument) {
  1264. activeXDocument.write(scriptTag(''));
  1265. activeXDocument.close();
  1266. var temp = activeXDocument.parentWindow.Object;
  1267. activeXDocument = null; // avoid memory leak
  1268. return temp;
  1269. };
  1270. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  1271. var NullProtoObjectViaIFrame = function () {
  1272. // Thrash, waste and sodomy: IE GC bug
  1273. var iframe = documentCreateElement$1('iframe');
  1274. var JS = 'java' + SCRIPT + ':';
  1275. var iframeDocument;
  1276. iframe.style.display = 'none';
  1277. html.appendChild(iframe);
  1278. // https://github.com/zloirock/core-js/issues/475
  1279. iframe.src = String(JS);
  1280. iframeDocument = iframe.contentWindow.document;
  1281. iframeDocument.open();
  1282. iframeDocument.write(scriptTag('document.F=Object'));
  1283. iframeDocument.close();
  1284. return iframeDocument.F;
  1285. };
  1286. // Check for document.domain and active x support
  1287. // No need to use active x approach when document.domain is not set
  1288. // see https://github.com/es-shims/es5-shim/issues/150
  1289. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  1290. // avoid IE GC bug
  1291. var activeXDocument;
  1292. var NullProtoObject = function () {
  1293. try {
  1294. activeXDocument = new ActiveXObject('htmlfile');
  1295. } catch (error) { /* ignore */ }
  1296. NullProtoObject = typeof document != 'undefined'
  1297. ? document.domain && activeXDocument
  1298. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  1299. : NullProtoObjectViaIFrame()
  1300. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  1301. var length = enumBugKeys.length;
  1302. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  1303. return NullProtoObject();
  1304. };
  1305. hiddenKeys[IE_PROTO] = true;
  1306. // `Object.create` method
  1307. // https://tc39.es/ecma262/#sec-object.create
  1308. // eslint-disable-next-line es/no-object-create -- safe
  1309. var objectCreate = Object.create || function create(O, Properties) {
  1310. var result;
  1311. if (O !== null) {
  1312. EmptyConstructor[PROTOTYPE] = anObject(O);
  1313. result = new EmptyConstructor();
  1314. EmptyConstructor[PROTOTYPE] = null;
  1315. // add "__proto__" for Object.getPrototypeOf polyfill
  1316. result[IE_PROTO] = O;
  1317. } else result = NullProtoObject();
  1318. return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
  1319. };
  1320. var wellKnownSymbol$2 = wellKnownSymbol$9;
  1321. var create = objectCreate;
  1322. var defineProperty = objectDefineProperty.f;
  1323. var UNSCOPABLES = wellKnownSymbol$2('unscopables');
  1324. var ArrayPrototype = Array.prototype;
  1325. // Array.prototype[@@unscopables]
  1326. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1327. if (ArrayPrototype[UNSCOPABLES] === undefined) {
  1328. defineProperty(ArrayPrototype, UNSCOPABLES, {
  1329. configurable: true,
  1330. value: create(null)
  1331. });
  1332. }
  1333. // add a key to Array.prototype[@@unscopables]
  1334. var addToUnscopables$1 = function (key) {
  1335. ArrayPrototype[UNSCOPABLES][key] = true;
  1336. };
  1337. var $$1 = _export;
  1338. var $includes = arrayIncludes.includes;
  1339. var fails$1 = fails$e;
  1340. var addToUnscopables = addToUnscopables$1;
  1341. // FF99+ bug
  1342. var BROKEN_ON_SPARSE = fails$1(function () {
  1343. // eslint-disable-next-line es/no-array-prototype-includes -- detection
  1344. return !Array(1).includes();
  1345. });
  1346. // `Array.prototype.includes` method
  1347. // https://tc39.es/ecma262/#sec-array.prototype.includes
  1348. $$1({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
  1349. includes: function includes(el /* , fromIndex = 0 */) {
  1350. return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
  1351. }
  1352. });
  1353. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1354. addToUnscopables('includes');
  1355. var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
  1356. var classof$2 = classof$4;
  1357. // `Object.prototype.toString` method implementation
  1358. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1359. var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
  1360. return '[object ' + classof$2(this) + ']';
  1361. };
  1362. var TO_STRING_TAG_SUPPORT = toStringTagSupport;
  1363. var defineBuiltIn = defineBuiltIn$2;
  1364. var toString$2 = objectToString;
  1365. // `Object.prototype.toString` method
  1366. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1367. if (!TO_STRING_TAG_SUPPORT) {
  1368. defineBuiltIn(Object.prototype, 'toString', toString$2, { unsafe: true });
  1369. }
  1370. // iterable DOM collections
  1371. // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
  1372. var domIterables = {
  1373. CSSRuleList: 0,
  1374. CSSStyleDeclaration: 0,
  1375. CSSValueList: 0,
  1376. ClientRectList: 0,
  1377. DOMRectList: 0,
  1378. DOMStringList: 0,
  1379. DOMTokenList: 1,
  1380. DataTransferItemList: 0,
  1381. FileList: 0,
  1382. HTMLAllCollection: 0,
  1383. HTMLCollection: 0,
  1384. HTMLFormElement: 0,
  1385. HTMLSelectElement: 0,
  1386. MediaList: 0,
  1387. MimeTypeArray: 0,
  1388. NamedNodeMap: 0,
  1389. NodeList: 1,
  1390. PaintRequestList: 0,
  1391. Plugin: 0,
  1392. PluginArray: 0,
  1393. SVGLengthList: 0,
  1394. SVGNumberList: 0,
  1395. SVGPathSegList: 0,
  1396. SVGPointList: 0,
  1397. SVGStringList: 0,
  1398. SVGTransformList: 0,
  1399. SourceBufferList: 0,
  1400. StyleSheetList: 0,
  1401. TextTrackCueList: 0,
  1402. TextTrackList: 0,
  1403. TouchList: 0
  1404. };
  1405. // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
  1406. var documentCreateElement = documentCreateElement$2;
  1407. var classList = documentCreateElement('span').classList;
  1408. var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
  1409. var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
  1410. var classofRaw = classofRaw$2;
  1411. var uncurryThis$3 = functionUncurryThis;
  1412. var functionUncurryThisClause = function (fn) {
  1413. // Nashorn bug:
  1414. // https://github.com/zloirock/core-js/issues/1128
  1415. // https://github.com/zloirock/core-js/issues/1130
  1416. if (classofRaw(fn) === 'Function') return uncurryThis$3(fn);
  1417. };
  1418. var uncurryThis$2 = functionUncurryThisClause;
  1419. var aCallable = aCallable$2;
  1420. var NATIVE_BIND = functionBindNative;
  1421. var bind$1 = uncurryThis$2(uncurryThis$2.bind);
  1422. // optional / simple context binding
  1423. var functionBindContext = function (fn, that) {
  1424. aCallable(fn);
  1425. return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
  1426. return fn.apply(that, arguments);
  1427. };
  1428. };
  1429. var bind = functionBindContext;
  1430. var uncurryThis$1 = functionUncurryThis;
  1431. var IndexedObject = indexedObject;
  1432. var toObject = toObject$4;
  1433. var lengthOfArrayLike = lengthOfArrayLike$3;
  1434. var arraySpeciesCreate = arraySpeciesCreate$2;
  1435. var push = uncurryThis$1([].push);
  1436. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  1437. var createMethod = function (TYPE) {
  1438. var IS_MAP = TYPE === 1;
  1439. var IS_FILTER = TYPE === 2;
  1440. var IS_SOME = TYPE === 3;
  1441. var IS_EVERY = TYPE === 4;
  1442. var IS_FIND_INDEX = TYPE === 6;
  1443. var IS_FILTER_REJECT = TYPE === 7;
  1444. var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
  1445. return function ($this, callbackfn, that, specificCreate) {
  1446. var O = toObject($this);
  1447. var self = IndexedObject(O);
  1448. var length = lengthOfArrayLike(self);
  1449. var boundFunction = bind(callbackfn, that);
  1450. var index = 0;
  1451. var create = specificCreate || arraySpeciesCreate;
  1452. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  1453. var value, result;
  1454. for (;length > index; index++) if (NO_HOLES || index in self) {
  1455. value = self[index];
  1456. result = boundFunction(value, index, O);
  1457. if (TYPE) {
  1458. if (IS_MAP) target[index] = result; // map
  1459. else if (result) switch (TYPE) {
  1460. case 3: return true; // some
  1461. case 5: return value; // find
  1462. case 6: return index; // findIndex
  1463. case 2: push(target, value); // filter
  1464. } else switch (TYPE) {
  1465. case 4: return false; // every
  1466. case 7: push(target, value); // filterReject
  1467. }
  1468. }
  1469. }
  1470. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  1471. };
  1472. };
  1473. var arrayIteration = {
  1474. // `Array.prototype.forEach` method
  1475. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1476. forEach: createMethod(0),
  1477. // `Array.prototype.map` method
  1478. // https://tc39.es/ecma262/#sec-array.prototype.map
  1479. map: createMethod(1),
  1480. // `Array.prototype.filter` method
  1481. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1482. filter: createMethod(2),
  1483. // `Array.prototype.some` method
  1484. // https://tc39.es/ecma262/#sec-array.prototype.some
  1485. some: createMethod(3),
  1486. // `Array.prototype.every` method
  1487. // https://tc39.es/ecma262/#sec-array.prototype.every
  1488. every: createMethod(4),
  1489. // `Array.prototype.find` method
  1490. // https://tc39.es/ecma262/#sec-array.prototype.find
  1491. find: createMethod(5),
  1492. // `Array.prototype.findIndex` method
  1493. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  1494. findIndex: createMethod(6),
  1495. // `Array.prototype.filterReject` method
  1496. // https://github.com/tc39/proposal-array-filtering
  1497. filterReject: createMethod(7)
  1498. };
  1499. var fails = fails$e;
  1500. var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
  1501. var method = [][METHOD_NAME];
  1502. return !!method && fails(function () {
  1503. // eslint-disable-next-line no-useless-call -- required for testing
  1504. method.call(null, argument || function () { return 1; }, 1);
  1505. });
  1506. };
  1507. var $forEach = arrayIteration.forEach;
  1508. var arrayMethodIsStrict = arrayMethodIsStrict$1;
  1509. var STRICT_METHOD = arrayMethodIsStrict('forEach');
  1510. // `Array.prototype.forEach` method implementation
  1511. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1512. var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
  1513. return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1514. // eslint-disable-next-line es/no-array-prototype-foreach -- safe
  1515. } : [].forEach;
  1516. var global$1 = global$c;
  1517. var DOMIterables = domIterables;
  1518. var DOMTokenListPrototype = domTokenListPrototype;
  1519. var forEach = arrayForEach;
  1520. var createNonEnumerableProperty = createNonEnumerableProperty$3;
  1521. var handlePrototype = function (CollectionPrototype) {
  1522. // some Chrome versions have non-configurable methods on DOMTokenList
  1523. if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
  1524. createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
  1525. } catch (error) {
  1526. CollectionPrototype.forEach = forEach;
  1527. }
  1528. };
  1529. for (var COLLECTION_NAME in DOMIterables) {
  1530. if (DOMIterables[COLLECTION_NAME]) {
  1531. handlePrototype(global$1[COLLECTION_NAME] && global$1[COLLECTION_NAME].prototype);
  1532. }
  1533. }
  1534. handlePrototype(DOMTokenListPrototype);
  1535. var isObject = isObject$8;
  1536. var classof$1 = classofRaw$2;
  1537. var wellKnownSymbol$1 = wellKnownSymbol$9;
  1538. var MATCH$1 = wellKnownSymbol$1('match');
  1539. // `IsRegExp` abstract operation
  1540. // https://tc39.es/ecma262/#sec-isregexp
  1541. var isRegexp = function (it) {
  1542. var isRegExp;
  1543. return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$1(it) === 'RegExp');
  1544. };
  1545. var isRegExp = isRegexp;
  1546. var $TypeError = TypeError;
  1547. var notARegexp = function (it) {
  1548. if (isRegExp(it)) {
  1549. throw new $TypeError("The method doesn't accept regular expressions");
  1550. } return it;
  1551. };
  1552. var classof = classof$4;
  1553. var $String = String;
  1554. var toString$1 = function (argument) {
  1555. if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
  1556. return $String(argument);
  1557. };
  1558. var wellKnownSymbol = wellKnownSymbol$9;
  1559. var MATCH = wellKnownSymbol('match');
  1560. var correctIsRegexpLogic = function (METHOD_NAME) {
  1561. var regexp = /./;
  1562. try {
  1563. '/./'[METHOD_NAME](regexp);
  1564. } catch (error1) {
  1565. try {
  1566. regexp[MATCH] = false;
  1567. return '/./'[METHOD_NAME](regexp);
  1568. } catch (error2) { /* empty */ }
  1569. } return false;
  1570. };
  1571. var $ = _export;
  1572. var uncurryThis = functionUncurryThis;
  1573. var notARegExp = notARegexp;
  1574. var requireObjectCoercible = requireObjectCoercible$3;
  1575. var toString = toString$1;
  1576. var correctIsRegExpLogic = correctIsRegexpLogic;
  1577. var stringIndexOf = uncurryThis(''.indexOf);
  1578. // `String.prototype.includes` method
  1579. // https://tc39.es/ecma262/#sec-string.prototype.includes
  1580. $({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
  1581. includes: function includes(searchString /* , position = 0 */) {
  1582. return !!~stringIndexOf(
  1583. toString(requireObjectCoercible(this)),
  1584. toString(notARegExp(searchString)),
  1585. arguments.length > 1 ? arguments[1] : undefined
  1586. );
  1587. }
  1588. });
  1589. /**
  1590. * @author: Dennis Hernández
  1591. * @update zhixin wen <wenzhixin2010@gmail.com>
  1592. */
  1593. var debounce = function debounce(func, wait) {
  1594. var timeout = 0;
  1595. return function () {
  1596. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  1597. args[_key] = arguments[_key];
  1598. }
  1599. var later = function later() {
  1600. timeout = 0;
  1601. func.apply(void 0, args);
  1602. };
  1603. clearTimeout(timeout);
  1604. timeout = setTimeout(later, wait);
  1605. };
  1606. };
  1607. Object.assign($$4.fn.bootstrapTable.defaults, {
  1608. mobileResponsive: false,
  1609. minWidth: 562,
  1610. minHeight: undefined,
  1611. heightThreshold: 100,
  1612. // just slightly larger than mobile chrome's auto-hiding toolbar
  1613. checkOnInit: true,
  1614. columnsHidden: []
  1615. });
  1616. $$4.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  1617. _inherits(_class, _$$BootstrapTable);
  1618. var _super = _createSuper(_class);
  1619. function _class() {
  1620. _classCallCheck(this, _class);
  1621. return _super.apply(this, arguments);
  1622. }
  1623. _createClass(_class, [{
  1624. key: "init",
  1625. value: function init() {
  1626. var _get2,
  1627. _this = this;
  1628. for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  1629. args[_key2] = arguments[_key2];
  1630. }
  1631. (_get2 = _get(_getPrototypeOf(_class.prototype), "init", this)).call.apply(_get2, [this].concat(args));
  1632. if (!this.options.mobileResponsive || !this.options.minWidth) {
  1633. return;
  1634. }
  1635. if (this.options.minWidth < 100 && this.options.resizable) {
  1636. console.warn('The minWidth when the resizable extension is active should be greater or equal than 100');
  1637. this.options.minWidth = 100;
  1638. }
  1639. var old = {
  1640. width: $$4(window).width(),
  1641. height: $$4(window).height()
  1642. };
  1643. $$4(window).on('resize orientationchange', debounce(function () {
  1644. // reset view if height has only changed by at least the threshold.
  1645. var width = $$4(window).width();
  1646. var height = $$4(window).height();
  1647. var $activeElement = $$4(document.activeElement);
  1648. if ($activeElement.length && ['INPUT', 'SELECT', 'TEXTAREA'].includes($activeElement.prop('nodeName'))) {
  1649. return;
  1650. }
  1651. if (Math.abs(old.height - height) > _this.options.heightThreshold || old.width !== width) {
  1652. _this.changeView(width, height);
  1653. old = {
  1654. width: width,
  1655. height: height
  1656. };
  1657. }
  1658. }, 200));
  1659. if (this.options.checkOnInit) {
  1660. var width = $$4(window).width();
  1661. var height = $$4(window).height();
  1662. this.changeView(width, height);
  1663. old = {
  1664. width: width,
  1665. height: height
  1666. };
  1667. }
  1668. }
  1669. }, {
  1670. key: "conditionCardView",
  1671. value: function conditionCardView() {
  1672. this.changeTableView(false);
  1673. this.showHideColumns(false);
  1674. }
  1675. }, {
  1676. key: "conditionFullView",
  1677. value: function conditionFullView() {
  1678. this.changeTableView(true);
  1679. this.showHideColumns(true);
  1680. }
  1681. }, {
  1682. key: "changeTableView",
  1683. value: function changeTableView(cardViewState) {
  1684. this.options.cardView = cardViewState;
  1685. this.toggleView();
  1686. }
  1687. }, {
  1688. key: "showHideColumns",
  1689. value: function showHideColumns(checked) {
  1690. var _this2 = this;
  1691. if (this.options.columnsHidden.length > 0) {
  1692. this.columns.forEach(function (column) {
  1693. if (_this2.options.columnsHidden.includes(column.field)) {
  1694. if (column.visible !== checked) {
  1695. _this2._toggleColumn(_this2.fieldsColumnsIndex[column.field], checked, true);
  1696. }
  1697. }
  1698. });
  1699. }
  1700. }
  1701. }, {
  1702. key: "changeView",
  1703. value: function changeView(width, height) {
  1704. if (this.options.minHeight) {
  1705. if (width <= this.options.minWidth && height <= this.options.minHeight) {
  1706. this.conditionCardView();
  1707. } else if (width > this.options.minWidth && height > this.options.minHeight) {
  1708. this.conditionFullView();
  1709. }
  1710. } else if (width <= this.options.minWidth) {
  1711. this.conditionCardView();
  1712. } else if (width > this.options.minWidth) {
  1713. this.conditionFullView();
  1714. }
  1715. this.resetView();
  1716. }
  1717. }]);
  1718. return _class;
  1719. }($$4.BootstrapTable);
  1720. }));