bootstrap-table-toolbar.js 98 KB

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