bootstrap-table-toolbar.js 97 KB

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