@mapsindoors/map-template 1.93.2 → 1.94.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/dist/{GoogleMapsMap-982405ad.mjs → GoogleMapsMap-BqYRaFgc.mjs} +51 -62
  2. package/dist/MapboxMap-CUYrfLHY.mjs +34732 -0
  3. package/dist/_commonjsHelpers-ba3f0406.js +21 -0
  4. package/dist/combo-box-item.entry.js +15 -0
  5. package/dist/icon-b8d01d6f.js +24 -0
  6. package/dist/index-7e9696f3.js +1678 -0
  7. package/dist/index.js +1 -0
  8. package/dist/loader.js +18 -0
  9. package/dist/mapsindoors-react.es.js +3 -5
  10. package/dist/mapsindoors-react.umd.js +197 -582
  11. package/dist/mapsindoors-webcomponent.es.js +58512 -75790
  12. package/dist/mi-card_2.entry.js +28 -0
  13. package/dist/mi-chip.entry.js +22 -0
  14. package/dist/mi-column.entry.js +28 -0
  15. package/dist/mi-combo-box.entry.js +416 -0
  16. package/dist/mi-components.js +18 -0
  17. package/dist/mi-data-table.entry.js +302 -0
  18. package/dist/mi-distance_2.entry.js +67 -0
  19. package/dist/mi-dropdown-item.entry.js +15 -0
  20. package/dist/mi-dropdown.entry.js +610 -0
  21. package/dist/mi-floor-selector.entry.js +202 -0
  22. package/dist/mi-keyboard.entry.js +238 -0
  23. package/dist/mi-list-item-category.entry.js +48 -0
  24. package/dist/mi-list-item-location.entry.js +171 -0
  25. package/dist/mi-list.entry.js +56 -0
  26. package/dist/mi-location-booking.entry.js +5193 -0
  27. package/dist/mi-location-info.entry.js +63 -0
  28. package/dist/mi-map-googlemaps.entry.js +750 -0
  29. package/dist/mi-map-mapbox.entry.js +467 -0
  30. package/dist/mi-metric-card.entry.js +48 -0
  31. package/dist/mi-my-position.entry.js +986 -0
  32. package/dist/mi-notification.entry.js +127 -0
  33. package/dist/mi-route-instructions-heading.entry.js +73 -0
  34. package/dist/mi-route-instructions-maneuver-legacy.entry.js +82 -0
  35. package/dist/mi-route-instructions-maneuver.entry.js +82 -0
  36. package/dist/mi-route-instructions-step-legacy.entry.js +308 -0
  37. package/dist/mi-route-instructions-step.entry.js +321 -0
  38. package/dist/mi-route-instructions.entry.js +157 -0
  39. package/dist/mi-scroll-buttons.entry.js +112 -0
  40. package/dist/mi-search.entry.js +376 -0
  41. package/dist/mi-share-sms.entry.js +80 -0
  42. package/dist/mi-step-switcher.entry.js +31 -0
  43. package/dist/mi-tab-panel.entry.js +25 -0
  44. package/dist/mi-tab.entry.js +12 -0
  45. package/dist/mi-tabs.entry.js +47 -0
  46. package/dist/mi-time.entry.js +57 -0
  47. package/dist/mi-variables-9a6c8d4d.js +6 -0
  48. package/dist/polyfills/core-js.js +11 -0
  49. package/dist/polyfills/css-shim.js +1 -0
  50. package/dist/polyfills/dom.js +79 -0
  51. package/dist/polyfills/es5-html-element.js +1 -0
  52. package/dist/polyfills/index.js +34 -0
  53. package/dist/polyfills/system.js +6 -0
  54. package/dist/{reactcomponent-7fbbd9b2.mjs → reactcomponent-DTepe7hB.mjs} +14121 -14626
  55. package/dist/route-travel-mode.enum-7f4ce9c7.js +9 -0
  56. package/dist/sort-order.enum-64ce8998.js +552 -0
  57. package/dist/unit-system.enum-eaefb53e.js +7 -0
  58. package/dist/utils-ae714467.js +61 -0
  59. package/package.json +10 -6
  60. package/dist/MapboxMap-06ef82a3.mjs +0 -37815
  61. package/dist/_commonjsHelpers-ba3f0406-b96e6d6a.mjs +0 -22
  62. package/dist/combo-box-item.entry-d35f3d51.mjs +0 -15
  63. package/dist/icon-b8d01d6f-ddfa2c17.mjs +0 -25
  64. package/dist/mapsindoors-webcomponent.umd.js +0 -3245
  65. package/dist/mi-card_2.entry-fc772c35.mjs +0 -26
  66. package/dist/mi-chip.entry-81c742a1.mjs +0 -19
  67. package/dist/mi-column.entry-3a083282.mjs +0 -21
  68. package/dist/mi-combo-box.entry-cae6401a.mjs +0 -263
  69. package/dist/mi-data-table.entry-d4c3f445.mjs +0 -224
  70. package/dist/mi-distance_2.entry-a33ed69a.mjs +0 -339
  71. package/dist/mi-dropdown-item.entry-974d1e4f.mjs +0 -15
  72. package/dist/mi-dropdown.entry-5317db65.mjs +0 -349
  73. package/dist/mi-floor-selector.entry-185fbd8b.mjs +0 -115
  74. package/dist/mi-keyboard.entry-eaf4b9ef.mjs +0 -3103
  75. package/dist/mi-list-item-category.entry-9c95008c.mjs +0 -39
  76. package/dist/mi-list-item-location.entry-8b41e8f0.mjs +0 -137
  77. package/dist/mi-list.entry-1218d29d.mjs +0 -42
  78. package/dist/mi-location-booking.entry-270aaf5a.mjs +0 -4866
  79. package/dist/mi-location-info.entry-e4f7fd04.mjs +0 -32
  80. package/dist/mi-map-googlemaps.entry-81fa28d2.mjs +0 -467
  81. package/dist/mi-map-mapbox.entry-31821da3.mjs +0 -301
  82. package/dist/mi-metric-card.entry-40407f04.mjs +0 -29
  83. package/dist/mi-my-position.entry-bc48fe6e.mjs +0 -703
  84. package/dist/mi-notification.entry-9a2bc53b.mjs +0 -84
  85. package/dist/mi-route-instructions-heading.entry-e5b1ff04.mjs +0 -75
  86. package/dist/mi-route-instructions-maneuver-legacy.entry-2c3d73ab.mjs +0 -76
  87. package/dist/mi-route-instructions-maneuver.entry-c6f01024.mjs +0 -76
  88. package/dist/mi-route-instructions-step-legacy.entry-80bcf097.mjs +0 -202
  89. package/dist/mi-route-instructions-step.entry-db802e13.mjs +0 -231
  90. package/dist/mi-route-instructions.entry-62416e29.mjs +0 -143
  91. package/dist/mi-scroll-buttons.entry-92b62b21.mjs +0 -83
  92. package/dist/mi-search.entry-87f1e64a.mjs +0 -251
  93. package/dist/mi-share-sms.entry-b6725edb.mjs +0 -56
  94. package/dist/mi-step-switcher.entry-f8f6c040.mjs +0 -27
  95. package/dist/mi-tab-panel.entry-a89213c2.mjs +0 -22
  96. package/dist/mi-tab.entry-a2fb3f8c.mjs +0 -14
  97. package/dist/mi-tabs.entry-cd638ea7.mjs +0 -37
  98. package/dist/mi-time.entry-0b02870d.mjs +0 -46
  99. package/dist/mi-variables-9a6c8d4d-e06eec88.mjs +0 -8
  100. package/dist/route-travel-mode.enum-7f4ce9c7-a9c95a83.mjs +0 -8
  101. package/dist/sort-order.enum-64ce8998-b75ac596.mjs +0 -318
  102. package/dist/unit-system.enum-eaefb53e-0f424da4.mjs +0 -8
  103. package/dist/utils-ae714467-b07fc3be.mjs +0 -37
