bootstrap-table-toolbar.js 99 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742
  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 ($$b) { 'use strict';
  6. function _callSuper(t, o, e) {
  7. return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
  8. }
  9. function _isNativeReflectConstruct() {
  10. try {
  11. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  12. } catch (t) {}
  13. return (_isNativeReflectConstruct = function () {
  14. return !!t;
  15. })();
  16. }
  17. function _iterableToArrayLimit(r, l) {
  18. var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  19. if (null != t) {
  20. var e,
  21. n,
  22. i,
  23. u,
  24. a = [],
  25. f = !0,
  26. o = !1;
  27. try {
  28. if (i = (t = t.call(r)).next, 0 === l) {
  29. if (Object(t) !== t) return;
  30. f = !1;
  31. } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
  32. } catch (r) {
  33. o = !0, n = r;
  34. } finally {
  35. try {
  36. if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
  37. } finally {
  38. if (o) throw n;
  39. }
  40. }
  41. return a;
  42. }
  43. }
  44. function _toPrimitive(t, r) {
  45. if ("object" != typeof t || !t) return t;
  46. var e = t[Symbol.toPrimitive];
  47. if (void 0 !== e) {
  48. var i = e.call(t, r || "default");
  49. if ("object" != typeof i) return i;
  50. throw new TypeError("@@toPrimitive must return a primitive value.");
  51. }
  52. return ("string" === r ? String : Number)(t);
  53. }
  54. function _toPropertyKey(t) {
  55. var i = _toPrimitive(t, "string");
  56. return "symbol" == typeof i ? i : String(i);
  57. }
  58. function _classCallCheck(instance, Constructor) {
  59. if (!(instance instanceof Constructor)) {
  60. throw new TypeError("Cannot call a class as a function");
  61. }
  62. }
  63. function _defineProperties(target, props) {
  64. for (var i = 0; i < props.length; i++) {
  65. var descriptor = props[i];
  66. descriptor.enumerable = descriptor.enumerable || false;
  67. descriptor.configurable = true;
  68. if ("value" in descriptor) descriptor.writable = true;
  69. Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
  70. }
  71. }
  72. function _createClass(Constructor, protoProps, staticProps) {
  73. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  74. if (staticProps) _defineProperties(Constructor, staticProps);
  75. Object.defineProperty(Constructor, "prototype", {
  76. writable: false
  77. });
  78. return Constructor;
  79. }
  80. function _inherits(subClass, superClass) {
  81. if (typeof superClass !== "function" && superClass !== null) {
  82. throw new TypeError("Super expression must either be null or a function");
  83. }
  84. subClass.prototype = Object.create(superClass && superClass.prototype, {
  85. constructor: {
  86. value: subClass,
  87. writable: true,
  88. configurable: true
  89. }
  90. });
  91. Object.defineProperty(subClass, "prototype", {
  92. writable: false
  93. });
  94. if (superClass) _setPrototypeOf(subClass, superClass);
  95. }
  96. function _getPrototypeOf(o) {
  97. _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
  98. return o.__proto__ || Object.getPrototypeOf(o);
  99. };
  100. return _getPrototypeOf(o);
  101. }
  102. function _setPrototypeOf(o, p) {
  103. _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  104. o.__proto__ = p;
  105. return o;
  106. };
  107. return _setPrototypeOf(o, p);
  108. }
  109. function _assertThisInitialized(self) {
  110. if (self === void 0) {
  111. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  112. }
  113. return self;
  114. }
  115. function _possibleConstructorReturn(self, call) {
  116. if (call && (typeof call === "object" || typeof call === "function")) {
  117. return call;
  118. } else if (call !== void 0) {
  119. throw new TypeError("Derived constructors may only return object or undefined");
  120. }
  121. return _assertThisInitialized(self);
  122. }
  123. function _superPropBase(object, property) {
  124. while (!Object.prototype.hasOwnProperty.call(object, property)) {
  125. object = _getPrototypeOf(object);
  126. if (object === null) break;
  127. }
  128. return object;
  129. }
  130. function _get() {
  131. if (typeof Reflect !== "undefined" && Reflect.get) {
  132. _get = Reflect.get.bind();
  133. } else {
  134. _get = function _get(target, property, receiver) {
  135. var base = _superPropBase(target, property);
  136. if (!base) return;
  137. var desc = Object.getOwnPropertyDescriptor(base, property);
  138. if (desc.get) {
  139. return desc.get.call(arguments.length < 3 ? target : receiver);
  140. }
  141. return desc.value;
  142. };
  143. }
  144. return _get.apply(this, arguments);
  145. }
  146. function _slicedToArray(arr, i) {
  147. return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
  148. }
  149. function _toConsumableArray(arr) {
  150. return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
  151. }
  152. function _arrayWithoutHoles(arr) {
  153. if (Array.isArray(arr)) return _arrayLikeToArray(arr);
  154. }
  155. function _arrayWithHoles(arr) {
  156. if (Array.isArray(arr)) return arr;
  157. }
  158. function _iterableToArray(iter) {
  159. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  160. }
  161. function _unsupportedIterableToArray(o, minLen) {
  162. if (!o) return;
  163. if (typeof o === "string") return _arrayLikeToArray(o, minLen);
  164. var n = Object.prototype.toString.call(o).slice(8, -1);
  165. if (n === "Object" && o.constructor) n = o.constructor.name;
  166. if (n === "Map" || n === "Set") return Array.from(o);
  167. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
  168. }
  169. function _arrayLikeToArray(arr, len) {
  170. if (len == null || len > arr.length) len = arr.length;
  171. for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
  172. return arr2;
  173. }
  174. function _nonIterableSpread() {
  175. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  176. }
  177. function _nonIterableRest() {
  178. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  179. }
  180. function _createForOfIteratorHelper(o, allowArrayLike) {
  181. var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
  182. if (!it) {
  183. if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
  184. if (it) o = it;
  185. var i = 0;
  186. var F = function () {};
  187. return {
  188. s: F,
  189. n: function () {
  190. if (i >= o.length) return {
  191. done: true
  192. };
  193. return {
  194. done: false,
  195. value: o[i++]
  196. };
  197. },
  198. e: function (e) {
  199. throw e;
  200. },
  201. f: F
  202. };
  203. }
  204. throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  205. }
  206. var normalCompletion = true,
  207. didErr = false,
  208. err;
  209. return {
  210. s: function () {
  211. it = it.call(o);
  212. },
  213. n: function () {
  214. var step = it.next();
  215. normalCompletion = step.done;
  216. return step;
  217. },
  218. e: function (e) {
  219. didErr = true;
  220. err = e;
  221. },
  222. f: function () {
  223. try {
  224. if (!normalCompletion && it.return != null) it.return();
  225. } finally {
  226. if (didErr) throw err;
  227. }
  228. }
  229. };
  230. }
  231. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  232. var check = function (it) {
  233. return it && it.Math === Math && it;
  234. };
  235. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  236. var global$d =
  237. // eslint-disable-next-line es/no-global-this -- safe
  238. check(typeof globalThis == 'object' && globalThis) ||
  239. check(typeof window == 'object' && window) ||
  240. // eslint-disable-next-line no-restricted-globals -- safe
  241. check(typeof self == 'object' && self) ||
  242. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  243. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  244. // eslint-disable-next-line no-new-func -- fallback
  245. (function () { return this; })() || Function('return this')();
  246. var objectGetOwnPropertyDescriptor = {};
  247. var fails$l = function (exec) {
  248. try {
  249. return !!exec();
  250. } catch (error) {
  251. return true;
  252. }
  253. };
  254. var fails$k = fails$l;
  255. // Detect IE8's incomplete defineProperty implementation
  256. var descriptors = !fails$k(function () {
  257. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  258. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
  259. });
  260. var fails$j = fails$l;
  261. var functionBindNative = !fails$j(function () {
  262. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  263. var test = (function () { /* empty */ }).bind();
  264. // eslint-disable-next-line no-prototype-builtins -- safe
  265. return typeof test != 'function' || test.hasOwnProperty('prototype');
  266. });
  267. var NATIVE_BIND$2 = functionBindNative;
  268. var call$9 = Function.prototype.call;
  269. var functionCall = NATIVE_BIND$2 ? call$9.bind(call$9) : function () {
  270. return call$9.apply(call$9, arguments);
  271. };
  272. var objectPropertyIsEnumerable = {};
  273. var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
  274. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  275. var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  276. // Nashorn ~ JDK8 bug
  277. var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable$1.call({ 1: 2 }, 1);
  278. // `Object.prototype.propertyIsEnumerable` method implementation
  279. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  280. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  281. var descriptor = getOwnPropertyDescriptor$1(this, V);
  282. return !!descriptor && descriptor.enumerable;
  283. } : $propertyIsEnumerable$1;
  284. var createPropertyDescriptor$3 = function (bitmap, value) {
  285. return {
  286. enumerable: !(bitmap & 1),
  287. configurable: !(bitmap & 2),
  288. writable: !(bitmap & 4),
  289. value: value
  290. };
  291. };
  292. var NATIVE_BIND$1 = functionBindNative;
  293. var FunctionPrototype$1 = Function.prototype;
  294. var call$8 = FunctionPrototype$1.call;
  295. var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$8, call$8);
  296. var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
  297. return function () {
  298. return call$8.apply(fn, arguments);
  299. };
  300. };
  301. var uncurryThis$j = functionUncurryThis;
  302. var toString$7 = uncurryThis$j({}.toString);
  303. var stringSlice$2 = uncurryThis$j(''.slice);
  304. var classofRaw$2 = function (it) {
  305. return stringSlice$2(toString$7(it), 8, -1);
  306. };
  307. var uncurryThis$i = functionUncurryThis;
  308. var fails$i = fails$l;
  309. var classof$7 = classofRaw$2;
  310. var $Object$4 = Object;
  311. var split = uncurryThis$i(''.split);
  312. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  313. var indexedObject = fails$i(function () {
  314. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  315. // eslint-disable-next-line no-prototype-builtins -- safe
  316. return !$Object$4('z').propertyIsEnumerable(0);
  317. }) ? function (it) {
  318. return classof$7(it) === 'String' ? split(it, '') : $Object$4(it);
  319. } : $Object$4;
  320. // we can't use just `it == null` since of `document.all` special case
  321. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  322. var isNullOrUndefined$3 = function (it) {
  323. return it === null || it === undefined;
  324. };
  325. var isNullOrUndefined$2 = isNullOrUndefined$3;
  326. var $TypeError$8 = TypeError;
  327. // `RequireObjectCoercible` abstract operation
  328. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  329. var requireObjectCoercible$5 = function (it) {
  330. if (isNullOrUndefined$2(it)) throw new $TypeError$8("Can't call method on " + it);
  331. return it;
  332. };
  333. // toObject with fallback for non-array-like ES3 strings
  334. var IndexedObject$3 = indexedObject;
  335. var requireObjectCoercible$4 = requireObjectCoercible$5;
  336. var toIndexedObject$6 = function (it) {
  337. return IndexedObject$3(requireObjectCoercible$4(it));
  338. };
  339. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  340. var documentAll = typeof document == 'object' && document.all;
  341. // `IsCallable` abstract operation
  342. // https://tc39.es/ecma262/#sec-iscallable
  343. // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
  344. var isCallable$e = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
  345. return typeof argument == 'function' || argument === documentAll;
  346. } : function (argument) {
  347. return typeof argument == 'function';
  348. };
  349. var isCallable$d = isCallable$e;
  350. var isObject$8 = function (it) {
  351. return typeof it == 'object' ? it !== null : isCallable$d(it);
  352. };
  353. var global$c = global$d;
  354. var isCallable$c = isCallable$e;
  355. var aFunction = function (argument) {
  356. return isCallable$c(argument) ? argument : undefined;
  357. };
  358. var getBuiltIn$4 = function (namespace, method) {
  359. return arguments.length < 2 ? aFunction(global$c[namespace]) : global$c[namespace] && global$c[namespace][method];
  360. };
  361. var uncurryThis$h = functionUncurryThis;
  362. var objectIsPrototypeOf = uncurryThis$h({}.isPrototypeOf);
  363. var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
  364. var global$b = global$d;
  365. var userAgent = engineUserAgent;
  366. var process = global$b.process;
  367. var Deno = global$b.Deno;
  368. var versions = process && process.versions || Deno && Deno.version;
  369. var v8 = versions && versions.v8;
  370. var match, version;
  371. if (v8) {
  372. match = v8.split('.');
  373. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  374. // but their correct versions are not interesting for us
  375. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  376. }
  377. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  378. // so check `userAgent` even if `.v8` exists, but 0
  379. if (!version && userAgent) {
  380. match = userAgent.match(/Edge\/(\d+)/);
  381. if (!match || match[1] >= 74) {
  382. match = userAgent.match(/Chrome\/(\d+)/);
  383. if (match) version = +match[1];
  384. }
  385. }
  386. var engineV8Version = version;
  387. /* eslint-disable es/no-symbol -- required for testing */
  388. var V8_VERSION$2 = engineV8Version;
  389. var fails$h = fails$l;
  390. var global$a = global$d;
  391. var $String$4 = global$a.String;
  392. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  393. var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$h(function () {
  394. var symbol = Symbol('symbol detection');
  395. // Chrome 38 Symbol has incorrect toString conversion
  396. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  397. // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
  398. // of course, fail.
  399. return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
  400. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  401. !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
  402. });
  403. /* eslint-disable es/no-symbol -- required for testing */
  404. var NATIVE_SYMBOL$1 = symbolConstructorDetection;
  405. var useSymbolAsUid = NATIVE_SYMBOL$1
  406. && !Symbol.sham
  407. && typeof Symbol.iterator == 'symbol';
  408. var getBuiltIn$3 = getBuiltIn$4;
  409. var isCallable$b = isCallable$e;
  410. var isPrototypeOf = objectIsPrototypeOf;
  411. var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
  412. var $Object$3 = Object;
  413. var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
  414. return typeof it == 'symbol';
  415. } : function (it) {
  416. var $Symbol = getBuiltIn$3('Symbol');
  417. return isCallable$b($Symbol) && isPrototypeOf($Symbol.prototype, $Object$3(it));
  418. };
  419. var $String$3 = String;
  420. var tryToString$1 = function (argument) {
  421. try {
  422. return $String$3(argument);
  423. } catch (error) {
  424. return 'Object';
  425. }
  426. };
  427. var isCallable$a = isCallable$e;
  428. var tryToString = tryToString$1;
  429. var $TypeError$7 = TypeError;
  430. // `Assert: IsCallable(argument) is true`
  431. var aCallable$2 = function (argument) {
  432. if (isCallable$a(argument)) return argument;
  433. throw new $TypeError$7(tryToString(argument) + ' is not a function');
  434. };
  435. var aCallable$1 = aCallable$2;
  436. var isNullOrUndefined$1 = isNullOrUndefined$3;
  437. // `GetMethod` abstract operation
  438. // https://tc39.es/ecma262/#sec-getmethod
  439. var getMethod$2 = function (V, P) {
  440. var func = V[P];
  441. return isNullOrUndefined$1(func) ? undefined : aCallable$1(func);
  442. };
  443. var call$7 = functionCall;
  444. var isCallable$9 = isCallable$e;
  445. var isObject$7 = isObject$8;
  446. var $TypeError$6 = TypeError;
  447. // `OrdinaryToPrimitive` abstract operation
  448. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  449. var ordinaryToPrimitive$1 = function (input, pref) {
  450. var fn, val;
  451. if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$7(val = call$7(fn, input))) return val;
  452. if (isCallable$9(fn = input.valueOf) && !isObject$7(val = call$7(fn, input))) return val;
  453. if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$7(val = call$7(fn, input))) return val;
  454. throw new $TypeError$6("Can't convert object to primitive value");
  455. };
  456. var sharedStore = {exports: {}};
  457. var global$9 = global$d;
  458. // eslint-disable-next-line es/no-object-defineproperty -- safe
  459. var defineProperty$3 = Object.defineProperty;
  460. var defineGlobalProperty$3 = function (key, value) {
  461. try {
  462. defineProperty$3(global$9, key, { value: value, configurable: true, writable: true });
  463. } catch (error) {
  464. global$9[key] = value;
  465. } return value;
  466. };
  467. var globalThis$1 = global$d;
  468. var defineGlobalProperty$2 = defineGlobalProperty$3;
  469. var SHARED = '__core-js_shared__';
  470. var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
  471. (store$3.versions || (store$3.versions = [])).push({
  472. version: '3.36.0',
  473. mode: 'global',
  474. copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
  475. license: 'https://github.com/zloirock/core-js/blob/v3.36.0/LICENSE',
  476. source: 'https://github.com/zloirock/core-js'
  477. });
  478. var sharedStoreExports = sharedStore.exports;
  479. var store$2 = sharedStoreExports;
  480. var shared$4 = function (key, value) {
  481. return store$2[key] || (store$2[key] = value || {});
  482. };
  483. var requireObjectCoercible$3 = requireObjectCoercible$5;
  484. var $Object$2 = Object;
  485. // `ToObject` abstract operation
  486. // https://tc39.es/ecma262/#sec-toobject
  487. var toObject$5 = function (argument) {
  488. return $Object$2(requireObjectCoercible$3(argument));
  489. };
  490. var uncurryThis$g = functionUncurryThis;
  491. var toObject$4 = toObject$5;
  492. var hasOwnProperty = uncurryThis$g({}.hasOwnProperty);
  493. // `HasOwnProperty` abstract operation
  494. // https://tc39.es/ecma262/#sec-hasownproperty
  495. // eslint-disable-next-line es/no-object-hasown -- safe
  496. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  497. return hasOwnProperty(toObject$4(it), key);
  498. };
  499. var uncurryThis$f = functionUncurryThis;
  500. var id = 0;
  501. var postfix = Math.random();
  502. var toString$6 = uncurryThis$f(1.0.toString);
  503. var uid$2 = function (key) {
  504. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$6(++id + postfix, 36);
  505. };
  506. var global$8 = global$d;
  507. var shared$3 = shared$4;
  508. var hasOwn$7 = hasOwnProperty_1;
  509. var uid$1 = uid$2;
  510. var NATIVE_SYMBOL = symbolConstructorDetection;
  511. var USE_SYMBOL_AS_UID = useSymbolAsUid;
  512. var Symbol$1 = global$8.Symbol;
  513. var WellKnownSymbolsStore = shared$3('wks');
  514. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
  515. var wellKnownSymbol$a = function (name) {
  516. if (!hasOwn$7(WellKnownSymbolsStore, name)) {
  517. WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$7(Symbol$1, name)
  518. ? Symbol$1[name]
  519. : createWellKnownSymbol('Symbol.' + name);
  520. } return WellKnownSymbolsStore[name];
  521. };
  522. var call$6 = functionCall;
  523. var isObject$6 = isObject$8;
  524. var isSymbol$1 = isSymbol$2;
  525. var getMethod$1 = getMethod$2;
  526. var ordinaryToPrimitive = ordinaryToPrimitive$1;
  527. var wellKnownSymbol$9 = wellKnownSymbol$a;
  528. var $TypeError$5 = TypeError;
  529. var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
  530. // `ToPrimitive` abstract operation
  531. // https://tc39.es/ecma262/#sec-toprimitive
  532. var toPrimitive$1 = function (input, pref) {
  533. if (!isObject$6(input) || isSymbol$1(input)) return input;
  534. var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
  535. var result;
  536. if (exoticToPrim) {
  537. if (pref === undefined) pref = 'default';
  538. result = call$6(exoticToPrim, input, pref);
  539. if (!isObject$6(result) || isSymbol$1(result)) return result;
  540. throw new $TypeError$5("Can't convert object to primitive value");
  541. }
  542. if (pref === undefined) pref = 'number';
  543. return ordinaryToPrimitive(input, pref);
  544. };
  545. var toPrimitive = toPrimitive$1;
  546. var isSymbol = isSymbol$2;
  547. // `ToPropertyKey` abstract operation
  548. // https://tc39.es/ecma262/#sec-topropertykey
  549. var toPropertyKey$2 = function (argument) {
  550. var key = toPrimitive(argument, 'string');
  551. return isSymbol(key) ? key : key + '';
  552. };
  553. var global$7 = global$d;
  554. var isObject$5 = isObject$8;
  555. var document$1 = global$7.document;
  556. // typeof document.createElement is 'object' in old IE
  557. var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
  558. var documentCreateElement$1 = function (it) {
  559. return EXISTS$1 ? document$1.createElement(it) : {};
  560. };
  561. var DESCRIPTORS$a = descriptors;
  562. var fails$g = fails$l;
  563. var createElement = documentCreateElement$1;
  564. // Thanks to IE8 for its funny defineProperty
  565. var ie8DomDefine = !DESCRIPTORS$a && !fails$g(function () {
  566. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  567. return Object.defineProperty(createElement('div'), 'a', {
  568. get: function () { return 7; }
  569. }).a !== 7;
  570. });
  571. var DESCRIPTORS$9 = descriptors;
  572. var call$5 = functionCall;
  573. var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
  574. var createPropertyDescriptor$2 = createPropertyDescriptor$3;
  575. var toIndexedObject$5 = toIndexedObject$6;
  576. var toPropertyKey$1 = toPropertyKey$2;
  577. var hasOwn$6 = hasOwnProperty_1;
  578. var IE8_DOM_DEFINE$1 = ie8DomDefine;
  579. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  580. var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  581. // `Object.getOwnPropertyDescriptor` method
  582. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  583. objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
  584. O = toIndexedObject$5(O);
  585. P = toPropertyKey$1(P);
  586. if (IE8_DOM_DEFINE$1) try {
  587. return $getOwnPropertyDescriptor$1(O, P);
  588. } catch (error) { /* empty */ }
  589. if (hasOwn$6(O, P)) return createPropertyDescriptor$2(!call$5(propertyIsEnumerableModule$1.f, O, P), O[P]);
  590. };
  591. var objectDefineProperty = {};
  592. var DESCRIPTORS$8 = descriptors;
  593. var fails$f = fails$l;
  594. // V8 ~ Chrome 36-
  595. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  596. var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$f(function () {
  597. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  598. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  599. value: 42,
  600. writable: false
  601. }).prototype !== 42;
  602. });
  603. var isObject$4 = isObject$8;
  604. var $String$2 = String;
  605. var $TypeError$4 = TypeError;
  606. // `Assert: Type(argument) is Object`
  607. var anObject$7 = function (argument) {
  608. if (isObject$4(argument)) return argument;
  609. throw new $TypeError$4($String$2(argument) + ' is not an object');
  610. };
  611. var DESCRIPTORS$7 = descriptors;
  612. var IE8_DOM_DEFINE = ie8DomDefine;
  613. var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
  614. var anObject$6 = anObject$7;
  615. var toPropertyKey = toPropertyKey$2;
  616. var $TypeError$3 = TypeError;
  617. // eslint-disable-next-line es/no-object-defineproperty -- safe
  618. var $defineProperty = Object.defineProperty;
  619. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  620. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  621. var ENUMERABLE = 'enumerable';
  622. var CONFIGURABLE$1 = 'configurable';
  623. var WRITABLE = 'writable';
  624. // `Object.defineProperty` method
  625. // https://tc39.es/ecma262/#sec-object.defineproperty
  626. objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
  627. anObject$6(O);
  628. P = toPropertyKey(P);
  629. anObject$6(Attributes);
  630. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  631. var current = $getOwnPropertyDescriptor(O, P);
  632. if (current && current[WRITABLE]) {
  633. O[P] = Attributes.value;
  634. Attributes = {
  635. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  636. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  637. writable: false
  638. };
  639. }
  640. } return $defineProperty(O, P, Attributes);
  641. } : $defineProperty : function defineProperty(O, P, Attributes) {
  642. anObject$6(O);
  643. P = toPropertyKey(P);
  644. anObject$6(Attributes);
  645. if (IE8_DOM_DEFINE) try {
  646. return $defineProperty(O, P, Attributes);
  647. } catch (error) { /* empty */ }
  648. if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$3('Accessors not supported');
  649. if ('value' in Attributes) O[P] = Attributes.value;
  650. return O;
  651. };
  652. var DESCRIPTORS$6 = descriptors;
  653. var definePropertyModule$4 = objectDefineProperty;
  654. var createPropertyDescriptor$1 = createPropertyDescriptor$3;
  655. var createNonEnumerableProperty$3 = DESCRIPTORS$6 ? function (object, key, value) {
  656. return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
  657. } : function (object, key, value) {
  658. object[key] = value;
  659. return object;
  660. };
  661. var makeBuiltIn$2 = {exports: {}};
  662. var DESCRIPTORS$5 = descriptors;
  663. var hasOwn$5 = hasOwnProperty_1;
  664. var FunctionPrototype = Function.prototype;
  665. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  666. var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
  667. var EXISTS = hasOwn$5(FunctionPrototype, 'name');
  668. // additional protection from minified / mangled / dropped function names
  669. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  670. var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype, 'name').configurable));
  671. var functionName = {
  672. EXISTS: EXISTS,
  673. PROPER: PROPER,
  674. CONFIGURABLE: CONFIGURABLE
  675. };
  676. var uncurryThis$e = functionUncurryThis;
  677. var isCallable$8 = isCallable$e;
  678. var store$1 = sharedStoreExports;
  679. var functionToString = uncurryThis$e(Function.toString);
  680. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  681. if (!isCallable$8(store$1.inspectSource)) {
  682. store$1.inspectSource = function (it) {
  683. return functionToString(it);
  684. };
  685. }
  686. var inspectSource$2 = store$1.inspectSource;
  687. var global$6 = global$d;
  688. var isCallable$7 = isCallable$e;
  689. var WeakMap$1 = global$6.WeakMap;
  690. var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
  691. var shared$2 = shared$4;
  692. var uid = uid$2;
  693. var keys = shared$2('keys');
  694. var sharedKey$3 = function (key) {
  695. return keys[key] || (keys[key] = uid(key));
  696. };
  697. var hiddenKeys$4 = {};
  698. var NATIVE_WEAK_MAP = weakMapBasicDetection;
  699. var global$5 = global$d;
  700. var isObject$3 = isObject$8;
  701. var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
  702. var hasOwn$4 = hasOwnProperty_1;
  703. var shared$1 = sharedStoreExports;
  704. var sharedKey$2 = sharedKey$3;
  705. var hiddenKeys$3 = hiddenKeys$4;
  706. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  707. var TypeError$1 = global$5.TypeError;
  708. var WeakMap = global$5.WeakMap;
  709. var set, get, has;
  710. var enforce = function (it) {
  711. return has(it) ? get(it) : set(it, {});
  712. };
  713. var getterFor = function (TYPE) {
  714. return function (it) {
  715. var state;
  716. if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
  717. throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
  718. } return state;
  719. };
  720. };
  721. if (NATIVE_WEAK_MAP || shared$1.state) {
  722. var store = shared$1.state || (shared$1.state = new WeakMap());
  723. /* eslint-disable no-self-assign -- prototype methods protection */
  724. store.get = store.get;
  725. store.has = store.has;
  726. store.set = store.set;
  727. /* eslint-enable no-self-assign -- prototype methods protection */
  728. set = function (it, metadata) {
  729. if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  730. metadata.facade = it;
  731. store.set(it, metadata);
  732. return metadata;
  733. };
  734. get = function (it) {
  735. return store.get(it) || {};
  736. };
  737. has = function (it) {
  738. return store.has(it);
  739. };
  740. } else {
  741. var STATE = sharedKey$2('state');
  742. hiddenKeys$3[STATE] = true;
  743. set = function (it, metadata) {
  744. if (hasOwn$4(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  745. metadata.facade = it;
  746. createNonEnumerableProperty$2(it, STATE, metadata);
  747. return metadata;
  748. };
  749. get = function (it) {
  750. return hasOwn$4(it, STATE) ? it[STATE] : {};
  751. };
  752. has = function (it) {
  753. return hasOwn$4(it, STATE);
  754. };
  755. }
  756. var internalState = {
  757. set: set,
  758. get: get,
  759. has: has,
  760. enforce: enforce,
  761. getterFor: getterFor
  762. };
  763. var uncurryThis$d = functionUncurryThis;
  764. var fails$e = fails$l;
  765. var isCallable$6 = isCallable$e;
  766. var hasOwn$3 = hasOwnProperty_1;
  767. var DESCRIPTORS$4 = descriptors;
  768. var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
  769. var inspectSource$1 = inspectSource$2;
  770. var InternalStateModule = internalState;
  771. var enforceInternalState = InternalStateModule.enforce;
  772. var getInternalState$1 = InternalStateModule.get;
  773. var $String$1 = String;
  774. // eslint-disable-next-line es/no-object-defineproperty -- safe
  775. var defineProperty$2 = Object.defineProperty;
  776. var stringSlice$1 = uncurryThis$d(''.slice);
  777. var replace$2 = uncurryThis$d(''.replace);
  778. var join = uncurryThis$d([].join);
  779. var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$e(function () {
  780. return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  781. });
  782. var TEMPLATE = String(String).split('String');
  783. var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
  784. if (stringSlice$1($String$1(name), 0, 7) === 'Symbol(') {
  785. name = '[' + replace$2($String$1(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
  786. }
  787. if (options && options.getter) name = 'get ' + name;
  788. if (options && options.setter) name = 'set ' + name;
  789. if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  790. if (DESCRIPTORS$4) defineProperty$2(value, 'name', { value: name, configurable: true });
  791. else value.name = name;
  792. }
  793. if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) {
  794. defineProperty$2(value, 'length', { value: options.arity });
  795. }
  796. try {
  797. if (options && hasOwn$3(options, 'constructor') && options.constructor) {
  798. if (DESCRIPTORS$4) defineProperty$2(value, 'prototype', { writable: false });
  799. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  800. } else if (value.prototype) value.prototype = undefined;
  801. } catch (error) { /* empty */ }
  802. var state = enforceInternalState(value);
  803. if (!hasOwn$3(state, 'source')) {
  804. state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
  805. } return value;
  806. };
  807. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  808. // eslint-disable-next-line no-extend-native -- required
  809. Function.prototype.toString = makeBuiltIn$1(function toString() {
  810. return isCallable$6(this) && getInternalState$1(this).source || inspectSource$1(this);
  811. }, 'toString');
  812. var makeBuiltInExports = makeBuiltIn$2.exports;
  813. var isCallable$5 = isCallable$e;
  814. var definePropertyModule$3 = objectDefineProperty;
  815. var makeBuiltIn = makeBuiltInExports;
  816. var defineGlobalProperty$1 = defineGlobalProperty$3;
  817. var defineBuiltIn$3 = function (O, key, value, options) {
  818. if (!options) options = {};
  819. var simple = options.enumerable;
  820. var name = options.name !== undefined ? options.name : key;
  821. if (isCallable$5(value)) makeBuiltIn(value, name, options);
  822. if (options.global) {
  823. if (simple) O[key] = value;
  824. else defineGlobalProperty$1(key, value);
  825. } else {
  826. try {
  827. if (!options.unsafe) delete O[key];
  828. else if (O[key]) simple = true;
  829. } catch (error) { /* empty */ }
  830. if (simple) O[key] = value;
  831. else definePropertyModule$3.f(O, key, {
  832. value: value,
  833. enumerable: false,
  834. configurable: !options.nonConfigurable,
  835. writable: !options.nonWritable
  836. });
  837. } return O;
  838. };
  839. var objectGetOwnPropertyNames = {};
  840. var ceil = Math.ceil;
  841. var floor = Math.floor;
  842. // `Math.trunc` method
  843. // https://tc39.es/ecma262/#sec-math.trunc
  844. // eslint-disable-next-line es/no-math-trunc -- safe
  845. var mathTrunc = Math.trunc || function trunc(x) {
  846. var n = +x;
  847. return (n > 0 ? floor : ceil)(n);
  848. };
  849. var trunc = mathTrunc;
  850. // `ToIntegerOrInfinity` abstract operation
  851. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  852. var toIntegerOrInfinity$2 = function (argument) {
  853. var number = +argument;
  854. // eslint-disable-next-line no-self-compare -- NaN check
  855. return number !== number || number === 0 ? 0 : trunc(number);
  856. };
  857. var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
  858. var max = Math.max;
  859. var min$1 = Math.min;
  860. // Helper for a popular repeating case of the spec:
  861. // Let integer be ? ToInteger(index).
  862. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  863. var toAbsoluteIndex$1 = function (index, length) {
  864. var integer = toIntegerOrInfinity$1(index);
  865. return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
  866. };
  867. var toIntegerOrInfinity = toIntegerOrInfinity$2;
  868. var min = Math.min;
  869. // `ToLength` abstract operation
  870. // https://tc39.es/ecma262/#sec-tolength
  871. var toLength$1 = function (argument) {
  872. var len = toIntegerOrInfinity(argument);
  873. return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  874. };
  875. var toLength = toLength$1;
  876. // `LengthOfArrayLike` abstract operation
  877. // https://tc39.es/ecma262/#sec-lengthofarraylike
  878. var lengthOfArrayLike$3 = function (obj) {
  879. return toLength(obj.length);
  880. };
  881. var toIndexedObject$4 = toIndexedObject$6;
  882. var toAbsoluteIndex = toAbsoluteIndex$1;
  883. var lengthOfArrayLike$2 = lengthOfArrayLike$3;
  884. // `Array.prototype.{ indexOf, includes }` methods implementation
  885. var createMethod$3 = function (IS_INCLUDES) {
  886. return function ($this, el, fromIndex) {
  887. var O = toIndexedObject$4($this);
  888. var length = lengthOfArrayLike$2(O);
  889. if (length === 0) return !IS_INCLUDES && -1;
  890. var index = toAbsoluteIndex(fromIndex, length);
  891. var value;
  892. // Array#includes uses SameValueZero equality algorithm
  893. // eslint-disable-next-line no-self-compare -- NaN check
  894. if (IS_INCLUDES && el !== el) while (length > index) {
  895. value = O[index++];
  896. // eslint-disable-next-line no-self-compare -- NaN check
  897. if (value !== value) return true;
  898. // Array#indexOf ignores holes, Array#includes - not
  899. } else for (;length > index; index++) {
  900. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  901. } return !IS_INCLUDES && -1;
  902. };
  903. };
  904. var arrayIncludes = {
  905. // `Array.prototype.includes` method
  906. // https://tc39.es/ecma262/#sec-array.prototype.includes
  907. includes: createMethod$3(true),
  908. // `Array.prototype.indexOf` method
  909. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  910. indexOf: createMethod$3(false)
  911. };
  912. var uncurryThis$c = functionUncurryThis;
  913. var hasOwn$2 = hasOwnProperty_1;
  914. var toIndexedObject$3 = toIndexedObject$6;
  915. var indexOf$1 = arrayIncludes.indexOf;
  916. var hiddenKeys$2 = hiddenKeys$4;
  917. var push$2 = uncurryThis$c([].push);
  918. var objectKeysInternal = function (object, names) {
  919. var O = toIndexedObject$3(object);
  920. var i = 0;
  921. var result = [];
  922. var key;
  923. for (key in O) !hasOwn$2(hiddenKeys$2, key) && hasOwn$2(O, key) && push$2(result, key);
  924. // Don't enum bug & hidden keys
  925. while (names.length > i) if (hasOwn$2(O, key = names[i++])) {
  926. ~indexOf$1(result, key) || push$2(result, key);
  927. }
  928. return result;
  929. };
  930. // IE8- don't enum bug keys
  931. var enumBugKeys$3 = [
  932. 'constructor',
  933. 'hasOwnProperty',
  934. 'isPrototypeOf',
  935. 'propertyIsEnumerable',
  936. 'toLocaleString',
  937. 'toString',
  938. 'valueOf'
  939. ];
  940. var internalObjectKeys$1 = objectKeysInternal;
  941. var enumBugKeys$2 = enumBugKeys$3;
  942. var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
  943. // `Object.getOwnPropertyNames` method
  944. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  945. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  946. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  947. return internalObjectKeys$1(O, hiddenKeys$1);
  948. };
  949. var objectGetOwnPropertySymbols = {};
  950. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  951. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  952. var getBuiltIn$2 = getBuiltIn$4;
  953. var uncurryThis$b = functionUncurryThis;
  954. var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
  955. var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
  956. var anObject$5 = anObject$7;
  957. var concat$1 = uncurryThis$b([].concat);
  958. // all object keys, includes non-enumerable and symbols
  959. var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
  960. var keys = getOwnPropertyNamesModule.f(anObject$5(it));
  961. var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
  962. return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
  963. };
  964. var hasOwn$1 = hasOwnProperty_1;
  965. var ownKeys = ownKeys$1;
  966. var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
  967. var definePropertyModule$2 = objectDefineProperty;
  968. var copyConstructorProperties$1 = function (target, source, exceptions) {
  969. var keys = ownKeys(source);
  970. var defineProperty = definePropertyModule$2.f;
  971. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  972. for (var i = 0; i < keys.length; i++) {
  973. var key = keys[i];
  974. if (!hasOwn$1(target, key) && !(exceptions && hasOwn$1(exceptions, key))) {
  975. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  976. }
  977. }
  978. };
  979. var fails$d = fails$l;
  980. var isCallable$4 = isCallable$e;
  981. var replacement = /#|\.prototype\./;
  982. var isForced$1 = function (feature, detection) {
  983. var value = data[normalize(feature)];
  984. return value === POLYFILL ? true
  985. : value === NATIVE ? false
  986. : isCallable$4(detection) ? fails$d(detection)
  987. : !!detection;
  988. };
  989. var normalize = isForced$1.normalize = function (string) {
  990. return String(string).replace(replacement, '.').toLowerCase();
  991. };
  992. var data = isForced$1.data = {};
  993. var NATIVE = isForced$1.NATIVE = 'N';
  994. var POLYFILL = isForced$1.POLYFILL = 'P';
  995. var isForced_1 = isForced$1;
  996. var global$4 = global$d;
  997. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  998. var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
  999. var defineBuiltIn$2 = defineBuiltIn$3;
  1000. var defineGlobalProperty = defineGlobalProperty$3;
  1001. var copyConstructorProperties = copyConstructorProperties$1;
  1002. var isForced = isForced_1;
  1003. /*
  1004. options.target - name of the target object
  1005. options.global - target is the global object
  1006. options.stat - export as static methods of target
  1007. options.proto - export as prototype methods of target
  1008. options.real - real prototype method for the `pure` version
  1009. options.forced - export even if the native feature is available
  1010. options.bind - bind methods to the target, required for the `pure` version
  1011. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  1012. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  1013. options.sham - add a flag to not completely full polyfills
  1014. options.enumerable - export as enumerable property
  1015. options.dontCallGetSet - prevent calling a getter on target
  1016. options.name - the .name of the function if it does not match the key
  1017. */
  1018. var _export = function (options, source) {
  1019. var TARGET = options.target;
  1020. var GLOBAL = options.global;
  1021. var STATIC = options.stat;
  1022. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  1023. if (GLOBAL) {
  1024. target = global$4;
  1025. } else if (STATIC) {
  1026. target = global$4[TARGET] || defineGlobalProperty(TARGET, {});
  1027. } else {
  1028. target = global$4[TARGET] && global$4[TARGET].prototype;
  1029. }
  1030. if (target) for (key in source) {
  1031. sourceProperty = source[key];
  1032. if (options.dontCallGetSet) {
  1033. descriptor = getOwnPropertyDescriptor(target, key);
  1034. targetProperty = descriptor && descriptor.value;
  1035. } else targetProperty = target[key];
  1036. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  1037. // contained in target
  1038. if (!FORCED && targetProperty !== undefined) {
  1039. if (typeof sourceProperty == typeof targetProperty) continue;
  1040. copyConstructorProperties(sourceProperty, targetProperty);
  1041. }
  1042. // add a flag to not completely full polyfills
  1043. if (options.sham || (targetProperty && targetProperty.sham)) {
  1044. createNonEnumerableProperty$1(sourceProperty, 'sham', true);
  1045. }
  1046. defineBuiltIn$2(target, key, sourceProperty, options);
  1047. }
  1048. };
  1049. var classof$6 = classofRaw$2;
  1050. // `IsArray` abstract operation
  1051. // https://tc39.es/ecma262/#sec-isarray
  1052. // eslint-disable-next-line es/no-array-isarray -- safe
  1053. var isArray$2 = Array.isArray || function isArray(argument) {
  1054. return classof$6(argument) === 'Array';
  1055. };
  1056. var $TypeError$2 = TypeError;
  1057. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
  1058. var doesNotExceedSafeInteger$1 = function (it) {
  1059. if (it > MAX_SAFE_INTEGER) throw $TypeError$2('Maximum allowed index exceeded');
  1060. return it;
  1061. };
  1062. var DESCRIPTORS$3 = descriptors;
  1063. var definePropertyModule$1 = objectDefineProperty;
  1064. var createPropertyDescriptor = createPropertyDescriptor$3;
  1065. var createProperty$1 = function (object, key, value) {
  1066. if (DESCRIPTORS$3) definePropertyModule$1.f(object, key, createPropertyDescriptor(0, value));
  1067. else object[key] = value;
  1068. };
  1069. var wellKnownSymbol$8 = wellKnownSymbol$a;
  1070. var TO_STRING_TAG$1 = wellKnownSymbol$8('toStringTag');
  1071. var test = {};
  1072. test[TO_STRING_TAG$1] = 'z';
  1073. var toStringTagSupport = String(test) === '[object z]';
  1074. var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
  1075. var isCallable$3 = isCallable$e;
  1076. var classofRaw$1 = classofRaw$2;
  1077. var wellKnownSymbol$7 = wellKnownSymbol$a;
  1078. var TO_STRING_TAG = wellKnownSymbol$7('toStringTag');
  1079. var $Object$1 = Object;
  1080. // ES3 wrong here
  1081. var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
  1082. // fallback for IE11 Script Access Denied error
  1083. var tryGet = function (it, key) {
  1084. try {
  1085. return it[key];
  1086. } catch (error) { /* empty */ }
  1087. };
  1088. // getting tag from ES6+ `Object.prototype.toString`
  1089. var classof$5 = TO_STRING_TAG_SUPPORT$2 ? classofRaw$1 : function (it) {
  1090. var O, tag, result;
  1091. return it === undefined ? 'Undefined' : it === null ? 'Null'
  1092. // @@toStringTag case
  1093. : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG)) == 'string' ? tag
  1094. // builtinTag case
  1095. : CORRECT_ARGUMENTS ? classofRaw$1(O)
  1096. // ES3 arguments fallback
  1097. : (result = classofRaw$1(O)) === 'Object' && isCallable$3(O.callee) ? 'Arguments' : result;
  1098. };
  1099. var uncurryThis$a = functionUncurryThis;
  1100. var fails$c = fails$l;
  1101. var isCallable$2 = isCallable$e;
  1102. var classof$4 = classof$5;
  1103. var getBuiltIn$1 = getBuiltIn$4;
  1104. var inspectSource = inspectSource$2;
  1105. var noop = function () { /* empty */ };
  1106. var construct = getBuiltIn$1('Reflect', 'construct');
  1107. var constructorRegExp = /^\s*(?:class|function)\b/;
  1108. var exec$1 = uncurryThis$a(constructorRegExp.exec);
  1109. var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
  1110. var isConstructorModern = function isConstructor(argument) {
  1111. if (!isCallable$2(argument)) return false;
  1112. try {
  1113. construct(noop, [], argument);
  1114. return true;
  1115. } catch (error) {
  1116. return false;
  1117. }
  1118. };
  1119. var isConstructorLegacy = function isConstructor(argument) {
  1120. if (!isCallable$2(argument)) return false;
  1121. switch (classof$4(argument)) {
  1122. case 'AsyncFunction':
  1123. case 'GeneratorFunction':
  1124. case 'AsyncGeneratorFunction': return false;
  1125. }
  1126. try {
  1127. // we can't check .prototype since constructors produced by .bind haven't it
  1128. // `Function#toString` throws on some built-it function in some legacy engines
  1129. // (for example, `DOMQuad` and similar in FF41-)
  1130. return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
  1131. } catch (error) {
  1132. return true;
  1133. }
  1134. };
  1135. isConstructorLegacy.sham = true;
  1136. // `IsConstructor` abstract operation
  1137. // https://tc39.es/ecma262/#sec-isconstructor
  1138. var isConstructor$1 = !construct || fails$c(function () {
  1139. var called;
  1140. return isConstructorModern(isConstructorModern.call)
  1141. || !isConstructorModern(Object)
  1142. || !isConstructorModern(function () { called = true; })
  1143. || called;
  1144. }) ? isConstructorLegacy : isConstructorModern;
  1145. var isArray$1 = isArray$2;
  1146. var isConstructor = isConstructor$1;
  1147. var isObject$2 = isObject$8;
  1148. var wellKnownSymbol$6 = wellKnownSymbol$a;
  1149. var SPECIES$2 = wellKnownSymbol$6('species');
  1150. var $Array = Array;
  1151. // a part of `ArraySpeciesCreate` abstract operation
  1152. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1153. var arraySpeciesConstructor$1 = function (originalArray) {
  1154. var C;
  1155. if (isArray$1(originalArray)) {
  1156. C = originalArray.constructor;
  1157. // cross-realm fallback
  1158. if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined;
  1159. else if (isObject$2(C)) {
  1160. C = C[SPECIES$2];
  1161. if (C === null) C = undefined;
  1162. }
  1163. } return C === undefined ? $Array : C;
  1164. };
  1165. var arraySpeciesConstructor = arraySpeciesConstructor$1;
  1166. // `ArraySpeciesCreate` abstract operation
  1167. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1168. var arraySpeciesCreate$2 = function (originalArray, length) {
  1169. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1170. };
  1171. var fails$b = fails$l;
  1172. var wellKnownSymbol$5 = wellKnownSymbol$a;
  1173. var V8_VERSION$1 = engineV8Version;
  1174. var SPECIES$1 = wellKnownSymbol$5('species');
  1175. var arrayMethodHasSpeciesSupport$2 = function (METHOD_NAME) {
  1176. // We can't use this feature detection in V8 since it causes
  1177. // deoptimization and serious performance degradation
  1178. // https://github.com/zloirock/core-js/issues/677
  1179. return V8_VERSION$1 >= 51 || !fails$b(function () {
  1180. var array = [];
  1181. var constructor = array.constructor = {};
  1182. constructor[SPECIES$1] = function () {
  1183. return { foo: 1 };
  1184. };
  1185. return array[METHOD_NAME](Boolean).foo !== 1;
  1186. });
  1187. };
  1188. var $$a = _export;
  1189. var fails$a = fails$l;
  1190. var isArray = isArray$2;
  1191. var isObject$1 = isObject$8;
  1192. var toObject$3 = toObject$5;
  1193. var lengthOfArrayLike$1 = lengthOfArrayLike$3;
  1194. var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
  1195. var createProperty = createProperty$1;
  1196. var arraySpeciesCreate$1 = arraySpeciesCreate$2;
  1197. var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$2;
  1198. var wellKnownSymbol$4 = wellKnownSymbol$a;
  1199. var V8_VERSION = engineV8Version;
  1200. var IS_CONCAT_SPREADABLE = wellKnownSymbol$4('isConcatSpreadable');
  1201. // We can't use this feature detection in V8 since it causes
  1202. // deoptimization and serious performance degradation
  1203. // https://github.com/zloirock/core-js/issues/679
  1204. var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$a(function () {
  1205. var array = [];
  1206. array[IS_CONCAT_SPREADABLE] = false;
  1207. return array.concat()[0] !== array;
  1208. });
  1209. var isConcatSpreadable = function (O) {
  1210. if (!isObject$1(O)) return false;
  1211. var spreadable = O[IS_CONCAT_SPREADABLE];
  1212. return spreadable !== undefined ? !!spreadable : isArray(O);
  1213. };
  1214. var FORCED$2 = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport$1('concat');
  1215. // `Array.prototype.concat` method
  1216. // https://tc39.es/ecma262/#sec-array.prototype.concat
  1217. // with adding support of @@isConcatSpreadable and @@species
  1218. $$a({ target: 'Array', proto: true, arity: 1, forced: FORCED$2 }, {
  1219. // eslint-disable-next-line no-unused-vars -- required for `.length`
  1220. concat: function concat(arg) {
  1221. var O = toObject$3(this);
  1222. var A = arraySpeciesCreate$1(O, 0);
  1223. var n = 0;
  1224. var i, k, length, len, E;
  1225. for (i = -1, length = arguments.length; i < length; i++) {
  1226. E = i === -1 ? O : arguments[i];
  1227. if (isConcatSpreadable(E)) {
  1228. len = lengthOfArrayLike$1(E);
  1229. doesNotExceedSafeInteger(n + len);
  1230. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  1231. } else {
  1232. doesNotExceedSafeInteger(n + 1);
  1233. createProperty(A, n++, E);
  1234. }
  1235. }
  1236. A.length = n;
  1237. return A;
  1238. }
  1239. });
  1240. var classofRaw = classofRaw$2;
  1241. var uncurryThis$9 = functionUncurryThis;
  1242. var functionUncurryThisClause = function (fn) {
  1243. // Nashorn bug:
  1244. // https://github.com/zloirock/core-js/issues/1128
  1245. // https://github.com/zloirock/core-js/issues/1130
  1246. if (classofRaw(fn) === 'Function') return uncurryThis$9(fn);
  1247. };
  1248. var uncurryThis$8 = functionUncurryThisClause;
  1249. var aCallable = aCallable$2;
  1250. var NATIVE_BIND = functionBindNative;
  1251. var bind$1 = uncurryThis$8(uncurryThis$8.bind);
  1252. // optional / simple context binding
  1253. var functionBindContext = function (fn, that) {
  1254. aCallable(fn);
  1255. return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
  1256. return fn.apply(that, arguments);
  1257. };
  1258. };
  1259. var bind = functionBindContext;
  1260. var uncurryThis$7 = functionUncurryThis;
  1261. var IndexedObject$2 = indexedObject;
  1262. var toObject$2 = toObject$5;
  1263. var lengthOfArrayLike = lengthOfArrayLike$3;
  1264. var arraySpeciesCreate = arraySpeciesCreate$2;
  1265. var push$1 = uncurryThis$7([].push);
  1266. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  1267. var createMethod$2 = function (TYPE) {
  1268. var IS_MAP = TYPE === 1;
  1269. var IS_FILTER = TYPE === 2;
  1270. var IS_SOME = TYPE === 3;
  1271. var IS_EVERY = TYPE === 4;
  1272. var IS_FIND_INDEX = TYPE === 6;
  1273. var IS_FILTER_REJECT = TYPE === 7;
  1274. var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
  1275. return function ($this, callbackfn, that, specificCreate) {
  1276. var O = toObject$2($this);
  1277. var self = IndexedObject$2(O);
  1278. var length = lengthOfArrayLike(self);
  1279. var boundFunction = bind(callbackfn, that);
  1280. var index = 0;
  1281. var create = specificCreate || arraySpeciesCreate;
  1282. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  1283. var value, result;
  1284. for (;length > index; index++) if (NO_HOLES || index in self) {
  1285. value = self[index];
  1286. result = boundFunction(value, index, O);
  1287. if (TYPE) {
  1288. if (IS_MAP) target[index] = result; // map
  1289. else if (result) switch (TYPE) {
  1290. case 3: return true; // some
  1291. case 5: return value; // find
  1292. case 6: return index; // findIndex
  1293. case 2: push$1(target, value); // filter
  1294. } else switch (TYPE) {
  1295. case 4: return false; // every
  1296. case 7: push$1(target, value); // filterReject
  1297. }
  1298. }
  1299. }
  1300. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  1301. };
  1302. };
  1303. var arrayIteration = {
  1304. // `Array.prototype.forEach` method
  1305. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1306. forEach: createMethod$2(0),
  1307. // `Array.prototype.map` method
  1308. // https://tc39.es/ecma262/#sec-array.prototype.map
  1309. map: createMethod$2(1),
  1310. // `Array.prototype.filter` method
  1311. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1312. filter: createMethod$2(2),
  1313. // `Array.prototype.some` method
  1314. // https://tc39.es/ecma262/#sec-array.prototype.some
  1315. some: createMethod$2(3),
  1316. // `Array.prototype.every` method
  1317. // https://tc39.es/ecma262/#sec-array.prototype.every
  1318. every: createMethod$2(4),
  1319. // `Array.prototype.find` method
  1320. // https://tc39.es/ecma262/#sec-array.prototype.find
  1321. find: createMethod$2(5),
  1322. // `Array.prototype.findIndex` method
  1323. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  1324. findIndex: createMethod$2(6),
  1325. // `Array.prototype.filterReject` method
  1326. // https://github.com/tc39/proposal-array-filtering
  1327. filterReject: createMethod$2(7)
  1328. };
  1329. var $$9 = _export;
  1330. var $filter = arrayIteration.filter;
  1331. var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$2;
  1332. var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
  1333. // `Array.prototype.filter` method
  1334. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1335. // with adding support of @@species
  1336. $$9({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
  1337. filter: function filter(callbackfn /* , thisArg */) {
  1338. return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1339. }
  1340. });
  1341. var objectDefineProperties = {};
  1342. var internalObjectKeys = objectKeysInternal;
  1343. var enumBugKeys$1 = enumBugKeys$3;
  1344. // `Object.keys` method
  1345. // https://tc39.es/ecma262/#sec-object.keys
  1346. // eslint-disable-next-line es/no-object-keys -- safe
  1347. var objectKeys$3 = Object.keys || function keys(O) {
  1348. return internalObjectKeys(O, enumBugKeys$1);
  1349. };
  1350. var DESCRIPTORS$2 = descriptors;
  1351. var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
  1352. var definePropertyModule = objectDefineProperty;
  1353. var anObject$4 = anObject$7;
  1354. var toIndexedObject$2 = toIndexedObject$6;
  1355. var objectKeys$2 = objectKeys$3;
  1356. // `Object.defineProperties` method
  1357. // https://tc39.es/ecma262/#sec-object.defineproperties
  1358. // eslint-disable-next-line es/no-object-defineproperties -- safe
  1359. objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
  1360. anObject$4(O);
  1361. var props = toIndexedObject$2(Properties);
  1362. var keys = objectKeys$2(Properties);
  1363. var length = keys.length;
  1364. var index = 0;
  1365. var key;
  1366. while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
  1367. return O;
  1368. };
  1369. var getBuiltIn = getBuiltIn$4;
  1370. var html$1 = getBuiltIn('document', 'documentElement');
  1371. /* global ActiveXObject -- old IE, WSH */
  1372. var anObject$3 = anObject$7;
  1373. var definePropertiesModule = objectDefineProperties;
  1374. var enumBugKeys = enumBugKeys$3;
  1375. var hiddenKeys = hiddenKeys$4;
  1376. var html = html$1;
  1377. var documentCreateElement = documentCreateElement$1;
  1378. var sharedKey$1 = sharedKey$3;
  1379. var GT = '>';
  1380. var LT = '<';
  1381. var PROTOTYPE = 'prototype';
  1382. var SCRIPT = 'script';
  1383. var IE_PROTO$1 = sharedKey$1('IE_PROTO');
  1384. var EmptyConstructor = function () { /* empty */ };
  1385. var scriptTag = function (content) {
  1386. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  1387. };
  1388. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  1389. var NullProtoObjectViaActiveX = function (activeXDocument) {
  1390. activeXDocument.write(scriptTag(''));
  1391. activeXDocument.close();
  1392. var temp = activeXDocument.parentWindow.Object;
  1393. activeXDocument = null; // avoid memory leak
  1394. return temp;
  1395. };
  1396. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  1397. var NullProtoObjectViaIFrame = function () {
  1398. // Thrash, waste and sodomy: IE GC bug
  1399. var iframe = documentCreateElement('iframe');
  1400. var JS = 'java' + SCRIPT + ':';
  1401. var iframeDocument;
  1402. iframe.style.display = 'none';
  1403. html.appendChild(iframe);
  1404. // https://github.com/zloirock/core-js/issues/475
  1405. iframe.src = String(JS);
  1406. iframeDocument = iframe.contentWindow.document;
  1407. iframeDocument.open();
  1408. iframeDocument.write(scriptTag('document.F=Object'));
  1409. iframeDocument.close();
  1410. return iframeDocument.F;
  1411. };
  1412. // Check for document.domain and active x support
  1413. // No need to use active x approach when document.domain is not set
  1414. // see https://github.com/es-shims/es5-shim/issues/150
  1415. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  1416. // avoid IE GC bug
  1417. var activeXDocument;
  1418. var NullProtoObject = function () {
  1419. try {
  1420. activeXDocument = new ActiveXObject('htmlfile');
  1421. } catch (error) { /* ignore */ }
  1422. NullProtoObject = typeof document != 'undefined'
  1423. ? document.domain && activeXDocument
  1424. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  1425. : NullProtoObjectViaIFrame()
  1426. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  1427. var length = enumBugKeys.length;
  1428. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  1429. return NullProtoObject();
  1430. };
  1431. hiddenKeys[IE_PROTO$1] = true;
  1432. // `Object.create` method
  1433. // https://tc39.es/ecma262/#sec-object.create
  1434. // eslint-disable-next-line es/no-object-create -- safe
  1435. var objectCreate = Object.create || function create(O, Properties) {
  1436. var result;
  1437. if (O !== null) {
  1438. EmptyConstructor[PROTOTYPE] = anObject$3(O);
  1439. result = new EmptyConstructor();
  1440. EmptyConstructor[PROTOTYPE] = null;
  1441. // add "__proto__" for Object.getPrototypeOf polyfill
  1442. result[IE_PROTO$1] = O;
  1443. } else result = NullProtoObject();
  1444. return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
  1445. };
  1446. var wellKnownSymbol$3 = wellKnownSymbol$a;
  1447. var create$1 = objectCreate;
  1448. var defineProperty$1 = objectDefineProperty.f;
  1449. var UNSCOPABLES = wellKnownSymbol$3('unscopables');
  1450. var ArrayPrototype = Array.prototype;
  1451. // Array.prototype[@@unscopables]
  1452. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1453. if (ArrayPrototype[UNSCOPABLES] === undefined) {
  1454. defineProperty$1(ArrayPrototype, UNSCOPABLES, {
  1455. configurable: true,
  1456. value: create$1(null)
  1457. });
  1458. }
  1459. // add a key to Array.prototype[@@unscopables]
  1460. var addToUnscopables$2 = function (key) {
  1461. ArrayPrototype[UNSCOPABLES][key] = true;
  1462. };
  1463. var $$8 = _export;
  1464. var $find = arrayIteration.find;
  1465. var addToUnscopables$1 = addToUnscopables$2;
  1466. var FIND = 'find';
  1467. var SKIPS_HOLES = true;
  1468. // Shouldn't skip holes
  1469. // eslint-disable-next-line es/no-array-prototype-find -- testing
  1470. if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
  1471. // `Array.prototype.find` method
  1472. // https://tc39.es/ecma262/#sec-array.prototype.find
  1473. $$8({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
  1474. find: function find(callbackfn /* , that = undefined */) {
  1475. return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1476. }
  1477. });
  1478. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1479. addToUnscopables$1(FIND);
  1480. var $$7 = _export;
  1481. var $includes = arrayIncludes.includes;
  1482. var fails$9 = fails$l;
  1483. var addToUnscopables = addToUnscopables$2;
  1484. // FF99+ bug
  1485. var BROKEN_ON_SPARSE = fails$9(function () {
  1486. // eslint-disable-next-line es/no-array-prototype-includes -- detection
  1487. return !Array(1).includes();
  1488. });
  1489. // `Array.prototype.includes` method
  1490. // https://tc39.es/ecma262/#sec-array.prototype.includes
  1491. $$7({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
  1492. includes: function includes(el /* , fromIndex = 0 */) {
  1493. return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
  1494. }
  1495. });
  1496. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1497. addToUnscopables('includes');
  1498. var fails$8 = fails$l;
  1499. var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
  1500. var method = [][METHOD_NAME];
  1501. return !!method && fails$8(function () {
  1502. // eslint-disable-next-line no-useless-call -- required for testing
  1503. method.call(null, argument || function () { return 1; }, 1);
  1504. });
  1505. };
  1506. /* eslint-disable es/no-array-prototype-indexof -- required for testing */
  1507. var $$6 = _export;
  1508. var uncurryThis$6 = functionUncurryThisClause;
  1509. var $indexOf = arrayIncludes.indexOf;
  1510. var arrayMethodIsStrict$1 = arrayMethodIsStrict$2;
  1511. var nativeIndexOf = uncurryThis$6([].indexOf);
  1512. var NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;
  1513. var FORCED$1 = NEGATIVE_ZERO || !arrayMethodIsStrict$1('indexOf');
  1514. // `Array.prototype.indexOf` method
  1515. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  1516. $$6({ target: 'Array', proto: true, forced: FORCED$1 }, {
  1517. indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
  1518. var fromIndex = arguments.length > 1 ? arguments[1] : undefined;
  1519. return NEGATIVE_ZERO
  1520. // convert -0 to +0
  1521. ? nativeIndexOf(this, searchElement, fromIndex) || 0
  1522. : $indexOf(this, searchElement, fromIndex);
  1523. }
  1524. });
  1525. var $$5 = _export;
  1526. var uncurryThis$5 = functionUncurryThis;
  1527. var IndexedObject$1 = indexedObject;
  1528. var toIndexedObject$1 = toIndexedObject$6;
  1529. var arrayMethodIsStrict = arrayMethodIsStrict$2;
  1530. var nativeJoin = uncurryThis$5([].join);
  1531. var ES3_STRINGS = IndexedObject$1 !== Object;
  1532. var FORCED = ES3_STRINGS || !arrayMethodIsStrict('join', ',');
  1533. // `Array.prototype.join` method
  1534. // https://tc39.es/ecma262/#sec-array.prototype.join
  1535. $$5({ target: 'Array', proto: true, forced: FORCED }, {
  1536. join: function join(separator) {
  1537. return nativeJoin(toIndexedObject$1(this), separator === undefined ? ',' : separator);
  1538. }
  1539. });
  1540. var DESCRIPTORS$1 = descriptors;
  1541. var uncurryThis$4 = functionUncurryThis;
  1542. var call$4 = functionCall;
  1543. var fails$7 = fails$l;
  1544. var objectKeys$1 = objectKeys$3;
  1545. var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
  1546. var propertyIsEnumerableModule = objectPropertyIsEnumerable;
  1547. var toObject$1 = toObject$5;
  1548. var IndexedObject = indexedObject;
  1549. // eslint-disable-next-line es/no-object-assign -- safe
  1550. var $assign = Object.assign;
  1551. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  1552. var defineProperty = Object.defineProperty;
  1553. var concat = uncurryThis$4([].concat);
  1554. // `Object.assign` method
  1555. // https://tc39.es/ecma262/#sec-object.assign
  1556. var objectAssign = !$assign || fails$7(function () {
  1557. // should have correct order of operations (Edge bug)
  1558. if (DESCRIPTORS$1 && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
  1559. enumerable: true,
  1560. get: function () {
  1561. defineProperty(this, 'b', {
  1562. value: 3,
  1563. enumerable: false
  1564. });
  1565. }
  1566. }), { b: 2 })).b !== 1) return true;
  1567. // should work with symbols and should have deterministic property order (V8 bug)
  1568. var A = {};
  1569. var B = {};
  1570. // eslint-disable-next-line es/no-symbol -- safe
  1571. var symbol = Symbol('assign detection');
  1572. var alphabet = 'abcdefghijklmnopqrst';
  1573. A[symbol] = 7;
  1574. alphabet.split('').forEach(function (chr) { B[chr] = chr; });
  1575. return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
  1576. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
  1577. var T = toObject$1(target);
  1578. var argumentsLength = arguments.length;
  1579. var index = 1;
  1580. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  1581. var propertyIsEnumerable = propertyIsEnumerableModule.f;
  1582. while (argumentsLength > index) {
  1583. var S = IndexedObject(arguments[index++]);
  1584. var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
  1585. var length = keys.length;
  1586. var j = 0;
  1587. var key;
  1588. while (length > j) {
  1589. key = keys[j++];
  1590. if (!DESCRIPTORS$1 || call$4(propertyIsEnumerable, S, key)) T[key] = S[key];
  1591. }
  1592. } return T;
  1593. } : $assign;
  1594. var $$4 = _export;
  1595. var assign = objectAssign;
  1596. // `Object.assign` method
  1597. // https://tc39.es/ecma262/#sec-object.assign
  1598. // eslint-disable-next-line es/no-object-assign -- required for testing
  1599. $$4({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
  1600. assign: assign
  1601. });
  1602. var fails$6 = fails$l;
  1603. var correctPrototypeGetter = !fails$6(function () {
  1604. function F() { /* empty */ }
  1605. F.prototype.constructor = null;
  1606. // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
  1607. return Object.getPrototypeOf(new F()) !== F.prototype;
  1608. });
  1609. var hasOwn = hasOwnProperty_1;
  1610. var isCallable$1 = isCallable$e;
  1611. var toObject = toObject$5;
  1612. var sharedKey = sharedKey$3;
  1613. var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
  1614. var IE_PROTO = sharedKey('IE_PROTO');
  1615. var $Object = Object;
  1616. var ObjectPrototype = $Object.prototype;
  1617. // `Object.getPrototypeOf` method
  1618. // https://tc39.es/ecma262/#sec-object.getprototypeof
  1619. // eslint-disable-next-line es/no-object-getprototypeof -- safe
  1620. var objectGetPrototypeOf$1 = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
  1621. var object = toObject(O);
  1622. if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];
  1623. var constructor = object.constructor;
  1624. if (isCallable$1(constructor) && object instanceof constructor) {
  1625. return constructor.prototype;
  1626. } return object instanceof $Object ? ObjectPrototype : null;
  1627. };
  1628. var DESCRIPTORS = descriptors;
  1629. var fails$5 = fails$l;
  1630. var uncurryThis$3 = functionUncurryThis;
  1631. var objectGetPrototypeOf = objectGetPrototypeOf$1;
  1632. var objectKeys = objectKeys$3;
  1633. var toIndexedObject = toIndexedObject$6;
  1634. var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
  1635. var propertyIsEnumerable = uncurryThis$3($propertyIsEnumerable);
  1636. var push = uncurryThis$3([].push);
  1637. // in some IE versions, `propertyIsEnumerable` returns incorrect result on integer keys
  1638. // of `null` prototype objects
  1639. var IE_BUG = DESCRIPTORS && fails$5(function () {
  1640. // eslint-disable-next-line es/no-object-create -- safe
  1641. var O = Object.create(null);
  1642. O[2] = 2;
  1643. return !propertyIsEnumerable(O, 2);
  1644. });
  1645. // `Object.{ entries, values }` methods implementation
  1646. var createMethod$1 = function (TO_ENTRIES) {
  1647. return function (it) {
  1648. var O = toIndexedObject(it);
  1649. var keys = objectKeys(O);
  1650. var IE_WORKAROUND = IE_BUG && objectGetPrototypeOf(O) === null;
  1651. var length = keys.length;
  1652. var i = 0;
  1653. var result = [];
  1654. var key;
  1655. while (length > i) {
  1656. key = keys[i++];
  1657. if (!DESCRIPTORS || (IE_WORKAROUND ? key in O : propertyIsEnumerable(O, key))) {
  1658. push(result, TO_ENTRIES ? [key, O[key]] : O[key]);
  1659. }
  1660. }
  1661. return result;
  1662. };
  1663. };
  1664. var objectToArray = {
  1665. // `Object.entries` method
  1666. // https://tc39.es/ecma262/#sec-object.entries
  1667. entries: createMethod$1(true),
  1668. // `Object.values` method
  1669. // https://tc39.es/ecma262/#sec-object.values
  1670. values: createMethod$1(false)
  1671. };
  1672. var $$3 = _export;
  1673. var $entries = objectToArray.entries;
  1674. // `Object.entries` method
  1675. // https://tc39.es/ecma262/#sec-object.entries
  1676. $$3({ target: 'Object', stat: true }, {
  1677. entries: function entries(O) {
  1678. return $entries(O);
  1679. }
  1680. });
  1681. var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
  1682. var classof$3 = classof$5;
  1683. // `Object.prototype.toString` method implementation
  1684. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1685. var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
  1686. return '[object ' + classof$3(this) + ']';
  1687. };
  1688. var TO_STRING_TAG_SUPPORT = toStringTagSupport;
  1689. var defineBuiltIn$1 = defineBuiltIn$3;
  1690. var toString$5 = objectToString;
  1691. // `Object.prototype.toString` method
  1692. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1693. if (!TO_STRING_TAG_SUPPORT) {
  1694. defineBuiltIn$1(Object.prototype, 'toString', toString$5, { unsafe: true });
  1695. }
  1696. var classof$2 = classof$5;
  1697. var $String = String;
  1698. var toString$4 = function (argument) {
  1699. if (classof$2(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
  1700. return $String(argument);
  1701. };
  1702. var anObject$2 = anObject$7;
  1703. // `RegExp.prototype.flags` getter implementation
  1704. // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
  1705. var regexpFlags$1 = function () {
  1706. var that = anObject$2(this);
  1707. var result = '';
  1708. if (that.hasIndices) result += 'd';
  1709. if (that.global) result += 'g';
  1710. if (that.ignoreCase) result += 'i';
  1711. if (that.multiline) result += 'm';
  1712. if (that.dotAll) result += 's';
  1713. if (that.unicode) result += 'u';
  1714. if (that.unicodeSets) result += 'v';
  1715. if (that.sticky) result += 'y';
  1716. return result;
  1717. };
  1718. var fails$4 = fails$l;
  1719. var global$3 = global$d;
  1720. // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
  1721. var $RegExp$2 = global$3.RegExp;
  1722. var UNSUPPORTED_Y$1 = fails$4(function () {
  1723. var re = $RegExp$2('a', 'y');
  1724. re.lastIndex = 2;
  1725. return re.exec('abcd') !== null;
  1726. });
  1727. // UC Browser bug
  1728. // https://github.com/zloirock/core-js/issues/1008
  1729. var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$4(function () {
  1730. return !$RegExp$2('a', 'y').sticky;
  1731. });
  1732. var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$4(function () {
  1733. // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
  1734. var re = $RegExp$2('^r', 'gy');
  1735. re.lastIndex = 2;
  1736. return re.exec('str') !== null;
  1737. });
  1738. var regexpStickyHelpers = {
  1739. BROKEN_CARET: BROKEN_CARET,
  1740. MISSED_STICKY: MISSED_STICKY,
  1741. UNSUPPORTED_Y: UNSUPPORTED_Y$1
  1742. };
  1743. var fails$3 = fails$l;
  1744. var global$2 = global$d;
  1745. // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
  1746. var $RegExp$1 = global$2.RegExp;
  1747. var regexpUnsupportedDotAll = fails$3(function () {
  1748. var re = $RegExp$1('.', 's');
  1749. return !(re.dotAll && re.test('\n') && re.flags === 's');
  1750. });
  1751. var fails$2 = fails$l;
  1752. var global$1 = global$d;
  1753. // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
  1754. var $RegExp = global$1.RegExp;
  1755. var regexpUnsupportedNcg = fails$2(function () {
  1756. var re = $RegExp('(?<a>b)', 'g');
  1757. return re.exec('b').groups.a !== 'b' ||
  1758. 'b'.replace(re, '$<a>c') !== 'bc';
  1759. });
  1760. /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
  1761. /* eslint-disable regexp/no-useless-quantifier -- testing */
  1762. var call$3 = functionCall;
  1763. var uncurryThis$2 = functionUncurryThis;
  1764. var toString$3 = toString$4;
  1765. var regexpFlags = regexpFlags$1;
  1766. var stickyHelpers = regexpStickyHelpers;
  1767. var shared = shared$4;
  1768. var create = objectCreate;
  1769. var getInternalState = internalState.get;
  1770. var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
  1771. var UNSUPPORTED_NCG = regexpUnsupportedNcg;
  1772. var nativeReplace = shared('native-string-replace', String.prototype.replace);
  1773. var nativeExec = RegExp.prototype.exec;
  1774. var patchedExec = nativeExec;
  1775. var charAt = uncurryThis$2(''.charAt);
  1776. var indexOf = uncurryThis$2(''.indexOf);
  1777. var replace$1 = uncurryThis$2(''.replace);
  1778. var stringSlice = uncurryThis$2(''.slice);
  1779. var UPDATES_LAST_INDEX_WRONG = (function () {
  1780. var re1 = /a/;
  1781. var re2 = /b*/g;
  1782. call$3(nativeExec, re1, 'a');
  1783. call$3(nativeExec, re2, 'a');
  1784. return re1.lastIndex !== 0 || re2.lastIndex !== 0;
  1785. })();
  1786. var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
  1787. // nonparticipating capturing group, copied from es5-shim's String#split patch.
  1788. var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
  1789. var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
  1790. if (PATCH) {
  1791. patchedExec = function exec(string) {
  1792. var re = this;
  1793. var state = getInternalState(re);
  1794. var str = toString$3(string);
  1795. var raw = state.raw;
  1796. var result, reCopy, lastIndex, match, i, object, group;
  1797. if (raw) {
  1798. raw.lastIndex = re.lastIndex;
  1799. result = call$3(patchedExec, raw, str);
  1800. re.lastIndex = raw.lastIndex;
  1801. return result;
  1802. }
  1803. var groups = state.groups;
  1804. var sticky = UNSUPPORTED_Y && re.sticky;
  1805. var flags = call$3(regexpFlags, re);
  1806. var source = re.source;
  1807. var charsAdded = 0;
  1808. var strCopy = str;
  1809. if (sticky) {
  1810. flags = replace$1(flags, 'y', '');
  1811. if (indexOf(flags, 'g') === -1) {
  1812. flags += 'g';
  1813. }
  1814. strCopy = stringSlice(str, re.lastIndex);
  1815. // Support anchored sticky behavior.
  1816. if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\n')) {
  1817. source = '(?: ' + source + ')';
  1818. strCopy = ' ' + strCopy;
  1819. charsAdded++;
  1820. }
  1821. // ^(? + rx + ) is needed, in combination with some str slicing, to
  1822. // simulate the 'y' flag.
  1823. reCopy = new RegExp('^(?:' + source + ')', flags);
  1824. }
  1825. if (NPCG_INCLUDED) {
  1826. reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
  1827. }
  1828. if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
  1829. match = call$3(nativeExec, sticky ? reCopy : re, strCopy);
  1830. if (sticky) {
  1831. if (match) {
  1832. match.input = stringSlice(match.input, charsAdded);
  1833. match[0] = stringSlice(match[0], charsAdded);
  1834. match.index = re.lastIndex;
  1835. re.lastIndex += match[0].length;
  1836. } else re.lastIndex = 0;
  1837. } else if (UPDATES_LAST_INDEX_WRONG && match) {
  1838. re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
  1839. }
  1840. if (NPCG_INCLUDED && match && match.length > 1) {
  1841. // Fix browsers whose `exec` methods don't consistently return `undefined`
  1842. // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
  1843. call$3(nativeReplace, match[0], reCopy, function () {
  1844. for (i = 1; i < arguments.length - 2; i++) {
  1845. if (arguments[i] === undefined) match[i] = undefined;
  1846. }
  1847. });
  1848. }
  1849. if (match && groups) {
  1850. match.groups = object = create(null);
  1851. for (i = 0; i < groups.length; i++) {
  1852. group = groups[i];
  1853. object[group[0]] = match[group[1]];
  1854. }
  1855. }
  1856. return match;
  1857. };
  1858. }
  1859. var regexpExec$2 = patchedExec;
  1860. var $$2 = _export;
  1861. var exec = regexpExec$2;
  1862. // `RegExp.prototype.exec` method
  1863. // https://tc39.es/ecma262/#sec-regexp.prototype.exec
  1864. $$2({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
  1865. exec: exec
  1866. });
  1867. var isObject = isObject$8;
  1868. var classof$1 = classofRaw$2;
  1869. var wellKnownSymbol$2 = wellKnownSymbol$a;
  1870. var MATCH$1 = wellKnownSymbol$2('match');
  1871. // `IsRegExp` abstract operation
  1872. // https://tc39.es/ecma262/#sec-isregexp
  1873. var isRegexp = function (it) {
  1874. var isRegExp;
  1875. return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$1(it) === 'RegExp');
  1876. };
  1877. var isRegExp = isRegexp;
  1878. var $TypeError$1 = TypeError;
  1879. var notARegexp = function (it) {
  1880. if (isRegExp(it)) {
  1881. throw new $TypeError$1("The method doesn't accept regular expressions");
  1882. } return it;
  1883. };
  1884. var wellKnownSymbol$1 = wellKnownSymbol$a;
  1885. var MATCH = wellKnownSymbol$1('match');
  1886. var correctIsRegexpLogic = function (METHOD_NAME) {
  1887. var regexp = /./;
  1888. try {
  1889. '/./'[METHOD_NAME](regexp);
  1890. } catch (error1) {
  1891. try {
  1892. regexp[MATCH] = false;
  1893. return '/./'[METHOD_NAME](regexp);
  1894. } catch (error2) { /* empty */ }
  1895. } return false;
  1896. };
  1897. var $$1 = _export;
  1898. var uncurryThis$1 = functionUncurryThis;
  1899. var notARegExp = notARegexp;
  1900. var requireObjectCoercible$2 = requireObjectCoercible$5;
  1901. var toString$2 = toString$4;
  1902. var correctIsRegExpLogic = correctIsRegexpLogic;
  1903. var stringIndexOf = uncurryThis$1(''.indexOf);
  1904. // `String.prototype.includes` method
  1905. // https://tc39.es/ecma262/#sec-string.prototype.includes
  1906. $$1({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
  1907. includes: function includes(searchString /* , position = 0 */) {
  1908. return !!~stringIndexOf(
  1909. toString$2(requireObjectCoercible$2(this)),
  1910. toString$2(notARegExp(searchString)),
  1911. arguments.length > 1 ? arguments[1] : undefined
  1912. );
  1913. }
  1914. });
  1915. // TODO: Remove from `core-js@4` since it's moved to entry points
  1916. var call$2 = functionCall;
  1917. var defineBuiltIn = defineBuiltIn$3;
  1918. var regexpExec$1 = regexpExec$2;
  1919. var fails$1 = fails$l;
  1920. var wellKnownSymbol = wellKnownSymbol$a;
  1921. var createNonEnumerableProperty = createNonEnumerableProperty$3;
  1922. var SPECIES = wellKnownSymbol('species');
  1923. var RegExpPrototype = RegExp.prototype;
  1924. var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
  1925. var SYMBOL = wellKnownSymbol(KEY);
  1926. var DELEGATES_TO_SYMBOL = !fails$1(function () {
  1927. // String methods call symbol-named RegExp methods
  1928. var O = {};
  1929. O[SYMBOL] = function () { return 7; };
  1930. return ''[KEY](O) !== 7;
  1931. });
  1932. var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
  1933. // Symbol-named RegExp methods call .exec
  1934. var execCalled = false;
  1935. var re = /a/;
  1936. if (KEY === 'split') {
  1937. // We can't use real regex here since it causes deoptimization
  1938. // and serious performance degradation in V8
  1939. // https://github.com/zloirock/core-js/issues/306
  1940. re = {};
  1941. // RegExp[@@split] doesn't call the regex's exec method, but first creates
  1942. // a new one. We need to return the patched regex when creating the new one.
  1943. re.constructor = {};
  1944. re.constructor[SPECIES] = function () { return re; };
  1945. re.flags = '';
  1946. re[SYMBOL] = /./[SYMBOL];
  1947. }
  1948. re.exec = function () {
  1949. execCalled = true;
  1950. return null;
  1951. };
  1952. re[SYMBOL]('');
  1953. return !execCalled;
  1954. });
  1955. if (
  1956. !DELEGATES_TO_SYMBOL ||
  1957. !DELEGATES_TO_EXEC ||
  1958. FORCED
  1959. ) {
  1960. var nativeRegExpMethod = /./[SYMBOL];
  1961. var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
  1962. var $exec = regexp.exec;
  1963. if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
  1964. if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
  1965. // The native String method already delegates to @@method (this
  1966. // polyfilled function), leasing to infinite recursion.
  1967. // We avoid it by directly calling the native @@method method.
  1968. return { done: true, value: call$2(nativeRegExpMethod, regexp, str, arg2) };
  1969. }
  1970. return { done: true, value: call$2(nativeMethod, str, regexp, arg2) };
  1971. }
  1972. return { done: false };
  1973. });
  1974. defineBuiltIn(String.prototype, KEY, methods[0]);
  1975. defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
  1976. }
  1977. if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
  1978. };
  1979. // `SameValue` abstract operation
  1980. // https://tc39.es/ecma262/#sec-samevalue
  1981. // eslint-disable-next-line es/no-object-is -- safe
  1982. var sameValue$1 = Object.is || function is(x, y) {
  1983. // eslint-disable-next-line no-self-compare -- NaN check
  1984. return x === y ? x !== 0 || 1 / x === 1 / y : x !== x && y !== y;
  1985. };
  1986. var call$1 = functionCall;
  1987. var anObject$1 = anObject$7;
  1988. var isCallable = isCallable$e;
  1989. var classof = classofRaw$2;
  1990. var regexpExec = regexpExec$2;
  1991. var $TypeError = TypeError;
  1992. // `RegExpExec` abstract operation
  1993. // https://tc39.es/ecma262/#sec-regexpexec
  1994. var regexpExecAbstract = function (R, S) {
  1995. var exec = R.exec;
  1996. if (isCallable(exec)) {
  1997. var result = call$1(exec, R, S);
  1998. if (result !== null) anObject$1(result);
  1999. return result;
  2000. }
  2001. if (classof(R) === 'RegExp') return call$1(regexpExec, R, S);
  2002. throw new $TypeError('RegExp#exec called on incompatible receiver');
  2003. };
  2004. var call = functionCall;
  2005. var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
  2006. var anObject = anObject$7;
  2007. var isNullOrUndefined = isNullOrUndefined$3;
  2008. var requireObjectCoercible$1 = requireObjectCoercible$5;
  2009. var sameValue = sameValue$1;
  2010. var toString$1 = toString$4;
  2011. var getMethod = getMethod$2;
  2012. var regExpExec = regexpExecAbstract;
  2013. // @@search logic
  2014. fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) {
  2015. return [
  2016. // `String.prototype.search` method
  2017. // https://tc39.es/ecma262/#sec-string.prototype.search
  2018. function search(regexp) {
  2019. var O = requireObjectCoercible$1(this);
  2020. var searcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, SEARCH);
  2021. return searcher ? call(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString$1(O));
  2022. },
  2023. // `RegExp.prototype[@@search]` method
  2024. // https://tc39.es/ecma262/#sec-regexp.prototype-@@search
  2025. function (string) {
  2026. var rx = anObject(this);
  2027. var S = toString$1(string);
  2028. var res = maybeCallNative(nativeSearch, rx, S);
  2029. if (res.done) return res.value;
  2030. var previousLastIndex = rx.lastIndex;
  2031. if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
  2032. var result = regExpExec(rx, S);
  2033. if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
  2034. return result === null ? -1 : result.index;
  2035. }
  2036. ];
  2037. });
  2038. // a string of all valid unicode whitespaces
  2039. var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
  2040. '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
  2041. var uncurryThis = functionUncurryThis;
  2042. var requireObjectCoercible = requireObjectCoercible$5;
  2043. var toString = toString$4;
  2044. var whitespaces$1 = whitespaces$2;
  2045. var replace = uncurryThis(''.replace);
  2046. var ltrim = RegExp('^[' + whitespaces$1 + ']+');
  2047. var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$');
  2048. // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
  2049. var createMethod = function (TYPE) {
  2050. return function ($this) {
  2051. var string = toString(requireObjectCoercible($this));
  2052. if (TYPE & 1) string = replace(string, ltrim, '');
  2053. if (TYPE & 2) string = replace(string, rtrim, '$1');
  2054. return string;
  2055. };
  2056. };
  2057. var stringTrim = {
  2058. // `String.prototype.{ trimLeft, trimStart }` methods
  2059. // https://tc39.es/ecma262/#sec-string.prototype.trimstart
  2060. start: createMethod(1),
  2061. // `String.prototype.{ trimRight, trimEnd }` methods
  2062. // https://tc39.es/ecma262/#sec-string.prototype.trimend
  2063. end: createMethod(2),
  2064. // `String.prototype.trim` method
  2065. // https://tc39.es/ecma262/#sec-string.prototype.trim
  2066. trim: createMethod(3)
  2067. };
  2068. var PROPER_FUNCTION_NAME = functionName.PROPER;
  2069. var fails = fails$l;
  2070. var whitespaces = whitespaces$2;
  2071. var non = '\u200B\u0085\u180E';
  2072. // check that a method works with the correct list
  2073. // of whitespaces and has a correct name
  2074. var stringTrimForced = function (METHOD_NAME) {
  2075. return fails(function () {
  2076. return !!whitespaces[METHOD_NAME]()
  2077. || non[METHOD_NAME]() !== non
  2078. || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
  2079. });
  2080. };
  2081. var $ = _export;
  2082. var $trim = stringTrim.trim;
  2083. var forcedStringTrimMethod = stringTrimForced;
  2084. // `String.prototype.trim` method
  2085. // https://tc39.es/ecma262/#sec-string.prototype.trim
  2086. $({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
  2087. trim: function trim() {
  2088. return $trim(this);
  2089. }
  2090. });
  2091. /**
  2092. * @author: aperez <aperez@datadec.es>
  2093. * @version: v2.0.0
  2094. *
  2095. * @update Dennis Hernández
  2096. * @update zhixin wen <wenzhixin2010@gmail.com>
  2097. */
  2098. var Utils = $$b.fn.bootstrapTable.utils;
  2099. var theme = {
  2100. bootstrap3: {
  2101. icons: {
  2102. advancedSearchIcon: 'glyphicon-chevron-down'
  2103. },
  2104. classes: {},
  2105. html: {
  2106. modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"mySmallModalLabel\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-xs\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n <h4 class=\"modal-title\">%s</h4>\n </div>\n <div class=\"modal-body modal-body-custom\">\n <div class=\"container-fluid\" id=\"avdSearchModalContent_%s\"\n style=\"padding-right: 0px; padding-left: 0px;\" >\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" id=\"btnCloseAvd_%s\" class=\"btn btn-%s\">%s</button>\n </div>\n </div>\n </div>\n </div>\n "
  2107. }
  2108. },
  2109. bootstrap4: {
  2110. icons: {
  2111. advancedSearchIcon: 'fa-chevron-down'
  2112. },
  2113. classes: {},
  2114. html: {
  2115. modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"mySmallModalLabel\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-xs\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h4 class=\"modal-title\">%s</h4>\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n </div>\n <div class=\"modal-body modal-body-custom\">\n <div class=\"container-fluid\" id=\"avdSearchModalContent_%s\"\n style=\"padding-right: 0; padding-left: 0;\" >\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" id=\"btnCloseAvd_%s\" class=\"btn btn-%s\">%s</button>\n </div>\n </div>\n </div>\n </div>\n "
  2116. }
  2117. },
  2118. bootstrap5: {
  2119. icons: {
  2120. advancedSearchIcon: 'bi-chevron-down'
  2121. },
  2122. classes: {
  2123. formGroup: 'mb-3'
  2124. },
  2125. html: {
  2126. modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal fade\" tabindex=\"-1\" aria-labelledby=\"mySmallModalLabel\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-xs\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h5 class=\"modal-title\">%s</h5>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>\n </div>\n <div class=\"modal-body modal-body-custom\">\n <div class=\"container-fluid\" id=\"avdSearchModalContent_%s\"\n style=\"padding-right: 0; padding-left: 0;\" >\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" id=\"btnCloseAvd_%s\" class=\"btn btn-%s\">%s</button>\n </div>\n </div>\n </div>\n </div>\n "
  2127. }
  2128. },
  2129. bulma: {
  2130. icons: {
  2131. advancedSearchIcon: 'fa-chevron-down'
  2132. },
  2133. classes: {},
  2134. html: {
  2135. modal: "\n <div class=\"modal\" id=\"avdSearchModal_%s\">\n <div class=\"modal-background\"></div>\n <div class=\"modal-card\">\n <header class=\"modal-card-head\">\n <p class=\"modal-card-title\">%s</p>\n <button class=\"delete\" aria-label=\"close\"></button>\n </header>\n <section class=\"modal-card-body\" id=\"avdSearchModalContent_%s\"></section>\n <footer class=\"modal-card-foot\">\n <button class=\"button\" id=\"btnCloseAvd_%s\" data-close=\"btn btn-%s\">%s</button>\n </footer>\n </div>\n </div>\n "
  2136. }
  2137. },
  2138. foundation: {
  2139. icons: {
  2140. advancedSearchIcon: 'fa-chevron-down'
  2141. },
  2142. classes: {},
  2143. html: {
  2144. modal: "\n <div class=\"reveal\" id=\"avdSearchModal_%s\" data-reveal>\n <h1>%s</h1>\n <div id=\"avdSearchModalContent_%s\">\n\n </div>\n <button class=\"close-button\" data-close aria-label=\"Close modal\" type=\"button\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n\n <button id=\"btnCloseAvd_%s\" class=\"%s\" type=\"button\">%s</button>\n </div>\n "
  2145. }
  2146. },
  2147. materialize: {
  2148. icons: {
  2149. advancedSearchIcon: 'expand_more'
  2150. },
  2151. classes: {},
  2152. html: {
  2153. modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal\">\n <div class=\"modal-content\">\n <h4>%s</h4>\n <div id=\"avdSearchModalContent_%s\">\n\n </div>\n </div>\n <div class=\"modal-footer\">\n <a href=\"javascript:void(0)\"\" id=\"btnCloseAvd_%s\" class=\"modal-close waves-effect waves-green btn-flat %s\">%s</a>\n </div>\n </div>\n "
  2154. }
  2155. },
  2156. semantic: {
  2157. icons: {
  2158. advancedSearchIcon: 'fa-chevron-down'
  2159. },
  2160. classes: {},
  2161. html: {
  2162. modal: "\n <div class=\"ui modal\" id=\"avdSearchModal_%s\">\n <i class=\"close icon\"></i>\n <div class=\"header\">\n %s\n </div>\n <div class=\"image content ui form\" id=\"avdSearchModalContent_%s\"></div>\n <div class=\"actions\">\n <div id=\"btnCloseAvd_%s\" class=\"ui black deny button %s\">%s</div>\n </div>\n </div>\n "
  2163. }
  2164. }
  2165. }[$$b.fn.bootstrapTable.theme];
  2166. Object.assign($$b.fn.bootstrapTable.defaults, {
  2167. advancedSearch: false,
  2168. idForm: 'advancedSearch',
  2169. actionForm: '',
  2170. idTable: undefined,
  2171. // eslint-disable-next-line no-unused-vars
  2172. onColumnAdvancedSearch: function onColumnAdvancedSearch(field, text) {
  2173. return false;
  2174. }
  2175. });
  2176. Object.assign($$b.fn.bootstrapTable.defaults.icons, {
  2177. advancedSearchIcon: theme.icons.advancedSearchIcon
  2178. });
  2179. Object.assign($$b.fn.bootstrapTable.events, {
  2180. 'column-advanced-search.bs.table': 'onColumnAdvancedSearch'
  2181. });
  2182. Object.assign($$b.fn.bootstrapTable.locales, {
  2183. formatAdvancedSearch: function formatAdvancedSearch() {
  2184. return 'Advanced search';
  2185. },
  2186. formatAdvancedCloseButton: function formatAdvancedCloseButton() {
  2187. return 'Close';
  2188. }
  2189. });
  2190. Object.assign($$b.fn.bootstrapTable.defaults, $$b.fn.bootstrapTable.locales);
  2191. $$b.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  2192. _inherits(_class, _$$BootstrapTable);
  2193. function _class() {
  2194. _classCallCheck(this, _class);
  2195. return _callSuper(this, _class, arguments);
  2196. }
  2197. _createClass(_class, [{
  2198. key: "initToolbar",
  2199. value: function initToolbar() {
  2200. var o = this.options;
  2201. this.showToolbar = this.showToolbar || o.search && o.advancedSearch && o.idTable;
  2202. if (o.search && o.advancedSearch && o.idTable) {
  2203. this.buttons = Object.assign(this.buttons, {
  2204. advancedSearch: {
  2205. text: this.options.formatAdvancedSearch(),
  2206. icon: this.options.icons.advancedSearchIcon,
  2207. event: this.showAvdSearch,
  2208. attributes: {
  2209. 'aria-label': this.options.formatAdvancedSearch(),
  2210. title: this.options.formatAdvancedSearch()
  2211. }
  2212. }
  2213. });
  2214. }
  2215. _get(_getPrototypeOf(_class.prototype), "initToolbar", this).call(this);
  2216. }
  2217. }, {
  2218. key: "showAvdSearch",
  2219. value: function showAvdSearch() {
  2220. var _this = this;
  2221. var o = this.options;
  2222. var modalSelector = "#avdSearchModal_".concat(o.idTable);
  2223. if ($$b(modalSelector).length <= 0) {
  2224. $$b('body').append(Utils.sprintf(theme.html.modal, o.idTable, o.formatAdvancedSearch(), o.idTable, o.idTable, o.buttonsClass, o.formatAdvancedCloseButton()));
  2225. var timeoutId = 0;
  2226. $$b("#avdSearchModalContent_".concat(o.idTable)).append(this.createFormAvd().join(''));
  2227. $$b("#".concat(o.idForm)).off('keyup blur', 'input').on('keyup blur', 'input', function (e) {
  2228. if (o.sidePagination === 'server') {
  2229. _this.onColumnAdvancedSearch(e);
  2230. } else {
  2231. clearTimeout(timeoutId);
  2232. timeoutId = setTimeout(function () {
  2233. _this.onColumnAdvancedSearch(e);
  2234. }, o.searchTimeOut);
  2235. }
  2236. });
  2237. $$b("#btnCloseAvd_".concat(o.idTable)).click(function () {
  2238. return _this.hideModal();
  2239. });
  2240. if ($$b.fn.bootstrapTable.theme === 'bulma') {
  2241. $$b(modalSelector).find('.delete').off('click').on('click', function () {
  2242. return _this.hideModal();
  2243. });
  2244. }
  2245. this.showModal();
  2246. } else {
  2247. this.showModal();
  2248. }
  2249. }
  2250. }, {
  2251. key: "showModal",
  2252. value: function showModal() {
  2253. var modalSelector = "#avdSearchModal_".concat(this.options.idTable);
  2254. if ($$b.inArray($$b.fn.bootstrapTable.theme, ['bootstrap3', 'bootstrap4']) !== -1) {
  2255. $$b(modalSelector).modal();
  2256. } else if ($$b.fn.bootstrapTable.theme === 'bootstrap5') {
  2257. if (!this.toolbarModal) {
  2258. // eslint-disable-next-line no-undef
  2259. this.toolbarModal = new bootstrap.Modal(document.getElementById("avdSearchModal_".concat(this.options.idTable)), {});
  2260. }
  2261. this.toolbarModal.show();
  2262. } else if ($$b.fn.bootstrapTable.theme === 'bulma') {
  2263. $$b(modalSelector).toggleClass('is-active');
  2264. } else if ($$b.fn.bootstrapTable.theme === 'foundation') {
  2265. if (!this.toolbarModal) {
  2266. // eslint-disable-next-line no-undef
  2267. this.toolbarModal = new Foundation.Reveal($$b(modalSelector));
  2268. }
  2269. this.toolbarModal.open();
  2270. } else if ($$b.fn.bootstrapTable.theme === 'materialize') {
  2271. $$b(modalSelector).modal();
  2272. $$b(modalSelector).modal('open');
  2273. } else if ($$b.fn.bootstrapTable.theme === 'semantic') {
  2274. $$b(modalSelector).modal('show');
  2275. }
  2276. }
  2277. }, {
  2278. key: "hideModal",
  2279. value: function hideModal() {
  2280. var $closeModalButton = $$b("#avdSearchModal_".concat(this.options.idTable));
  2281. var modalSelector = "#avdSearchModal_".concat(this.options.idTable);
  2282. if ($$b.inArray($$b.fn.bootstrapTable.theme, ['bootstrap3', 'bootstrap4']) !== -1) {
  2283. $closeModalButton.modal('hide');
  2284. } else if ($$b.fn.bootstrapTable.theme === 'bootstrap5') {
  2285. this.toolbarModal.hide();
  2286. } else if ($$b.fn.bootstrapTable.theme === 'bulma') {
  2287. $$b('html').toggleClass('is-clipped');
  2288. $$b(modalSelector).toggleClass('is-active');
  2289. } else if ($$b.fn.bootstrapTable.theme === 'foundation') {
  2290. this.toolbarModal.close();
  2291. } else if ($$b.fn.bootstrapTable.theme === 'materialize') {
  2292. $$b(modalSelector).modal('open');
  2293. } else if ($$b.fn.bootstrapTable.theme === 'semantic') {
  2294. $$b(modalSelector).modal('close');
  2295. }
  2296. if (this.options.sidePagination === 'server') {
  2297. this.options.pageNumber = 1;
  2298. this.updatePagination();
  2299. this.trigger('column-advanced-search', this.filterColumnsPartial);
  2300. }
  2301. }
  2302. }, {
  2303. key: "createFormAvd",
  2304. value: function createFormAvd() {
  2305. var o = this.options;
  2306. var html = ["<form class=\"form-horizontal\" id=\"".concat(o.idForm, "\" action=\"").concat(o.actionForm, "\">")];
  2307. var _iterator = _createForOfIteratorHelper(this.columns),
  2308. _step;
  2309. try {
  2310. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  2311. var column = _step.value;
  2312. if (!column.checkbox && column.visible && column.searchable) {
  2313. html.push("\n <div class=\"form-group row ".concat(theme.classes.formGroup || '', "\">\n <label class=\"col-sm-4 control-label\">").concat(column.title, "</label>\n <div class=\"col-sm-6\">\n <input type=\"text\" class=\"form-control ").concat(this.constants.classes.input, "\" name=\"").concat(column.field, "\" placeholder=\"").concat(column.title, "\" id=\"").concat(column.field, "\">\n </div>\n </div>\n "));
  2314. }
  2315. }
  2316. } catch (err) {
  2317. _iterator.e(err);
  2318. } finally {
  2319. _iterator.f();
  2320. }
  2321. html.push('</form>');
  2322. return html;
  2323. }
  2324. }, {
  2325. key: "initSearch",
  2326. value: function initSearch() {
  2327. var _this2 = this;
  2328. _get(_getPrototypeOf(_class.prototype), "initSearch", this).call(this);
  2329. if (!this.options.advancedSearch || this.options.sidePagination === 'server') {
  2330. return;
  2331. }
  2332. var fp = $$b.isEmptyObject(this.filterColumnsPartial) ? null : this.filterColumnsPartial;
  2333. this.data = fp ? this.data.filter(function (item, i) {
  2334. for (var _i = 0, _Object$entries = Object.entries(fp); _i < _Object$entries.length; _i++) {
  2335. var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
  2336. key = _Object$entries$_i[0],
  2337. v = _Object$entries$_i[1];
  2338. var val = v.toLowerCase();
  2339. var value = item[key];
  2340. var index = _this2.header.fields.indexOf(key);
  2341. value = Utils.calculateObjectValue(_this2.header, _this2.header.formatters[index], [value, item, i], value);
  2342. if (!(index !== -1 && (typeof value === 'string' || typeof value === 'number') && "".concat(value).toLowerCase().includes(val))) {
  2343. return false;
  2344. }
  2345. }
  2346. return true;
  2347. }) : this.data;
  2348. this.unsortedData = _toConsumableArray(this.data);
  2349. }
  2350. }, {
  2351. key: "onColumnAdvancedSearch",
  2352. value: function onColumnAdvancedSearch(e) {
  2353. var text = $$b(e.currentTarget).val().trim();
  2354. var $field = $$b(e.currentTarget)[0].id;
  2355. if ($$b.isEmptyObject(this.filterColumnsPartial)) {
  2356. this.filterColumnsPartial = {};
  2357. }
  2358. if (text) {
  2359. this.filterColumnsPartial[$field] = text;
  2360. } else {
  2361. delete this.filterColumnsPartial[$field];
  2362. }
  2363. if (this.options.sidePagination !== 'server') {
  2364. this.options.pageNumber = 1;
  2365. this.initSearch();
  2366. this.updatePagination();
  2367. this.trigger('column-advanced-search', $field, text);
  2368. }
  2369. }
  2370. }]);
  2371. return _class;
  2372. }($$b.BootstrapTable);
  2373. }));