@everymatrix/cashier-session-expiration-modal 1.77.19 → 1.77.20
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.
- package/components/{CashierSessionExpirationModal-ge0R8xm0.js → CashierSessionExpirationModal-BhM5U6bJ.js} +1140 -1146
- package/components/{CashierSessionExpirationModal-BAFxIrEq.js → CashierSessionExpirationModal-E2PX0m2X.js} +1133 -1139
- package/components/CashierSessionExpirationModal-negwAlZX.cjs +22 -0
- package/es2015/cashier-session-expiration-modal.cjs +1 -1
- package/es2015/cashier-session-expiration-modal.js +1 -1
- package/esnext/cashier-session-expiration-modal.js +1 -1
- package/package.json +1 -1
- package/components/CashierSessionExpirationModal-DqNHgUjj.cjs +0 -9
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Yi = Object.defineProperty, Zi = Object.defineProperties;
|
|
2
|
+
var qi = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var rr = Object.getOwnPropertySymbols;
|
|
4
|
+
var Ji = Object.prototype.hasOwnProperty, Qi = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var sn = (e, t, n) => t in e ? Yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ir = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
Ji.call(t, n) && sn(e, n, t[n]);
|
|
8
|
+
if (rr)
|
|
9
|
+
for (var n of rr(t))
|
|
10
|
+
Qi.call(t, n) && sn(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var _e = (e, t, n) => (
|
|
14
|
-
var
|
|
12
|
+
}, or = (e, t) => Zi(e, qi(t));
|
|
13
|
+
var _e = (e, t, n) => (sn(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
|
+
var sr = (e, t, n) => new Promise((r, i) => {
|
|
15
15
|
var o = (c) => {
|
|
16
16
|
try {
|
|
17
17
|
u(n.next(c));
|
|
@@ -29,8 +29,8 @@ var ur = (e, t, n) => new Promise((r, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function de() {
|
|
31
31
|
}
|
|
32
|
-
const
|
|
33
|
-
function
|
|
32
|
+
const Yr = (e) => e;
|
|
33
|
+
function Ki(e, t) {
|
|
34
34
|
for (const n in t)
|
|
35
35
|
e[n] = t[n];
|
|
36
36
|
return (
|
|
@@ -38,29 +38,29 @@ function to(e, t) {
|
|
|
38
38
|
e
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Zr(e) {
|
|
42
42
|
return e();
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function ar() {
|
|
45
45
|
return /* @__PURE__ */ Object.create(null);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
e.forEach(
|
|
47
|
+
function Ie(e) {
|
|
48
|
+
e.forEach(Zr);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Xt(e) {
|
|
51
51
|
return typeof e == "function";
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function qr(e, t) {
|
|
54
54
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
55
|
}
|
|
56
|
-
let
|
|
57
|
-
function
|
|
58
|
-
return e === t ? !0 : (
|
|
56
|
+
let At;
|
|
57
|
+
function ur(e, t) {
|
|
58
|
+
return e === t ? !0 : (At || (At = document.createElement("a")), At.href = t, e === At.href);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function eo(e) {
|
|
61
61
|
return Object.keys(e).length === 0;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Jr(e, ...t) {
|
|
64
64
|
if (e == null) {
|
|
65
65
|
for (const r of t)
|
|
66
66
|
r(void 0);
|
|
@@ -69,19 +69,19 @@ function Kr(e, ...t) {
|
|
|
69
69
|
const n = e.subscribe(...t);
|
|
70
70
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
e.$$.on_destroy.push(
|
|
72
|
+
function lr(e, t, n) {
|
|
73
|
+
e.$$.on_destroy.push(Jr(t, n));
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Nt(e, t, n, r) {
|
|
76
76
|
if (e) {
|
|
77
|
-
const i =
|
|
77
|
+
const i = Qr(e, t, n, r);
|
|
78
78
|
return e[0](i);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return e[1] && r ?
|
|
81
|
+
function Qr(e, t, n, r) {
|
|
82
|
+
return e[1] && r ? Ki(n.ctx.slice(), e[1](r(t))) : n.ctx;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function Ht(e, t, n, r) {
|
|
85
85
|
if (e[2] && r) {
|
|
86
86
|
const i = e[2](r(n));
|
|
87
87
|
if (t.dirty === void 0)
|
|
@@ -96,9 +96,9 @@ function It(e, t, n, r) {
|
|
|
96
96
|
}
|
|
97
97
|
return t.dirty;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function It(e, t, n, r, i, o) {
|
|
100
100
|
if (i) {
|
|
101
|
-
const a =
|
|
101
|
+
const a = Qr(t, n, r, o);
|
|
102
102
|
e.p(a, i);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
@@ -111,36 +111,36 @@ function Rt(e) {
|
|
|
111
111
|
}
|
|
112
112
|
return -1;
|
|
113
113
|
}
|
|
114
|
-
const
|
|
115
|
-
let
|
|
116
|
-
const
|
|
117
|
-
function
|
|
118
|
-
|
|
119
|
-
t.c(e) || (
|
|
120
|
-
}),
|
|
114
|
+
const Kr = typeof window != "undefined";
|
|
115
|
+
let to = Kr ? () => window.performance.now() : () => Date.now(), Nn = Kr ? (e) => requestAnimationFrame(e) : de;
|
|
116
|
+
const Ve = /* @__PURE__ */ new Set();
|
|
117
|
+
function ei(e) {
|
|
118
|
+
Ve.forEach((t) => {
|
|
119
|
+
t.c(e) || (Ve.delete(t), t.f());
|
|
120
|
+
}), Ve.size !== 0 && Nn(ei);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function no(e) {
|
|
123
123
|
let t;
|
|
124
|
-
return
|
|
124
|
+
return Ve.size === 0 && Nn(ei), {
|
|
125
125
|
promise: new Promise((n) => {
|
|
126
|
-
|
|
126
|
+
Ve.add(t = { c: e, f: n });
|
|
127
127
|
}),
|
|
128
128
|
abort() {
|
|
129
|
-
|
|
129
|
+
Ve.delete(t);
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
133
|
function J(e, t) {
|
|
134
134
|
e.appendChild(t);
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
const r =
|
|
136
|
+
function ro(e, t, n) {
|
|
137
|
+
const r = Hn(e);
|
|
138
138
|
if (!r.getElementById(t)) {
|
|
139
139
|
const i = re("style");
|
|
140
|
-
i.id = t, i.textContent = n,
|
|
140
|
+
i.id = t, i.textContent = n, ti(r, i);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function Hn(e) {
|
|
144
144
|
if (!e)
|
|
145
145
|
return document;
|
|
146
146
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -150,18 +150,18 @@ function Pn(e) {
|
|
|
150
150
|
t
|
|
151
151
|
) : e.ownerDocument;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function io(e) {
|
|
154
154
|
const t = re("style");
|
|
155
|
-
return t.textContent = "/* empty */",
|
|
155
|
+
return t.textContent = "/* empty */", ti(Hn(e), t), t.sheet;
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function ti(e, t) {
|
|
158
158
|
return J(
|
|
159
159
|
/** @type {Document} */
|
|
160
160
|
e.head || e,
|
|
161
161
|
t
|
|
162
162
|
), t.sheet;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Ce(e, t, n) {
|
|
165
165
|
e.insertBefore(t, n || null);
|
|
166
166
|
}
|
|
167
167
|
function Ee(e) {
|
|
@@ -170,53 +170,53 @@ function Ee(e) {
|
|
|
170
170
|
function re(e) {
|
|
171
171
|
return document.createElement(e);
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function cr(e) {
|
|
174
174
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function Ke(e) {
|
|
177
177
|
return document.createTextNode(e);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
return
|
|
179
|
+
function ht() {
|
|
180
|
+
return Ke(" ");
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
return
|
|
182
|
+
function ni() {
|
|
183
|
+
return Ke("");
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function kt(e, t, n, r) {
|
|
186
186
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function V(e, t, n) {
|
|
189
189
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function oo(e) {
|
|
192
192
|
return Array.from(e.childNodes);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function Yt(e, t) {
|
|
195
195
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
196
196
|
t);
|
|
197
197
|
}
|
|
198
|
-
let
|
|
199
|
-
function
|
|
200
|
-
if (
|
|
201
|
-
|
|
198
|
+
let Ot;
|
|
199
|
+
function so() {
|
|
200
|
+
if (Ot === void 0) {
|
|
201
|
+
Ot = !1;
|
|
202
202
|
try {
|
|
203
203
|
typeof window != "undefined" && window.parent && window.parent.document;
|
|
204
204
|
} catch (e) {
|
|
205
|
-
|
|
205
|
+
Ot = !0;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
return
|
|
208
|
+
return Ot;
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function ao(e, t) {
|
|
211
211
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
212
212
|
const r = re("iframe");
|
|
213
213
|
r.setAttribute(
|
|
214
214
|
"style",
|
|
215
215
|
"display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
|
|
216
216
|
), r.setAttribute("aria-hidden", "true"), r.tabIndex = -1;
|
|
217
|
-
const i =
|
|
217
|
+
const i = so();
|
|
218
218
|
let o;
|
|
219
|
-
return i ? (r.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o =
|
|
219
|
+
return i ? (r.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = kt(
|
|
220
220
|
window,
|
|
221
221
|
"message",
|
|
222
222
|
/** @param {MessageEvent} event */
|
|
@@ -224,15 +224,15 @@ function lo(e, t) {
|
|
|
224
224
|
a.source === r.contentWindow && t();
|
|
225
225
|
}
|
|
226
226
|
)) : (r.src = "about:blank", r.onload = () => {
|
|
227
|
-
o =
|
|
227
|
+
o = kt(r.contentWindow, "resize", t), t();
|
|
228
228
|
}), J(e, r), () => {
|
|
229
229
|
(i || o && r.contentWindow) && o(), Ee(r);
|
|
230
230
|
};
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function uo(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
233
233
|
return new CustomEvent(e, { detail: t, bubbles: n, cancelable: r });
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function lo(e) {
|
|
236
236
|
const t = {};
|
|
237
237
|
return e.childNodes.forEach(
|
|
238
238
|
/** @param {Element} node */
|
|
@@ -241,151 +241,151 @@ function fo(e) {
|
|
|
241
241
|
}
|
|
242
242
|
), t;
|
|
243
243
|
}
|
|
244
|
-
const
|
|
245
|
-
let
|
|
246
|
-
function
|
|
244
|
+
const Ft = /* @__PURE__ */ new Map();
|
|
245
|
+
let Gt = 0;
|
|
246
|
+
function co(e) {
|
|
247
247
|
let t = 5381, n = e.length;
|
|
248
248
|
for (; n--; )
|
|
249
249
|
t = (t << 5) - t ^ e.charCodeAt(n);
|
|
250
250
|
return t >>> 0;
|
|
251
251
|
}
|
|
252
|
-
function
|
|
253
|
-
const n = { stylesheet:
|
|
254
|
-
return
|
|
252
|
+
function fo(e, t) {
|
|
253
|
+
const n = { stylesheet: io(t), rules: {} };
|
|
254
|
+
return Ft.set(e, n), n;
|
|
255
255
|
}
|
|
256
|
-
function
|
|
256
|
+
function fr(e, t, n, r, i, o, a, u = 0) {
|
|
257
257
|
const c = 16.666 / r;
|
|
258
258
|
let l = `{
|
|
259
259
|
`;
|
|
260
260
|
for (let C = 0; C <= 1; C += c) {
|
|
261
|
-
const
|
|
262
|
-
l += C * 100 + `%{${a(
|
|
261
|
+
const G = t + (n - t) * o(C);
|
|
262
|
+
l += C * 100 + `%{${a(G, 1 - G)}}
|
|
263
263
|
`;
|
|
264
264
|
}
|
|
265
265
|
const f = l + `100% {${a(n, 1 - n)}}
|
|
266
|
-
}`, _ = `__svelte_${
|
|
266
|
+
}`, _ = `__svelte_${co(f)}_${u}`, y = Hn(e), { stylesheet: M, rules: b } = Ft.get(y) || fo(y, e);
|
|
267
267
|
b[_] || (b[_] = !0, M.insertRule(`@keyframes ${_} ${f}`, M.cssRules.length));
|
|
268
268
|
const d = e.style.animation || "";
|
|
269
|
-
return e.style.animation = `${d ? `${d}, ` : ""}${_} ${r}ms linear ${i}ms 1 both`,
|
|
269
|
+
return e.style.animation = `${d ? `${d}, ` : ""}${_} ${r}ms linear ${i}ms 1 both`, Gt += 1, _;
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function ho(e, t) {
|
|
272
272
|
const n = (e.style.animation || "").split(", "), r = n.filter(
|
|
273
273
|
t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
|
|
274
274
|
// remove all Svelte animations
|
|
275
275
|
), i = n.length - r.length;
|
|
276
|
-
i && (e.style.animation = r.join(", "),
|
|
276
|
+
i && (e.style.animation = r.join(", "), Gt -= i, Gt || mo());
|
|
277
277
|
}
|
|
278
|
-
function
|
|
279
|
-
|
|
280
|
-
|
|
278
|
+
function mo() {
|
|
279
|
+
Nn(() => {
|
|
280
|
+
Gt || (Ft.forEach((e) => {
|
|
281
281
|
const { ownerNode: t } = e.stylesheet;
|
|
282
282
|
t && Ee(t);
|
|
283
|
-
}),
|
|
283
|
+
}), Ft.clear());
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
|
-
let
|
|
287
|
-
function
|
|
288
|
-
|
|
286
|
+
let pt;
|
|
287
|
+
function dt(e) {
|
|
288
|
+
pt = e;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
if (!
|
|
290
|
+
function ri() {
|
|
291
|
+
if (!pt)
|
|
292
292
|
throw new Error("Function called outside component initialization");
|
|
293
|
-
return
|
|
293
|
+
return pt;
|
|
294
294
|
}
|
|
295
|
-
function
|
|
296
|
-
|
|
295
|
+
function po(e) {
|
|
296
|
+
ri().$$.on_mount.push(e);
|
|
297
297
|
}
|
|
298
|
-
function
|
|
299
|
-
|
|
298
|
+
function go(e) {
|
|
299
|
+
ri().$$.on_destroy.push(e);
|
|
300
300
|
}
|
|
301
|
-
const
|
|
302
|
-
let
|
|
303
|
-
const
|
|
304
|
-
let
|
|
305
|
-
function
|
|
306
|
-
|
|
301
|
+
const We = [], jt = [];
|
|
302
|
+
let Xe = [];
|
|
303
|
+
const hr = [], _o = /* @__PURE__ */ Promise.resolve();
|
|
304
|
+
let yn = !1;
|
|
305
|
+
function bo() {
|
|
306
|
+
yn || (yn = !0, _o.then(le));
|
|
307
307
|
}
|
|
308
|
-
function
|
|
309
|
-
|
|
308
|
+
function Ye(e) {
|
|
309
|
+
Xe.push(e);
|
|
310
310
|
}
|
|
311
|
-
const
|
|
312
|
-
let
|
|
311
|
+
const an = /* @__PURE__ */ new Set();
|
|
312
|
+
let je = 0;
|
|
313
313
|
function le() {
|
|
314
|
-
if (
|
|
314
|
+
if (je !== 0)
|
|
315
315
|
return;
|
|
316
|
-
const e =
|
|
316
|
+
const e = pt;
|
|
317
317
|
do {
|
|
318
318
|
try {
|
|
319
|
-
for (;
|
|
320
|
-
const t =
|
|
321
|
-
|
|
319
|
+
for (; je < We.length; ) {
|
|
320
|
+
const t = We[je];
|
|
321
|
+
je++, dt(t), Eo(t.$$);
|
|
322
322
|
}
|
|
323
323
|
} catch (t) {
|
|
324
|
-
throw
|
|
324
|
+
throw We.length = 0, je = 0, t;
|
|
325
325
|
}
|
|
326
|
-
for (
|
|
327
|
-
|
|
328
|
-
for (let t = 0; t <
|
|
329
|
-
const n =
|
|
330
|
-
|
|
326
|
+
for (dt(null), We.length = 0, je = 0; jt.length; )
|
|
327
|
+
jt.pop()();
|
|
328
|
+
for (let t = 0; t < Xe.length; t += 1) {
|
|
329
|
+
const n = Xe[t];
|
|
330
|
+
an.has(n) || (an.add(n), n());
|
|
331
331
|
}
|
|
332
|
-
|
|
333
|
-
} while (
|
|
334
|
-
for (;
|
|
335
|
-
|
|
336
|
-
|
|
332
|
+
Xe.length = 0;
|
|
333
|
+
} while (We.length);
|
|
334
|
+
for (; hr.length; )
|
|
335
|
+
hr.pop()();
|
|
336
|
+
yn = !1, an.clear(), dt(e);
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function Eo(e) {
|
|
339
339
|
if (e.fragment !== null) {
|
|
340
|
-
e.update(),
|
|
340
|
+
e.update(), Ie(e.before_update);
|
|
341
341
|
const t = e.dirty;
|
|
342
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
342
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ye);
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function yo(e) {
|
|
346
346
|
const t = [], n = [];
|
|
347
|
-
|
|
347
|
+
Xe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Xe = t;
|
|
348
348
|
}
|
|
349
|
-
let
|
|
350
|
-
function
|
|
351
|
-
return
|
|
352
|
-
|
|
353
|
-
})),
|
|
349
|
+
let ot;
|
|
350
|
+
function xo() {
|
|
351
|
+
return ot || (ot = Promise.resolve(), ot.then(() => {
|
|
352
|
+
ot = null;
|
|
353
|
+
})), ot;
|
|
354
354
|
}
|
|
355
|
-
function
|
|
356
|
-
e.dispatchEvent(
|
|
355
|
+
function un(e, t, n) {
|
|
356
|
+
e.dispatchEvent(uo(`${t ? "intro" : "outro"}${n}`));
|
|
357
357
|
}
|
|
358
|
-
const
|
|
359
|
-
let
|
|
360
|
-
function
|
|
361
|
-
|
|
358
|
+
const Pt = /* @__PURE__ */ new Set();
|
|
359
|
+
let Me;
|
|
360
|
+
function ii() {
|
|
361
|
+
Me = {
|
|
362
362
|
r: 0,
|
|
363
363
|
c: [],
|
|
364
|
-
p:
|
|
364
|
+
p: Me
|
|
365
365
|
// parent group
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
|
|
368
|
+
function oi() {
|
|
369
|
+
Me.r || Ie(Me.c), Me = Me.p;
|
|
370
370
|
}
|
|
371
371
|
function we(e, t) {
|
|
372
|
-
e && e.i && (
|
|
372
|
+
e && e.i && (Pt.delete(e), e.i(t));
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function Ne(e, t, n, r) {
|
|
375
375
|
if (e && e.o) {
|
|
376
|
-
if (
|
|
376
|
+
if (Pt.has(e))
|
|
377
377
|
return;
|
|
378
|
-
|
|
379
|
-
|
|
378
|
+
Pt.add(e), Me.c.push(() => {
|
|
379
|
+
Pt.delete(e), r && (n && e.d(1), r());
|
|
380
380
|
}), e.o(t);
|
|
381
381
|
} else
|
|
382
382
|
r && r();
|
|
383
383
|
}
|
|
384
|
-
const
|
|
385
|
-
function
|
|
384
|
+
const To = { duration: 0 };
|
|
385
|
+
function mr(e, t, n, r) {
|
|
386
386
|
let o = t(e, n, { direction: "both" }), a = r ? 0 : 1, u = null, c = null, l = null, f;
|
|
387
387
|
function _() {
|
|
388
|
-
l &&
|
|
388
|
+
l && ho(e, l);
|
|
389
389
|
}
|
|
390
390
|
function y(b, d) {
|
|
391
391
|
const C = (
|
|
@@ -406,29 +406,29 @@ function pr(e, t, n, r) {
|
|
|
406
406
|
const {
|
|
407
407
|
delay: d = 0,
|
|
408
408
|
duration: C = 300,
|
|
409
|
-
easing:
|
|
409
|
+
easing: G = Yr,
|
|
410
410
|
tick: $ = de,
|
|
411
411
|
css: w
|
|
412
|
-
} = o ||
|
|
413
|
-
start:
|
|
412
|
+
} = o || To, H = {
|
|
413
|
+
start: to() + d,
|
|
414
414
|
b
|
|
415
415
|
};
|
|
416
|
-
b || (H.group =
|
|
417
|
-
e.inert, e.inert = !0)), u || c ? c = H : (w && (_(), l =
|
|
418
|
-
if (c &&
|
|
416
|
+
b || (H.group = Me, Me.r += 1), "inert" in e && (b ? f !== void 0 && (e.inert = f) : (f = /** @type {HTMLElement} */
|
|
417
|
+
e.inert, e.inert = !0)), u || c ? c = H : (w && (_(), l = fr(e, a, b, C, d, G, w)), b && $(0, 1), u = y(H, C), Ye(() => un(e, b, "start")), no((P) => {
|
|
418
|
+
if (c && P > c.start && (u = y(c, C), c = null, un(e, u.b, "start"), w && (_(), l = fr(
|
|
419
419
|
e,
|
|
420
420
|
a,
|
|
421
421
|
u.b,
|
|
422
422
|
u.duration,
|
|
423
423
|
0,
|
|
424
|
-
|
|
424
|
+
G,
|
|
425
425
|
o.css
|
|
426
426
|
))), u) {
|
|
427
|
-
if (
|
|
428
|
-
$(a = u.b, 1 - a),
|
|
429
|
-
else if (
|
|
430
|
-
const
|
|
431
|
-
a = u.a + u.d * F
|
|
427
|
+
if (P >= u.end)
|
|
428
|
+
$(a = u.b, 1 - a), un(e, u.b, "end"), c || (u.b ? _() : --u.group.r || Ie(u.group.c)), u = null;
|
|
429
|
+
else if (P >= u.start) {
|
|
430
|
+
const F = P - u.start;
|
|
431
|
+
a = u.a + u.d * G(F / u.duration), $(a, 1 - a);
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
434
|
return !!(u || c);
|
|
@@ -436,7 +436,7 @@ function pr(e, t, n, r) {
|
|
|
436
436
|
}
|
|
437
437
|
return {
|
|
438
438
|
run(b) {
|
|
439
|
-
|
|
439
|
+
Xt(o) ? xo().then(() => {
|
|
440
440
|
o = o({ direction: b ? "in" : "out" }), M(b);
|
|
441
441
|
}) : M(b);
|
|
442
442
|
},
|
|
@@ -445,23 +445,23 @@ function pr(e, t, n, r) {
|
|
|
445
445
|
}
|
|
446
446
|
};
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function vo(e, t, n) {
|
|
449
449
|
const { fragment: r, after_update: i } = e.$$;
|
|
450
|
-
r && r.m(t, n),
|
|
451
|
-
const o = e.$$.on_mount.map(
|
|
452
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
453
|
-
}), i.forEach(
|
|
450
|
+
r && r.m(t, n), Ye(() => {
|
|
451
|
+
const o = e.$$.on_mount.map(Zr).filter(Xt);
|
|
452
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ie(o), e.$$.on_mount = [];
|
|
453
|
+
}), i.forEach(Ye);
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function So(e, t) {
|
|
456
456
|
const n = e.$$;
|
|
457
|
-
n.fragment !== null && (
|
|
457
|
+
n.fragment !== null && (yo(n.after_update), Ie(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
458
458
|
}
|
|
459
|
-
function
|
|
460
|
-
e.$$.dirty[0] === -1 && (
|
|
459
|
+
function wo(e, t) {
|
|
460
|
+
e.$$.dirty[0] === -1 && (We.push(e), bo(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
461
461
|
}
|
|
462
|
-
function
|
|
463
|
-
const c =
|
|
464
|
-
|
|
462
|
+
function Ao(e, t, n, r, i, o, a = null, u = [-1]) {
|
|
463
|
+
const c = pt;
|
|
464
|
+
dt(e);
|
|
465
465
|
const l = e.$$ = {
|
|
466
466
|
fragment: null,
|
|
467
467
|
ctx: [],
|
|
@@ -469,7 +469,7 @@ function Mo(e, t, n, r, i, o, a = null, u = [-1]) {
|
|
|
469
469
|
props: o,
|
|
470
470
|
update: de,
|
|
471
471
|
not_equal: i,
|
|
472
|
-
bound:
|
|
472
|
+
bound: ar(),
|
|
473
473
|
// lifecycle
|
|
474
474
|
on_mount: [],
|
|
475
475
|
on_destroy: [],
|
|
@@ -478,7 +478,7 @@ function Mo(e, t, n, r, i, o, a = null, u = [-1]) {
|
|
|
478
478
|
after_update: [],
|
|
479
479
|
context: new Map(t.context || (c ? c.$$.context : [])),
|
|
480
480
|
// everything else
|
|
481
|
-
callbacks:
|
|
481
|
+
callbacks: ar(),
|
|
482
482
|
dirty: u,
|
|
483
483
|
skip_bound: !1,
|
|
484
484
|
root: t.target || c.$$.root
|
|
@@ -487,19 +487,19 @@ function Mo(e, t, n, r, i, o, a = null, u = [-1]) {
|
|
|
487
487
|
let f = !1;
|
|
488
488
|
if (l.ctx = n ? n(e, t.props || {}, (_, y, ...M) => {
|
|
489
489
|
const b = M.length ? M[0] : y;
|
|
490
|
-
return l.ctx && i(l.ctx[_], l.ctx[_] = b) && (!l.skip_bound && l.bound[_] && l.bound[_](b), f &&
|
|
491
|
-
}) : [], l.update(), f = !0,
|
|
490
|
+
return l.ctx && i(l.ctx[_], l.ctx[_] = b) && (!l.skip_bound && l.bound[_] && l.bound[_](b), f && wo(e, _)), y;
|
|
491
|
+
}) : [], l.update(), f = !0, Ie(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
|
|
492
492
|
if (t.hydrate) {
|
|
493
|
-
const _ =
|
|
493
|
+
const _ = oo(t.target);
|
|
494
494
|
l.fragment && l.fragment.l(_), _.forEach(Ee);
|
|
495
495
|
} else
|
|
496
496
|
l.fragment && l.fragment.c();
|
|
497
|
-
t.intro && we(e.$$.fragment),
|
|
497
|
+
t.intro && we(e.$$.fragment), vo(e, t.target, t.anchor), le();
|
|
498
498
|
}
|
|
499
|
-
|
|
499
|
+
dt(c);
|
|
500
500
|
}
|
|
501
|
-
let
|
|
502
|
-
typeof HTMLElement == "function" && (
|
|
501
|
+
let si;
|
|
502
|
+
typeof HTMLElement == "function" && (si = class extends HTMLElement {
|
|
503
503
|
constructor(t, n, r) {
|
|
504
504
|
super();
|
|
505
505
|
/** The Svelte component constructor */
|
|
@@ -536,21 +536,21 @@ typeof HTMLElement == "function" && (ui = class extends HTMLElement {
|
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
connectedCallback() {
|
|
539
|
-
return
|
|
539
|
+
return sr(this, null, function* () {
|
|
540
540
|
if (this.$$cn = !0, !this.$$c) {
|
|
541
541
|
let t = function(o) {
|
|
542
542
|
return () => {
|
|
543
543
|
let a;
|
|
544
544
|
return {
|
|
545
545
|
c: function() {
|
|
546
|
-
a = re("slot"), o !== "default" &&
|
|
546
|
+
a = re("slot"), o !== "default" && V(a, "name", o);
|
|
547
547
|
},
|
|
548
548
|
/**
|
|
549
549
|
* @param {HTMLElement} target
|
|
550
550
|
* @param {HTMLElement} [anchor]
|
|
551
551
|
*/
|
|
552
552
|
m: function(l, f) {
|
|
553
|
-
|
|
553
|
+
Ce(l, a, f);
|
|
554
554
|
},
|
|
555
555
|
d: function(l) {
|
|
556
556
|
l && Ee(a);
|
|
@@ -560,18 +560,18 @@ typeof HTMLElement == "function" && (ui = class extends HTMLElement {
|
|
|
560
560
|
};
|
|
561
561
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
562
562
|
return;
|
|
563
|
-
const n = {}, r =
|
|
563
|
+
const n = {}, r = lo(this);
|
|
564
564
|
for (const o of this.$$s)
|
|
565
565
|
o in r && (n[o] = [t(o)]);
|
|
566
566
|
for (const o of this.attributes) {
|
|
567
567
|
const a = this.$$g_p(o.name);
|
|
568
|
-
a in this.$$d || (this.$$d[a] =
|
|
568
|
+
a in this.$$d || (this.$$d[a] = Dt(a, o.value, this.$$p_d, "toProp"));
|
|
569
569
|
}
|
|
570
570
|
for (const o in this.$$p_d)
|
|
571
571
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
572
572
|
this.$$c = new this.$$ctor({
|
|
573
573
|
target: this.shadowRoot || this,
|
|
574
|
-
props:
|
|
574
|
+
props: or(ir({}, this.$$d), {
|
|
575
575
|
$$slots: n,
|
|
576
576
|
$$scope: {
|
|
577
577
|
ctx: []
|
|
@@ -582,7 +582,7 @@ typeof HTMLElement == "function" && (ui = class extends HTMLElement {
|
|
|
582
582
|
this.$$r = !0;
|
|
583
583
|
for (const o in this.$$p_d)
|
|
584
584
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
585
|
-
const a =
|
|
585
|
+
const a = Dt(
|
|
586
586
|
o,
|
|
587
587
|
this.$$d[o],
|
|
588
588
|
this.$$p_d,
|
|
@@ -606,7 +606,7 @@ typeof HTMLElement == "function" && (ui = class extends HTMLElement {
|
|
|
606
606
|
// and setting attributes through setAttribute etc, this is helpful
|
|
607
607
|
attributeChangedCallback(t, n, r) {
|
|
608
608
|
var i;
|
|
609
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
609
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Dt(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
610
610
|
}
|
|
611
611
|
disconnectedCallback() {
|
|
612
612
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -619,7 +619,7 @@ typeof HTMLElement == "function" && (ui = class extends HTMLElement {
|
|
|
619
619
|
) || t;
|
|
620
620
|
}
|
|
621
621
|
});
|
|
622
|
-
function
|
|
622
|
+
function Dt(e, t, n, r) {
|
|
623
623
|
var o;
|
|
624
624
|
const i = (o = n[e]) == null ? void 0 : o.type;
|
|
625
625
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
@@ -649,8 +649,8 @@ function Bt(e, t, n, r) {
|
|
|
649
649
|
return t;
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
|
-
function
|
|
653
|
-
let a = class extends
|
|
652
|
+
function Oo(e, t, n, r, i, o) {
|
|
653
|
+
let a = class extends si {
|
|
654
654
|
constructor() {
|
|
655
655
|
super(e, n, i), this.$$p_d = t;
|
|
656
656
|
}
|
|
@@ -667,7 +667,7 @@ function Co(e, t, n, r, i, o) {
|
|
|
667
667
|
},
|
|
668
668
|
set(c) {
|
|
669
669
|
var l;
|
|
670
|
-
c =
|
|
670
|
+
c = Dt(u, c, t), this.$$d[u] = c, (l = this.$$c) == null || l.$set({ [u]: c });
|
|
671
671
|
}
|
|
672
672
|
});
|
|
673
673
|
}), r.forEach((u) => {
|
|
@@ -680,7 +680,7 @@ function Co(e, t, n, r, i, o) {
|
|
|
680
680
|
}), e.element = /** @type {any} */
|
|
681
681
|
a, a;
|
|
682
682
|
}
|
|
683
|
-
class
|
|
683
|
+
class Mo {
|
|
684
684
|
constructor() {
|
|
685
685
|
/**
|
|
686
686
|
* ### PRIVATE API
|
|
@@ -701,7 +701,7 @@ class Lo {
|
|
|
701
701
|
}
|
|
702
702
|
/** @returns {void} */
|
|
703
703
|
$destroy() {
|
|
704
|
-
|
|
704
|
+
So(this, 1), this.$destroy = de;
|
|
705
705
|
}
|
|
706
706
|
/**
|
|
707
707
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -710,7 +710,7 @@ class Lo {
|
|
|
710
710
|
* @returns {() => void}
|
|
711
711
|
*/
|
|
712
712
|
$on(t, n) {
|
|
713
|
-
if (!
|
|
713
|
+
if (!Xt(n))
|
|
714
714
|
return de;
|
|
715
715
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
716
716
|
return r.push(n), () => {
|
|
@@ -723,12 +723,12 @@ class Lo {
|
|
|
723
723
|
* @returns {void}
|
|
724
724
|
*/
|
|
725
725
|
$set(t) {
|
|
726
|
-
this.$$set && !
|
|
726
|
+
this.$$set && !eo(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
|
-
const
|
|
730
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
731
|
-
function
|
|
729
|
+
const Co = "4";
|
|
730
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Co);
|
|
731
|
+
function dr(e, { delay: t = 0, duration: n = 400, easing: r = Yr } = {}) {
|
|
732
732
|
const i = +getComputedStyle(e).opacity;
|
|
733
733
|
return {
|
|
734
734
|
delay: t,
|
|
@@ -737,24 +737,24 @@ function gr(e, { delay: t = 0, duration: n = 400, easing: r = qr } = {}) {
|
|
|
737
737
|
css: (o) => `opacity: ${o * i}`
|
|
738
738
|
};
|
|
739
739
|
}
|
|
740
|
-
const
|
|
741
|
-
function
|
|
740
|
+
const ze = [];
|
|
741
|
+
function Lo(e, t) {
|
|
742
742
|
return {
|
|
743
|
-
subscribe:
|
|
743
|
+
subscribe: bt(e, t).subscribe
|
|
744
744
|
};
|
|
745
745
|
}
|
|
746
|
-
function
|
|
746
|
+
function bt(e, t = de) {
|
|
747
747
|
let n;
|
|
748
748
|
const r = /* @__PURE__ */ new Set();
|
|
749
749
|
function i(u) {
|
|
750
|
-
if (
|
|
751
|
-
const c = !
|
|
750
|
+
if (qr(e, u) && (e = u, n)) {
|
|
751
|
+
const c = !ze.length;
|
|
752
752
|
for (const l of r)
|
|
753
|
-
l[1](),
|
|
753
|
+
l[1](), ze.push(l, e);
|
|
754
754
|
if (c) {
|
|
755
|
-
for (let l = 0; l <
|
|
756
|
-
|
|
757
|
-
|
|
755
|
+
for (let l = 0; l < ze.length; l += 2)
|
|
756
|
+
ze[l][0](ze[l + 1]);
|
|
757
|
+
ze.length = 0;
|
|
758
758
|
}
|
|
759
759
|
}
|
|
760
760
|
}
|
|
@@ -769,12 +769,12 @@ function Et(e, t = de) {
|
|
|
769
769
|
}
|
|
770
770
|
return { set: i, update: o, subscribe: a };
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function et(e, t, n) {
|
|
773
773
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
774
774
|
if (!i.every(Boolean))
|
|
775
775
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
776
776
|
const o = t.length < 2;
|
|
777
|
-
return
|
|
777
|
+
return Lo(n, (a, u) => {
|
|
778
778
|
let c = !1;
|
|
779
779
|
const l = [];
|
|
780
780
|
let f = 0, _ = de;
|
|
@@ -783,9 +783,9 @@ function tt(e, t, n) {
|
|
|
783
783
|
return;
|
|
784
784
|
_();
|
|
785
785
|
const b = t(r ? l[0] : l, a, u);
|
|
786
|
-
o ? a(b) : _ =
|
|
786
|
+
o ? a(b) : _ = Xt(b) ? b : de;
|
|
787
787
|
}, M = i.map(
|
|
788
|
-
(b, d) =>
|
|
788
|
+
(b, d) => Jr(
|
|
789
789
|
b,
|
|
790
790
|
(C) => {
|
|
791
791
|
l[d] = C, f &= ~(1 << d), c && y();
|
|
@@ -796,113 +796,127 @@ function tt(e, t, n) {
|
|
|
796
796
|
)
|
|
797
797
|
);
|
|
798
798
|
return c = !0, y(), function() {
|
|
799
|
-
|
|
799
|
+
Ie(M), _(), c = !1;
|
|
800
800
|
};
|
|
801
801
|
});
|
|
802
802
|
}
|
|
803
|
-
var
|
|
804
|
-
function
|
|
803
|
+
var ai = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
804
|
+
function In(e) {
|
|
805
805
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
806
806
|
}
|
|
807
|
-
var
|
|
808
|
-
return
|
|
807
|
+
var No = function(t) {
|
|
808
|
+
return Ho(t) && !Io(t);
|
|
809
809
|
};
|
|
810
|
-
function
|
|
810
|
+
function Ho(e) {
|
|
811
811
|
return !!e && typeof e == "object";
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function Io(e) {
|
|
814
814
|
var t = Object.prototype.toString.call(e);
|
|
815
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
815
|
+
return t === "[object RegExp]" || t === "[object Date]" || Do(e);
|
|
816
816
|
}
|
|
817
|
-
var
|
|
818
|
-
function
|
|
819
|
-
return e.$$typeof ===
|
|
817
|
+
var Ro = typeof Symbol == "function" && Symbol.for, Po = Ro ? Symbol.for("react.element") : 60103;
|
|
818
|
+
function Do(e) {
|
|
819
|
+
return e.$$typeof === Po;
|
|
820
820
|
}
|
|
821
|
-
function
|
|
821
|
+
function Bo(e) {
|
|
822
822
|
return Array.isArray(e) ? [] : {};
|
|
823
823
|
}
|
|
824
|
-
function
|
|
825
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
824
|
+
function gt(e, t) {
|
|
825
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ze(Bo(e), e, t) : e;
|
|
826
826
|
}
|
|
827
|
-
function
|
|
827
|
+
function $o(e, t, n) {
|
|
828
828
|
return e.concat(t).map(function(r) {
|
|
829
|
-
return
|
|
829
|
+
return gt(r, n);
|
|
830
830
|
});
|
|
831
831
|
}
|
|
832
|
-
function
|
|
832
|
+
function Uo(e, t) {
|
|
833
833
|
if (!t.customMerge)
|
|
834
|
-
return
|
|
834
|
+
return Ze;
|
|
835
835
|
var n = t.customMerge(e);
|
|
836
|
-
return typeof n == "function" ? n :
|
|
836
|
+
return typeof n == "function" ? n : Ze;
|
|
837
837
|
}
|
|
838
|
-
function
|
|
838
|
+
function ko(e) {
|
|
839
839
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
840
840
|
return Object.propertyIsEnumerable.call(e, t);
|
|
841
841
|
}) : [];
|
|
842
842
|
}
|
|
843
|
-
function
|
|
844
|
-
return Object.keys(e).concat(
|
|
843
|
+
function pr(e) {
|
|
844
|
+
return Object.keys(e).concat(ko(e));
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function ui(e, t) {
|
|
847
847
|
try {
|
|
848
848
|
return t in e;
|
|
849
849
|
} catch (n) {
|
|
850
850
|
return !1;
|
|
851
851
|
}
|
|
852
852
|
}
|
|
853
|
-
function
|
|
854
|
-
return
|
|
853
|
+
function Fo(e, t) {
|
|
854
|
+
return ui(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
855
855
|
}
|
|
856
|
-
function
|
|
856
|
+
function Go(e, t, n) {
|
|
857
857
|
var r = {};
|
|
858
|
-
return n.isMergeableObject(e) &&
|
|
859
|
-
r[i] =
|
|
860
|
-
}),
|
|
861
|
-
|
|
858
|
+
return n.isMergeableObject(e) && pr(e).forEach(function(i) {
|
|
859
|
+
r[i] = gt(e[i], n);
|
|
860
|
+
}), pr(t).forEach(function(i) {
|
|
861
|
+
Fo(e, i) || (ui(e, i) && n.isMergeableObject(t[i]) ? r[i] = Uo(i, n)(e[i], t[i], n) : r[i] = gt(t[i], n));
|
|
862
862
|
}), r;
|
|
863
863
|
}
|
|
864
|
-
function
|
|
865
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
864
|
+
function Ze(e, t, n) {
|
|
865
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || $o, n.isMergeableObject = n.isMergeableObject || No, n.cloneUnlessOtherwiseSpecified = gt;
|
|
866
866
|
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
867
|
-
return o ? r ? n.arrayMerge(e, t, n) :
|
|
867
|
+
return o ? r ? n.arrayMerge(e, t, n) : Go(e, t, n) : gt(t, n);
|
|
868
868
|
}
|
|
869
|
-
|
|
869
|
+
Ze.all = function(t, n) {
|
|
870
870
|
if (!Array.isArray(t))
|
|
871
871
|
throw new Error("first argument should be an array");
|
|
872
872
|
return t.reduce(function(r, i) {
|
|
873
|
-
return
|
|
873
|
+
return Ze(r, i, n);
|
|
874
874
|
}, {});
|
|
875
875
|
};
|
|
876
|
-
var
|
|
877
|
-
const
|
|
878
|
-
|
|
879
|
-
|
|
876
|
+
var jo = Ze, zo = jo;
|
|
877
|
+
const Wo = /* @__PURE__ */ In(zo);
|
|
878
|
+
/*! *****************************************************************************
|
|
879
|
+
Copyright (c) Microsoft Corporation.
|
|
880
|
+
|
|
881
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
882
|
+
purpose with or without fee is hereby granted.
|
|
883
|
+
|
|
884
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
885
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
886
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
887
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
888
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
889
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
890
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
891
|
+
***************************************************************************** */
|
|
892
|
+
var xn = function(e, t) {
|
|
893
|
+
return xn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
880
894
|
n.__proto__ = r;
|
|
881
895
|
} || function(n, r) {
|
|
882
896
|
for (var i in r)
|
|
883
897
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
884
|
-
},
|
|
898
|
+
}, xn(e, t);
|
|
885
899
|
};
|
|
886
|
-
function
|
|
900
|
+
function Zt(e, t) {
|
|
887
901
|
if (typeof t != "function" && t !== null)
|
|
888
902
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
889
|
-
|
|
903
|
+
xn(e, t);
|
|
890
904
|
function n() {
|
|
891
905
|
this.constructor = e;
|
|
892
906
|
}
|
|
893
907
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
894
908
|
}
|
|
895
|
-
var
|
|
896
|
-
return
|
|
909
|
+
var k = function() {
|
|
910
|
+
return k = Object.assign || function(t) {
|
|
897
911
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
898
912
|
n = arguments[r];
|
|
899
913
|
for (var o in n)
|
|
900
914
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
901
915
|
}
|
|
902
916
|
return t;
|
|
903
|
-
},
|
|
917
|
+
}, k.apply(this, arguments);
|
|
904
918
|
};
|
|
905
|
-
function
|
|
919
|
+
function Vo(e, t) {
|
|
906
920
|
var n = {};
|
|
907
921
|
for (var r in e)
|
|
908
922
|
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
@@ -911,43 +925,43 @@ function Yo(e, t) {
|
|
|
911
925
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
912
926
|
return n;
|
|
913
927
|
}
|
|
914
|
-
function
|
|
915
|
-
if (
|
|
928
|
+
function ln(e, t, n) {
|
|
929
|
+
if (arguments.length === 2)
|
|
916
930
|
for (var r = 0, i = t.length, o; r < i; r++)
|
|
917
931
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
918
|
-
return e.concat(o ||
|
|
932
|
+
return e.concat(o || t);
|
|
919
933
|
}
|
|
920
|
-
function
|
|
921
|
-
var n = t && t.cache ? t.cache :
|
|
934
|
+
function cn(e, t) {
|
|
935
|
+
var n = t && t.cache ? t.cache : Ko, r = t && t.serializer ? t.serializer : Jo, i = t && t.strategy ? t.strategy : Zo;
|
|
922
936
|
return i(e, {
|
|
923
937
|
cache: n,
|
|
924
938
|
serializer: r
|
|
925
939
|
});
|
|
926
940
|
}
|
|
927
|
-
function
|
|
941
|
+
function Xo(e) {
|
|
928
942
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
929
943
|
}
|
|
930
|
-
function
|
|
931
|
-
var i =
|
|
944
|
+
function Yo(e, t, n, r) {
|
|
945
|
+
var i = Xo(r) ? r : n(r), o = t.get(i);
|
|
932
946
|
return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
|
|
933
947
|
}
|
|
934
|
-
function
|
|
948
|
+
function li(e, t, n) {
|
|
935
949
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
936
950
|
return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
937
951
|
}
|
|
938
|
-
function
|
|
952
|
+
function ci(e, t, n, r, i) {
|
|
939
953
|
return n.bind(t, e, r, i);
|
|
940
954
|
}
|
|
941
|
-
function
|
|
942
|
-
var n = e.length === 1 ?
|
|
943
|
-
return
|
|
955
|
+
function Zo(e, t) {
|
|
956
|
+
var n = e.length === 1 ? Yo : li;
|
|
957
|
+
return ci(e, this, n, t.cache.create(), t.serializer);
|
|
944
958
|
}
|
|
945
|
-
function
|
|
946
|
-
return
|
|
959
|
+
function qo(e, t) {
|
|
960
|
+
return ci(e, this, li, t.cache.create(), t.serializer);
|
|
947
961
|
}
|
|
948
|
-
var
|
|
962
|
+
var Jo = function() {
|
|
949
963
|
return JSON.stringify(arguments);
|
|
950
|
-
},
|
|
964
|
+
}, Qo = (
|
|
951
965
|
/** @class */
|
|
952
966
|
function() {
|
|
953
967
|
function e() {
|
|
@@ -959,71 +973,61 @@ var Ko = function() {
|
|
|
959
973
|
this.cache[t] = n;
|
|
960
974
|
}, e;
|
|
961
975
|
}()
|
|
962
|
-
),
|
|
976
|
+
), Ko = {
|
|
963
977
|
create: function() {
|
|
964
|
-
return new
|
|
978
|
+
return new Qo();
|
|
965
979
|
}
|
|
966
|
-
},
|
|
967
|
-
variadic:
|
|
968
|
-
},
|
|
969
|
-
return Wt = Object.assign || function(t) {
|
|
970
|
-
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
971
|
-
n = arguments[r];
|
|
972
|
-
for (var o in n)
|
|
973
|
-
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
974
|
-
}
|
|
975
|
-
return t;
|
|
976
|
-
}, Wt.apply(this, arguments);
|
|
977
|
-
};
|
|
978
|
-
var D;
|
|
980
|
+
}, fn = {
|
|
981
|
+
variadic: qo
|
|
982
|
+
}, D;
|
|
979
983
|
(function(e) {
|
|
980
984
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
981
985
|
})(D || (D = {}));
|
|
982
|
-
var
|
|
986
|
+
var Y;
|
|
983
987
|
(function(e) {
|
|
984
988
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
985
|
-
})(
|
|
986
|
-
var
|
|
989
|
+
})(Y || (Y = {}));
|
|
990
|
+
var qe;
|
|
987
991
|
(function(e) {
|
|
988
992
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
989
|
-
})(
|
|
990
|
-
function
|
|
991
|
-
return e.type ===
|
|
993
|
+
})(qe || (qe = {}));
|
|
994
|
+
function gr(e) {
|
|
995
|
+
return e.type === Y.literal;
|
|
992
996
|
}
|
|
993
|
-
function
|
|
994
|
-
return e.type ===
|
|
997
|
+
function es(e) {
|
|
998
|
+
return e.type === Y.argument;
|
|
999
|
+
}
|
|
1000
|
+
function fi(e) {
|
|
1001
|
+
return e.type === Y.number;
|
|
1002
|
+
}
|
|
1003
|
+
function hi(e) {
|
|
1004
|
+
return e.type === Y.date;
|
|
995
1005
|
}
|
|
996
1006
|
function mi(e) {
|
|
997
|
-
return e.type ===
|
|
1007
|
+
return e.type === Y.time;
|
|
998
1008
|
}
|
|
999
1009
|
function di(e) {
|
|
1000
|
-
return e.type ===
|
|
1010
|
+
return e.type === Y.select;
|
|
1001
1011
|
}
|
|
1002
1012
|
function pi(e) {
|
|
1003
|
-
return e.type ===
|
|
1013
|
+
return e.type === Y.plural;
|
|
1014
|
+
}
|
|
1015
|
+
function ts(e) {
|
|
1016
|
+
return e.type === Y.pound;
|
|
1004
1017
|
}
|
|
1005
1018
|
function gi(e) {
|
|
1006
|
-
return e.type ===
|
|
1019
|
+
return e.type === Y.tag;
|
|
1007
1020
|
}
|
|
1008
1021
|
function _i(e) {
|
|
1009
|
-
return e.type ===
|
|
1010
|
-
}
|
|
1011
|
-
function rs(e) {
|
|
1012
|
-
return e.type === X.pound;
|
|
1013
|
-
}
|
|
1014
|
-
function bi(e) {
|
|
1015
|
-
return e.type === X.tag;
|
|
1016
|
-
}
|
|
1017
|
-
function Ei(e) {
|
|
1018
|
-
return !!(e && typeof e == "object" && e.type === Je.number);
|
|
1022
|
+
return !!(e && typeof e == "object" && e.type === qe.number);
|
|
1019
1023
|
}
|
|
1020
|
-
function
|
|
1021
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1024
|
+
function Tn(e) {
|
|
1025
|
+
return !!(e && typeof e == "object" && e.type === qe.dateTime);
|
|
1022
1026
|
}
|
|
1023
|
-
var
|
|
1024
|
-
function
|
|
1027
|
+
var bi = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ns = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
1028
|
+
function rs(e) {
|
|
1025
1029
|
var t = {};
|
|
1026
|
-
return e.replace(
|
|
1030
|
+
return e.replace(ns, function(n) {
|
|
1027
1031
|
var r = n.length;
|
|
1028
1032
|
switch (n[0]) {
|
|
1029
1033
|
case "G":
|
|
@@ -1112,21 +1116,11 @@ function os(e) {
|
|
|
1112
1116
|
return "";
|
|
1113
1117
|
}), t;
|
|
1114
1118
|
}
|
|
1115
|
-
var
|
|
1116
|
-
|
|
1117
|
-
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
1118
|
-
n = arguments[r];
|
|
1119
|
-
for (var o in n)
|
|
1120
|
-
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
1121
|
-
}
|
|
1122
|
-
return t;
|
|
1123
|
-
}, Z.apply(this, arguments);
|
|
1124
|
-
};
|
|
1125
|
-
var ss = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1126
|
-
function as(e) {
|
|
1119
|
+
var is = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1120
|
+
function os(e) {
|
|
1127
1121
|
if (e.length === 0)
|
|
1128
1122
|
throw new Error("Number skeleton cannot be empty");
|
|
1129
|
-
for (var t = e.split(
|
|
1123
|
+
for (var t = e.split(is).filter(function(y) {
|
|
1130
1124
|
return y.length > 0;
|
|
1131
1125
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
1132
1126
|
var o = i[r], a = o.split("/");
|
|
@@ -1141,17 +1135,17 @@ function as(e) {
|
|
|
1141
1135
|
}
|
|
1142
1136
|
return n;
|
|
1143
1137
|
}
|
|
1144
|
-
function
|
|
1138
|
+
function ss(e) {
|
|
1145
1139
|
return e.replace(/^(.*?)-/, "");
|
|
1146
1140
|
}
|
|
1147
|
-
var
|
|
1148
|
-
function
|
|
1141
|
+
var _r = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ei = /^(@+)?(\+|#+)?[rs]?$/g, as = /(\*)(0+)|(#+)(0+)|(0+)/g, yi = /^(0+)$/;
|
|
1142
|
+
function br(e) {
|
|
1149
1143
|
var t = {};
|
|
1150
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1144
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ei, function(n, r, i) {
|
|
1151
1145
|
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1152
1146
|
}), t;
|
|
1153
1147
|
}
|
|
1154
|
-
function
|
|
1148
|
+
function xi(e) {
|
|
1155
1149
|
switch (e) {
|
|
1156
1150
|
case "sign-auto":
|
|
1157
1151
|
return {
|
|
@@ -1191,7 +1185,7 @@ function Ti(e) {
|
|
|
1191
1185
|
};
|
|
1192
1186
|
}
|
|
1193
1187
|
}
|
|
1194
|
-
function
|
|
1188
|
+
function us(e) {
|
|
1195
1189
|
var t;
|
|
1196
1190
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1197
1191
|
notation: "engineering"
|
|
@@ -1199,17 +1193,17 @@ function cs(e) {
|
|
|
1199
1193
|
notation: "scientific"
|
|
1200
1194
|
}, e = e.slice(1)), t) {
|
|
1201
1195
|
var n = e.slice(0, 2);
|
|
1202
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1196
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !yi.test(e))
|
|
1203
1197
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1204
1198
|
t.minimumIntegerDigits = e.length;
|
|
1205
1199
|
}
|
|
1206
1200
|
return t;
|
|
1207
1201
|
}
|
|
1208
|
-
function
|
|
1209
|
-
var t = {}, n =
|
|
1202
|
+
function Er(e) {
|
|
1203
|
+
var t = {}, n = xi(e);
|
|
1210
1204
|
return n || t;
|
|
1211
1205
|
}
|
|
1212
|
-
function
|
|
1206
|
+
function ls(e) {
|
|
1213
1207
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1214
1208
|
var i = r[n];
|
|
1215
1209
|
switch (i.stem) {
|
|
@@ -1233,7 +1227,7 @@ function fs(e) {
|
|
|
1233
1227
|
continue;
|
|
1234
1228
|
case "measure-unit":
|
|
1235
1229
|
case "unit":
|
|
1236
|
-
t.style = "unit", t.unit =
|
|
1230
|
+
t.style = "unit", t.unit = ss(i.options[0]);
|
|
1237
1231
|
continue;
|
|
1238
1232
|
case "compact-short":
|
|
1239
1233
|
case "K":
|
|
@@ -1244,13 +1238,13 @@ function fs(e) {
|
|
|
1244
1238
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1245
1239
|
continue;
|
|
1246
1240
|
case "scientific":
|
|
1247
|
-
t =
|
|
1248
|
-
return
|
|
1241
|
+
t = k(k(k({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
|
|
1242
|
+
return k(k({}, c), Er(l));
|
|
1249
1243
|
}, {}));
|
|
1250
1244
|
continue;
|
|
1251
1245
|
case "engineering":
|
|
1252
|
-
t =
|
|
1253
|
-
return
|
|
1246
|
+
t = k(k(k({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
|
|
1247
|
+
return k(k({}, c), Er(l));
|
|
1254
1248
|
}, {}));
|
|
1255
1249
|
continue;
|
|
1256
1250
|
case "notation-simple":
|
|
@@ -1295,7 +1289,7 @@ function fs(e) {
|
|
|
1295
1289
|
case "integer-width":
|
|
1296
1290
|
if (i.options.length > 1)
|
|
1297
1291
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1298
|
-
i.options[0].replace(
|
|
1292
|
+
i.options[0].replace(as, function(c, l, f, _, y, M) {
|
|
1299
1293
|
if (l)
|
|
1300
1294
|
t.minimumIntegerDigits = f.length;
|
|
1301
1295
|
else {
|
|
@@ -1308,32 +1302,32 @@ function fs(e) {
|
|
|
1308
1302
|
});
|
|
1309
1303
|
continue;
|
|
1310
1304
|
}
|
|
1311
|
-
if (
|
|
1305
|
+
if (yi.test(i.stem)) {
|
|
1312
1306
|
t.minimumIntegerDigits = i.stem.length;
|
|
1313
1307
|
continue;
|
|
1314
1308
|
}
|
|
1315
|
-
if (
|
|
1309
|
+
if (_r.test(i.stem)) {
|
|
1316
1310
|
if (i.options.length > 1)
|
|
1317
1311
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1318
|
-
i.stem.replace(
|
|
1312
|
+
i.stem.replace(_r, function(c, l, f, _, y, M) {
|
|
1319
1313
|
return f === "*" ? t.minimumFractionDigits = l.length : _ && _[0] === "#" ? t.maximumFractionDigits = _.length : y && M ? (t.minimumFractionDigits = y.length, t.maximumFractionDigits = y.length + M.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1320
1314
|
});
|
|
1321
1315
|
var o = i.options[0];
|
|
1322
|
-
o === "w" ? t =
|
|
1316
|
+
o === "w" ? t = k(k({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = k(k({}, t), br(o)));
|
|
1323
1317
|
continue;
|
|
1324
1318
|
}
|
|
1325
|
-
if (
|
|
1326
|
-
t =
|
|
1319
|
+
if (Ei.test(i.stem)) {
|
|
1320
|
+
t = k(k({}, t), br(i.stem));
|
|
1327
1321
|
continue;
|
|
1328
1322
|
}
|
|
1329
|
-
var a =
|
|
1330
|
-
a && (t =
|
|
1331
|
-
var u =
|
|
1332
|
-
u && (t =
|
|
1323
|
+
var a = xi(i.stem);
|
|
1324
|
+
a && (t = k(k({}, t), a));
|
|
1325
|
+
var u = us(i.stem);
|
|
1326
|
+
u && (t = k(k({}, t), u));
|
|
1333
1327
|
}
|
|
1334
1328
|
return t;
|
|
1335
1329
|
}
|
|
1336
|
-
var
|
|
1330
|
+
var Mt = {
|
|
1337
1331
|
"001": [
|
|
1338
1332
|
"H",
|
|
1339
1333
|
"h"
|
|
@@ -2748,13 +2742,13 @@ var Ct = {
|
|
|
2748
2742
|
"h"
|
|
2749
2743
|
]
|
|
2750
2744
|
};
|
|
2751
|
-
function
|
|
2745
|
+
function cs(e, t) {
|
|
2752
2746
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2753
2747
|
var i = e.charAt(r);
|
|
2754
2748
|
if (i === "j") {
|
|
2755
2749
|
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2756
2750
|
o++, r++;
|
|
2757
|
-
var a = 1 + (o & 1), u = o < 2 ? 1 : 3 + (o >> 1), c = "a", l =
|
|
2751
|
+
var a = 1 + (o & 1), u = o < 2 ? 1 : 3 + (o >> 1), c = "a", l = fs(t);
|
|
2758
2752
|
for ((l == "H" || l == "k") && (u = 0); u-- > 0; )
|
|
2759
2753
|
n += c;
|
|
2760
2754
|
for (; a-- > 0; )
|
|
@@ -2764,7 +2758,7 @@ function hs(e, t) {
|
|
|
2764
2758
|
}
|
|
2765
2759
|
return n;
|
|
2766
2760
|
}
|
|
2767
|
-
function
|
|
2761
|
+
function fs(e) {
|
|
2768
2762
|
var t = e.hourCycle;
|
|
2769
2763
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2770
2764
|
e.hourCycles && // @ts-ignore
|
|
@@ -2783,23 +2777,23 @@ function ms(e) {
|
|
|
2783
2777
|
}
|
|
2784
2778
|
var n = e.language, r;
|
|
2785
2779
|
n !== "root" && (r = e.maximize().region);
|
|
2786
|
-
var i =
|
|
2780
|
+
var i = Mt[r || ""] || Mt[n || ""] || Mt["".concat(n, "-001")] || Mt["001"];
|
|
2787
2781
|
return i[0];
|
|
2788
2782
|
}
|
|
2789
|
-
var
|
|
2783
|
+
var hn, hs = new RegExp("^".concat(bi.source, "*")), ms = new RegExp("".concat(bi.source, "*$"));
|
|
2790
2784
|
function B(e, t) {
|
|
2791
2785
|
return { start: e, end: t };
|
|
2792
2786
|
}
|
|
2793
|
-
var
|
|
2787
|
+
var ds = !!String.prototype.startsWith && "_a".startsWith("a", 1), ps = !!String.fromCodePoint, gs = !!Object.fromEntries, _s = !!String.prototype.codePointAt, bs = !!String.prototype.trimStart, Es = !!String.prototype.trimEnd, ys = !!Number.isSafeInteger, xs = ys ? Number.isSafeInteger : function(e) {
|
|
2794
2788
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2795
|
-
},
|
|
2789
|
+
}, vn = !0;
|
|
2796
2790
|
try {
|
|
2797
|
-
var
|
|
2798
|
-
|
|
2791
|
+
var Ts = vi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2792
|
+
vn = ((hn = Ts.exec("a")) === null || hn === void 0 ? void 0 : hn[0]) === "a";
|
|
2799
2793
|
} catch (e) {
|
|
2800
|
-
|
|
2794
|
+
vn = !1;
|
|
2801
2795
|
}
|
|
2802
|
-
var
|
|
2796
|
+
var yr = ds ? (
|
|
2803
2797
|
// Native
|
|
2804
2798
|
function(t, n, r) {
|
|
2805
2799
|
return t.startsWith(n, r);
|
|
@@ -2809,7 +2803,7 @@ var vr = gs ? (
|
|
|
2809
2803
|
function(t, n, r) {
|
|
2810
2804
|
return t.slice(r, r + n.length) === n;
|
|
2811
2805
|
}
|
|
2812
|
-
),
|
|
2806
|
+
), Sn = ps ? String.fromCodePoint : (
|
|
2813
2807
|
// IE11
|
|
2814
2808
|
function() {
|
|
2815
2809
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2821,9 +2815,9 @@ var vr = gs ? (
|
|
|
2821
2815
|
}
|
|
2822
2816
|
return r;
|
|
2823
2817
|
}
|
|
2824
|
-
),
|
|
2818
|
+
), xr = (
|
|
2825
2819
|
// native
|
|
2826
|
-
|
|
2820
|
+
gs ? Object.fromEntries : (
|
|
2827
2821
|
// Ponyfill
|
|
2828
2822
|
function(t) {
|
|
2829
2823
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
@@ -2833,7 +2827,7 @@ var vr = gs ? (
|
|
|
2833
2827
|
return n;
|
|
2834
2828
|
}
|
|
2835
2829
|
)
|
|
2836
|
-
),
|
|
2830
|
+
), Ti = _s ? (
|
|
2837
2831
|
// Native
|
|
2838
2832
|
function(t, n) {
|
|
2839
2833
|
return t.codePointAt(n);
|
|
@@ -2847,7 +2841,7 @@ var vr = gs ? (
|
|
|
2847
2841
|
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2848
2842
|
}
|
|
2849
2843
|
}
|
|
2850
|
-
),
|
|
2844
|
+
), vs = bs ? (
|
|
2851
2845
|
// Native
|
|
2852
2846
|
function(t) {
|
|
2853
2847
|
return t.trimStart();
|
|
@@ -2855,9 +2849,9 @@ var vr = gs ? (
|
|
|
2855
2849
|
) : (
|
|
2856
2850
|
// Ponyfill
|
|
2857
2851
|
function(t) {
|
|
2858
|
-
return t.replace(
|
|
2852
|
+
return t.replace(hs, "");
|
|
2859
2853
|
}
|
|
2860
|
-
),
|
|
2854
|
+
), Ss = Es ? (
|
|
2861
2855
|
// Native
|
|
2862
2856
|
function(t) {
|
|
2863
2857
|
return t.trimEnd();
|
|
@@ -2865,32 +2859,32 @@ var vr = gs ? (
|
|
|
2865
2859
|
) : (
|
|
2866
2860
|
// Ponyfill
|
|
2867
2861
|
function(t) {
|
|
2868
|
-
return t.replace(
|
|
2862
|
+
return t.replace(ms, "");
|
|
2869
2863
|
}
|
|
2870
2864
|
);
|
|
2871
|
-
function
|
|
2865
|
+
function vi(e, t) {
|
|
2872
2866
|
return new RegExp(e, t);
|
|
2873
2867
|
}
|
|
2874
|
-
var
|
|
2875
|
-
if (
|
|
2876
|
-
var
|
|
2877
|
-
|
|
2868
|
+
var wn;
|
|
2869
|
+
if (vn) {
|
|
2870
|
+
var Tr = vi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2871
|
+
wn = function(t, n) {
|
|
2878
2872
|
var r;
|
|
2879
|
-
|
|
2880
|
-
var i =
|
|
2873
|
+
Tr.lastIndex = n;
|
|
2874
|
+
var i = Tr.exec(t);
|
|
2881
2875
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2882
2876
|
};
|
|
2883
2877
|
} else
|
|
2884
|
-
|
|
2878
|
+
wn = function(t, n) {
|
|
2885
2879
|
for (var r = []; ; ) {
|
|
2886
|
-
var i =
|
|
2887
|
-
if (i === void 0 ||
|
|
2880
|
+
var i = Ti(t, n);
|
|
2881
|
+
if (i === void 0 || Si(i) || Ms(i))
|
|
2888
2882
|
break;
|
|
2889
2883
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2890
2884
|
}
|
|
2891
|
-
return
|
|
2885
|
+
return Sn.apply(void 0, r);
|
|
2892
2886
|
};
|
|
2893
|
-
var
|
|
2887
|
+
var ws = (
|
|
2894
2888
|
/** @class */
|
|
2895
2889
|
function() {
|
|
2896
2890
|
function e(t, n) {
|
|
@@ -2914,14 +2908,14 @@ var Os = (
|
|
|
2914
2908
|
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2915
2909
|
var u = this.clonePosition();
|
|
2916
2910
|
this.bump(), i.push({
|
|
2917
|
-
type:
|
|
2911
|
+
type: Y.pound,
|
|
2918
2912
|
location: B(u, this.clonePosition())
|
|
2919
2913
|
});
|
|
2920
2914
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2921
2915
|
if (r)
|
|
2922
2916
|
break;
|
|
2923
2917
|
return this.error(D.UNMATCHED_CLOSING_TAG, B(this.clonePosition(), this.clonePosition()));
|
|
2924
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2918
|
+
} else if (o === 60 && !this.ignoreTag && An(this.peek() || 0)) {
|
|
2925
2919
|
var a = this.parseTag(t, n);
|
|
2926
2920
|
if (a.err)
|
|
2927
2921
|
return a;
|
|
@@ -2942,7 +2936,7 @@ var Os = (
|
|
|
2942
2936
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2943
2937
|
return {
|
|
2944
2938
|
val: {
|
|
2945
|
-
type:
|
|
2939
|
+
type: Y.literal,
|
|
2946
2940
|
value: "<".concat(i, "/>"),
|
|
2947
2941
|
location: B(r, this.clonePosition())
|
|
2948
2942
|
},
|
|
@@ -2954,12 +2948,12 @@ var Os = (
|
|
|
2954
2948
|
return o;
|
|
2955
2949
|
var a = o.val, u = this.clonePosition();
|
|
2956
2950
|
if (this.bumpIf("</")) {
|
|
2957
|
-
if (this.isEOF() || !
|
|
2951
|
+
if (this.isEOF() || !An(this.char()))
|
|
2958
2952
|
return this.error(D.INVALID_TAG, B(u, this.clonePosition()));
|
|
2959
2953
|
var c = this.clonePosition(), l = this.parseTagName();
|
|
2960
2954
|
return i !== l ? this.error(D.UNMATCHED_CLOSING_TAG, B(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2961
2955
|
val: {
|
|
2962
|
-
type:
|
|
2956
|
+
type: Y.tag,
|
|
2963
2957
|
value: i,
|
|
2964
2958
|
children: a,
|
|
2965
2959
|
location: B(r, this.clonePosition())
|
|
@@ -2972,7 +2966,7 @@ var Os = (
|
|
|
2972
2966
|
return this.error(D.INVALID_TAG, B(r, this.clonePosition()));
|
|
2973
2967
|
}, e.prototype.parseTagName = function() {
|
|
2974
2968
|
var t = this.offset();
|
|
2975
|
-
for (this.bump(); !this.isEOF() &&
|
|
2969
|
+
for (this.bump(); !this.isEOF() && Os(this.char()); )
|
|
2976
2970
|
this.bump();
|
|
2977
2971
|
return this.message.slice(t, this.offset());
|
|
2978
2972
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
@@ -2996,12 +2990,12 @@ var Os = (
|
|
|
2996
2990
|
}
|
|
2997
2991
|
var c = B(r, this.clonePosition());
|
|
2998
2992
|
return {
|
|
2999
|
-
val: { type:
|
|
2993
|
+
val: { type: Y.literal, value: i, location: c },
|
|
3000
2994
|
err: null
|
|
3001
2995
|
};
|
|
3002
2996
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3003
2997
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3004
|
-
!
|
|
2998
|
+
!As(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3005
2999
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3006
3000
|
if (this.isEOF() || this.char() !== 39)
|
|
3007
3001
|
return null;
|
|
@@ -3035,12 +3029,12 @@ var Os = (
|
|
|
3035
3029
|
n.push(r);
|
|
3036
3030
|
this.bump();
|
|
3037
3031
|
}
|
|
3038
|
-
return
|
|
3032
|
+
return Sn.apply(void 0, n);
|
|
3039
3033
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
3040
3034
|
if (this.isEOF())
|
|
3041
3035
|
return null;
|
|
3042
3036
|
var r = this.char();
|
|
3043
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
3037
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Sn(r));
|
|
3044
3038
|
}, e.prototype.parseArgument = function(t, n) {
|
|
3045
3039
|
var r = this.clonePosition();
|
|
3046
3040
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3056,7 +3050,7 @@ var Os = (
|
|
|
3056
3050
|
case 125:
|
|
3057
3051
|
return this.bump(), {
|
|
3058
3052
|
val: {
|
|
3059
|
-
type:
|
|
3053
|
+
type: Y.argument,
|
|
3060
3054
|
// value does not include the opening and closing braces.
|
|
3061
3055
|
value: i,
|
|
3062
3056
|
location: B(r, this.clonePosition())
|
|
@@ -3069,7 +3063,7 @@ var Os = (
|
|
|
3069
3063
|
return this.error(D.MALFORMED_ARGUMENT, B(r, this.clonePosition()));
|
|
3070
3064
|
}
|
|
3071
3065
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3072
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
3066
|
+
var t = this.clonePosition(), n = this.offset(), r = wn(this.message, n), i = n + r.length;
|
|
3073
3067
|
this.bumpTo(i);
|
|
3074
3068
|
var o = this.clonePosition(), a = B(t, o);
|
|
3075
3069
|
return { value: r, location: a };
|
|
@@ -3088,7 +3082,7 @@ var Os = (
|
|
|
3088
3082
|
var f = this.clonePosition(), _ = this.parseSimpleArgStyleIfPossible();
|
|
3089
3083
|
if (_.err)
|
|
3090
3084
|
return _;
|
|
3091
|
-
var y =
|
|
3085
|
+
var y = Ss(_.val);
|
|
3092
3086
|
if (y.length === 0)
|
|
3093
3087
|
return this.error(D.EXPECT_ARGUMENT_STYLE, B(this.clonePosition(), this.clonePosition()));
|
|
3094
3088
|
var M = B(f, this.clonePosition());
|
|
@@ -3098,25 +3092,25 @@ var Os = (
|
|
|
3098
3092
|
if (b.err)
|
|
3099
3093
|
return b;
|
|
3100
3094
|
var d = B(i, this.clonePosition());
|
|
3101
|
-
if (l &&
|
|
3102
|
-
var C =
|
|
3095
|
+
if (l && yr(l == null ? void 0 : l.style, "::", 0)) {
|
|
3096
|
+
var C = vs(l.style.slice(2));
|
|
3103
3097
|
if (u === "number") {
|
|
3104
3098
|
var _ = this.parseNumberSkeletonFromString(C, l.styleLocation);
|
|
3105
3099
|
return _.err ? _ : {
|
|
3106
|
-
val: { type:
|
|
3100
|
+
val: { type: Y.number, value: r, location: d, style: _.val },
|
|
3107
3101
|
err: null
|
|
3108
3102
|
};
|
|
3109
3103
|
} else {
|
|
3110
3104
|
if (C.length === 0)
|
|
3111
3105
|
return this.error(D.EXPECT_DATE_TIME_SKELETON, d);
|
|
3112
|
-
var
|
|
3113
|
-
this.locale && (
|
|
3106
|
+
var G = C;
|
|
3107
|
+
this.locale && (G = cs(C, this.locale));
|
|
3114
3108
|
var y = {
|
|
3115
|
-
type:
|
|
3116
|
-
pattern:
|
|
3109
|
+
type: qe.dateTime,
|
|
3110
|
+
pattern: G,
|
|
3117
3111
|
location: l.styleLocation,
|
|
3118
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3119
|
-
}, $ = u === "date" ?
|
|
3112
|
+
parsedOptions: this.shouldParseSkeletons ? rs(G) : {}
|
|
3113
|
+
}, $ = u === "date" ? Y.date : Y.time;
|
|
3120
3114
|
return {
|
|
3121
3115
|
val: { type: $, value: r, location: d, style: y },
|
|
3122
3116
|
err: null
|
|
@@ -3125,7 +3119,7 @@ var Os = (
|
|
|
3125
3119
|
}
|
|
3126
3120
|
return {
|
|
3127
3121
|
val: {
|
|
3128
|
-
type: u === "number" ?
|
|
3122
|
+
type: u === "number" ? Y.number : u === "date" ? Y.date : Y.time,
|
|
3129
3123
|
value: r,
|
|
3130
3124
|
location: d,
|
|
3131
3125
|
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
|
@@ -3138,9 +3132,9 @@ var Os = (
|
|
|
3138
3132
|
case "select": {
|
|
3139
3133
|
var w = this.clonePosition();
|
|
3140
3134
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3141
|
-
return this.error(D.EXPECT_SELECT_ARGUMENT_OPTIONS, B(w,
|
|
3135
|
+
return this.error(D.EXPECT_SELECT_ARGUMENT_OPTIONS, B(w, k({}, w)));
|
|
3142
3136
|
this.bumpSpace();
|
|
3143
|
-
var H = this.parseIdentifierIfPossible(),
|
|
3137
|
+
var H = this.parseIdentifierIfPossible(), P = 0;
|
|
3144
3138
|
if (u !== "select" && H.value === "offset") {
|
|
3145
3139
|
if (!this.bumpIf(":"))
|
|
3146
3140
|
return this.error(D.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, B(this.clonePosition(), this.clonePosition()));
|
|
@@ -3148,31 +3142,31 @@ var Os = (
|
|
|
3148
3142
|
var _ = this.tryParseDecimalInteger(D.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, D.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3149
3143
|
if (_.err)
|
|
3150
3144
|
return _;
|
|
3151
|
-
this.bumpSpace(), H = this.parseIdentifierIfPossible(),
|
|
3145
|
+
this.bumpSpace(), H = this.parseIdentifierIfPossible(), P = _.val;
|
|
3152
3146
|
}
|
|
3153
|
-
var
|
|
3154
|
-
if (
|
|
3155
|
-
return
|
|
3147
|
+
var F = this.tryParsePluralOrSelectOptions(t, u, n, H);
|
|
3148
|
+
if (F.err)
|
|
3149
|
+
return F;
|
|
3156
3150
|
var b = this.tryParseArgumentClose(i);
|
|
3157
3151
|
if (b.err)
|
|
3158
3152
|
return b;
|
|
3159
|
-
var
|
|
3153
|
+
var Z = B(i, this.clonePosition());
|
|
3160
3154
|
return u === "select" ? {
|
|
3161
3155
|
val: {
|
|
3162
|
-
type:
|
|
3156
|
+
type: Y.select,
|
|
3163
3157
|
value: r,
|
|
3164
|
-
options:
|
|
3165
|
-
location:
|
|
3158
|
+
options: xr(F.val),
|
|
3159
|
+
location: Z
|
|
3166
3160
|
},
|
|
3167
3161
|
err: null
|
|
3168
3162
|
} : {
|
|
3169
3163
|
val: {
|
|
3170
|
-
type:
|
|
3164
|
+
type: Y.plural,
|
|
3171
3165
|
value: r,
|
|
3172
|
-
options:
|
|
3173
|
-
offset:
|
|
3166
|
+
options: xr(F.val),
|
|
3167
|
+
offset: P,
|
|
3174
3168
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
3175
|
-
location:
|
|
3169
|
+
location: Z
|
|
3176
3170
|
},
|
|
3177
3171
|
err: null
|
|
3178
3172
|
};
|
|
@@ -3220,16 +3214,16 @@ var Os = (
|
|
|
3220
3214
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3221
3215
|
var r = [];
|
|
3222
3216
|
try {
|
|
3223
|
-
r =
|
|
3217
|
+
r = os(t);
|
|
3224
3218
|
} catch (i) {
|
|
3225
3219
|
return this.error(D.INVALID_NUMBER_SKELETON, n);
|
|
3226
3220
|
}
|
|
3227
3221
|
return {
|
|
3228
3222
|
val: {
|
|
3229
|
-
type:
|
|
3223
|
+
type: qe.number,
|
|
3230
3224
|
tokens: r,
|
|
3231
3225
|
location: n,
|
|
3232
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3226
|
+
parsedOptions: this.shouldParseSkeletons ? ls(r) : {}
|
|
3233
3227
|
},
|
|
3234
3228
|
err: null
|
|
3235
3229
|
};
|
|
@@ -3277,7 +3271,7 @@ var Os = (
|
|
|
3277
3271
|
break;
|
|
3278
3272
|
}
|
|
3279
3273
|
var c = B(i, this.clonePosition());
|
|
3280
|
-
return o ? (a *= r,
|
|
3274
|
+
return o ? (a *= r, xs(a) ? { val: a, err: null } : this.error(n, c)) : this.error(t, c);
|
|
3281
3275
|
}, e.prototype.offset = function() {
|
|
3282
3276
|
return this.position.offset;
|
|
3283
3277
|
}, e.prototype.isEOF = function() {
|
|
@@ -3292,7 +3286,7 @@ var Os = (
|
|
|
3292
3286
|
var t = this.position.offset;
|
|
3293
3287
|
if (t >= this.message.length)
|
|
3294
3288
|
throw Error("out of bound");
|
|
3295
|
-
var n =
|
|
3289
|
+
var n = Ti(this.message, t);
|
|
3296
3290
|
if (n === void 0)
|
|
3297
3291
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3298
3292
|
return n;
|
|
@@ -3311,7 +3305,7 @@ var Os = (
|
|
|
3311
3305
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3312
3306
|
}
|
|
3313
3307
|
}, e.prototype.bumpIf = function(t) {
|
|
3314
|
-
if (
|
|
3308
|
+
if (yr(this.message, t, this.offset())) {
|
|
3315
3309
|
for (var n = 0; n < t.length; n++)
|
|
3316
3310
|
this.bump();
|
|
3317
3311
|
return !0;
|
|
@@ -3333,7 +3327,7 @@ var Os = (
|
|
|
3333
3327
|
break;
|
|
3334
3328
|
}
|
|
3335
3329
|
}, e.prototype.bumpSpace = function() {
|
|
3336
|
-
for (; !this.isEOF() &&
|
|
3330
|
+
for (; !this.isEOF() && Si(this.char()); )
|
|
3337
3331
|
this.bump();
|
|
3338
3332
|
}, e.prototype.peek = function() {
|
|
3339
3333
|
if (this.isEOF())
|
|
@@ -3343,47 +3337,47 @@ var Os = (
|
|
|
3343
3337
|
}, e;
|
|
3344
3338
|
}()
|
|
3345
3339
|
);
|
|
3346
|
-
function
|
|
3340
|
+
function An(e) {
|
|
3347
3341
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3348
3342
|
}
|
|
3349
|
-
function
|
|
3350
|
-
return
|
|
3343
|
+
function As(e) {
|
|
3344
|
+
return An(e) || e === 47;
|
|
3351
3345
|
}
|
|
3352
|
-
function
|
|
3346
|
+
function Os(e) {
|
|
3353
3347
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3354
3348
|
}
|
|
3355
|
-
function
|
|
3349
|
+
function Si(e) {
|
|
3356
3350
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3357
3351
|
}
|
|
3358
|
-
function
|
|
3352
|
+
function Ms(e) {
|
|
3359
3353
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3360
3354
|
}
|
|
3361
|
-
function
|
|
3355
|
+
function On(e) {
|
|
3362
3356
|
e.forEach(function(t) {
|
|
3363
|
-
if (delete t.location,
|
|
3357
|
+
if (delete t.location, di(t) || pi(t))
|
|
3364
3358
|
for (var n in t.options)
|
|
3365
|
-
delete t.options[n].location,
|
|
3359
|
+
delete t.options[n].location, On(t.options[n].value);
|
|
3366
3360
|
else
|
|
3367
|
-
|
|
3361
|
+
fi(t) && _i(t.style) || (hi(t) || mi(t)) && Tn(t.style) ? delete t.style.location : gi(t) && On(t.children);
|
|
3368
3362
|
});
|
|
3369
3363
|
}
|
|
3370
|
-
function
|
|
3371
|
-
t === void 0 && (t = {}), t =
|
|
3372
|
-
var n = new
|
|
3364
|
+
function Cs(e, t) {
|
|
3365
|
+
t === void 0 && (t = {}), t = k({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3366
|
+
var n = new ws(e, t).parse();
|
|
3373
3367
|
if (n.err) {
|
|
3374
3368
|
var r = SyntaxError(D[n.err.kind]);
|
|
3375
3369
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3376
3370
|
}
|
|
3377
|
-
return t != null && t.captureLocation ||
|
|
3371
|
+
return t != null && t.captureLocation || On(n.val), n.val;
|
|
3378
3372
|
}
|
|
3379
|
-
var
|
|
3373
|
+
var Je;
|
|
3380
3374
|
(function(e) {
|
|
3381
3375
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3382
|
-
})(
|
|
3383
|
-
var
|
|
3376
|
+
})(Je || (Je = {}));
|
|
3377
|
+
var qt = (
|
|
3384
3378
|
/** @class */
|
|
3385
3379
|
function(e) {
|
|
3386
|
-
|
|
3380
|
+
Zt(t, e);
|
|
3387
3381
|
function t(n, r, i) {
|
|
3388
3382
|
var o = e.call(this, n) || this;
|
|
3389
3383
|
return o.code = r, o.originalMessage = i, o;
|
|
@@ -3392,48 +3386,48 @@ var Qt = (
|
|
|
3392
3386
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3393
3387
|
}, t;
|
|
3394
3388
|
}(Error)
|
|
3395
|
-
),
|
|
3389
|
+
), vr = (
|
|
3396
3390
|
/** @class */
|
|
3397
3391
|
function(e) {
|
|
3398
|
-
|
|
3392
|
+
Zt(t, e);
|
|
3399
3393
|
function t(n, r, i, o) {
|
|
3400
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3394
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Je.INVALID_VALUE, o) || this;
|
|
3401
3395
|
}
|
|
3402
3396
|
return t;
|
|
3403
|
-
}(
|
|
3404
|
-
),
|
|
3397
|
+
}(qt)
|
|
3398
|
+
), Ls = (
|
|
3405
3399
|
/** @class */
|
|
3406
3400
|
function(e) {
|
|
3407
|
-
|
|
3401
|
+
Zt(t, e);
|
|
3408
3402
|
function t(n, r, i) {
|
|
3409
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3403
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Je.INVALID_VALUE, i) || this;
|
|
3410
3404
|
}
|
|
3411
3405
|
return t;
|
|
3412
|
-
}(
|
|
3413
|
-
),
|
|
3406
|
+
}(qt)
|
|
3407
|
+
), Ns = (
|
|
3414
3408
|
/** @class */
|
|
3415
3409
|
function(e) {
|
|
3416
|
-
|
|
3410
|
+
Zt(t, e);
|
|
3417
3411
|
function t(n, r) {
|
|
3418
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3412
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Je.MISSING_VALUE, r) || this;
|
|
3419
3413
|
}
|
|
3420
3414
|
return t;
|
|
3421
|
-
}(
|
|
3415
|
+
}(qt)
|
|
3422
3416
|
), ce;
|
|
3423
3417
|
(function(e) {
|
|
3424
3418
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3425
3419
|
})(ce || (ce = {}));
|
|
3426
|
-
function
|
|
3420
|
+
function Hs(e) {
|
|
3427
3421
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3428
3422
|
var r = t[t.length - 1];
|
|
3429
3423
|
return !r || r.type !== ce.literal || n.type !== ce.literal ? t.push(n) : r.value += n.value, t;
|
|
3430
3424
|
}, []);
|
|
3431
3425
|
}
|
|
3432
|
-
function
|
|
3426
|
+
function Is(e) {
|
|
3433
3427
|
return typeof e == "function";
|
|
3434
3428
|
}
|
|
3435
|
-
function
|
|
3436
|
-
if (e.length === 1 &&
|
|
3429
|
+
function Bt(e, t, n, r, i, o, a) {
|
|
3430
|
+
if (e.length === 1 && gr(e[0]))
|
|
3437
3431
|
return [
|
|
3438
3432
|
{
|
|
3439
3433
|
type: ce.literal,
|
|
@@ -3442,14 +3436,14 @@ function $t(e, t, n, r, i, o, a) {
|
|
|
3442
3436
|
];
|
|
3443
3437
|
for (var u = [], c = 0, l = e; c < l.length; c++) {
|
|
3444
3438
|
var f = l[c];
|
|
3445
|
-
if (
|
|
3439
|
+
if (gr(f)) {
|
|
3446
3440
|
u.push({
|
|
3447
3441
|
type: ce.literal,
|
|
3448
3442
|
value: f.value
|
|
3449
3443
|
});
|
|
3450
3444
|
continue;
|
|
3451
3445
|
}
|
|
3452
|
-
if (
|
|
3446
|
+
if (ts(f)) {
|
|
3453
3447
|
typeof o == "number" && u.push({
|
|
3454
3448
|
type: ce.literal,
|
|
3455
3449
|
value: n.getNumberFormat(t).format(o)
|
|
@@ -3458,89 +3452,89 @@ function $t(e, t, n, r, i, o, a) {
|
|
|
3458
3452
|
}
|
|
3459
3453
|
var _ = f.value;
|
|
3460
3454
|
if (!(i && _ in i))
|
|
3461
|
-
throw new
|
|
3455
|
+
throw new Ns(_, a);
|
|
3462
3456
|
var y = i[_];
|
|
3463
|
-
if (
|
|
3457
|
+
if (es(f)) {
|
|
3464
3458
|
(!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""), u.push({
|
|
3465
3459
|
type: typeof y == "string" ? ce.literal : ce.object,
|
|
3466
3460
|
value: y
|
|
3467
3461
|
});
|
|
3468
3462
|
continue;
|
|
3469
3463
|
}
|
|
3470
|
-
if (
|
|
3471
|
-
var M = typeof f.style == "string" ? r.date[f.style] :
|
|
3464
|
+
if (hi(f)) {
|
|
3465
|
+
var M = typeof f.style == "string" ? r.date[f.style] : Tn(f.style) ? f.style.parsedOptions : void 0;
|
|
3472
3466
|
u.push({
|
|
3473
3467
|
type: ce.literal,
|
|
3474
3468
|
value: n.getDateTimeFormat(t, M).format(y)
|
|
3475
3469
|
});
|
|
3476
3470
|
continue;
|
|
3477
3471
|
}
|
|
3478
|
-
if (
|
|
3479
|
-
var M = typeof f.style == "string" ? r.time[f.style] :
|
|
3472
|
+
if (mi(f)) {
|
|
3473
|
+
var M = typeof f.style == "string" ? r.time[f.style] : Tn(f.style) ? f.style.parsedOptions : r.time.medium;
|
|
3480
3474
|
u.push({
|
|
3481
3475
|
type: ce.literal,
|
|
3482
3476
|
value: n.getDateTimeFormat(t, M).format(y)
|
|
3483
3477
|
});
|
|
3484
3478
|
continue;
|
|
3485
3479
|
}
|
|
3486
|
-
if (
|
|
3487
|
-
var M = typeof f.style == "string" ? r.number[f.style] :
|
|
3480
|
+
if (fi(f)) {
|
|
3481
|
+
var M = typeof f.style == "string" ? r.number[f.style] : _i(f.style) ? f.style.parsedOptions : void 0;
|
|
3488
3482
|
M && M.scale && (y = y * (M.scale || 1)), u.push({
|
|
3489
3483
|
type: ce.literal,
|
|
3490
3484
|
value: n.getNumberFormat(t, M).format(y)
|
|
3491
3485
|
});
|
|
3492
3486
|
continue;
|
|
3493
3487
|
}
|
|
3494
|
-
if (
|
|
3488
|
+
if (gi(f)) {
|
|
3495
3489
|
var b = f.children, d = f.value, C = i[d];
|
|
3496
|
-
if (!
|
|
3497
|
-
throw new
|
|
3498
|
-
var
|
|
3499
|
-
return
|
|
3490
|
+
if (!Is(C))
|
|
3491
|
+
throw new Ls(d, "function", a);
|
|
3492
|
+
var G = Bt(b, t, n, r, i, o), $ = C(G.map(function(P) {
|
|
3493
|
+
return P.value;
|
|
3500
3494
|
}));
|
|
3501
|
-
Array.isArray($) || ($ = [$]), u.push.apply(u, $.map(function(
|
|
3495
|
+
Array.isArray($) || ($ = [$]), u.push.apply(u, $.map(function(P) {
|
|
3502
3496
|
return {
|
|
3503
|
-
type: typeof
|
|
3504
|
-
value:
|
|
3497
|
+
type: typeof P == "string" ? ce.literal : ce.object,
|
|
3498
|
+
value: P
|
|
3505
3499
|
};
|
|
3506
3500
|
}));
|
|
3507
3501
|
}
|
|
3508
|
-
if (
|
|
3502
|
+
if (di(f)) {
|
|
3509
3503
|
var w = f.options[y] || f.options.other;
|
|
3510
3504
|
if (!w)
|
|
3511
|
-
throw new
|
|
3512
|
-
u.push.apply(u,
|
|
3505
|
+
throw new vr(f.value, y, Object.keys(f.options), a);
|
|
3506
|
+
u.push.apply(u, Bt(w.value, t, n, r, i));
|
|
3513
3507
|
continue;
|
|
3514
3508
|
}
|
|
3515
|
-
if (
|
|
3509
|
+
if (pi(f)) {
|
|
3516
3510
|
var w = f.options["=".concat(y)];
|
|
3517
3511
|
if (!w) {
|
|
3518
3512
|
if (!Intl.PluralRules)
|
|
3519
|
-
throw new
|
|
3513
|
+
throw new qt(`Intl.PluralRules is not available in this environment.
|
|
3520
3514
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3521
|
-
`,
|
|
3515
|
+
`, Je.MISSING_INTL_API, a);
|
|
3522
3516
|
var H = n.getPluralRules(t, { type: f.pluralType }).select(y - (f.offset || 0));
|
|
3523
3517
|
w = f.options[H] || f.options.other;
|
|
3524
3518
|
}
|
|
3525
3519
|
if (!w)
|
|
3526
|
-
throw new
|
|
3527
|
-
u.push.apply(u,
|
|
3520
|
+
throw new vr(f.value, y, Object.keys(f.options), a);
|
|
3521
|
+
u.push.apply(u, Bt(w.value, t, n, r, i, y - (f.offset || 0)));
|
|
3528
3522
|
continue;
|
|
3529
3523
|
}
|
|
3530
3524
|
}
|
|
3531
|
-
return
|
|
3525
|
+
return Hs(u);
|
|
3532
3526
|
}
|
|
3533
|
-
function
|
|
3534
|
-
return t ?
|
|
3535
|
-
return n[r] =
|
|
3527
|
+
function Rs(e, t) {
|
|
3528
|
+
return t ? k(k(k({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3529
|
+
return n[r] = k(k({}, e[r]), t[r] || {}), n;
|
|
3536
3530
|
}, {})) : e;
|
|
3537
3531
|
}
|
|
3538
|
-
function
|
|
3532
|
+
function Ps(e, t) {
|
|
3539
3533
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3540
|
-
return n[r] =
|
|
3541
|
-
},
|
|
3534
|
+
return n[r] = Rs(e[r], t[r]), n;
|
|
3535
|
+
}, k({}, e)) : e;
|
|
3542
3536
|
}
|
|
3543
|
-
function
|
|
3537
|
+
function mn(e) {
|
|
3544
3538
|
return {
|
|
3545
3539
|
create: function() {
|
|
3546
3540
|
return {
|
|
@@ -3554,39 +3548,39 @@ function pn(e) {
|
|
|
3554
3548
|
}
|
|
3555
3549
|
};
|
|
3556
3550
|
}
|
|
3557
|
-
function
|
|
3551
|
+
function Ds(e) {
|
|
3558
3552
|
return e === void 0 && (e = {
|
|
3559
3553
|
number: {},
|
|
3560
3554
|
dateTime: {},
|
|
3561
3555
|
pluralRules: {}
|
|
3562
3556
|
}), {
|
|
3563
|
-
getNumberFormat:
|
|
3557
|
+
getNumberFormat: cn(function() {
|
|
3564
3558
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3565
3559
|
n[r] = arguments[r];
|
|
3566
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3560
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, ln([void 0], n, !1)))();
|
|
3567
3561
|
}, {
|
|
3568
|
-
cache:
|
|
3569
|
-
strategy:
|
|
3562
|
+
cache: mn(e.number),
|
|
3563
|
+
strategy: fn.variadic
|
|
3570
3564
|
}),
|
|
3571
|
-
getDateTimeFormat:
|
|
3565
|
+
getDateTimeFormat: cn(function() {
|
|
3572
3566
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3573
3567
|
n[r] = arguments[r];
|
|
3574
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3568
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, ln([void 0], n, !1)))();
|
|
3575
3569
|
}, {
|
|
3576
|
-
cache:
|
|
3577
|
-
strategy:
|
|
3570
|
+
cache: mn(e.dateTime),
|
|
3571
|
+
strategy: fn.variadic
|
|
3578
3572
|
}),
|
|
3579
|
-
getPluralRules:
|
|
3573
|
+
getPluralRules: cn(function() {
|
|
3580
3574
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3581
3575
|
n[r] = arguments[r];
|
|
3582
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3576
|
+
return new ((t = Intl.PluralRules).bind.apply(t, ln([void 0], n, !1)))();
|
|
3583
3577
|
}, {
|
|
3584
|
-
cache:
|
|
3585
|
-
strategy:
|
|
3578
|
+
cache: mn(e.pluralRules),
|
|
3579
|
+
strategy: fn.variadic
|
|
3586
3580
|
})
|
|
3587
3581
|
};
|
|
3588
3582
|
}
|
|
3589
|
-
var
|
|
3583
|
+
var wi = (
|
|
3590
3584
|
/** @class */
|
|
3591
3585
|
function() {
|
|
3592
3586
|
function e(t, n, r, i) {
|
|
@@ -3605,7 +3599,7 @@ var Oi = (
|
|
|
3605
3599
|
}, []);
|
|
3606
3600
|
return f.length <= 1 ? f[0] || "" : f;
|
|
3607
3601
|
}, this.formatToParts = function(c) {
|
|
3608
|
-
return
|
|
3602
|
+
return Bt(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
|
|
3609
3603
|
}, this.resolvedOptions = function() {
|
|
3610
3604
|
var c;
|
|
3611
3605
|
return {
|
|
@@ -3618,13 +3612,13 @@ var Oi = (
|
|
|
3618
3612
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3619
3613
|
var a = i || {};
|
|
3620
3614
|
a.formatters;
|
|
3621
|
-
var u =
|
|
3622
|
-
this.ast = e.__parse(t,
|
|
3615
|
+
var u = Vo(a, ["formatters"]);
|
|
3616
|
+
this.ast = e.__parse(t, k(k({}, u), { locale: this.resolvedLocale }));
|
|
3623
3617
|
} else
|
|
3624
3618
|
this.ast = t;
|
|
3625
3619
|
if (!Array.isArray(this.ast))
|
|
3626
3620
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3627
|
-
this.formats =
|
|
3621
|
+
this.formats = Ps(e.formats, r), this.formatters = i && i.formatters || Ds(this.formatterCache);
|
|
3628
3622
|
}
|
|
3629
3623
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3630
3624
|
get: function() {
|
|
@@ -3637,7 +3631,7 @@ var Oi = (
|
|
|
3637
3631
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3638
3632
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3639
3633
|
}
|
|
3640
|
-
}, e.__parse =
|
|
3634
|
+
}, e.__parse = Cs, e.formats = {
|
|
3641
3635
|
number: {
|
|
3642
3636
|
integer: {
|
|
3643
3637
|
maximumFractionDigits: 0
|
|
@@ -3698,7 +3692,7 @@ var Oi = (
|
|
|
3698
3692
|
}, e;
|
|
3699
3693
|
}()
|
|
3700
3694
|
);
|
|
3701
|
-
function
|
|
3695
|
+
function Bs(e, t) {
|
|
3702
3696
|
if (t == null)
|
|
3703
3697
|
return;
|
|
3704
3698
|
if (t in e)
|
|
@@ -3719,101 +3713,101 @@ function Us(e, t) {
|
|
|
3719
3713
|
r = void 0;
|
|
3720
3714
|
return r;
|
|
3721
3715
|
}
|
|
3722
|
-
const
|
|
3716
|
+
const He = {}, $s = (e, t, n) => n && (t in He || (He[t] = {}), e in He[t] || (He[t][e] = n), n), Ai = (e, t) => {
|
|
3723
3717
|
if (t == null)
|
|
3724
3718
|
return;
|
|
3725
|
-
if (t in
|
|
3726
|
-
return
|
|
3727
|
-
const n =
|
|
3719
|
+
if (t in He && e in He[t])
|
|
3720
|
+
return He[t][e];
|
|
3721
|
+
const n = yt(t);
|
|
3728
3722
|
for (let r = 0; r < n.length; r++) {
|
|
3729
|
-
const i = n[r], o =
|
|
3723
|
+
const i = n[r], o = ks(i, e);
|
|
3730
3724
|
if (o)
|
|
3731
|
-
return
|
|
3725
|
+
return $s(e, t, o);
|
|
3732
3726
|
}
|
|
3733
3727
|
};
|
|
3734
|
-
let
|
|
3735
|
-
const
|
|
3736
|
-
function
|
|
3737
|
-
return
|
|
3728
|
+
let Rn;
|
|
3729
|
+
const Et = bt({});
|
|
3730
|
+
function Us(e) {
|
|
3731
|
+
return Rn[e] || null;
|
|
3738
3732
|
}
|
|
3739
|
-
function
|
|
3740
|
-
return e in
|
|
3733
|
+
function Oi(e) {
|
|
3734
|
+
return e in Rn;
|
|
3741
3735
|
}
|
|
3742
|
-
function
|
|
3743
|
-
if (!
|
|
3736
|
+
function ks(e, t) {
|
|
3737
|
+
if (!Oi(e))
|
|
3744
3738
|
return null;
|
|
3745
|
-
const n =
|
|
3746
|
-
return
|
|
3739
|
+
const n = Us(e);
|
|
3740
|
+
return Bs(n, t);
|
|
3747
3741
|
}
|
|
3748
|
-
function
|
|
3742
|
+
function Fs(e) {
|
|
3749
3743
|
if (e == null)
|
|
3750
3744
|
return;
|
|
3751
|
-
const t =
|
|
3745
|
+
const t = yt(e);
|
|
3752
3746
|
for (let n = 0; n < t.length; n++) {
|
|
3753
3747
|
const r = t[n];
|
|
3754
|
-
if (
|
|
3748
|
+
if (Oi(r))
|
|
3755
3749
|
return r;
|
|
3756
3750
|
}
|
|
3757
3751
|
}
|
|
3758
|
-
function
|
|
3759
|
-
delete
|
|
3752
|
+
function Mi(e, ...t) {
|
|
3753
|
+
delete He[e], Et.update((n) => (n[e] = Wo.all([n[e] || {}, ...t]), n));
|
|
3760
3754
|
}
|
|
3761
|
-
|
|
3762
|
-
[
|
|
3755
|
+
et(
|
|
3756
|
+
[Et],
|
|
3763
3757
|
([e]) => Object.keys(e)
|
|
3764
3758
|
);
|
|
3765
|
-
|
|
3766
|
-
const
|
|
3767
|
-
function
|
|
3768
|
-
|
|
3759
|
+
Et.subscribe((e) => Rn = e);
|
|
3760
|
+
const $t = {};
|
|
3761
|
+
function Gs(e, t) {
|
|
3762
|
+
$t[e].delete(t), $t[e].size === 0 && delete $t[e];
|
|
3769
3763
|
}
|
|
3770
|
-
function
|
|
3771
|
-
return
|
|
3764
|
+
function Ci(e) {
|
|
3765
|
+
return $t[e];
|
|
3772
3766
|
}
|
|
3773
|
-
function
|
|
3774
|
-
return
|
|
3775
|
-
const n =
|
|
3767
|
+
function js(e) {
|
|
3768
|
+
return yt(e).map((t) => {
|
|
3769
|
+
const n = Ci(t);
|
|
3776
3770
|
return [t, n ? [...n] : []];
|
|
3777
3771
|
}).filter(([, t]) => t.length > 0);
|
|
3778
3772
|
}
|
|
3779
|
-
function
|
|
3780
|
-
return e == null ? !1 :
|
|
3773
|
+
function zt(e) {
|
|
3774
|
+
return e == null ? !1 : yt(e).some(
|
|
3781
3775
|
(t) => {
|
|
3782
3776
|
var n;
|
|
3783
|
-
return (n =
|
|
3777
|
+
return (n = Ci(t)) == null ? void 0 : n.size;
|
|
3784
3778
|
}
|
|
3785
3779
|
);
|
|
3786
3780
|
}
|
|
3787
|
-
function
|
|
3781
|
+
function zs(e, t) {
|
|
3788
3782
|
return Promise.all(
|
|
3789
|
-
t.map((r) => (
|
|
3790
|
-
).then((r) =>
|
|
3791
|
-
}
|
|
3792
|
-
const
|
|
3793
|
-
function
|
|
3794
|
-
if (!
|
|
3795
|
-
return e in
|
|
3796
|
-
const t =
|
|
3797
|
-
return
|
|
3783
|
+
t.map((r) => (Gs(e, r), r().then((i) => i.default || i)))
|
|
3784
|
+
).then((r) => Mi(e, ...r));
|
|
3785
|
+
}
|
|
3786
|
+
const st = {};
|
|
3787
|
+
function Li(e) {
|
|
3788
|
+
if (!zt(e))
|
|
3789
|
+
return e in st ? st[e] : Promise.resolve();
|
|
3790
|
+
const t = js(e);
|
|
3791
|
+
return st[e] = Promise.all(
|
|
3798
3792
|
t.map(
|
|
3799
|
-
([n, r]) =>
|
|
3793
|
+
([n, r]) => zs(n, r)
|
|
3800
3794
|
)
|
|
3801
3795
|
).then(() => {
|
|
3802
|
-
if (
|
|
3803
|
-
return
|
|
3804
|
-
delete
|
|
3805
|
-
}),
|
|
3796
|
+
if (zt(e))
|
|
3797
|
+
return Li(e);
|
|
3798
|
+
delete st[e];
|
|
3799
|
+
}), st[e];
|
|
3806
3800
|
}
|
|
3807
|
-
var
|
|
3801
|
+
var Sr = Object.getOwnPropertySymbols, Ws = Object.prototype.hasOwnProperty, Vs = Object.prototype.propertyIsEnumerable, Xs = (e, t) => {
|
|
3808
3802
|
var n = {};
|
|
3809
3803
|
for (var r in e)
|
|
3810
|
-
|
|
3811
|
-
if (e != null &&
|
|
3812
|
-
for (var r of
|
|
3813
|
-
t.indexOf(r) < 0 &&
|
|
3804
|
+
Ws.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3805
|
+
if (e != null && Sr)
|
|
3806
|
+
for (var r of Sr(e))
|
|
3807
|
+
t.indexOf(r) < 0 && Vs.call(e, r) && (n[r] = e[r]);
|
|
3814
3808
|
return n;
|
|
3815
3809
|
};
|
|
3816
|
-
const
|
|
3810
|
+
const Ys = {
|
|
3817
3811
|
number: {
|
|
3818
3812
|
scientific: { notation: "scientific" },
|
|
3819
3813
|
engineering: { notation: "engineering" },
|
|
@@ -3843,159 +3837,159 @@ const qs = {
|
|
|
3843
3837
|
}
|
|
3844
3838
|
}
|
|
3845
3839
|
};
|
|
3846
|
-
function
|
|
3840
|
+
function Zs({ locale: e, id: t }) {
|
|
3847
3841
|
console.warn(
|
|
3848
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3842
|
+
`[svelte-i18n] The message "${t}" was not found in "${yt(
|
|
3849
3843
|
e
|
|
3850
|
-
).join('", "')}".${
|
|
3844
|
+
).join('", "')}".${zt(Re()) ? `
|
|
3851
3845
|
|
|
3852
3846
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3853
3847
|
);
|
|
3854
3848
|
}
|
|
3855
|
-
const
|
|
3849
|
+
const qs = {
|
|
3856
3850
|
fallbackLocale: null,
|
|
3857
3851
|
loadingDelay: 200,
|
|
3858
|
-
formats:
|
|
3852
|
+
formats: Ys,
|
|
3859
3853
|
warnOnMissingMessages: !0,
|
|
3860
3854
|
handleMissingMessage: void 0,
|
|
3861
3855
|
ignoreTag: !0
|
|
3862
|
-
},
|
|
3863
|
-
function
|
|
3864
|
-
return
|
|
3856
|
+
}, mt = qs;
|
|
3857
|
+
function Qe() {
|
|
3858
|
+
return mt;
|
|
3865
3859
|
}
|
|
3866
|
-
function
|
|
3867
|
-
const t = e, { formats: n } = t, r =
|
|
3860
|
+
function Js(e) {
|
|
3861
|
+
const t = e, { formats: n } = t, r = Xs(t, ["formats"]);
|
|
3868
3862
|
let i = e.fallbackLocale;
|
|
3869
3863
|
if (e.initialLocale)
|
|
3870
3864
|
try {
|
|
3871
|
-
|
|
3865
|
+
wi.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3872
3866
|
} catch (o) {
|
|
3873
3867
|
console.warn(
|
|
3874
3868
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3875
3869
|
);
|
|
3876
3870
|
}
|
|
3877
|
-
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage =
|
|
3871
|
+
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = Zs : console.warn(
|
|
3878
3872
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3879
|
-
)), Object.assign(
|
|
3873
|
+
)), Object.assign(mt, r, { initialLocale: i }), n && ("number" in n && Object.assign(mt.formats.number, n.number), "date" in n && Object.assign(mt.formats.date, n.date), "time" in n && Object.assign(mt.formats.time, n.time)), Be.set(i);
|
|
3880
3874
|
}
|
|
3881
|
-
const
|
|
3882
|
-
var
|
|
3875
|
+
const dn = bt(!1);
|
|
3876
|
+
var Qs = Object.defineProperty, Ks = Object.defineProperties, ea = Object.getOwnPropertyDescriptors, wr = Object.getOwnPropertySymbols, ta = Object.prototype.hasOwnProperty, na = Object.prototype.propertyIsEnumerable, Ar = (e, t, n) => t in e ? Qs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ra = (e, t) => {
|
|
3883
3877
|
for (var n in t || (t = {}))
|
|
3884
|
-
|
|
3885
|
-
if (
|
|
3886
|
-
for (var n of
|
|
3887
|
-
|
|
3878
|
+
ta.call(t, n) && Ar(e, n, t[n]);
|
|
3879
|
+
if (wr)
|
|
3880
|
+
for (var n of wr(t))
|
|
3881
|
+
na.call(t, n) && Ar(e, n, t[n]);
|
|
3888
3882
|
return e;
|
|
3889
|
-
},
|
|
3890
|
-
let
|
|
3891
|
-
const
|
|
3892
|
-
function
|
|
3883
|
+
}, ia = (e, t) => Ks(e, ea(t));
|
|
3884
|
+
let Mn;
|
|
3885
|
+
const Wt = bt(null);
|
|
3886
|
+
function Or(e) {
|
|
3893
3887
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3894
3888
|
}
|
|
3895
|
-
function
|
|
3896
|
-
const n =
|
|
3897
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3889
|
+
function yt(e, t = Qe().fallbackLocale) {
|
|
3890
|
+
const n = Or(e);
|
|
3891
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...Or(t)])] : n;
|
|
3898
3892
|
}
|
|
3899
3893
|
function Re() {
|
|
3900
|
-
return
|
|
3894
|
+
return Mn != null ? Mn : void 0;
|
|
3901
3895
|
}
|
|
3902
|
-
|
|
3903
|
-
|
|
3896
|
+
Wt.subscribe((e) => {
|
|
3897
|
+
Mn = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3904
3898
|
});
|
|
3905
|
-
const
|
|
3906
|
-
if (e &&
|
|
3907
|
-
const { loadingDelay: t } =
|
|
3899
|
+
const oa = (e) => {
|
|
3900
|
+
if (e && Fs(e) && zt(e)) {
|
|
3901
|
+
const { loadingDelay: t } = Qe();
|
|
3908
3902
|
let n;
|
|
3909
3903
|
return typeof window != "undefined" && Re() != null && t ? n = window.setTimeout(
|
|
3910
|
-
() =>
|
|
3904
|
+
() => dn.set(!0),
|
|
3911
3905
|
t
|
|
3912
|
-
) :
|
|
3913
|
-
|
|
3906
|
+
) : dn.set(!0), Li(e).then(() => {
|
|
3907
|
+
Wt.set(e);
|
|
3914
3908
|
}).finally(() => {
|
|
3915
|
-
clearTimeout(n),
|
|
3909
|
+
clearTimeout(n), dn.set(!1);
|
|
3916
3910
|
});
|
|
3917
3911
|
}
|
|
3918
|
-
return
|
|
3919
|
-
},
|
|
3920
|
-
set:
|
|
3921
|
-
}),
|
|
3912
|
+
return Wt.set(e);
|
|
3913
|
+
}, Be = ia(ra({}, Wt), {
|
|
3914
|
+
set: oa
|
|
3915
|
+
}), Jt = (e) => {
|
|
3922
3916
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3923
3917
|
return (r) => {
|
|
3924
3918
|
const i = JSON.stringify(r);
|
|
3925
3919
|
return i in t ? t[i] : t[i] = e(r);
|
|
3926
3920
|
};
|
|
3927
3921
|
};
|
|
3928
|
-
var
|
|
3922
|
+
var sa = Object.defineProperty, Vt = Object.getOwnPropertySymbols, Ni = Object.prototype.hasOwnProperty, Hi = Object.prototype.propertyIsEnumerable, Mr = (e, t, n) => t in e ? sa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Pn = (e, t) => {
|
|
3929
3923
|
for (var n in t || (t = {}))
|
|
3930
|
-
|
|
3931
|
-
if (
|
|
3932
|
-
for (var n of
|
|
3933
|
-
|
|
3924
|
+
Ni.call(t, n) && Mr(e, n, t[n]);
|
|
3925
|
+
if (Vt)
|
|
3926
|
+
for (var n of Vt(t))
|
|
3927
|
+
Hi.call(t, n) && Mr(e, n, t[n]);
|
|
3934
3928
|
return e;
|
|
3935
|
-
},
|
|
3929
|
+
}, tt = (e, t) => {
|
|
3936
3930
|
var n = {};
|
|
3937
3931
|
for (var r in e)
|
|
3938
|
-
|
|
3939
|
-
if (e != null &&
|
|
3940
|
-
for (var r of
|
|
3941
|
-
t.indexOf(r) < 0 &&
|
|
3932
|
+
Ni.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3933
|
+
if (e != null && Vt)
|
|
3934
|
+
for (var r of Vt(e))
|
|
3935
|
+
t.indexOf(r) < 0 && Hi.call(e, r) && (n[r] = e[r]);
|
|
3942
3936
|
return n;
|
|
3943
3937
|
};
|
|
3944
|
-
const
|
|
3945
|
-
const { formats: n } =
|
|
3938
|
+
const _t = (e, t) => {
|
|
3939
|
+
const { formats: n } = Qe();
|
|
3946
3940
|
if (e in n && t in n[e])
|
|
3947
3941
|
return n[e][t];
|
|
3948
3942
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3949
|
-
},
|
|
3943
|
+
}, aa = Jt(
|
|
3950
3944
|
(e) => {
|
|
3951
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3945
|
+
var t = e, { locale: n, format: r } = t, i = tt(t, ["locale", "format"]);
|
|
3952
3946
|
if (n == null)
|
|
3953
3947
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3954
|
-
return r && (i =
|
|
3948
|
+
return r && (i = _t("number", r)), new Intl.NumberFormat(n, i);
|
|
3955
3949
|
}
|
|
3956
|
-
),
|
|
3950
|
+
), ua = Jt(
|
|
3957
3951
|
(e) => {
|
|
3958
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3952
|
+
var t = e, { locale: n, format: r } = t, i = tt(t, ["locale", "format"]);
|
|
3959
3953
|
if (n == null)
|
|
3960
3954
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3961
|
-
return r ? i =
|
|
3955
|
+
return r ? i = _t("date", r) : Object.keys(i).length === 0 && (i = _t("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3962
3956
|
}
|
|
3963
|
-
),
|
|
3957
|
+
), la = Jt(
|
|
3964
3958
|
(e) => {
|
|
3965
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3959
|
+
var t = e, { locale: n, format: r } = t, i = tt(t, ["locale", "format"]);
|
|
3966
3960
|
if (n == null)
|
|
3967
3961
|
throw new Error(
|
|
3968
3962
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3969
3963
|
);
|
|
3970
|
-
return r ? i =
|
|
3964
|
+
return r ? i = _t("time", r) : Object.keys(i).length === 0 && (i = _t("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3971
3965
|
}
|
|
3972
|
-
),
|
|
3966
|
+
), ca = (e = {}) => {
|
|
3973
3967
|
var t = e, {
|
|
3974
3968
|
locale: n = Re()
|
|
3975
|
-
} = t, r =
|
|
3969
|
+
} = t, r = tt(t, [
|
|
3976
3970
|
"locale"
|
|
3977
3971
|
]);
|
|
3978
|
-
return
|
|
3979
|
-
},
|
|
3972
|
+
return aa(Pn({ locale: n }, r));
|
|
3973
|
+
}, fa = (e = {}) => {
|
|
3980
3974
|
var t = e, {
|
|
3981
3975
|
locale: n = Re()
|
|
3982
|
-
} = t, r =
|
|
3976
|
+
} = t, r = tt(t, [
|
|
3983
3977
|
"locale"
|
|
3984
3978
|
]);
|
|
3985
|
-
return
|
|
3986
|
-
},
|
|
3979
|
+
return ua(Pn({ locale: n }, r));
|
|
3980
|
+
}, ha = (e = {}) => {
|
|
3987
3981
|
var t = e, {
|
|
3988
3982
|
locale: n = Re()
|
|
3989
|
-
} = t, r =
|
|
3983
|
+
} = t, r = tt(t, [
|
|
3990
3984
|
"locale"
|
|
3991
3985
|
]);
|
|
3992
|
-
return
|
|
3993
|
-
},
|
|
3986
|
+
return la(Pn({ locale: n }, r));
|
|
3987
|
+
}, ma = Jt(
|
|
3994
3988
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3995
|
-
(e, t = Re()) => new
|
|
3996
|
-
ignoreTag:
|
|
3989
|
+
(e, t = Re()) => new wi(e, t, Qe().formats, {
|
|
3990
|
+
ignoreTag: Qe().ignoreTag
|
|
3997
3991
|
})
|
|
3998
|
-
),
|
|
3992
|
+
), da = (e, t = {}) => {
|
|
3999
3993
|
var n, r, i, o;
|
|
4000
3994
|
let a = t;
|
|
4001
3995
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -4008,9 +4002,9 @@ const bt = (e, t) => {
|
|
|
4008
4002
|
throw new Error(
|
|
4009
4003
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4010
4004
|
);
|
|
4011
|
-
let f =
|
|
4005
|
+
let f = Ai(e, c);
|
|
4012
4006
|
if (!f)
|
|
4013
|
-
f = (o = (i = (r = (n =
|
|
4007
|
+
f = (o = (i = (r = (n = Qe()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4014
4008
|
else if (typeof f != "string")
|
|
4015
4009
|
return console.warn(
|
|
4016
4010
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4019,7 +4013,7 @@ const bt = (e, t) => {
|
|
|
4019
4013
|
return f;
|
|
4020
4014
|
let _ = f;
|
|
4021
4015
|
try {
|
|
4022
|
-
_ =
|
|
4016
|
+
_ = ma(f, c).format(u);
|
|
4023
4017
|
} catch (y) {
|
|
4024
4018
|
y instanceof Error && console.warn(
|
|
4025
4019
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4027,20 +4021,20 @@ const bt = (e, t) => {
|
|
|
4027
4021
|
);
|
|
4028
4022
|
}
|
|
4029
4023
|
return _;
|
|
4030
|
-
},
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
function
|
|
4036
|
-
|
|
4037
|
-
}
|
|
4038
|
-
function
|
|
4039
|
-
|
|
4024
|
+
}, pa = (e, t) => ha(t).format(e), ga = (e, t) => fa(t).format(e), _a = (e, t) => ca(t).format(e), ba = (e, t = Re()) => Ai(e, t), Ea = et([Be, Et], () => da);
|
|
4025
|
+
et([Be], () => pa);
|
|
4026
|
+
et([Be], () => ga);
|
|
4027
|
+
et([Be], () => _a);
|
|
4028
|
+
et([Be, Et], () => ba);
|
|
4029
|
+
function Cr(e, t) {
|
|
4030
|
+
Mi(e, t);
|
|
4031
|
+
}
|
|
4032
|
+
function ya(e) {
|
|
4033
|
+
Js({
|
|
4040
4034
|
fallbackLocale: "en"
|
|
4041
|
-
}),
|
|
4035
|
+
}), Be.set(e);
|
|
4042
4036
|
}
|
|
4043
|
-
const
|
|
4037
|
+
const Lr = {
|
|
4044
4038
|
en: {
|
|
4045
4039
|
sessionExpirationHeader: "Session Warning",
|
|
4046
4040
|
sessionExpirationTitle: "Your session is about to expire!",
|
|
@@ -4065,19 +4059,19 @@ const Hr = {
|
|
|
4065
4059
|
};
|
|
4066
4060
|
/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
|
|
4067
4061
|
const {
|
|
4068
|
-
entries:
|
|
4069
|
-
setPrototypeOf:
|
|
4070
|
-
isFrozen:
|
|
4071
|
-
getPrototypeOf:
|
|
4072
|
-
getOwnPropertyDescriptor:
|
|
4062
|
+
entries: Ii,
|
|
4063
|
+
setPrototypeOf: Nr,
|
|
4064
|
+
isFrozen: xa,
|
|
4065
|
+
getPrototypeOf: Ta,
|
|
4066
|
+
getOwnPropertyDescriptor: va
|
|
4073
4067
|
} = Object;
|
|
4074
4068
|
let {
|
|
4075
4069
|
freeze: fe,
|
|
4076
4070
|
seal: be,
|
|
4077
|
-
create:
|
|
4071
|
+
create: Ri
|
|
4078
4072
|
} = Object, {
|
|
4079
|
-
apply:
|
|
4080
|
-
construct:
|
|
4073
|
+
apply: Cn,
|
|
4074
|
+
construct: Ln
|
|
4081
4075
|
} = typeof Reflect != "undefined" && Reflect;
|
|
4082
4076
|
fe || (fe = function(t) {
|
|
4083
4077
|
return t;
|
|
@@ -4085,98 +4079,98 @@ fe || (fe = function(t) {
|
|
|
4085
4079
|
be || (be = function(t) {
|
|
4086
4080
|
return t;
|
|
4087
4081
|
});
|
|
4088
|
-
|
|
4082
|
+
Cn || (Cn = function(t, n, r) {
|
|
4089
4083
|
return t.apply(n, r);
|
|
4090
4084
|
});
|
|
4091
|
-
|
|
4085
|
+
Ln || (Ln = function(t, n) {
|
|
4092
4086
|
return new t(...n);
|
|
4093
4087
|
});
|
|
4094
|
-
const
|
|
4088
|
+
const Ct = pe(Array.prototype.forEach), Hr = pe(Array.prototype.pop), at = pe(Array.prototype.push), Ut = pe(String.prototype.toLowerCase), pn = pe(String.prototype.toString), Ir = pe(String.prototype.match), ut = pe(String.prototype.replace), Sa = pe(String.prototype.indexOf), wa = pe(String.prototype.trim), Te = pe(Object.prototype.hasOwnProperty), ue = pe(RegExp.prototype.test), lt = Aa(TypeError);
|
|
4095
4089
|
function pe(e) {
|
|
4096
4090
|
return function(t) {
|
|
4097
4091
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
4098
4092
|
r[i - 1] = arguments[i];
|
|
4099
|
-
return
|
|
4093
|
+
return Cn(e, t, r);
|
|
4100
4094
|
};
|
|
4101
4095
|
}
|
|
4102
|
-
function
|
|
4096
|
+
function Aa(e) {
|
|
4103
4097
|
return function() {
|
|
4104
4098
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
4105
4099
|
n[r] = arguments[r];
|
|
4106
|
-
return
|
|
4100
|
+
return Ln(e, n);
|
|
4107
4101
|
};
|
|
4108
4102
|
}
|
|
4109
|
-
function
|
|
4110
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
4111
|
-
|
|
4103
|
+
function R(e, t) {
|
|
4104
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ut;
|
|
4105
|
+
Nr && Nr(e, null);
|
|
4112
4106
|
let r = t.length;
|
|
4113
4107
|
for (; r--; ) {
|
|
4114
4108
|
let i = t[r];
|
|
4115
4109
|
if (typeof i == "string") {
|
|
4116
4110
|
const o = n(i);
|
|
4117
|
-
o !== i && (
|
|
4111
|
+
o !== i && (xa(t) || (t[r] = o), i = o);
|
|
4118
4112
|
}
|
|
4119
4113
|
e[i] = !0;
|
|
4120
4114
|
}
|
|
4121
4115
|
return e;
|
|
4122
4116
|
}
|
|
4123
|
-
function
|
|
4117
|
+
function Oa(e) {
|
|
4124
4118
|
for (let t = 0; t < e.length; t++)
|
|
4125
|
-
|
|
4119
|
+
Te(e, t) || (e[t] = null);
|
|
4126
4120
|
return e;
|
|
4127
4121
|
}
|
|
4128
|
-
function
|
|
4129
|
-
const t =
|
|
4130
|
-
for (const [n, r] of
|
|
4131
|
-
|
|
4122
|
+
function De(e) {
|
|
4123
|
+
const t = Ri(null);
|
|
4124
|
+
for (const [n, r] of Ii(e))
|
|
4125
|
+
Te(e, n) && (Array.isArray(r) ? t[n] = Oa(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = De(r) : t[n] = r);
|
|
4132
4126
|
return t;
|
|
4133
4127
|
}
|
|
4134
|
-
function
|
|
4128
|
+
function ct(e, t) {
|
|
4135
4129
|
for (; e !== null; ) {
|
|
4136
|
-
const r =
|
|
4130
|
+
const r = va(e, t);
|
|
4137
4131
|
if (r) {
|
|
4138
4132
|
if (r.get)
|
|
4139
4133
|
return pe(r.get);
|
|
4140
4134
|
if (typeof r.value == "function")
|
|
4141
4135
|
return pe(r.value);
|
|
4142
4136
|
}
|
|
4143
|
-
e =
|
|
4137
|
+
e = Ta(e);
|
|
4144
4138
|
}
|
|
4145
4139
|
function n() {
|
|
4146
4140
|
return null;
|
|
4147
4141
|
}
|
|
4148
4142
|
return n;
|
|
4149
4143
|
}
|
|
4150
|
-
const
|
|
4144
|
+
const Rr = fe(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), gn = fe(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), _n = fe(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Ma = fe(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), bn = fe(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Ca = fe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Pr = fe(["#text"]), Dr = fe(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), En = fe(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Br = fe(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Lt = fe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), La = be(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Na = be(/<%[\w\W]*|[\w\W]*%>/gm), Ha = be(/\${[\w\W]*}/gm), Ia = be(/^data-[\-\w.\u00B7-\uFFFF]/), Ra = be(/^aria-[\-\w]+$/), Pi = be(
|
|
4151
4145
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
4152
4146
|
// eslint-disable-line no-useless-escape
|
|
4153
|
-
),
|
|
4147
|
+
), Pa = be(/^(?:\w+script|data):/i), Da = be(
|
|
4154
4148
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
4155
4149
|
// eslint-disable-line no-control-regex
|
|
4156
|
-
),
|
|
4157
|
-
var
|
|
4150
|
+
), Di = be(/^html$/i), Ba = be(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
4151
|
+
var $r = /* @__PURE__ */ Object.freeze({
|
|
4158
4152
|
__proto__: null,
|
|
4159
|
-
MUSTACHE_EXPR:
|
|
4160
|
-
ERB_EXPR:
|
|
4161
|
-
TMPLIT_EXPR:
|
|
4162
|
-
DATA_ATTR:
|
|
4163
|
-
ARIA_ATTR:
|
|
4164
|
-
IS_ALLOWED_URI:
|
|
4165
|
-
IS_SCRIPT_OR_DATA:
|
|
4166
|
-
ATTR_WHITESPACE:
|
|
4167
|
-
DOCTYPE_NAME:
|
|
4168
|
-
CUSTOM_ELEMENT:
|
|
4153
|
+
MUSTACHE_EXPR: La,
|
|
4154
|
+
ERB_EXPR: Na,
|
|
4155
|
+
TMPLIT_EXPR: Ha,
|
|
4156
|
+
DATA_ATTR: Ia,
|
|
4157
|
+
ARIA_ATTR: Ra,
|
|
4158
|
+
IS_ALLOWED_URI: Pi,
|
|
4159
|
+
IS_SCRIPT_OR_DATA: Pa,
|
|
4160
|
+
ATTR_WHITESPACE: Da,
|
|
4161
|
+
DOCTYPE_NAME: Di,
|
|
4162
|
+
CUSTOM_ELEMENT: Ba
|
|
4169
4163
|
});
|
|
4170
|
-
const
|
|
4164
|
+
const ft = {
|
|
4171
4165
|
element: 1,
|
|
4172
4166
|
text: 3,
|
|
4173
4167
|
// Deprecated
|
|
4174
4168
|
progressingInstruction: 7,
|
|
4175
4169
|
comment: 8,
|
|
4176
4170
|
document: 9
|
|
4177
|
-
},
|
|
4171
|
+
}, $a = function() {
|
|
4178
4172
|
return typeof window == "undefined" ? null : window;
|
|
4179
|
-
},
|
|
4173
|
+
}, Ua = function(t, n) {
|
|
4180
4174
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
4181
4175
|
return null;
|
|
4182
4176
|
let r = null;
|
|
@@ -4196,10 +4190,10 @@ const ht = {
|
|
|
4196
4190
|
return console.warn("TrustedTypes policy " + o + " could not be created."), null;
|
|
4197
4191
|
}
|
|
4198
4192
|
};
|
|
4199
|
-
function
|
|
4200
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
4201
|
-
const t = (A) =>
|
|
4202
|
-
if (t.version = "3.1.6", t.removed = [], !e || !e.document || e.document.nodeType !==
|
|
4193
|
+
function Bi() {
|
|
4194
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : $a();
|
|
4195
|
+
const t = (A) => Bi(A);
|
|
4196
|
+
if (t.version = "3.1.6", t.removed = [], !e || !e.document || e.document.nodeType !== ft.document)
|
|
4203
4197
|
return t.isSupported = !1, t;
|
|
4204
4198
|
let {
|
|
4205
4199
|
document: n
|
|
@@ -4214,39 +4208,39 @@ function Ui() {
|
|
|
4214
4208
|
HTMLFormElement: _,
|
|
4215
4209
|
DOMParser: y,
|
|
4216
4210
|
trustedTypes: M
|
|
4217
|
-
} = e, b = c.prototype, d =
|
|
4211
|
+
} = e, b = c.prototype, d = ct(b, "cloneNode"), C = ct(b, "remove"), G = ct(b, "nextSibling"), $ = ct(b, "childNodes"), w = ct(b, "parentNode");
|
|
4218
4212
|
if (typeof a == "function") {
|
|
4219
4213
|
const A = n.createElement("template");
|
|
4220
4214
|
A.content && A.content.ownerDocument && (n = A.content.ownerDocument);
|
|
4221
4215
|
}
|
|
4222
|
-
let H,
|
|
4216
|
+
let H, P = "";
|
|
4223
4217
|
const {
|
|
4224
|
-
implementation:
|
|
4225
|
-
createNodeIterator:
|
|
4226
|
-
createDocumentFragment:
|
|
4218
|
+
implementation: F,
|
|
4219
|
+
createNodeIterator: Z,
|
|
4220
|
+
createDocumentFragment: X,
|
|
4227
4221
|
getElementsByTagName: Q
|
|
4228
4222
|
} = n, {
|
|
4229
|
-
importNode:
|
|
4223
|
+
importNode: j
|
|
4230
4224
|
} = r;
|
|
4231
4225
|
let O = {};
|
|
4232
|
-
t.isSupported = typeof
|
|
4226
|
+
t.isSupported = typeof Ii == "function" && typeof w == "function" && F && F.createHTMLDocument !== void 0;
|
|
4233
4227
|
const {
|
|
4234
4228
|
MUSTACHE_EXPR: te,
|
|
4235
4229
|
ERB_EXPR: he,
|
|
4236
|
-
TMPLIT_EXPR:
|
|
4230
|
+
TMPLIT_EXPR: v,
|
|
4237
4231
|
DATA_ATTR: E,
|
|
4238
4232
|
ARIA_ATTR: g,
|
|
4239
|
-
IS_SCRIPT_OR_DATA:
|
|
4233
|
+
IS_SCRIPT_OR_DATA: T,
|
|
4240
4234
|
ATTR_WHITESPACE: h,
|
|
4241
4235
|
CUSTOM_ELEMENT: x
|
|
4242
|
-
} =
|
|
4236
|
+
} = $r;
|
|
4243
4237
|
let {
|
|
4244
4238
|
IS_ALLOWED_URI: L
|
|
4245
|
-
} =
|
|
4246
|
-
const
|
|
4239
|
+
} = $r, N = null;
|
|
4240
|
+
const z = R({}, [...Rr, ...gn, ..._n, ...bn, ...Pr]);
|
|
4247
4241
|
let I = null;
|
|
4248
|
-
const q =
|
|
4249
|
-
let m = Object.seal(
|
|
4242
|
+
const q = R({}, [...Dr, ...En, ...Br, ...Lt]);
|
|
4243
|
+
let m = Object.seal(Ri(null, {
|
|
4250
4244
|
tagNameCheck: {
|
|
4251
4245
|
writable: !0,
|
|
4252
4246
|
configurable: !1,
|
|
@@ -4265,59 +4259,59 @@ function Ui() {
|
|
|
4265
4259
|
enumerable: !0,
|
|
4266
4260
|
value: !1
|
|
4267
4261
|
}
|
|
4268
|
-
})), U = null, ee = null, K = !0, ye = !0, ie = !1, xe = !0, ge = !1,
|
|
4269
|
-
const
|
|
4270
|
-
let
|
|
4271
|
-
const
|
|
4272
|
-
let
|
|
4273
|
-
const
|
|
4274
|
-
let
|
|
4275
|
-
const
|
|
4276
|
-
let
|
|
4277
|
-
const
|
|
4278
|
-
let
|
|
4279
|
-
const
|
|
4280
|
-
let ne = null,
|
|
4281
|
-
const
|
|
4262
|
+
})), U = null, ee = null, K = !0, ye = !0, ie = !1, xe = !0, ge = !1, Le = !0, Pe = !1, Qt = !1, Kt = !1, $e = !1, xt = !1, Tt = !1, Dn = !0, Bn = !1;
|
|
4263
|
+
const ki = "user-content-";
|
|
4264
|
+
let en = !0, nt = !1, Ue = {}, ke = null;
|
|
4265
|
+
const $n = R({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
4266
|
+
let Un = null;
|
|
4267
|
+
const kn = R({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
4268
|
+
let tn = null;
|
|
4269
|
+
const Fn = R({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), vt = "http://www.w3.org/1998/Math/MathML", St = "http://www.w3.org/2000/svg", Ae = "http://www.w3.org/1999/xhtml";
|
|
4270
|
+
let Fe = Ae, nn = !1, rn = null;
|
|
4271
|
+
const Fi = R({}, [vt, St, Ae], pn);
|
|
4272
|
+
let rt = null;
|
|
4273
|
+
const Gi = ["application/xhtml+xml", "text/html"], ji = "text/html";
|
|
4274
|
+
let ne = null, Ge = null;
|
|
4275
|
+
const zi = n.createElement("form"), Gn = function(s) {
|
|
4282
4276
|
return s instanceof RegExp || s instanceof Function;
|
|
4283
|
-
},
|
|
4277
|
+
}, on = function() {
|
|
4284
4278
|
let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4285
|
-
if (!(
|
|
4286
|
-
if ((!s || typeof s != "object") && (s = {}), s =
|
|
4287
|
-
|
|
4288
|
-
|
|
4279
|
+
if (!(Ge && Ge === s)) {
|
|
4280
|
+
if ((!s || typeof s != "object") && (s = {}), s = De(s), rt = // eslint-disable-next-line unicorn/prefer-includes
|
|
4281
|
+
Gi.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? ji : s.PARSER_MEDIA_TYPE, ne = rt === "application/xhtml+xml" ? pn : Ut, N = Te(s, "ALLOWED_TAGS") ? R({}, s.ALLOWED_TAGS, ne) : z, I = Te(s, "ALLOWED_ATTR") ? R({}, s.ALLOWED_ATTR, ne) : q, rn = Te(s, "ALLOWED_NAMESPACES") ? R({}, s.ALLOWED_NAMESPACES, pn) : Fi, tn = Te(s, "ADD_URI_SAFE_ATTR") ? R(
|
|
4282
|
+
De(Fn),
|
|
4289
4283
|
// eslint-disable-line indent
|
|
4290
4284
|
s.ADD_URI_SAFE_ATTR,
|
|
4291
4285
|
// eslint-disable-line indent
|
|
4292
4286
|
ne
|
|
4293
4287
|
// eslint-disable-line indent
|
|
4294
|
-
) :
|
|
4295
|
-
|
|
4288
|
+
) : Fn, Un = Te(s, "ADD_DATA_URI_TAGS") ? R(
|
|
4289
|
+
De(kn),
|
|
4296
4290
|
// eslint-disable-line indent
|
|
4297
4291
|
s.ADD_DATA_URI_TAGS,
|
|
4298
4292
|
// eslint-disable-line indent
|
|
4299
4293
|
ne
|
|
4300
4294
|
// eslint-disable-line indent
|
|
4301
|
-
) :
|
|
4295
|
+
) : kn, ke = Te(s, "FORBID_CONTENTS") ? R({}, s.FORBID_CONTENTS, ne) : $n, U = Te(s, "FORBID_TAGS") ? R({}, s.FORBID_TAGS, ne) : {}, ee = Te(s, "FORBID_ATTR") ? R({}, s.FORBID_ATTR, ne) : {}, Ue = Te(s, "USE_PROFILES") ? s.USE_PROFILES : !1, K = s.ALLOW_ARIA_ATTR !== !1, ye = s.ALLOW_DATA_ATTR !== !1, ie = s.ALLOW_UNKNOWN_PROTOCOLS || !1, xe = s.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ge = s.SAFE_FOR_TEMPLATES || !1, Le = s.SAFE_FOR_XML !== !1, Pe = s.WHOLE_DOCUMENT || !1, $e = s.RETURN_DOM || !1, xt = s.RETURN_DOM_FRAGMENT || !1, Tt = s.RETURN_TRUSTED_TYPE || !1, Kt = s.FORCE_BODY || !1, Dn = s.SANITIZE_DOM !== !1, Bn = s.SANITIZE_NAMED_PROPS || !1, en = s.KEEP_CONTENT !== !1, nt = s.IN_PLACE || !1, L = s.ALLOWED_URI_REGEXP || Pi, Fe = s.NAMESPACE || Ae, m = s.CUSTOM_ELEMENT_HANDLING || {}, s.CUSTOM_ELEMENT_HANDLING && Gn(s.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (m.tagNameCheck = s.CUSTOM_ELEMENT_HANDLING.tagNameCheck), s.CUSTOM_ELEMENT_HANDLING && Gn(s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (m.attributeNameCheck = s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), s.CUSTOM_ELEMENT_HANDLING && typeof s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (m.allowCustomizedBuiltInElements = s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ge && (ye = !1), xt && ($e = !0), Ue && (N = R({}, Pr), I = [], Ue.html === !0 && (R(N, Rr), R(I, Dr)), Ue.svg === !0 && (R(N, gn), R(I, En), R(I, Lt)), Ue.svgFilters === !0 && (R(N, _n), R(I, En), R(I, Lt)), Ue.mathMl === !0 && (R(N, bn), R(I, Br), R(I, Lt))), s.ADD_TAGS && (N === z && (N = De(N)), R(N, s.ADD_TAGS, ne)), s.ADD_ATTR && (I === q && (I = De(I)), R(I, s.ADD_ATTR, ne)), s.ADD_URI_SAFE_ATTR && R(tn, s.ADD_URI_SAFE_ATTR, ne), s.FORBID_CONTENTS && (ke === $n && (ke = De(ke)), R(ke, s.FORBID_CONTENTS, ne)), en && (N["#text"] = !0), Pe && R(N, ["html", "head", "body"]), N.table && (R(N, ["tbody"]), delete U.tbody), s.TRUSTED_TYPES_POLICY) {
|
|
4302
4296
|
if (typeof s.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4303
|
-
throw
|
|
4297
|
+
throw lt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4304
4298
|
if (typeof s.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
4305
|
-
throw
|
|
4306
|
-
H = s.TRUSTED_TYPES_POLICY,
|
|
4299
|
+
throw lt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
4300
|
+
H = s.TRUSTED_TYPES_POLICY, P = H.createHTML("");
|
|
4307
4301
|
} else
|
|
4308
|
-
H === void 0 && (H =
|
|
4309
|
-
fe && fe(s),
|
|
4302
|
+
H === void 0 && (H = Ua(M, i)), H !== null && typeof P == "string" && (P = H.createHTML(""));
|
|
4303
|
+
fe && fe(s), Ge = s;
|
|
4310
4304
|
}
|
|
4311
|
-
},
|
|
4305
|
+
}, jn = R({}, ["mi", "mo", "mn", "ms", "mtext"]), zn = R({}, ["foreignobject", "annotation-xml"]), Wi = R({}, ["title", "style", "font", "a", "script"]), Wn = R({}, [...gn, ..._n, ...Ma]), Vn = R({}, [...bn, ...Ca]), Vi = function(s) {
|
|
4312
4306
|
let p = w(s);
|
|
4313
4307
|
(!p || !p.tagName) && (p = {
|
|
4314
|
-
namespaceURI:
|
|
4308
|
+
namespaceURI: Fe,
|
|
4315
4309
|
tagName: "template"
|
|
4316
4310
|
});
|
|
4317
|
-
const S =
|
|
4318
|
-
return
|
|
4319
|
-
},
|
|
4320
|
-
|
|
4311
|
+
const S = Ut(s.tagName), W = Ut(p.tagName);
|
|
4312
|
+
return rn[s.namespaceURI] ? s.namespaceURI === St ? p.namespaceURI === Ae ? S === "svg" : p.namespaceURI === vt ? S === "svg" && (W === "annotation-xml" || jn[W]) : !!Wn[S] : s.namespaceURI === vt ? p.namespaceURI === Ae ? S === "math" : p.namespaceURI === St ? S === "math" && zn[W] : !!Vn[S] : s.namespaceURI === Ae ? p.namespaceURI === St && !zn[W] || p.namespaceURI === vt && !jn[W] ? !1 : !Vn[S] && (Wi[S] || !Wn[S]) : !!(rt === "application/xhtml+xml" && rn[s.namespaceURI]) : !1;
|
|
4313
|
+
}, ve = function(s) {
|
|
4314
|
+
at(t.removed, {
|
|
4321
4315
|
element: s
|
|
4322
4316
|
});
|
|
4323
4317
|
try {
|
|
@@ -4325,22 +4319,22 @@ function Ui() {
|
|
|
4325
4319
|
} catch (p) {
|
|
4326
4320
|
C(s);
|
|
4327
4321
|
}
|
|
4328
|
-
},
|
|
4322
|
+
}, wt = function(s, p) {
|
|
4329
4323
|
try {
|
|
4330
|
-
|
|
4324
|
+
at(t.removed, {
|
|
4331
4325
|
attribute: p.getAttributeNode(s),
|
|
4332
4326
|
from: p
|
|
4333
4327
|
});
|
|
4334
4328
|
} catch (S) {
|
|
4335
|
-
|
|
4329
|
+
at(t.removed, {
|
|
4336
4330
|
attribute: null,
|
|
4337
4331
|
from: p
|
|
4338
4332
|
});
|
|
4339
4333
|
}
|
|
4340
4334
|
if (p.removeAttribute(s), s === "is" && !I[s])
|
|
4341
|
-
if (
|
|
4335
|
+
if ($e || xt)
|
|
4342
4336
|
try {
|
|
4343
|
-
|
|
4337
|
+
ve(p);
|
|
4344
4338
|
} catch (S) {
|
|
4345
4339
|
}
|
|
4346
4340
|
else
|
|
@@ -4348,78 +4342,78 @@ function Ui() {
|
|
|
4348
4342
|
p.setAttribute(s, "");
|
|
4349
4343
|
} catch (S) {
|
|
4350
4344
|
}
|
|
4351
|
-
},
|
|
4345
|
+
}, Xn = function(s) {
|
|
4352
4346
|
let p = null, S = null;
|
|
4353
|
-
if (
|
|
4347
|
+
if (Kt)
|
|
4354
4348
|
s = "<remove></remove>" + s;
|
|
4355
4349
|
else {
|
|
4356
|
-
const oe =
|
|
4350
|
+
const oe = Ir(s, /^[\r\n\t ]+/);
|
|
4357
4351
|
S = oe && oe[0];
|
|
4358
4352
|
}
|
|
4359
|
-
|
|
4360
|
-
const
|
|
4361
|
-
if (
|
|
4353
|
+
rt === "application/xhtml+xml" && Fe === Ae && (s = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + s + "</body></html>");
|
|
4354
|
+
const W = H ? H.createHTML(s) : s;
|
|
4355
|
+
if (Fe === Ae)
|
|
4362
4356
|
try {
|
|
4363
|
-
p = new y().parseFromString(
|
|
4357
|
+
p = new y().parseFromString(W, rt);
|
|
4364
4358
|
} catch (oe) {
|
|
4365
4359
|
}
|
|
4366
4360
|
if (!p || !p.documentElement) {
|
|
4367
|
-
p =
|
|
4361
|
+
p = F.createDocument(Fe, "template", null);
|
|
4368
4362
|
try {
|
|
4369
|
-
p.documentElement.innerHTML =
|
|
4363
|
+
p.documentElement.innerHTML = nn ? P : W;
|
|
4370
4364
|
} catch (oe) {
|
|
4371
4365
|
}
|
|
4372
4366
|
}
|
|
4373
4367
|
const se = p.body || p.documentElement;
|
|
4374
|
-
return s && S && se.insertBefore(n.createTextNode(S), se.childNodes[0] || null),
|
|
4375
|
-
},
|
|
4376
|
-
return
|
|
4368
|
+
return s && S && se.insertBefore(n.createTextNode(S), se.childNodes[0] || null), Fe === Ae ? Q.call(p, Pe ? "html" : "body")[0] : Pe ? p.documentElement : se;
|
|
4369
|
+
}, Yn = function(s) {
|
|
4370
|
+
return Z.call(
|
|
4377
4371
|
s.ownerDocument || s,
|
|
4378
4372
|
s,
|
|
4379
4373
|
// eslint-disable-next-line no-bitwise
|
|
4380
4374
|
l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION,
|
|
4381
4375
|
null
|
|
4382
4376
|
);
|
|
4383
|
-
},
|
|
4377
|
+
}, Zn = function(s) {
|
|
4384
4378
|
return s instanceof _ && (typeof s.nodeName != "string" || typeof s.textContent != "string" || typeof s.removeChild != "function" || !(s.attributes instanceof f) || typeof s.removeAttribute != "function" || typeof s.setAttribute != "function" || typeof s.namespaceURI != "string" || typeof s.insertBefore != "function" || typeof s.hasChildNodes != "function");
|
|
4385
|
-
},
|
|
4379
|
+
}, qn = function(s) {
|
|
4386
4380
|
return typeof u == "function" && s instanceof u;
|
|
4387
|
-
},
|
|
4388
|
-
O[s] &&
|
|
4389
|
-
|
|
4381
|
+
}, Oe = function(s, p, S) {
|
|
4382
|
+
O[s] && Ct(O[s], (W) => {
|
|
4383
|
+
W.call(t, p, S, Ge);
|
|
4390
4384
|
});
|
|
4391
|
-
},
|
|
4385
|
+
}, Jn = function(s) {
|
|
4392
4386
|
let p = null;
|
|
4393
|
-
if (
|
|
4394
|
-
return
|
|
4387
|
+
if (Oe("beforeSanitizeElements", s, null), Zn(s))
|
|
4388
|
+
return ve(s), !0;
|
|
4395
4389
|
const S = ne(s.nodeName);
|
|
4396
|
-
if (
|
|
4390
|
+
if (Oe("uponSanitizeElement", s, {
|
|
4397
4391
|
tagName: S,
|
|
4398
4392
|
allowedTags: N
|
|
4399
|
-
}), s.hasChildNodes() && !
|
|
4400
|
-
return
|
|
4393
|
+
}), s.hasChildNodes() && !qn(s.firstElementChild) && ue(/<[/\w]/g, s.innerHTML) && ue(/<[/\w]/g, s.textContent) || s.nodeType === ft.progressingInstruction || Le && s.nodeType === ft.comment && ue(/<[/\w]/g, s.data))
|
|
4394
|
+
return ve(s), !0;
|
|
4401
4395
|
if (!N[S] || U[S]) {
|
|
4402
|
-
if (!U[S] &&
|
|
4396
|
+
if (!U[S] && Kn(S) && (m.tagNameCheck instanceof RegExp && ue(m.tagNameCheck, S) || m.tagNameCheck instanceof Function && m.tagNameCheck(S)))
|
|
4403
4397
|
return !1;
|
|
4404
|
-
if (
|
|
4405
|
-
const
|
|
4406
|
-
if (se &&
|
|
4398
|
+
if (en && !ke[S]) {
|
|
4399
|
+
const W = w(s) || s.parentNode, se = $(s) || s.childNodes;
|
|
4400
|
+
if (se && W) {
|
|
4407
4401
|
const oe = se.length;
|
|
4408
4402
|
for (let me = oe - 1; me >= 0; --me) {
|
|
4409
4403
|
const Se = d(se[me], !0);
|
|
4410
|
-
Se.__removalCount = (s.__removalCount || 0) + 1,
|
|
4404
|
+
Se.__removalCount = (s.__removalCount || 0) + 1, W.insertBefore(Se, G(s));
|
|
4411
4405
|
}
|
|
4412
4406
|
}
|
|
4413
4407
|
}
|
|
4414
|
-
return
|
|
4408
|
+
return ve(s), !0;
|
|
4415
4409
|
}
|
|
4416
|
-
return s instanceof c && !
|
|
4417
|
-
p =
|
|
4418
|
-
}), s.textContent !== p && (
|
|
4410
|
+
return s instanceof c && !Vi(s) || (S === "noscript" || S === "noembed" || S === "noframes") && ue(/<\/no(script|embed|frames)/i, s.innerHTML) ? (ve(s), !0) : (ge && s.nodeType === ft.text && (p = s.textContent, Ct([te, he, v], (W) => {
|
|
4411
|
+
p = ut(p, W, " ");
|
|
4412
|
+
}), s.textContent !== p && (at(t.removed, {
|
|
4419
4413
|
element: s.cloneNode()
|
|
4420
|
-
}), s.textContent = p)),
|
|
4421
|
-
},
|
|
4422
|
-
if (
|
|
4414
|
+
}), s.textContent = p)), Oe("afterSanitizeElements", s, null), !1);
|
|
4415
|
+
}, Qn = function(s, p, S) {
|
|
4416
|
+
if (Dn && (p === "id" || p === "name") && (S in n || S in zi))
|
|
4423
4417
|
return !1;
|
|
4424
4418
|
if (!(ye && !ee[p] && ue(E, p))) {
|
|
4425
4419
|
if (!(K && ue(g, p))) {
|
|
@@ -4428,15 +4422,15 @@ function Ui() {
|
|
|
4428
4422
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
4429
4423
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4430
4424
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
4431
|
-
!(
|
|
4425
|
+
!(Kn(s) && (m.tagNameCheck instanceof RegExp && ue(m.tagNameCheck, s) || m.tagNameCheck instanceof Function && m.tagNameCheck(s)) && (m.attributeNameCheck instanceof RegExp && ue(m.attributeNameCheck, p) || m.attributeNameCheck instanceof Function && m.attributeNameCheck(p)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
4432
4426
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4433
4427
|
p === "is" && m.allowCustomizedBuiltInElements && (m.tagNameCheck instanceof RegExp && ue(m.tagNameCheck, S) || m.tagNameCheck instanceof Function && m.tagNameCheck(S)))
|
|
4434
4428
|
)
|
|
4435
4429
|
return !1;
|
|
4436
|
-
} else if (!
|
|
4437
|
-
if (!ue(L,
|
|
4438
|
-
if (!((p === "src" || p === "xlink:href" || p === "href") && s !== "script" &&
|
|
4439
|
-
if (!(ie && !ue(
|
|
4430
|
+
} else if (!tn[p]) {
|
|
4431
|
+
if (!ue(L, ut(S, h, ""))) {
|
|
4432
|
+
if (!((p === "src" || p === "xlink:href" || p === "href") && s !== "script" && Sa(S, "data:") === 0 && Un[s])) {
|
|
4433
|
+
if (!(ie && !ue(T, ut(S, h, "")))) {
|
|
4440
4434
|
if (S)
|
|
4441
4435
|
return !1;
|
|
4442
4436
|
}
|
|
@@ -4446,10 +4440,10 @@ function Ui() {
|
|
|
4446
4440
|
}
|
|
4447
4441
|
}
|
|
4448
4442
|
return !0;
|
|
4449
|
-
},
|
|
4450
|
-
return s !== "annotation-xml" &&
|
|
4451
|
-
},
|
|
4452
|
-
|
|
4443
|
+
}, Kn = function(s) {
|
|
4444
|
+
return s !== "annotation-xml" && Ir(s, x);
|
|
4445
|
+
}, er = function(s) {
|
|
4446
|
+
Oe("beforeSanitizeAttributes", s, null);
|
|
4453
4447
|
const {
|
|
4454
4448
|
attributes: p
|
|
4455
4449
|
} = s;
|
|
@@ -4461,31 +4455,31 @@ function Ui() {
|
|
|
4461
4455
|
keepAttr: !0,
|
|
4462
4456
|
allowedAttributes: I
|
|
4463
4457
|
};
|
|
4464
|
-
let
|
|
4465
|
-
for (;
|
|
4466
|
-
const se = p[
|
|
4458
|
+
let W = p.length;
|
|
4459
|
+
for (; W--; ) {
|
|
4460
|
+
const se = p[W], {
|
|
4467
4461
|
name: oe,
|
|
4468
4462
|
namespaceURI: me,
|
|
4469
4463
|
value: Se
|
|
4470
|
-
} = se,
|
|
4471
|
-
let ae = oe === "value" ? Se :
|
|
4472
|
-
if (S.attrName =
|
|
4473
|
-
|
|
4464
|
+
} = se, it = ne(oe);
|
|
4465
|
+
let ae = oe === "value" ? Se : wa(Se);
|
|
4466
|
+
if (S.attrName = it, S.attrValue = ae, S.keepAttr = !0, S.forceKeepAttr = void 0, Oe("uponSanitizeAttribute", s, S), ae = S.attrValue, Le && ue(/((--!?|])>)|<\/(style|title)/i, ae)) {
|
|
4467
|
+
wt(oe, s);
|
|
4474
4468
|
continue;
|
|
4475
4469
|
}
|
|
4476
|
-
if (S.forceKeepAttr || (
|
|
4470
|
+
if (S.forceKeepAttr || (wt(oe, s), !S.keepAttr))
|
|
4477
4471
|
continue;
|
|
4478
4472
|
if (!xe && ue(/\/>/i, ae)) {
|
|
4479
|
-
|
|
4473
|
+
wt(oe, s);
|
|
4480
4474
|
continue;
|
|
4481
4475
|
}
|
|
4482
|
-
ge &&
|
|
4483
|
-
ae =
|
|
4476
|
+
ge && Ct([te, he, v], (nr) => {
|
|
4477
|
+
ae = ut(ae, nr, " ");
|
|
4484
4478
|
});
|
|
4485
|
-
const
|
|
4486
|
-
if (
|
|
4487
|
-
if (
|
|
4488
|
-
switch (M.getAttributeType(
|
|
4479
|
+
const tr = ne(s.nodeName);
|
|
4480
|
+
if (Qn(tr, it, ae)) {
|
|
4481
|
+
if (Bn && (it === "id" || it === "name") && (wt(oe, s), ae = ki + ae), H && typeof M == "object" && typeof M.getAttributeType == "function" && !me)
|
|
4482
|
+
switch (M.getAttributeType(tr, it)) {
|
|
4489
4483
|
case "TrustedHTML": {
|
|
4490
4484
|
ae = H.createHTML(ae);
|
|
4491
4485
|
break;
|
|
@@ -4496,144 +4490,144 @@ function Ui() {
|
|
|
4496
4490
|
}
|
|
4497
4491
|
}
|
|
4498
4492
|
try {
|
|
4499
|
-
me ? s.setAttributeNS(me, oe, ae) : s.setAttribute(oe, ae),
|
|
4500
|
-
} catch (
|
|
4493
|
+
me ? s.setAttributeNS(me, oe, ae) : s.setAttribute(oe, ae), Zn(s) ? ve(s) : Hr(t.removed);
|
|
4494
|
+
} catch (nr) {
|
|
4501
4495
|
}
|
|
4502
4496
|
}
|
|
4503
4497
|
}
|
|
4504
|
-
|
|
4505
|
-
},
|
|
4498
|
+
Oe("afterSanitizeAttributes", s, null);
|
|
4499
|
+
}, Xi = function A(s) {
|
|
4506
4500
|
let p = null;
|
|
4507
|
-
const S =
|
|
4508
|
-
for (
|
|
4509
|
-
|
|
4510
|
-
|
|
4501
|
+
const S = Yn(s);
|
|
4502
|
+
for (Oe("beforeSanitizeShadowDOM", s, null); p = S.nextNode(); )
|
|
4503
|
+
Oe("uponSanitizeShadowNode", p, null), !Jn(p) && (p.content instanceof o && A(p.content), er(p));
|
|
4504
|
+
Oe("afterSanitizeShadowDOM", s, null);
|
|
4511
4505
|
};
|
|
4512
4506
|
return t.sanitize = function(A) {
|
|
4513
|
-
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, p = null, S = null,
|
|
4514
|
-
if (
|
|
4507
|
+
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, p = null, S = null, W = null, se = null;
|
|
4508
|
+
if (nn = !A, nn && (A = "<!-->"), typeof A != "string" && !qn(A))
|
|
4515
4509
|
if (typeof A.toString == "function") {
|
|
4516
4510
|
if (A = A.toString(), typeof A != "string")
|
|
4517
|
-
throw
|
|
4511
|
+
throw lt("dirty is not a string, aborting");
|
|
4518
4512
|
} else
|
|
4519
|
-
throw
|
|
4513
|
+
throw lt("toString is not a function");
|
|
4520
4514
|
if (!t.isSupported)
|
|
4521
4515
|
return A;
|
|
4522
|
-
if (
|
|
4516
|
+
if (Qt || on(s), t.removed = [], typeof A == "string" && (nt = !1), nt) {
|
|
4523
4517
|
if (A.nodeName) {
|
|
4524
4518
|
const Se = ne(A.nodeName);
|
|
4525
4519
|
if (!N[Se] || U[Se])
|
|
4526
|
-
throw
|
|
4520
|
+
throw lt("root node is forbidden and cannot be sanitized in-place");
|
|
4527
4521
|
}
|
|
4528
4522
|
} else if (A instanceof u)
|
|
4529
|
-
p =
|
|
4523
|
+
p = Xn("<!---->"), S = p.ownerDocument.importNode(A, !0), S.nodeType === ft.element && S.nodeName === "BODY" || S.nodeName === "HTML" ? p = S : p.appendChild(S);
|
|
4530
4524
|
else {
|
|
4531
|
-
if (
|
|
4525
|
+
if (!$e && !ge && !Pe && // eslint-disable-next-line unicorn/prefer-includes
|
|
4532
4526
|
A.indexOf("<") === -1)
|
|
4533
4527
|
return H && Tt ? H.createHTML(A) : A;
|
|
4534
|
-
if (p =
|
|
4535
|
-
return
|
|
4528
|
+
if (p = Xn(A), !p)
|
|
4529
|
+
return $e ? null : Tt ? P : "";
|
|
4536
4530
|
}
|
|
4537
|
-
p &&
|
|
4538
|
-
const oe =
|
|
4539
|
-
for (;
|
|
4540
|
-
|
|
4541
|
-
if (
|
|
4531
|
+
p && Kt && ve(p.firstChild);
|
|
4532
|
+
const oe = Yn(nt ? A : p);
|
|
4533
|
+
for (; W = oe.nextNode(); )
|
|
4534
|
+
Jn(W) || (W.content instanceof o && Xi(W.content), er(W));
|
|
4535
|
+
if (nt)
|
|
4542
4536
|
return A;
|
|
4543
|
-
if (
|
|
4544
|
-
if (
|
|
4545
|
-
for (se =
|
|
4537
|
+
if ($e) {
|
|
4538
|
+
if (xt)
|
|
4539
|
+
for (se = X.call(p.ownerDocument); p.firstChild; )
|
|
4546
4540
|
se.appendChild(p.firstChild);
|
|
4547
4541
|
else
|
|
4548
4542
|
se = p;
|
|
4549
|
-
return (I.shadowroot || I.shadowrootmode) && (se =
|
|
4543
|
+
return (I.shadowroot || I.shadowrootmode) && (se = j.call(r, se, !0)), se;
|
|
4550
4544
|
}
|
|
4551
|
-
let me =
|
|
4552
|
-
return
|
|
4553
|
-
` + me), ge &&
|
|
4554
|
-
me =
|
|
4545
|
+
let me = Pe ? p.outerHTML : p.innerHTML;
|
|
4546
|
+
return Pe && N["!doctype"] && p.ownerDocument && p.ownerDocument.doctype && p.ownerDocument.doctype.name && ue(Di, p.ownerDocument.doctype.name) && (me = "<!DOCTYPE " + p.ownerDocument.doctype.name + `>
|
|
4547
|
+
` + me), ge && Ct([te, he, v], (Se) => {
|
|
4548
|
+
me = ut(me, Se, " ");
|
|
4555
4549
|
}), H && Tt ? H.createHTML(me) : me;
|
|
4556
4550
|
}, t.setConfig = function() {
|
|
4557
4551
|
let A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4558
|
-
|
|
4552
|
+
on(A), Qt = !0;
|
|
4559
4553
|
}, t.clearConfig = function() {
|
|
4560
|
-
|
|
4554
|
+
Ge = null, Qt = !1;
|
|
4561
4555
|
}, t.isValidAttribute = function(A, s, p) {
|
|
4562
|
-
|
|
4563
|
-
const S = ne(A),
|
|
4564
|
-
return
|
|
4556
|
+
Ge || on({});
|
|
4557
|
+
const S = ne(A), W = ne(s);
|
|
4558
|
+
return Qn(S, W, p);
|
|
4565
4559
|
}, t.addHook = function(A, s) {
|
|
4566
|
-
typeof s == "function" && (O[A] = O[A] || [],
|
|
4560
|
+
typeof s == "function" && (O[A] = O[A] || [], at(O[A], s));
|
|
4567
4561
|
}, t.removeHook = function(A) {
|
|
4568
4562
|
if (O[A])
|
|
4569
|
-
return
|
|
4563
|
+
return Hr(O[A]);
|
|
4570
4564
|
}, t.removeHooks = function(A) {
|
|
4571
4565
|
O[A] && (O[A] = []);
|
|
4572
4566
|
}, t.removeAllHooks = function() {
|
|
4573
4567
|
O = {};
|
|
4574
4568
|
}, t;
|
|
4575
4569
|
}
|
|
4576
|
-
var
|
|
4570
|
+
var Ur = Bi(), $i = { exports: {} };
|
|
4577
4571
|
(function(e, t) {
|
|
4578
4572
|
(function(n, r) {
|
|
4579
4573
|
e.exports = r();
|
|
4580
|
-
})(
|
|
4581
|
-
var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", a = "second", u = "minute", c = "hour", l = "day", f = "week", _ = "month", y = "quarter", M = "year", b = "date", d = "Invalid Date", C = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
|
4582
|
-
var E = ["th", "st", "nd", "rd"], g =
|
|
4583
|
-
return "[" +
|
|
4584
|
-
} }, w = function(
|
|
4585
|
-
var
|
|
4586
|
-
return !
|
|
4587
|
-
}, H = { s: w, z: function(
|
|
4588
|
-
var E = -
|
|
4589
|
-
return (E <= 0 ? "+" : "-") + w(
|
|
4590
|
-
}, m: function
|
|
4574
|
+
})(ai, function() {
|
|
4575
|
+
var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", a = "second", u = "minute", c = "hour", l = "day", f = "week", _ = "month", y = "quarter", M = "year", b = "date", d = "Invalid Date", C = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, G = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, $ = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(v) {
|
|
4576
|
+
var E = ["th", "st", "nd", "rd"], g = v % 100;
|
|
4577
|
+
return "[" + v + (E[(g - 20) % 10] || E[g] || E[0]) + "]";
|
|
4578
|
+
} }, w = function(v, E, g) {
|
|
4579
|
+
var T = String(v);
|
|
4580
|
+
return !T || T.length >= E ? v : "" + Array(E + 1 - T.length).join(g) + v;
|
|
4581
|
+
}, H = { s: w, z: function(v) {
|
|
4582
|
+
var E = -v.utcOffset(), g = Math.abs(E), T = Math.floor(g / 60), h = g % 60;
|
|
4583
|
+
return (E <= 0 ? "+" : "-") + w(T, 2, "0") + ":" + w(h, 2, "0");
|
|
4584
|
+
}, m: function v(E, g) {
|
|
4591
4585
|
if (E.date() < g.date())
|
|
4592
|
-
return -
|
|
4593
|
-
var
|
|
4594
|
-
return +(-(
|
|
4595
|
-
}, a: function(
|
|
4596
|
-
return
|
|
4597
|
-
}, p: function(
|
|
4598
|
-
return { M: _, y: M, w: f, d: l, D: b, h: c, m: u, s: a, ms: o, Q: y }[
|
|
4599
|
-
}, u: function(
|
|
4600
|
-
return
|
|
4601
|
-
} },
|
|
4602
|
-
|
|
4603
|
-
var
|
|
4604
|
-
return
|
|
4605
|
-
}, Q = function
|
|
4586
|
+
return -v(g, E);
|
|
4587
|
+
var T = 12 * (g.year() - E.year()) + (g.month() - E.month()), h = E.clone().add(T, _), x = g - h < 0, L = E.clone().add(T + (x ? -1 : 1), _);
|
|
4588
|
+
return +(-(T + (g - h) / (x ? h - L : L - h)) || 0);
|
|
4589
|
+
}, a: function(v) {
|
|
4590
|
+
return v < 0 ? Math.ceil(v) || 0 : Math.floor(v);
|
|
4591
|
+
}, p: function(v) {
|
|
4592
|
+
return { M: _, y: M, w: f, d: l, D: b, h: c, m: u, s: a, ms: o, Q: y }[v] || String(v || "").toLowerCase().replace(/s$/, "");
|
|
4593
|
+
}, u: function(v) {
|
|
4594
|
+
return v === void 0;
|
|
4595
|
+
} }, P = "en", F = {};
|
|
4596
|
+
F[P] = $;
|
|
4597
|
+
var Z = "$isDayjsObject", X = function(v) {
|
|
4598
|
+
return v instanceof te || !(!v || !v[Z]);
|
|
4599
|
+
}, Q = function v(E, g, T) {
|
|
4606
4600
|
var h;
|
|
4607
4601
|
if (!E)
|
|
4608
|
-
return
|
|
4602
|
+
return P;
|
|
4609
4603
|
if (typeof E == "string") {
|
|
4610
4604
|
var x = E.toLowerCase();
|
|
4611
|
-
|
|
4605
|
+
F[x] && (h = x), g && (F[x] = g, h = x);
|
|
4612
4606
|
var L = E.split("-");
|
|
4613
4607
|
if (!h && L.length > 1)
|
|
4614
|
-
return
|
|
4608
|
+
return v(L[0]);
|
|
4615
4609
|
} else {
|
|
4616
4610
|
var N = E.name;
|
|
4617
|
-
|
|
4611
|
+
F[N] = E, h = N;
|
|
4618
4612
|
}
|
|
4619
|
-
return !
|
|
4620
|
-
},
|
|
4621
|
-
if (
|
|
4622
|
-
return
|
|
4613
|
+
return !T && h && (P = h), h || !T && P;
|
|
4614
|
+
}, j = function(v, E) {
|
|
4615
|
+
if (X(v))
|
|
4616
|
+
return v.clone();
|
|
4623
4617
|
var g = typeof E == "object" ? E : {};
|
|
4624
|
-
return g.date =
|
|
4618
|
+
return g.date = v, g.args = arguments, new te(g);
|
|
4625
4619
|
}, O = H;
|
|
4626
|
-
O.l = Q, O.i =
|
|
4627
|
-
return
|
|
4620
|
+
O.l = Q, O.i = X, O.w = function(v, E) {
|
|
4621
|
+
return j(v, { locale: E.$L, utc: E.$u, x: E.$x, $offset: E.$offset });
|
|
4628
4622
|
};
|
|
4629
4623
|
var te = function() {
|
|
4630
|
-
function
|
|
4631
|
-
this.$L = Q(g.locale, null, !0), this.parse(g), this.$x = this.$x || g.x || {}, this[
|
|
4624
|
+
function v(g) {
|
|
4625
|
+
this.$L = Q(g.locale, null, !0), this.parse(g), this.$x = this.$x || g.x || {}, this[Z] = !0;
|
|
4632
4626
|
}
|
|
4633
|
-
var E =
|
|
4627
|
+
var E = v.prototype;
|
|
4634
4628
|
return E.parse = function(g) {
|
|
4635
|
-
this.$d = function(
|
|
4636
|
-
var h =
|
|
4629
|
+
this.$d = function(T) {
|
|
4630
|
+
var h = T.date, x = T.utc;
|
|
4637
4631
|
if (h === null)
|
|
4638
4632
|
return /* @__PURE__ */ new Date(NaN);
|
|
4639
4633
|
if (O.u(h))
|
|
@@ -4643,8 +4637,8 @@ var Fr = Ui(), ki = { exports: {} };
|
|
|
4643
4637
|
if (typeof h == "string" && !/Z$/i.test(h)) {
|
|
4644
4638
|
var L = h.match(C);
|
|
4645
4639
|
if (L) {
|
|
4646
|
-
var N = L[2] - 1 || 0,
|
|
4647
|
-
return x ? new Date(Date.UTC(L[1], N, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0,
|
|
4640
|
+
var N = L[2] - 1 || 0, z = (L[7] || "0").substring(0, 3);
|
|
4641
|
+
return x ? new Date(Date.UTC(L[1], N, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, z)) : new Date(L[1], N, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, z);
|
|
4648
4642
|
}
|
|
4649
4643
|
}
|
|
4650
4644
|
return new Date(h);
|
|
@@ -4656,24 +4650,24 @@ var Fr = Ui(), ki = { exports: {} };
|
|
|
4656
4650
|
return O;
|
|
4657
4651
|
}, E.isValid = function() {
|
|
4658
4652
|
return this.$d.toString() !== d;
|
|
4659
|
-
}, E.isSame = function(g,
|
|
4660
|
-
var h =
|
|
4661
|
-
return this.startOf(
|
|
4662
|
-
}, E.isAfter = function(g,
|
|
4663
|
-
return
|
|
4664
|
-
}, E.isBefore = function(g,
|
|
4665
|
-
return this.endOf(
|
|
4666
|
-
}, E.$g = function(g,
|
|
4667
|
-
return O.u(g) ? this[
|
|
4653
|
+
}, E.isSame = function(g, T) {
|
|
4654
|
+
var h = j(g);
|
|
4655
|
+
return this.startOf(T) <= h && h <= this.endOf(T);
|
|
4656
|
+
}, E.isAfter = function(g, T) {
|
|
4657
|
+
return j(g) < this.startOf(T);
|
|
4658
|
+
}, E.isBefore = function(g, T) {
|
|
4659
|
+
return this.endOf(T) < j(g);
|
|
4660
|
+
}, E.$g = function(g, T, h) {
|
|
4661
|
+
return O.u(g) ? this[T] : this.set(h, g);
|
|
4668
4662
|
}, E.unix = function() {
|
|
4669
4663
|
return Math.floor(this.valueOf() / 1e3);
|
|
4670
4664
|
}, E.valueOf = function() {
|
|
4671
4665
|
return this.$d.getTime();
|
|
4672
|
-
}, E.startOf = function(g,
|
|
4673
|
-
var h = this, x = !!O.u(
|
|
4666
|
+
}, E.startOf = function(g, T) {
|
|
4667
|
+
var h = this, x = !!O.u(T) || T, L = O.p(g), N = function(ye, ie) {
|
|
4674
4668
|
var xe = O.w(h.$u ? Date.UTC(h.$y, ie, ye) : new Date(h.$y, ie, ye), h);
|
|
4675
4669
|
return x ? xe : xe.endOf(l);
|
|
4676
|
-
},
|
|
4670
|
+
}, z = function(ye, ie) {
|
|
4677
4671
|
return O.w(h.toDate()[ye].apply(h.toDate("s"), (x ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ie)), h);
|
|
4678
4672
|
}, I = this.$W, q = this.$M, m = this.$D, U = "set" + (this.$u ? "UTC" : "");
|
|
4679
4673
|
switch (L) {
|
|
@@ -4686,35 +4680,35 @@ var Fr = Ui(), ki = { exports: {} };
|
|
|
4686
4680
|
return N(x ? m - K : m + (6 - K), q);
|
|
4687
4681
|
case l:
|
|
4688
4682
|
case b:
|
|
4689
|
-
return
|
|
4683
|
+
return z(U + "Hours", 0);
|
|
4690
4684
|
case c:
|
|
4691
|
-
return
|
|
4685
|
+
return z(U + "Minutes", 1);
|
|
4692
4686
|
case u:
|
|
4693
|
-
return
|
|
4687
|
+
return z(U + "Seconds", 2);
|
|
4694
4688
|
case a:
|
|
4695
|
-
return
|
|
4689
|
+
return z(U + "Milliseconds", 3);
|
|
4696
4690
|
default:
|
|
4697
4691
|
return this.clone();
|
|
4698
4692
|
}
|
|
4699
4693
|
}, E.endOf = function(g) {
|
|
4700
4694
|
return this.startOf(g, !1);
|
|
4701
|
-
}, E.$set = function(g,
|
|
4702
|
-
var h, x = O.p(g), L = "set" + (this.$u ? "UTC" : ""), N = (h = {}, h[l] = L + "Date", h[b] = L + "Date", h[_] = L + "Month", h[M] = L + "FullYear", h[c] = L + "Hours", h[u] = L + "Minutes", h[a] = L + "Seconds", h[o] = L + "Milliseconds", h)[x],
|
|
4695
|
+
}, E.$set = function(g, T) {
|
|
4696
|
+
var h, x = O.p(g), L = "set" + (this.$u ? "UTC" : ""), N = (h = {}, h[l] = L + "Date", h[b] = L + "Date", h[_] = L + "Month", h[M] = L + "FullYear", h[c] = L + "Hours", h[u] = L + "Minutes", h[a] = L + "Seconds", h[o] = L + "Milliseconds", h)[x], z = x === l ? this.$D + (T - this.$W) : T;
|
|
4703
4697
|
if (x === _ || x === M) {
|
|
4704
4698
|
var I = this.clone().set(b, 1);
|
|
4705
|
-
I.$d[N](
|
|
4699
|
+
I.$d[N](z), I.init(), this.$d = I.set(b, Math.min(this.$D, I.daysInMonth())).$d;
|
|
4706
4700
|
} else
|
|
4707
|
-
N && this.$d[N](
|
|
4701
|
+
N && this.$d[N](z);
|
|
4708
4702
|
return this.init(), this;
|
|
4709
|
-
}, E.set = function(g,
|
|
4710
|
-
return this.clone().$set(g,
|
|
4703
|
+
}, E.set = function(g, T) {
|
|
4704
|
+
return this.clone().$set(g, T);
|
|
4711
4705
|
}, E.get = function(g) {
|
|
4712
4706
|
return this[O.p(g)]();
|
|
4713
|
-
}, E.add = function(g,
|
|
4707
|
+
}, E.add = function(g, T) {
|
|
4714
4708
|
var h, x = this;
|
|
4715
4709
|
g = Number(g);
|
|
4716
|
-
var L = O.p(
|
|
4717
|
-
var m =
|
|
4710
|
+
var L = O.p(T), N = function(q) {
|
|
4711
|
+
var m = j(x);
|
|
4718
4712
|
return O.w(m.date(m.date() + Math.round(q * g)), x);
|
|
4719
4713
|
};
|
|
4720
4714
|
if (L === _)
|
|
@@ -4725,29 +4719,29 @@ var Fr = Ui(), ki = { exports: {} };
|
|
|
4725
4719
|
return N(1);
|
|
4726
4720
|
if (L === f)
|
|
4727
4721
|
return N(7);
|
|
4728
|
-
var
|
|
4722
|
+
var z = (h = {}, h[u] = r, h[c] = i, h[a] = n, h)[L] || 1, I = this.$d.getTime() + g * z;
|
|
4729
4723
|
return O.w(I, this);
|
|
4730
|
-
}, E.subtract = function(g,
|
|
4731
|
-
return this.add(-1 * g,
|
|
4724
|
+
}, E.subtract = function(g, T) {
|
|
4725
|
+
return this.add(-1 * g, T);
|
|
4732
4726
|
}, E.format = function(g) {
|
|
4733
|
-
var
|
|
4727
|
+
var T = this, h = this.$locale();
|
|
4734
4728
|
if (!this.isValid())
|
|
4735
4729
|
return h.invalidDate || d;
|
|
4736
|
-
var x = g || "YYYY-MM-DDTHH:mm:ssZ", L = O.z(this), N = this.$H,
|
|
4737
|
-
return ie && (ie[xe] || ie(
|
|
4730
|
+
var x = g || "YYYY-MM-DDTHH:mm:ssZ", L = O.z(this), N = this.$H, z = this.$m, I = this.$M, q = h.weekdays, m = h.months, U = h.meridiem, ee = function(ie, xe, ge, Le) {
|
|
4731
|
+
return ie && (ie[xe] || ie(T, x)) || ge[xe].slice(0, Le);
|
|
4738
4732
|
}, K = function(ie) {
|
|
4739
4733
|
return O.s(N % 12 || 12, ie, "0");
|
|
4740
4734
|
}, ye = U || function(ie, xe, ge) {
|
|
4741
|
-
var
|
|
4742
|
-
return ge ?
|
|
4735
|
+
var Le = ie < 12 ? "AM" : "PM";
|
|
4736
|
+
return ge ? Le.toLowerCase() : Le;
|
|
4743
4737
|
};
|
|
4744
|
-
return x.replace(
|
|
4738
|
+
return x.replace(G, function(ie, xe) {
|
|
4745
4739
|
return xe || function(ge) {
|
|
4746
4740
|
switch (ge) {
|
|
4747
4741
|
case "YY":
|
|
4748
|
-
return String(
|
|
4742
|
+
return String(T.$y).slice(-2);
|
|
4749
4743
|
case "YYYY":
|
|
4750
|
-
return O.s(
|
|
4744
|
+
return O.s(T.$y, 4, "0");
|
|
4751
4745
|
case "M":
|
|
4752
4746
|
return I + 1;
|
|
4753
4747
|
case "MM":
|
|
@@ -4757,17 +4751,17 @@ var Fr = Ui(), ki = { exports: {} };
|
|
|
4757
4751
|
case "MMMM":
|
|
4758
4752
|
return ee(m, I);
|
|
4759
4753
|
case "D":
|
|
4760
|
-
return
|
|
4754
|
+
return T.$D;
|
|
4761
4755
|
case "DD":
|
|
4762
|
-
return O.s(
|
|
4756
|
+
return O.s(T.$D, 2, "0");
|
|
4763
4757
|
case "d":
|
|
4764
|
-
return String(
|
|
4758
|
+
return String(T.$W);
|
|
4765
4759
|
case "dd":
|
|
4766
|
-
return ee(h.weekdaysMin,
|
|
4760
|
+
return ee(h.weekdaysMin, T.$W, q, 2);
|
|
4767
4761
|
case "ddd":
|
|
4768
|
-
return ee(h.weekdaysShort,
|
|
4762
|
+
return ee(h.weekdaysShort, T.$W, q, 3);
|
|
4769
4763
|
case "dddd":
|
|
4770
|
-
return q[
|
|
4764
|
+
return q[T.$W];
|
|
4771
4765
|
case "H":
|
|
4772
4766
|
return String(N);
|
|
4773
4767
|
case "HH":
|
|
@@ -4777,19 +4771,19 @@ var Fr = Ui(), ki = { exports: {} };
|
|
|
4777
4771
|
case "hh":
|
|
4778
4772
|
return K(2);
|
|
4779
4773
|
case "a":
|
|
4780
|
-
return ye(N,
|
|
4774
|
+
return ye(N, z, !0);
|
|
4781
4775
|
case "A":
|
|
4782
|
-
return ye(N,
|
|
4776
|
+
return ye(N, z, !1);
|
|
4783
4777
|
case "m":
|
|
4784
|
-
return String(
|
|
4778
|
+
return String(z);
|
|
4785
4779
|
case "mm":
|
|
4786
|
-
return O.s(
|
|
4780
|
+
return O.s(z, 2, "0");
|
|
4787
4781
|
case "s":
|
|
4788
|
-
return String(
|
|
4782
|
+
return String(T.$s);
|
|
4789
4783
|
case "ss":
|
|
4790
|
-
return O.s(
|
|
4784
|
+
return O.s(T.$s, 2, "0");
|
|
4791
4785
|
case "SSS":
|
|
4792
|
-
return O.s(
|
|
4786
|
+
return O.s(T.$ms, 3, "0");
|
|
4793
4787
|
case "Z":
|
|
4794
4788
|
return L;
|
|
4795
4789
|
}
|
|
@@ -4798,9 +4792,9 @@ var Fr = Ui(), ki = { exports: {} };
|
|
|
4798
4792
|
});
|
|
4799
4793
|
}, E.utcOffset = function() {
|
|
4800
4794
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4801
|
-
}, E.diff = function(g,
|
|
4802
|
-
var x, L = this, N = O.p(
|
|
4803
|
-
return O.m(L,
|
|
4795
|
+
}, E.diff = function(g, T, h) {
|
|
4796
|
+
var x, L = this, N = O.p(T), z = j(g), I = (z.utcOffset() - this.utcOffset()) * r, q = this - z, m = function() {
|
|
4797
|
+
return O.m(L, z);
|
|
4804
4798
|
};
|
|
4805
4799
|
switch (N) {
|
|
4806
4800
|
case M:
|
|
@@ -4834,11 +4828,11 @@ var Fr = Ui(), ki = { exports: {} };
|
|
|
4834
4828
|
}, E.daysInMonth = function() {
|
|
4835
4829
|
return this.endOf(_).$D;
|
|
4836
4830
|
}, E.$locale = function() {
|
|
4837
|
-
return
|
|
4838
|
-
}, E.locale = function(g,
|
|
4831
|
+
return F[this.$L];
|
|
4832
|
+
}, E.locale = function(g, T) {
|
|
4839
4833
|
if (!g)
|
|
4840
4834
|
return this.$L;
|
|
4841
|
-
var h = this.clone(), x = Q(g,
|
|
4835
|
+
var h = this.clone(), x = Q(g, T, !0);
|
|
4842
4836
|
return x && (h.$L = x), h;
|
|
4843
4837
|
}, E.clone = function() {
|
|
4844
4838
|
return O.w(this.$d, this);
|
|
@@ -4850,26 +4844,26 @@ var Fr = Ui(), ki = { exports: {} };
|
|
|
4850
4844
|
return this.$d.toISOString();
|
|
4851
4845
|
}, E.toString = function() {
|
|
4852
4846
|
return this.$d.toUTCString();
|
|
4853
|
-
},
|
|
4847
|
+
}, v;
|
|
4854
4848
|
}(), he = te.prototype;
|
|
4855
|
-
return
|
|
4856
|
-
he[
|
|
4857
|
-
return this.$g(E,
|
|
4849
|
+
return j.prototype = he, [["$ms", o], ["$s", a], ["$m", u], ["$H", c], ["$W", l], ["$M", _], ["$y", M], ["$D", b]].forEach(function(v) {
|
|
4850
|
+
he[v[1]] = function(E) {
|
|
4851
|
+
return this.$g(E, v[0], v[1]);
|
|
4858
4852
|
};
|
|
4859
|
-
}),
|
|
4860
|
-
return
|
|
4861
|
-
},
|
|
4862
|
-
return
|
|
4863
|
-
},
|
|
4853
|
+
}), j.extend = function(v, E) {
|
|
4854
|
+
return v.$i || (v(E, te, j), v.$i = !0), j;
|
|
4855
|
+
}, j.locale = Q, j.isDayjs = X, j.unix = function(v) {
|
|
4856
|
+
return j(1e3 * v);
|
|
4857
|
+
}, j.en = F[P], j.Ls = F, j.p = {}, j;
|
|
4864
4858
|
});
|
|
4865
|
-
})(
|
|
4866
|
-
var
|
|
4867
|
-
const
|
|
4868
|
-
var
|
|
4859
|
+
})($i);
|
|
4860
|
+
var ka = $i.exports;
|
|
4861
|
+
const kr = /* @__PURE__ */ In(ka);
|
|
4862
|
+
var Ui = { exports: {} };
|
|
4869
4863
|
(function(e, t) {
|
|
4870
4864
|
(function(n, r) {
|
|
4871
4865
|
e.exports = r();
|
|
4872
|
-
})(
|
|
4866
|
+
})(ai, function() {
|
|
4873
4867
|
var n = "minute", r = /[+-]\d\d(?::?\d\d)?/g, i = /([+-]|\d\d)/g;
|
|
4874
4868
|
return function(o, a, u) {
|
|
4875
4869
|
var c = a.prototype;
|
|
@@ -4896,16 +4890,16 @@ var Fi = { exports: {} };
|
|
|
4896
4890
|
};
|
|
4897
4891
|
var _ = c.utcOffset;
|
|
4898
4892
|
c.utcOffset = function(d, C) {
|
|
4899
|
-
var
|
|
4900
|
-
if (
|
|
4901
|
-
return this.$u ? 0 :
|
|
4902
|
-
if (typeof d == "string" && (d = function(
|
|
4903
|
-
|
|
4904
|
-
var
|
|
4905
|
-
if (!
|
|
4893
|
+
var G = this.$utils().u;
|
|
4894
|
+
if (G(d))
|
|
4895
|
+
return this.$u ? 0 : G(this.$offset) ? _.call(this) : this.$offset;
|
|
4896
|
+
if (typeof d == "string" && (d = function(P) {
|
|
4897
|
+
P === void 0 && (P = "");
|
|
4898
|
+
var F = P.match(r);
|
|
4899
|
+
if (!F)
|
|
4906
4900
|
return null;
|
|
4907
|
-
var
|
|
4908
|
-
return Q === 0 ? 0 :
|
|
4901
|
+
var Z = ("" + F[0]).match(i) || ["-", 0, 0], X = Z[0], Q = 60 * +Z[1] + +Z[2];
|
|
4902
|
+
return Q === 0 ? 0 : X === "+" ? Q : -Q;
|
|
4909
4903
|
}(d), d === null))
|
|
4910
4904
|
return this;
|
|
4911
4905
|
var $ = Math.abs(d) <= 16 ? 60 * d : d, w = this;
|
|
@@ -4937,25 +4931,25 @@ var Fi = { exports: {} };
|
|
|
4937
4931
|
return d === "s" && this.$offset ? u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : M.call(this);
|
|
4938
4932
|
};
|
|
4939
4933
|
var b = c.diff;
|
|
4940
|
-
c.diff = function(d, C,
|
|
4934
|
+
c.diff = function(d, C, G) {
|
|
4941
4935
|
if (d && this.$u === d.$u)
|
|
4942
|
-
return b.call(this, d, C,
|
|
4936
|
+
return b.call(this, d, C, G);
|
|
4943
4937
|
var $ = this.local(), w = u(d).local();
|
|
4944
|
-
return b.call($, w, C,
|
|
4938
|
+
return b.call($, w, C, G);
|
|
4945
4939
|
};
|
|
4946
4940
|
};
|
|
4947
4941
|
});
|
|
4948
|
-
})(
|
|
4949
|
-
var
|
|
4950
|
-
const
|
|
4951
|
-
let
|
|
4952
|
-
function
|
|
4942
|
+
})(Ui);
|
|
4943
|
+
var Fa = Ui.exports;
|
|
4944
|
+
const Ga = /* @__PURE__ */ In(Fa);
|
|
4945
|
+
let Fr = bt(null);
|
|
4946
|
+
function ja(e, t) {
|
|
4953
4947
|
if (e) {
|
|
4954
4948
|
const n = document.createElement("style");
|
|
4955
4949
|
n.innerHTML = t, e.appendChild(n);
|
|
4956
4950
|
}
|
|
4957
4951
|
}
|
|
4958
|
-
function
|
|
4952
|
+
function za(e, t) {
|
|
4959
4953
|
const n = new URL(t);
|
|
4960
4954
|
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
4961
4955
|
const i = document.createElement("style");
|
|
@@ -4964,7 +4958,7 @@ function Va(e, t) {
|
|
|
4964
4958
|
console.error("There was an error while trying to load client styling from URL", r);
|
|
4965
4959
|
});
|
|
4966
4960
|
}
|
|
4967
|
-
function
|
|
4961
|
+
function Wa(e, t, n) {
|
|
4968
4962
|
if (window.emMessageBus) {
|
|
4969
4963
|
const r = document.createElement("style");
|
|
4970
4964
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4972,70 +4966,70 @@ function Xa(e, t, n) {
|
|
|
4972
4966
|
});
|
|
4973
4967
|
}
|
|
4974
4968
|
}
|
|
4975
|
-
function
|
|
4976
|
-
|
|
4969
|
+
function Va(e) {
|
|
4970
|
+
ro(e, "svelte-878602", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.CashierSessionExpirationModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:15;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.2));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);width:400px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;height:var(--emw--header-height, 40px);background-color:var(--emw--color-gray-10, rgba(17, 17, 17, 0.0666666667));width:100%;border-radius:var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px) 0 0}.CashierSessionExpirationModalHeaderTitle{display:flex;text-align:center;color:var(--emw--color-gray-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis;line-height:calc(var(--emw--font-size-medium, 16px) + 2px)}.CashierSessionExpirationModalContainer{padding:var(--emw--spacing-large, 20px)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.CashierSessionExpirationModalCloseBtn svg{width:32px;height:32px}.CashierSessionExpirationModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}.CashierSessionExpiration{width:100%;display:flex;flex-direction:column;align-items:center;gap:var(--emw--spacing-large, 20px)}.CashierSessionExpiration button{width:100%;height:36px;color:var(--emw--color-white, #FFF);text-align:center;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:125%;border:none;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #3854FF)}.CashierSessionExpirationTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationText{color:var(--emw--color-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-white, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #3854FF)}.CashierErrorButton:hover{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorButton:active{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorButton:disabled{filter:saturate(50%);opacity:0.5;cursor:auto;pointer-events:none}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-medium, 16px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}");
|
|
4977
4971
|
}
|
|
4978
|
-
const
|
|
4979
|
-
function
|
|
4972
|
+
const Xa = (e) => ({}), Gr = (e) => ({}), Ya = (e) => ({}), jr = (e) => ({}), Za = (e) => ({}), zr = (e) => ({}), qa = (e) => ({}), Wr = (e) => ({ class: "CashierSessionExpirationIcon" });
|
|
4973
|
+
function Vr(e) {
|
|
4980
4974
|
let t, n, r, i, o, a = (
|
|
4981
4975
|
/*$_*/
|
|
4982
4976
|
e[8]("sessionExpirationHeader") + ""
|
|
4983
|
-
), u, c, l, f, _, y, M, b, d, C,
|
|
4984
|
-
const
|
|
4977
|
+
), u, c, l, f, _, y, M, b, d, C, G, $, w, H, P;
|
|
4978
|
+
const F = (
|
|
4985
4979
|
/*#slots*/
|
|
4986
4980
|
e[22].icon
|
|
4987
|
-
),
|
|
4988
|
-
|
|
4981
|
+
), Z = Nt(
|
|
4982
|
+
F,
|
|
4989
4983
|
e,
|
|
4990
4984
|
/*$$scope*/
|
|
4991
4985
|
e[21],
|
|
4992
|
-
|
|
4993
|
-
),
|
|
4986
|
+
Wr
|
|
4987
|
+
), X = Z || Ja(e), Q = (
|
|
4994
4988
|
/*#slots*/
|
|
4995
4989
|
e[22].title
|
|
4996
|
-
),
|
|
4990
|
+
), j = Nt(
|
|
4997
4991
|
Q,
|
|
4998
4992
|
e,
|
|
4999
4993
|
/*$$scope*/
|
|
5000
4994
|
e[21],
|
|
5001
|
-
|
|
5002
|
-
), O =
|
|
4995
|
+
zr
|
|
4996
|
+
), O = j || Qa(e), te = (
|
|
5003
4997
|
/*#slots*/
|
|
5004
4998
|
e[22].text
|
|
5005
|
-
), he =
|
|
4999
|
+
), he = Nt(
|
|
5006
5000
|
te,
|
|
5007
5001
|
e,
|
|
5008
5002
|
/*$$scope*/
|
|
5009
5003
|
e[21],
|
|
5010
|
-
|
|
5011
|
-
),
|
|
5012
|
-
function
|
|
5004
|
+
jr
|
|
5005
|
+
), v = he || Ka(e), E = [tu, eu], g = [];
|
|
5006
|
+
function T(h, x) {
|
|
5013
5007
|
return (
|
|
5014
5008
|
/*showLoaderButton*/
|
|
5015
5009
|
h[6] ? 0 : 1
|
|
5016
5010
|
);
|
|
5017
5011
|
}
|
|
5018
|
-
return d =
|
|
5012
|
+
return d = T(e), C = g[d] = E[d](e), {
|
|
5019
5013
|
c() {
|
|
5020
|
-
t = re("div"), n = re("div"), r = re("div"), i = re("div"), o = re("div"), u =
|
|
5021
|
-
e[6],
|
|
5014
|
+
t = re("div"), n = re("div"), r = re("div"), i = re("div"), o = re("div"), u = Ke(a), c = ht(), l = re("div"), f = re("div"), X && X.c(), _ = ht(), O && O.c(), y = ht(), v && v.c(), M = ht(), b = re("button"), C.c(), V(o, "class", "CashierSessionExpirationModalHeaderTitle"), V(i, "class", "CashierSessionExpirationModalHeader"), V(b, "type", "button"), b.disabled = /*showLoaderButton*/
|
|
5015
|
+
e[6], V(b, "class", "CashierSessionExpirationButton"), V(f, "class", "CashierSessionExpiration"), V(l, "class", "CashierSessionExpirationModalContainer"), V(r, "class", "CashierSessionExpirationModalWrapper"), V(n, "class", "CashierSessionExpirationModalWindow"), V(n, "id", "CashierSessionExpirationModal"), Ye(() => (
|
|
5022
5016
|
/*div5_elementresize_handler*/
|
|
5023
5017
|
e[24].call(n)
|
|
5024
5018
|
));
|
|
5025
5019
|
},
|
|
5026
5020
|
m(h, x) {
|
|
5027
|
-
|
|
5021
|
+
Ce(h, t, x), J(t, n), J(n, r), J(r, i), J(i, o), J(o, u), J(r, c), J(r, l), J(l, f), X && X.m(f, null), J(f, _), O && O.m(f, null), J(f, y), v && v.m(f, null), J(f, M), J(f, b), g[d].m(b, null), e[23](f), G = ao(
|
|
5028
5022
|
n,
|
|
5029
5023
|
/*div5_elementresize_handler*/
|
|
5030
5024
|
e[24].bind(n)
|
|
5031
|
-
), e[25](t), w = !0, H || (
|
|
5032
|
-
|
|
5025
|
+
), e[25](t), w = !0, H || (P = [
|
|
5026
|
+
kt(
|
|
5033
5027
|
b,
|
|
5034
5028
|
"click",
|
|
5035
5029
|
/*renewSession*/
|
|
5036
5030
|
e[9]
|
|
5037
5031
|
),
|
|
5038
|
-
|
|
5032
|
+
kt(
|
|
5039
5033
|
n,
|
|
5040
5034
|
"click",
|
|
5041
5035
|
/*outOfModalClick*/
|
|
@@ -5046,155 +5040,155 @@ function Yr(e) {
|
|
|
5046
5040
|
p(h, x) {
|
|
5047
5041
|
e = h, (!w || x[0] & /*$_*/
|
|
5048
5042
|
256) && a !== (a = /*$_*/
|
|
5049
|
-
e[8]("sessionExpirationHeader") + "") &&
|
|
5050
|
-
2097152) &&
|
|
5051
|
-
|
|
5052
|
-
|
|
5043
|
+
e[8]("sessionExpirationHeader") + "") && Yt(u, a), Z ? Z.p && (!w || x[0] & /*$$scope*/
|
|
5044
|
+
2097152) && It(
|
|
5045
|
+
Z,
|
|
5046
|
+
F,
|
|
5053
5047
|
e,
|
|
5054
5048
|
/*$$scope*/
|
|
5055
5049
|
e[21],
|
|
5056
|
-
w ?
|
|
5057
|
-
|
|
5050
|
+
w ? Ht(
|
|
5051
|
+
F,
|
|
5058
5052
|
/*$$scope*/
|
|
5059
5053
|
e[21],
|
|
5060
5054
|
x,
|
|
5061
|
-
|
|
5055
|
+
qa
|
|
5062
5056
|
) : Rt(
|
|
5063
5057
|
/*$$scope*/
|
|
5064
5058
|
e[21]
|
|
5065
5059
|
),
|
|
5066
|
-
|
|
5067
|
-
) :
|
|
5068
|
-
8) &&
|
|
5069
|
-
2097152) &&
|
|
5070
|
-
|
|
5060
|
+
Wr
|
|
5061
|
+
) : X && X.p && (!w || x[0] & /*assetsurl*/
|
|
5062
|
+
8) && X.p(e, w ? x : [-1, -1]), j ? j.p && (!w || x[0] & /*$$scope*/
|
|
5063
|
+
2097152) && It(
|
|
5064
|
+
j,
|
|
5071
5065
|
Q,
|
|
5072
5066
|
e,
|
|
5073
5067
|
/*$$scope*/
|
|
5074
5068
|
e[21],
|
|
5075
|
-
w ?
|
|
5069
|
+
w ? Ht(
|
|
5076
5070
|
Q,
|
|
5077
5071
|
/*$$scope*/
|
|
5078
5072
|
e[21],
|
|
5079
5073
|
x,
|
|
5080
|
-
|
|
5074
|
+
Za
|
|
5081
5075
|
) : Rt(
|
|
5082
5076
|
/*$$scope*/
|
|
5083
5077
|
e[21]
|
|
5084
5078
|
),
|
|
5085
|
-
|
|
5079
|
+
zr
|
|
5086
5080
|
) : O && O.p && (!w || x[0] & /*$_*/
|
|
5087
5081
|
256) && O.p(e, w ? x : [-1, -1]), he ? he.p && (!w || x[0] & /*$$scope*/
|
|
5088
|
-
2097152) &&
|
|
5082
|
+
2097152) && It(
|
|
5089
5083
|
he,
|
|
5090
5084
|
te,
|
|
5091
5085
|
e,
|
|
5092
5086
|
/*$$scope*/
|
|
5093
5087
|
e[21],
|
|
5094
|
-
w ?
|
|
5088
|
+
w ? Ht(
|
|
5095
5089
|
te,
|
|
5096
5090
|
/*$$scope*/
|
|
5097
5091
|
e[21],
|
|
5098
5092
|
x,
|
|
5099
|
-
|
|
5093
|
+
Ya
|
|
5100
5094
|
) : Rt(
|
|
5101
5095
|
/*$$scope*/
|
|
5102
5096
|
e[21]
|
|
5103
5097
|
),
|
|
5104
|
-
|
|
5105
|
-
) :
|
|
5106
|
-
384) &&
|
|
5098
|
+
jr
|
|
5099
|
+
) : v && v.p && (!w || x[0] & /*$_, timeLeft*/
|
|
5100
|
+
384) && v.p(e, w ? x : [-1, -1]);
|
|
5107
5101
|
let L = d;
|
|
5108
|
-
d =
|
|
5102
|
+
d = T(e), d === L ? g[d].p(e, x) : (ii(), Ne(g[L], 1, 1, () => {
|
|
5109
5103
|
g[L] = null;
|
|
5110
|
-
}),
|
|
5104
|
+
}), oi(), C = g[d], C ? C.p(e, x) : (C = g[d] = E[d](e), C.c()), we(C, 1), C.m(b, null)), (!w || x[0] & /*showLoaderButton*/
|
|
5111
5105
|
64) && (b.disabled = /*showLoaderButton*/
|
|
5112
5106
|
e[6]);
|
|
5113
5107
|
},
|
|
5114
5108
|
i(h) {
|
|
5115
|
-
w || (we(
|
|
5116
|
-
w && ($ || ($ =
|
|
5109
|
+
w || (we(X, h), we(O, h), we(v, h), we(C), h && Ye(() => {
|
|
5110
|
+
w && ($ || ($ = mr(n, dr, { duration: (
|
|
5117
5111
|
/*duration*/
|
|
5118
5112
|
e[2]
|
|
5119
5113
|
) }, !0)), $.run(1));
|
|
5120
5114
|
}), w = !0);
|
|
5121
5115
|
},
|
|
5122
5116
|
o(h) {
|
|
5123
|
-
|
|
5117
|
+
Ne(X, h), Ne(O, h), Ne(v, h), Ne(C), h && ($ || ($ = mr(n, dr, { duration: (
|
|
5124
5118
|
/*duration*/
|
|
5125
5119
|
e[2]
|
|
5126
5120
|
) }, !1)), $.run(0)), w = !1;
|
|
5127
5121
|
},
|
|
5128
5122
|
d(h) {
|
|
5129
|
-
h && Ee(t),
|
|
5123
|
+
h && Ee(t), X && X.d(h), O && O.d(h), v && v.d(h), g[d].d(), e[23](null), G(), h && $ && $.end(), e[25](null), H = !1, Ie(P);
|
|
5130
5124
|
}
|
|
5131
5125
|
};
|
|
5132
5126
|
}
|
|
5133
|
-
function
|
|
5127
|
+
function Xr(e) {
|
|
5134
5128
|
let t, n;
|
|
5135
5129
|
return {
|
|
5136
5130
|
c() {
|
|
5137
|
-
t = re("img"),
|
|
5138
|
-
e[3]}/set-timeout-icon.png`) ||
|
|
5131
|
+
t = re("img"), ur(t.src, n = `${/*assetsurl*/
|
|
5132
|
+
e[3]}/set-timeout-icon.png`) || V(t, "src", n), V(t, "width", "300px"), V(t, "alt", "error");
|
|
5139
5133
|
},
|
|
5140
5134
|
m(r, i) {
|
|
5141
|
-
|
|
5135
|
+
Ce(r, t, i);
|
|
5142
5136
|
},
|
|
5143
5137
|
p(r, i) {
|
|
5144
5138
|
i[0] & /*assetsurl*/
|
|
5145
|
-
8 && !
|
|
5146
|
-
r[3]}/set-timeout-icon.png`) &&
|
|
5139
|
+
8 && !ur(t.src, n = `${/*assetsurl*/
|
|
5140
|
+
r[3]}/set-timeout-icon.png`) && V(t, "src", n);
|
|
5147
5141
|
},
|
|
5148
5142
|
d(r) {
|
|
5149
5143
|
r && Ee(t);
|
|
5150
5144
|
}
|
|
5151
5145
|
};
|
|
5152
5146
|
}
|
|
5153
|
-
function
|
|
5147
|
+
function Ja(e) {
|
|
5154
5148
|
let t, n = (
|
|
5155
5149
|
/*assetsurl*/
|
|
5156
|
-
e[3] &&
|
|
5150
|
+
e[3] && Xr(e)
|
|
5157
5151
|
);
|
|
5158
5152
|
return {
|
|
5159
5153
|
c() {
|
|
5160
|
-
n && n.c(), t =
|
|
5154
|
+
n && n.c(), t = ni();
|
|
5161
5155
|
},
|
|
5162
5156
|
m(r, i) {
|
|
5163
|
-
n && n.m(r, i),
|
|
5157
|
+
n && n.m(r, i), Ce(r, t, i);
|
|
5164
5158
|
},
|
|
5165
5159
|
p(r, i) {
|
|
5166
5160
|
/*assetsurl*/
|
|
5167
|
-
r[3] ? n ? n.p(r, i) : (n =
|
|
5161
|
+
r[3] ? n ? n.p(r, i) : (n = Xr(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
|
|
5168
5162
|
},
|
|
5169
5163
|
d(r) {
|
|
5170
5164
|
r && Ee(t), n && n.d(r);
|
|
5171
5165
|
}
|
|
5172
5166
|
};
|
|
5173
5167
|
}
|
|
5174
|
-
function
|
|
5168
|
+
function Qa(e) {
|
|
5175
5169
|
let t, n = (
|
|
5176
5170
|
/*$_*/
|
|
5177
5171
|
e[8]("sessionExpirationTitle") + ""
|
|
5178
5172
|
), r;
|
|
5179
5173
|
return {
|
|
5180
5174
|
c() {
|
|
5181
|
-
t = re("span"), r =
|
|
5175
|
+
t = re("span"), r = Ke(n), V(t, "class", "CashierSessionExpirationTitle");
|
|
5182
5176
|
},
|
|
5183
5177
|
m(i, o) {
|
|
5184
|
-
|
|
5178
|
+
Ce(i, t, o), J(t, r);
|
|
5185
5179
|
},
|
|
5186
5180
|
p(i, o) {
|
|
5187
5181
|
o[0] & /*$_*/
|
|
5188
5182
|
256 && n !== (n = /*$_*/
|
|
5189
|
-
i[8]("sessionExpirationTitle") + "") &&
|
|
5183
|
+
i[8]("sessionExpirationTitle") + "") && Yt(r, n);
|
|
5190
5184
|
},
|
|
5191
5185
|
d(i) {
|
|
5192
5186
|
i && Ee(t);
|
|
5193
5187
|
}
|
|
5194
5188
|
};
|
|
5195
5189
|
}
|
|
5196
|
-
function
|
|
5197
|
-
let t, n =
|
|
5190
|
+
function Ka(e) {
|
|
5191
|
+
let t, n = Ur.sanitize(
|
|
5198
5192
|
/*$_*/
|
|
5199
5193
|
e[8]("sessionExpirationGeneralText", { values: { second: (
|
|
5200
5194
|
/*timeLeft*/
|
|
@@ -5203,14 +5197,14 @@ function tu(e) {
|
|
|
5203
5197
|
) + "";
|
|
5204
5198
|
return {
|
|
5205
5199
|
c() {
|
|
5206
|
-
t = re("span"),
|
|
5200
|
+
t = re("span"), V(t, "class", "CashierSessionExpirationText");
|
|
5207
5201
|
},
|
|
5208
5202
|
m(r, i) {
|
|
5209
|
-
|
|
5203
|
+
Ce(r, t, i), t.innerHTML = n;
|
|
5210
5204
|
},
|
|
5211
5205
|
p(r, i) {
|
|
5212
5206
|
i[0] & /*$_, timeLeft*/
|
|
5213
|
-
384 && n !== (n =
|
|
5207
|
+
384 && n !== (n = Ur.sanitize(
|
|
5214
5208
|
/*$_*/
|
|
5215
5209
|
r[8]("sessionExpirationGeneralText", { values: { second: (
|
|
5216
5210
|
/*timeLeft*/
|
|
@@ -5223,18 +5217,18 @@ function tu(e) {
|
|
|
5223
5217
|
}
|
|
5224
5218
|
};
|
|
5225
5219
|
}
|
|
5226
|
-
function
|
|
5220
|
+
function eu(e) {
|
|
5227
5221
|
let t;
|
|
5228
5222
|
const n = (
|
|
5229
5223
|
/*#slots*/
|
|
5230
5224
|
e[22].button
|
|
5231
|
-
), r =
|
|
5225
|
+
), r = Nt(
|
|
5232
5226
|
n,
|
|
5233
5227
|
e,
|
|
5234
5228
|
/*$$scope*/
|
|
5235
5229
|
e[21],
|
|
5236
|
-
|
|
5237
|
-
), i = r ||
|
|
5230
|
+
Gr
|
|
5231
|
+
), i = r || nu(e);
|
|
5238
5232
|
return {
|
|
5239
5233
|
c() {
|
|
5240
5234
|
i && i.c();
|
|
@@ -5244,23 +5238,23 @@ function nu(e) {
|
|
|
5244
5238
|
},
|
|
5245
5239
|
p(o, a) {
|
|
5246
5240
|
r ? r.p && (!t || a[0] & /*$$scope*/
|
|
5247
|
-
2097152) &&
|
|
5241
|
+
2097152) && It(
|
|
5248
5242
|
r,
|
|
5249
5243
|
n,
|
|
5250
5244
|
o,
|
|
5251
5245
|
/*$$scope*/
|
|
5252
5246
|
o[21],
|
|
5253
|
-
t ?
|
|
5247
|
+
t ? Ht(
|
|
5254
5248
|
n,
|
|
5255
5249
|
/*$$scope*/
|
|
5256
5250
|
o[21],
|
|
5257
5251
|
a,
|
|
5258
|
-
|
|
5252
|
+
Xa
|
|
5259
5253
|
) : Rt(
|
|
5260
5254
|
/*$$scope*/
|
|
5261
5255
|
o[21]
|
|
5262
5256
|
),
|
|
5263
|
-
|
|
5257
|
+
Gr
|
|
5264
5258
|
) : i && i.p && (!t || a[0] & /*$_*/
|
|
5265
5259
|
256) && i.p(o, t ? a : [-1, -1]);
|
|
5266
5260
|
},
|
|
@@ -5268,29 +5262,29 @@ function nu(e) {
|
|
|
5268
5262
|
t || (we(i, o), t = !0);
|
|
5269
5263
|
},
|
|
5270
5264
|
o(o) {
|
|
5271
|
-
|
|
5265
|
+
Ne(i, o), t = !1;
|
|
5272
5266
|
},
|
|
5273
5267
|
d(o) {
|
|
5274
5268
|
i && i.d(o);
|
|
5275
5269
|
}
|
|
5276
5270
|
};
|
|
5277
5271
|
}
|
|
5278
|
-
function
|
|
5272
|
+
function tu(e) {
|
|
5279
5273
|
let t, n, r, i, o, a = (
|
|
5280
5274
|
/*$_*/
|
|
5281
5275
|
e[8]("sessionExpirationLoadingButton") + ""
|
|
5282
5276
|
), u;
|
|
5283
5277
|
return {
|
|
5284
5278
|
c() {
|
|
5285
|
-
t = re("div"), n =
|
|
5279
|
+
t = re("div"), n = cr("svg"), r = cr("path"), i = ht(), o = re("span"), u = Ke(a), V(r, "d", "M14.0282 6.58425C13.9037 4.05374 12.3688 1.68916 10.0872 0.61058C7.59818 -0.509483 4.56986 -0.0531603 2.49567 1.68916C0.504443 3.34851 -0.408201 6.04496 0.172573 8.57547C0.711862 11.0645 2.6616 13.0972 5.10915 13.7609C8.0545 14.5906 10.7509 13.1802 12.4103 10.7741C10.9169 12.7653 8.63527 14.0928 6.10476 13.6365C3.57424 13.1802 1.50005 11.2719 0.919281 8.78289C0.297024 6.12793 1.54154 3.34851 3.90612 1.97955C6.35366 0.569097 9.79682 1.10839 11.4147 3.51445C11.8295 4.09522 12.1199 4.80045 12.2444 5.50567C12.3688 6.08644 12.3273 6.7087 12.4103 7.28947C12.4933 7.82876 12.9496 8.53399 13.5718 8.16063C14.1111 7.82876 14.0696 7.12354 14.0282 6.58425C14.0696 6.87464 14.0282 6.41831 14.0282 6.58425Z"), V(r, "fill", "white"), V(n, "class", "CashierSessionExpirationButtonSpinner"), V(n, "xmlns", "http://www.w3.org/2000/svg"), V(n, "width", "15"), V(n, "height", "14"), V(n, "viewBox", "0 0 15 14"), V(n, "fill", "none"), V(o, "class", "CashierSessionExpirationButtonText");
|
|
5286
5280
|
},
|
|
5287
5281
|
m(c, l) {
|
|
5288
|
-
|
|
5282
|
+
Ce(c, t, l), J(t, n), J(n, r), J(t, i), J(t, o), J(o, u);
|
|
5289
5283
|
},
|
|
5290
5284
|
p(c, l) {
|
|
5291
5285
|
l[0] & /*$_*/
|
|
5292
5286
|
256 && a !== (a = /*$_*/
|
|
5293
|
-
c[8]("sessionExpirationLoadingButton") + "") &&
|
|
5287
|
+
c[8]("sessionExpirationLoadingButton") + "") && Yt(u, a);
|
|
5294
5288
|
},
|
|
5295
5289
|
i: de,
|
|
5296
5290
|
o: de,
|
|
@@ -5299,72 +5293,72 @@ function ru(e) {
|
|
|
5299
5293
|
}
|
|
5300
5294
|
};
|
|
5301
5295
|
}
|
|
5302
|
-
function
|
|
5296
|
+
function nu(e) {
|
|
5303
5297
|
let t, n = (
|
|
5304
5298
|
/*$_*/
|
|
5305
5299
|
e[8]("sessionExpirationGeneralButton") + ""
|
|
5306
5300
|
), r;
|
|
5307
5301
|
return {
|
|
5308
5302
|
c() {
|
|
5309
|
-
t = re("span"), r =
|
|
5303
|
+
t = re("span"), r = Ke(n), V(t, "class", "CashierSessionExpirationButtonText");
|
|
5310
5304
|
},
|
|
5311
5305
|
m(i, o) {
|
|
5312
|
-
|
|
5306
|
+
Ce(i, t, o), J(t, r);
|
|
5313
5307
|
},
|
|
5314
5308
|
p(i, o) {
|
|
5315
5309
|
o[0] & /*$_*/
|
|
5316
5310
|
256 && n !== (n = /*$_*/
|
|
5317
|
-
i[8]("sessionExpirationGeneralButton") + "") &&
|
|
5311
|
+
i[8]("sessionExpirationGeneralButton") + "") && Yt(r, n);
|
|
5318
5312
|
},
|
|
5319
5313
|
d(i) {
|
|
5320
5314
|
i && Ee(t);
|
|
5321
5315
|
}
|
|
5322
5316
|
};
|
|
5323
5317
|
}
|
|
5324
|
-
function
|
|
5318
|
+
function ru(e) {
|
|
5325
5319
|
let t, n, r = (
|
|
5326
5320
|
/*show*/
|
|
5327
|
-
e[5] &&
|
|
5321
|
+
e[5] && Vr(e)
|
|
5328
5322
|
);
|
|
5329
5323
|
return {
|
|
5330
5324
|
c() {
|
|
5331
|
-
r && r.c(), t =
|
|
5325
|
+
r && r.c(), t = ni();
|
|
5332
5326
|
},
|
|
5333
5327
|
m(i, o) {
|
|
5334
|
-
r && r.m(i, o),
|
|
5328
|
+
r && r.m(i, o), Ce(i, t, o), n = !0;
|
|
5335
5329
|
},
|
|
5336
5330
|
p(i, o) {
|
|
5337
5331
|
/*show*/
|
|
5338
5332
|
i[5] ? r ? (r.p(i, o), o[0] & /*show*/
|
|
5339
|
-
32 && we(r, 1)) : (r =
|
|
5333
|
+
32 && we(r, 1)) : (r = Vr(i), r.c(), we(r, 1), r.m(t.parentNode, t)) : r && (ii(), Ne(r, 1, 1, () => {
|
|
5340
5334
|
r = null;
|
|
5341
|
-
}),
|
|
5335
|
+
}), oi());
|
|
5342
5336
|
},
|
|
5343
5337
|
i(i) {
|
|
5344
5338
|
n || (we(r), n = !0);
|
|
5345
5339
|
},
|
|
5346
5340
|
o(i) {
|
|
5347
|
-
|
|
5341
|
+
Ne(r), n = !1;
|
|
5348
5342
|
},
|
|
5349
5343
|
d(i) {
|
|
5350
5344
|
i && Ee(t), r && r.d(i);
|
|
5351
5345
|
}
|
|
5352
5346
|
};
|
|
5353
5347
|
}
|
|
5354
|
-
const
|
|
5355
|
-
function
|
|
5348
|
+
const iu = 90;
|
|
5349
|
+
function ou(e, t, n) {
|
|
5356
5350
|
let r, i;
|
|
5357
|
-
|
|
5351
|
+
lr(e, Fr, (m) => n(20, r = m)), lr(e, Ea, (m) => n(8, i = m));
|
|
5358
5352
|
let { $$slots: o = {}, $$scope: a } = t;
|
|
5359
|
-
|
|
5360
|
-
let { clientstyling: u = "" } = t, { clientstylingurl: c = "" } = t, { width: l } = t, { height: f } = t, { duration: _ = 200 } = t, { assetsurl: y = "" } = t, { lang: M = "en" } = t, { translationurl: b = "" } = t, { endpoint: d } = t, { currency: C } = t, { customerid:
|
|
5353
|
+
kr.extend(Ga);
|
|
5354
|
+
let { clientstyling: u = "" } = t, { clientstylingurl: c = "" } = t, { width: l } = t, { height: f } = t, { duration: _ = 200 } = t, { assetsurl: y = "" } = t, { lang: M = "en" } = t, { translationurl: b = "" } = t, { endpoint: d } = t, { currency: C } = t, { customerid: G } = t, { selectedpaymentmethodname: $ } = t, { mbsource: w = "" } = t, H, P = !1, F = !1, Z, X, Q, j, O;
|
|
5361
5355
|
var te;
|
|
5362
5356
|
(function(m) {
|
|
5363
5357
|
m.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", m.Success = "Success", m.JwtTokenError = "JwtTokenError";
|
|
5364
5358
|
})(te || (te = {}));
|
|
5365
5359
|
const he = (m) => {
|
|
5366
|
-
m.data.type === "StartSessionCountdown" && (
|
|
5367
|
-
},
|
|
5360
|
+
m.data.type === "StartSessionCountdown" && (j = m.data.paymentMethodName);
|
|
5361
|
+
}, v = (m) => {
|
|
5368
5362
|
try {
|
|
5369
5363
|
return JSON.parse(atob(m.split(".")[1]));
|
|
5370
5364
|
} catch (U) {
|
|
@@ -5379,28 +5373,28 @@ function au(e, t, n) {
|
|
|
5379
5373
|
window.location.href
|
|
5380
5374
|
);
|
|
5381
5375
|
}, g = (m) => {
|
|
5382
|
-
n(5,
|
|
5383
|
-
const U =
|
|
5384
|
-
U && (
|
|
5376
|
+
n(5, P = !1);
|
|
5377
|
+
const U = v(m);
|
|
5378
|
+
U && (X = U == null ? void 0 : U.exp, n(7, Z = X), Q && clearInterval(Q), Q = setInterval(
|
|
5385
5379
|
() => {
|
|
5386
5380
|
const ee = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
|
|
5387
|
-
n(7,
|
|
5381
|
+
n(7, Z = X - ee), Z <= iu && n(5, P = !0), ee >= X && (T(), window.postMessage({ type: "SessionExpired" }, window.location.href));
|
|
5388
5382
|
},
|
|
5389
5383
|
1e3
|
|
5390
5384
|
));
|
|
5391
|
-
},
|
|
5392
|
-
n(7,
|
|
5385
|
+
}, T = () => {
|
|
5386
|
+
n(7, Z = 0), n(5, P = !1), clearInterval(Q);
|
|
5393
5387
|
}, h = () => {
|
|
5394
|
-
if (
|
|
5388
|
+
if (F)
|
|
5395
5389
|
return;
|
|
5396
|
-
const m = new URL(`${d}/v1/player/${
|
|
5397
|
-
n(6,
|
|
5390
|
+
const m = new URL(`${d}/v1/player/${G}/payment/GetPaymentMethod`), U = new Headers();
|
|
5391
|
+
n(6, F = !0), U.append("accept", "application/json"), U.append("Content-Type", "application/json"), U.append("X-Client-Request-Timestamp", kr.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
5398
5392
|
const ee = {
|
|
5399
5393
|
method: "POST",
|
|
5400
5394
|
mode: "cors",
|
|
5401
5395
|
headers: U,
|
|
5402
5396
|
body: JSON.stringify({
|
|
5403
|
-
PaymentMethodName:
|
|
5397
|
+
PaymentMethodName: j || $,
|
|
5404
5398
|
Currency: C,
|
|
5405
5399
|
XPaymentSessionToken: r
|
|
5406
5400
|
})
|
|
@@ -5413,44 +5407,44 @@ function au(e, t, n) {
|
|
|
5413
5407
|
error: K.error
|
|
5414
5408
|
},
|
|
5415
5409
|
window.location.href
|
|
5416
|
-
),
|
|
5410
|
+
), T();
|
|
5417
5411
|
return;
|
|
5418
5412
|
}
|
|
5419
5413
|
if (K.ResponseCode === te.PlayerSessionIsNotValid || K.ResponseCode === te.JwtTokenError) {
|
|
5420
|
-
O = K.ResponseCode,
|
|
5414
|
+
O = K.ResponseCode, T(), E();
|
|
5421
5415
|
return;
|
|
5422
5416
|
}
|
|
5423
5417
|
if (K.ResponseCode !== te.Success) {
|
|
5424
|
-
O = K.ResponseCode,
|
|
5418
|
+
O = K.ResponseCode, T();
|
|
5425
5419
|
return;
|
|
5426
5420
|
}
|
|
5427
|
-
K.XPaymentSessionToken &&
|
|
5428
|
-
}).finally(() => n(6,
|
|
5421
|
+
K.XPaymentSessionToken && Fr.set(K.XPaymentSessionToken);
|
|
5422
|
+
}).finally(() => n(6, F = !1));
|
|
5429
5423
|
}, x = (m) => {
|
|
5430
5424
|
const U = m.currentTarget;
|
|
5431
5425
|
m.target === U && h();
|
|
5432
5426
|
}, L = () => {
|
|
5433
5427
|
fetch(b).then((U) => U.json()).then((U) => {
|
|
5434
5428
|
Object.keys(U).forEach((ee) => {
|
|
5435
|
-
|
|
5429
|
+
Cr(ee, U[ee]);
|
|
5436
5430
|
});
|
|
5437
5431
|
}).catch((U) => {
|
|
5438
5432
|
console.log(U);
|
|
5439
5433
|
});
|
|
5440
5434
|
};
|
|
5441
|
-
Object.keys(
|
|
5442
|
-
|
|
5435
|
+
Object.keys(Lr).forEach((m) => {
|
|
5436
|
+
Cr(m, Lr[m]);
|
|
5443
5437
|
});
|
|
5444
5438
|
const N = () => {
|
|
5445
|
-
|
|
5439
|
+
ya(M);
|
|
5446
5440
|
};
|
|
5447
|
-
|
|
5441
|
+
po(() => (window.addEventListener("message", he, !1), () => {
|
|
5448
5442
|
window.removeEventListener("message", he);
|
|
5449
|
-
})),
|
|
5443
|
+
})), go(() => {
|
|
5450
5444
|
clearInterval(Q);
|
|
5451
5445
|
});
|
|
5452
|
-
function
|
|
5453
|
-
|
|
5446
|
+
function z(m) {
|
|
5447
|
+
jt[m ? "unshift" : "push"](() => {
|
|
5454
5448
|
H = m, n(4, H);
|
|
5455
5449
|
});
|
|
5456
5450
|
}
|
|
@@ -5458,19 +5452,19 @@ function au(e, t, n) {
|
|
|
5458
5452
|
l = this.clientWidth, f = this.clientHeight, n(0, l), n(1, f);
|
|
5459
5453
|
}
|
|
5460
5454
|
function q(m) {
|
|
5461
|
-
|
|
5455
|
+
jt[m ? "unshift" : "push"](() => {
|
|
5462
5456
|
H = m, n(4, H);
|
|
5463
5457
|
});
|
|
5464
5458
|
}
|
|
5465
5459
|
return e.$$set = (m) => {
|
|
5466
|
-
"clientstyling" in m && n(11, u = m.clientstyling), "clientstylingurl" in m && n(12, c = m.clientstylingurl), "width" in m && n(0, l = m.width), "height" in m && n(1, f = m.height), "duration" in m && n(2, _ = m.duration), "assetsurl" in m && n(3, y = m.assetsurl), "lang" in m && n(13, M = m.lang), "translationurl" in m && n(14, b = m.translationurl), "endpoint" in m && n(15, d = m.endpoint), "currency" in m && n(16, C = m.currency), "customerid" in m && n(17,
|
|
5460
|
+
"clientstyling" in m && n(11, u = m.clientstyling), "clientstylingurl" in m && n(12, c = m.clientstylingurl), "width" in m && n(0, l = m.width), "height" in m && n(1, f = m.height), "duration" in m && n(2, _ = m.duration), "assetsurl" in m && n(3, y = m.assetsurl), "lang" in m && n(13, M = m.lang), "translationurl" in m && n(14, b = m.translationurl), "endpoint" in m && n(15, d = m.endpoint), "currency" in m && n(16, C = m.currency), "customerid" in m && n(17, G = m.customerid), "selectedpaymentmethodname" in m && n(18, $ = m.selectedpaymentmethodname), "mbsource" in m && n(19, w = m.mbsource), "$$scope" in m && n(21, a = m.$$scope);
|
|
5467
5461
|
}, e.$$.update = () => {
|
|
5468
5462
|
e.$$.dirty[0] & /*$xPaymentSessionToken*/
|
|
5469
5463
|
1048576 && g(r), e.$$.dirty[0] & /*lang*/
|
|
5470
5464
|
8192 && M && N(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5471
|
-
2064 && u && H &&
|
|
5472
|
-
4112 && c && H &&
|
|
5473
|
-
524304 && w && H &&
|
|
5465
|
+
2064 && u && H && ja(H, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5466
|
+
4112 && c && H && za(H, c), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5467
|
+
524304 && w && H && Wa(H, `${w}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
5474
5468
|
16384 && b && L();
|
|
5475
5469
|
}, [
|
|
5476
5470
|
l,
|
|
@@ -5478,9 +5472,9 @@ function au(e, t, n) {
|
|
|
5478
5472
|
_,
|
|
5479
5473
|
y,
|
|
5480
5474
|
H,
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5475
|
+
P,
|
|
5476
|
+
F,
|
|
5477
|
+
Z,
|
|
5484
5478
|
i,
|
|
5485
5479
|
h,
|
|
5486
5480
|
x,
|
|
@@ -5490,25 +5484,25 @@ function au(e, t, n) {
|
|
|
5490
5484
|
b,
|
|
5491
5485
|
d,
|
|
5492
5486
|
C,
|
|
5493
|
-
|
|
5487
|
+
G,
|
|
5494
5488
|
$,
|
|
5495
5489
|
w,
|
|
5496
5490
|
r,
|
|
5497
5491
|
a,
|
|
5498
5492
|
o,
|
|
5499
|
-
|
|
5493
|
+
z,
|
|
5500
5494
|
I,
|
|
5501
5495
|
q
|
|
5502
5496
|
];
|
|
5503
5497
|
}
|
|
5504
|
-
class
|
|
5498
|
+
class su extends Mo {
|
|
5505
5499
|
constructor(t) {
|
|
5506
|
-
super(),
|
|
5500
|
+
super(), Ao(
|
|
5507
5501
|
this,
|
|
5508
5502
|
t,
|
|
5509
|
-
au,
|
|
5510
5503
|
ou,
|
|
5511
|
-
|
|
5504
|
+
ru,
|
|
5505
|
+
qr,
|
|
5512
5506
|
{
|
|
5513
5507
|
clientstyling: 11,
|
|
5514
5508
|
clientstylingurl: 12,
|
|
@@ -5524,7 +5518,7 @@ class uu extends Lo {
|
|
|
5524
5518
|
selectedpaymentmethodname: 18,
|
|
5525
5519
|
mbsource: 19
|
|
5526
5520
|
},
|
|
5527
|
-
|
|
5521
|
+
Va,
|
|
5528
5522
|
[-1, -1]
|
|
5529
5523
|
);
|
|
5530
5524
|
}
|
|
@@ -5607,7 +5601,7 @@ class uu extends Lo {
|
|
|
5607
5601
|
this.$$set({ mbsource: t }), le();
|
|
5608
5602
|
}
|
|
5609
5603
|
}
|
|
5610
|
-
|
|
5604
|
+
Oo(su, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
5611
5605
|
export {
|
|
5612
|
-
|
|
5606
|
+
su as default
|
|
5613
5607
|
};
|