bootstrap-table-toolbar.js 100 KB

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