@@ -1,3103 +0,0 @@
1
- import { r as se, h as ue } from "./reactcomponent-7fbbd9b2.mjs";
2
- import { c as ce, a as le, g as fe } from "./_commonjsHelpers-ba3f0406-b96e6d6a.mjs";
3
- import "react";
4
- import "react-dom";
5
- var de = ce(function(nt, gt) {
6
- /*!
7
- *
8
- * simple-keyboard v3.8.58
9
- * https://github.com/hodgef/simple-keyboard
10
- *
11
- * Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
12
- *
13
- * This source code is licensed under the MIT license found in the
14
- * LICENSE file in the root directory of this source tree.
15
- *
16
- */
17
- (function(jt, vt) {
18
- nt.exports = vt();
19
- })(le, function() {
20
- return function() {
21
- var jt = { 34: function(i, s, t) {
22
- var e = t(4901);
23
- i.exports = function(r) {
24
- return typeof r == "object" ? r !== null : e(r);
25
- };
26
- }, 81: function(i, s, t) {
27
- var e = t(9565), r = t(9306), n = t(8551), o = t(6823), a = t(851), c = TypeError;
28
- i.exports = function(u, l) {
29
- var d = arguments.length < 2 ? a(u) : l;
30
- if (r(d))
31
- return n(e(d, u));
32
- throw new c(o(u) + " is not iterable");
33
- };
34
- }, 235: function(i, s, t) {
35
- var e = t(9213).forEach, r = t(4598)("forEach");
36
- i.exports = r ? [].forEach : function(n) {
37
- return e(this, n, arguments.length > 1 ? arguments[1] : void 0);
38
- };
39
- }, 283: function(i, s, t) {
40
- var e = t(9504), r = t(9039), n = t(4901), o = t(9297), a = t(3724), c = t(350).CONFIGURABLE, u = t(3706), l = t(1181), d = l.enforce, g = l.get, f = String, p = Object.defineProperty, h = e("".slice), v = e("".replace), y = e([].join), m = a && !r(function() {
41
- return p(function() {
42
- }, "length", { value: 8 }).length !== 8;
43
- }), b = String(String).split("String"), E = i.exports = function(x, k, w) {
44
- h(f(k), 0, 7) === "Symbol(" && (k = "[" + v(f(k), /^Symbol\(([^)]*)\).*$/, "$1") + "]"), w && w.getter && (k = "get " + k), w && w.setter && (k = "set " + k), (!o(x, "name") || c && x.name !== k) && (a ? p(x, "name", { value: k, configurable: !0 }) : x.name = k), m && w && o(w, "arity") && x.length !== w.arity && p(x, "length", { value: w.arity });
45
- try {
46
- w && o(w, "constructor") && w.constructor ? a && p(x, "prototype", { writable: !1 }) : x.prototype && (x.prototype = void 0);
47
- } catch {
48
- }
49
- var O = d(x);
50
- return o(O, "source") || (O.source = y(b, typeof k == "string" ? k : "")), x;
51
- };
52
- Function.prototype.toString = E(function() {
53
- return n(this) && g(this).source || u(this);
54
- }, "toString");
55
- }, 298: function(i, s, t) {
56
- var e = t(2195), r = t(5397), n = t(8480).f, o = t(7680), a = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
57
- i.exports.f = function(c) {
58
- return a && e(c) === "Window" ? function(u) {
59
- try {
60
- return n(u);
61
- } catch {
62
- return o(a);
63
- }
64
- }(c) : n(r(c));
65
- };
66
- }, 350: function(i, s, t) {
67
- var e = t(3724), r = t(9297), n = Function.prototype, o = e && Object.getOwnPropertyDescriptor, a = r(n, "name"), c = a && function() {
68
- }.name === "something", u = a && (!e || e && o(n, "name").configurable);
69
- i.exports = { EXISTS: a, PROPER: c, CONFIGURABLE: u };
70
- }, 397: function(i, s, t) {
71
- var e = t(7751);
72
- i.exports = e("document", "documentElement");
73
- }, 421: function(i) {
74
- i.exports = {};
75
- }, 511: function(i, s, t) {
76
- var e = t(9167), r = t(9297), n = t(1951), o = t(4913).f;
77
- i.exports = function(a) {
78
- var c = e.Symbol || (e.Symbol = {});
79
- r(c, a) || o(c, a, { value: n.f(a) });
80
- };
81
- }, 566: function(i, s, t) {
82
- var e = t(9504), r = t(9306), n = t(34), o = t(9297), a = t(7680), c = t(616), u = Function, l = e([].concat), d = e([].join), g = {};
83
- i.exports = c ? u.bind : function(f) {
84
- var p = r(this), h = p.prototype, v = a(arguments, 1), y = function() {
85
- var m = l(v, a(arguments));
86
- return this instanceof y ? function(b, E, x) {
87
- if (!o(g, E)) {
88
- for (var k = [], w = 0; w < E; w++)
89
- k[w] = "a[" + w + "]";
90
- g[E] = u("C,a", "return new C(" + d(k, ",") + ")");
91
- }
92
- return g[E](b, x);
93
- }(p, m.length, m) : p.apply(f, m);
94
- };
95
- return n(h) && (y.prototype = h), y;
96
- };
97
- }, 597: function(i, s, t) {
98
- var e = t(9039), r = t(8227), n = t(9519), o = r("species");
99
- i.exports = function(a) {
100
- return n >= 51 || !e(function() {
101
- var c = [];
102
- return (c.constructor = {})[o] = function() {
103
- return { foo: 1 };
104
- }, c[a](Boolean).foo !== 1;
105
- });
106
- };
107
- }, 616: function(i, s, t) {
108
- var e = t(9039);
109
- i.exports = !e(function() {
110
- var r = function() {
111
- }.bind();
112
- return typeof r != "function" || r.hasOwnProperty("prototype");
113
- });
114
- }, 655: function(i, s, t) {
115
- var e = t(6955), r = String;
116
- i.exports = function(n) {
117
- if (e(n) === "Symbol")
118
- throw new TypeError("Cannot convert a Symbol value to a string");
119
- return r(n);
120
- };
121
- }, 687: function(i, s, t) {
122
- var e = t(4913).f, r = t(9297), n = t(8227)("toStringTag");
123
- i.exports = function(o, a, c) {
124
- o && !c && (o = o.prototype), o && !r(o, n) && e(o, n, { configurable: !0, value: a });
125
- };
126
- }, 706: function(i, s, t) {
127
- var e = t(350).PROPER, r = t(9039), n = t(7452);
128
- i.exports = function(o) {
129
- return r(function() {
130
- return !!n[o]() || "​…᠎"[o]() !== "​…᠎" || e && n[o].name !== o;
131
- });
132
- };
133
- }, 739: function(i, s, t) {
134
- var e = t(6518), r = t(9039), n = t(8981), o = t(2777);
135
- e({ target: "Date", proto: !0, arity: 1, forced: r(function() {
136
- return (/* @__PURE__ */ new Date(NaN)).toJSON() !== null || Date.prototype.toJSON.call({ toISOString: function() {
137
- return 1;
138
- } }) !== 1;
139
- }) }, { toJSON: function(a) {
140
- var c = n(this), u = o(c, "number");
141
- return typeof u != "number" || isFinite(u) ? c.toISOString() : null;
142
- } });
143
- }, 741: function(i) {
144
- var s = Math.ceil, t = Math.floor;
145
- i.exports = Math.trunc || function(e) {
146
- var r = +e;
147
- return (r > 0 ? t : s)(r);
148
- };
149
- }, 744: function(i, s, t) {
150
- var e = t(9565), r = t(9504), n = t(9228), o = t(8551), a = t(34), c = t(7750), u = t(2293), l = t(7829), d = t(8014), g = t(655), f = t(5966), p = t(6682), h = t(8429), v = t(9039), y = h.UNSUPPORTED_Y, m = Math.min, b = r([].push), E = r("".slice), x = !v(function() {
151
- var w = /(?:)/, O = w.exec;
152
- w.exec = function() {
153
- return O.apply(this, arguments);
154
- };
155
- var C = "ab".split(w);
156
- return C.length !== 2 || C[0] !== "a" || C[1] !== "b";
157
- }), k = "abbc".split(/(b)*/)[1] === "c" || "test".split(/(?:)/, -1).length !== 4 || "ab".split(/(?:ab)*/).length !== 2 || ".".split(/(.?)(.?)/).length !== 4 || ".".split(/()()/).length > 1 || "".split(/.?/).length;
158
- n("split", function(w, O, C) {
159
- var S = "0".split(void 0, 0).length ? function(I, j) {
160
- return I === void 0 && j === 0 ? [] : e(O, this, I, j);
161
- } : O;
162
- return [function(I, j) {
163
- var P = c(this), M = a(I) ? f(I, w) : void 0;
164
- return M ? e(M, I, P, j) : e(S, g(P), I, j);
165
- }, function(I, j) {
166
- var P = o(this), M = g(I);
167
- if (!k) {
168
- var z = C(S, P, M, j, S !== O);
169
- if (z.done)
170
- return z.value;
171
- }
172
- var K = u(P, RegExp), A = P.unicode, H = (P.ignoreCase ? "i" : "") + (P.multiline ? "m" : "") + (P.unicode ? "u" : "") + (y ? "g" : "y"), R = new K(y ? "^(?:" + P.source + ")" : P, H), U = j === void 0 ? 4294967295 : j >>> 0;
173
- if (U === 0)
174
- return [];
175
- if (M.length === 0)
176
- return p(R, M) === null ? [M] : [];
177
- for (var B = 0, _ = 0, T = []; _ < M.length; ) {
178
- R.lastIndex = y ? 0 : _;
179
- var D, N = p(R, y ? E(M, _) : M);
180
- if (N === null || (D = m(d(R.lastIndex + (y ? _ : 0)), M.length)) === B)
181
- _ = l(M, _, A);
182
- else {
183
- if (b(T, E(M, B, _)), T.length === U)
184
- return T;
185
- for (var q = 1; q <= N.length - 1; q++)
186
- if (b(T, N[q]), T.length === U)
187
- return T;
188
- _ = B = D;
189
- }
190
- }
191
- return b(T, E(M, B)), T;
192
- }];
193
- }, k || !x, y);
194
- }, 757: function(i, s, t) {
195
- var e = t(7751), r = t(4901), n = t(1625), o = t(7040), a = Object;
196
- i.exports = o ? function(c) {
197
- return typeof c == "symbol";
198
- } : function(c) {
199
- var u = e("Symbol");
200
- return r(u) && n(u.prototype, a(c));
201
- };
202
- }, 788: function(i, s, t) {
203
- var e = t(34), r = t(2195), n = t(8227)("match");
204
- i.exports = function(o) {
205
- var a;
206
- return e(o) && ((a = o[n]) !== void 0 ? !!a : r(o) === "RegExp");
207
- };
208
- }, 825: function(i, s, t) {
209
- var e = t(6518), r = t(7751), n = t(8745), o = t(566), a = t(5548), c = t(8551), u = t(34), l = t(2360), d = t(9039), g = r("Reflect", "construct"), f = Object.prototype, p = [].push, h = d(function() {
210
- function m() {
211
- }
212
- return !(g(function() {
213
- }, [], m) instanceof m);
214
- }), v = !d(function() {
215
- g(function() {
216
- });
217
- }), y = h || v;
218
- e({ target: "Reflect", stat: !0, forced: y, sham: y }, { construct: function(m, b) {
219
- a(m), c(b);
220
- var E = arguments.length < 3 ? m : a(arguments[2]);
221
- if (v && !h)
222
- return g(m, b, E);
223
- if (m === E) {
224
- switch (b.length) {
225
- case 0:
226
- return new m();
227
- case 1:
228
- return new m(b[0]);
229
- case 2:
230
- return new m(b[0], b[1]);
231
- case 3:
232
- return new m(b[0], b[1], b[2]);
233
- case 4:
234
- return new m(b[0], b[1], b[2], b[3]);
235
- }
236
- var x = [null];
237
- return n(p, x, b), new (n(o, m, x))();
238
- }
239
- var k = E.prototype, w = l(u(k) ? k : f), O = n(m, w, b);
240
- return u(O) ? O : w;
241
- } });
242
- }, 851: function(i, s, t) {
243
- var e = t(6955), r = t(5966), n = t(4117), o = t(6269), a = t(8227)("iterator");
244
- i.exports = function(c) {
245
- if (!n(c))
246
- return r(c, a) || r(c, "@@iterator") || o[e(c)];
247
- };
248
- }, 926: function(i, s, t) {
249
- var e = t(9306), r = t(8981), n = t(7055), o = t(6198), a = TypeError, c = "Reduce of empty array with no initial value", u = function(l) {
250
- return function(d, g, f, p) {
251
- var h = r(d), v = n(h), y = o(h);
252
- if (e(g), y === 0 && f < 2)
253
- throw new a(c);
254
- var m = l ? y - 1 : 0, b = l ? -1 : 1;
255
- if (f < 2)
256
- for (; ; ) {
257
- if (m in v) {
258
- p = v[m], m += b;
259
- break;
260
- }
261
- if (m += b, l ? m < 0 : y <= m)
262
- throw new a(c);
263
- }
264
- for (; l ? m >= 0 : y > m; m += b)
265
- m in v && (p = g(p, v[m], m, h));
266
- return p;
267
- };
268
- };
269
- i.exports = { left: u(!1), right: u(!0) };
270
- }, 1034: function(i, s, t) {
271
- var e = t(9565), r = t(9297), n = t(1625), o = t(7979), a = RegExp.prototype;
272
- i.exports = function(c) {
273
- var u = c.flags;
274
- return u !== void 0 || "flags" in a || r(c, "flags") || !n(a, c) ? u : e(o, c);
275
- };
276
- }, 1056: function(i, s, t) {
277
- var e = t(4913).f;
278
- i.exports = function(r, n, o) {
279
- o in r || e(r, o, { configurable: !0, get: function() {
280
- return n[o];
281
- }, set: function(a) {
282
- n[o] = a;
283
- } });
284
- };
285
- }, 1072: function(i, s, t) {
286
- var e = t(1828), r = t(8727);
287
- i.exports = Object.keys || function(n) {
288
- return e(n, r);
289
- };
290
- }, 1088: function(i, s, t) {
291
- var e = t(6518), r = t(9565), n = t(6395), o = t(350), a = t(4901), c = t(3994), u = t(2787), l = t(2967), d = t(687), g = t(6699), f = t(6840), p = t(8227), h = t(6269), v = t(7657), y = o.PROPER, m = o.CONFIGURABLE, b = v.IteratorPrototype, E = v.BUGGY_SAFARI_ITERATORS, x = p("iterator"), k = "keys", w = "values", O = "entries", C = function() {
292
- return this;
293
- };
294
- i.exports = function(S, I, j, P, M, z, K) {
295
- c(j, I, P);
296
- var A, H, R, U = function(Z) {
297
- if (Z === M && N)
298
- return N;
299
- if (!E && Z && Z in T)
300
- return T[Z];
301
- switch (Z) {
302
- case k:
303
- case w:
304
- case O:
305
- return function() {
306
- return new j(this, Z);
307
- };
308
- }
309
- return function() {
310
- return new j(this);
311
- };
312
- }, B = I + " Iterator", _ = !1, T = S.prototype, D = T[x] || T["@@iterator"] || M && T[M], N = !E && D || U(M), q = I === "Array" && T.entries || D;
313
- if (q && (A = u(q.call(new S()))) !== Object.prototype && A.next && (n || u(A) === b || (l ? l(A, b) : a(A[x]) || f(A, x, C)), d(A, B, !0, !0), n && (h[B] = C)), y && M === w && D && D.name !== w && (!n && m ? g(T, "name", w) : (_ = !0, N = function() {
314
- return r(D, this);
315
- })), M)
316
- if (H = { values: U(w), keys: z ? N : U(k), entries: U(O) }, K)
317
- for (R in H)
318
- (E || _ || !(R in T)) && f(T, R, H[R]);
319
- else
320
- e({ target: I, proto: !0, forced: E || _ }, H);
321
- return n && !K || T[x] === N || f(T, x, N, { name: M }), h[I] = N, H;
322
- };
323
- }, 1181: function(i, s, t) {
324
- var e, r, n, o = t(8622), a = t(4576), c = t(34), u = t(6699), l = t(9297), d = t(7629), g = t(6119), f = t(421), p = "Object already initialized", h = a.TypeError, v = a.WeakMap;
325
- if (o || d.state) {
326
- var y = d.state || (d.state = new v());
327
- y.get = y.get, y.has = y.has, y.set = y.set, e = function(b, E) {
328
- if (y.has(b))
329
- throw new h(p);
330
- return E.facade = b, y.set(b, E), E;
331
- }, r = function(b) {
332
- return y.get(b) || {};
333
- }, n = function(b) {
334
- return y.has(b);
335
- };
336
- } else {
337
- var m = g("state");
338
- f[m] = !0, e = function(b, E) {
339
- if (l(b, m))
340
- throw new h(p);
341
- return E.facade = b, u(b, m, E), E;
342
- }, r = function(b) {
343
- return l(b, m) ? b[m] : {};
344
- }, n = function(b) {
345
- return l(b, m);
346
- };
347
- }
348
- i.exports = { set: e, get: r, has: n, enforce: function(b) {
349
- return n(b) ? r(b) : e(b, {});
350
- }, getterFor: function(b) {
351
- return function(E) {
352
- var x;
353
- if (!c(E) || (x = r(E)).type !== b)
354
- throw new h("Incompatible receiver, " + b + " required");
355
- return x;
356
- };
357
- } };
358
- }, 1240: function(i, s, t) {
359
- var e = t(9504);
360
- i.exports = e(1 .valueOf);
361
- }, 1278: function(i, s, t) {
362
- var e = t(6518), r = t(3724), n = t(5031), o = t(5397), a = t(7347), c = t(4659);
363
- e({ target: "Object", stat: !0, sham: !r }, { getOwnPropertyDescriptors: function(u) {
364
- for (var l, d, g = o(u), f = a.f, p = n(g), h = {}, v = 0; p.length > v; )
365
- (d = f(g, l = p[v++])) !== void 0 && c(h, l, d);
366
- return h;
367
- } });
368
- }, 1291: function(i, s, t) {
369
- var e = t(741);
370
- i.exports = function(r) {
371
- var n = +r;
372
- return n != n || n === 0 ? 0 : e(n);
373
- };
374
- }, 1296: function(i, s, t) {
375
- var e = t(4495);
376
- i.exports = e && !!Symbol.for && !!Symbol.keyFor;
377
- }, 1436: function(i, s, t) {
378
- var e = t(8227)("match");
379
- i.exports = function(r) {
380
- var n = /./;
381
- try {
382
- "/./"[r](n);
383
- } catch {
384
- try {
385
- return n[e] = !1, "/./"[r](n);
386
- } catch {
387
- }
388
- }
389
- return !1;
390
- };
391
- }, 1469: function(i, s, t) {
392
- var e = t(7433);
393
- i.exports = function(r, n) {
394
- return new (e(r))(n === 0 ? 0 : n);
395
- };
396
- }, 1480: function(i, s, t) {
397
- var e = t(6518), r = t(9039), n = t(298).f;
398
- e({ target: "Object", stat: !0, forced: r(function() {
399
- return !Object.getOwnPropertyNames(1);
400
- }) }, { getOwnPropertyNames: n });
401
- }, 1510: function(i, s, t) {
402
- var e = t(6518), r = t(7751), n = t(9297), o = t(655), a = t(5745), c = t(1296), u = a("string-to-symbol-registry"), l = a("symbol-to-string-registry");
403
- e({ target: "Symbol", stat: !0, forced: !c }, { for: function(d) {
404
- var g = o(d);
405
- if (n(u, g))
406
- return u[g];
407
- var f = r("Symbol")(g);
408
- return u[g] = f, l[f] = g, f;
409
- } });
410
- }, 1625: function(i, s, t) {
411
- var e = t(9504);
412
- i.exports = e({}.isPrototypeOf);
413
- }, 1699: function(i, s, t) {
414
- var e = t(6518), r = t(9504), n = t(5749), o = t(7750), a = t(655), c = t(1436), u = r("".indexOf);
415
- e({ target: "String", proto: !0, forced: !c("includes") }, { includes: function(l) {
416
- return !!~u(a(o(this)), a(n(l)), arguments.length > 1 ? arguments[1] : void 0);
417
- } });
418
- }, 1761: function(i, s, t) {
419
- var e = t(9565), r = t(9228), n = t(8551), o = t(34), a = t(8014), c = t(655), u = t(7750), l = t(5966), d = t(7829), g = t(6682);
420
- r("match", function(f, p, h) {
421
- return [function(v) {
422
- var y = u(this), m = o(v) ? l(v, f) : void 0;
423
- return m ? e(m, v, y) : new RegExp(v)[f](c(y));
424
- }, function(v) {
425
- var y = n(this), m = c(v), b = h(p, y, m);
426
- if (b.done)
427
- return b.value;
428
- if (!y.global)
429
- return g(y, m);
430
- var E = y.unicode;
431
- y.lastIndex = 0;
432
- for (var x, k = [], w = 0; (x = g(y, m)) !== null; ) {
433
- var O = c(x[0]);
434
- k[w] = O, O === "" && (y.lastIndex = d(m, a(y.lastIndex), E)), w++;
435
- }
436
- return w === 0 ? null : k;
437
- }];
438
- });
439
- }, 1828: function(i, s, t) {
440
- var e = t(9504), r = t(9297), n = t(5397), o = t(9617).indexOf, a = t(421), c = e([].push);
441
- i.exports = function(u, l) {
442
- var d, g = n(u), f = 0, p = [];
443
- for (d in g)
444
- !r(a, d) && r(g, d) && c(p, d);
445
- for (; l.length > f; )
446
- r(g, d = l[f++]) && (~o(p, d) || c(p, d));
447
- return p;
448
- };
449
- }, 1951: function(i, s, t) {
450
- var e = t(8227);
451
- s.f = e;
452
- }, 2008: function(i, s, t) {
453
- var e = t(6518), r = t(9213).filter;
454
- e({ target: "Array", proto: !0, forced: !t(597)("filter") }, { filter: function(n) {
455
- return r(this, n, arguments.length > 1 ? arguments[1] : void 0);
456
- } });
457
- }, 2010: function(i, s, t) {
458
- var e = t(3724), r = t(350).EXISTS, n = t(9504), o = t(2106), a = Function.prototype, c = n(a.toString), u = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/, l = n(u.exec);
459
- e && !r && o(a, "name", { configurable: !0, get: function() {
460
- try {
461
- return l(u, c(this))[1];
462
- } catch {
463
- return "";
464
- }
465
- } });
466
- }, 2062: function(i, s, t) {
467
- var e = t(6518), r = t(9213).map;
468
- e({ target: "Array", proto: !0, forced: !t(597)("map") }, { map: function(n) {
469
- return r(this, n, arguments.length > 1 ? arguments[1] : void 0);
470
- } });
471
- }, 2087: function(i, s, t) {
472
- var e = t(34), r = Math.floor;
473
- i.exports = Number.isInteger || function(n) {
474
- return !e(n) && isFinite(n) && r(n) === n;
475
- };
476
- }, 2106: function(i, s, t) {
477
- var e = t(283), r = t(4913);
478
- i.exports = function(n, o, a) {
479
- return a.get && e(a.get, o, { getter: !0 }), a.set && e(a.set, o, { setter: !0 }), r.f(n, o, a);
480
- };
481
- }, 2140: function(i, s, t) {
482
- var e = {};
483
- e[t(8227)("toStringTag")] = "z", i.exports = String(e) === "[object z]";
484
- }, 2195: function(i, s, t) {
485
- var e = t(9504), r = e({}.toString), n = e("".slice);
486
- i.exports = function(o) {
487
- return n(r(o), 8, -1);
488
- };
489
- }, 2211: function(i, s, t) {
490
- var e = t(9039);
491
- i.exports = !e(function() {
492
- function r() {
493
- }
494
- return r.prototype.constructor = null, Object.getPrototypeOf(new r()) !== r.prototype;
495
- });
496
- }, 2259: function(i, s, t) {
497
- t(511)("iterator");
498
- }, 2293: function(i, s, t) {
499
- var e = t(8551), r = t(5548), n = t(4117), o = t(8227)("species");
500
- i.exports = function(a, c) {
501
- var u, l = e(a).constructor;
502
- return l === void 0 || n(u = e(l)[o]) ? c : r(u);
503
- };
504
- }, 2360: function(i, s, t) {
505
- var e, r = t(8551), n = t(6801), o = t(8727), a = t(421), c = t(397), u = t(4055), l = t(6119), d = "prototype", g = "script", f = l("IE_PROTO"), p = function() {
506
- }, h = function(m) {
507
- return "<" + g + ">" + m + "</" + g + ">";
508
- }, v = function(m) {
509
- m.write(h("")), m.close();
510
- var b = m.parentWindow.Object;
511
- return m = null, b;
512
- }, y = function() {
513
- try {
514
- e = new ActiveXObject("htmlfile");
515
- } catch {
516
- }
517
- var m, b, E;
518
- y = typeof document < "u" ? document.domain && e ? v(e) : (b = u("iframe"), E = "java" + g + ":", b.style.display = "none", c.appendChild(b), b.src = String(E), (m = b.contentWindow.document).open(), m.write(h("document.F=Object")), m.close(), m.F) : v(e);
519
- for (var x = o.length; x--; )
520
- delete y[d][o[x]];
521
- return y();
522
- };
523
- a[f] = !0, i.exports = Object.create || function(m, b) {
524
- var E;
525
- return m !== null ? (p[d] = r(m), E = new p(), p[d] = null, E[f] = m) : E = y(), b === void 0 ? E : n.f(E, b);
526
- };
527
- }, 2478: function(i, s, t) {
528
- var e = t(9504), r = t(8981), n = Math.floor, o = e("".charAt), a = e("".replace), c = e("".slice), u = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, l = /\$([$&'`]|\d{1,2})/g;
529
- i.exports = function(d, g, f, p, h, v) {
530
- var y = f + d.length, m = p.length, b = l;
531
- return h !== void 0 && (h = r(h), b = u), a(v, b, function(E, x) {
532
- var k;
533
- switch (o(x, 0)) {
534
- case "$":
535
- return "$";
536
- case "&":
537
- return d;
538
- case "`":
539
- return c(g, 0, f);
540
- case "'":
541
- return c(g, y);
542
- case "<":
543
- k = h[c(x, 1, -1)];
544
- break;
545
- default:
546
- var w = +x;
547
- if (w === 0)
548
- return E;
549
- if (w > m) {
550
- var O = n(w / 10);
551
- return O === 0 ? E : O <= m ? p[O - 1] === void 0 ? o(x, 1) : p[O - 1] + o(x, 1) : E;
552
- }
553
- k = p[w - 1];
554
- }
555
- return k === void 0 ? "" : k;
556
- });
557
- };
558
- }, 2529: function(i) {
559
- i.exports = function(s, t) {
560
- return { value: s, done: t };
561
- };
562
- }, 2551: function(i, s, t) {
563
- var e = t(6395), r = t(4576), n = t(9039), o = t(3607);
564
- i.exports = e || !n(function() {
565
- if (!(o && o < 535)) {
566
- var a = Math.random();
567
- __defineSetter__.call(null, a, function() {
568
- }), delete r[a];
569
- }
570
- });
571
- }, 2637: function(i, s, t) {
572
- t(6518)({ target: "Number", stat: !0 }, { isInteger: t(2087) });
573
- }, 2675: function(i, s, t) {
574
- t(6761), t(1510), t(7812), t(3110), t(9773);
575
- }, 2712: function(i, s, t) {
576
- var e = t(6518), r = t(926).left, n = t(4598), o = t(9519);
577
- e({ target: "Array", proto: !0, forced: !t(6193) && o > 79 && o < 83 || !n("reduce") }, { reduce: function(a) {
578
- var c = arguments.length;
579
- return r(this, a, c, c > 1 ? arguments[1] : void 0);
580
- } });
581
- }, 2762: function(i, s, t) {
582
- var e = t(6518), r = t(3802).trim;
583
- e({ target: "String", proto: !0, forced: t(706)("trim") }, { trim: function() {
584
- return r(this);
585
- } });
586
- }, 2777: function(i, s, t) {
587
- var e = t(9565), r = t(34), n = t(757), o = t(5966), a = t(4270), c = t(8227), u = TypeError, l = c("toPrimitive");
588
- i.exports = function(d, g) {
589
- if (!r(d) || n(d))
590
- return d;
591
- var f, p = o(d, l);
592
- if (p) {
593
- if (g === void 0 && (g = "default"), f = e(p, d, g), !r(f) || n(f))
594
- return f;
595
- throw new u("Can't convert object to primitive value");
596
- }
597
- return g === void 0 && (g = "number"), a(d, g);
598
- };
599
- }, 2787: function(i, s, t) {
600
- var e = t(9297), r = t(4901), n = t(8981), o = t(6119), a = t(2211), c = o("IE_PROTO"), u = Object, l = u.prototype;
601
- i.exports = a ? u.getPrototypeOf : function(d) {
602
- var g = n(d);
603
- if (e(g, c))
604
- return g[c];
605
- var f = g.constructor;
606
- return r(f) && g instanceof f ? f.prototype : g instanceof u ? l : null;
607
- };
608
- }, 2796: function(i, s, t) {
609
- var e = t(9039), r = t(4901), n = /#|\.prototype\./, o = function(d, g) {
610
- var f = c[a(d)];
611
- return f === l || f !== u && (r(g) ? e(g) : !!g);
612
- }, a = o.normalize = function(d) {
613
- return String(d).replace(n, ".").toLowerCase();
614
- }, c = o.data = {}, u = o.NATIVE = "N", l = o.POLYFILL = "P";
615
- i.exports = o;
616
- }, 2839: function(i, s, t) {
617
- var e = t(4576).navigator, r = e && e.userAgent;
618
- i.exports = r ? String(r) : "";
619
- }, 2892: function(i, s, t) {
620
- var e = t(6518), r = t(6395), n = t(3724), o = t(4576), a = t(9167), c = t(9504), u = t(2796), l = t(9297), d = t(3167), g = t(1625), f = t(757), p = t(2777), h = t(9039), v = t(8480).f, y = t(7347).f, m = t(4913).f, b = t(1240), E = t(3802).trim, x = "Number", k = o[x], w = a[x], O = k.prototype, C = o.TypeError, S = c("".slice), I = c("".charCodeAt), j = function(K) {
621
- var A, H, R, U, B, _, T, D, N = p(K, "number");
622
- if (f(N))
623
- throw new C("Cannot convert a Symbol value to a number");
624
- if (typeof N == "string" && N.length > 2) {
625
- if (N = E(N), (A = I(N, 0)) === 43 || A === 45) {
626
- if ((H = I(N, 2)) === 88 || H === 120)
627
- return NaN;
628
- } else if (A === 48) {
629
- switch (I(N, 1)) {
630
- case 66:
631
- case 98:
632
- R = 2, U = 49;
633
- break;
634
- case 79:
635
- case 111:
636
- R = 8, U = 55;
637
- break;
638
- default:
639
- return +N;
640
- }
641
- for (_ = (B = S(N, 2)).length, T = 0; T < _; T++)
642
- if ((D = I(B, T)) < 48 || D > U)
643
- return NaN;
644
- return parseInt(B, R);
645
- }
646
- }
647
- return +N;
648
- }, P = u(x, !k(" 0o1") || !k("0b1") || k("+0x1")), M = function(K) {
649
- var A, H = arguments.length < 1 ? 0 : k(function(R) {
650
- var U = p(R, "number");
651
- return typeof U == "bigint" ? U : j(U);
652
- }(K));
653
- return g(O, A = this) && h(function() {
654
- b(A);
655
- }) ? d(Object(H), this, M) : H;
656
- };
657
- M.prototype = O, P && !r && (O.constructor = M), e({ global: !0, constructor: !0, wrap: !0, forced: P }, { Number: M });
658
- var z = function(K, A) {
659
- for (var H, R = n ? v(A) : "MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","), U = 0; R.length > U; U++)
660
- l(A, H = R[U]) && !l(K, H) && m(K, H, y(A, H));
661
- };
662
- r && w && z(a[x], w), (P || r) && z(a[x], k);
663
- }, 2953: function(i, s, t) {
664
- var e = t(4576), r = t(7400), n = t(9296), o = t(3792), a = t(6699), c = t(687), u = t(8227)("iterator"), l = o.values, d = function(f, p) {
665
- if (f) {
666
- if (f[u] !== l)
667
- try {
668
- a(f, u, l);
669
- } catch {
670
- f[u] = l;
671
- }
672
- if (c(f, p, !0), r[p]) {
673
- for (var h in o)
674
- if (f[h] !== o[h])
675
- try {
676
- a(f, h, o[h]);
677
- } catch {
678
- f[h] = o[h];
679
- }
680
- }
681
- }
682
- };
683
- for (var g in r)
684
- d(e[g] && e[g].prototype, g);
685
- d(n, "DOMTokenList");
686
- }, 2967: function(i, s, t) {
687
- var e = t(6706), r = t(34), n = t(7750), o = t(3506);
688
- i.exports = Object.setPrototypeOf || ("__proto__" in {} ? function() {
689
- var a, c = !1, u = {};
690
- try {
691
- (a = e(Object.prototype, "__proto__", "set"))(u, []), c = u instanceof Array;
692
- } catch {
693
- }
694
- return function(l, d) {
695
- return n(l), o(d), r(l) && (c ? a(l, d) : l.__proto__ = d), l;
696
- };
697
- }() : void 0);
698
- }, 3110: function(i, s, t) {
699
- var e = t(6518), r = t(7751), n = t(8745), o = t(9565), a = t(9504), c = t(9039), u = t(4901), l = t(757), d = t(7680), g = t(6933), f = t(4495), p = String, h = r("JSON", "stringify"), v = a(/./.exec), y = a("".charAt), m = a("".charCodeAt), b = a("".replace), E = a(1 .toString), x = /[\uD800-\uDFFF]/g, k = /^[\uD800-\uDBFF]$/, w = /^[\uDC00-\uDFFF]$/, O = !f || c(function() {
700
- var j = r("Symbol")("stringify detection");
701
- return h([j]) !== "[null]" || h({ a: j }) !== "{}" || h(Object(j)) !== "{}";
702
- }), C = c(function() {
703
- return h("\uDF06\uD834") !== '"\\udf06\\ud834"' || h("\uDEAD") !== '"\\udead"';
704
- }), S = function(j, P) {
705
- var M = d(arguments), z = g(P);
706
- if (u(z) || j !== void 0 && !l(j))
707
- return M[1] = function(K, A) {
708
- if (u(z) && (A = o(z, this, p(K), A)), !l(A))
709
- return A;
710
- }, n(h, null, M);
711
- }, I = function(j, P, M) {
712
- var z = y(M, P - 1), K = y(M, P + 1);
713
- return v(k, j) && !v(w, K) || v(w, j) && !v(k, z) ? "\\u" + E(m(j, 0), 16) : j;
714
- };
715
- h && e({ target: "JSON", stat: !0, arity: 3, forced: O || C }, { stringify: function(j, P, M) {
716
- var z = d(arguments), K = n(O ? S : h, null, z);
717
- return C && typeof K == "string" ? b(K, x, I) : K;
718
- } });
719
- }, 3167: function(i, s, t) {
720
- var e = t(4901), r = t(34), n = t(2967);
721
- i.exports = function(o, a, c) {
722
- var u, l;
723
- return n && e(u = a.constructor) && u !== c && r(l = u.prototype) && l !== c.prototype && n(o, l), o;
724
- };
725
- }, 3179: function(i, s, t) {
726
- var e = t(2140), r = t(6955);
727
- i.exports = e ? {}.toString : function() {
728
- return "[object " + r(this) + "]";
729
- };
730
- }, 3392: function(i, s, t) {
731
- var e = t(9504), r = 0, n = Math.random(), o = e(1 .toString);
732
- i.exports = function(a) {
733
- return "Symbol(" + (a === void 0 ? "" : a) + ")_" + o(++r + n, 36);
734
- };
735
- }, 3418: function(i, s, t) {
736
- var e = t(6518), r = t(7916);
737
- e({ target: "Array", stat: !0, forced: !t(4428)(function(n) {
738
- Array.from(n);
739
- }) }, { from: r });
740
- }, 3500: function(i, s, t) {
741
- var e = t(4576), r = t(7400), n = t(9296), o = t(235), a = t(6699), c = function(l) {
742
- if (l && l.forEach !== o)
743
- try {
744
- a(l, "forEach", o);
745
- } catch {
746
- l.forEach = o;
747
- }
748
- };
749
- for (var u in r)
750
- r[u] && c(e[u] && e[u].prototype);
751
- c(n);
752
- }, 3506: function(i, s, t) {
753
- var e = t(3925), r = String, n = TypeError;
754
- i.exports = function(o) {
755
- if (e(o))
756
- return o;
757
- throw new n("Can't set " + r(o) + " as a prototype");
758
- };
759
- }, 3517: function(i, s, t) {
760
- var e = t(9504), r = t(9039), n = t(4901), o = t(6955), a = t(7751), c = t(3706), u = function() {
761
- }, l = a("Reflect", "construct"), d = /^\s*(?:class|function)\b/, g = e(d.exec), f = !d.test(u), p = function(v) {
762
- if (!n(v))
763
- return !1;
764
- try {
765
- return l(u, [], v), !0;
766
- } catch {
767
- return !1;
768
- }
769
- }, h = function(v) {
770
- if (!n(v))
771
- return !1;
772
- switch (o(v)) {
773
- case "AsyncFunction":
774
- case "GeneratorFunction":
775
- case "AsyncGeneratorFunction":
776
- return !1;
777
- }
778
- try {
779
- return f || !!g(d, c(v));
780
- } catch {
781
- return !0;
782
- }
783
- };
784
- h.sham = !0, i.exports = !l || r(function() {
785
- var v;
786
- return p(p.call) || !p(Object) || !p(function() {
787
- v = !0;
788
- }) || v;
789
- }) ? h : p;
790
- }, 3607: function(i, s, t) {
791
- var e = t(2839).match(/AppleWebKit\/(\d+)\./);
792
- i.exports = !!e && +e[1];
793
- }, 3635: function(i, s, t) {
794
- var e = t(9039), r = t(4576).RegExp;
795
- i.exports = e(function() {
796
- var n = r(".", "s");
797
- return !(n.dotAll && n.test(`
798
- `) && n.flags === "s");
799
- });
800
- }, 3640: function(i, s, t) {
801
- var e = t(8551), r = t(4270), n = TypeError;
802
- i.exports = function(o) {
803
- if (e(this), o === "string" || o === "default")
804
- o = "string";
805
- else if (o !== "number")
806
- throw new n("Incorrect hint");
807
- return r(this, o);
808
- };
809
- }, 3706: function(i, s, t) {
810
- var e = t(9504), r = t(4901), n = t(7629), o = e(Function.toString);
811
- r(n.inspectSource) || (n.inspectSource = function(a) {
812
- return o(a);
813
- }), i.exports = n.inspectSource;
814
- }, 3709: function(i, s, t) {
815
- var e = t(2839).match(/firefox\/(\d+)/i);
816
- i.exports = !!e && +e[1];
817
- }, 3717: function(i, s) {
818
- s.f = Object.getOwnPropertySymbols;
819
- }, 3724: function(i, s, t) {
820
- var e = t(9039);
821
- i.exports = !e(function() {
822
- return Object.defineProperty({}, 1, { get: function() {
823
- return 7;
824
- } })[1] !== 7;
825
- });
826
- }, 3763: function(i, s, t) {
827
- var e = t(2839);
828
- i.exports = /MSIE|Trident/.test(e);
829
- }, 3792: function(i, s, t) {
830
- var e = t(5397), r = t(6469), n = t(6269), o = t(1181), a = t(4913).f, c = t(1088), u = t(2529), l = t(6395), d = t(3724), g = "Array Iterator", f = o.set, p = o.getterFor(g);
831
- i.exports = c(Array, "Array", function(v, y) {
832
- f(this, { type: g, target: e(v), index: 0, kind: y });
833
- }, function() {
834
- var v = p(this), y = v.target, m = v.index++;
835
- if (!y || m >= y.length)
836
- return v.target = null, u(void 0, !0);
837
- switch (v.kind) {
838
- case "keys":
839
- return u(m, !1);
840
- case "values":
841
- return u(y[m], !1);
842
- }
843
- return u([m, y[m]], !1);
844
- }, "values");
845
- var h = n.Arguments = n.Array;
846
- if (r("keys"), r("values"), r("entries"), !l && d && h.name !== "values")
847
- try {
848
- a(h, "name", { value: "values" });
849
- } catch {
850
- }
851
- }, 3802: function(i, s, t) {
852
- var e = t(9504), r = t(7750), n = t(655), o = t(7452), a = e("".replace), c = RegExp("^[" + o + "]+"), u = RegExp("(^|[^" + o + "])[" + o + "]+$"), l = function(d) {
853
- return function(g) {
854
- var f = n(r(g));
855
- return 1 & d && (f = a(f, c, "")), 2 & d && (f = a(f, u, "$1")), f;
856
- };
857
- };
858
- i.exports = { start: l(1), end: l(2), trim: l(3) };
859
- }, 3851: function(i, s, t) {
860
- var e = t(6518), r = t(9039), n = t(5397), o = t(7347).f, a = t(3724);
861
- e({ target: "Object", stat: !0, forced: !a || r(function() {
862
- o(1);
863
- }), sham: !a }, { getOwnPropertyDescriptor: function(c, u) {
864
- return o(n(c), u);
865
- } });
866
- }, 3925: function(i, s, t) {
867
- var e = t(34);
868
- i.exports = function(r) {
869
- return e(r) || r === null;
870
- };
871
- }, 3994: function(i, s, t) {
872
- var e = t(7657).IteratorPrototype, r = t(2360), n = t(6980), o = t(687), a = t(6269), c = function() {
873
- return this;
874
- };
875
- i.exports = function(u, l, d, g) {
876
- var f = l + " Iterator";
877
- return u.prototype = r(e, { next: n(+!g, d) }), o(u, f, !1, !0), a[f] = c, u;
878
- };
879
- }, 4055: function(i, s, t) {
880
- var e = t(4576), r = t(34), n = e.document, o = r(n) && r(n.createElement);
881
- i.exports = function(a) {
882
- return o ? n.createElement(a) : {};
883
- };
884
- }, 4117: function(i) {
885
- i.exports = function(s) {
886
- return s == null;
887
- };
888
- }, 4209: function(i, s, t) {
889
- var e = t(8227), r = t(6269), n = e("iterator"), o = Array.prototype;
890
- i.exports = function(a) {
891
- return a !== void 0 && (r.Array === a || o[n] === a);
892
- };
893
- }, 4213: function(i, s, t) {
894
- var e = t(3724), r = t(9504), n = t(9565), o = t(9039), a = t(1072), c = t(3717), u = t(8773), l = t(8981), d = t(7055), g = Object.assign, f = Object.defineProperty, p = r([].concat);
895
- i.exports = !g || o(function() {
896
- if (e && g({ b: 1 }, g(f({}, "a", { enumerable: !0, get: function() {
897
- f(this, "b", { value: 3, enumerable: !1 });
898
- } }), { b: 2 })).b !== 1)
899
- return !0;
900
- var h = {}, v = {}, y = Symbol("assign detection"), m = "abcdefghijklmnopqrst";
901
- return h[y] = 7, m.split("").forEach(function(b) {
902
- v[b] = b;
903
- }), g({}, h)[y] !== 7 || a(g({}, v)).join("") !== m;
904
- }) ? function(h, v) {
905
- for (var y = l(h), m = arguments.length, b = 1, E = c.f, x = u.f; m > b; )
906
- for (var k, w = d(arguments[b++]), O = E ? p(a(w), E(w)) : a(w), C = O.length, S = 0; C > S; )
907
- k = O[S++], e && !n(x, w, k) || (y[k] = w[k]);
908
- return y;
909
- } : g;
910
- }, 4215: function(i, s, t) {
911
- var e = t(4576), r = t(2839), n = t(2195), o = function(a) {
912
- return r.slice(0, a.length) === a;
913
- };
914
- i.exports = o("Bun/") ? "BUN" : o("Cloudflare-Workers") ? "CLOUDFLARE" : o("Deno/") ? "DENO" : o("Node.js/") ? "NODE" : e.Bun && typeof Bun.version == "string" ? "BUN" : e.Deno && typeof Deno.version == "object" ? "DENO" : n(e.process) === "process" ? "NODE" : e.window && e.document ? "BROWSER" : "REST";
915
- }, 4270: function(i, s, t) {
916
- var e = t(9565), r = t(4901), n = t(34), o = TypeError;
917
- i.exports = function(a, c) {
918
- var u, l;
919
- if (c === "string" && r(u = a.toString) && !n(l = e(u, a)) || r(u = a.valueOf) && !n(l = e(u, a)) || c !== "string" && r(u = a.toString) && !n(l = e(u, a)))
920
- return l;
921
- throw new o("Can't convert object to primitive value");
922
- };
923
- }, 4376: function(i, s, t) {
924
- var e = t(2195);
925
- i.exports = Array.isArray || function(r) {
926
- return e(r) === "Array";
927
- };
928
- }, 4423: function(i, s, t) {
929
- var e = t(6518), r = t(9617).includes, n = t(9039), o = t(6469);
930
- e({ target: "Array", proto: !0, forced: n(function() {
931
- return !Array(1).includes();
932
- }) }, { includes: function(a) {
933
- return r(this, a, arguments.length > 1 ? arguments[1] : void 0);
934
- } }), o("includes");
935
- }, 4428: function(i, s, t) {
936
- var e = t(8227)("iterator"), r = !1;
937
- try {
938
- var n = 0, o = { next: function() {
939
- return { done: !!n++ };
940
- }, return: function() {
941
- r = !0;
942
- } };
943
- o[e] = function() {
944
- return this;
945
- }, Array.from(o, function() {
946
- throw 2;
947
- });
948
- } catch {
949
- }
950
- i.exports = function(a, c) {
951
- try {
952
- if (!c && !r)
953
- return !1;
954
- } catch {
955
- return !1;
956
- }
957
- var u = !1;
958
- try {
959
- var l = {};
960
- l[e] = function() {
961
- return { next: function() {
962
- return { done: u = !0 };
963
- } };
964
- }, a(l);
965
- } catch {
966
- }
967
- return u;
968
- };
969
- }, 4488: function(i, s, t) {
970
- var e = t(7680), r = Math.floor, n = function(o, a) {
971
- var c = o.length;
972
- if (c < 8)
973
- for (var u, l, d = 1; d < c; ) {
974
- for (l = d, u = o[d]; l && a(o[l - 1], u) > 0; )
975
- o[l] = o[--l];
976
- l !== d++ && (o[l] = u);
977
- }
978
- else
979
- for (var g = r(c / 2), f = n(e(o, 0, g), a), p = n(e(o, g), a), h = f.length, v = p.length, y = 0, m = 0; y < h || m < v; )
980
- o[y + m] = y < h && m < v ? a(f[y], p[m]) <= 0 ? f[y++] : p[m++] : y < h ? f[y++] : p[m++];
981
- return o;
982
- };
983
- i.exports = n;
984
- }, 4495: function(i, s, t) {
985
- var e = t(9519), r = t(9039), n = t(4576).String;
986
- i.exports = !!Object.getOwnPropertySymbols && !r(function() {
987
- var o = Symbol("symbol detection");
988
- return !n(o) || !(Object(o) instanceof Symbol) || !Symbol.sham && e && e < 41;
989
- });
990
- }, 4527: function(i, s, t) {
991
- var e = t(3724), r = t(4376), n = TypeError, o = Object.getOwnPropertyDescriptor, a = e && !function() {
992
- if (this !== void 0)
993
- return !0;
994
- try {
995
- Object.defineProperty([], "length", { writable: !1 }).length = 1;
996
- } catch (c) {
997
- return c instanceof TypeError;
998
- }
999
- }();
1000
- i.exports = a ? function(c, u) {
1001
- if (r(c) && !o(c, "length").writable)
1002
- throw new n("Cannot set read only .length");
1003
- return c.length = u;
1004
- } : function(c, u) {
1005
- return c.length = u;
1006
- };
1007
- }, 4554: function(i, s, t) {
1008
- var e = t(6518), r = t(8981), n = t(5610), o = t(1291), a = t(6198), c = t(4527), u = t(6837), l = t(1469), d = t(4659), g = t(4606), f = t(597)("splice"), p = Math.max, h = Math.min;
1009
- e({ target: "Array", proto: !0, forced: !f }, { splice: function(v, y) {
1010
- var m, b, E, x, k, w, O = r(this), C = a(O), S = n(v, C), I = arguments.length;
1011
- for (I === 0 ? m = b = 0 : I === 1 ? (m = 0, b = C - S) : (m = I - 2, b = h(p(o(y), 0), C - S)), u(C + m - b), E = l(O, b), x = 0; x < b; x++)
1012
- (k = S + x) in O && d(E, x, O[k]);
1013
- if (E.length = b, m < b) {
1014
- for (x = S; x < C - b; x++)
1015
- w = x + m, (k = x + b) in O ? O[w] = O[k] : g(O, w);
1016
- for (x = C; x > C - b + m; x--)
1017
- g(O, x - 1);
1018
- } else if (m > b)
1019
- for (x = C - b; x > S; x--)
1020
- w = x + m - 1, (k = x + b - 1) in O ? O[w] = O[k] : g(O, w);
1021
- for (x = 0; x < m; x++)
1022
- O[x + S] = arguments[x + 2];
1023
- return c(O, C - b + m), E;
1024
- } });
1025
- }, 4576: function(i, s, t) {
1026
- var e = function(r) {
1027
- return r && r.Math === Math && r;
1028
- };
1029
- i.exports = e(typeof globalThis == "object" && globalThis) || e(typeof window == "object" && window) || e(typeof self == "object" && self) || e(typeof t.g == "object" && t.g) || e(typeof this == "object" && this) || function() {
1030
- return this;
1031
- }() || Function("return this")();
1032
- }, 4598: function(i, s, t) {
1033
- var e = t(9039);
1034
- i.exports = function(r, n) {
1035
- var o = [][r];
1036
- return !!o && e(function() {
1037
- o.call(null, n || function() {
1038
- return 1;
1039
- }, 1);
1040
- });
1041
- };
1042
- }, 4606: function(i, s, t) {
1043
- var e = t(6823), r = TypeError;
1044
- i.exports = function(n, o) {
1045
- if (!delete n[o])
1046
- throw new r("Cannot delete property " + e(o) + " of " + e(n));
1047
- };
1048
- }, 4659: function(i, s, t) {
1049
- var e = t(3724), r = t(4913), n = t(6980);
1050
- i.exports = function(o, a, c) {
1051
- e ? r.f(o, a, n(0, c)) : o[a] = c;
1052
- };
1053
- }, 4782: function(i, s, t) {
1054
- var e = t(6518), r = t(4376), n = t(3517), o = t(34), a = t(5610), c = t(6198), u = t(5397), l = t(4659), d = t(8227), g = t(597), f = t(7680), p = g("slice"), h = d("species"), v = Array, y = Math.max;
1055
- e({ target: "Array", proto: !0, forced: !p }, { slice: function(m, b) {
1056
- var E, x, k, w = u(this), O = c(w), C = a(m, O), S = a(b === void 0 ? O : b, O);
1057
- if (r(w) && (E = w.constructor, (n(E) && (E === v || r(E.prototype)) || o(E) && (E = E[h]) === null) && (E = void 0), E === v || E === void 0))
1058
- return f(w, C, S);
1059
- for (x = new (E === void 0 ? v : E)(y(S - C, 0)), k = 0; C < S; C++, k++)
1060
- C in w && l(x, k, w[C]);
1061
- return x.length = k, x;
1062
- } });
1063
- }, 4864: function(i, s, t) {
1064
- var e = t(3724), r = t(4576), n = t(9504), o = t(2796), a = t(3167), c = t(6699), u = t(2360), l = t(8480).f, d = t(1625), g = t(788), f = t(655), p = t(1034), h = t(8429), v = t(1056), y = t(6840), m = t(9039), b = t(9297), E = t(1181).enforce, x = t(7633), k = t(8227), w = t(3635), O = t(8814), C = k("match"), S = r.RegExp, I = S.prototype, j = r.SyntaxError, P = n(I.exec), M = n("".charAt), z = n("".replace), K = n("".indexOf), A = n("".slice), H = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/, R = /a/g, U = /a/g, B = new S(R) !== R, _ = h.MISSED_STICKY, T = h.UNSUPPORTED_Y, D = e && (!B || _ || w || O || m(function() {
1065
- return U[C] = !1, S(R) !== R || S(U) === U || String(S(R, "i")) !== "/a/i";
1066
- }));
1067
- if (o("RegExp", D)) {
1068
- for (var N = function(W, V) {
1069
- var ot, at, lt, dt, st, ut, it = d(I, this), Pt = g(W), Nt = V === void 0, mt = [], rt = W;
1070
- if (!it && Pt && Nt && W.constructor === N)
1071
- return W;
1072
- if ((Pt || d(I, W)) && (W = W.source, Nt && (V = p(rt))), W = W === void 0 ? "" : f(W), V = V === void 0 ? "" : f(V), rt = W, w && "dotAll" in R && (at = !!V && K(V, "s") > -1) && (V = z(V, /s/g, "")), ot = V, _ && "sticky" in R && (lt = !!V && K(V, "y") > -1) && T && (V = z(V, /y/g, "")), O && (dt = function(tt) {
1073
- for (var X, bt = tt.length, et = 0, ct = "", ft = [], xt = u(null), wt = !1, pt = !1, At = 0, ht = ""; et <= bt; et++) {
1074
- if ((X = M(tt, et)) === "\\")
1075
- X += M(tt, ++et);
1076
- else if (X === "]")
1077
- wt = !1;
1078
- else if (!wt)
1079
- switch (!0) {
1080
- case X === "[":
1081
- wt = !0;
1082
- break;
1083
- case X === "(":
1084
- if (ct += X, A(tt, et + 1, et + 3) === "?:")
1085
- continue;
1086
- P(H, A(tt, et + 1)) && (et += 2, pt = !0), At++;
1087
- continue;
1088
- case (X === ">" && pt):
1089
- if (ht === "" || b(xt, ht))
1090
- throw new j("Invalid capture group name");
1091
- xt[ht] = !0, ft[ft.length] = [ht, At], pt = !1, ht = "";
1092
- continue;
1093
- }
1094
- pt ? ht += X : ct += X;
1095
- }
1096
- return [ct, ft];
1097
- }(W), W = dt[0], mt = dt[1]), st = a(S(W, V), it ? this : I, N), (at || lt || mt.length) && (ut = E(st), at && (ut.dotAll = !0, ut.raw = N(function(tt) {
1098
- for (var X, bt = tt.length, et = 0, ct = "", ft = !1; et <= bt; et++)
1099
- (X = M(tt, et)) !== "\\" ? ft || X !== "." ? (X === "[" ? ft = !0 : X === "]" && (ft = !1), ct += X) : ct += "[\\s\\S]" : ct += X + M(tt, ++et);
1100
- return ct;
1101
- }(W), ot)), lt && (ut.sticky = !0), mt.length && (ut.groups = mt)), W !== rt)
1102
- try {
1103
- c(st, "source", rt === "" ? "(?:)" : rt);
1104
- } catch {
1105
- }
1106
- return st;
1107
- }, q = l(S), Z = 0; q.length > Z; )
1108
- v(N, S, q[Z++]);
1109
- I.constructor = N, N.prototype = I, y(r, "RegExp", N, { constructor: !0 });
1110
- }
1111
- x("RegExp");
1112
- }, 4901: function(i) {
1113
- var s = typeof document == "object" && document.all;
1114
- i.exports = s === void 0 && s !== void 0 ? function(t) {
1115
- return typeof t == "function" || t === s;
1116
- } : function(t) {
1117
- return typeof t == "function";
1118
- };
1119
- }, 4913: function(i, s, t) {
1120
- var e = t(3724), r = t(5917), n = t(8686), o = t(8551), a = t(6969), c = TypeError, u = Object.defineProperty, l = Object.getOwnPropertyDescriptor, d = "enumerable", g = "configurable", f = "writable";
1121
- s.f = e ? n ? function(p, h, v) {
1122
- if (o(p), h = a(h), o(v), typeof p == "function" && h === "prototype" && "value" in v && f in v && !v[f]) {
1123
- var y = l(p, h);
1124
- y && y[f] && (p[h] = v.value, v = { configurable: g in v ? v[g] : y[g], enumerable: d in v ? v[d] : y[d], writable: !1 });
1125
- }
1126
- return u(p, h, v);
1127
- } : u : function(p, h, v) {
1128
- if (o(p), h = a(h), o(v), r)
1129
- try {
1130
- return u(p, h, v);
1131
- } catch {
1132
- }
1133
- if ("get" in v || "set" in v)
1134
- throw new c("Accessors not supported");
1135
- return "value" in v && (p[h] = v.value), p;
1136
- };
1137
- }, 5031: function(i, s, t) {
1138
- var e = t(7751), r = t(9504), n = t(8480), o = t(3717), a = t(8551), c = r([].concat);
1139
- i.exports = e("Reflect", "ownKeys") || function(u) {
1140
- var l = n.f(a(u)), d = o.f;
1141
- return d ? c(l, d(u)) : l;
1142
- };
1143
- }, 5276: function(i, s, t) {
1144
- var e = t(6518), r = t(7476), n = t(9617).indexOf, o = t(4598), a = r([].indexOf), c = !!a && 1 / a([1], 1, -0) < 0;
1145
- e({ target: "Array", proto: !0, forced: c || !o("indexOf") }, { indexOf: function(u) {
1146
- var l = arguments.length > 1 ? arguments[1] : void 0;
1147
- return c ? a(this, u, l) || 0 : n(this, u, l);
1148
- } });
1149
- }, 5397: function(i, s, t) {
1150
- var e = t(7055), r = t(7750);
1151
- i.exports = function(n) {
1152
- return e(r(n));
1153
- };
1154
- }, 5440: function(i, s, t) {
1155
- var e = t(8745), r = t(9565), n = t(9504), o = t(9228), a = t(9039), c = t(8551), u = t(4901), l = t(34), d = t(1291), g = t(8014), f = t(655), p = t(7750), h = t(7829), v = t(5966), y = t(2478), m = t(6682), b = t(8227)("replace"), E = Math.max, x = Math.min, k = n([].concat), w = n([].push), O = n("".indexOf), C = n("".slice), S = "a".replace(/./, "$0") === "$0", I = !!/./[b] && /./[b]("a", "$0") === "";
1156
- o("replace", function(j, P, M) {
1157
- var z = I ? "$" : "$0";
1158
- return [function(K, A) {
1159
- var H = p(this), R = l(K) ? v(K, b) : void 0;
1160
- return R ? r(R, K, H, A) : r(P, f(H), K, A);
1161
- }, function(K, A) {
1162
- var H = c(this), R = f(K);
1163
- if (typeof A == "string" && O(A, z) === -1 && O(A, "$<") === -1) {
1164
- var U = M(P, H, R, A);
1165
- if (U.done)
1166
- return U.value;
1167
- }
1168
- var B = u(A);
1169
- B || (A = f(A));
1170
- var _, T = H.global;
1171
- T && (_ = H.unicode, H.lastIndex = 0);
1172
- for (var D, N = []; (D = m(H, R)) !== null && (w(N, D), T); )
1173
- f(D[0]) === "" && (H.lastIndex = h(R, g(H.lastIndex), _));
1174
- for (var q, Z = "", W = 0, V = 0; V < N.length; V++) {
1175
- for (var ot, at = f((D = N[V])[0]), lt = E(x(d(D.index), R.length), 0), dt = [], st = 1; st < D.length; st++)
1176
- w(dt, (q = D[st]) === void 0 ? q : String(q));
1177
- var ut = D.groups;
1178
- if (B) {
1179
- var it = k([at], dt, lt, R);
1180
- ut !== void 0 && w(it, ut), ot = f(e(A, void 0, it));
1181
- } else
1182
- ot = y(at, R, lt, dt, ut, A);
1183
- lt >= W && (Z += C(R, W, lt) + ot, W = lt + at.length);
1184
- }
1185
- return Z + C(R, W);
1186
- }];
1187
- }, !!a(function() {
1188
- var j = /./;
1189
- return j.exec = function() {
1190
- var P = [];
1191
- return P.groups = { a: "7" }, P;
1192
- }, "".replace(j, "$<a>") !== "7";
1193
- }) || !S || I);
1194
- }, 5548: function(i, s, t) {
1195
- var e = t(3517), r = t(6823), n = TypeError;
1196
- i.exports = function(o) {
1197
- if (e(o))
1198
- return o;
1199
- throw new n(r(o) + " is not a constructor");
1200
- };
1201
- }, 5610: function(i, s, t) {
1202
- var e = t(1291), r = Math.max, n = Math.min;
1203
- i.exports = function(o, a) {
1204
- var c = e(o);
1205
- return c < 0 ? r(c + a, 0) : n(c, a);
1206
- };
1207
- }, 5700: function(i, s, t) {
1208
- var e = t(511), r = t(8242);
1209
- e("toPrimitive"), r();
1210
- }, 5745: function(i, s, t) {
1211
- var e = t(7629);
1212
- i.exports = function(r, n) {
1213
- return e[r] || (e[r] = n || {});
1214
- };
1215
- }, 5749: function(i, s, t) {
1216
- var e = t(788), r = TypeError;
1217
- i.exports = function(n) {
1218
- if (e(n))
1219
- throw new r("The method doesn't accept regular expressions");
1220
- return n;
1221
- };
1222
- }, 5917: function(i, s, t) {
1223
- var e = t(3724), r = t(9039), n = t(4055);
1224
- i.exports = !e && !r(function() {
1225
- return Object.defineProperty(n("div"), "a", { get: function() {
1226
- return 7;
1227
- } }).a !== 7;
1228
- });
1229
- }, 5966: function(i, s, t) {
1230
- var e = t(9306), r = t(4117);
1231
- i.exports = function(n, o) {
1232
- var a = n[o];
1233
- return r(a) ? void 0 : e(a);
1234
- };
1235
- }, 6080: function(i, s, t) {
1236
- var e = t(7476), r = t(9306), n = t(616), o = e(e.bind);
1237
- i.exports = function(a, c) {
1238
- return r(a), c === void 0 ? a : n ? o(a, c) : function() {
1239
- return a.apply(c, arguments);
1240
- };
1241
- };
1242
- }, 6099: function(i, s, t) {
1243
- var e = t(2140), r = t(6840), n = t(3179);
1244
- e || r(Object.prototype, "toString", n, { unsafe: !0 });
1245
- }, 6119: function(i, s, t) {
1246
- var e = t(5745), r = t(3392), n = e("keys");
1247
- i.exports = function(o) {
1248
- return n[o] || (n[o] = r(o));
1249
- };
1250
- }, 6193: function(i, s, t) {
1251
- var e = t(4215);
1252
- i.exports = e === "NODE";
1253
- }, 6198: function(i, s, t) {
1254
- var e = t(8014);
1255
- i.exports = function(r) {
1256
- return e(r.length);
1257
- };
1258
- }, 6269: function(i) {
1259
- i.exports = {};
1260
- }, 6319: function(i, s, t) {
1261
- var e = t(8551), r = t(9539);
1262
- i.exports = function(n, o, a, c) {
1263
- try {
1264
- return c ? o(e(a)[0], a[1]) : o(a);
1265
- } catch (u) {
1266
- r(n, "throw", u);
1267
- }
1268
- };
1269
- }, 6395: function(i) {
1270
- i.exports = !1;
1271
- }, 6469: function(i, s, t) {
1272
- var e = t(8227), r = t(2360), n = t(4913).f, o = e("unscopables"), a = Array.prototype;
1273
- a[o] === void 0 && n(a, o, { configurable: !0, value: r(null) }), i.exports = function(c) {
1274
- a[o][c] = !0;
1275
- };
1276
- }, 6518: function(i, s, t) {
1277
- var e = t(4576), r = t(7347).f, n = t(6699), o = t(6840), a = t(9433), c = t(7740), u = t(2796);
1278
- i.exports = function(l, d) {
1279
- var g, f, p, h, v, y = l.target, m = l.global, b = l.stat;
1280
- if (g = m ? e : b ? e[y] || a(y, {}) : e[y] && e[y].prototype)
1281
- for (f in d) {
1282
- if (h = d[f], p = l.dontCallGetSet ? (v = r(g, f)) && v.value : g[f], !u(m ? f : y + (b ? "." : "#") + f, l.forced) && p !== void 0) {
1283
- if (typeof h == typeof p)
1284
- continue;
1285
- c(h, p);
1286
- }
1287
- (l.sham || p && p.sham) && n(h, "sham", !0), o(g, f, h, l);
1288
- }
1289
- };
1290
- }, 6682: function(i, s, t) {
1291
- var e = t(9565), r = t(8551), n = t(4901), o = t(2195), a = t(7323), c = TypeError;
1292
- i.exports = function(u, l) {
1293
- var d = u.exec;
1294
- if (n(d)) {
1295
- var g = e(d, u, l);
1296
- return g !== null && r(g), g;
1297
- }
1298
- if (o(u) === "RegExp")
1299
- return e(a, u, l);
1300
- throw new c("RegExp#exec called on incompatible receiver");
1301
- };
1302
- }, 6699: function(i, s, t) {
1303
- var e = t(3724), r = t(4913), n = t(6980);
1304
- i.exports = e ? function(o, a, c) {
1305
- return r.f(o, a, n(1, c));
1306
- } : function(o, a, c) {
1307
- return o[a] = c, o;
1308
- };
1309
- }, 6706: function(i, s, t) {
1310
- var e = t(9504), r = t(9306);
1311
- i.exports = function(n, o, a) {
1312
- try {
1313
- return e(r(Object.getOwnPropertyDescriptor(n, o)[a]));
1314
- } catch {
1315
- }
1316
- };
1317
- }, 6761: function(i, s, t) {
1318
- var e = t(6518), r = t(4576), n = t(9565), o = t(9504), a = t(6395), c = t(3724), u = t(4495), l = t(9039), d = t(9297), g = t(1625), f = t(8551), p = t(5397), h = t(6969), v = t(655), y = t(6980), m = t(2360), b = t(1072), E = t(8480), x = t(298), k = t(3717), w = t(7347), O = t(4913), C = t(6801), S = t(8773), I = t(6840), j = t(2106), P = t(5745), M = t(6119), z = t(421), K = t(3392), A = t(8227), H = t(1951), R = t(511), U = t(8242), B = t(687), _ = t(1181), T = t(9213).forEach, D = M("hidden"), N = "Symbol", q = "prototype", Z = _.set, W = _.getterFor(N), V = Object[q], ot = r.Symbol, at = ot && ot[q], lt = r.RangeError, dt = r.TypeError, st = r.QObject, ut = w.f, it = O.f, Pt = x.f, Nt = S.f, mt = o([].push), rt = P("symbols"), tt = P("op-symbols"), X = P("wks"), bt = !st || !st[q] || !st[q].findChild, et = function(F, $, G) {
1319
- var J = ut(V, $);
1320
- J && delete V[$], it(F, $, G), J && F !== V && it(V, $, J);
1321
- }, ct = c && l(function() {
1322
- return m(it({}, "a", { get: function() {
1323
- return it(this, "a", { value: 7 }).a;
1324
- } })).a !== 7;
1325
- }) ? et : it, ft = function(F, $) {
1326
- var G = rt[F] = m(at);
1327
- return Z(G, { type: N, tag: F, description: $ }), c || (G.description = $), G;
1328
- }, xt = function(F, $, G) {
1329
- F === V && xt(tt, $, G), f(F);
1330
- var J = h($);
1331
- return f(G), d(rt, J) ? (G.enumerable ? (d(F, D) && F[D][J] && (F[D][J] = !1), G = m(G, { enumerable: y(0, !1) })) : (d(F, D) || it(F, D, y(1, m(null))), F[D][J] = !0), ct(F, J, G)) : it(F, J, G);
1332
- }, wt = function(F, $) {
1333
- f(F);
1334
- var G = p($), J = b(G).concat(Wt(G));
1335
- return T(J, function(Q) {
1336
- c && !n(pt, G, Q) || xt(F, Q, G[Q]);
1337
- }), F;
1338
- }, pt = function(F) {
1339
- var $ = h(F), G = n(Nt, this, $);
1340
- return !(this === V && d(rt, $) && !d(tt, $)) && (!(G || !d(this, $) || !d(rt, $) || d(this, D) && this[D][$]) || G);
1341
- }, At = function(F, $) {
1342
- var G = p(F), J = h($);
1343
- if (G !== V || !d(rt, J) || d(tt, J)) {
1344
- var Q = ut(G, J);
1345
- return !Q || !d(rt, J) || d(G, D) && G[D][J] || (Q.enumerable = !0), Q;
1346
- }
1347
- }, ht = function(F) {
1348
- var $ = Pt(p(F)), G = [];
1349
- return T($, function(J) {
1350
- d(rt, J) || d(z, J) || mt(G, J);
1351
- }), G;
1352
- }, Wt = function(F) {
1353
- var $ = F === V, G = Pt($ ? tt : p(F)), J = [];
1354
- return T(G, function(Q) {
1355
- !d(rt, Q) || $ && !d(V, Q) || mt(J, rt[Q]);
1356
- }), J;
1357
- };
1358
- u || (ot = function() {
1359
- if (g(at, this))
1360
- throw new dt("Symbol is not a constructor");
1361
- var F = arguments.length && arguments[0] !== void 0 ? v(arguments[0]) : void 0, $ = K(F), G = function(J) {
1362
- var Q = this === void 0 ? r : this;
1363
- Q === V && n(G, tt, J), d(Q, D) && d(Q[D], $) && (Q[D][$] = !1);
1364
- var Jt = y(1, J);
1365
- try {
1366
- ct(Q, $, Jt);
1367
- } catch (Xt) {
1368
- if (!(Xt instanceof lt))
1369
- throw Xt;
1370
- et(Q, $, Jt);
1371
- }
1372
- };
1373
- return c && bt && ct(V, $, { configurable: !0, set: G }), ft($, F);
1374
- }, I(at = ot[q], "toString", function() {
1375
- return W(this).tag;
1376
- }), I(ot, "withoutSetter", function(F) {
1377
- return ft(K(F), F);
1378
- }), S.f = pt, O.f = xt, C.f = wt, w.f = At, E.f = x.f = ht, k.f = Wt, H.f = function(F) {
1379
- return ft(A(F), F);
1380
- }, c && (j(at, "description", { configurable: !0, get: function() {
1381
- return W(this).description;
1382
- } }), a || I(V, "propertyIsEnumerable", pt, { unsafe: !0 }))), e({ global: !0, constructor: !0, wrap: !0, forced: !u, sham: !u }, { Symbol: ot }), T(b(X), function(F) {
1383
- R(F);
1384
- }), e({ target: N, stat: !0, forced: !u }, { useSetter: function() {
1385
- bt = !0;
1386
- }, useSimple: function() {
1387
- bt = !1;
1388
- } }), e({ target: "Object", stat: !0, forced: !u, sham: !c }, { create: function(F, $) {
1389
- return $ === void 0 ? m(F) : wt(m(F), $);
1390
- }, defineProperty: xt, defineProperties: wt, getOwnPropertyDescriptor: At }), e({ target: "Object", stat: !0, forced: !u }, { getOwnPropertyNames: ht }), U(), B(ot, N), z[D] = !0;
1391
- }, 6801: function(i, s, t) {
1392
- var e = t(3724), r = t(8686), n = t(4913), o = t(8551), a = t(5397), c = t(1072);
1393
- s.f = e && !r ? Object.defineProperties : function(u, l) {
1394
- o(u);
1395
- for (var d, g = a(l), f = c(l), p = f.length, h = 0; p > h; )
1396
- n.f(u, d = f[h++], g[d]);
1397
- return u;
1398
- };
1399
- }, 6823: function(i) {
1400
- var s = String;
1401
- i.exports = function(t) {
1402
- try {
1403
- return s(t);
1404
- } catch {
1405
- return "Object";
1406
- }
1407
- };
1408
- }, 6837: function(i) {
1409
- var s = TypeError;
1410
- i.exports = function(t) {
1411
- if (t > 9007199254740991)
1412
- throw s("Maximum allowed index exceeded");
1413
- return t;
1414
- };
1415
- }, 6840: function(i, s, t) {
1416
- var e = t(4901), r = t(4913), n = t(283), o = t(9433);
1417
- i.exports = function(a, c, u, l) {
1418
- l || (l = {});
1419
- var d = l.enumerable, g = l.name !== void 0 ? l.name : c;
1420
- if (e(u) && n(u, g, l), l.global)
1421
- d ? a[c] = u : o(c, u);
1422
- else {
1423
- try {
1424
- l.unsafe ? a[c] && (d = !0) : delete a[c];
1425
- } catch {
1426
- }
1427
- d ? a[c] = u : r.f(a, c, { value: u, enumerable: !1, configurable: !l.nonConfigurable, writable: !l.nonWritable });
1428
- }
1429
- return a;
1430
- };
1431
- }, 6910: function(i, s, t) {
1432
- var e = t(6518), r = t(9504), n = t(9306), o = t(8981), a = t(6198), c = t(4606), u = t(655), l = t(9039), d = t(4488), g = t(4598), f = t(3709), p = t(3763), h = t(9519), v = t(3607), y = [], m = r(y.sort), b = r(y.push), E = l(function() {
1433
- y.sort(void 0);
1434
- }), x = l(function() {
1435
- y.sort(null);
1436
- }), k = g("sort"), w = !l(function() {
1437
- if (h)
1438
- return h < 70;
1439
- if (!(f && f > 3)) {
1440
- if (p)
1441
- return !0;
1442
- if (v)
1443
- return v < 603;
1444
- var O, C, S, I, j = "";
1445
- for (O = 65; O < 76; O++) {
1446
- switch (C = String.fromCharCode(O), O) {
1447
- case 66:
1448
- case 69:
1449
- case 70:
1450
- case 72:
1451
- S = 3;
1452
- break;
1453
- case 68:
1454
- case 71:
1455
- S = 4;
1456
- break;
1457
- default:
1458
- S = 2;
1459
- }
1460
- for (I = 0; I < 47; I++)
1461
- y.push({ k: C + I, v: S });
1462
- }
1463
- for (y.sort(function(P, M) {
1464
- return M.v - P.v;
1465
- }), I = 0; I < y.length; I++)
1466
- C = y[I].k.charAt(0), j.charAt(j.length - 1) !== C && (j += C);
1467
- return j !== "DGBEFHACIJK";
1468
- }
1469
- });
1470
- e({ target: "Array", proto: !0, forced: E || !x || !k || !w }, { sort: function(O) {
1471
- O !== void 0 && n(O);
1472
- var C = o(this);
1473
- if (w)
1474
- return O === void 0 ? m(C) : m(C, O);
1475
- var S, I, j = [], P = a(C);
1476
- for (I = 0; I < P; I++)
1477
- I in C && b(j, C[I]);
1478
- for (d(j, function(M) {
1479
- return function(z, K) {
1480
- return K === void 0 ? -1 : z === void 0 ? 1 : M !== void 0 ? +M(z, K) || 0 : u(z) > u(K) ? 1 : -1;
1481
- };
1482
- }(O)), S = a(j), I = 0; I < S; )
1483
- C[I] = j[I++];
1484
- for (; I < P; )
1485
- c(C, I++);
1486
- return C;
1487
- } });
1488
- }, 6933: function(i, s, t) {
1489
- var e = t(9504), r = t(4376), n = t(4901), o = t(2195), a = t(655), c = e([].push);
1490
- i.exports = function(u) {
1491
- if (n(u))
1492
- return u;
1493
- if (r(u)) {
1494
- for (var l = u.length, d = [], g = 0; g < l; g++) {
1495
- var f = u[g];
1496
- typeof f == "string" ? c(d, f) : typeof f != "number" && o(f) !== "Number" && o(f) !== "String" || c(d, a(f));
1497
- }
1498
- var p = d.length, h = !0;
1499
- return function(v, y) {
1500
- if (h)
1501
- return h = !1, y;
1502
- if (r(this))
1503
- return y;
1504
- for (var m = 0; m < p; m++)
1505
- if (d[m] === v)
1506
- return y;
1507
- };
1508
- }
1509
- };
1510
- }, 6955: function(i, s, t) {
1511
- var e = t(2140), r = t(4901), n = t(2195), o = t(8227)("toStringTag"), a = Object, c = n(function() {
1512
- return arguments;
1513
- }()) === "Arguments";
1514
- i.exports = e ? n : function(u) {
1515
- var l, d, g;
1516
- return u === void 0 ? "Undefined" : u === null ? "Null" : typeof (d = function(f, p) {
1517
- try {
1518
- return f[p];
1519
- } catch {
1520
- }
1521
- }(l = a(u), o)) == "string" ? d : c ? n(l) : (g = n(l)) === "Object" && r(l.callee) ? "Arguments" : g;
1522
- };
1523
- }, 6969: function(i, s, t) {
1524
- var e = t(2777), r = t(757);
1525
- i.exports = function(n) {
1526
- var o = e(n, "string");
1527
- return r(o) ? o : o + "";
1528
- };
1529
- }, 6980: function(i) {
1530
- i.exports = function(s, t) {
1531
- return { enumerable: !(1 & s), configurable: !(2 & s), writable: !(4 & s), value: t };
1532
- };
1533
- }, 7040: function(i, s, t) {
1534
- var e = t(4495);
1535
- i.exports = e && !Symbol.sham && typeof Symbol.iterator == "symbol";
1536
- }, 7055: function(i, s, t) {
1537
- var e = t(9504), r = t(9039), n = t(2195), o = Object, a = e("".split);
1538
- i.exports = r(function() {
1539
- return !o("z").propertyIsEnumerable(0);
1540
- }) ? function(c) {
1541
- return n(c) === "String" ? a(c, "") : o(c);
1542
- } : o;
1543
- }, 7323: function(i, s, t) {
1544
- var e, r, n = t(9565), o = t(9504), a = t(655), c = t(7979), u = t(8429), l = t(5745), d = t(2360), g = t(1181).get, f = t(3635), p = t(8814), h = l("native-string-replace", String.prototype.replace), v = RegExp.prototype.exec, y = v, m = o("".charAt), b = o("".indexOf), E = o("".replace), x = o("".slice), k = (r = /b*/g, n(v, e = /a/, "a"), n(v, r, "a"), e.lastIndex !== 0 || r.lastIndex !== 0), w = u.BROKEN_CARET, O = /()??/.exec("")[1] !== void 0;
1545
- (k || O || w || f || p) && (y = function(C) {
1546
- var S, I, j, P, M, z, K, A = this, H = g(A), R = a(C), U = H.raw;
1547
- if (U)
1548
- return U.lastIndex = A.lastIndex, S = n(y, U, R), A.lastIndex = U.lastIndex, S;
1549
- var B = H.groups, _ = w && A.sticky, T = n(c, A), D = A.source, N = 0, q = R;
1550
- if (_ && (T = E(T, "y", ""), b(T, "g") === -1 && (T += "g"), q = x(R, A.lastIndex), A.lastIndex > 0 && (!A.multiline || A.multiline && m(R, A.lastIndex - 1) !== `
1551
- `) && (D = "(?: " + D + ")", q = " " + q, N++), I = new RegExp("^(?:" + D + ")", T)), O && (I = new RegExp("^" + D + "$(?!\\s)", T)), k && (j = A.lastIndex), P = n(v, _ ? I : A, q), _ ? P ? (P.input = x(P.input, N), P[0] = x(P[0], N), P.index = A.lastIndex, A.lastIndex += P[0].length) : A.lastIndex = 0 : k && P && (A.lastIndex = A.global ? P.index + P[0].length : j), O && P && P.length > 1 && n(h, P[0], I, function() {
1552
- for (M = 1; M < arguments.length - 2; M++)
1553
- arguments[M] === void 0 && (P[M] = void 0);
1554
- }), P && B)
1555
- for (P.groups = z = d(null), M = 0; M < B.length; M++)
1556
- z[(K = B[M])[0]] = P[K[1]];
1557
- return P;
1558
- }), i.exports = y;
1559
- }, 7347: function(i, s, t) {
1560
- var e = t(3724), r = t(9565), n = t(8773), o = t(6980), a = t(5397), c = t(6969), u = t(9297), l = t(5917), d = Object.getOwnPropertyDescriptor;
1561
- s.f = e ? d : function(g, f) {
1562
- if (g = a(g), f = c(f), l)
1563
- try {
1564
- return d(g, f);
1565
- } catch {
1566
- }
1567
- if (u(g, f))
1568
- return o(!r(n.f, g, f), g[f]);
1569
- };
1570
- }, 7400: function(i) {
1571
- i.exports = { CSSRuleList: 0, CSSStyleDeclaration: 0, CSSValueList: 0, ClientRectList: 0, DOMRectList: 0, DOMStringList: 0, DOMTokenList: 1, DataTransferItemList: 0, FileList: 0, HTMLAllCollection: 0, HTMLCollection: 0, HTMLFormElement: 0, HTMLSelectElement: 0, MediaList: 0, MimeTypeArray: 0, NamedNodeMap: 0, NodeList: 1, PaintRequestList: 0, Plugin: 0, PluginArray: 0, SVGLengthList: 0, SVGNumberList: 0, SVGPathSegList: 0, SVGPointList: 0, SVGStringList: 0, SVGTransformList: 0, SourceBufferList: 0, StyleSheetList: 0, TextTrackCueList: 0, TextTrackList: 0, TouchList: 0 };
1572
- }, 7427: function(i, s, t) {
1573
- var e = t(6518), r = t(3724), n = t(2551), o = t(9306), a = t(8981), c = t(4913);
1574
- r && e({ target: "Object", proto: !0, forced: n }, { __defineGetter__: function(u, l) {
1575
- c.f(a(this), u, { get: o(l), enumerable: !0, configurable: !0 });
1576
- } });
1577
- }, 7433: function(i, s, t) {
1578
- var e = t(4376), r = t(3517), n = t(34), o = t(8227)("species"), a = Array;
1579
- i.exports = function(c) {
1580
- var u;
1581
- return e(c) && (u = c.constructor, (r(u) && (u === a || e(u.prototype)) || n(u) && (u = u[o]) === null) && (u = void 0)), u === void 0 ? a : u;
1582
- };
1583
- }, 7452: function(i) {
1584
- i.exports = `
1585
- \v\f\r                 \u2028\u2029\uFEFF`;
1586
- }, 7476: function(i, s, t) {
1587
- var e = t(2195), r = t(9504);
1588
- i.exports = function(n) {
1589
- if (e(n) === "Function")
1590
- return r(n);
1591
- };
1592
- }, 7495: function(i, s, t) {
1593
- var e = t(6518), r = t(7323);
1594
- e({ target: "RegExp", proto: !0, forced: /./.exec !== r }, { exec: r });
1595
- }, 7629: function(i, s, t) {
1596
- var e = t(6395), r = t(4576), n = t(9433), o = "__core-js_shared__", a = i.exports = r[o] || n(o, {});
1597
- (a.versions || (a.versions = [])).push({ version: "3.42.0", mode: e ? "pure" : "global", copyright: "© 2014-2025 Denis Pushkarev (zloirock.ru)", license: "https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE", source: "https://github.com/zloirock/core-js" });
1598
- }, 7633: function(i, s, t) {
1599
- var e = t(7751), r = t(2106), n = t(8227), o = t(3724), a = n("species");
1600
- i.exports = function(c) {
1601
- var u = e(c);
1602
- o && u && !u[a] && r(u, a, { configurable: !0, get: function() {
1603
- return this;
1604
- } });
1605
- };
1606
- }, 7657: function(i, s, t) {
1607
- var e, r, n, o = t(9039), a = t(4901), c = t(34), u = t(2360), l = t(2787), d = t(6840), g = t(8227), f = t(6395), p = g("iterator"), h = !1;
1608
- [].keys && ("next" in (n = [].keys()) ? (r = l(l(n))) !== Object.prototype && (e = r) : h = !0), !c(e) || o(function() {
1609
- var v = {};
1610
- return e[p].call(v) !== v;
1611
- }) ? e = {} : f && (e = u(e)), a(e[p]) || d(e, p, function() {
1612
- return this;
1613
- }), i.exports = { IteratorPrototype: e, BUGGY_SAFARI_ITERATORS: h };
1614
- }, 7680: function(i, s, t) {
1615
- var e = t(9504);
1616
- i.exports = e([].slice);
1617
- }, 7740: function(i, s, t) {
1618
- var e = t(9297), r = t(5031), n = t(7347), o = t(4913);
1619
- i.exports = function(a, c, u) {
1620
- for (var l = r(c), d = o.f, g = n.f, f = 0; f < l.length; f++) {
1621
- var p = l[f];
1622
- e(a, p) || u && e(u, p) || d(a, p, g(c, p));
1623
- }
1624
- };
1625
- }, 7750: function(i, s, t) {
1626
- var e = t(4117), r = TypeError;
1627
- i.exports = function(n) {
1628
- if (e(n))
1629
- throw new r("Can't call method on " + n);
1630
- return n;
1631
- };
1632
- }, 7751: function(i, s, t) {
1633
- var e = t(4576), r = t(4901);
1634
- i.exports = function(n, o) {
1635
- return arguments.length < 2 ? (a = e[n], r(a) ? a : void 0) : e[n] && e[n][o];
1636
- var a;
1637
- };
1638
- }, 7764: function(i, s, t) {
1639
- var e = t(8183).charAt, r = t(655), n = t(1181), o = t(1088), a = t(2529), c = "String Iterator", u = n.set, l = n.getterFor(c);
1640
- o(String, "String", function(d) {
1641
- u(this, { type: c, string: r(d), index: 0 });
1642
- }, function() {
1643
- var d, g = l(this), f = g.string, p = g.index;
1644
- return p >= f.length ? a(void 0, !0) : (d = e(f, p), g.index += d.length, a(d, !1));
1645
- });
1646
- }, 7812: function(i, s, t) {
1647
- var e = t(6518), r = t(9297), n = t(757), o = t(6823), a = t(5745), c = t(1296), u = a("symbol-to-string-registry");
1648
- e({ target: "Symbol", stat: !0, forced: !c }, { keyFor: function(l) {
1649
- if (!n(l))
1650
- throw new TypeError(o(l) + " is not a symbol");
1651
- if (r(u, l))
1652
- return u[l];
1653
- } });
1654
- }, 7829: function(i, s, t) {
1655
- var e = t(8183).charAt;
1656
- i.exports = function(r, n, o) {
1657
- return n + (o ? e(r, n).length : 1);
1658
- };
1659
- }, 7916: function(i, s, t) {
1660
- var e = t(6080), r = t(9565), n = t(8981), o = t(6319), a = t(4209), c = t(3517), u = t(6198), l = t(4659), d = t(81), g = t(851), f = Array;
1661
- i.exports = function(p) {
1662
- var h = n(p), v = c(this), y = arguments.length, m = y > 1 ? arguments[1] : void 0, b = m !== void 0;
1663
- b && (m = e(m, y > 2 ? arguments[2] : void 0));
1664
- var E, x, k, w, O, C, S = g(h), I = 0;
1665
- if (!S || this === f && a(S))
1666
- for (E = u(h), x = v ? new this(E) : f(E); E > I; I++)
1667
- C = b ? m(h[I], I) : h[I], l(x, I, C);
1668
- else
1669
- for (x = v ? new this() : [], O = (w = d(h, S)).next; !(k = r(O, w)).done; I++)
1670
- C = b ? o(w, m, [k.value, I], !0) : k.value, l(x, I, C);
1671
- return x.length = I, x;
1672
- };
1673
- }, 7979: function(i, s, t) {
1674
- var e = t(8551);
1675
- i.exports = function() {
1676
- var r = e(this), n = "";
1677
- return r.hasIndices && (n += "d"), r.global && (n += "g"), r.ignoreCase && (n += "i"), r.multiline && (n += "m"), r.dotAll && (n += "s"), r.unicode && (n += "u"), r.unicodeSets && (n += "v"), r.sticky && (n += "y"), n;
1678
- };
1679
- }, 8014: function(i, s, t) {
1680
- var e = t(1291), r = Math.min;
1681
- i.exports = function(n) {
1682
- var o = e(n);
1683
- return o > 0 ? r(o, 9007199254740991) : 0;
1684
- };
1685
- }, 8183: function(i, s, t) {
1686
- var e = t(9504), r = t(1291), n = t(655), o = t(7750), a = e("".charAt), c = e("".charCodeAt), u = e("".slice), l = function(d) {
1687
- return function(g, f) {
1688
- var p, h, v = n(o(g)), y = r(f), m = v.length;
1689
- return y < 0 || y >= m ? d ? "" : void 0 : (p = c(v, y)) < 55296 || p > 56319 || y + 1 === m || (h = c(v, y + 1)) < 56320 || h > 57343 ? d ? a(v, y) : p : d ? u(v, y, y + 2) : h - 56320 + (p - 55296 << 10) + 65536;
1690
- };
1691
- };
1692
- i.exports = { codeAt: l(!1), charAt: l(!0) };
1693
- }, 8227: function(i, s, t) {
1694
- var e = t(4576), r = t(5745), n = t(9297), o = t(3392), a = t(4495), c = t(7040), u = e.Symbol, l = r("wks"), d = c ? u.for || u : u && u.withoutSetter || o;
1695
- i.exports = function(g) {
1696
- return n(l, g) || (l[g] = a && n(u, g) ? u[g] : d("Symbol." + g)), l[g];
1697
- };
1698
- }, 8242: function(i, s, t) {
1699
- var e = t(9565), r = t(7751), n = t(8227), o = t(6840);
1700
- i.exports = function() {
1701
- var a = r("Symbol"), c = a && a.prototype, u = c && c.valueOf, l = n("toPrimitive");
1702
- c && !c[l] && o(c, l, function(d) {
1703
- return e(u, this);
1704
- }, { arity: 1 });
1705
- };
1706
- }, 8344: function(i, s, t) {
1707
- t(8543);
1708
- }, 8429: function(i, s, t) {
1709
- var e = t(9039), r = t(4576).RegExp, n = e(function() {
1710
- var c = r("a", "y");
1711
- return c.lastIndex = 2, c.exec("abcd") !== null;
1712
- }), o = n || e(function() {
1713
- return !r("a", "y").sticky;
1714
- }), a = n || e(function() {
1715
- var c = r("^r", "gy");
1716
- return c.lastIndex = 2, c.exec("str") !== null;
1717
- });
1718
- i.exports = { BROKEN_CARET: a, MISSED_STICKY: o, UNSUPPORTED_Y: n };
1719
- }, 8480: function(i, s, t) {
1720
- var e = t(1828), r = t(8727).concat("length", "prototype");
1721
- s.f = Object.getOwnPropertyNames || function(n) {
1722
- return e(n, r);
1723
- };
1724
- }, 8543: function(i, s, t) {
1725
- var e = t(6518), r = t(9565), n = t(7476), o = t(3994), a = t(2529), c = t(7750), u = t(8014), l = t(655), d = t(8551), g = t(34), f = t(2195), p = t(788), h = t(1034), v = t(5966), y = t(6840), m = t(9039), b = t(8227), E = t(2293), x = t(7829), k = t(6682), w = t(1181), O = t(6395), C = b("matchAll"), S = "RegExp String", I = S + " Iterator", j = w.set, P = w.getterFor(I), M = RegExp.prototype, z = TypeError, K = n("".indexOf), A = n("".matchAll), H = !!A && !m(function() {
1726
- A("a", /./);
1727
- }), R = o(function(B, _, T, D) {
1728
- j(this, { type: I, regexp: B, string: _, global: T, unicode: D, done: !1 });
1729
- }, S, function() {
1730
- var B = P(this);
1731
- if (B.done)
1732
- return a(void 0, !0);
1733
- var _ = B.regexp, T = B.string, D = k(_, T);
1734
- return D === null ? (B.done = !0, a(void 0, !0)) : B.global ? (l(D[0]) === "" && (_.lastIndex = x(T, u(_.lastIndex), B.unicode)), a(D, !1)) : (B.done = !0, a(D, !1));
1735
- }), U = function(B) {
1736
- var _, T, D, N = d(this), q = l(B), Z = E(N, RegExp), W = l(h(N));
1737
- return _ = new Z(Z === RegExp ? N.source : N, W), T = !!~K(W, "g"), D = !!~K(W, "u"), _.lastIndex = u(N.lastIndex), new R(_, q, T, D);
1738
- };
1739
- e({ target: "String", proto: !0, forced: H }, { matchAll: function(B) {
1740
- var _, T, D, N, q = c(this);
1741
- if (g(B)) {
1742
- if (p(B) && (_ = l(c(h(B))), !~K(_, "g")))
1743
- throw new z("`.matchAll` does not allow non-global regexes");
1744
- if (H)
1745
- return A(q, B);
1746
- if ((D = v(B, C)) === void 0 && O && f(B) === "RegExp" && (D = U), D)
1747
- return r(D, B, q);
1748
- } else if (H)
1749
- return A(q, B);
1750
- return T = l(q), N = new RegExp(B, "g"), O ? r(U, N, T) : N[C](T);
1751
- } }), O || C in M || y(M, C, U);
1752
- }, 8551: function(i, s, t) {
1753
- var e = t(34), r = String, n = TypeError;
1754
- i.exports = function(o) {
1755
- if (e(o))
1756
- return o;
1757
- throw new n(r(o) + " is not an object");
1758
- };
1759
- }, 8598: function(i, s, t) {
1760
- var e = t(6518), r = t(9504), n = t(7055), o = t(5397), a = t(4598), c = r([].join);
1761
- e({ target: "Array", proto: !0, forced: n !== Object || !a("join", ",") }, { join: function(u) {
1762
- return c(o(this), u === void 0 ? "," : u);
1763
- } });
1764
- }, 8622: function(i, s, t) {
1765
- var e = t(4576), r = t(4901), n = e.WeakMap;
1766
- i.exports = r(n) && /native code/.test(String(n));
1767
- }, 8686: function(i, s, t) {
1768
- var e = t(3724), r = t(9039);
1769
- i.exports = e && r(function() {
1770
- return Object.defineProperty(function() {
1771
- }, "prototype", { value: 42, writable: !1 }).prototype !== 42;
1772
- });
1773
- }, 8706: function(i, s, t) {
1774
- var e = t(6518), r = t(9039), n = t(4376), o = t(34), a = t(8981), c = t(6198), u = t(6837), l = t(4659), d = t(1469), g = t(597), f = t(8227), p = t(9519), h = f("isConcatSpreadable"), v = p >= 51 || !r(function() {
1775
- var m = [];
1776
- return m[h] = !1, m.concat()[0] !== m;
1777
- }), y = function(m) {
1778
- if (!o(m))
1779
- return !1;
1780
- var b = m[h];
1781
- return b !== void 0 ? !!b : n(m);
1782
- };
1783
- e({ target: "Array", proto: !0, arity: 1, forced: !v || !g("concat") }, { concat: function(m) {
1784
- var b, E, x, k, w, O = a(this), C = d(O, 0), S = 0;
1785
- for (b = -1, x = arguments.length; b < x; b++)
1786
- if (y(w = b === -1 ? O : arguments[b]))
1787
- for (k = c(w), u(S + k), E = 0; E < k; E++, S++)
1788
- E in w && l(C, S, w[E]);
1789
- else
1790
- u(S + 1), l(C, S++, w);
1791
- return C.length = S, C;
1792
- } });
1793
- }, 8727: function(i) {
1794
- i.exports = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"];
1795
- }, 8745: function(i, s, t) {
1796
- var e = t(616), r = Function.prototype, n = r.apply, o = r.call;
1797
- i.exports = typeof Reflect == "object" && Reflect.apply || (e ? o.bind(n) : function() {
1798
- return o.apply(n, arguments);
1799
- });
1800
- }, 8773: function(i, s) {
1801
- var t = {}.propertyIsEnumerable, e = Object.getOwnPropertyDescriptor, r = e && !t.call({ 1: 2 }, 1);
1802
- s.f = r ? function(n) {
1803
- var o = e(this, n);
1804
- return !!o && o.enumerable;
1805
- } : t;
1806
- }, 8781: function(i, s, t) {
1807
- var e = t(350).PROPER, r = t(6840), n = t(8551), o = t(655), a = t(9039), c = t(1034), u = "toString", l = RegExp.prototype, d = l[u], g = a(function() {
1808
- return d.call({ source: "a", flags: "b" }) !== "/a/b";
1809
- }), f = e && d.name !== u;
1810
- (g || f) && r(l, u, function() {
1811
- var p = n(this);
1812
- return "/" + o(p.source) + "/" + o(c(p));
1813
- }, { unsafe: !0 });
1814
- }, 8814: function(i, s, t) {
1815
- var e = t(9039), r = t(4576).RegExp;
1816
- i.exports = e(function() {
1817
- var n = r("(?<a>b)", "g");
1818
- return n.exec("b").groups.a !== "b" || "b".replace(n, "$<a>c") !== "bc";
1819
- });
1820
- }, 8981: function(i, s, t) {
1821
- var e = t(7750), r = Object;
1822
- i.exports = function(n) {
1823
- return r(e(n));
1824
- };
1825
- }, 9039: function(i) {
1826
- i.exports = function(s) {
1827
- try {
1828
- return !!s();
1829
- } catch {
1830
- return !0;
1831
- }
1832
- };
1833
- }, 9085: function(i, s, t) {
1834
- var e = t(6518), r = t(4213);
1835
- e({ target: "Object", stat: !0, arity: 2, forced: Object.assign !== r }, { assign: r });
1836
- }, 9167: function(i, s, t) {
1837
- var e = t(4576);
1838
- i.exports = e;
1839
- }, 9213: function(i, s, t) {
1840
- var e = t(6080), r = t(9504), n = t(7055), o = t(8981), a = t(6198), c = t(1469), u = r([].push), l = function(d) {
1841
- var g = d === 1, f = d === 2, p = d === 3, h = d === 4, v = d === 6, y = d === 7, m = d === 5 || v;
1842
- return function(b, E, x, k) {
1843
- for (var w, O, C = o(b), S = n(C), I = a(S), j = e(E, x), P = 0, M = k || c, z = g ? M(b, I) : f || y ? M(b, 0) : void 0; I > P; P++)
1844
- if ((m || P in S) && (O = j(w = S[P], P, C), d))
1845
- if (g)
1846
- z[P] = O;
1847
- else if (O)
1848
- switch (d) {
1849
- case 3:
1850
- return !0;
1851
- case 5:
1852
- return w;
1853
- case 6:
1854
- return P;
1855
- case 2:
1856
- u(z, w);
1857
- }
1858
- else
1859
- switch (d) {
1860
- case 4:
1861
- return !1;
1862
- case 7:
1863
- u(z, w);
1864
- }
1865
- return v ? -1 : p || h ? h : z;
1866
- };
1867
- };
1868
- i.exports = { forEach: l(0), map: l(1), filter: l(2), some: l(3), every: l(4), find: l(5), findIndex: l(6), filterReject: l(7) };
1869
- }, 9228: function(i, s, t) {
1870
- t(7495);
1871
- var e = t(9565), r = t(6840), n = t(7323), o = t(9039), a = t(8227), c = t(6699), u = a("species"), l = RegExp.prototype;
1872
- i.exports = function(d, g, f, p) {
1873
- var h = a(d), v = !o(function() {
1874
- var E = {};
1875
- return E[h] = function() {
1876
- return 7;
1877
- }, ""[d](E) !== 7;
1878
- }), y = v && !o(function() {
1879
- var E = !1, x = /a/;
1880
- return d === "split" && ((x = {}).constructor = {}, x.constructor[u] = function() {
1881
- return x;
1882
- }, x.flags = "", x[h] = /./[h]), x.exec = function() {
1883
- return E = !0, null;
1884
- }, x[h](""), !E;
1885
- });
1886
- if (!v || !y || f) {
1887
- var m = /./[h], b = g(h, ""[d], function(E, x, k, w, O) {
1888
- var C = x.exec;
1889
- return C === n || C === l.exec ? v && !O ? { done: !0, value: e(m, x, k, w) } : { done: !0, value: e(E, k, x, w) } : { done: !1 };
1890
- });
1891
- r(String.prototype, d, b[0]), r(l, h, b[1]);
1892
- }
1893
- p && c(l[h], "sham", !0);
1894
- };
1895
- }, 9296: function(i, s, t) {
1896
- var e = t(4055)("span").classList, r = e && e.constructor && e.constructor.prototype;
1897
- i.exports = r === Object.prototype ? void 0 : r;
1898
- }, 9297: function(i, s, t) {
1899
- var e = t(9504), r = t(8981), n = e({}.hasOwnProperty);
1900
- i.exports = Object.hasOwn || function(o, a) {
1901
- return n(r(o), a);
1902
- };
1903
- }, 9306: function(i, s, t) {
1904
- var e = t(4901), r = t(6823), n = TypeError;
1905
- i.exports = function(o) {
1906
- if (e(o))
1907
- return o;
1908
- throw new n(r(o) + " is not a function");
1909
- };
1910
- }, 9432: function(i, s, t) {
1911
- var e = t(6518), r = t(8981), n = t(1072);
1912
- e({ target: "Object", stat: !0, forced: t(9039)(function() {
1913
- n(1);
1914
- }) }, { keys: function(o) {
1915
- return n(r(o));
1916
- } });
1917
- }, 9433: function(i, s, t) {
1918
- var e = t(4576), r = Object.defineProperty;
1919
- i.exports = function(n, o) {
1920
- try {
1921
- r(e, n, { value: o, configurable: !0, writable: !0 });
1922
- } catch {
1923
- e[n] = o;
1924
- }
1925
- return o;
1926
- };
1927
- }, 9463: function(i, s, t) {
1928
- var e = t(6518), r = t(3724), n = t(4576), o = t(9504), a = t(9297), c = t(4901), u = t(1625), l = t(655), d = t(2106), g = t(7740), f = n.Symbol, p = f && f.prototype;
1929
- if (r && c(f) && (!("description" in p) || f().description !== void 0)) {
1930
- var h = {}, v = function() {
1931
- var w = arguments.length < 1 || arguments[0] === void 0 ? void 0 : l(arguments[0]), O = u(p, this) ? new f(w) : w === void 0 ? f() : f(w);
1932
- return w === "" && (h[O] = !0), O;
1933
- };
1934
- g(v, f), v.prototype = p, p.constructor = v;
1935
- var y = String(f("description detection")) === "Symbol(description detection)", m = o(p.valueOf), b = o(p.toString), E = /^Symbol\((.*)\)[^)]+$/, x = o("".replace), k = o("".slice);
1936
- d(p, "description", { configurable: !0, get: function() {
1937
- var w = m(this);
1938
- if (a(h, w))
1939
- return "";
1940
- var O = b(w), C = y ? k(O, 7, -1) : x(O, E, "$1");
1941
- return C === "" ? void 0 : C;
1942
- } }), e({ global: !0, constructor: !0, forced: !0 }, { Symbol: v });
1943
- }
1944
- }, 9504: function(i, s, t) {
1945
- var e = t(616), r = Function.prototype, n = r.call, o = e && r.bind.bind(n, n);
1946
- i.exports = e ? o : function(a) {
1947
- return function() {
1948
- return n.apply(a, arguments);
1949
- };
1950
- };
1951
- }, 9519: function(i, s, t) {
1952
- var e, r, n = t(4576), o = t(2839), a = n.process, c = n.Deno, u = a && a.versions || c && c.version, l = u && u.v8;
1953
- l && (r = (e = l.split("."))[0] > 0 && e[0] < 4 ? 1 : +(e[0] + e[1])), !r && o && (!(e = o.match(/Edge\/(\d+)/)) || e[1] >= 74) && (e = o.match(/Chrome\/(\d+)/)) && (r = +e[1]), i.exports = r;
1954
- }, 9539: function(i, s, t) {
1955
- var e = t(9565), r = t(8551), n = t(5966);
1956
- i.exports = function(o, a, c) {
1957
- var u, l;
1958
- r(o);
1959
- try {
1960
- if (!(u = n(o, "return"))) {
1961
- if (a === "throw")
1962
- throw c;
1963
- return c;
1964
- }
1965
- u = e(u, o);
1966
- } catch (d) {
1967
- l = !0, u = d;
1968
- }
1969
- if (a === "throw")
1970
- throw c;
1971
- if (l)
1972
- throw u;
1973
- return r(u), c;
1974
- };
1975
- }, 9565: function(i, s, t) {
1976
- var e = t(616), r = Function.prototype.call;
1977
- i.exports = e ? r.bind(r) : function() {
1978
- return r.apply(r, arguments);
1979
- };
1980
- }, 9572: function(i, s, t) {
1981
- var e = t(9297), r = t(6840), n = t(3640), o = t(8227)("toPrimitive"), a = Date.prototype;
1982
- e(a, o) || r(a, o, n);
1983
- }, 9617: function(i, s, t) {
1984
- var e = t(5397), r = t(5610), n = t(6198), o = function(a) {
1985
- return function(c, u, l) {
1986
- var d = e(c), g = n(d);
1987
- if (g === 0)
1988
- return !a && -1;
1989
- var f, p = r(l, g);
1990
- if (a && u != u) {
1991
- for (; g > p; )
1992
- if ((f = d[p++]) != f)
1993
- return !0;
1994
- } else
1995
- for (; g > p; p++)
1996
- if ((a || p in d) && d[p] === u)
1997
- return a || p || 0;
1998
- return !a && -1;
1999
- };
2000
- };
2001
- i.exports = { includes: o(!0), indexOf: o(!1) };
2002
- }, 9773: function(i, s, t) {
2003
- var e = t(6518), r = t(4495), n = t(9039), o = t(3717), a = t(8981);
2004
- e({ target: "Object", stat: !0, forced: !r || n(function() {
2005
- o.f(1);
2006
- }) }, { getOwnPropertySymbols: function(c) {
2007
- var u = o.f;
2008
- return u ? u(a(c)) : [];
2009
- } });
2010
- } }, vt = {};
2011
- function L(i) {
2012
- var s = vt[i];
2013
- if (s !== void 0)
2014
- return s.exports;
2015
- var t = vt[i] = { exports: {} };
2016
- return jt[i].call(t.exports, t, t.exports, L), t.exports;
2017
- }
2018
- L.d = function(i, s) {
2019
- for (var t in s)
2020
- L.o(s, t) && !L.o(i, t) && Object.defineProperty(i, t, { enumerable: !0, get: s[t] });
2021
- }, L.g = function() {
2022
- if (typeof globalThis == "object")
2023
- return globalThis;
2024
- try {
2025
- return this || new Function("return this")();
2026
- } catch {
2027
- if (typeof window == "object")
2028
- return window;
2029
- }
2030
- }(), L.o = function(i, s) {
2031
- return Object.prototype.hasOwnProperty.call(i, s);
2032
- }, L.r = function(i) {
2033
- typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(i, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(i, "__esModule", { value: !0 });
2034
- };
2035
- var kt = {};
2036
- L.r(kt), L.d(kt, { SimpleKeyboard: function() {
2037
- return qt;
2038
- }, default: function() {
2039
- return ae;
2040
- } }), L(5276), L(8598), L(4782), L(4554), L(2010), L(7427), L(6099), L(7495), L(8781), L(5440), L(744), L(2762), typeof Element > "u" || "remove" in Element.prototype || (Element.prototype.remove = function() {
2041
- this.parentNode && this.parentNode.removeChild(this);
2042
- }), typeof self < "u" && "document" in self && ((!("classList" in document.createElement("_")) || document.createElementNS && !("classList" in document.createElementNS("http://www.w3.org/2000/svg", "g"))) && function(i) {
2043
- if ("Element" in i) {
2044
- var s = "classList", t = "prototype", e = i.Element[t], r = Object, n = String[t].trim || function() {
2045
- return this.replace(/^\s+|\s+$/g, "");
2046
- }, o = Array[t].indexOf || function(f) {
2047
- for (var p = 0, h = this.length; p < h; p++)
2048
- if (p in this && this[p] === f)
2049
- return p;
2050
- return -1;
2051
- }, a = function(f, p) {
2052
- this.name = f, this.code = DOMException[f], this.message = p;
2053
- }, c = function(f, p) {
2054
- if (p === "")
2055
- throw new a("SYNTAX_ERR", "The token must not be empty.");
2056
- if (/\s/.test(p))
2057
- throw new a("INVALID_CHARACTER_ERR", "The token must not contain space characters.");
2058
- return o.call(f, p);
2059
- }, u = function(f) {
2060
- for (var p = n.call(f.getAttribute("class") || ""), h = p ? p.split(/\s+/) : [], v = 0, y = h.length; v < y; v++)
2061
- this.push(h[v]);
2062
- this._updateClassName = function() {
2063
- f.setAttribute("class", this.toString());
2064
- };
2065
- }, l = u[t] = [], d = function() {
2066
- return new u(this);
2067
- };
2068
- if (a[t] = Error[t], l.item = function(f) {
2069
- return this[f] || null;
2070
- }, l.contains = function(f) {
2071
- return ~c(this, f + "");
2072
- }, l.add = function() {
2073
- var f, p = arguments, h = 0, v = p.length, y = !1;
2074
- do
2075
- ~c(this, f = p[h] + "") || (this.push(f), y = !0);
2076
- while (++h < v);
2077
- y && this._updateClassName();
2078
- }, l.remove = function() {
2079
- var f, p, h = arguments, v = 0, y = h.length, m = !1;
2080
- do
2081
- for (p = c(this, f = h[v] + ""); ~p; )
2082
- this.splice(p, 1), m = !0, p = c(this, f);
2083
- while (++v < y);
2084
- m && this._updateClassName();
2085
- }, l.toggle = function(f, p) {
2086
- var h = this.contains(f), v = h ? p !== !0 && "remove" : p !== !1 && "add";
2087
- return v && this[v](f), p === !0 || p === !1 ? p : !h;
2088
- }, l.replace = function(f, p) {
2089
- var h = c(f + "");
2090
- ~h && (this.splice(h, 1, p), this._updateClassName());
2091
- }, l.toString = function() {
2092
- return this.join(" ");
2093
- }, r.defineProperty) {
2094
- var g = { get: d, enumerable: !0, configurable: !0 };
2095
- try {
2096
- r.defineProperty(e, s, g);
2097
- } catch (f) {
2098
- f.number !== void 0 && f.number !== -2146823252 || (g.enumerable = !1, r.defineProperty(e, s, g));
2099
- }
2100
- } else
2101
- r[t].__defineGetter__ && e.__defineGetter__(s, d);
2102
- }
2103
- }(self), function() {
2104
- var i = document.createElement("_");
2105
- if (i.classList.add("c1", "c2"), !i.classList.contains("c2")) {
2106
- var s = function(e) {
2107
- var r = DOMTokenList.prototype[e];
2108
- DOMTokenList.prototype[e] = function(n) {
2109
- var o, a = arguments.length;
2110
- for (o = 0; o < a; o++)
2111
- n = arguments[o], r.call(this, n);
2112
- };
2113
- };
2114
- s("add"), s("remove");
2115
- }
2116
- if (i.classList.toggle("c3", !1), i.classList.contains("c3")) {
2117
- var t = DOMTokenList.prototype.toggle;
2118
- DOMTokenList.prototype.toggle = function(e, r) {
2119
- return 1 in arguments && !this.contains(e) == !r ? r : t.call(this, e);
2120
- };
2121
- }
2122
- "replace" in document.createElement("_").classList || (DOMTokenList.prototype.replace = function(e, r) {
2123
- var n = this.toString().split(" "), o = n.indexOf(e + "");
2124
- ~o && (n = n.slice(o), this.remove.apply(this, n), this.add(r), this.add.apply(this, n.slice(1)));
2125
- }), i = null;
2126
- }()), L(2675), L(9463), L(2259), L(5700), L(8706), L(2008), L(3418), L(4423), L(3792), L(2062), L(6910), L(739), L(9572), L(2892), L(9085), L(3851), L(1278), L(9432), L(4864), L(1699), L(7764), L(8344), L(3500), L(2953), L(2712), L(2637), L(1480), L(825), L(1761);
2127
- function Zt(i) {
2128
- return function(s) {
2129
- if (Array.isArray(s))
2130
- return Lt(s);
2131
- }(i) || function(s) {
2132
- if (typeof Symbol < "u" && s[Symbol.iterator] != null || s["@@iterator"] != null)
2133
- return Array.from(s);
2134
- }(i) || Ft(i) || function() {
2135
- throw new TypeError(`Invalid attempt to spread non-iterable instance.
2136
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2137
- }();
2138
- }
2139
- function Ft(i, s) {
2140
- if (i) {
2141
- if (typeof i == "string")
2142
- return Lt(i, s);
2143
- var t = {}.toString.call(i).slice(8, -1);
2144
- return t === "Object" && i.constructor && (t = i.constructor.name), t === "Map" || t === "Set" ? Array.from(i) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Lt(i, s) : void 0;
2145
- }
2146
- }
2147
- function Lt(i, s) {
2148
- (s == null || s > i.length) && (s = i.length);
2149
- for (var t = 0, e = Array(s); t < s; t++)
2150
- e[t] = i[t];
2151
- return e;
2152
- }
2153
- function Et(i) {
2154
- return Et = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(s) {
2155
- return typeof s;
2156
- } : function(s) {
2157
- return s && typeof Symbol == "function" && s.constructor === Symbol && s !== Symbol.prototype ? "symbol" : typeof s;
2158
- }, Et(i);
2159
- }
2160
- function _t(i, s) {
2161
- for (var t = 0; t < s.length; t++) {
2162
- var e = s[t];
2163
- e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(i, Ht(e.key), e);
2164
- }
2165
- }
2166
- function yt(i, s, t) {
2167
- return (s = Ht(s)) in i ? Object.defineProperty(i, s, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : i[s] = t, i;
2168
- }
2169
- function Ht(i) {
2170
- var s = function(t, e) {
2171
- if (Et(t) != "object" || !t)
2172
- return t;
2173
- var r = t[Symbol.toPrimitive];
2174
- if (r !== void 0) {
2175
- var n = r.call(t, e || "default");
2176
- if (Et(n) != "object")
2177
- return n;
2178
- throw new TypeError("@@toPrimitive must return a primitive value.");
2179
- }
2180
- return (e === "string" ? String : Number)(t);
2181
- }(i, "string");
2182
- return Et(s) == "symbol" ? s : s + "";
2183
- }
2184
- var Ut = function() {
2185
- return i = function e(r) {
2186
- var n = r.getOptions, o = r.getCaretPosition, a = r.getCaretPositionEnd, c = r.dispatch;
2187
- (function(u, l) {
2188
- if (!(u instanceof l))
2189
- throw new TypeError("Cannot call a class as a function");
2190
- })(this, e), yt(this, "getOptions", void 0), yt(this, "getCaretPosition", void 0), yt(this, "getCaretPositionEnd", void 0), yt(this, "dispatch", void 0), yt(this, "maxLengthReached", void 0), yt(this, "isStandardButton", function(u) {
2191
- return u && !(u[0] === "{" && u[u.length - 1] === "}");
2192
- }), this.getOptions = n, this.getCaretPosition = o, this.getCaretPositionEnd = a, this.dispatch = c, e.bindMethods(e, this);
2193
- }, s = [{ key: "getButtonType", value: function(e) {
2194
- return e.includes("{") && e.includes("}") && e !== "{//}" ? "functionBtn" : "standardBtn";
2195
- } }, { key: "getButtonClass", value: function(e) {
2196
- var r = this.getButtonType(e), n = e.replace("{", "").replace("}", ""), o = "";
2197
- return r !== "standardBtn" && (o = " hg-button-".concat(n)), "hg-".concat(r).concat(o);
2198
- } }, { key: "getDefaultDiplay", value: function() {
2199
- return { "{bksp}": "backspace", "{backspace}": "backspace", "{enter}": "< enter", "{shift}": "shift", "{shiftleft}": "shift", "{shiftright}": "shift", "{alt}": "alt", "{s}": "shift", "{tab}": "tab", "{lock}": "caps", "{capslock}": "caps", "{accept}": "Submit", "{space}": " ", "{//}": " ", "{esc}": "esc", "{escape}": "esc", "{f1}": "f1", "{f2}": "f2", "{f3}": "f3", "{f4}": "f4", "{f5}": "f5", "{f6}": "f6", "{f7}": "f7", "{f8}": "f8", "{f9}": "f9", "{f10}": "f10", "{f11}": "f11", "{f12}": "f12", "{numpaddivide}": "/", "{numlock}": "lock", "{arrowup}": "↑", "{arrowleft}": "←", "{arrowdown}": "↓", "{arrowright}": "→", "{prtscr}": "print", "{scrolllock}": "scroll", "{pause}": "pause", "{insert}": "ins", "{home}": "home", "{pageup}": "up", "{delete}": "del", "{forwarddelete}": "del", "{end}": "end", "{pagedown}": "down", "{numpadmultiply}": "*", "{numpadsubtract}": "-", "{numpadadd}": "+", "{numpadenter}": "enter", "{period}": ".", "{numpaddecimal}": ".", "{numpad0}": "0", "{numpad1}": "1", "{numpad2}": "2", "{numpad3}": "3", "{numpad4}": "4", "{numpad5}": "5", "{numpad6}": "6", "{numpad7}": "7", "{numpad8}": "8", "{numpad9}": "9" };
2200
- } }, { key: "getButtonDisplayName", value: function(e, r) {
2201
- return (r = arguments.length > 2 && arguments[2] !== void 0 && arguments[2] ? Object.assign({}, this.getDefaultDiplay(), r) : r || this.getDefaultDiplay())[e] || e;
2202
- } }, { key: "getUpdatedInput", value: function(e, r, n) {
2203
- var o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : n, a = arguments.length > 4 && arguments[4] !== void 0 && arguments[4], c = this.getOptions(), u = [n, o, a], l = r;
2204
- return (e === "{bksp}" || e === "{backspace}") && l.length > 0 ? l = this.removeAt.apply(this, [l].concat(u)) : (e === "{delete}" || e === "{forwarddelete}") && l.length > 0 ? l = this.removeForwardsAt.apply(this, [l].concat(u)) : e === "{space}" ? l = this.addStringAt.apply(this, [l, " "].concat(u)) : e !== "{tab}" || typeof c.tabCharOnTab == "boolean" && c.tabCharOnTab === !1 ? e !== "{enter}" && e !== "{numpadenter}" || !c.newLineOnEnter ? e.includes("numpad") && Number.isInteger(Number(e[e.length - 2])) ? l = this.addStringAt.apply(this, [l, e[e.length - 2]].concat(u)) : e === "{numpaddivide}" ? l = this.addStringAt.apply(this, [l, "/"].concat(u)) : e === "{numpadmultiply}" ? l = this.addStringAt.apply(this, [l, "*"].concat(u)) : e === "{numpadsubtract}" ? l = this.addStringAt.apply(this, [l, "-"].concat(u)) : e === "{numpadadd}" ? l = this.addStringAt.apply(this, [l, "+"].concat(u)) : e === "{numpaddecimal}" ? l = this.addStringAt.apply(this, [l, "."].concat(u)) : e === "{" || e === "}" ? l = this.addStringAt.apply(this, [l, e].concat(u)) : e.includes("{") || e.includes("}") || (l = this.addStringAt.apply(this, [l, e].concat(u))) : l = this.addStringAt.apply(this, [l, `
2205
- `].concat(u)) : l = this.addStringAt.apply(this, [l, " "].concat(u)), c.debug && console.log("Input will be: " + l), l;
2206
- } }, { key: "updateCaretPos", value: function(e) {
2207
- var r = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], n = this.updateCaretPosAction(e, r);
2208
- this.dispatch(function(o) {
2209
- o.setCaretPosition(n);
2210
- });
2211
- } }, { key: "updateCaretPosAction", value: function(e) {
2212
- var r = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], n = this.getOptions(), o = this.getCaretPosition();
2213
- return o != null && (r ? o > 0 && (o -= e) : o += e), n.debug && console.log("Caret at:", o), o;
2214
- } }, { key: "addStringAt", value: function(e, r) {
2215
- var n, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : e.length, c = arguments.length > 4 && arguments[4] !== void 0 && arguments[4];
2216
- return o || o === 0 ? (n = [e.slice(0, o), r, e.slice(a)].join(""), this.isMaxLengthReached() || c && this.updateCaretPos(r.length)) : n = e + r, n;
2217
- } }, { key: "removeAt", value: function(e) {
2218
- var r, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e.length, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, a = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
2219
- if (n === 0 && o === 0)
2220
- return e;
2221
- if (n === o) {
2222
- var c = /([\uD800-\uDBFF][\uDC00-\uDFFF])/g;
2223
- n && n >= 0 ? e.substring(n - 2, n).match(c) ? (r = e.substr(0, n - 2) + e.substr(n), a && this.updateCaretPos(2, !0)) : (r = e.substr(0, n - 1) + e.substr(n), a && this.updateCaretPos(1, !0)) : e.slice(-2).match(c) ? (r = e.slice(0, -2), a && this.updateCaretPos(2, !0)) : (r = e.slice(0, -1), a && this.updateCaretPos(1, !0));
2224
- } else
2225
- r = e.slice(0, n) + e.slice(o), a && this.dispatch(function(u) {
2226
- u.setCaretPosition(n);
2227
- });
2228
- return r;
2229
- } }, { key: "removeForwardsAt", value: function(e) {
2230
- var r, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e.length, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, a = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
2231
- return e != null && e.length && n !== null ? (n === o ? r = e.substring(n, n + 2).match(/([\uD800-\uDBFF][\uDC00-\uDFFF])/g) ? e.substr(0, n) + e.substr(n + 2) : e.substr(0, n) + e.substr(n + 1) : (r = e.slice(0, n) + e.slice(o), a && this.dispatch(function(c) {
2232
- c.setCaretPosition(n);
2233
- })), r) : e;
2234
- } }, { key: "handleMaxLength", value: function(e, r) {
2235
- var n = this.getOptions(), o = n.maxLength, a = e[n.inputName || "default"], c = r.length - 1 >= o;
2236
- if (r.length <= a.length)
2237
- return !1;
2238
- if (Number.isInteger(o))
2239
- return n.debug && console.log("maxLength (num) reached:", c), c ? (this.maxLengthReached = !0, !0) : (this.maxLengthReached = !1, !1);
2240
- if (Et(o) === "object") {
2241
- var u = r.length - 1 >= o[n.inputName || "default"];
2242
- return n.debug && console.log("maxLength (obj) reached:", u), u ? (this.maxLengthReached = !0, !0) : (this.maxLengthReached = !1, !1);
2243
- }
2244
- } }, { key: "isMaxLengthReached", value: function() {
2245
- return !!this.maxLengthReached;
2246
- } }, { key: "isTouchDevice", value: function() {
2247
- return "ontouchstart" in window || navigator.maxTouchPoints;
2248
- } }, { key: "pointerEventsSupported", value: function() {
2249
- return !!window.PointerEvent;
2250
- } }, { key: "camelCase", value: function(e) {
2251
- return e ? e.toLowerCase().trim().split(/[.\-_\s]/g).reduce(function(r, n) {
2252
- return n.length ? r + n[0].toUpperCase() + n.slice(1) : r;
2253
- }) : "";
2254
- } }, { key: "chunkArray", value: function(e, r) {
2255
- return Zt(Array(Math.ceil(e.length / r))).map(function(n, o) {
2256
- return e.slice(r * o, r + r * o);
2257
- });
2258
- } }, { key: "escapeRegex", value: function(e) {
2259
- return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
2260
- } }, { key: "getRtlOffset", value: function(e, r) {
2261
- var n = e, o = r.indexOf("‫");
2262
- return o < e && o != -1 && n--, r.indexOf("‬") < e && o != -1 && n--, n < 0 ? 0 : n;
2263
- } }, { key: "isConstructor", value: function(e) {
2264
- try {
2265
- Reflect.construct(String, [], e);
2266
- } catch {
2267
- return !1;
2268
- }
2269
- return !0;
2270
- } }], t = [{ key: "bindMethods", value: function(e, r) {
2271
- var n, o = function(c, u) {
2272
- var l = typeof Symbol < "u" && c[Symbol.iterator] || c["@@iterator"];
2273
- if (!l) {
2274
- if (Array.isArray(c) || (l = Ft(c)) || u && c && typeof c.length == "number") {
2275
- l && (c = l);
2276
- var d = 0, g = function() {
2277
- };
2278
- return { s: g, n: function() {
2279
- return d >= c.length ? { done: !0 } : { done: !1, value: c[d++] };
2280
- }, e: function(v) {
2281
- throw v;
2282
- }, f: g };
2283
- }
2284
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2285
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2286
- }
2287
- var f, p = !0, h = !1;
2288
- return { s: function() {
2289
- l = l.call(c);
2290
- }, n: function() {
2291
- var v = l.next();
2292
- return p = v.done, v;
2293
- }, e: function(v) {
2294
- h = !0, f = v;
2295
- }, f: function() {
2296
- try {
2297
- p || l.return == null || l.return();
2298
- } finally {
2299
- if (h)
2300
- throw f;
2301
- }
2302
- } };
2303
- }(Object.getOwnPropertyNames(e.prototype));
2304
- try {
2305
- for (o.s(); !(n = o.n()).done; ) {
2306
- var a = n.value;
2307
- a === "constructor" || a === "bindMethods" || (r[a] = r[a].bind(r));
2308
- }
2309
- } catch (c) {
2310
- o.e(c);
2311
- } finally {
2312
- o.f();
2313
- }
2314
- } }], s && _t(i.prototype, s), t && _t(i, t), Object.defineProperty(i, "prototype", { writable: !1 }), i;
2315
- var i, s, t;
2316
- }();
2317
- yt(Ut, "noop", function() {
2318
- });
2319
- var Dt = Ut;
2320
- function St(i) {
2321
- return St = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(s) {
2322
- return typeof s;
2323
- } : function(s) {
2324
- return s && typeof Symbol == "function" && s.constructor === Symbol && s !== Symbol.prototype ? "symbol" : typeof s;
2325
- }, St(i);
2326
- }
2327
- function te(i, s) {
2328
- for (var t = 0; t < s.length; t++) {
2329
- var e = s[t];
2330
- e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(i, zt(e.key), e);
2331
- }
2332
- }
2333
- function Rt(i, s, t) {
2334
- return (s = zt(s)) in i ? Object.defineProperty(i, s, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : i[s] = t, i;
2335
- }
2336
- function zt(i) {
2337
- var s = function(t, e) {
2338
- if (St(t) != "object" || !t)
2339
- return t;
2340
- var r = t[Symbol.toPrimitive];
2341
- if (r !== void 0) {
2342
- var n = r.call(t, e || "default");
2343
- if (St(n) != "object")
2344
- return n;
2345
- throw new TypeError("@@toPrimitive must return a primitive value.");
2346
- }
2347
- return (e === "string" ? String : Number)(t);
2348
- }(i, "string");
2349
- return St(s) == "symbol" ? s : s + "";
2350
- }
2351
- var ee = function() {
2352
- return i = function t(e) {
2353
- var r = this, n = e.dispatch, o = e.getOptions;
2354
- (function(a, c) {
2355
- if (!(a instanceof c))
2356
- throw new TypeError("Cannot call a class as a function");
2357
- })(this, t), Rt(this, "getOptions", void 0), Rt(this, "dispatch", void 0), Rt(this, "isModifierKey", function(a) {
2358
- return a.altKey || a.ctrlKey || a.shiftKey || ["Tab", "CapsLock", "Esc", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"].includes(a.code || a.key || r.keyCodeToKey(a == null ? void 0 : a.keyCode));
2359
- }), this.dispatch = n, this.getOptions = o, Dt.bindMethods(t, this);
2360
- }, s = [{ key: "handleHighlightKeyDown", value: function(t) {
2361
- var e = this.getOptions();
2362
- e.physicalKeyboardHighlightPreventDefault && this.isModifierKey(t) && (t.preventDefault(), t.stopImmediatePropagation());
2363
- var r = this.getSimpleKeyboardLayoutKey(t);
2364
- this.dispatch(function(n) {
2365
- var o, a, c = n.getButtonElement(r), u = n.getButtonElement("{".concat(r, "}"));
2366
- if (c)
2367
- o = c, a = r;
2368
- else {
2369
- if (!u)
2370
- return;
2371
- o = u, a = "{".concat(r, "}");
2372
- }
2373
- var l, d, g, f, p = function(v) {
2374
- v.style.background = e.physicalKeyboardHighlightBgColor || "#dadce4", v.style.color = e.physicalKeyboardHighlightTextColor || "black";
2375
- };
2376
- if (o)
2377
- if (Array.isArray(o)) {
2378
- if (o.forEach(function(v) {
2379
- return p(v);
2380
- }), e.physicalKeyboardHighlightPress)
2381
- if (e.physicalKeyboardHighlightPressUsePointerEvents)
2382
- (l = o[0]) === null || l === void 0 || (d = l.onpointerdown) === null || d === void 0 || d.call(l, t);
2383
- else if (e.physicalKeyboardHighlightPressUseClick) {
2384
- var h;
2385
- (h = o[0]) === null || h === void 0 || h.click();
2386
- } else
2387
- n.handleButtonClicked(a, t);
2388
- } else
2389
- p(o), e.physicalKeyboardHighlightPress && (e.physicalKeyboardHighlightPressUsePointerEvents ? (g = o) === null || g === void 0 || (f = g.onpointerdown) === null || f === void 0 || f.call(g, t) : e.physicalKeyboardHighlightPressUseClick ? o.click() : n.handleButtonClicked(a, t));
2390
- });
2391
- } }, { key: "handleHighlightKeyUp", value: function(t) {
2392
- var e = this.getOptions();
2393
- e.physicalKeyboardHighlightPreventDefault && this.isModifierKey(t) && (t.preventDefault(), t.stopImmediatePropagation());
2394
- var r = this.getSimpleKeyboardLayoutKey(t);
2395
- this.dispatch(function(n) {
2396
- var o, a, c, u = n.getButtonElement(r) || n.getButtonElement("{".concat(r, "}")), l = function(d) {
2397
- d.removeAttribute && d.removeAttribute("style");
2398
- };
2399
- u && (Array.isArray(u) ? (u.forEach(function(d) {
2400
- return l(d);
2401
- }), e.physicalKeyboardHighlightPressUsePointerEvents && ((o = u[0]) === null || o === void 0 || (a = o.onpointerup) === null || a === void 0 || a.call(o, t))) : (l(u), e.physicalKeyboardHighlightPressUsePointerEvents && (u == null || (c = u.onpointerup) === null || c === void 0 || c.call(u, t))));
2402
- });
2403
- } }, { key: "getSimpleKeyboardLayoutKey", value: function(t) {
2404
- var e, r = "", n = t.code || t.key || this.keyCodeToKey(t == null ? void 0 : t.keyCode);
2405
- return (r = n != null && n.includes("Numpad") || n != null && n.includes("Shift") || n != null && n.includes("Space") || n != null && n.includes("Backspace") || n != null && n.includes("Control") || n != null && n.includes("Alt") || n != null && n.includes("Meta") ? t.code || "" : t.key || this.keyCodeToKey(t == null ? void 0 : t.keyCode) || "").length > 1 ? (e = r) === null || e === void 0 ? void 0 : e.toLowerCase() : r;
2406
- } }, { key: "keyCodeToKey", value: function(t) {
2407
- return { 8: "Backspace", 9: "Tab", 13: "Enter", 16: "Shift", 17: "Ctrl", 18: "Alt", 19: "Pause", 20: "CapsLock", 27: "Esc", 32: "Space", 33: "PageUp", 34: "PageDown", 35: "End", 36: "Home", 37: "ArrowLeft", 38: "ArrowUp", 39: "ArrowRight", 40: "ArrowDown", 45: "Insert", 46: "Delete", 48: "0", 49: "1", 50: "2", 51: "3", 52: "4", 53: "5", 54: "6", 55: "7", 56: "8", 57: "9", 65: "A", 66: "B", 67: "C", 68: "D", 69: "E", 70: "F", 71: "G", 72: "H", 73: "I", 74: "J", 75: "K", 76: "L", 77: "M", 78: "N", 79: "O", 80: "P", 81: "Q", 82: "R", 83: "S", 84: "T", 85: "U", 86: "V", 87: "W", 88: "X", 89: "Y", 90: "Z", 91: "Meta", 96: "Numpad0", 97: "Numpad1", 98: "Numpad2", 99: "Numpad3", 100: "Numpad4", 101: "Numpad5", 102: "Numpad6", 103: "Numpad7", 104: "Numpad8", 105: "Numpad9", 106: "NumpadMultiply", 107: "NumpadAdd", 109: "NumpadSubtract", 110: "NumpadDecimal", 111: "NumpadDivide", 112: "F1", 113: "F2", 114: "F3", 115: "F4", 116: "F5", 117: "F6", 118: "F7", 119: "F8", 120: "F9", 121: "F10", 122: "F11", 123: "F12", 144: "NumLock", 145: "ScrollLock", 186: ";", 187: "=", 188: ",", 189: "-", 190: ".", 191: "/", 192: "`", 219: "[", 220: "\\", 221: "]", 222: "'" }[t] || "";
2408
- } }], s && te(i.prototype, s), Object.defineProperty(i, "prototype", { writable: !1 }), i;
2409
- var i, s;
2410
- }();
2411
- function It(i) {
2412
- return It = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(s) {
2413
- return typeof s;
2414
- } : function(s) {
2415
- return s && typeof Symbol == "function" && s.constructor === Symbol && s !== Symbol.prototype ? "symbol" : typeof s;
2416
- }, It(i);
2417
- }
2418
- function ne(i, s) {
2419
- for (var t = 0; t < s.length; t++) {
2420
- var e = s[t];
2421
- e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(i, $t(e.key), e);
2422
- }
2423
- }
2424
- function Ct(i, s, t) {
2425
- return (s = $t(s)) in i ? Object.defineProperty(i, s, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : i[s] = t, i;
2426
- }
2427
- function $t(i) {
2428
- var s = function(t, e) {
2429
- if (It(t) != "object" || !t)
2430
- return t;
2431
- var r = t[Symbol.toPrimitive];
2432
- if (r !== void 0) {
2433
- var n = r.call(t, e || "default");
2434
- if (It(n) != "object")
2435
- return n;
2436
- throw new TypeError("@@toPrimitive must return a primitive value.");
2437
- }
2438
- return (e === "string" ? String : Number)(t);
2439
- }(i, "string");
2440
- return It(s) == "symbol" ? s : s + "";
2441
- }
2442
- var re = function() {
2443
- return i = function t(e) {
2444
- var r = e.utilities, n = e.options;
2445
- (function(o, a) {
2446
- if (!(o instanceof a))
2447
- throw new TypeError("Cannot call a class as a function");
2448
- })(this, t), Ct(this, "utilities", void 0), Ct(this, "options", void 0), Ct(this, "candidateBoxElement", void 0), Ct(this, "pageIndex", 0), Ct(this, "pageSize", void 0), this.utilities = r, this.options = n, Dt.bindMethods(t, this), this.pageSize = this.utilities.getOptions().layoutCandidatesPageSize || 5;
2449
- }, s = [{ key: "destroy", value: function() {
2450
- this.candidateBoxElement && (this.candidateBoxElement.remove(), this.pageIndex = 0);
2451
- } }, { key: "show", value: function(t) {
2452
- var e = this, r = t.candidateValue, n = t.targetElement, o = t.onSelect;
2453
- if (r && r.length) {
2454
- var a = this.utilities.chunkArray(r.split(" "), this.pageSize);
2455
- this.renderPage({ candidateListPages: a, targetElement: n, pageIndex: this.pageIndex, nbPages: a.length, onItemSelected: function(c, u) {
2456
- o(c, u), e.destroy();
2457
- } });
2458
- }
2459
- } }, { key: "renderPage", value: function(t) {
2460
- var e, r = this, n = t.candidateListPages, o = t.targetElement, a = t.pageIndex, c = t.nbPages, u = t.onItemSelected;
2461
- (e = this.candidateBoxElement) === null || e === void 0 || e.remove(), this.candidateBoxElement = document.createElement("div"), this.candidateBoxElement.className = "hg-candidate-box";
2462
- var l = document.createElement("ul");
2463
- l.className = "hg-candidate-box-list", n[a].forEach(function(y) {
2464
- var m, b = document.createElement("li"), E = function() {
2465
- var x = new (r.options.useTouchEvents ? TouchEvent : MouseEvent)("click");
2466
- return Object.defineProperty(x, "target", { value: b }), x;
2467
- };
2468
- b.className = "hg-candidate-box-list-item", b.innerHTML = ((m = r.options.display) === null || m === void 0 ? void 0 : m[y]) || y, r.options.useTouchEvents ? b.ontouchstart = function(x) {
2469
- return u(y, x || E());
2470
- } : b.onclick = function() {
2471
- var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : E();
2472
- return u(y, x);
2473
- }, l.appendChild(b);
2474
- });
2475
- var d = a > 0, g = document.createElement("div");
2476
- g.classList.add("hg-candidate-box-prev"), d && g.classList.add("hg-candidate-box-btn-active");
2477
- var f = function() {
2478
- d && r.renderPage({ candidateListPages: n, targetElement: o, pageIndex: a - 1, nbPages: c, onItemSelected: u });
2479
- };
2480
- this.options.useTouchEvents ? g.ontouchstart = f : g.onclick = f, this.candidateBoxElement.appendChild(g), this.candidateBoxElement.appendChild(l);
2481
- var p = a < c - 1, h = document.createElement("div");
2482
- h.classList.add("hg-candidate-box-next"), p && h.classList.add("hg-candidate-box-btn-active");
2483
- var v = function() {
2484
- p && r.renderPage({ candidateListPages: n, targetElement: o, pageIndex: a + 1, nbPages: c, onItemSelected: u });
2485
- };
2486
- this.options.useTouchEvents ? h.ontouchstart = v : h.onclick = v, this.candidateBoxElement.appendChild(h), o.prepend(this.candidateBoxElement);
2487
- } }], s && ne(i.prototype, s), Object.defineProperty(i, "prototype", { writable: !1 }), i;
2488
- var i, s;
2489
- }(), Gt = re;
2490
- function Tt(i) {
2491
- return function(s) {
2492
- if (Array.isArray(s))
2493
- return Bt(s);
2494
- }(i) || function(s) {
2495
- if (typeof Symbol < "u" && s[Symbol.iterator] != null || s["@@iterator"] != null)
2496
- return Array.from(s);
2497
- }(i) || function(s, t) {
2498
- if (s) {
2499
- if (typeof s == "string")
2500
- return Bt(s, t);
2501
- var e = {}.toString.call(s).slice(8, -1);
2502
- return e === "Object" && s.constructor && (e = s.constructor.name), e === "Map" || e === "Set" ? Array.from(s) : e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e) ? Bt(s, t) : void 0;
2503
- }
2504
- }(i) || function() {
2505
- throw new TypeError(`Invalid attempt to spread non-iterable instance.
2506
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2507
- }();
2508
- }
2509
- function Bt(i, s) {
2510
- (s == null || s > i.length) && (s = i.length);
2511
- for (var t = 0, e = Array(s); t < s; t++)
2512
- e[t] = i[t];
2513
- return e;
2514
- }
2515
- function Ot(i) {
2516
- return Ot = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(s) {
2517
- return typeof s;
2518
- } : function(s) {
2519
- return s && typeof Symbol == "function" && s.constructor === Symbol && s !== Symbol.prototype ? "symbol" : typeof s;
2520
- }, Ot(i);
2521
- }
2522
- function Vt(i, s) {
2523
- var t = Object.keys(i);
2524
- if (Object.getOwnPropertySymbols) {
2525
- var e = Object.getOwnPropertySymbols(i);
2526
- s && (e = e.filter(function(r) {
2527
- return Object.getOwnPropertyDescriptor(i, r).enumerable;
2528
- })), t.push.apply(t, e);
2529
- }
2530
- return t;
2531
- }
2532
- function oe(i, s) {
2533
- for (var t = 0; t < s.length; t++) {
2534
- var e = s[t];
2535
- e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(i, Yt(e.key), e);
2536
- }
2537
- }
2538
- function Y(i, s, t) {
2539
- return (s = Yt(s)) in i ? Object.defineProperty(i, s, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : i[s] = t, i;
2540
- }
2541
- function Yt(i) {
2542
- var s = function(t, e) {
2543
- if (Ot(t) != "object" || !t)
2544
- return t;
2545
- var r = t[Symbol.toPrimitive];
2546
- if (r !== void 0) {
2547
- var n = r.call(t, e || "default");
2548
- if (Ot(n) != "object")
2549
- return n;
2550
- throw new TypeError("@@toPrimitive must return a primitive value.");
2551
- }
2552
- return (e === "string" ? String : Number)(t);
2553
- }(i, "string");
2554
- return Ot(s) == "symbol" ? s : s + "";
2555
- }
2556
- var ie = function() {
2557
- return i = function t(e, r) {
2558
- var n = this;
2559
- if (function(f, p) {
2560
- if (!(f instanceof p))
2561
- throw new TypeError("Cannot call a class as a function");
2562
- }(this, t), Y(this, "input", void 0), Y(this, "options", void 0), Y(this, "utilities", void 0), Y(this, "caretPosition", void 0), Y(this, "caretPositionEnd", void 0), Y(this, "keyboardDOM", void 0), Y(this, "keyboardPluginClasses", void 0), Y(this, "keyboardDOMClass", void 0), Y(this, "buttonElements", void 0), Y(this, "currentInstanceName", void 0), Y(this, "allKeyboardInstances", void 0), Y(this, "keyboardInstanceNames", void 0), Y(this, "isFirstKeyboardInstance", void 0), Y(this, "physicalKeyboard", void 0), Y(this, "modules", void 0), Y(this, "activeButtonClass", void 0), Y(this, "holdInteractionTimeout", void 0), Y(this, "holdTimeout", void 0), Y(this, "isMouseHold", void 0), Y(this, "initialized", void 0), Y(this, "candidateBox", void 0), Y(this, "keyboardRowsDOM", void 0), Y(this, "defaultName", "default"), Y(this, "activeInputElement", null), Y(this, "handleParams", function(f, p) {
2563
- var h, v, y;
2564
- if (typeof f == "string")
2565
- h = f.split(".").join(""), v = document.querySelector(".".concat(h)), y = p;
2566
- else if (f instanceof HTMLDivElement) {
2567
- if (!f.className)
2568
- throw console.warn("Any DOM element passed as parameter must have a class."), new Error("KEYBOARD_DOM_CLASS_ERROR");
2569
- h = f.className.split(" ")[0], v = f, y = p;
2570
- } else
2571
- h = "simple-keyboard", v = document.querySelector(".".concat(h)), y = f;
2572
- return { keyboardDOMClass: h, keyboardDOM: v, options: y };
2573
- }), Y(this, "getOptions", function() {
2574
- return n.options;
2575
- }), Y(this, "getCaretPosition", function() {
2576
- return n.caretPosition;
2577
- }), Y(this, "getCaretPositionEnd", function() {
2578
- return n.caretPositionEnd;
2579
- }), Y(this, "registerModule", function(f, p) {
2580
- n.modules[f] || (n.modules[f] = {}), p(n.modules[f]);
2581
- }), Y(this, "getKeyboardClassString", function() {
2582
- for (var f = arguments.length, p = new Array(f), h = 0; h < f; h++)
2583
- p[h] = arguments[h];
2584
- return [n.keyboardDOMClass].concat(p).filter(function(v) {
2585
- return !!v;
2586
- }).join(" ");
2587
- }), typeof window < "u") {
2588
- var o = this.handleParams(e, r), a = o.keyboardDOMClass, c = o.keyboardDOM, u = o.options, l = u === void 0 ? {} : u;
2589
- this.utilities = new Dt({ getOptions: this.getOptions, getCaretPosition: this.getCaretPosition, getCaretPositionEnd: this.getCaretPositionEnd, dispatch: this.dispatch }), this.caretPosition = null, this.caretPositionEnd = null, this.keyboardDOM = c, this.options = function(f) {
2590
- for (var p = 1; p < arguments.length; p++) {
2591
- var h = arguments[p] != null ? arguments[p] : {};
2592
- p % 2 ? Vt(Object(h), !0).forEach(function(v) {
2593
- Y(f, v, h[v]);
2594
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(f, Object.getOwnPropertyDescriptors(h)) : Vt(Object(h)).forEach(function(v) {
2595
- Object.defineProperty(f, v, Object.getOwnPropertyDescriptor(h, v));
2596
- });
2597
- }
2598
- return f;
2599
- }({ layoutName: "default", theme: "hg-theme-default", inputName: "default", preventMouseDownDefault: !1, enableLayoutCandidates: !0, excludeFromLayout: {} }, l), this.keyboardPluginClasses = "", Dt.bindMethods(t, this);
2600
- var d = this.options.inputName, g = d === void 0 ? this.defaultName : d;
2601
- if (this.input = {}, this.input[g] = "", this.keyboardDOMClass = a, this.buttonElements = {}, window.SimpleKeyboardInstances || (window.SimpleKeyboardInstances = {}), this.currentInstanceName = this.utilities.camelCase(this.keyboardDOMClass), window.SimpleKeyboardInstances[this.currentInstanceName] = this, this.allKeyboardInstances = window.SimpleKeyboardInstances, this.keyboardInstanceNames = Object.keys(window.SimpleKeyboardInstances), this.isFirstKeyboardInstance = this.keyboardInstanceNames[0] === this.currentInstanceName, this.physicalKeyboard = new ee({ dispatch: this.dispatch, getOptions: this.getOptions }), this.candidateBox = this.options.enableLayoutCandidates ? new Gt({ utilities: this.utilities, options: this.options }) : null, !this.keyboardDOM)
2602
- throw console.warn('".'.concat(a, '" was not found in the DOM.')), new Error("KEYBOARD_DOM_ERROR");
2603
- this.render(), this.modules = {}, this.loadModules();
2604
- }
2605
- }, s = [{ key: "setCaretPosition", value: function(t) {
2606
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : t;
2607
- this.caretPosition = t, this.caretPositionEnd = e;
2608
- } }, { key: "getInputCandidates", value: function(t) {
2609
- var e = this, r = this.options, n = r.layoutCandidates, o = r.layoutCandidatesCaseSensitiveMatch;
2610
- if (!n || Ot(n) !== "object")
2611
- return {};
2612
- var a = Object.keys(n).filter(function(l) {
2613
- var d = t.substring(0, e.getCaretPositionEnd() || 0) || t, g = new RegExp("".concat(e.utilities.escapeRegex(l), "$"), o ? "g" : "gi");
2614
- return !!Tt(d.matchAll(g)).length;
2615
- });
2616
- if (a.length > 1) {
2617
- var c = a.sort(function(l, d) {
2618
- return d.length - l.length;
2619
- })[0];
2620
- return { candidateKey: c, candidateValue: n[c] };
2621
- }
2622
- if (a.length) {
2623
- var u = a[0];
2624
- return { candidateKey: u, candidateValue: n[u] };
2625
- }
2626
- return {};
2627
- } }, { key: "showCandidatesBox", value: function(t, e, r) {
2628
- var n = this;
2629
- this.candidateBox && this.candidateBox.show({ candidateValue: e, targetElement: r, onSelect: function(o, a) {
2630
- var c = n.options, u = c.layoutCandidatesCaseSensitiveMatch, l = c.disableCandidateNormalization, d = c.enableLayoutCandidatesKeyPress, g = o;
2631
- l || (g = o.normalize("NFD")), typeof n.options.beforeInputUpdate == "function" && n.options.beforeInputUpdate(n);
2632
- var f = n.getInput(n.options.inputName, !0), p = n.getCaretPositionEnd() || 0, h = f.substring(0, p || 0) || f, v = new RegExp("".concat(n.utilities.escapeRegex(t), "$"), u ? "g" : "gi"), y = h.replace(v, g), m = f.replace(h, y), b = y.length - h.length, E = (p || f.length) + b;
2633
- E < 0 && (E = 0), n.setInput(m, n.options.inputName, !0), n.setCaretPosition(E), d && typeof n.options.onKeyPress == "function" && n.options.onKeyPress(o, a), typeof n.options.onChange == "function" && n.options.onChange(n.getInput(n.options.inputName, !0), a), typeof n.options.onChangeAll == "function" && n.options.onChangeAll(n.getAllInputs(), a);
2634
- } });
2635
- } }, { key: "handleButtonClicked", value: function(t, e) {
2636
- var r = this.options, n = r.inputName, o = n === void 0 ? this.defaultName : n, a = r.debug;
2637
- if (t !== "{//}") {
2638
- this.input[o] || (this.input[o] = ""), typeof this.options.beforeInputUpdate == "function" && this.options.beforeInputUpdate(this);
2639
- var c = this.utilities.getUpdatedInput(t, this.input[o], this.caretPosition, this.caretPositionEnd);
2640
- if (this.utilities.isStandardButton(t) && this.activeInputElement && this.input[o] && this.input[o] === c && this.caretPosition === 0 && this.caretPositionEnd === c.length)
2641
- return this.setInput("", this.options.inputName, !0), this.setCaretPosition(0), this.activeInputElement.value = "", this.activeInputElement.setSelectionRange(0, 0), void this.handleButtonClicked(t, e);
2642
- if (typeof this.options.onKeyPress == "function" && this.options.onKeyPress(t, e), this.input[o] !== c && (!this.options.inputPattern || this.options.inputPattern && this.inputPatternIsValid(c))) {
2643
- if (this.options.maxLength && this.utilities.handleMaxLength(this.input, c))
2644
- return;
2645
- var u = this.utilities.getUpdatedInput(t, this.input[o], this.caretPosition, this.caretPositionEnd, !0);
2646
- if (this.setInput(u, this.options.inputName, !0), a && console.log("Input changed:", this.getAllInputs()), this.options.debug && console.log("Caret at: ", this.getCaretPosition(), this.getCaretPositionEnd(), "(".concat(this.keyboardDOMClass, ")"), e == null ? void 0 : e.type), this.options.syncInstanceInputs && this.syncInstanceInputs(), typeof this.options.onChange == "function" && this.options.onChange(this.getInput(this.options.inputName, !0), e), typeof this.options.onChangeAll == "function" && this.options.onChangeAll(this.getAllInputs(), e), e != null && e.target && this.options.enableLayoutCandidates) {
2647
- var l, d = this.getInputCandidates(c), g = d.candidateKey, f = d.candidateValue;
2648
- g && f ? this.showCandidatesBox(g, f, this.keyboardDOM) : (l = this.candidateBox) === null || l === void 0 || l.destroy();
2649
- }
2650
- }
2651
- this.caretPositionEnd && this.caretPosition !== this.caretPositionEnd && (this.setCaretPosition(this.caretPositionEnd, this.caretPositionEnd), this.activeInputElement && this.activeInputElement.setSelectionRange(this.caretPositionEnd, this.caretPositionEnd), this.options.debug && console.log("Caret position aligned", this.caretPosition)), a && console.log("Key pressed:", t);
2652
- }
2653
- } }, { key: "getMouseHold", value: function() {
2654
- return this.isMouseHold;
2655
- } }, { key: "setMouseHold", value: function(t) {
2656
- this.options.syncInstanceInputs ? this.dispatch(function(e) {
2657
- e.isMouseHold = t;
2658
- }) : this.isMouseHold = t;
2659
- } }, { key: "handleButtonMouseDown", value: function(t, e) {
2660
- var r = this;
2661
- e && (this.options.preventMouseDownDefault && e.preventDefault(), this.options.stopMouseDownPropagation && e.stopPropagation(), e.target.classList.add(this.activeButtonClass)), this.holdInteractionTimeout && clearTimeout(this.holdInteractionTimeout), this.holdTimeout && clearTimeout(this.holdTimeout), this.setMouseHold(!0), this.options.disableButtonHold || (this.holdTimeout = window.setTimeout(function() {
2662
- (r.getMouseHold() && (!t.includes("{") && !t.includes("}") || t === "{delete}" || t === "{backspace}" || t === "{bksp}" || t === "{space}" || t === "{tab}") || t === "{arrowright}" || t === "{arrowleft}" || t === "{arrowup}" || t === "{arrowdown}") && (r.options.debug && console.log("Button held:", t), r.handleButtonHold(t)), clearTimeout(r.holdTimeout);
2663
- }, 500));
2664
- } }, { key: "handleButtonMouseUp", value: function(t, e) {
2665
- var r = this;
2666
- e && (this.options.preventMouseUpDefault && e.preventDefault && e.preventDefault(), this.options.stopMouseUpPropagation && e.stopPropagation && e.stopPropagation(), !(e.target === this.keyboardDOM || e.target && this.keyboardDOM.contains(e.target) || this.candidateBox && this.candidateBox.candidateBoxElement && (e.target === this.candidateBox.candidateBoxElement || e.target && this.candidateBox.candidateBoxElement.contains(e.target))) && this.candidateBox && this.candidateBox.destroy()), this.recurseButtons(function(n) {
2667
- n.classList.remove(r.activeButtonClass);
2668
- }), this.setMouseHold(!1), this.holdInteractionTimeout && clearTimeout(this.holdInteractionTimeout), t && typeof this.options.onKeyReleased == "function" && this.options.onKeyReleased(t, e);
2669
- } }, { key: "handleKeyboardContainerMouseDown", value: function(t) {
2670
- this.options.preventMouseDownDefault && t.preventDefault();
2671
- } }, { key: "handleButtonHold", value: function(t) {
2672
- var e = this;
2673
- this.holdInteractionTimeout && clearTimeout(this.holdInteractionTimeout), this.holdInteractionTimeout = window.setTimeout(function() {
2674
- e.getMouseHold() ? (e.handleButtonClicked(t), e.handleButtonHold(t)) : clearTimeout(e.holdInteractionTimeout);
2675
- }, 100);
2676
- } }, { key: "syncInstanceInputs", value: function() {
2677
- var t = this;
2678
- this.dispatch(function(e) {
2679
- e.replaceInput(t.input), e.setCaretPosition(t.caretPosition, t.caretPositionEnd);
2680
- });
2681
- } }, { key: "clearInput", value: function() {
2682
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.options.inputName || this.defaultName;
2683
- this.input[t] = "", this.setCaretPosition(0), this.options.syncInstanceInputs && this.syncInstanceInputs();
2684
- } }, { key: "getInput", value: function() {
2685
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.options.inputName || this.defaultName, e = arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
2686
- return this.options.syncInstanceInputs && !e && this.syncInstanceInputs(), this.options.rtl ? "‫" + this.input[t].replace("‫", "").replace("‬", "") + "‬" : this.input[t];
2687
- } }, { key: "getAllInputs", value: function() {
2688
- var t = this, e = {};
2689
- return Object.keys(this.input).forEach(function(r) {
2690
- e[r] = t.getInput(r, !0);
2691
- }), e;
2692
- } }, { key: "setInput", value: function(t) {
2693
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.inputName || this.defaultName, r = arguments.length > 2 ? arguments[2] : void 0;
2694
- this.input[e] = t, !r && this.options.syncInstanceInputs && this.syncInstanceInputs();
2695
- } }, { key: "replaceInput", value: function(t) {
2696
- this.input = t;
2697
- } }, { key: "setOptions", value: function() {
2698
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = this.changedOptions(t);
2699
- this.options = Object.assign(this.options, t), e.length && (this.options.debug && console.log("changedOptions", e), this.onSetOptions(e), this.render());
2700
- } }, { key: "changedOptions", value: function(t) {
2701
- var e = this;
2702
- return Object.keys(t).filter(function(r) {
2703
- return JSON.stringify(t[r]) !== JSON.stringify(e.options[r]);
2704
- });
2705
- } }, { key: "onSetOptions", value: function() {
2706
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
2707
- t.includes("layoutName") && this.candidateBox && this.candidateBox.destroy(), (t.includes("layoutCandidatesPageSize") || t.includes("layoutCandidates")) && this.candidateBox && (this.candidateBox.destroy(), this.candidateBox = new Gt({ utilities: this.utilities, options: this.options }));
2708
- } }, { key: "resetRows", value: function() {
2709
- this.keyboardRowsDOM && this.keyboardRowsDOM.remove(), this.keyboardDOM.className = this.keyboardDOMClass, this.keyboardDOM.setAttribute("data-skInstance", this.currentInstanceName), this.buttonElements = {};
2710
- } }, { key: "dispatch", value: function(t) {
2711
- if (!window.SimpleKeyboardInstances)
2712
- throw console.warn("SimpleKeyboardInstances is not defined. Dispatch cannot be called."), new Error("INSTANCES_VAR_ERROR");
2713
- return Object.keys(window.SimpleKeyboardInstances).forEach(function(e) {
2714
- t(window.SimpleKeyboardInstances[e], e);
2715
- });
2716
- } }, { key: "addButtonTheme", value: function(t, e) {
2717
- var r = this;
2718
- e && t && (t.split(" ").forEach(function(n) {
2719
- e.split(" ").forEach(function(o) {
2720
- r.options.buttonTheme || (r.options.buttonTheme = []);
2721
- var a = !1;
2722
- r.options.buttonTheme.map(function(c) {
2723
- if (c != null && c.class.split(" ").includes(o)) {
2724
- a = !0;
2725
- var u = c.buttons.split(" ");
2726
- u.includes(n) || (a = !0, u.push(n), c.buttons = u.join(" "));
2727
- }
2728
- return c;
2729
- }), a || r.options.buttonTheme.push({ class: o, buttons: t });
2730
- });
2731
- }), this.render());
2732
- } }, { key: "removeButtonTheme", value: function(t, e) {
2733
- var r = this;
2734
- if (!t && !e)
2735
- return this.options.buttonTheme = [], void this.render();
2736
- t && Array.isArray(this.options.buttonTheme) && this.options.buttonTheme.length && (t.split(" ").forEach(function(n) {
2737
- var o;
2738
- (o = r.options) === null || o === void 0 || (o = o.buttonTheme) === null || o === void 0 || o.map(function(a, c) {
2739
- if (a && e && e.includes(a.class) || !e) {
2740
- var u, l, d = (u = a) === null || u === void 0 ? void 0 : u.buttons.split(" ").filter(function(g) {
2741
- return g !== n;
2742
- });
2743
- a && d != null && d.length ? a.buttons = d.join(" ") : ((l = r.options.buttonTheme) === null || l === void 0 || l.splice(c, 1), a = null);
2744
- }
2745
- return a;
2746
- });
2747
- }), this.render());
2748
- } }, { key: "getButtonElement", value: function(t) {
2749
- var e, r = this.buttonElements[t];
2750
- return r && (e = r.length > 1 ? r : r[0]), e;
2751
- } }, { key: "inputPatternIsValid", value: function(t) {
2752
- var e, r = this.options.inputPattern;
2753
- if ((e = r instanceof RegExp ? r : r[this.options.inputName || this.defaultName]) && t) {
2754
- var n = e.test(t);
2755
- return this.options.debug && console.log('inputPattern ("'.concat(e, '"): ').concat(n ? "passed" : "did not pass!")), n;
2756
- }
2757
- return !0;
2758
- } }, { key: "setEventListeners", value: function() {
2759
- if (this.isFirstKeyboardInstance || !this.allKeyboardInstances) {
2760
- this.options.debug && console.log("Caret handling started (".concat(this.keyboardDOMClass, ")"));
2761
- var t = this.options.physicalKeyboardHighlightPreventDefault, e = t !== void 0 && t;
2762
- document.addEventListener("keyup", this.handleKeyUp, e), document.addEventListener("keydown", this.handleKeyDown, e), document.addEventListener("mouseup", this.handleMouseUp), document.addEventListener("touchend", this.handleTouchEnd), this.options.updateCaretOnSelectionChange && document.addEventListener("selectionchange", this.handleSelectionChange), document.addEventListener("select", this.handleSelect);
2763
- }
2764
- } }, { key: "handleKeyUp", value: function(t) {
2765
- this.caretEventHandler(t), this.options.physicalKeyboardHighlight && this.physicalKeyboard.handleHighlightKeyUp(t);
2766
- } }, { key: "handleKeyDown", value: function(t) {
2767
- this.options.physicalKeyboardHighlight && this.physicalKeyboard.handleHighlightKeyDown(t);
2768
- } }, { key: "handleMouseUp", value: function(t) {
2769
- this.caretEventHandler(t);
2770
- } }, { key: "handleTouchEnd", value: function(t) {
2771
- this.caretEventHandler(t);
2772
- } }, { key: "handleSelect", value: function(t) {
2773
- this.caretEventHandler(t);
2774
- } }, { key: "handleSelectionChange", value: function(t) {
2775
- navigator.userAgent.includes("Firefox") || this.caretEventHandler(t);
2776
- } }, { key: "caretEventHandler", value: function(t) {
2777
- var e, r = this;
2778
- t.target.tagName && (e = t.target.tagName.toLowerCase()), this.dispatch(function(n) {
2779
- var o = t.target === n.keyboardDOM || t.target && n.keyboardDOM.contains(t.target);
2780
- if (r.options.syncInstanceInputs && Array.isArray(t.path) && (o = t.path.some(function(u) {
2781
- var l;
2782
- return u == null || (l = u.hasAttribute) === null || l === void 0 ? void 0 : l.call(u, "data-skInstance");
2783
- })), (e === "textarea" || e === "input" && ["text", "search", "url", "tel", "password"].includes(t.target.type)) && !n.options.disableCaretPositioning) {
2784
- var a = t.target.selectionStart, c = t.target.selectionEnd;
2785
- n.options.rtl && (a = n.utilities.getRtlOffset(a, n.getInput()), c = n.utilities.getRtlOffset(c, n.getInput())), n.setCaretPosition(a, c), n.activeInputElement = t.target, n.options.debug && console.log("Caret at: ", n.getCaretPosition(), n.getCaretPositionEnd(), t && t.target.tagName.toLowerCase(), "(".concat(n.keyboardDOMClass, ")"), t == null ? void 0 : t.type);
2786
- } else
2787
- !n.options.disableCaretPositioning && o || (t == null ? void 0 : t.type) === "selectionchange" || (n.setCaretPosition(null), n.activeInputElement = null, n.options.debug && console.log('Caret position reset due to "'.concat(t == null ? void 0 : t.type, '" event'), t));
2788
- });
2789
- } }, { key: "recurseButtons", value: function(t) {
2790
- var e = this;
2791
- t && Object.keys(this.buttonElements).forEach(function(r) {
2792
- return e.buttonElements[r].forEach(t);
2793
- });
2794
- } }, { key: "destroy", value: function() {
2795
- this.options.debug && console.log("Destroying simple-keyboard instance: ".concat(this.currentInstanceName));
2796
- var t = this.options.physicalKeyboardHighlightPreventDefault, e = t !== void 0 && t;
2797
- document.removeEventListener("keyup", this.handleKeyUp, e), document.removeEventListener("keydown", this.handleKeyDown, e), document.removeEventListener("mouseup", this.handleMouseUp), document.removeEventListener("touchend", this.handleTouchEnd), document.removeEventListener("select", this.handleSelect), this.options.updateCaretOnSelectionChange && document.removeEventListener("selectionchange", this.handleSelectionChange), document.onpointerup = null, document.ontouchend = null, document.ontouchcancel = null, document.onmouseup = null, this.recurseButtons(function(r) {
2798
- r && (r.onpointerdown = null, r.onpointerup = null, r.onpointercancel = null, r.ontouchstart = null, r.ontouchend = null, r.ontouchcancel = null, r.onclick = null, r.onmousedown = null, r.onmouseup = null, r.remove(), r = null);
2799
- }), this.keyboardDOM.onpointerdown = null, this.keyboardDOM.ontouchstart = null, this.keyboardDOM.onmousedown = null, this.resetRows(), this.candidateBox && (this.candidateBox.destroy(), this.candidateBox = null), this.activeInputElement = null, this.keyboardDOM.removeAttribute("data-skInstance"), this.keyboardDOM.innerHTML = "", window.SimpleKeyboardInstances[this.currentInstanceName] = null, delete window.SimpleKeyboardInstances[this.currentInstanceName], this.initialized = !1;
2800
- } }, { key: "getButtonThemeClasses", value: function(t) {
2801
- var e = this.options.buttonTheme, r = [];
2802
- return Array.isArray(e) && e.forEach(function(n) {
2803
- if (n && n.class && typeof n.class == "string" && n.buttons && typeof n.buttons == "string") {
2804
- var o = n.class.split(" ");
2805
- n.buttons.split(" ").includes(t) && (r = [].concat(Tt(r), Tt(o)));
2806
- } else
2807
- console.warn('Incorrect "buttonTheme". Please check the documentation.', n);
2808
- }), r;
2809
- } }, { key: "setDOMButtonAttributes", value: function(t, e) {
2810
- var r = this.options.buttonAttributes;
2811
- Array.isArray(r) && r.forEach(function(n) {
2812
- n.attribute && typeof n.attribute == "string" && n.value && typeof n.value == "string" && n.buttons && typeof n.buttons == "string" ? n.buttons.split(" ").includes(t) && e(n.attribute, n.value) : console.warn('Incorrect "buttonAttributes". Please check the documentation.', n);
2813
- });
2814
- } }, { key: "onTouchDeviceDetected", value: function() {
2815
- this.processAutoTouchEvents(), this.disableContextualWindow();
2816
- } }, { key: "disableContextualWindow", value: function() {
2817
- window.oncontextmenu = function(t) {
2818
- if (t.target.classList.contains("hg-button"))
2819
- return t.preventDefault(), t.stopPropagation(), !1;
2820
- };
2821
- } }, { key: "processAutoTouchEvents", value: function() {
2822
- this.options.autoUseTouchEvents && (this.options.useTouchEvents = !0, this.options.debug && console.log("autoUseTouchEvents: Touch device detected, useTouchEvents enabled."));
2823
- } }, { key: "onInit", value: function() {
2824
- this.options.debug && console.log("".concat(this.keyboardDOMClass, " Initialized")), this.setEventListeners(), typeof this.options.onInit == "function" && this.options.onInit(this);
2825
- } }, { key: "beforeFirstRender", value: function() {
2826
- this.utilities.isTouchDevice() && this.onTouchDeviceDetected(), typeof this.options.beforeFirstRender == "function" && this.options.beforeFirstRender(this), this.isFirstKeyboardInstance && this.utilities.pointerEventsSupported() && !this.options.useTouchEvents && !this.options.useMouseEvents && this.options.debug && console.log("Using PointerEvents as it is supported by this browser"), this.options.useTouchEvents && this.options.debug && console.log("useTouchEvents has been enabled. Only touch events will be used.");
2827
- } }, { key: "beforeRender", value: function() {
2828
- typeof this.options.beforeRender == "function" && this.options.beforeRender(this);
2829
- } }, { key: "onRender", value: function() {
2830
- typeof this.options.onRender == "function" && this.options.onRender(this);
2831
- } }, { key: "onModulesLoaded", value: function() {
2832
- typeof this.options.onModulesLoaded == "function" && this.options.onModulesLoaded(this);
2833
- } }, { key: "loadModules", value: function() {
2834
- var t = this;
2835
- Array.isArray(this.options.modules) && (this.options.modules.forEach(function(e) {
2836
- var r = t.utilities.isConstructor(e) ? new e(t) : e(t);
2837
- r.init && r.init(t);
2838
- }), this.keyboardPluginClasses = "modules-loaded", this.render(), this.onModulesLoaded());
2839
- } }, { key: "getModuleProp", value: function(t, e) {
2840
- return !!this.modules[t] && this.modules[t][e];
2841
- } }, { key: "getModulesList", value: function() {
2842
- return Object.keys(this.modules);
2843
- } }, { key: "parseRowDOMContainers", value: function(t, e, r, n) {
2844
- var o = this, a = Array.from(t.children), c = 0;
2845
- return a.length && r.forEach(function(u, l) {
2846
- var d = n[l];
2847
- if (!(d && d > u))
2848
- return !1;
2849
- var g = u - c, f = d - c, p = document.createElement("div");
2850
- p.className += "hg-button-container";
2851
- var h = "".concat(o.options.layoutName, "-r").concat(e, "c").concat(l);
2852
- p.setAttribute("data-skUID", h);
2853
- var v = a.splice(g, f - g + 1);
2854
- c += f - g, v.forEach(function(y) {
2855
- return p.appendChild(y);
2856
- }), a.splice(g, 0, p), t.innerHTML = "", a.forEach(function(y) {
2857
- return t.appendChild(y);
2858
- }), o.options.debug && console.log("rowDOMContainer", v, g, f, c + 1);
2859
- }), t;
2860
- } }, { key: "render", value: function() {
2861
- var t = this;
2862
- this.resetRows(), this.initialized || this.beforeFirstRender(), this.beforeRender();
2863
- var e = "hg-layout-".concat(this.options.layoutName), r = this.options.layout || { default: ["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}", "{tab} q w e r t y u i o p [ ] \\", "{lock} a s d f g h j k l ; ' {enter}", "{shift} z x c v b n m , . / {shift}", ".com @ {space}"], shift: ["~ ! @ # $ % ^ & * ( ) _ + {bksp}", "{tab} Q W E R T Y U I O P { } |", '{lock} A S D F G H J K L : " {enter}', "{shift} Z X C V B N M < > ? {shift}", ".com @ {space}"] }, n = this.options.useTouchEvents || !1, o = n ? "hg-touch-events" : "", a = this.options.useMouseEvents || !1, c = this.options.disableRowButtonContainers;
2864
- this.keyboardDOM.className = this.getKeyboardClassString(this.options.theme, e, this.keyboardPluginClasses, o), this.keyboardDOM.setAttribute("data-skInstance", this.currentInstanceName), this.keyboardRowsDOM = document.createElement("div"), this.keyboardRowsDOM.className = "hg-rows", r[this.options.layoutName || this.defaultName].forEach(function(u, l) {
2865
- var d = u.split(" ");
2866
- t.options.excludeFromLayout && t.options.excludeFromLayout[t.options.layoutName || t.defaultName] && (d = d.filter(function(h) {
2867
- return t.options.excludeFromLayout && !t.options.excludeFromLayout[t.options.layoutName || t.defaultName].includes(h);
2868
- }));
2869
- var g = document.createElement("div");
2870
- g.className += "hg-row";
2871
- var f = [], p = [];
2872
- d.forEach(function(h, v) {
2873
- var y, m = !c && typeof h == "string" && h.length > 1 && h.indexOf("[") === 0, b = !c && typeof h == "string" && h.length > 1 && h.indexOf("]") === h.length - 1;
2874
- m && (f.push(v), h = h.replace(/\[/g, "")), b && (p.push(v), h = h.replace(/\]/g, ""));
2875
- var E = t.utilities.getButtonClass(h), x = t.utilities.getButtonDisplayName(h, t.options.display, t.options.mergeDisplay), k = t.options.useButtonTag ? "button" : "div", w = document.createElement(k);
2876
- w.className += "hg-button ".concat(E), (y = w.classList).add.apply(y, Tt(t.getButtonThemeClasses(h))), t.setDOMButtonAttributes(h, function(S, I) {
2877
- w.setAttribute(S, I);
2878
- }), t.activeButtonClass = "hg-activeButton", !t.utilities.pointerEventsSupported() || n || a ? n ? (w.ontouchstart = function(S) {
2879
- t.handleButtonClicked(h, S), t.handleButtonMouseDown(h, S);
2880
- }, w.ontouchend = function(S) {
2881
- t.handleButtonMouseUp(h, S);
2882
- }, w.ontouchcancel = function(S) {
2883
- t.handleButtonMouseUp(h, S);
2884
- }) : (w.onclick = function(S) {
2885
- t.setMouseHold(!1), typeof t.options.onKeyReleased == "function" || t.options.useMouseEvents && t.options.clickOnMouseDown || t.handleButtonClicked(h, S);
2886
- }, w.onmousedown = function(S) {
2887
- (typeof t.options.onKeyReleased == "function" || t.options.useMouseEvents && t.options.clickOnMouseDown) && !t.isMouseHold && t.handleButtonClicked(h, S), t.handleButtonMouseDown(h, S);
2888
- }, w.onmouseup = function(S) {
2889
- t.handleButtonMouseUp(h, S);
2890
- }) : (w.onpointerdown = function(S) {
2891
- t.handleButtonClicked(h, S), t.handleButtonMouseDown(h, S);
2892
- }, w.onpointerup = function(S) {
2893
- t.handleButtonMouseUp(h, S);
2894
- }, w.onpointercancel = function(S) {
2895
- t.handleButtonMouseUp(h, S);
2896
- }), w.setAttribute("data-skBtn", h);
2897
- var O = "".concat(t.options.layoutName, "-r").concat(l, "b").concat(v);
2898
- w.setAttribute("data-skBtnUID", O);
2899
- var C = document.createElement("span");
2900
- C.innerHTML = x, w.appendChild(C), t.buttonElements[h] || (t.buttonElements[h] = []), t.buttonElements[h].push(w), g.appendChild(w);
2901
- }), g = t.parseRowDOMContainers(g, l, f, p), t.keyboardRowsDOM.appendChild(g);
2902
- }), this.keyboardDOM.appendChild(this.keyboardRowsDOM), this.onRender(), this.initialized || (this.initialized = !0, !this.utilities.pointerEventsSupported() || n || a ? n ? (document.ontouchend = function(u) {
2903
- return t.handleButtonMouseUp(void 0, u);
2904
- }, document.ontouchcancel = function(u) {
2905
- return t.handleButtonMouseUp(void 0, u);
2906
- }, this.keyboardDOM.ontouchstart = function(u) {
2907
- return t.handleKeyboardContainerMouseDown(u);
2908
- }) : n || (document.onmouseup = function(u) {
2909
- return t.handleButtonMouseUp(void 0, u);
2910
- }, this.keyboardDOM.onmousedown = function(u) {
2911
- return t.handleKeyboardContainerMouseDown(u);
2912
- }) : (document.onpointerup = function(u) {
2913
- return t.handleButtonMouseUp(void 0, u);
2914
- }, this.keyboardDOM.onpointerdown = function(u) {
2915
- return t.handleKeyboardContainerMouseDown(u);
2916
- }), this.onInit());
2917
- } }], s && oe(i.prototype, s), Object.defineProperty(i, "prototype", { writable: !1 }), i;
2918
- var i, s;
2919
- }(), qt = ie, ae = qt;
2920
- return kt;
2921
- }();
2922
- });
2923
- });
2924
- const he = /* @__PURE__ */ fe(de), Qt = {
2925
- default: [
2926
- "1 2 3 4 5 6 7 8 9 0 {bksp}",
2927
- "q w e r t y u i o p",
2928
- "a s d f g h j k l",
2929
- "z x c v b n m . - &",
2930
- "{space}"
2931
- ]
2932
- }, pe = {
2933
- default: [
2934
- "1 2 3 4 5 6 7 8 9 0 {bksp}",
2935
- "q w e r t y u i o p å",
2936
- "a s d f g h j k l æ ø",
2937
- "z x c v b n m . - &",
2938
- "{space}"
2939
- ]
2940
- }, ge = {
2941
- default: [
2942
- "1 2 3 4 5 6 7 8 9 0 {bksp}",
2943
- "q w e r t z u i o p ü",
2944
- "a s d f g h j k l ö ä",
2945
- "y x c v b n m . - &",
2946
- "{space}"
2947
- ]
2948
- }, ve = {
2949
- default: [
2950
- "1 2 3 4 5 6 7 8 9 0 {bksp}",
2951
- "a z e r t y u i o p",
2952
- "q s d f g h j k l m",
2953
- "w x c v b n . - &",
2954
- "{space}"
2955
- ]
2956
- }, ye = {
2957
- default: [
2958
- "1 2 3 4 5 6 7 8 9 0 {bksp}",
2959
- "a z e r t y u i o p é",
2960
- "q s d f g h j k l ò à ù",
2961
- "w x c v b n m . - &",
2962
- "{space}"
2963
- ]
2964
- }, me = {
2965
- default: [
2966
- "1 2 3 4 5 6 7 8 9 0 {bksp}",
2967
- "a z e r t y u i o p",
2968
- "q s d f g h j k l ń",
2969
- "w x c v b n m . - &",
2970
- "{space}"
2971
- ]
2972
- }, be = {
2973
- default: [
2974
- "1 2 3 4 5 6 7 8 9 0 {bksp}",
2975
- "q w e r t y u i o p",
2976
- "a s d f g h j k l",
2977
- "z x c v b n m . - &",
2978
- "{space}"
2979
- ]
2980
- }, xe = {
2981
- default: [
2982
- "1 2 3 4 5 6 7 8 9 0 {bksp}",
2983
- "q w e r t y u i o p",
2984
- "a s d f g h j k l",
2985
- "z x c v b n m . - &",
2986
- "{space}"
2987
- ]
2988
- }, Kt = Qt;
2989
- var Mt;
2990
- (function(nt) {
2991
- nt.Numeric = "numeric", nt.Alphabetic = "alphabetic";
2992
- })(Mt || (Mt = {}));
2993
- const we = {
2994
- default: ["1 2 3", "4 5 6", "7 8 9", "0 {bksp}"]
2995
- }, Ee = `/*!
2996
- *
2997
- * simple-keyboard v3.8.58
2998
- * https://github.com/hodgef/simple-keyboard
2999
- *
3000
- * Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
3001
- *
3002
- * This source code is licensed under the MIT license found in the
3003
- * LICENSE file in the root directory of this source tree.
3004
- *
3005
- */.hg-theme-default{background-color:#ececec;border-radius:5px;box-sizing:border-box;font-family:HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;overflow:hidden;padding:5px;touch-action:manipulation;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.hg-theme-default .hg-button span,.hg-theme-default .hg-button span svg{pointer-events:none}.hg-theme-default button.hg-button{border-width:0;font-size:inherit;outline:0}.hg-theme-default .hg-button{display:inline-block;flex-grow:1}.hg-theme-default .hg-row{display:flex}.hg-theme-default .hg-row:not(:last-child){margin-bottom:5px}.hg-theme-default .hg-row .hg-button-container,.hg-theme-default .hg-row .hg-button:not(:last-child){margin-right:5px}.hg-theme-default .hg-row>div:last-child{margin-right:0}.hg-theme-default .hg-row .hg-button-container{display:flex}.hg-theme-default .hg-button{align-items:center;background:#fff;border-bottom:1px solid #b5b5b5;border-radius:5px;box-shadow:0 0 3px -1px rgba(0,0,0,.3);box-sizing:border-box;cursor:pointer;display:flex;height:40px;justify-content:center;padding:5px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.hg-theme-default .hg-button.hg-standardBtn{width:20px}.hg-theme-default .hg-button.hg-activeButton{background:#efefef}.hg-theme-default.hg-layout-numeric .hg-button{align-items:center;display:flex;height:60px;justify-content:center;width:33.3%}.hg-theme-default .hg-button.hg-button-numpadadd,.hg-theme-default .hg-button.hg-button-numpadenter{height:85px}.hg-theme-default .hg-button.hg-button-numpad0{width:105px}.hg-theme-default .hg-button.hg-button-com{max-width:85px}.hg-theme-default .hg-button.hg-standardBtn.hg-button-at{max-width:45px}.hg-theme-default .hg-button.hg-selectedButton{background:rgba(5,25,70,.53);color:#fff}.hg-theme-default .hg-button.hg-standardBtn[data-skbtn=".com"]{max-width:82px}.hg-theme-default .hg-button.hg-standardBtn[data-skbtn="@"]{max-width:60px}.hg-candidate-box{background:#ececec;border-bottom:2px solid #b5b5b5;border-radius:5px;display:inline-flex;margin-top:-10px;position:absolute;transform:translateY(-100%);-webkit-user-select:none;-moz-user-select:none;user-select:none}ul.hg-candidate-box-list{display:flex;flex:1;list-style:none;margin:0;padding:0}li.hg-candidate-box-list-item{align-items:center;display:flex;height:40px;justify-content:center;width:40px}li.hg-candidate-box-list-item:hover{background:rgba(0,0,0,.03);cursor:pointer}li.hg-candidate-box-list-item:active{background:rgba(0,0,0,.1)}.hg-candidate-box-prev:before{content:"◄"}.hg-candidate-box-next:before{content:"►"}.hg-candidate-box-next,.hg-candidate-box-prev{align-items:center;color:#969696;cursor:pointer;display:flex;padding:0 10px}.hg-candidate-box-next{border-bottom-right-radius:5px;border-top-right-radius:5px}.hg-candidate-box-prev{border-bottom-left-radius:5px;border-top-left-radius:5px}.hg-candidate-box-btn-active{color:#444}mi-keyboard{display:block}mi-keyboard .hg-theme-default{background-color:transparent}`, Oe = class {
3006
- constructor(nt) {
3007
- se(this, nt), this.inputElements = /* @__PURE__ */ new Set(), this.inputElement = void 0, this.layout = Mt.Alphabetic, this.language = void 0;
3008
- }
3009
- inputElementChange() {
3010
- if (!this.inputElement.hasAttribute("id")) {
3011
- console.warn("MI-KEYBOARD: Invalid id attribute");
3012
- return;
3013
- }
3014
- this.simpleKeyboard && (this.simpleKeyboard.setOptions({ inputName: this.inputElement.id }), this.simpleKeyboard.setInput(this.inputElement.value, this.inputElement.id)), this.inputElements.has(this.inputElement) || (this.inputElements.add(this.inputElement), ["input", "focus", "blur", "inputCleared"].forEach((gt) => {
3015
- this.inputElement.addEventListener(gt, () => {
3016
- this.simpleKeyboard.setInput(this.inputElement.value, this.inputElement.id);
3017
- });
3018
- }));
3019
- }
3020
- layoutChange() {
3021
- this.simpleKeyboard && this.simpleKeyboard.setOptions({ layout: this.getKeyboardLayout(this.layout) });
3022
- }
3023
- languageChange() {
3024
- this.simpleKeyboard.setOptions({
3025
- layout: this.getKeyboardLayout(this.layout)
3026
- });
3027
- }
3028
- componentDidLoad() {
3029
- this.simpleKeyboard = new he({
3030
- onChange: (nt) => {
3031
- this.inputElement && (this.inputElement.value = nt, this.inputElement.dispatchEvent(new Event("input", { bubbles: !0, cancelable: !0 })));
3032
- },
3033
- layout: this.getKeyboardLayout(this.layout),
3034
- display: {
3035
- "{bksp}": "&#9003;",
3036
- "{enter}": "return",
3037
- "{space}": "space"
3038
- },
3039
- theme: "hg-theme-default hg-layout-numeric numeric-theme"
3040
- }), this.simpleKeyboard.setInput(this.inputElement.value);
3041
- }
3042
- /**
3043
- * Clear the input field.
3044
- */
3045
- clearInputField() {
3046
- this.simpleKeyboard.clearInput();
3047
- }
3048
- /**
3049
- * Check validity of keyboard layout.
3050
- *
3051
- * @param {layout} string
3052
- * @returns {boolean}
3053
- */
3054
- isValidLayout(nt) {
3055
- return nt ? !!Object.values(Mt).find((gt) => gt === nt) : !1;
3056
- }
3057
- /**
3058
- * Get keyboard layout. Defaults to alphabetic.
3059
- *
3060
- * @param {KeyboardLayout} keyboardLayout - Accepts values of KeyboardLayout enum, eg. 'numeric' or 'alphabetic'.
3061
- * @returns {{ [key: string]: string[]; }}
3062
- */
3063
- getKeyboardLayout(nt) {
3064
- if (!this.isValidLayout(nt))
3065
- return console.warn("MI-KEYBOARD: Invalid layout attribute"), Kt;
3066
- if (nt === Mt.Numeric)
3067
- return we;
3068
- const gt = this.language || window.navigator.language;
3069
- if (!gt)
3070
- return Kt;
3071
- const vt = [
3072
- { layout: Qt, languages: ["en", "en-us"] },
3073
- { layout: pe, languages: ["da", "da-dk"] },
3074
- { layout: ve, languages: ["fr", "fr-fr"] },
3075
- { layout: ge, languages: ["de", "de-de"] },
3076
- { layout: ye, languages: ["it", "it-it"] },
3077
- { layout: me, languages: ["es", "es-es"] },
3078
- { layout: be, languages: ["nl", "nl-nl"] },
3079
- { layout: xe, languages: ["zh", "zh-CN"] }
3080
- ].find((L) => !!L.languages.find((kt) => kt === gt.toLowerCase()));
3081
- return vt ? vt.layout : Kt;
3082
- }
3083
- /**
3084
- * Render on-screen keyboard.
3085
- *
3086
- * @returns {JSX.Element}
3087
- */
3088
- render() {
3089
- return ue("div", { class: "simple-keyboard" });
3090
- }
3091
- static get watchers() {
3092
- return {
3093
- inputElement: ["inputElementChange"],
3094
- layout: ["layoutChange"],
3095
- language: ["languageChange"]
3096
- };
3097
- }
3098
- };
3099
- Oe.style = Ee;
3100
- export {
3101
- Oe as mi_keyboard
3102
- };
3103
- //# sourceMappingURL=mi-keyboard.entry-eaf4b9ef.mjs.map