@nemme/js-sdk 0.9.4 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{client-DSNW6X_M.js → client-C2tphX4E.js} +234 -46
- package/dist/chunks/client-C2tphX4E.js.map +1 -0
- package/dist/chunks/client-C7-LfdBd.js +2 -0
- package/dist/chunks/client-C7-LfdBd.js.map +1 -0
- package/dist/chunks/config-BnABfG_n.js +2 -0
- package/dist/chunks/config-BnABfG_n.js.map +1 -0
- package/dist/chunks/config-C6VpkZGH.js +16 -0
- package/dist/chunks/config-C6VpkZGH.js.map +1 -0
- package/dist/chunks/{form-manager-UhU4AnMM.js → form-manager-B6ielB39.js} +651 -650
- package/dist/chunks/{form-manager-UhU4AnMM.js.map → form-manager-B6ielB39.js.map} +1 -1
- package/dist/chunks/form-manager-CVog992B.js +12 -0
- package/dist/chunks/{form-manager-BsBsY3Hj.js.map → form-manager-CVog992B.js.map} +1 -1
- package/dist/client.d.ts +17 -0
- package/dist/deliveries/delivery-manager.d.ts +3 -1
- package/dist/forms/form-manager.d.ts +3 -1
- package/dist/forms.cjs +1 -1
- package/dist/forms.esm.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/js-sdk.css +1 -1
- package/dist/nemme-sdk.umd.js +8 -8
- package/dist/nemme-sdk.umd.js.map +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.esm.js +1 -1
- package/dist/tracking/tracking-manager.d.ts +4 -1
- package/package.json +1 -1
- package/dist/chunks/client-Bcd4ux9A.js +0 -2
- package/dist/chunks/client-Bcd4ux9A.js.map +0 -1
- package/dist/chunks/client-DSNW6X_M.js.map +0 -1
- package/dist/chunks/form-manager-BsBsY3Hj.js +0 -12
- package/dist/chunks/httpClient-0OJWJWzk.js +0 -162
- package/dist/chunks/httpClient-0OJWJWzk.js.map +0 -1
- package/dist/chunks/httpClient-B2q7jRzA.js +0 -2
- package/dist/chunks/httpClient-B2q7jRzA.js.map +0 -1
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import { Fragment as
|
|
5
|
-
import { createRoot as
|
|
1
|
+
import { t as e } from "./config-C6VpkZGH.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import n, { createContext as r, createElement as i, forwardRef as a, useCallback as o, useContext as s, useEffect as c, useMemo as l, useRef as u, useState as d, useSyncExternalStore as f } from "react";
|
|
4
|
+
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
5
|
+
import { createRoot as g } from "react-dom/client";
|
|
6
6
|
//#region \0rolldown/runtime.js
|
|
7
|
-
var
|
|
7
|
+
var _ = Object.defineProperty, v = (e, t) => {
|
|
8
8
|
let n = {};
|
|
9
|
-
for (var r in e)
|
|
9
|
+
for (var r in e) _(n, r, {
|
|
10
10
|
get: e[r],
|
|
11
11
|
enumerable: !0
|
|
12
12
|
});
|
|
13
|
-
return t ||
|
|
14
|
-
},
|
|
13
|
+
return t || _(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
14
|
+
}, y = (e) => typeof e == "string", b = () => {
|
|
15
15
|
let e, t, n = new Promise((n, r) => {
|
|
16
16
|
e = n, t = r;
|
|
17
17
|
});
|
|
18
18
|
return n.resolve = e, n.reject = t, n;
|
|
19
|
-
},
|
|
19
|
+
}, x = (e) => e == null ? "" : String(e), S = (e, t, n) => {
|
|
20
20
|
e.forEach((e) => {
|
|
21
21
|
t[e] && (n[e] = t[e]);
|
|
22
22
|
});
|
|
23
|
-
},
|
|
24
|
-
let r =
|
|
23
|
+
}, C = /###/g, w = (e) => e && e.includes("###") ? e.replace(C, ".") : e, T = (e) => !e || y(e), E = (e, t, n) => {
|
|
24
|
+
let r = y(t) ? t.split(".") : t, i = 0;
|
|
25
25
|
for (; i < r.length - 1;) {
|
|
26
|
-
if (
|
|
27
|
-
let t =
|
|
26
|
+
if (T(e)) return {};
|
|
27
|
+
let t = w(r[i]);
|
|
28
28
|
!e[t] && n && (e[t] = new n()), e = Object.prototype.hasOwnProperty.call(e, t) ? e[t] : {}, ++i;
|
|
29
29
|
}
|
|
30
|
-
return
|
|
30
|
+
return T(e) ? {} : {
|
|
31
31
|
obj: e,
|
|
32
|
-
k:
|
|
32
|
+
k: w(r[i])
|
|
33
33
|
};
|
|
34
|
-
},
|
|
35
|
-
let { obj: r, k: i } =
|
|
34
|
+
}, D = (e, t, n) => {
|
|
35
|
+
let { obj: r, k: i } = E(e, t, Object);
|
|
36
36
|
if (r !== void 0 || t.length === 1) {
|
|
37
37
|
r[i] = n;
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
|
-
let a = t[t.length - 1], o = t.slice(0, t.length - 1), s =
|
|
41
|
-
for (; s.obj === void 0 && o.length;) a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s =
|
|
40
|
+
let a = t[t.length - 1], o = t.slice(0, t.length - 1), s = E(e, o, Object);
|
|
41
|
+
for (; s.obj === void 0 && o.length;) a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s = E(e, o, Object), s?.obj && s.obj[`${s.k}.${a}`] !== void 0 && (s.obj = void 0);
|
|
42
42
|
s.obj[`${s.k}.${a}`] = n;
|
|
43
|
-
},
|
|
44
|
-
let { obj: i, k: a } =
|
|
43
|
+
}, O = (e, t, n, r) => {
|
|
44
|
+
let { obj: i, k: a } = E(e, t, Object);
|
|
45
45
|
i[a] = i[a] || [], i[a].push(n);
|
|
46
|
-
},
|
|
47
|
-
let { obj: n, k: r } =
|
|
46
|
+
}, k = (e, t) => {
|
|
47
|
+
let { obj: n, k: r } = E(e, t);
|
|
48
48
|
if (n && Object.prototype.hasOwnProperty.call(n, r)) return n[r];
|
|
49
|
+
}, A = (e, t, n) => {
|
|
50
|
+
let r = k(e, n);
|
|
51
|
+
return r === void 0 ? k(t, n) : r;
|
|
49
52
|
}, j = (e, t, n) => {
|
|
50
|
-
let r =
|
|
51
|
-
return r === void 0 ? A(t, n) : r;
|
|
52
|
-
}, M = (e, t, n) => {
|
|
53
|
-
for (let r in t) r !== "__proto__" && r !== "constructor" && (r in e ? b(e[r]) || e[r] instanceof String || b(t[r]) || t[r] instanceof String ? n && (e[r] = t[r]) : M(e[r], t[r], n) : e[r] = t[r]);
|
|
53
|
+
for (let r in t) r !== "__proto__" && r !== "constructor" && (r in e ? y(e[r]) || e[r] instanceof String || y(t[r]) || t[r] instanceof String ? n && (e[r] = t[r]) : j(e[r], t[r], n) : e[r] = t[r]);
|
|
54
54
|
return e;
|
|
55
|
-
},
|
|
55
|
+
}, M = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), ee = {
|
|
56
56
|
"&": "&",
|
|
57
57
|
"<": "<",
|
|
58
58
|
">": ">",
|
|
59
59
|
"\"": """,
|
|
60
60
|
"'": "'",
|
|
61
61
|
"/": "/"
|
|
62
|
-
},
|
|
62
|
+
}, te = (e) => y(e) ? e.replace(/[&<>"'\/]/g, (e) => ee[e]) : e, N = class {
|
|
63
63
|
constructor(e) {
|
|
64
64
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
65
65
|
}
|
|
@@ -75,17 +75,17 @@ var v = Object.defineProperty, y = (e, t) => {
|
|
|
75
75
|
"?",
|
|
76
76
|
"!",
|
|
77
77
|
";"
|
|
78
|
-
],
|
|
78
|
+
], P = new N(20), re = (e, t, n) => {
|
|
79
79
|
t ||= "", n ||= "";
|
|
80
80
|
let r = ne.filter((e) => !t.includes(e) && !n.includes(e));
|
|
81
81
|
if (r.length === 0) return !0;
|
|
82
|
-
let i =
|
|
82
|
+
let i = P.getRegExp(`(${r.map((e) => e === "?" ? "\\?" : e).join("|")})`), a = !i.test(e);
|
|
83
83
|
if (!a) {
|
|
84
84
|
let t = e.indexOf(n);
|
|
85
85
|
t > 0 && !i.test(e.substring(0, t)) && (a = !0);
|
|
86
86
|
}
|
|
87
87
|
return a;
|
|
88
|
-
},
|
|
88
|
+
}, ie = (e, t, n = ".") => {
|
|
89
89
|
if (!e) return;
|
|
90
90
|
if (e[t]) return Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0;
|
|
91
91
|
let r = t.split(n), i = e;
|
|
@@ -104,7 +104,7 @@ var v = Object.defineProperty, y = (e, t) => {
|
|
|
104
104
|
i = t;
|
|
105
105
|
}
|
|
106
106
|
return i;
|
|
107
|
-
}, F = (e) => e?.replace(/_/g, "-"),
|
|
107
|
+
}, F = (e) => e?.replace(/_/g, "-"), ae = {
|
|
108
108
|
type: "logger",
|
|
109
109
|
log(e) {
|
|
110
110
|
this.output("log", e);
|
|
@@ -123,7 +123,7 @@ var v = Object.defineProperty, y = (e, t) => {
|
|
|
123
123
|
this.init(e, t);
|
|
124
124
|
}
|
|
125
125
|
init(e, t = {}) {
|
|
126
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
126
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || ae, this.options = t, this.debug = t.debug;
|
|
127
127
|
}
|
|
128
128
|
log(...e) {
|
|
129
129
|
return this.forward(e, "log", "", !0);
|
|
@@ -138,7 +138,7 @@ var v = Object.defineProperty, y = (e, t) => {
|
|
|
138
138
|
return this.forward(e, "warn", "WARNING DEPRECATED: ", !0);
|
|
139
139
|
}
|
|
140
140
|
forward(e, t, n, r) {
|
|
141
|
-
return r && !this.debug ? null : (e = e.map((e) =>
|
|
141
|
+
return r && !this.debug ? null : (e = e.map((e) => y(e) ? e.replace(/[\r\n\x00-\x1F\x7F]/g, " ") : e), y(e[0]) && (e[0] = `${n}${this.prefix} ${e[0]}`), this.logger[t](e));
|
|
142
142
|
}
|
|
143
143
|
create(t) {
|
|
144
144
|
return new e(this.logger, {
|
|
@@ -149,7 +149,7 @@ var v = Object.defineProperty, y = (e, t) => {
|
|
|
149
149
|
clone(t) {
|
|
150
150
|
return t ||= this.options, t.prefix = t.prefix || this.prefix, new e(this.logger, t);
|
|
151
151
|
}
|
|
152
|
-
}(),
|
|
152
|
+
}(), oe = class {
|
|
153
153
|
constructor() {
|
|
154
154
|
this.observers = {};
|
|
155
155
|
}
|
|
@@ -182,7 +182,7 @@ var v = Object.defineProperty, y = (e, t) => {
|
|
|
182
182
|
for (let i = 0; i < r; i++) n(e, ...t);
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
|
-
},
|
|
185
|
+
}, se = class extends oe {
|
|
186
186
|
constructor(e, t = {
|
|
187
187
|
ns: ["translation"],
|
|
188
188
|
defaultNS: "translation"
|
|
@@ -198,16 +198,16 @@ var v = Object.defineProperty, y = (e, t) => {
|
|
|
198
198
|
}
|
|
199
199
|
getResource(e, t, n, r = {}) {
|
|
200
200
|
let i = r.keySeparator === void 0 ? this.options.keySeparator : r.keySeparator, a = r.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r.ignoreJSONStructure, o;
|
|
201
|
-
e.includes(".") ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) :
|
|
202
|
-
let s =
|
|
203
|
-
return !s && !t && !n && e.includes(".") && (e = o[0], t = o[1], n = o.slice(2).join(".")), s || !a || !
|
|
201
|
+
e.includes(".") ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) : y(n) && i ? o.push(...n.split(i)) : o.push(n)));
|
|
202
|
+
let s = k(this.data, o);
|
|
203
|
+
return !s && !t && !n && e.includes(".") && (e = o[0], t = o[1], n = o.slice(2).join(".")), s || !a || !y(n) ? s : ie(this.data?.[e]?.[t], n, i);
|
|
204
204
|
}
|
|
205
205
|
addResource(e, t, n, r, i = { silent: !1 }) {
|
|
206
206
|
let a = i.keySeparator === void 0 ? this.options.keySeparator : i.keySeparator, o = [e, t];
|
|
207
|
-
n && (o = o.concat(a ? n.split(a) : n)), e.includes(".") && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t),
|
|
207
|
+
n && (o = o.concat(a ? n.split(a) : n)), e.includes(".") && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t), D(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
|
|
208
208
|
}
|
|
209
209
|
addResources(e, t, n, r = { silent: !1 }) {
|
|
210
|
-
for (let r in n) (
|
|
210
|
+
for (let r in n) (y(n[r]) || Array.isArray(n[r])) && this.addResource(e, t, r, n[r], { silent: !0 });
|
|
211
211
|
r.silent || this.emit("added", e, t, n);
|
|
212
212
|
}
|
|
213
213
|
addResourceBundle(e, t, n, r, i, a = {
|
|
@@ -216,11 +216,11 @@ var v = Object.defineProperty, y = (e, t) => {
|
|
|
216
216
|
}) {
|
|
217
217
|
let o = [e, t];
|
|
218
218
|
e.includes(".") && (o = e.split("."), r = n, n = t, t = o[1]), this.addNamespaces(t);
|
|
219
|
-
let s =
|
|
220
|
-
a.skipCopy || (n = JSON.parse(JSON.stringify(n))), r ?
|
|
219
|
+
let s = k(this.data, o) || {};
|
|
220
|
+
a.skipCopy || (n = JSON.parse(JSON.stringify(n))), r ? j(s, n, i) : s = {
|
|
221
221
|
...s,
|
|
222
222
|
...n
|
|
223
|
-
},
|
|
223
|
+
}, D(this.data, o, s), a.silent || this.emit("added", e, t, n);
|
|
224
224
|
}
|
|
225
225
|
removeResourceBundle(e, t) {
|
|
226
226
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -241,7 +241,7 @@ var v = Object.defineProperty, y = (e, t) => {
|
|
|
241
241
|
toJSON() {
|
|
242
242
|
return this.data;
|
|
243
243
|
}
|
|
244
|
-
},
|
|
244
|
+
}, ce = {
|
|
245
245
|
processors: {},
|
|
246
246
|
addPostProcessor(e) {
|
|
247
247
|
this.processors[e.name] = e;
|
|
@@ -251,22 +251,22 @@ var v = Object.defineProperty, y = (e, t) => {
|
|
|
251
251
|
t = this.processors[e]?.process(t, n, r, i) ?? t;
|
|
252
252
|
}), t;
|
|
253
253
|
}
|
|
254
|
-
},
|
|
255
|
-
function
|
|
254
|
+
}, le = Symbol("i18next/PATH_KEY");
|
|
255
|
+
function ue() {
|
|
256
256
|
let e = [], t = Object.create(null), n;
|
|
257
|
-
return t.get = (r, i) => (n?.revoke?.(), i ===
|
|
257
|
+
return t.get = (r, i) => (n?.revoke?.(), i === le ? e : (e.push(i), n = Proxy.revocable(r, t), n.proxy)), Proxy.revocable(Object.create(null), t).proxy;
|
|
258
258
|
}
|
|
259
259
|
function L(e, t) {
|
|
260
|
-
let { [
|
|
260
|
+
let { [le]: n } = e(ue()), r = t?.keySeparator ?? ".", i = t?.nsSeparator ?? ":";
|
|
261
261
|
if (n.length > 1 && i) {
|
|
262
262
|
let e = t?.ns, a = Array.isArray(e) ? e : null;
|
|
263
263
|
if (a && a.length > 1 && a.slice(1).includes(n[0])) return `${n[0]}${i}${n.slice(1).join(r)}`;
|
|
264
264
|
}
|
|
265
265
|
return n.join(r);
|
|
266
266
|
}
|
|
267
|
-
var
|
|
267
|
+
var de = (e) => !y(e) && typeof e != "boolean" && typeof e != "number", fe = class e extends oe {
|
|
268
268
|
constructor(e, t = {}) {
|
|
269
|
-
super(),
|
|
269
|
+
super(), S([
|
|
270
270
|
"resourceStore",
|
|
271
271
|
"languageUtils",
|
|
272
272
|
"pluralResolver",
|
|
@@ -284,25 +284,25 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
284
284
|
if (e == null) return !1;
|
|
285
285
|
let r = this.resolve(e, n);
|
|
286
286
|
if (r?.res === void 0) return !1;
|
|
287
|
-
let i =
|
|
287
|
+
let i = de(r.res);
|
|
288
288
|
return !(n.returnObjects === !1 && i);
|
|
289
289
|
}
|
|
290
290
|
extractFromKey(e, t) {
|
|
291
291
|
let n = t.nsSeparator === void 0 ? this.options.nsSeparator : t.nsSeparator;
|
|
292
292
|
n === void 0 && (n = ":");
|
|
293
|
-
let r = t.keySeparator === void 0 ? this.options.keySeparator : t.keySeparator, i = t.ns || this.options.defaultNS || [], a = n && e.includes(n), o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !
|
|
293
|
+
let r = t.keySeparator === void 0 ? this.options.keySeparator : t.keySeparator, i = t.ns || this.options.defaultNS || [], a = n && e.includes(n), o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !re(e, n, r);
|
|
294
294
|
if (a && !o) {
|
|
295
295
|
let t = e.match(this.interpolator.nestingRegexp);
|
|
296
296
|
if (t && t.length > 0) return {
|
|
297
297
|
key: e,
|
|
298
|
-
namespaces:
|
|
298
|
+
namespaces: y(i) ? [i] : i
|
|
299
299
|
};
|
|
300
300
|
let a = e.split(n);
|
|
301
301
|
(n !== r || n === r && this.options.ns.includes(a[0])) && (i = a.shift()), e = a.join(r);
|
|
302
302
|
}
|
|
303
303
|
return {
|
|
304
304
|
key: e,
|
|
305
|
-
namespaces:
|
|
305
|
+
namespaces: y(i) ? [i] : i
|
|
306
306
|
};
|
|
307
307
|
}
|
|
308
308
|
translate(t, n, r) {
|
|
@@ -337,10 +337,10 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
337
337
|
"[object Number]",
|
|
338
338
|
"[object Function]",
|
|
339
339
|
"[object RegExp]"
|
|
340
|
-
], v = i.joinArrays === void 0 ? this.options.joinArrays : i.joinArrays,
|
|
341
|
-
|
|
342
|
-
let O =
|
|
343
|
-
if (
|
|
340
|
+
], v = i.joinArrays === void 0 ? this.options.joinArrays : i.joinArrays, b = !this.i18nFormat || this.i18nFormat.handleAsObject, x = i.count !== void 0 && !y(i.count), S = e.hasDefaultValue(i), C = x ? this.pluralResolver.getSuffix(d, i.count, i) : "", w = i.ordinal && x ? this.pluralResolver.getSuffix(d, i.count, { ordinal: !1 }) : "", T = x && !i.ordinal && i.count === 0, E = T && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${C}`] || i[`defaultValue${w}`] || i.defaultValue, D = m;
|
|
341
|
+
b && !m && S && (D = E);
|
|
342
|
+
let O = de(D), k = Object.prototype.toString.apply(D);
|
|
343
|
+
if (b && D && O && !_.includes(k) && !(y(v) && Array.isArray(D))) {
|
|
344
344
|
if (!i.returnObjects && !this.options.returnObjects) {
|
|
345
345
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
346
346
|
let e = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h, D, {
|
|
@@ -355,7 +355,7 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
355
355
|
let r = `${n}${o}${e}`;
|
|
356
356
|
S && !m ? t[e] = this.translate(r, {
|
|
357
357
|
...i,
|
|
358
|
-
defaultValue:
|
|
358
|
+
defaultValue: de(E) ? E[e] : void 0,
|
|
359
359
|
joinArrays: !1,
|
|
360
360
|
ns: c
|
|
361
361
|
}) : t[e] = this.translate(r, {
|
|
@@ -366,7 +366,7 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
366
366
|
}
|
|
367
367
|
m = t;
|
|
368
368
|
}
|
|
369
|
-
} else if (
|
|
369
|
+
} else if (b && y(v) && Array.isArray(m)) m = m.join(v), m &&= this.extendTranslation(m, t, i, r);
|
|
370
370
|
else {
|
|
371
371
|
let e = !1, n = !1;
|
|
372
372
|
!this.isValidLookup(m) && S && (e = !0, m = E), this.isValidLookup(m) || (n = !0, m = s);
|
|
@@ -410,12 +410,12 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
410
410
|
...n.interpolation
|
|
411
411
|
}
|
|
412
412
|
});
|
|
413
|
-
let a =
|
|
413
|
+
let a = y(e) && (n?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n.interpolation.skipOnVariables), o;
|
|
414
414
|
if (a) {
|
|
415
415
|
let t = e.match(this.interpolator.nestingRegexp);
|
|
416
416
|
o = t && t.length;
|
|
417
417
|
}
|
|
418
|
-
let s = n.replace && !
|
|
418
|
+
let s = n.replace && !y(n.replace) ? n.replace : n;
|
|
419
419
|
if (this.options.interpolation.defaultVariables && (s = {
|
|
420
420
|
...this.options.interpolation.defaultVariables,
|
|
421
421
|
...s
|
|
@@ -425,8 +425,8 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
425
425
|
}
|
|
426
426
|
!n.lng && r && r.res && (n.lng = this.language || r.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...e) => i?.[0] === e[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`), null) : this.translate(...e, t), n)), n.interpolation && this.interpolator.reset();
|
|
427
427
|
}
|
|
428
|
-
let a = n.postProcess || this.options.postProcess, o =
|
|
429
|
-
return e != null && o?.length && n.applyPostProcessor !== !1 && (e =
|
|
428
|
+
let a = n.postProcess || this.options.postProcess, o = y(a) ? [a] : a;
|
|
429
|
+
return e != null && o?.length && n.applyPostProcessor !== !1 && (e = ce.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
430
430
|
i18nResolved: {
|
|
431
431
|
...r,
|
|
432
432
|
usedParams: this.getUsedParamsDetails(n)
|
|
@@ -436,7 +436,7 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
436
436
|
}
|
|
437
437
|
resolve(e, t = {}) {
|
|
438
438
|
let n, r, i, a, o;
|
|
439
|
-
return
|
|
439
|
+
return y(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ? L(e, {
|
|
440
440
|
...this.options,
|
|
441
441
|
...t
|
|
442
442
|
}) : e)), e.forEach((e) => {
|
|
@@ -445,7 +445,7 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
445
445
|
r = c;
|
|
446
446
|
let l = s.namespaces;
|
|
447
447
|
this.options.fallbackNS && (l = l.concat(this.options.fallbackNS));
|
|
448
|
-
let u = t.count !== void 0 && !
|
|
448
|
+
let u = t.count !== void 0 && !y(t.count), d = u && !t.ordinal && t.count === 0, f = t.context !== void 0 && (y(t.context) || typeof t.context == "number") && t.context !== "", p = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
449
449
|
l.forEach((e) => {
|
|
450
450
|
this.isValidLookup(n) || (o = e, !this.checkedLoadedFor[`${p[0]}-${e}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (this.checkedLoadedFor[`${p[0]}-${e}`] = !0, this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), p.forEach((r) => {
|
|
451
451
|
if (this.isValidLookup(n)) return;
|
|
@@ -496,7 +496,7 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
496
496
|
"joinArrays",
|
|
497
497
|
"postProcess",
|
|
498
498
|
"interpolation"
|
|
499
|
-
], n = e.replace && !
|
|
499
|
+
], n = e.replace && !y(e.replace), r = n ? e.replace : e;
|
|
500
500
|
if (n && e.count !== void 0 && (r.count = e.count), this.options.interpolation.defaultVariables && (r = {
|
|
501
501
|
...this.options.interpolation.defaultVariables,
|
|
502
502
|
...r
|
|
@@ -510,7 +510,7 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
510
510
|
for (let t in e) if (Object.prototype.hasOwnProperty.call(e, t) && t.startsWith("defaultValue") && e[t] !== void 0) return !0;
|
|
511
511
|
return !1;
|
|
512
512
|
}
|
|
513
|
-
},
|
|
513
|
+
}, pe = class {
|
|
514
514
|
constructor(e) {
|
|
515
515
|
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = I.create("languageUtils");
|
|
516
516
|
}
|
|
@@ -525,7 +525,7 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
525
525
|
return this.formatLanguageCode(t[0]);
|
|
526
526
|
}
|
|
527
527
|
formatLanguageCode(e) {
|
|
528
|
-
if (
|
|
528
|
+
if (y(e) && e.includes("-")) {
|
|
529
529
|
let t;
|
|
530
530
|
try {
|
|
531
531
|
t = Intl.getCanonicalLocales(e)[0];
|
|
@@ -555,7 +555,7 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
555
555
|
}
|
|
556
556
|
getFallbackCodes(e, t) {
|
|
557
557
|
if (!e) return [];
|
|
558
|
-
if (typeof e == "function" && (e = e(t)),
|
|
558
|
+
if (typeof e == "function" && (e = e(t)), y(e) && (e = [e]), Array.isArray(e)) return e;
|
|
559
559
|
if (!t) return e.default || [];
|
|
560
560
|
let n = e[t];
|
|
561
561
|
return n ||= e[this.getScriptPartFromCode(t)], n ||= e[this.formatLanguageCode(t)], n ||= e[this.getLanguagePartFromCode(t)], n ||= e.default, n || [];
|
|
@@ -564,21 +564,21 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
564
564
|
let n = this.getFallbackCodes((t === !1 ? [] : t) || this.options.fallbackLng || [], e), r = [], i = (e) => {
|
|
565
565
|
e && (this.isSupportedCode(e) ? r.push(e) : this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`));
|
|
566
566
|
};
|
|
567
|
-
return
|
|
567
|
+
return y(e) && (e.includes("-") || e.includes("_")) ? (this.options.load !== "languageOnly" && i(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && i(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && i(this.getLanguagePartFromCode(e))) : y(e) && i(this.formatLanguageCode(e)), n.forEach((e) => {
|
|
568
568
|
r.includes(e) || i(this.formatLanguageCode(e));
|
|
569
569
|
}), r;
|
|
570
570
|
}
|
|
571
|
-
},
|
|
571
|
+
}, me = {
|
|
572
572
|
zero: 0,
|
|
573
573
|
one: 1,
|
|
574
574
|
two: 2,
|
|
575
575
|
few: 3,
|
|
576
576
|
many: 4,
|
|
577
577
|
other: 5
|
|
578
|
-
},
|
|
578
|
+
}, he = {
|
|
579
579
|
select: (e) => e === 1 ? "one" : "other",
|
|
580
580
|
resolvedOptions: () => ({ pluralCategories: ["one", "other"] })
|
|
581
|
-
},
|
|
581
|
+
}, ge = class {
|
|
582
582
|
constructor(e, t = {}) {
|
|
583
583
|
this.languageUtils = e, this.options = t, this.logger = I.create("pluralResolver"), this.pluralRulesCache = {};
|
|
584
584
|
}
|
|
@@ -595,8 +595,8 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
595
595
|
try {
|
|
596
596
|
a = new Intl.PluralRules(n, { type: r });
|
|
597
597
|
} catch {
|
|
598
|
-
if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"),
|
|
599
|
-
if (!e.match(/-|_/)) return
|
|
598
|
+
if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"), he;
|
|
599
|
+
if (!e.match(/-|_/)) return he;
|
|
600
600
|
let n = this.languageUtils.getLanguagePartFromCode(e);
|
|
601
601
|
a = this.getRule(n, t);
|
|
602
602
|
}
|
|
@@ -611,23 +611,23 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
611
611
|
}
|
|
612
612
|
getSuffixes(e, t = {}) {
|
|
613
613
|
let n = this.getRule(e, t);
|
|
614
|
-
return n ||= this.getRule("dev", t), n ? n.resolvedOptions().pluralCategories.sort((e, t) =>
|
|
614
|
+
return n ||= this.getRule("dev", t), n ? n.resolvedOptions().pluralCategories.sort((e, t) => me[e] - me[t]).map((e) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${e}`) : [];
|
|
615
615
|
}
|
|
616
616
|
getSuffix(e, t, n = {}) {
|
|
617
617
|
let r = this.getRule(e, n);
|
|
618
618
|
return r ? `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${r.select(t)}` : (this.logger.warn(`no plural rule found for: ${e}`), this.getSuffix("dev", t, n));
|
|
619
619
|
}
|
|
620
|
-
},
|
|
621
|
-
let a =
|
|
622
|
-
return !a && i &&
|
|
623
|
-
},
|
|
620
|
+
}, _e = (e, t, n, r = ".", i = !0) => {
|
|
621
|
+
let a = A(e, t, n);
|
|
622
|
+
return !a && i && y(n) && (a = ie(e, n, r), a === void 0 && (a = ie(t, n, r))), a;
|
|
623
|
+
}, ve = (e) => e.replace(/\$/g, "$$$$"), ye = class {
|
|
624
624
|
constructor(e = {}) {
|
|
625
625
|
this.logger = I.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((e) => e), this.init(e);
|
|
626
626
|
}
|
|
627
627
|
init(e = {}) {
|
|
628
628
|
e.interpolation ||= { escapeValue: !0 };
|
|
629
629
|
let { escape: t, escapeValue: n, useRawValueToEscape: r, prefix: i, prefixEscaped: a, suffix: o, suffixEscaped: s, formatSeparator: c, unescapeSuffix: l, unescapePrefix: u, nestingPrefix: d, nestingPrefixEscaped: f, nestingSuffix: p, nestingSuffixEscaped: m, nestingOptionsSeparator: h, maxReplaces: g, alwaysFormat: _ } = e.interpolation;
|
|
630
|
-
this.escape = t === void 0 ?
|
|
630
|
+
this.escape = t === void 0 ? te : t, this.escapeValue = n === void 0 ? !0 : n, this.useRawValueToEscape = r === void 0 ? !1 : r, this.prefix = i ? M(i) : a || "{{", this.suffix = o ? M(o) : s || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : u ? M(u) : "-", this.unescapeSuffix = this.unescapePrefix ? "" : l ? M(l) : "", this.nestingPrefix = d ? M(d) : f || M("$t("), this.nestingSuffix = p ? M(p) : m || M(")"), this.nestingOptionsSeparator = h || ",", this.maxReplaces = g || 1e3, this.alwaysFormat = _ === void 0 ? !1 : _, this.resetRegExp();
|
|
631
631
|
}
|
|
632
632
|
reset() {
|
|
633
633
|
this.options && this.init(this.options);
|
|
@@ -639,7 +639,7 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
639
639
|
interpolate(e, t, n, r) {
|
|
640
640
|
let i, a, o, s = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (e) => {
|
|
641
641
|
if (!e.includes(this.formatSeparator)) {
|
|
642
|
-
let i =
|
|
642
|
+
let i = _e(t, s, e, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
643
643
|
return this.alwaysFormat ? this.format(i, void 0, n, {
|
|
644
644
|
...r,
|
|
645
645
|
...t,
|
|
@@ -647,7 +647,7 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
647
647
|
}) : i;
|
|
648
648
|
}
|
|
649
649
|
let i = e.split(this.formatSeparator), a = i.shift().trim(), o = i.join(this.formatSeparator).trim();
|
|
650
|
-
return this.format(
|
|
650
|
+
return this.format(_e(t, s, a, this.options.keySeparator, this.options.ignoreJSONStructure), o, n, {
|
|
651
651
|
...r,
|
|
652
652
|
...t,
|
|
653
653
|
interpolationkey: a
|
|
@@ -657,22 +657,22 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
657
657
|
let l = r?.missingInterpolationHandler || this.options.missingInterpolationHandler, u = r?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : r.interpolation.skipOnVariables;
|
|
658
658
|
return [{
|
|
659
659
|
regex: this.regexpUnescape,
|
|
660
|
-
safeValue: (e) =>
|
|
660
|
+
safeValue: (e) => ve(e)
|
|
661
661
|
}, {
|
|
662
662
|
regex: this.regexp,
|
|
663
|
-
safeValue: (e) => this.escapeValue ?
|
|
663
|
+
safeValue: (e) => this.escapeValue ? ve(this.escape(e)) : ve(e)
|
|
664
664
|
}].forEach((t) => {
|
|
665
665
|
for (o = 0; i = t.regex.exec(e);) {
|
|
666
666
|
let n = i[1].trim();
|
|
667
667
|
if (a = c(n), a === void 0) if (typeof l == "function") {
|
|
668
668
|
let t = l(e, i, r);
|
|
669
|
-
a =
|
|
669
|
+
a = y(t) ? t : "";
|
|
670
670
|
} else if (r && Object.prototype.hasOwnProperty.call(r, n)) a = "";
|
|
671
671
|
else if (u) {
|
|
672
672
|
a = i[0];
|
|
673
673
|
continue;
|
|
674
674
|
} else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`), a = "";
|
|
675
|
-
else !
|
|
675
|
+
else !y(a) && !this.useRawValueToEscape && (a = x(a));
|
|
676
676
|
let s = t.safeValue(a);
|
|
677
677
|
if (e = e.replace(i[0], s), u ? (t.regex.lastIndex += a.length, t.regex.lastIndex -= i[0].length) : t.regex.lastIndex = 0, o++, o >= this.maxReplaces) break;
|
|
678
678
|
}
|
|
@@ -682,7 +682,7 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
682
682
|
let r, i, a, o = (e, t) => {
|
|
683
683
|
let n = this.nestingOptionsSeparator;
|
|
684
684
|
if (!e.includes(n)) return e;
|
|
685
|
-
let r = e.split(RegExp(`${
|
|
685
|
+
let r = e.split(RegExp(`${M(n)}[ ]*{`)), i = `{${r[1]}`;
|
|
686
686
|
e = r[0], i = this.interpolate(i, a);
|
|
687
687
|
let o = i.match(/'/g), s = i.match(/"/g);
|
|
688
688
|
((o?.length ?? 0) % 2 == 0 && !s || (s?.length ?? 0) % 2 != 0) && (i = i.replace(/'/g, "\""));
|
|
@@ -698,17 +698,17 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
698
698
|
};
|
|
699
699
|
for (; r = this.nestingRegexp.exec(e);) {
|
|
700
700
|
let s = [];
|
|
701
|
-
a = { ...n }, a = a.replace && !
|
|
701
|
+
a = { ...n }, a = a.replace && !y(a.replace) ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
|
|
702
702
|
let c = /{.*}/.test(r[1]) ? r[1].lastIndexOf("}") + 1 : r[1].indexOf(this.formatSeparator);
|
|
703
|
-
if (c !== -1 && (s = r[1].slice(c).split(this.formatSeparator).map((e) => e.trim()).filter(Boolean), r[1] = r[1].slice(0, c)), i = t(o.call(this, r[1].trim(), a), a), i && r[0] === e && !
|
|
704
|
-
|
|
703
|
+
if (c !== -1 && (s = r[1].slice(c).split(this.formatSeparator).map((e) => e.trim()).filter(Boolean), r[1] = r[1].slice(0, c)), i = t(o.call(this, r[1].trim(), a), a), i && r[0] === e && !y(i)) return i;
|
|
704
|
+
y(i) || (i = x(i)), i ||= (this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`), ""), s.length && (i = s.reduce((e, t) => this.format(e, t, n.lng, {
|
|
705
705
|
...n,
|
|
706
706
|
interpolationkey: r[1].trim()
|
|
707
707
|
}), i.trim())), e = e.replace(r[0], i), this.regexp.lastIndex = 0;
|
|
708
708
|
}
|
|
709
709
|
return e;
|
|
710
710
|
}
|
|
711
|
-
},
|
|
711
|
+
}, be = (e) => {
|
|
712
712
|
let t = e.toLowerCase().trim(), n = {};
|
|
713
713
|
if (e.includes("(")) {
|
|
714
714
|
let r = e.split("(");
|
|
@@ -725,7 +725,7 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
725
725
|
formatName: t,
|
|
726
726
|
formatOptions: n
|
|
727
727
|
};
|
|
728
|
-
},
|
|
728
|
+
}, xe = (e) => {
|
|
729
729
|
let t = {};
|
|
730
730
|
return (n, r, i) => {
|
|
731
731
|
let a = i;
|
|
@@ -736,13 +736,13 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
736
736
|
let o = r + JSON.stringify(a), s = t[o];
|
|
737
737
|
return s || (s = e(F(r), i), t[o] = s), s(n);
|
|
738
738
|
};
|
|
739
|
-
},
|
|
739
|
+
}, Se = (e) => (t, n, r) => e(F(n), r)(t), Ce = class {
|
|
740
740
|
constructor(e = {}) {
|
|
741
741
|
this.logger = I.create("formatter"), this.options = e, this.init(e);
|
|
742
742
|
}
|
|
743
743
|
init(e, t = { interpolation: {} }) {
|
|
744
744
|
this.formatSeparator = t.interpolation.formatSeparator || ",";
|
|
745
|
-
let n = t.cacheInBuiltFormats ?
|
|
745
|
+
let n = t.cacheInBuiltFormats ? xe : Se;
|
|
746
746
|
this.formats = {
|
|
747
747
|
number: n((e, t) => {
|
|
748
748
|
let n = new Intl.NumberFormat(e, { ...t });
|
|
@@ -773,7 +773,7 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
773
773
|
this.formats[e.toLowerCase().trim()] = t;
|
|
774
774
|
}
|
|
775
775
|
addCached(e, t) {
|
|
776
|
-
this.formats[e.toLowerCase().trim()] =
|
|
776
|
+
this.formats[e.toLowerCase().trim()] = xe(t);
|
|
777
777
|
}
|
|
778
778
|
format(e, t, n, r = {}) {
|
|
779
779
|
if (!t || e == null) return e;
|
|
@@ -783,7 +783,7 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
783
783
|
i[0] = [i[0], ...i.splice(1, e)].join(this.formatSeparator);
|
|
784
784
|
}
|
|
785
785
|
return i.reduce((e, t) => {
|
|
786
|
-
let { formatName: i, formatOptions: a } =
|
|
786
|
+
let { formatName: i, formatOptions: a } = be(t);
|
|
787
787
|
if (this.formats[i]) {
|
|
788
788
|
let t = e;
|
|
789
789
|
try {
|
|
@@ -801,9 +801,9 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
801
801
|
return e;
|
|
802
802
|
}, e);
|
|
803
803
|
}
|
|
804
|
-
},
|
|
804
|
+
}, we = (e, t) => {
|
|
805
805
|
e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
|
|
806
|
-
},
|
|
806
|
+
}, Te = class extends oe {
|
|
807
807
|
constructor(e, t, n, r = {}) {
|
|
808
808
|
super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = r, this.logger = I.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = r.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r.maxRetries >= 0 ? r.maxRetries : 5, this.retryTimeout = r.retryTimeout >= 1 ? r.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n, r.backend, r);
|
|
809
809
|
}
|
|
@@ -833,7 +833,7 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
833
833
|
t && this.emit("failedLoading", i, a, t), !t && n && this.store.addResourceBundle(i, a, n, void 0, void 0, { skipCopy: !0 }), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
|
|
834
834
|
let o = {};
|
|
835
835
|
this.queue.forEach((n) => {
|
|
836
|
-
|
|
836
|
+
O(n.loaded, [i], a), we(n, e), t && n.errors.push(t), n.pendingCount === 0 && !n.done && (Object.keys(n.loaded).forEach((e) => {
|
|
837
837
|
o[e] || (o[e] = {});
|
|
838
838
|
let t = n.loaded[e];
|
|
839
839
|
t.length && t.forEach((t) => {
|
|
@@ -882,7 +882,7 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
882
882
|
}
|
|
883
883
|
prepareLoading(e, t, n = {}, r) {
|
|
884
884
|
if (!this.backend) return this.logger.warn("No backend was added via i18next.use. Will not load resources."), r && r();
|
|
885
|
-
|
|
885
|
+
y(e) && (e = this.languageUtils.toResolveHierarchy(e)), y(t) && (t = [t]);
|
|
886
886
|
let i = this.queueLoad(e, t, n, r);
|
|
887
887
|
if (!i.toLoad.length) return i.pending.length || r(), null;
|
|
888
888
|
i.toLoad.forEach((e) => {
|
|
@@ -923,7 +923,7 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
923
923
|
!e || !e[0] || this.store.addResource(e[0], t, n, r);
|
|
924
924
|
}
|
|
925
925
|
}
|
|
926
|
-
},
|
|
926
|
+
}, Ee = () => ({
|
|
927
927
|
debug: !1,
|
|
928
928
|
initAsync: !0,
|
|
929
929
|
ns: ["translation"],
|
|
@@ -957,7 +957,7 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
957
957
|
appendNamespaceToCIMode: !1,
|
|
958
958
|
overloadTranslationOptionHandler: (e) => {
|
|
959
959
|
let t = {};
|
|
960
|
-
if (typeof e[1] == "object" && (t = e[1]),
|
|
960
|
+
if (typeof e[1] == "object" && (t = e[1]), y(e[1]) && (t.defaultValue = e[1]), y(e[2]) && (t.tDescription = e[2]), typeof e[2] == "object" || typeof e[3] == "object") {
|
|
961
961
|
let n = e[3] || e[2];
|
|
962
962
|
Object.keys(n).forEach((e) => {
|
|
963
963
|
t[e] = n[e];
|
|
@@ -978,13 +978,13 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
978
978
|
skipOnVariables: !0
|
|
979
979
|
},
|
|
980
980
|
cacheInBuiltFormats: !0
|
|
981
|
-
}),
|
|
981
|
+
}), De = (e) => (y(e.ns) && (e.ns = [e.ns]), y(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), y(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs && !e.supportedLngs.includes("cimode") && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), e), R = () => {}, Oe = (e) => {
|
|
982
982
|
Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((t) => {
|
|
983
983
|
typeof e[t] == "function" && (e[t] = e[t].bind(e));
|
|
984
984
|
});
|
|
985
|
-
},
|
|
985
|
+
}, z = class e extends oe {
|
|
986
986
|
constructor(e = {}, t) {
|
|
987
|
-
if (super(), this.options =
|
|
987
|
+
if (super(), this.options = De(e), this.services = {}, this.logger = I, this.modules = { external: [] }, Oe(this), t && !this.isInitialized && !e.isClone) {
|
|
988
988
|
if (!this.options.initAsync) return this.init(e, t), this;
|
|
989
989
|
setTimeout(() => {
|
|
990
990
|
this.init(e, t);
|
|
@@ -992,12 +992,12 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
992
992
|
}
|
|
993
993
|
}
|
|
994
994
|
init(e = {}, t) {
|
|
995
|
-
this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (
|
|
996
|
-
let n =
|
|
995
|
+
this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (y(e.ns) ? e.defaultNS = e.ns : e.ns.includes("translation") || (e.defaultNS = e.ns[0]));
|
|
996
|
+
let n = Ee();
|
|
997
997
|
this.options = {
|
|
998
998
|
...n,
|
|
999
999
|
...this.options,
|
|
1000
|
-
...
|
|
1000
|
+
...De(e)
|
|
1001
1001
|
}, this.options.interpolation = {
|
|
1002
1002
|
...n.interpolation,
|
|
1003
1003
|
...this.options.interpolation
|
|
@@ -1006,19 +1006,19 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
1006
1006
|
if (!this.options.isClone) {
|
|
1007
1007
|
this.modules.logger ? I.init(r(this.modules.logger), this.options) : I.init(null, this.options);
|
|
1008
1008
|
let e;
|
|
1009
|
-
e = this.modules.formatter ? this.modules.formatter :
|
|
1010
|
-
let t = new
|
|
1011
|
-
this.store = new
|
|
1009
|
+
e = this.modules.formatter ? this.modules.formatter : Ce;
|
|
1010
|
+
let t = new pe(this.options);
|
|
1011
|
+
this.store = new se(this.options.resources, this.options);
|
|
1012
1012
|
let n = this.services;
|
|
1013
|
-
n.logger = I, n.resourceStore = this.store, n.languageUtils = t, n.pluralResolver = new
|
|
1013
|
+
n.logger = I, n.resourceStore = this.store, n.languageUtils = t, n.pluralResolver = new ge(t, { prepend: this.options.pluralSeparator }), e && (n.formatter = r(e), n.formatter.init && n.formatter.init(n, this.options), this.options.interpolation.format = n.formatter.format.bind(n.formatter)), n.interpolator = new ye(this.options), n.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, n.backendConnector = new Te(r(this.modules.backend), n.resourceStore, n, this.options), n.backendConnector.on("*", (e, ...t) => {
|
|
1014
1014
|
this.emit(e, ...t);
|
|
1015
|
-
}), this.modules.languageDetector && (n.languageDetector = r(this.modules.languageDetector), n.languageDetector.init && n.languageDetector.init(n, this.options.detection, this.options)), this.modules.i18nFormat && (n.i18nFormat = r(this.modules.i18nFormat), n.i18nFormat.init && n.i18nFormat.init(this)), this.translator = new
|
|
1015
|
+
}), this.modules.languageDetector && (n.languageDetector = r(this.modules.languageDetector), n.languageDetector.init && n.languageDetector.init(n, this.options.detection, this.options)), this.modules.i18nFormat && (n.i18nFormat = r(this.modules.i18nFormat), n.i18nFormat.init && n.i18nFormat.init(this)), this.translator = new fe(this.services, this.options), this.translator.on("*", (e, ...t) => {
|
|
1016
1016
|
this.emit(e, ...t);
|
|
1017
1017
|
}), this.modules.external.forEach((e) => {
|
|
1018
1018
|
e.init && e.init(this);
|
|
1019
1019
|
});
|
|
1020
1020
|
}
|
|
1021
|
-
if (this.format = this.options.interpolation.format, t ||=
|
|
1021
|
+
if (this.format = this.options.interpolation.format, t ||= R, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
1022
1022
|
let e = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
1023
1023
|
e.length > 0 && e[0] !== "dev" && (this.options.lng = e[0]);
|
|
1024
1024
|
}
|
|
@@ -1037,7 +1037,7 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
1037
1037
|
].forEach((e) => {
|
|
1038
1038
|
this[e] = (...t) => (this.store[e](...t), this);
|
|
1039
1039
|
});
|
|
1040
|
-
let i =
|
|
1040
|
+
let i = b(), a = () => {
|
|
1041
1041
|
let e = (e, n) => {
|
|
1042
1042
|
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), i.resolve(n), t(e, n);
|
|
1043
1043
|
};
|
|
@@ -1046,8 +1046,8 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
1046
1046
|
};
|
|
1047
1047
|
return this.options.resources || !this.options.initAsync ? a() : setTimeout(a, 0), i;
|
|
1048
1048
|
}
|
|
1049
|
-
loadResources(e, t =
|
|
1050
|
-
let n = t, r =
|
|
1049
|
+
loadResources(e, t = R) {
|
|
1050
|
+
let n = t, r = y(e) ? e : this.language;
|
|
1051
1051
|
if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
1052
1052
|
if (r?.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
|
|
1053
1053
|
let e = [], t = (t) => {
|
|
@@ -1061,15 +1061,15 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
1061
1061
|
} else n(null);
|
|
1062
1062
|
}
|
|
1063
1063
|
reloadResources(e, t, n) {
|
|
1064
|
-
let r =
|
|
1065
|
-
return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e ||= this.languages, t ||= this.options.ns, n ||=
|
|
1064
|
+
let r = b();
|
|
1065
|
+
return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e ||= this.languages, t ||= this.options.ns, n ||= R, this.services.backendConnector.reload(e, t, (e) => {
|
|
1066
1066
|
r.resolve(), n(e);
|
|
1067
1067
|
}), r;
|
|
1068
1068
|
}
|
|
1069
1069
|
use(e) {
|
|
1070
1070
|
if (!e) throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
1071
1071
|
if (!e.type) throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
1072
|
-
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" &&
|
|
1072
|
+
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && ce.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
|
1073
1073
|
}
|
|
1074
1074
|
setResolvedLanguage(e) {
|
|
1075
1075
|
if (!(!e || !this.languages) && !["cimode", "dev"].includes(e)) {
|
|
@@ -1085,7 +1085,7 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
1085
1085
|
}
|
|
1086
1086
|
changeLanguage(e, t) {
|
|
1087
1087
|
this.isLanguageChangingTo = e;
|
|
1088
|
-
let n =
|
|
1088
|
+
let n = b();
|
|
1089
1089
|
this.emit("languageChanging", e);
|
|
1090
1090
|
let r = (e) => {
|
|
1091
1091
|
this.language = e, this.languages = this.services.languageUtils.toResolveHierarchy(e), this.resolvedLanguage = void 0, this.setResolvedLanguage(e);
|
|
@@ -1093,7 +1093,7 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
1093
1093
|
a ? this.isLanguageChangingTo === e && (r(a), this.translator.changeLanguage(a), this.isLanguageChangingTo = void 0, this.emit("languageChanged", a), this.logger.log("languageChanged", a)) : this.isLanguageChangingTo = void 0, n.resolve((...e) => this.t(...e)), t && t(i, (...e) => this.t(...e));
|
|
1094
1094
|
}, a = (t) => {
|
|
1095
1095
|
!e && !t && this.services.languageDetector && (t = []);
|
|
1096
|
-
let n =
|
|
1096
|
+
let n = y(t) ? t : t && t[0], a = this.store.hasLanguageSomeTranslations(n) ? n : this.services.languageUtils.getBestMatchFromCodes(y(t) ? [t] : t);
|
|
1097
1097
|
a && (this.language || r(a), this.translator.language || this.translator.changeLanguage(a), this.services.languageDetector?.cacheUserLanguage?.(a)), this.loadResources(a, (e) => {
|
|
1098
1098
|
i(e, a);
|
|
1099
1099
|
});
|
|
@@ -1114,7 +1114,7 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
1114
1114
|
let l = this.options.keySeparator || ".", u;
|
|
1115
1115
|
return o.keyPrefix && Array.isArray(e) ? u = e.map((e) => (typeof e == "function" && (e = L(e, c)), `${o.keyPrefix}${l}${e}`)) : (typeof e == "function" && (e = L(e, c)), u = o.keyPrefix ? `${o.keyPrefix}${l}${e}` : e), this.t(u, o);
|
|
1116
1116
|
};
|
|
1117
|
-
return
|
|
1117
|
+
return y(e) ? a.lng = e : a.lngs = e, a.ns = t, a.keyPrefix = n, a;
|
|
1118
1118
|
}
|
|
1119
1119
|
t(...e) {
|
|
1120
1120
|
return this.translator?.translate(...e);
|
|
@@ -1141,16 +1141,16 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
1141
1141
|
return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(n, e) && (!r || a(i, e)));
|
|
1142
1142
|
}
|
|
1143
1143
|
loadNamespaces(e, t) {
|
|
1144
|
-
let n =
|
|
1145
|
-
return this.options.ns ? (
|
|
1144
|
+
let n = b();
|
|
1145
|
+
return this.options.ns ? (y(e) && (e = [e]), e.forEach((e) => {
|
|
1146
1146
|
this.options.ns.includes(e) || this.options.ns.push(e);
|
|
1147
1147
|
}), this.loadResources((e) => {
|
|
1148
1148
|
n.resolve(), t && t(e);
|
|
1149
1149
|
}), n) : (t && t(), Promise.resolve());
|
|
1150
1150
|
}
|
|
1151
1151
|
loadLanguages(e, t) {
|
|
1152
|
-
let n =
|
|
1153
|
-
|
|
1152
|
+
let n = b();
|
|
1153
|
+
y(e) && (e = [e]);
|
|
1154
1154
|
let r = this.options.preload || [], i = e.filter((e) => !r.includes(e) && this.services.languageUtils.isSupportedCode(e));
|
|
1155
1155
|
return i.length ? (this.options.preload = r.concat(i), this.loadResources((e) => {
|
|
1156
1156
|
n.resolve(), t && t(e);
|
|
@@ -1165,14 +1165,14 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
1165
1165
|
if (e && e.direction) return e.direction;
|
|
1166
1166
|
}
|
|
1167
1167
|
} catch {}
|
|
1168
|
-
let t = /* @__PURE__ */ "ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb".split("."), n = this.services?.languageUtils || new
|
|
1168
|
+
let t = /* @__PURE__ */ "ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb".split("."), n = this.services?.languageUtils || new pe(Ee());
|
|
1169
1169
|
return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.includes(n.getLanguagePartFromCode(e)) || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
1170
1170
|
}
|
|
1171
1171
|
static createInstance(t = {}, n) {
|
|
1172
1172
|
let r = new e(t, n);
|
|
1173
1173
|
return r.createInstance = e.createInstance, r;
|
|
1174
1174
|
}
|
|
1175
|
-
cloneInstance(t = {}, n =
|
|
1175
|
+
cloneInstance(t = {}, n = R) {
|
|
1176
1176
|
let r = t.forkResourceStore;
|
|
1177
1177
|
r && delete t.forkResourceStore;
|
|
1178
1178
|
let i = {
|
|
@@ -1186,18 +1186,18 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
1186
1186
|
"language"
|
|
1187
1187
|
].forEach((e) => {
|
|
1188
1188
|
a[e] = this[e];
|
|
1189
|
-
}), a.services = { ...this.services }, a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, r && (a.store = new
|
|
1189
|
+
}), a.services = { ...this.services }, a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, r && (a.store = new se(Object.keys(this.store.data).reduce((e, t) => (e[t] = { ...this.store.data[t] }, e[t] = Object.keys(e[t]).reduce((n, r) => (n[r] = { ...e[t][r] }, n), e[t]), e), {}), i), a.services.resourceStore = a.store), t.interpolation) {
|
|
1190
1190
|
let e = {
|
|
1191
|
-
...
|
|
1191
|
+
...Ee().interpolation,
|
|
1192
1192
|
...this.options.interpolation,
|
|
1193
1193
|
...t.interpolation
|
|
1194
1194
|
}, n = {
|
|
1195
1195
|
...i,
|
|
1196
1196
|
interpolation: e
|
|
1197
1197
|
};
|
|
1198
|
-
a.services.interpolator = new
|
|
1198
|
+
a.services.interpolator = new ye(n);
|
|
1199
1199
|
}
|
|
1200
|
-
return a.translator = new
|
|
1200
|
+
return a.translator = new fe(a.services, i), a.translator.on("*", (e, ...t) => {
|
|
1201
1201
|
a.emit(e, ...t);
|
|
1202
1202
|
}), a.init(i, n), a.translator.options = i, a.translator.backendConnector.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a;
|
|
1203
1203
|
}
|
|
@@ -1211,19 +1211,19 @@ var fe = (e) => !b(e) && typeof e != "boolean" && typeof e != "number", pe = cla
|
|
|
1211
1211
|
};
|
|
1212
1212
|
}
|
|
1213
1213
|
}.createInstance();
|
|
1214
|
-
|
|
1214
|
+
z.createInstance, z.dir, z.init, z.loadResources, z.reloadResources, z.use, z.changeLanguage, z.getFixedT, z.t, z.exists, z.setDefaultNamespace, z.hasLoadedNamespace, z.loadNamespaces, z.loadLanguages;
|
|
1215
1215
|
//#endregion
|
|
1216
1216
|
//#region ../node_modules/react-i18next/dist/es/utils.js
|
|
1217
|
-
var
|
|
1217
|
+
var ke = (e, t, n, r) => {
|
|
1218
1218
|
let i = [n, {
|
|
1219
1219
|
code: t,
|
|
1220
1220
|
...r || {}
|
|
1221
1221
|
}];
|
|
1222
1222
|
if (e?.services?.logger?.forward) return e.services.logger.forward(i, "warn", "react-i18next::", !0);
|
|
1223
|
-
|
|
1224
|
-
},
|
|
1225
|
-
|
|
1226
|
-
},
|
|
1223
|
+
B(i[0]) && (i[0] = `react-i18next:: ${i[0]}`), e?.services?.logger?.warn ? e.services.logger.warn(...i) : console?.warn && console.warn(...i);
|
|
1224
|
+
}, Ae = {}, je = (e, t, n, r) => {
|
|
1225
|
+
B(n) && Ae[n] || (B(n) && (Ae[n] = /* @__PURE__ */ new Date()), ke(e, t, n, r));
|
|
1226
|
+
}, Me = (e, t) => () => {
|
|
1227
1227
|
if (e.isInitialized) t();
|
|
1228
1228
|
else {
|
|
1229
1229
|
let n = () => {
|
|
@@ -1233,19 +1233,19 @@ var je = (e, t, n, r) => {
|
|
|
1233
1233
|
};
|
|
1234
1234
|
e.on("initialized", n);
|
|
1235
1235
|
}
|
|
1236
|
-
},
|
|
1237
|
-
e.loadNamespaces(t,
|
|
1238
|
-
},
|
|
1239
|
-
if (
|
|
1236
|
+
}, Ne = (e, t, n) => {
|
|
1237
|
+
e.loadNamespaces(t, Me(e, n));
|
|
1238
|
+
}, Pe = (e, t, n, r) => {
|
|
1239
|
+
if (B(n) && (n = [n]), e.options.preload && e.options.preload.indexOf(t) > -1) return Ne(e, n, r);
|
|
1240
1240
|
n.forEach((t) => {
|
|
1241
1241
|
e.options.ns.indexOf(t) < 0 && e.options.ns.push(t);
|
|
1242
|
-
}), e.loadLanguages(t,
|
|
1243
|
-
},
|
|
1242
|
+
}), e.loadLanguages(t, Me(e, r));
|
|
1243
|
+
}, Fe = (e, t, n = {}) => !t.languages || !t.languages.length ? (je(t, "NO_LANGUAGES", "i18n.languages were undefined or empty", { languages: t.languages }), !0) : t.hasLoadedNamespace(e, {
|
|
1244
1244
|
lng: n.lng,
|
|
1245
1245
|
precheck: (t, r) => {
|
|
1246
1246
|
if (n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && t.services.backendConnector.backend && t.isLanguageChangingTo && !r(t.isLanguageChangingTo, e)) return !1;
|
|
1247
1247
|
}
|
|
1248
|
-
}),
|
|
1248
|
+
}), B = (e) => typeof e == "string", Ie = (e) => typeof e == "object" && !!e, Le = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Re = {
|
|
1249
1249
|
"&": "&",
|
|
1250
1250
|
"&": "&",
|
|
1251
1251
|
"<": "<",
|
|
@@ -1266,7 +1266,7 @@ var je = (e, t, n, r) => {
|
|
|
1266
1266
|
"…": "…",
|
|
1267
1267
|
"/": "/",
|
|
1268
1268
|
"/": "/"
|
|
1269
|
-
},
|
|
1269
|
+
}, ze = (e) => Re[e], Be = {
|
|
1270
1270
|
bindI18n: "languageChanged",
|
|
1271
1271
|
bindI18nStore: "",
|
|
1272
1272
|
transEmptyNodeValue: "",
|
|
@@ -1279,21 +1279,21 @@ var je = (e, t, n, r) => {
|
|
|
1279
1279
|
"p"
|
|
1280
1280
|
],
|
|
1281
1281
|
useSuspense: !0,
|
|
1282
|
-
unescape: (e) => e.replace(
|
|
1282
|
+
unescape: (e) => e.replace(Le, ze),
|
|
1283
1283
|
transDefaultProps: void 0
|
|
1284
|
-
},
|
|
1285
|
-
|
|
1286
|
-
...
|
|
1284
|
+
}, Ve = (e = {}) => {
|
|
1285
|
+
Be = {
|
|
1286
|
+
...Be,
|
|
1287
1287
|
...e
|
|
1288
1288
|
};
|
|
1289
|
-
},
|
|
1290
|
-
|
|
1291
|
-
},
|
|
1289
|
+
}, He = () => Be, Ue, We = (e) => {
|
|
1290
|
+
Ue = e;
|
|
1291
|
+
}, Ge = () => Ue, Ke = {
|
|
1292
1292
|
type: "3rdParty",
|
|
1293
1293
|
init(e) {
|
|
1294
|
-
|
|
1294
|
+
Ve(e.options.react), We(e);
|
|
1295
1295
|
}
|
|
1296
|
-
},
|
|
1296
|
+
}, qe = r(), Je = class {
|
|
1297
1297
|
constructor() {
|
|
1298
1298
|
this.usedNamespaces = {};
|
|
1299
1299
|
}
|
|
@@ -1305,10 +1305,10 @@ var je = (e, t, n, r) => {
|
|
|
1305
1305
|
getUsedNamespaces() {
|
|
1306
1306
|
return Object.keys(this.usedNamespaces);
|
|
1307
1307
|
}
|
|
1308
|
-
},
|
|
1308
|
+
}, Ye = {
|
|
1309
1309
|
t: (e, t) => {
|
|
1310
|
-
if (
|
|
1311
|
-
if (
|
|
1310
|
+
if (B(t)) return t;
|
|
1311
|
+
if (Ie(t) && B(t.defaultValue)) return t.defaultValue;
|
|
1312
1312
|
if (typeof e == "function") return "";
|
|
1313
1313
|
if (Array.isArray(e)) {
|
|
1314
1314
|
let t = e[e.length - 1];
|
|
@@ -1317,46 +1317,46 @@ var je = (e, t, n, r) => {
|
|
|
1317
1317
|
return e;
|
|
1318
1318
|
},
|
|
1319
1319
|
ready: !1
|
|
1320
|
-
},
|
|
1321
|
-
let { i18n: n } = t, { i18n: r, defaultNS: i } =
|
|
1322
|
-
a && !a.reportNamespaces && (a.reportNamespaces = new
|
|
1323
|
-
let
|
|
1324
|
-
...
|
|
1320
|
+
}, Xe = () => () => {}, Ze = (e, t = {}) => {
|
|
1321
|
+
let { i18n: n } = t, { i18n: r, defaultNS: i } = s(qe) || {}, a = n || r || Ge();
|
|
1322
|
+
a && !a.reportNamespaces && (a.reportNamespaces = new Je()), a || je(a, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
|
|
1323
|
+
let p = l(() => ({
|
|
1324
|
+
...He(),
|
|
1325
1325
|
...a?.options?.react,
|
|
1326
1326
|
...t
|
|
1327
|
-
}), [a, t]), { useSuspense: m, keyPrefix: h } =
|
|
1327
|
+
}), [a, t]), { useSuspense: m, keyPrefix: h } = p, g = e || i || a?.options?.defaultNS, _ = B(g) ? [g] : g || ["translation"], v = l(() => _, _);
|
|
1328
1328
|
a?.reportNamespaces?.addUsedNamespaces?.(v);
|
|
1329
|
-
let y =
|
|
1330
|
-
if (!a) return
|
|
1331
|
-
let { bindI18n: t, bindI18nStore: n } =
|
|
1329
|
+
let y = u(0), b = o((e) => {
|
|
1330
|
+
if (!a) return Xe;
|
|
1331
|
+
let { bindI18n: t, bindI18nStore: n } = p, r = () => {
|
|
1332
1332
|
y.current += 1, e();
|
|
1333
1333
|
};
|
|
1334
1334
|
return t && a.on(t, r), n && a.store.on(n, r), () => {
|
|
1335
1335
|
t && t.split(" ").forEach((e) => a.off(e, r)), n && n.split(" ").forEach((e) => a.store.off(e, r));
|
|
1336
1336
|
};
|
|
1337
|
-
}, [a,
|
|
1338
|
-
if (!a) return
|
|
1339
|
-
let e = !!(a.isInitialized || a.initializedStoreOnce) && v.every((e) =>
|
|
1337
|
+
}, [a, p]), x = u(), S = o(() => {
|
|
1338
|
+
if (!a) return Ye;
|
|
1339
|
+
let e = !!(a.isInitialized || a.initializedStoreOnce) && v.every((e) => Fe(e, a, p)), n = t.lng || a.language, r = y.current, i = x.current;
|
|
1340
1340
|
if (i && i.ready === e && i.lng === n && i.keyPrefix === h && i.revision === r) return i;
|
|
1341
|
-
let
|
|
1342
|
-
t: a.getFixedT(n,
|
|
1341
|
+
let o = {
|
|
1342
|
+
t: a.getFixedT(n, p.nsMode === "fallback" ? v : v[0], h, { scopeNs: v }),
|
|
1343
1343
|
ready: e,
|
|
1344
1344
|
lng: n,
|
|
1345
1345
|
keyPrefix: h,
|
|
1346
1346
|
revision: r
|
|
1347
1347
|
};
|
|
1348
|
-
return x.current =
|
|
1348
|
+
return x.current = o, o;
|
|
1349
1349
|
}, [
|
|
1350
1350
|
a,
|
|
1351
1351
|
v,
|
|
1352
1352
|
h,
|
|
1353
|
-
|
|
1353
|
+
p,
|
|
1354
1354
|
t.lng
|
|
1355
|
-
]), [C, w] =
|
|
1356
|
-
|
|
1355
|
+
]), [C, w] = d(0), { t: T, ready: E } = f(b, S, S);
|
|
1356
|
+
c(() => {
|
|
1357
1357
|
if (a && !E && !m) {
|
|
1358
1358
|
let e = () => w((e) => e + 1);
|
|
1359
|
-
t.lng ?
|
|
1359
|
+
t.lng ? Pe(a, t.lng, v, e) : Ne(a, v, e);
|
|
1360
1360
|
}
|
|
1361
1361
|
}, [
|
|
1362
1362
|
a,
|
|
@@ -1366,7 +1366,7 @@ var je = (e, t, n, r) => {
|
|
|
1366
1366
|
m,
|
|
1367
1367
|
C
|
|
1368
1368
|
]);
|
|
1369
|
-
let D = a || {}, O =
|
|
1369
|
+
let D = a || {}, O = u(null), k = u(), A = (e) => {
|
|
1370
1370
|
let t = Object.getOwnPropertyDescriptors(e);
|
|
1371
1371
|
t.__original && delete t.__original;
|
|
1372
1372
|
let n = Object.create(Object.getPrototypeOf(e), t);
|
|
@@ -1379,10 +1379,10 @@ var je = (e, t, n, r) => {
|
|
|
1379
1379
|
});
|
|
1380
1380
|
} catch {}
|
|
1381
1381
|
return n;
|
|
1382
|
-
}, j =
|
|
1382
|
+
}, j = l(() => {
|
|
1383
1383
|
let e = D, t = e?.language, n = e;
|
|
1384
1384
|
e && (O.current && O.current.__original === e && k.current === t ? n = O.current : (n = A(e), O.current = n, k.current = t));
|
|
1385
|
-
let r = !E && !m ? (...e) => (
|
|
1385
|
+
let r = !E && !m ? (...e) => (je(a, "USE_T_BEFORE_READY", "useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."), T(...e)) : T, i = [
|
|
1386
1386
|
r,
|
|
1387
1387
|
n,
|
|
1388
1388
|
E
|
|
@@ -1398,23 +1398,23 @@ var je = (e, t, n, r) => {
|
|
|
1398
1398
|
]);
|
|
1399
1399
|
if (a && m && !E) throw new Promise((e) => {
|
|
1400
1400
|
let n = () => e();
|
|
1401
|
-
t.lng ?
|
|
1401
|
+
t.lng ? Pe(a, t.lng, v, n) : Ne(a, v, n);
|
|
1402
1402
|
});
|
|
1403
1403
|
return j;
|
|
1404
1404
|
};
|
|
1405
1405
|
//#endregion
|
|
1406
1406
|
//#region ../node_modules/react-i18next/dist/es/I18nextProvider.js
|
|
1407
|
-
function
|
|
1408
|
-
let r =
|
|
1407
|
+
function Qe({ i18n: e, defaultNS: t, children: n }) {
|
|
1408
|
+
let r = l(() => ({
|
|
1409
1409
|
i18n: e,
|
|
1410
1410
|
defaultNS: t
|
|
1411
1411
|
}), [e, t]);
|
|
1412
|
-
return
|
|
1412
|
+
return i(qe.Provider, { value: r }, n);
|
|
1413
1413
|
}
|
|
1414
1414
|
//#endregion
|
|
1415
1415
|
//#region src/forms/form-wrapper/step.tsx
|
|
1416
|
-
var
|
|
1417
|
-
let { t: s } =
|
|
1416
|
+
var $e = ({ step: e, form: t, formState: n, onDismiss: r, onNextStep: i, onPreviousStep: a, onUpdateResponse: o }) => {
|
|
1417
|
+
let { t: s } = Ze(), c = ((e) => {
|
|
1418
1418
|
let n = 0;
|
|
1419
1419
|
if (t.startTransition) {
|
|
1420
1420
|
if (e === n) return {
|
|
@@ -1443,7 +1443,7 @@ var tt = ({ step: e, form: t, formState: n, onDismiss: r, onNextStep: i, onPrevi
|
|
|
1443
1443
|
})(e);
|
|
1444
1444
|
if (c.type === "start") {
|
|
1445
1445
|
let { title: e, description: a, image: o, includeOptOut: l, customStartButton: u, startButtonText: d, customOptOutButton: f, optOutButtonText: p } = c.transition;
|
|
1446
|
-
return /* @__PURE__ */
|
|
1446
|
+
return /* @__PURE__ */ m(qn, {
|
|
1447
1447
|
title: e,
|
|
1448
1448
|
description: a,
|
|
1449
1449
|
icon: t.icon,
|
|
@@ -1456,7 +1456,7 @@ var tt = ({ step: e, form: t, formState: n, onDismiss: r, onNextStep: i, onPrevi
|
|
|
1456
1456
|
}
|
|
1457
1457
|
if (c.type === "end") {
|
|
1458
1458
|
let { title: e, description: n, image: r, customEndButton: a, endButtonText: o, customEndButtonLink: l, endButtonLink: u } = c.transition;
|
|
1459
|
-
return /* @__PURE__ */
|
|
1459
|
+
return /* @__PURE__ */ m(Kn, {
|
|
1460
1460
|
title: e,
|
|
1461
1461
|
description: n,
|
|
1462
1462
|
icon: t.icon,
|
|
@@ -1470,8 +1470,8 @@ var tt = ({ step: e, form: t, formState: n, onDismiss: r, onNextStep: i, onPrevi
|
|
|
1470
1470
|
let { question: e } = c;
|
|
1471
1471
|
if (!e) throw Error("No question found");
|
|
1472
1472
|
if (e.questionType === "choice") {
|
|
1473
|
-
let { title: s, description: l, image: u, alternatives: d, maxSelections: f, required: p, verticalAlignment:
|
|
1474
|
-
return /* @__PURE__ */
|
|
1473
|
+
let { title: s, description: l, image: u, alternatives: d, maxSelections: f, required: p, verticalAlignment: h } = e, g = n.responses[e.id] || [], _ = (f ? g.length <= f || f === 4 : !0) && (p ? g.length > 0 : !0);
|
|
1474
|
+
return /* @__PURE__ */ m(Hn, {
|
|
1475
1475
|
title: s,
|
|
1476
1476
|
description: l,
|
|
1477
1477
|
image: u,
|
|
@@ -1480,7 +1480,7 @@ var tt = ({ step: e, form: t, formState: n, onDismiss: r, onNextStep: i, onPrevi
|
|
|
1480
1480
|
onNext: i,
|
|
1481
1481
|
icon: t.icon,
|
|
1482
1482
|
maxAlternatives: f,
|
|
1483
|
-
verticalAlignment:
|
|
1483
|
+
verticalAlignment: h,
|
|
1484
1484
|
onQuit: () => r(n),
|
|
1485
1485
|
selectedAlternatives: g,
|
|
1486
1486
|
onAlternativeSelect: (t) => {
|
|
@@ -1495,8 +1495,8 @@ var tt = ({ step: e, form: t, formState: n, onDismiss: r, onNextStep: i, onPrevi
|
|
|
1495
1495
|
});
|
|
1496
1496
|
}
|
|
1497
1497
|
if (e.questionType === "text") {
|
|
1498
|
-
let { title: s, description: l, image: u, maxChars: d, limited: f, required: p } = e,
|
|
1499
|
-
return /* @__PURE__ */
|
|
1498
|
+
let { title: s, description: l, image: u, maxChars: d, limited: f, required: p } = e, h = n.responses[e.id] || "", g = (f && d ? h.length <= d : !0) && (p ? h.length > 0 : !0);
|
|
1499
|
+
return /* @__PURE__ */ m(Wn, {
|
|
1500
1500
|
title: s,
|
|
1501
1501
|
icon: t.icon,
|
|
1502
1502
|
description: l,
|
|
@@ -1505,7 +1505,7 @@ var tt = ({ step: e, form: t, formState: n, onDismiss: r, onNextStep: i, onPrevi
|
|
|
1505
1505
|
onQuit: () => r(n),
|
|
1506
1506
|
image: u,
|
|
1507
1507
|
maxCharacters: f ? d : void 0,
|
|
1508
|
-
inputText:
|
|
1508
|
+
inputText: h,
|
|
1509
1509
|
setInputText: (t) => {
|
|
1510
1510
|
f && d && t.length > d || o(e.id, t);
|
|
1511
1511
|
},
|
|
@@ -1516,25 +1516,25 @@ var tt = ({ step: e, form: t, formState: n, onDismiss: r, onNextStep: i, onPrevi
|
|
|
1516
1516
|
}
|
|
1517
1517
|
}
|
|
1518
1518
|
return null;
|
|
1519
|
-
},
|
|
1520
|
-
let i = +!!e.startTransition + e.questions.length + +!!e.endTransition - 1, [a,
|
|
1519
|
+
}, et = ({ form: e, onDismiss: t, onComplete: n, zIndex: r = 100 }) => {
|
|
1520
|
+
let i = +!!e.startTransition + e.questions.length + +!!e.endTransition - 1, [a, s] = d({
|
|
1521
1521
|
responses: {},
|
|
1522
1522
|
currentStep: 0,
|
|
1523
1523
|
startedAt: /* @__PURE__ */ new Date()
|
|
1524
|
-
}), c =
|
|
1525
|
-
|
|
1524
|
+
}), c = o((e, t) => {
|
|
1525
|
+
s((n) => ({
|
|
1526
1526
|
...n,
|
|
1527
1527
|
responses: {
|
|
1528
1528
|
...n.responses,
|
|
1529
1529
|
[e]: t
|
|
1530
1530
|
}
|
|
1531
1531
|
}));
|
|
1532
|
-
}, []), l =
|
|
1533
|
-
|
|
1532
|
+
}, []), l = o((e) => {
|
|
1533
|
+
s((t) => ({
|
|
1534
1534
|
...t,
|
|
1535
1535
|
currentStep: e
|
|
1536
1536
|
}));
|
|
1537
|
-
}, []), u =
|
|
1537
|
+
}, []), u = o(() => {
|
|
1538
1538
|
a.currentStep < i ? l(a.currentStep + 1) : n({
|
|
1539
1539
|
...a,
|
|
1540
1540
|
completedAt: /* @__PURE__ */ new Date()
|
|
@@ -1544,131 +1544,131 @@ var tt = ({ step: e, form: t, formState: n, onDismiss: r, onNextStep: i, onPrevi
|
|
|
1544
1544
|
i,
|
|
1545
1545
|
l,
|
|
1546
1546
|
n
|
|
1547
|
-
]),
|
|
1547
|
+
]), f = o(() => {
|
|
1548
1548
|
a.currentStep > 0 && l(a.currentStep - 1);
|
|
1549
1549
|
}, [a.currentStep, l]);
|
|
1550
|
-
return /* @__PURE__ */
|
|
1550
|
+
return /* @__PURE__ */ m("div", {
|
|
1551
1551
|
className: "flex flex-col justify-center items-center fixed inset-0 bg-overlay-background-default-light dark:bg-overlay-background-default-dark",
|
|
1552
1552
|
style: { zIndex: r },
|
|
1553
|
-
children: /* @__PURE__ */
|
|
1553
|
+
children: /* @__PURE__ */ m($e, {
|
|
1554
1554
|
step: a.currentStep,
|
|
1555
1555
|
form: e,
|
|
1556
1556
|
formState: a,
|
|
1557
1557
|
onDismiss: t,
|
|
1558
1558
|
onNextStep: u,
|
|
1559
|
-
onPreviousStep:
|
|
1559
|
+
onPreviousStep: f,
|
|
1560
1560
|
onUpdateResponse: c
|
|
1561
1561
|
})
|
|
1562
1562
|
});
|
|
1563
|
-
},
|
|
1564
|
-
["bold", /* @__PURE__ */
|
|
1565
|
-
["duotone", /* @__PURE__ */
|
|
1563
|
+
}, tt = /* @__PURE__ */ new Map([
|
|
1564
|
+
["bold", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z" }))],
|
|
1565
|
+
["duotone", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", {
|
|
1566
1566
|
d: "M184,80V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H176A8,8,0,0,1,184,80Z",
|
|
1567
1567
|
opacity: "0.2"
|
|
1568
|
-
}), /* @__PURE__ */
|
|
1569
|
-
["fill", /* @__PURE__ */
|
|
1570
|
-
["light", /* @__PURE__ */
|
|
1571
|
-
["regular", /* @__PURE__ */
|
|
1572
|
-
["thin", /* @__PURE__ */
|
|
1573
|
-
]),
|
|
1574
|
-
["bold", /* @__PURE__ */
|
|
1575
|
-
["duotone", /* @__PURE__ */
|
|
1568
|
+
}), /* @__PURE__ */ t.createElement("path", { d: "M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z" }))],
|
|
1569
|
+
["fill", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M192,136v72a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64h72a8,8,0,0,1,0,16H48V208H176V136a8,8,0,0,1,16,0Zm32-96a8,8,0,0,0-8-8H152a8,8,0,0,0-5.66,13.66L172.69,72l-42.35,42.34a8,8,0,0,0,11.32,11.32L184,83.31l26.34,26.35A8,8,0,0,0,224,104Z" }))],
|
|
1570
|
+
["light", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z" }))],
|
|
1571
|
+
["regular", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z" }))],
|
|
1572
|
+
["thin", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M220,104a4,4,0,0,1-8,0V49.66l-73.16,73.17a4,4,0,0,1-5.66-5.66L206.34,44H152a4,4,0,0,1,0-8h64a4,4,0,0,1,4,4Zm-36,28a4,4,0,0,0-4,4v72a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h72a4,4,0,0,0,0-8H48A12,12,0,0,0,36,80V208a12,12,0,0,0,12,12H176a12,12,0,0,0,12-12V136A4,4,0,0,0,184,132Z" }))]
|
|
1573
|
+
]), nt = /* @__PURE__ */ new Map([
|
|
1574
|
+
["bold", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z" }))],
|
|
1575
|
+
["duotone", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", {
|
|
1576
1576
|
d: "M208,96l-80,80L48,96Z",
|
|
1577
1577
|
opacity: "0.2"
|
|
1578
|
-
}), /* @__PURE__ */
|
|
1579
|
-
["fill", /* @__PURE__ */
|
|
1580
|
-
["light", /* @__PURE__ */
|
|
1581
|
-
["regular", /* @__PURE__ */
|
|
1582
|
-
["thin", /* @__PURE__ */
|
|
1583
|
-
]),
|
|
1584
|
-
["bold", /* @__PURE__ */
|
|
1585
|
-
["duotone", /* @__PURE__ */
|
|
1578
|
+
}), /* @__PURE__ */ t.createElement("path", { d: "M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z" }))],
|
|
1579
|
+
["fill", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z" }))],
|
|
1580
|
+
["light", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z" }))],
|
|
1581
|
+
["regular", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z" }))],
|
|
1582
|
+
["thin", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z" }))]
|
|
1583
|
+
]), rt = /* @__PURE__ */ new Map([
|
|
1584
|
+
["bold", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z" }))],
|
|
1585
|
+
["duotone", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", {
|
|
1586
1586
|
d: "M160,48V208L80,128Z",
|
|
1587
1587
|
opacity: "0.2"
|
|
1588
|
-
}), /* @__PURE__ */
|
|
1589
|
-
["fill", /* @__PURE__ */
|
|
1590
|
-
["light", /* @__PURE__ */
|
|
1591
|
-
["regular", /* @__PURE__ */
|
|
1592
|
-
["thin", /* @__PURE__ */
|
|
1593
|
-
]),
|
|
1594
|
-
["bold", /* @__PURE__ */
|
|
1595
|
-
["duotone", /* @__PURE__ */
|
|
1588
|
+
}), /* @__PURE__ */ t.createElement("path", { d: "M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z" }))],
|
|
1589
|
+
["fill", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z" }))],
|
|
1590
|
+
["light", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z" }))],
|
|
1591
|
+
["regular", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z" }))],
|
|
1592
|
+
["thin", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z" }))]
|
|
1593
|
+
]), it = /* @__PURE__ */ new Map([
|
|
1594
|
+
["bold", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z" }))],
|
|
1595
|
+
["duotone", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", {
|
|
1596
1596
|
d: "M176,128,96,208V48Z",
|
|
1597
1597
|
opacity: "0.2"
|
|
1598
|
-
}), /* @__PURE__ */
|
|
1599
|
-
["fill", /* @__PURE__ */
|
|
1600
|
-
["light", /* @__PURE__ */
|
|
1601
|
-
["regular", /* @__PURE__ */
|
|
1602
|
-
["thin", /* @__PURE__ */
|
|
1603
|
-
]),
|
|
1604
|
-
["bold", /* @__PURE__ */
|
|
1605
|
-
["duotone", /* @__PURE__ */
|
|
1598
|
+
}), /* @__PURE__ */ t.createElement("path", { d: "M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z" }))],
|
|
1599
|
+
["fill", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z" }))],
|
|
1600
|
+
["light", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z" }))],
|
|
1601
|
+
["regular", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z" }))],
|
|
1602
|
+
["thin", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z" }))]
|
|
1603
|
+
]), at = /* @__PURE__ */ new Map([
|
|
1604
|
+
["bold", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z" }))],
|
|
1605
|
+
["duotone", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", {
|
|
1606
1606
|
d: "M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",
|
|
1607
1607
|
opacity: "0.2"
|
|
1608
|
-
}), /* @__PURE__ */
|
|
1609
|
-
["fill", /* @__PURE__ */
|
|
1610
|
-
["light", /* @__PURE__ */
|
|
1611
|
-
["regular", /* @__PURE__ */
|
|
1612
|
-
["thin", /* @__PURE__ */
|
|
1613
|
-
]),
|
|
1614
|
-
["bold", /* @__PURE__ */
|
|
1615
|
-
["duotone", /* @__PURE__ */
|
|
1608
|
+
}), /* @__PURE__ */ t.createElement("path", { d: "M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z" }))],
|
|
1609
|
+
["fill", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z" }))],
|
|
1610
|
+
["light", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z" }))],
|
|
1611
|
+
["regular", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z" }))],
|
|
1612
|
+
["thin", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z" }))]
|
|
1613
|
+
]), ot = /* @__PURE__ */ new Map([
|
|
1614
|
+
["bold", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M236,128a108,108,0,0,1-216,0c0-42.52,24.73-81.34,63-98.9A12,12,0,1,1,93,50.91C63.24,64.57,44,94.83,44,128a84,84,0,0,0,168,0c0-33.17-19.24-63.43-49-77.09A12,12,0,1,1,173,29.1C211.27,46.66,236,85.48,236,128Z" }))],
|
|
1615
|
+
["duotone", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", {
|
|
1616
1616
|
d: "M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",
|
|
1617
1617
|
opacity: "0.2"
|
|
1618
|
-
}), /* @__PURE__ */
|
|
1619
|
-
["fill", /* @__PURE__ */
|
|
1620
|
-
["light", /* @__PURE__ */
|
|
1621
|
-
["regular", /* @__PURE__ */
|
|
1622
|
-
["thin", /* @__PURE__ */
|
|
1623
|
-
]),
|
|
1624
|
-
["bold", /* @__PURE__ */
|
|
1625
|
-
["duotone", /* @__PURE__ */
|
|
1618
|
+
}), /* @__PURE__ */ t.createElement("path", { d: "M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z" }))],
|
|
1619
|
+
["fill", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,176A72,72,0,0,1,92,65.64a8,8,0,0,1,8,13.85,56,56,0,1,0,56,0,8,8,0,0,1,8-13.85A72,72,0,0,1,128,200Z" }))],
|
|
1620
|
+
["light", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z" }))],
|
|
1621
|
+
["regular", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z" }))],
|
|
1622
|
+
["thin", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M228,128a100,100,0,0,1-200,0c0-39.4,22.9-75.37,58.33-91.63a4,4,0,1,1,3.34,7.27C57.07,58.6,36,91.71,36,128a92,92,0,0,0,184,0c0-36.29-21.07-69.4-53.67-84.36a4,4,0,1,1,3.34-7.27C205.1,52.63,228,88.6,228,128Z" }))]
|
|
1623
|
+
]), st = /* @__PURE__ */ new Map([
|
|
1624
|
+
["bold", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z" }))],
|
|
1625
|
+
["duotone", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", {
|
|
1626
1626
|
d: "M216,40V168H168V88H88V40Z",
|
|
1627
1627
|
opacity: "0.2"
|
|
1628
|
-
}), /* @__PURE__ */
|
|
1629
|
-
["fill", /* @__PURE__ */
|
|
1630
|
-
["light", /* @__PURE__ */
|
|
1631
|
-
["regular", /* @__PURE__ */
|
|
1632
|
-
["thin", /* @__PURE__ */
|
|
1633
|
-
]),
|
|
1634
|
-
["bold", /* @__PURE__ */
|
|
1635
|
-
["duotone", /* @__PURE__ */
|
|
1628
|
+
}), /* @__PURE__ */ t.createElement("path", { d: "M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z" }))],
|
|
1629
|
+
["fill", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z" }))],
|
|
1630
|
+
["light", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z" }))],
|
|
1631
|
+
["regular", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z" }))],
|
|
1632
|
+
["thin", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z" }))]
|
|
1633
|
+
]), ct = /* @__PURE__ */ new Map([
|
|
1634
|
+
["bold", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z" }))],
|
|
1635
|
+
["duotone", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", {
|
|
1636
1636
|
d: "M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",
|
|
1637
1637
|
opacity: "0.2"
|
|
1638
|
-
}), /* @__PURE__ */
|
|
1639
|
-
["fill", /* @__PURE__ */
|
|
1640
|
-
["light", /* @__PURE__ */
|
|
1641
|
-
["regular", /* @__PURE__ */
|
|
1642
|
-
["thin", /* @__PURE__ */
|
|
1643
|
-
]),
|
|
1644
|
-
["bold", /* @__PURE__ */
|
|
1645
|
-
["duotone", /* @__PURE__ */
|
|
1638
|
+
}), /* @__PURE__ */ t.createElement("path", { d: "M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z" }))],
|
|
1639
|
+
["fill", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z" }))],
|
|
1640
|
+
["light", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z" }))],
|
|
1641
|
+
["regular", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z" }))],
|
|
1642
|
+
["thin", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z" }))]
|
|
1643
|
+
]), lt = /* @__PURE__ */ new Map([
|
|
1644
|
+
["bold", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z" }))],
|
|
1645
|
+
["duotone", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", {
|
|
1646
1646
|
d: "M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",
|
|
1647
1647
|
opacity: "0.2"
|
|
1648
|
-
}), /* @__PURE__ */
|
|
1649
|
-
["fill", /* @__PURE__ */
|
|
1650
|
-
["light", /* @__PURE__ */
|
|
1651
|
-
["regular", /* @__PURE__ */
|
|
1652
|
-
["thin", /* @__PURE__ */
|
|
1653
|
-
]),
|
|
1654
|
-
["bold", /* @__PURE__ */
|
|
1655
|
-
["duotone", /* @__PURE__ */
|
|
1648
|
+
}), /* @__PURE__ */ t.createElement("path", { d: "M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z" }))],
|
|
1649
|
+
["fill", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z" }))],
|
|
1650
|
+
["light", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z" }))],
|
|
1651
|
+
["regular", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z" }))],
|
|
1652
|
+
["thin", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z" }))]
|
|
1653
|
+
]), ut = /* @__PURE__ */ new Map([
|
|
1654
|
+
["bold", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z" }))],
|
|
1655
|
+
["duotone", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", {
|
|
1656
1656
|
d: "M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",
|
|
1657
1657
|
opacity: "0.2"
|
|
1658
|
-
}), /* @__PURE__ */
|
|
1659
|
-
["fill", /* @__PURE__ */
|
|
1660
|
-
["light", /* @__PURE__ */
|
|
1661
|
-
["regular", /* @__PURE__ */
|
|
1662
|
-
["thin", /* @__PURE__ */
|
|
1663
|
-
]),
|
|
1658
|
+
}), /* @__PURE__ */ t.createElement("path", { d: "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z" }))],
|
|
1659
|
+
["fill", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z" }))],
|
|
1660
|
+
["light", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z" }))],
|
|
1661
|
+
["regular", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z" }))],
|
|
1662
|
+
["thin", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z" }))]
|
|
1663
|
+
]), dt = r({
|
|
1664
1664
|
color: "currentColor",
|
|
1665
1665
|
size: "1em",
|
|
1666
1666
|
weight: "regular",
|
|
1667
1667
|
mirrored: !1
|
|
1668
|
-
}),
|
|
1669
|
-
let { alt: r, color: i, size: a, weight: o, mirrored: s, children: c, weights: l, ...u } = e, { color: d = "currentColor", size: f, weight: p = "regular", mirrored: m = !1, ...h } =
|
|
1670
|
-
return /* @__PURE__ */
|
|
1671
|
-
ref:
|
|
1668
|
+
}), V = t.forwardRef((e, n) => {
|
|
1669
|
+
let { alt: r, color: i, size: a, weight: o, mirrored: s, children: c, weights: l, ...u } = e, { color: d = "currentColor", size: f, weight: p = "regular", mirrored: m = !1, ...h } = t.useContext(dt);
|
|
1670
|
+
return /* @__PURE__ */ t.createElement("svg", {
|
|
1671
|
+
ref: n,
|
|
1672
1672
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1673
1673
|
width: a ?? f,
|
|
1674
1674
|
height: a ?? f,
|
|
@@ -1677,137 +1677,137 @@ var tt = ({ step: e, form: t, formState: n, onDismiss: r, onNextStep: i, onPrevi
|
|
|
1677
1677
|
transform: s || m ? "scale(-1, 1)" : void 0,
|
|
1678
1678
|
...h,
|
|
1679
1679
|
...u
|
|
1680
|
-
}, !!r && /* @__PURE__ */
|
|
1680
|
+
}, !!r && /* @__PURE__ */ t.createElement("title", null, r), c, l.get(o ?? p));
|
|
1681
1681
|
});
|
|
1682
|
-
|
|
1682
|
+
V.displayName = "IconBase";
|
|
1683
1683
|
//#endregion
|
|
1684
1684
|
//#region ../node_modules/@phosphor-icons/react/dist/csr/ArrowSquareOut.es.js
|
|
1685
|
-
var
|
|
1686
|
-
ref:
|
|
1685
|
+
var ft = t.forwardRef((e, n) => /* @__PURE__ */ t.createElement(V, {
|
|
1686
|
+
ref: n,
|
|
1687
1687
|
...e,
|
|
1688
|
-
weights:
|
|
1688
|
+
weights: tt
|
|
1689
1689
|
}));
|
|
1690
|
-
|
|
1690
|
+
ft.displayName = "ArrowSquareOutIcon";
|
|
1691
1691
|
//#endregion
|
|
1692
1692
|
//#region ../node_modules/@phosphor-icons/react/dist/csr/CaretDown.es.js
|
|
1693
|
-
var
|
|
1694
|
-
ref:
|
|
1693
|
+
var pt = t.forwardRef((e, n) => /* @__PURE__ */ t.createElement(V, {
|
|
1694
|
+
ref: n,
|
|
1695
1695
|
...e,
|
|
1696
|
-
weights:
|
|
1696
|
+
weights: nt
|
|
1697
1697
|
}));
|
|
1698
|
-
|
|
1698
|
+
pt.displayName = "CaretDownIcon";
|
|
1699
1699
|
//#endregion
|
|
1700
1700
|
//#region ../node_modules/@phosphor-icons/react/dist/csr/CaretLeft.es.js
|
|
1701
|
-
var
|
|
1702
|
-
ref:
|
|
1701
|
+
var mt = t.forwardRef((e, n) => /* @__PURE__ */ t.createElement(V, {
|
|
1702
|
+
ref: n,
|
|
1703
1703
|
...e,
|
|
1704
|
-
weights:
|
|
1704
|
+
weights: rt
|
|
1705
1705
|
}));
|
|
1706
|
-
|
|
1706
|
+
mt.displayName = "CaretLeftIcon";
|
|
1707
1707
|
//#endregion
|
|
1708
1708
|
//#region ../node_modules/@phosphor-icons/react/dist/csr/CaretRight.es.js
|
|
1709
|
-
var
|
|
1710
|
-
ref:
|
|
1709
|
+
var ht = t.forwardRef((e, n) => /* @__PURE__ */ t.createElement(V, {
|
|
1710
|
+
ref: n,
|
|
1711
1711
|
...e,
|
|
1712
|
-
weights:
|
|
1712
|
+
weights: it
|
|
1713
1713
|
}));
|
|
1714
|
-
|
|
1714
|
+
ht.displayName = "CaretRightIcon";
|
|
1715
1715
|
//#endregion
|
|
1716
1716
|
//#region ../node_modules/@phosphor-icons/react/dist/csr/Check.es.js
|
|
1717
|
-
var
|
|
1718
|
-
ref:
|
|
1717
|
+
var gt = t.forwardRef((e, n) => /* @__PURE__ */ t.createElement(V, {
|
|
1718
|
+
ref: n,
|
|
1719
1719
|
...e,
|
|
1720
|
-
weights:
|
|
1720
|
+
weights: at
|
|
1721
1721
|
}));
|
|
1722
|
-
|
|
1722
|
+
gt.displayName = "CheckIcon";
|
|
1723
1723
|
//#endregion
|
|
1724
1724
|
//#region ../node_modules/@phosphor-icons/react/dist/csr/CircleNotch.es.js
|
|
1725
|
-
var
|
|
1726
|
-
ref:
|
|
1725
|
+
var _t = t.forwardRef((e, n) => /* @__PURE__ */ t.createElement(V, {
|
|
1726
|
+
ref: n,
|
|
1727
1727
|
...e,
|
|
1728
|
-
weights:
|
|
1728
|
+
weights: ot
|
|
1729
1729
|
}));
|
|
1730
|
-
|
|
1730
|
+
_t.displayName = "CircleNotchIcon";
|
|
1731
1731
|
//#endregion
|
|
1732
1732
|
//#region ../node_modules/@phosphor-icons/react/dist/csr/Copy.es.js
|
|
1733
|
-
var
|
|
1734
|
-
ref:
|
|
1733
|
+
var vt = t.forwardRef((e, n) => /* @__PURE__ */ t.createElement(V, {
|
|
1734
|
+
ref: n,
|
|
1735
1735
|
...e,
|
|
1736
|
-
weights:
|
|
1736
|
+
weights: st
|
|
1737
1737
|
}));
|
|
1738
|
-
|
|
1738
|
+
vt.displayName = "CopyIcon";
|
|
1739
1739
|
//#endregion
|
|
1740
1740
|
//#region ../node_modules/@phosphor-icons/react/dist/csr/Info.es.js
|
|
1741
|
-
var
|
|
1742
|
-
ref:
|
|
1741
|
+
var yt = t.forwardRef((e, n) => /* @__PURE__ */ t.createElement(V, {
|
|
1742
|
+
ref: n,
|
|
1743
1743
|
...e,
|
|
1744
|
-
weights:
|
|
1744
|
+
weights: ct
|
|
1745
1745
|
}));
|
|
1746
|
-
|
|
1746
|
+
yt.displayName = "InfoIcon";
|
|
1747
1747
|
//#endregion
|
|
1748
1748
|
//#region ../node_modules/@phosphor-icons/react/dist/csr/MagnifyingGlass.es.js
|
|
1749
|
-
var
|
|
1750
|
-
ref:
|
|
1749
|
+
var bt = t.forwardRef((e, n) => /* @__PURE__ */ t.createElement(V, {
|
|
1750
|
+
ref: n,
|
|
1751
1751
|
...e,
|
|
1752
|
-
weights:
|
|
1752
|
+
weights: lt
|
|
1753
1753
|
}));
|
|
1754
|
-
|
|
1754
|
+
bt.displayName = "MagnifyingGlassIcon";
|
|
1755
1755
|
//#endregion
|
|
1756
1756
|
//#region ../node_modules/@phosphor-icons/react/dist/csr/X.es.js
|
|
1757
|
-
var
|
|
1758
|
-
ref:
|
|
1757
|
+
var xt = t.forwardRef((e, n) => /* @__PURE__ */ t.createElement(V, {
|
|
1758
|
+
ref: n,
|
|
1759
1759
|
...e,
|
|
1760
|
-
weights:
|
|
1760
|
+
weights: ut
|
|
1761
1761
|
}));
|
|
1762
|
-
|
|
1762
|
+
xt.displayName = "XIcon";
|
|
1763
1763
|
//#endregion
|
|
1764
1764
|
//#region ../node_modules/clsx/dist/clsx.mjs
|
|
1765
|
-
function
|
|
1765
|
+
function St(e) {
|
|
1766
1766
|
var t, n, r = "";
|
|
1767
1767
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
1768
1768
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
1769
1769
|
var i = e.length;
|
|
1770
|
-
for (t = 0; t < i; t++) e[t] && (n =
|
|
1770
|
+
for (t = 0; t < i; t++) e[t] && (n = St(e[t])) && (r && (r += " "), r += n);
|
|
1771
1771
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
1772
1772
|
return r;
|
|
1773
1773
|
}
|
|
1774
|
-
function
|
|
1775
|
-
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t =
|
|
1774
|
+
function Ct() {
|
|
1775
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = St(e)) && (r && (r += " "), r += t);
|
|
1776
1776
|
return r;
|
|
1777
1777
|
}
|
|
1778
1778
|
//#endregion
|
|
1779
1779
|
//#region ../node_modules/prism-react-renderer/dist/index.mjs
|
|
1780
|
-
var
|
|
1780
|
+
var wt = Object.create, Tt = Object.defineProperty, Et = Object.defineProperties, Dt = Object.getOwnPropertyDescriptor, Ot = Object.getOwnPropertyDescriptors, kt = Object.getOwnPropertyNames, At = Object.getOwnPropertySymbols, jt = Object.getPrototypeOf, Mt = Object.prototype.hasOwnProperty, Nt = Object.prototype.propertyIsEnumerable, Pt = (e, t, n) => t in e ? Tt(e, t, {
|
|
1781
1781
|
enumerable: !0,
|
|
1782
1782
|
configurable: !0,
|
|
1783
1783
|
writable: !0,
|
|
1784
1784
|
value: n
|
|
1785
1785
|
}) : e[t] = n, H = (e, t) => {
|
|
1786
|
-
for (var n in t ||= {})
|
|
1787
|
-
if (
|
|
1786
|
+
for (var n in t ||= {}) Mt.call(t, n) && Pt(e, n, t[n]);
|
|
1787
|
+
if (At) for (var n of At(t)) Nt.call(t, n) && Pt(e, n, t[n]);
|
|
1788
1788
|
return e;
|
|
1789
|
-
},
|
|
1789
|
+
}, Ft = (e, t) => Et(e, Ot(t)), It = (e, t) => {
|
|
1790
1790
|
var n = {};
|
|
1791
|
-
for (var r in e)
|
|
1792
|
-
if (e != null &&
|
|
1791
|
+
for (var r in e) Mt.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
1792
|
+
if (e != null && At) for (var r of At(e)) t.indexOf(r) < 0 && Nt.call(e, r) && (n[r] = e[r]);
|
|
1793
1793
|
return n;
|
|
1794
|
-
},
|
|
1795
|
-
return t || (0, e[
|
|
1796
|
-
},
|
|
1797
|
-
for (var n in t)
|
|
1794
|
+
}, Lt = (e, t) => function() {
|
|
1795
|
+
return t || (0, e[kt(e)[0]])((t = { exports: {} }).exports, t), t.exports;
|
|
1796
|
+
}, Rt = (e, t) => {
|
|
1797
|
+
for (var n in t) Tt(e, n, {
|
|
1798
1798
|
get: t[n],
|
|
1799
1799
|
enumerable: !0
|
|
1800
1800
|
});
|
|
1801
|
-
},
|
|
1802
|
-
if (t && typeof t == "object" || typeof t == "function") for (let i of
|
|
1801
|
+
}, zt = (e, t, n, r) => {
|
|
1802
|
+
if (t && typeof t == "object" || typeof t == "function") for (let i of kt(t)) !Mt.call(e, i) && i !== n && Tt(e, i, {
|
|
1803
1803
|
get: () => t[i],
|
|
1804
|
-
enumerable: !(r =
|
|
1804
|
+
enumerable: !(r = Dt(t, i)) || r.enumerable
|
|
1805
1805
|
});
|
|
1806
1806
|
return e;
|
|
1807
|
-
}, U = ((e, t, n) => (n = e == null ? {} :
|
|
1807
|
+
}, U = ((e, t, n) => (n = e == null ? {} : wt(jt(e)), zt(t || !e || !e.__esModule ? Tt(n, "default", {
|
|
1808
1808
|
value: e,
|
|
1809
1809
|
enumerable: !0
|
|
1810
|
-
}) : n, e)))(
|
|
1810
|
+
}) : n, e)))(Lt({ "../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e, t) {
|
|
1811
1811
|
var n = function() {
|
|
1812
1812
|
var e = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, t = 0, n = {}, r = {
|
|
1813
1813
|
util: {
|
|
@@ -1976,17 +1976,17 @@ var Tt = Object.create, Et = Object.defineProperty, Dt = Object.defineProperties
|
|
|
1976
1976
|
for (var A = S; A !== t.tail && (k < O || typeof A.value == "string"); A = A.next) T++, k += A.value.length;
|
|
1977
1977
|
T--, w = e.slice(C, k), E.index -= C;
|
|
1978
1978
|
} else if (E = a(x, 0, w, _), !E) continue;
|
|
1979
|
-
var D = E.index, j = E[0], M = w.slice(0, D),
|
|
1980
|
-
d &&
|
|
1981
|
-
var
|
|
1982
|
-
M && (
|
|
1983
|
-
var
|
|
1984
|
-
if (S = c(t,
|
|
1985
|
-
var
|
|
1979
|
+
var D = E.index, j = E[0], M = w.slice(0, D), ee = w.slice(D + j.length), te = C + w.length;
|
|
1980
|
+
d && te > d.reach && (d.reach = te);
|
|
1981
|
+
var N = S.prev;
|
|
1982
|
+
M && (N = c(t, N, M), C += M.length), l(t, N, T);
|
|
1983
|
+
var ne = new i(f, g ? r.tokenize(j, g) : j, y, j);
|
|
1984
|
+
if (S = c(t, N, ne), ee && c(t, S, ee), T > 1) {
|
|
1985
|
+
var P = {
|
|
1986
1986
|
cause: f + "," + m,
|
|
1987
|
-
reach:
|
|
1987
|
+
reach: te
|
|
1988
1988
|
};
|
|
1989
|
-
o(e, t, n, S.prev, C,
|
|
1989
|
+
o(e, t, n, S.prev, C, P), d && P.reach > d.reach && (d.reach = P.reach);
|
|
1990
1990
|
}
|
|
1991
1991
|
}
|
|
1992
1992
|
}
|
|
@@ -3778,29 +3778,29 @@ U.languages.markup = {
|
|
|
3778
3778
|
pattern: /\bnull\b/,
|
|
3779
3779
|
alias: "keyword"
|
|
3780
3780
|
}
|
|
3781
|
-
}, U.languages.webmanifest = U.languages.json,
|
|
3782
|
-
dracula: () =>
|
|
3783
|
-
duotoneDark: () =>
|
|
3784
|
-
duotoneLight: () =>
|
|
3785
|
-
github: () =>
|
|
3786
|
-
gruvboxMaterialDark: () =>
|
|
3787
|
-
gruvboxMaterialLight: () =>
|
|
3788
|
-
jettwaveDark: () =>
|
|
3789
|
-
jettwaveLight: () =>
|
|
3790
|
-
nightOwl: () =>
|
|
3791
|
-
nightOwlLight: () =>
|
|
3792
|
-
oceanicNext: () =>
|
|
3793
|
-
okaidia: () =>
|
|
3794
|
-
oneDark: () =>
|
|
3795
|
-
oneLight: () =>
|
|
3796
|
-
palenight: () =>
|
|
3797
|
-
shadesOfPurple: () =>
|
|
3798
|
-
synthwave84: () =>
|
|
3799
|
-
ultramin: () =>
|
|
3800
|
-
vsDark: () =>
|
|
3801
|
-
vsLight: () =>
|
|
3781
|
+
}, U.languages.webmanifest = U.languages.json, Rt({}, {
|
|
3782
|
+
dracula: () => Bt,
|
|
3783
|
+
duotoneDark: () => Vt,
|
|
3784
|
+
duotoneLight: () => Ht,
|
|
3785
|
+
github: () => Ut,
|
|
3786
|
+
gruvboxMaterialDark: () => an,
|
|
3787
|
+
gruvboxMaterialLight: () => on,
|
|
3788
|
+
jettwaveDark: () => en,
|
|
3789
|
+
jettwaveLight: () => tn,
|
|
3790
|
+
nightOwl: () => Wt,
|
|
3791
|
+
nightOwlLight: () => Gt,
|
|
3792
|
+
oceanicNext: () => Kt,
|
|
3793
|
+
okaidia: () => qt,
|
|
3794
|
+
oneDark: () => nn,
|
|
3795
|
+
oneLight: () => rn,
|
|
3796
|
+
palenight: () => Jt,
|
|
3797
|
+
shadesOfPurple: () => Yt,
|
|
3798
|
+
synthwave84: () => Xt,
|
|
3799
|
+
ultramin: () => Zt,
|
|
3800
|
+
vsDark: () => Qt,
|
|
3801
|
+
vsLight: () => $t
|
|
3802
3802
|
});
|
|
3803
|
-
var
|
|
3803
|
+
var Bt = {
|
|
3804
3804
|
plain: {
|
|
3805
3805
|
color: "#F8F8F2",
|
|
3806
3806
|
backgroundColor: "#282A36"
|
|
@@ -3855,7 +3855,7 @@ var Vt = {
|
|
|
3855
3855
|
style: { color: "rgb(241, 250, 140)" }
|
|
3856
3856
|
}
|
|
3857
3857
|
]
|
|
3858
|
-
},
|
|
3858
|
+
}, Vt = {
|
|
3859
3859
|
plain: {
|
|
3860
3860
|
backgroundColor: "#2a2734",
|
|
3861
3861
|
color: "#9a86fd"
|
|
@@ -3939,7 +3939,7 @@ var Vt = {
|
|
|
3939
3939
|
style: { color: "#c4b9fe" }
|
|
3940
3940
|
}
|
|
3941
3941
|
]
|
|
3942
|
-
},
|
|
3942
|
+
}, Ht = {
|
|
3943
3943
|
plain: {
|
|
3944
3944
|
backgroundColor: "#faf8f5",
|
|
3945
3945
|
color: "#728fcb"
|
|
@@ -4025,7 +4025,7 @@ var Vt = {
|
|
|
4025
4025
|
style: { color: "#896724" }
|
|
4026
4026
|
}
|
|
4027
4027
|
]
|
|
4028
|
-
},
|
|
4028
|
+
}, Ut = {
|
|
4029
4029
|
plain: {
|
|
4030
4030
|
color: "#393A34",
|
|
4031
4031
|
backgroundColor: "#f6f8fa"
|
|
@@ -4100,7 +4100,7 @@ var Vt = {
|
|
|
4100
4100
|
style: { color: "#00009f" }
|
|
4101
4101
|
}
|
|
4102
4102
|
]
|
|
4103
|
-
},
|
|
4103
|
+
}, Wt = {
|
|
4104
4104
|
plain: {
|
|
4105
4105
|
color: "#d6deeb",
|
|
4106
4106
|
backgroundColor: "#011627"
|
|
@@ -4191,7 +4191,7 @@ var Vt = {
|
|
|
4191
4191
|
style: { color: "rgb(178, 204, 214)" }
|
|
4192
4192
|
}
|
|
4193
4193
|
]
|
|
4194
|
-
},
|
|
4194
|
+
}, Gt = {
|
|
4195
4195
|
plain: {
|
|
4196
4196
|
color: "#403f53",
|
|
4197
4197
|
backgroundColor: "#FBFBFB"
|
|
@@ -4294,7 +4294,7 @@ var Vt = {
|
|
|
4294
4294
|
className: "#FAC863",
|
|
4295
4295
|
method: "#6699CC",
|
|
4296
4296
|
operator: "#fc929e"
|
|
4297
|
-
},
|
|
4297
|
+
}, Kt = {
|
|
4298
4298
|
plain: {
|
|
4299
4299
|
backgroundColor: "#282c34",
|
|
4300
4300
|
color: "#ffffff"
|
|
@@ -4393,7 +4393,7 @@ var Vt = {
|
|
|
4393
4393
|
style: { opacity: .7 }
|
|
4394
4394
|
}
|
|
4395
4395
|
]
|
|
4396
|
-
},
|
|
4396
|
+
}, qt = {
|
|
4397
4397
|
plain: {
|
|
4398
4398
|
color: "#f8f8f2",
|
|
4399
4399
|
backgroundColor: "#272822"
|
|
@@ -4496,7 +4496,7 @@ var Vt = {
|
|
|
4496
4496
|
style: { color: "#e6db74" }
|
|
4497
4497
|
}
|
|
4498
4498
|
]
|
|
4499
|
-
},
|
|
4499
|
+
}, Jt = {
|
|
4500
4500
|
plain: {
|
|
4501
4501
|
color: "#bfc7d5",
|
|
4502
4502
|
backgroundColor: "#292d3e"
|
|
@@ -4570,7 +4570,7 @@ var Vt = {
|
|
|
4570
4570
|
style: { color: "rgb(221, 221, 221)" }
|
|
4571
4571
|
}
|
|
4572
4572
|
]
|
|
4573
|
-
},
|
|
4573
|
+
}, Yt = {
|
|
4574
4574
|
plain: {
|
|
4575
4575
|
color: "#9EFEFF",
|
|
4576
4576
|
backgroundColor: "#2D2A55"
|
|
@@ -4642,7 +4642,7 @@ var Vt = {
|
|
|
4642
4642
|
style: { color: "rgb(250, 208, 0)" }
|
|
4643
4643
|
}
|
|
4644
4644
|
]
|
|
4645
|
-
},
|
|
4645
|
+
}, Xt = {
|
|
4646
4646
|
plain: {
|
|
4647
4647
|
backgroundColor: "linear-gradient(to bottom, #2a2139 75%, #34294f)",
|
|
4648
4648
|
backgroundImage: "#34294f",
|
|
@@ -4770,7 +4770,7 @@ var Vt = {
|
|
|
4770
4770
|
style: { color: "green" }
|
|
4771
4771
|
}
|
|
4772
4772
|
]
|
|
4773
|
-
},
|
|
4773
|
+
}, Zt = {
|
|
4774
4774
|
plain: {
|
|
4775
4775
|
color: "#282a2e",
|
|
4776
4776
|
backgroundColor: "#ffffff"
|
|
@@ -4799,7 +4799,7 @@ var Vt = {
|
|
|
4799
4799
|
style: { color: "rgb(40, 42, 46)" }
|
|
4800
4800
|
}
|
|
4801
4801
|
]
|
|
4802
|
-
},
|
|
4802
|
+
}, Qt = {
|
|
4803
4803
|
plain: {
|
|
4804
4804
|
color: "#9CDCFE",
|
|
4805
4805
|
backgroundColor: "#1E1E1E"
|
|
@@ -4878,7 +4878,7 @@ var Vt = {
|
|
|
4878
4878
|
style: { color: "rgb(209, 105, 105)" }
|
|
4879
4879
|
}
|
|
4880
4880
|
]
|
|
4881
|
-
},
|
|
4881
|
+
}, $t = {
|
|
4882
4882
|
plain: {
|
|
4883
4883
|
color: "#000000",
|
|
4884
4884
|
backgroundColor: "#ffffff"
|
|
@@ -4933,7 +4933,7 @@ var Vt = {
|
|
|
4933
4933
|
style: { color: "rgb(38, 127, 153)" }
|
|
4934
4934
|
}
|
|
4935
4935
|
]
|
|
4936
|
-
},
|
|
4936
|
+
}, en = {
|
|
4937
4937
|
plain: {
|
|
4938
4938
|
color: "#f8fafc",
|
|
4939
4939
|
backgroundColor: "#011627"
|
|
@@ -5012,7 +5012,7 @@ var Vt = {
|
|
|
5012
5012
|
style: { color: "#D16969" }
|
|
5013
5013
|
}
|
|
5014
5014
|
]
|
|
5015
|
-
},
|
|
5015
|
+
}, tn = {
|
|
5016
5016
|
plain: {
|
|
5017
5017
|
color: "#0f172a",
|
|
5018
5018
|
backgroundColor: "#f1f5f9"
|
|
@@ -5091,7 +5091,7 @@ var Vt = {
|
|
|
5091
5091
|
style: { color: "#D16969" }
|
|
5092
5092
|
}
|
|
5093
5093
|
]
|
|
5094
|
-
},
|
|
5094
|
+
}, nn = {
|
|
5095
5095
|
plain: {
|
|
5096
5096
|
backgroundColor: "hsl(220, 13%, 18%)",
|
|
5097
5097
|
color: "hsl(220, 14%, 71%)",
|
|
@@ -5185,7 +5185,7 @@ var Vt = {
|
|
|
5185
5185
|
style: { color: "hsl(220, 14%, 71%)" }
|
|
5186
5186
|
}
|
|
5187
5187
|
]
|
|
5188
|
-
},
|
|
5188
|
+
}, rn = {
|
|
5189
5189
|
plain: {
|
|
5190
5190
|
backgroundColor: "hsl(230, 1%, 98%)",
|
|
5191
5191
|
color: "hsl(230, 8%, 24%)"
|
|
@@ -5278,7 +5278,7 @@ var Vt = {
|
|
|
5278
5278
|
style: { color: "hsl(230, 8%, 24%)" }
|
|
5279
5279
|
}
|
|
5280
5280
|
]
|
|
5281
|
-
},
|
|
5281
|
+
}, an = {
|
|
5282
5282
|
plain: {
|
|
5283
5283
|
color: "#ebdbb2",
|
|
5284
5284
|
backgroundColor: "#292828"
|
|
@@ -5350,7 +5350,7 @@ var Vt = {
|
|
|
5350
5350
|
style: { color: "#d3869b" }
|
|
5351
5351
|
}
|
|
5352
5352
|
]
|
|
5353
|
-
},
|
|
5353
|
+
}, on = {
|
|
5354
5354
|
plain: {
|
|
5355
5355
|
color: "#654735",
|
|
5356
5356
|
backgroundColor: "#f9f5d7"
|
|
@@ -5421,88 +5421,88 @@ var Vt = {
|
|
|
5421
5421
|
style: { color: "#924f79" }
|
|
5422
5422
|
}
|
|
5423
5423
|
]
|
|
5424
|
-
},
|
|
5424
|
+
}, sn = (e) => o((t) => {
|
|
5425
5425
|
var n = t, { className: r, style: i, line: a } = n;
|
|
5426
|
-
let o =
|
|
5426
|
+
let o = Ft(H({}, It(n, [
|
|
5427
5427
|
"className",
|
|
5428
5428
|
"style",
|
|
5429
5429
|
"line"
|
|
5430
|
-
])), { className:
|
|
5430
|
+
])), { className: Ct("token-line", r) });
|
|
5431
5431
|
return typeof e == "object" && "plain" in e && (o.style = e.plain), typeof i == "object" && (o.style = H(H({}, o.style || {}), i)), o;
|
|
5432
|
-
}, [e]),
|
|
5433
|
-
let t =
|
|
5432
|
+
}, [e]), cn = (e) => {
|
|
5433
|
+
let t = o(({ types: t, empty: n }) => {
|
|
5434
5434
|
if (e != null) return t.length === 1 && t[0] === "plain" ? n == null ? void 0 : { display: "inline-block" } : t.length === 1 && n != null ? e[t[0]] : Object.assign(n == null ? {} : { display: "inline-block" }, ...t.map((t) => e[t]));
|
|
5435
5435
|
}, [e]);
|
|
5436
|
-
return
|
|
5436
|
+
return o((e) => {
|
|
5437
5437
|
var n = e, { token: r, className: i, style: a } = n;
|
|
5438
|
-
let o =
|
|
5438
|
+
let o = Ft(H({}, It(n, [
|
|
5439
5439
|
"token",
|
|
5440
5440
|
"className",
|
|
5441
5441
|
"style"
|
|
5442
5442
|
])), {
|
|
5443
|
-
className:
|
|
5443
|
+
className: Ct("token", ...r.types, i),
|
|
5444
5444
|
children: r.content,
|
|
5445
5445
|
style: t(r)
|
|
5446
5446
|
});
|
|
5447
5447
|
return a != null && (o.style = H(H({}, o.style || {}), a)), o;
|
|
5448
5448
|
}, [t]);
|
|
5449
|
-
},
|
|
5449
|
+
}, ln = /\r\n|\r|\n/, un = (e) => {
|
|
5450
5450
|
e.length === 0 ? e.push({
|
|
5451
5451
|
types: ["plain"],
|
|
5452
5452
|
content: "\n",
|
|
5453
5453
|
empty: !0
|
|
5454
5454
|
}) : e.length === 1 && e[0].content === "" && (e[0].content = "\n", e[0].empty = !0);
|
|
5455
|
-
},
|
|
5455
|
+
}, dn = (e, t) => {
|
|
5456
5456
|
let n = e.length;
|
|
5457
5457
|
return n > 0 && e[n - 1] === t ? e : e.concat(t);
|
|
5458
|
-
},
|
|
5458
|
+
}, fn = (e) => {
|
|
5459
5459
|
let t = [[]], n = [e], r = [0], i = [e.length], a = 0, o = 0, s = [], c = [s];
|
|
5460
5460
|
for (; o > -1;) {
|
|
5461
5461
|
for (; (a = r[o]++) < i[o];) {
|
|
5462
5462
|
let e, l = t[o], u = n[o][a];
|
|
5463
|
-
if (typeof u == "string" ? (l = o > 0 ? l : ["plain"], e = u) : (l =
|
|
5463
|
+
if (typeof u == "string" ? (l = o > 0 ? l : ["plain"], e = u) : (l = dn(l, u.type), u.alias && (l = dn(l, u.alias)), e = u.content), typeof e != "string") {
|
|
5464
5464
|
o++, t.push(l), n.push(e), r.push(0), i.push(e.length);
|
|
5465
5465
|
continue;
|
|
5466
5466
|
}
|
|
5467
|
-
let d = e.split(
|
|
5467
|
+
let d = e.split(ln), f = d.length;
|
|
5468
5468
|
s.push({
|
|
5469
5469
|
types: l,
|
|
5470
5470
|
content: d[0]
|
|
5471
5471
|
});
|
|
5472
|
-
for (let e = 1; e < f; e++)
|
|
5472
|
+
for (let e = 1; e < f; e++) un(s), c.push(s = []), s.push({
|
|
5473
5473
|
types: l,
|
|
5474
5474
|
content: d[e]
|
|
5475
5475
|
});
|
|
5476
5476
|
}
|
|
5477
5477
|
o--, t.pop(), n.pop(), r.pop(), i.pop();
|
|
5478
5478
|
}
|
|
5479
|
-
return
|
|
5480
|
-
},
|
|
5481
|
-
if (n == null) return
|
|
5479
|
+
return un(s), c;
|
|
5480
|
+
}, pn = ({ prism: e, code: t, grammar: n, language: r }) => l(() => {
|
|
5481
|
+
if (n == null) return fn([t]);
|
|
5482
5482
|
let i = {
|
|
5483
5483
|
code: t,
|
|
5484
5484
|
grammar: n,
|
|
5485
5485
|
language: r,
|
|
5486
5486
|
tokens: []
|
|
5487
5487
|
};
|
|
5488
|
-
return e.hooks.run("before-tokenize", i), i.tokens = e.tokenize(t, n), e.hooks.run("after-tokenize", i),
|
|
5488
|
+
return e.hooks.run("before-tokenize", i), i.tokens = e.tokenize(t, n), e.hooks.run("after-tokenize", i), fn(i.tokens);
|
|
5489
5489
|
}, [
|
|
5490
5490
|
t,
|
|
5491
5491
|
n,
|
|
5492
5492
|
r,
|
|
5493
5493
|
e
|
|
5494
|
-
]),
|
|
5494
|
+
]), mn = (e, t) => {
|
|
5495
5495
|
let { plain: n } = e, r = e.styles.reduce((e, n) => {
|
|
5496
5496
|
let { languages: r, style: i } = n;
|
|
5497
5497
|
return r && !r.includes(t) || n.types.forEach((t) => {
|
|
5498
5498
|
e[t] = H(H({}, e[t]), i);
|
|
5499
5499
|
}), e;
|
|
5500
5500
|
}, {});
|
|
5501
|
-
return r.root = n, r.plain =
|
|
5502
|
-
},
|
|
5503
|
-
let a = t.toLowerCase(), o =
|
|
5501
|
+
return r.root = n, r.plain = Ft(H({}, n), { backgroundColor: void 0 }), r;
|
|
5502
|
+
}, hn = ({ children: e, language: t, code: n, theme: r, prism: i }) => {
|
|
5503
|
+
let a = t.toLowerCase(), o = mn(r, a), s = sn(o), c = cn(o), l = i.languages[a];
|
|
5504
5504
|
return e({
|
|
5505
|
-
tokens:
|
|
5505
|
+
tokens: pn({
|
|
5506
5506
|
prism: i,
|
|
5507
5507
|
language: a,
|
|
5508
5508
|
code: n,
|
|
@@ -5513,26 +5513,26 @@ var Vt = {
|
|
|
5513
5513
|
getLineProps: s,
|
|
5514
5514
|
getTokenProps: c
|
|
5515
5515
|
});
|
|
5516
|
-
},
|
|
5516
|
+
}, gn = (e) => i(hn, Ft(H({}, e), {
|
|
5517
5517
|
prism: e.prism || U,
|
|
5518
|
-
theme: e.theme ||
|
|
5518
|
+
theme: e.theme || Qt,
|
|
5519
5519
|
code: e.code,
|
|
5520
5520
|
language: e.language
|
|
5521
|
-
})),
|
|
5521
|
+
})), _n = (e, t) => t.some((t) => {
|
|
5522
5522
|
if (typeof t == "number") return e === t;
|
|
5523
5523
|
let [n, r] = t.split(":").map((e) => parseInt(e));
|
|
5524
5524
|
return n <= e && e <= r;
|
|
5525
|
-
}),
|
|
5525
|
+
}), vn = (e, t, n) => n.some(([n, [r, i]]) => n === e && r <= t && t <= i), yn = (e, t) => e.split(RegExp(`(${t.map(([e]) => e).join("|")})`)).filter(Boolean), bn = (e) => e.map((e) => {
|
|
5526
5526
|
e = e.startsWith("/") ? e : "/" + e;
|
|
5527
5527
|
let [, t, n = "0:Infinity"] = e.split("/"), [r, i = r] = n.split(":").map((e) => Number(e));
|
|
5528
5528
|
return [t, [r, i]];
|
|
5529
|
-
}),
|
|
5530
|
-
let n =
|
|
5529
|
+
}), xn = (e, t) => () => {
|
|
5530
|
+
let n = s(e);
|
|
5531
5531
|
if (n === void 0) throw Error(t);
|
|
5532
5532
|
return n;
|
|
5533
|
-
},
|
|
5534
|
-
let a =
|
|
5535
|
-
return
|
|
5533
|
+
}, G = (e) => Object.assign(a(e), { displayName: e.displayName ?? e.name }), Sn = r(void 0), Cn = r(void 0), wn = xn(Sn, "Could not find nearest <CodeBlock /> component. Please wrap this component with a <CodeBlock /> component imported from \"react-code-block\"."), Tn = xn(Cn, "Could not find nearest <CodeBlock.Code /> component. Please wrap this component with <CodeBlock.Code /> component imported from \"react-code-block\"."), En = ({ code: e, words: t = [], lines: n = [], children: r, ...i }) => {
|
|
5534
|
+
let a = l(() => bn(t), [t]);
|
|
5535
|
+
return m(Sn.Provider, {
|
|
5536
5536
|
value: {
|
|
5537
5537
|
code: e.trim(),
|
|
5538
5538
|
words: a,
|
|
@@ -5542,16 +5542,16 @@ var Vt = {
|
|
|
5542
5542
|
children: r
|
|
5543
5543
|
});
|
|
5544
5544
|
};
|
|
5545
|
-
|
|
5546
|
-
let { lines: i, words: a, ...o } =
|
|
5547
|
-
return
|
|
5545
|
+
En.Code = G(({ as: e, children: t, ...n }, r) => {
|
|
5546
|
+
let { lines: i, words: a, ...o } = wn(), s = e ?? "pre";
|
|
5547
|
+
return m(gn, {
|
|
5548
5548
|
...o,
|
|
5549
|
-
children: (e) =>
|
|
5549
|
+
children: (e) => m(s, {
|
|
5550
5550
|
...n,
|
|
5551
5551
|
ref: r,
|
|
5552
5552
|
children: e.tokens.map((n, r) => {
|
|
5553
|
-
let a = r + 1, o =
|
|
5554
|
-
return
|
|
5553
|
+
let a = r + 1, o = _n(a, i);
|
|
5554
|
+
return m(Cn.Provider, {
|
|
5555
5555
|
value: {
|
|
5556
5556
|
highlight: e,
|
|
5557
5557
|
line: n,
|
|
@@ -5565,9 +5565,9 @@ G.Code = Cn(({ as: e, children: t, ...n }, r) => {
|
|
|
5565
5565
|
})
|
|
5566
5566
|
})
|
|
5567
5567
|
});
|
|
5568
|
-
}),
|
|
5569
|
-
let { highlight: a, line: o } =
|
|
5570
|
-
return
|
|
5568
|
+
}), En.LineContent = G(({ as: e, children: t, className: n, ...r }, i) => {
|
|
5569
|
+
let { highlight: a, line: o } = Tn(), { getLineProps: s } = a;
|
|
5570
|
+
return m(e ?? "div", {
|
|
5571
5571
|
...s({
|
|
5572
5572
|
line: o,
|
|
5573
5573
|
className: n
|
|
@@ -5576,26 +5576,26 @@ G.Code = Cn(({ as: e, children: t, ...n }, r) => {
|
|
|
5576
5576
|
ref: i,
|
|
5577
5577
|
children: t
|
|
5578
5578
|
});
|
|
5579
|
-
}),
|
|
5580
|
-
let { words: o } =
|
|
5581
|
-
return
|
|
5579
|
+
}), En.Token = G(({ as: e, children: t = ({ children: e }) => m("span", { children: e }), className: r, ...i }, a) => {
|
|
5580
|
+
let { words: o } = wn(), { line: s, highlight: c, lineNumber: l } = Tn(), { getTokenProps: u } = c, d = e ?? "span";
|
|
5581
|
+
return m(n.Fragment, { children: s.map((e, s) => {
|
|
5582
5582
|
let { children: c, ...f } = u({
|
|
5583
5583
|
token: e,
|
|
5584
|
-
className:
|
|
5585
|
-
}), p = o.length ?
|
|
5586
|
-
return
|
|
5584
|
+
className: r
|
|
5585
|
+
}), p = o.length ? yn(c, o) : [c];
|
|
5586
|
+
return m(n.Fragment, { children: p.map((e, n) => m(d, {
|
|
5587
5587
|
...f,
|
|
5588
5588
|
...i,
|
|
5589
5589
|
ref: a,
|
|
5590
5590
|
children: t({
|
|
5591
5591
|
children: e,
|
|
5592
|
-
isTokenHighlighted:
|
|
5592
|
+
isTokenHighlighted: vn(e, l, o)
|
|
5593
5593
|
})
|
|
5594
5594
|
}, n)) }, s);
|
|
5595
5595
|
}) });
|
|
5596
|
-
}),
|
|
5597
|
-
let { lineNumber: r } =
|
|
5598
|
-
return
|
|
5596
|
+
}), En.LineNumber = G(({ as: e, ...t }, n) => {
|
|
5597
|
+
let { lineNumber: r } = Tn();
|
|
5598
|
+
return m(e ?? "span", {
|
|
5599
5599
|
...t,
|
|
5600
5600
|
ref: n,
|
|
5601
5601
|
children: r
|
|
@@ -5603,39 +5603,39 @@ G.Code = Cn(({ as: e, children: t, ...n }, r) => {
|
|
|
5603
5603
|
});
|
|
5604
5604
|
//#endregion
|
|
5605
5605
|
//#region ../ui-kit/dist/index.es.js
|
|
5606
|
-
function
|
|
5606
|
+
function Dn(e) {
|
|
5607
5607
|
var t, n, r = "";
|
|
5608
5608
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
5609
5609
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
5610
5610
|
var i = e.length;
|
|
5611
|
-
for (t = 0; t < i; t++) e[t] && (n =
|
|
5611
|
+
for (t = 0; t < i; t++) e[t] && (n = Dn(e[t])) && (r && (r += " "), r += n);
|
|
5612
5612
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
5613
5613
|
return r;
|
|
5614
5614
|
}
|
|
5615
|
-
function
|
|
5616
|
-
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t =
|
|
5615
|
+
function On() {
|
|
5616
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Dn(e)) && (r && (r += " "), r += t);
|
|
5617
5617
|
return r;
|
|
5618
5618
|
}
|
|
5619
|
-
var K =
|
|
5620
|
-
className: K("flex gap-2 justify-center items-center disabled:pointer-events-none", c ? "rounded-full" : "rounded-lg",
|
|
5619
|
+
var K = On, q = ({ variant: e = "primary", size: t = "medium", text: n, iconBefore: r, iconAfter: i, className: a, disabled: o = !1, loading: s = !1, round: c = !1, ...l }) => /* @__PURE__ */ m("button", {
|
|
5620
|
+
className: K("flex gap-2 justify-center items-center disabled:pointer-events-none", c ? "rounded-full" : "rounded-lg", kn(e), jn(t), a),
|
|
5621
5621
|
disabled: o,
|
|
5622
5622
|
...l,
|
|
5623
|
-
children: /* @__PURE__ */
|
|
5623
|
+
children: /* @__PURE__ */ m(dt.Provider, {
|
|
5624
5624
|
value: {
|
|
5625
5625
|
size: t === "xsmall" ? 12 : 16,
|
|
5626
5626
|
weight: "regular",
|
|
5627
|
-
className: K(
|
|
5627
|
+
className: K(An(e, o))
|
|
5628
5628
|
},
|
|
5629
|
-
children: s ? /* @__PURE__ */
|
|
5629
|
+
children: s ? /* @__PURE__ */ m(_t, { className: K(An(e, o), "animate-spin") }) : /* @__PURE__ */ h(p, { children: [
|
|
5630
5630
|
r && r,
|
|
5631
|
-
n && /* @__PURE__ */
|
|
5632
|
-
className: K(
|
|
5631
|
+
n && /* @__PURE__ */ m("span", {
|
|
5632
|
+
className: K(An(e, o), Mn(t)),
|
|
5633
5633
|
children: n
|
|
5634
5634
|
}),
|
|
5635
5635
|
i && i
|
|
5636
5636
|
] })
|
|
5637
5637
|
})
|
|
5638
|
-
}),
|
|
5638
|
+
}), kn = (e) => {
|
|
5639
5639
|
switch (e) {
|
|
5640
5640
|
case "primary": return "border border-grey-0/0 bg-primary-action-button-light dark:bg-primary-action-button-dark hover:bg-primary-action-button-hover-light dark:hover:bg-primary-action-button-hover-dark disabled:bg-primary-action-disabled-light dark:disabled:bg-primary-action-disabled-dark";
|
|
5641
5641
|
case "secondary": return "border border-grey-0/0 bg-secondary-action-button-light dark:bg-secondary-action-button-dark hover:bg-secondary-action-button-hover-light dark:hover:bg-secondary-action-button-hover-dark disabled:bg-secondary-action-disabled-light dark:disabled:bg-secondary-action-disabled-dark";
|
|
@@ -5643,7 +5643,7 @@ var K = kn, q = ({ variant: e = "primary", size: t = "medium", text: n, iconBefo
|
|
|
5643
5643
|
case "neutral": return "border border-separator-regular-light dark:border-separator-regular-dark hover:bg-background-universal-overlay-light dark:hover:bg-background-universal-overlay-dark disabled:bg-secondary-action-disabled-light dark:disabled:bg-secondary-action-disabled-dark disabled:border-separator-opaque-light dark:disabled:border-separator-opaque-dark";
|
|
5644
5644
|
case "subtle": return "border border-grey-0/0 hover:bg-background-universal-overlay-light dark:hover:bg-background-universal-overlay-dark";
|
|
5645
5645
|
}
|
|
5646
|
-
},
|
|
5646
|
+
}, An = (e, t) => {
|
|
5647
5647
|
if (t) return "text-label-tertiary-light dark:text-label-tertiary-dark";
|
|
5648
5648
|
switch (e) {
|
|
5649
5649
|
case "primary": return "text-nonadaptable-text-light";
|
|
@@ -5652,19 +5652,19 @@ var K = kn, q = ({ variant: e = "primary", size: t = "medium", text: n, iconBefo
|
|
|
5652
5652
|
case "neutral": return "text-label-primary-light dark:text-label-primary-dark";
|
|
5653
5653
|
case "subtle": return "text-label-primary-light dark:text-label-primary-dark";
|
|
5654
5654
|
}
|
|
5655
|
-
},
|
|
5655
|
+
}, jn = (e) => {
|
|
5656
5656
|
switch (e) {
|
|
5657
5657
|
case "xsmall": return "p-1";
|
|
5658
5658
|
case "small": return "p-2";
|
|
5659
5659
|
case "medium": return "p-3";
|
|
5660
5660
|
}
|
|
5661
|
-
},
|
|
5661
|
+
}, Mn = (e) => {
|
|
5662
5662
|
switch (e) {
|
|
5663
5663
|
case "xsmall": return "text-[10px] leading-[14px]";
|
|
5664
5664
|
case "small": return "text-[13px] leading-[16px]";
|
|
5665
5665
|
case "medium": return "text-[15px] leading-[16px] -tracking-0,1";
|
|
5666
5666
|
}
|
|
5667
|
-
},
|
|
5667
|
+
}, Nn = {
|
|
5668
5668
|
Di1: "text-[72px] font-bold leading-[90px] -tracking-2,5",
|
|
5669
5669
|
Di2: "text-[60px] font-bold leading-[72px] -tracking-2,0",
|
|
5670
5670
|
Di3: "text-[48px] font-bold leading-[60px] -tracking-1,5",
|
|
@@ -5684,12 +5684,12 @@ var K = kn, q = ({ variant: e = "primary", size: t = "medium", text: n, iconBefo
|
|
|
5684
5684
|
D1: "text-[12px] leading-[16px]",
|
|
5685
5685
|
M: "text-[10px] leading-[16px]"
|
|
5686
5686
|
}, J = ({ children: e, className: t, variant: n = "B1", significance: r = "primary", as: i }) => {
|
|
5687
|
-
let a = i ??
|
|
5688
|
-
return /* @__PURE__ */
|
|
5689
|
-
className: K("font-sans",
|
|
5687
|
+
let a = i ?? Pn[n], o = Nn[n];
|
|
5688
|
+
return /* @__PURE__ */ m(a, {
|
|
5689
|
+
className: K("font-sans", Fn[r], t, o),
|
|
5690
5690
|
children: e
|
|
5691
5691
|
});
|
|
5692
|
-
},
|
|
5692
|
+
}, Pn = {
|
|
5693
5693
|
Di1: "h1",
|
|
5694
5694
|
Di2: "h2",
|
|
5695
5695
|
Di3: "h3",
|
|
@@ -5708,7 +5708,7 @@ var K = kn, q = ({ variant: e = "primary", size: t = "medium", text: n, iconBefo
|
|
|
5708
5708
|
D1B: "p",
|
|
5709
5709
|
D1: "p",
|
|
5710
5710
|
M: "p"
|
|
5711
|
-
},
|
|
5711
|
+
}, Fn = {
|
|
5712
5712
|
primary: "text-label-primary-light dark:text-label-primary-dark",
|
|
5713
5713
|
secondary: "text-label-secondary-light dark:text-label-secondary-dark",
|
|
5714
5714
|
tertiary: "text-label-tertiary-light dark:text-label-tertiary-dark",
|
|
@@ -5719,22 +5719,22 @@ var K = kn, q = ({ variant: e = "primary", size: t = "medium", text: n, iconBefo
|
|
|
5719
5719
|
"brand-yellow": "text-brand-yellow-text-big-light dark:text-brand-yellow-text-big-dark",
|
|
5720
5720
|
"brand-coral": "text-brand-coral-text-big-light dark:text-brand-coral-text-big-dark",
|
|
5721
5721
|
"brand-mint": "text-brand-mint-text-big-light dark:text-brand-mint-text-big-dark"
|
|
5722
|
-
},
|
|
5722
|
+
}, In = ({ items: e, ordered: t }) => /* @__PURE__ */ m(t ? "ol" : "ul", {
|
|
5723
5723
|
className: `flex flex-col ${t ? "list-decimal" : "list-disc"} ml-4 text-label-primary-light dark:text-label-primary-dark`,
|
|
5724
|
-
children: e.map((e, n) => /* @__PURE__ */
|
|
5724
|
+
children: e.map((e, n) => /* @__PURE__ */ h("li", { children: [/* @__PURE__ */ m(J, {
|
|
5725
5725
|
as: "span",
|
|
5726
|
-
children: /* @__PURE__ */
|
|
5727
|
-
}), e.children.length > 0 && /* @__PURE__ */
|
|
5726
|
+
children: /* @__PURE__ */ m(Ln, { text: e.content })
|
|
5727
|
+
}), e.children.length > 0 && /* @__PURE__ */ m(In, {
|
|
5728
5728
|
items: e.children,
|
|
5729
5729
|
ordered: t
|
|
5730
5730
|
})] }, n))
|
|
5731
|
-
}),
|
|
5732
|
-
function
|
|
5731
|
+
}), Ln = ({ text: e }) => /* @__PURE__ */ m(p, { children: Rn(e) });
|
|
5732
|
+
function Rn(e) {
|
|
5733
5733
|
let t = [], n = e, r = 0;
|
|
5734
5734
|
for (; n.length > 0;) {
|
|
5735
5735
|
let e = n.match(/^`([^`]+)`/);
|
|
5736
5736
|
if (e) {
|
|
5737
|
-
t.push(/* @__PURE__ */
|
|
5737
|
+
t.push(/* @__PURE__ */ m("code", {
|
|
5738
5738
|
className: "bg-background-tertiary-grouped-light dark:bg-background-tertiary-grouped-dark rounded px-1 py-0.5 text-[13px] font-code",
|
|
5739
5739
|
children: e[1]
|
|
5740
5740
|
}, r++)), n = n.slice(e[0].length);
|
|
@@ -5742,17 +5742,17 @@ function zn(e) {
|
|
|
5742
5742
|
}
|
|
5743
5743
|
let i = n.match(/^\*\*\*(.+?)\*\*\*/);
|
|
5744
5744
|
if (i) {
|
|
5745
|
-
t.push(/* @__PURE__ */
|
|
5745
|
+
t.push(/* @__PURE__ */ m("strong", { children: /* @__PURE__ */ m("em", { children: i[1] }) }, r++)), n = n.slice(i[0].length);
|
|
5746
5746
|
continue;
|
|
5747
5747
|
}
|
|
5748
5748
|
let a = n.match(/^\*\*(.+?)\*\*/);
|
|
5749
5749
|
if (a) {
|
|
5750
|
-
t.push(/* @__PURE__ */
|
|
5750
|
+
t.push(/* @__PURE__ */ m("strong", { children: a[1] }, r++)), n = n.slice(a[0].length);
|
|
5751
5751
|
continue;
|
|
5752
5752
|
}
|
|
5753
5753
|
let o = n.match(/^\*(.+?)\*/);
|
|
5754
5754
|
if (o) {
|
|
5755
|
-
t.push(/* @__PURE__ */
|
|
5755
|
+
t.push(/* @__PURE__ */ m("em", { children: o[1] }, r++)), n = n.slice(o[0].length);
|
|
5756
5756
|
continue;
|
|
5757
5757
|
}
|
|
5758
5758
|
let s = n.slice(1).search(/[`*]/);
|
|
@@ -5764,16 +5764,16 @@ function zn(e) {
|
|
|
5764
5764
|
}
|
|
5765
5765
|
return t;
|
|
5766
5766
|
}
|
|
5767
|
-
function
|
|
5767
|
+
function zn(e) {
|
|
5768
5768
|
let t = e.match(/^(\s*)/);
|
|
5769
5769
|
return t ? t[1].length : 0;
|
|
5770
5770
|
}
|
|
5771
|
-
function
|
|
5772
|
-
let r = [], i = t, a =
|
|
5771
|
+
function Bn(e, t, n) {
|
|
5772
|
+
let r = [], i = t, a = zn(e[t]), o = n === "unordered" ? /^(\s*)[-*+]\s(.*)/ : /^(\s*)\d+\.\s(.*)/;
|
|
5773
5773
|
for (; i < e.length;) {
|
|
5774
5774
|
let t = e[i];
|
|
5775
5775
|
if (t.trim() === "") {
|
|
5776
|
-
if (i + 1 < e.length && o.test(e[i + 1]) &&
|
|
5776
|
+
if (i + 1 < e.length && o.test(e[i + 1]) && zn(e[i + 1]) >= a) {
|
|
5777
5777
|
i++;
|
|
5778
5778
|
continue;
|
|
5779
5779
|
}
|
|
@@ -5784,7 +5784,7 @@ function Vn(e, t, n) {
|
|
|
5784
5784
|
let c = s[1].length;
|
|
5785
5785
|
if (c < a) break;
|
|
5786
5786
|
if (c > a) {
|
|
5787
|
-
let { items: t, endIndex: a } =
|
|
5787
|
+
let { items: t, endIndex: a } = Bn(e, i, n);
|
|
5788
5788
|
r.length > 0 && r[r.length - 1].children.push(...t), i = a;
|
|
5789
5789
|
continue;
|
|
5790
5790
|
}
|
|
@@ -5974,67 +5974,67 @@ var Y = {
|
|
|
5974
5974
|
Y.grey[5], Y.grey[990], Y.grey[10], Y.grey[950], Y.grey[50], Y.grey[900], Y.grey[50], Y.grey[990], Y.grey[5], Y.grey[950], Y.grey[10], Y.grey[900], Y.grey[10], Y.grey[900], Y.grey[50], Y.grey[900], Y.grey[100], Y.grey[800], Y["opacity-grey"][600], Y["opacity-grey"][300], Y["opacity-grey"][600], Y["opacity-grey"][300], Y["opacity-grey"][700], Y["opacity-grey"][200], Y["opacity-grey"][950], Y["opacity-grey"][990], Y.grey[1e3], Y.grey[0], Y.grey[500], Y.grey[400], Y.grey[400], Y.grey[500], Y.grey[400], Y.grey[400], Y.grey[0], Y.grey[1e3], Y.grey[100], Y.grey[700], Y["strong-blue"][600], Y["strong-blue"][300], Y["strong-blue"][400], Y["strong-blue"][500], Y["strong-blue"][600], Y["strong-blue"][600], Y["strong-blue"][50], Y["strong-blue"][950], Y["strong-blue"][950], Y["strong-blue"][50], Y.grey[100], Y.grey[700], Y.grey[1e3], Y.grey[0], Y.grey[900], Y.grey[100], Y.grey[0], Y.grey[1e3], Y.grey[100], Y.grey[700], Y["opacity-grey"][600], Y["opacity-grey"][300], Y["opacity-grey"][700], Y["opacity-grey"][200], Y["opacity-grey"][600], Y["opacity-grey"][300], Y["banana-yellow"][400], Y["banana-yellow"][400], Y["banana-yellow"][100], Y["banana-yellow"][100], Y["banana-yellow"][50], Y["banana-yellow"][50], Y["banana-yellow"][5], Y["banana-yellow"][5], Y["banana-yellow"][800], Y["banana-yellow"][400], Y["bright-coral"][400], Y["bright-coral"][400], Y["bright-coral"][100], Y["bright-coral"][100], Y["bright-coral"][50], Y["bright-coral"][50], Y["bright-coral"][5], Y["bright-coral"][5], Y["bright-coral"][600], Y["bright-coral"][400], Y["minty-blue"][400], Y["minty-blue"][400], Y["minty-blue"][100], Y["minty-blue"][100], Y["minty-blue"][50], Y["minty-blue"][50], Y["minty-blue"][5], Y["minty-blue"][5], Y["minty-blue"][800], Y["minty-blue"][400], Y.grey[300], Y.grey[600], Y.grey[50], Y.grey[900], Y.grey[100], Y.grey[800], Y.grey[100], Y.grey[700], Y.grey[10], Y.grey[900], Y.grey[5], Y.grey[990], Y.grey[0], Y.grey[1e3], Y.green[10], Y.green[800], Y.green[400], Y.green[300], Y.green[600], Y.green[75], Y.green[800], Y.green[10], Y.yellow[10], Y.yellow[800], Y.yellow[400], Y.yellow[300], Y.yellow[600], Y.yellow[75], Y.yellow[800], Y.yellow[10], Y.red[10], Y.red[800], Y.red[400], Y.red[300], Y.red[600], Y.red[75], Y.red[800], Y.red[10], Y.grey[0], Y.grey[1e3], Y.grey[10], Y.grey[950], Y.grey[100], Y.grey[900], Y.grey[300], Y.grey[800], Y.grey[400], Y.grey[700], Y.grey[600], Y.grey[600], Y.grey[700], Y.grey[400], Y.grey[800], Y.grey[300], Y.grey[900], Y.grey[100], Y.grey[950], Y.grey[10], Y.grey[1e3], Y.grey[0], Y.red[400], Y.red[300], Y.red[600], Y.red[100], Y.orange[400], Y.orange[300], Y.orange[600], Y.orange[100], Y.yellow[400], Y.yellow[300], Y.yellow[600], Y.yellow[100], Y.green[400], Y.green[300], Y.green[600], Y.green[100], Y.mint[400], Y.mint[300], Y.mint[600], Y.mint[100], Y.teal[400], Y.teal[300], Y.teal[600], Y.teal[100], Y.cyan[400], Y.cyan[300], Y.cyan[600], Y.cyan[100], Y.blue[400], Y.blue[300], Y.blue[600], Y.blue[100], Y.indigo[400], Y.indigo[300], Y.indigo[600], Y.indigo[100], Y.purple[400], Y.purple[300], Y.purple[600], Y.purple[100], Y.pink[400], Y.pink[300], Y.pink[600], Y.pink[100], Y.brown[400], Y.brown[300], Y.brown[600], Y.brown[100];
|
|
5975
5975
|
//#endregion
|
|
5976
5976
|
//#region src/forms/question-wrapper.tsx
|
|
5977
|
-
var
|
|
5978
|
-
let { t: d } =
|
|
5979
|
-
return /* @__PURE__ */
|
|
5977
|
+
var Vn = ({ title: e, icon: t, description: n, image: r, children: i, onPrevious: a, onNext: o, onQuit: s, isValid: c, hasPreviousStep: l, hasNextStep: u }) => {
|
|
5978
|
+
let { t: d } = Ze();
|
|
5979
|
+
return /* @__PURE__ */ h("div", {
|
|
5980
5980
|
className: K("grid mx-4 my-8 rounded-xl border relative", "grid-cols-1 p-4 pt-10", "md:p-8 md:gap-16 md:max-w-[960px] md:min-w-[660px]", r ? "md:grid-cols-2" : "md:grid-cols-1", "border-separator-opaque-light dark:border-separator-opaque-dark material-ultra-thick"),
|
|
5981
|
-
children: [/* @__PURE__ */
|
|
5981
|
+
children: [/* @__PURE__ */ h("div", {
|
|
5982
5982
|
className: "flex flex-col justify-between order-2 md:order-1",
|
|
5983
5983
|
children: [
|
|
5984
|
-
/* @__PURE__ */
|
|
5984
|
+
/* @__PURE__ */ h("div", {
|
|
5985
5985
|
className: "flex flex-col",
|
|
5986
|
-
children: [/* @__PURE__ */
|
|
5986
|
+
children: [/* @__PURE__ */ h("div", {
|
|
5987
5987
|
className: "flex flex-col gap-1 md:gap-2 pb-3",
|
|
5988
5988
|
children: [
|
|
5989
|
-
t && /* @__PURE__ */
|
|
5989
|
+
t && /* @__PURE__ */ m("div", {
|
|
5990
5990
|
className: K("h-8 w-8 rounded-lg overflow-hidden mb-1 md:mb-2", r ? "hidden md:block" : "block"),
|
|
5991
|
-
children: /* @__PURE__ */
|
|
5991
|
+
children: /* @__PURE__ */ m("img", {
|
|
5992
5992
|
className: "w-full h-full object-cover",
|
|
5993
5993
|
src: t,
|
|
5994
5994
|
alt: "icon"
|
|
5995
5995
|
})
|
|
5996
5996
|
}),
|
|
5997
|
-
/* @__PURE__ */
|
|
5997
|
+
/* @__PURE__ */ m(J, {
|
|
5998
5998
|
variant: "H2",
|
|
5999
5999
|
children: e
|
|
6000
6000
|
}),
|
|
6001
|
-
n && n.trim().replace(/\n{3,}/g, "\n\n").split("\n\n").map((e, t) => /* @__PURE__ */
|
|
6001
|
+
n && n.trim().replace(/\n{3,}/g, "\n\n").split("\n\n").map((e, t) => /* @__PURE__ */ m(J, {
|
|
6002
6002
|
significance: "secondary",
|
|
6003
6003
|
children: e.trim()
|
|
6004
6004
|
}, t))
|
|
6005
6005
|
]
|
|
6006
6006
|
}), i]
|
|
6007
6007
|
}),
|
|
6008
|
-
/* @__PURE__ */
|
|
6008
|
+
/* @__PURE__ */ h("div", {
|
|
6009
6009
|
className: "flex justify-end pt-4 gap-2",
|
|
6010
|
-
children: [l && /* @__PURE__ */
|
|
6010
|
+
children: [l && /* @__PURE__ */ m(q, {
|
|
6011
6011
|
variant: "subtle",
|
|
6012
6012
|
onClick: a,
|
|
6013
|
-
iconBefore: /* @__PURE__ */
|
|
6013
|
+
iconBefore: /* @__PURE__ */ m(mt, {}),
|
|
6014
6014
|
disabled: !a,
|
|
6015
6015
|
text: d("Previous")
|
|
6016
|
-
}), /* @__PURE__ */
|
|
6016
|
+
}), /* @__PURE__ */ m(q, {
|
|
6017
6017
|
variant: "subtle",
|
|
6018
6018
|
onClick: o,
|
|
6019
|
-
iconAfter: /* @__PURE__ */
|
|
6019
|
+
iconAfter: /* @__PURE__ */ m(ht, {}),
|
|
6020
6020
|
disabled: !o || !c,
|
|
6021
6021
|
text: d(u ? "Next" : "Submit")
|
|
6022
6022
|
})]
|
|
6023
6023
|
}),
|
|
6024
|
-
s && /* @__PURE__ */
|
|
6024
|
+
s && /* @__PURE__ */ m(q, {
|
|
6025
6025
|
className: "absolute -top-2 -right-2",
|
|
6026
6026
|
variant: "secondary",
|
|
6027
6027
|
size: "xsmall",
|
|
6028
6028
|
onClick: s,
|
|
6029
|
-
iconAfter: /* @__PURE__ */
|
|
6029
|
+
iconAfter: /* @__PURE__ */ m(xt, {}),
|
|
6030
6030
|
"aria-label": "quit"
|
|
6031
6031
|
})
|
|
6032
6032
|
]
|
|
6033
|
-
}), r && /* @__PURE__ */
|
|
6033
|
+
}), r && /* @__PURE__ */ m("div", {
|
|
6034
6034
|
className: "flex flex-col justify-center order-1 md:order-2",
|
|
6035
|
-
children: /* @__PURE__ */
|
|
6035
|
+
children: /* @__PURE__ */ m("div", {
|
|
6036
6036
|
className: "rounded-lg overflow-hidden mb-6 md:mb-0",
|
|
6037
|
-
children: /* @__PURE__ */
|
|
6037
|
+
children: /* @__PURE__ */ m("img", {
|
|
6038
6038
|
className: "w-full h-full object-cover aspect-video md:aspect-square",
|
|
6039
6039
|
src: r,
|
|
6040
6040
|
alt: "image"
|
|
@@ -6042,7 +6042,7 @@ var Hn = ({ title: e, icon: t, description: n, image: r, children: i, onPrevious
|
|
|
6042
6042
|
})
|
|
6043
6043
|
})]
|
|
6044
6044
|
});
|
|
6045
|
-
},
|
|
6045
|
+
}, Hn = ({ title: e, icon: t, description: n, image: r, onPrevious: i, onNext: a, onQuit: o, alternatives: s = [], onAlternativeSelect: c, selectedAlternatives: l, maxAlternatives: u, verticalAlignment: d, isValid: f, hasPreviousStep: p, hasNextStep: g }) => /* @__PURE__ */ m(Vn, {
|
|
6046
6046
|
title: e,
|
|
6047
6047
|
icon: t,
|
|
6048
6048
|
description: n,
|
|
@@ -6052,28 +6052,28 @@ var Hn = ({ title: e, icon: t, description: n, image: r, children: i, onPrevious
|
|
|
6052
6052
|
onQuit: o,
|
|
6053
6053
|
isValid: f,
|
|
6054
6054
|
hasPreviousStep: p,
|
|
6055
|
-
hasNextStep:
|
|
6056
|
-
children: /* @__PURE__ */
|
|
6055
|
+
hasNextStep: g,
|
|
6056
|
+
children: /* @__PURE__ */ m("div", {
|
|
6057
6057
|
className: "flex flex-col max-h-[272px] md:max-h-full overflow-y-auto scrollbar-thin",
|
|
6058
|
-
children: u === 1 ? /* @__PURE__ */
|
|
6058
|
+
children: u === 1 ? /* @__PURE__ */ m("div", {
|
|
6059
6059
|
className: K("flex py-3 md:py-4 gap-2 items-end md:items-start justify-end md:justify-start", d ? "flex-col" : "flex-wrap"),
|
|
6060
|
-
children: s.map((e) => /* @__PURE__ */
|
|
6060
|
+
children: s.map((e) => /* @__PURE__ */ m("div", { children: /* @__PURE__ */ h("button", {
|
|
6061
6061
|
onClick: () => c(e.id),
|
|
6062
6062
|
className: "flex md:flex-row-reverse items-center gap-2 p-3 justify-end rounded-lg border text-label-primary-light dark:text-label-primary-dark border-separator-regular-light dark:border-separator-regular-dark",
|
|
6063
|
-
children: [/* @__PURE__ */
|
|
6063
|
+
children: [/* @__PURE__ */ m(J, {
|
|
6064
6064
|
variant: "B1Button",
|
|
6065
6065
|
children: e.text
|
|
6066
|
-
}), /* @__PURE__ */
|
|
6066
|
+
}), /* @__PURE__ */ m(Un, {
|
|
6067
6067
|
size: 20,
|
|
6068
6068
|
selected: l.includes(e.id)
|
|
6069
6069
|
})]
|
|
6070
6070
|
}) }, e.id))
|
|
6071
|
-
}) : /* @__PURE__ */
|
|
6071
|
+
}) : /* @__PURE__ */ m("div", {
|
|
6072
6072
|
className: K("flex py-3 md:py-4 gap-2 justify-end md:justify-start items-end md:items-start", d ? "flex-col" : "flex-wrap"),
|
|
6073
|
-
children: s.map((e) => /* @__PURE__ */
|
|
6073
|
+
children: s.map((e) => /* @__PURE__ */ m("div", { children: /* @__PURE__ */ m("button", {
|
|
6074
6074
|
onClick: () => c(e.id),
|
|
6075
6075
|
className: K("flex items-center gap-2 p-3 justify-end rounded-lg border shrink", l.includes(e.id) ? "text-label-quaternary-light dark:text-label-quaternary-dark border-label-quaternary-light dark:border-label-quaternary-dark bg-secondary-action-button-light dark:bg-secondary-action-button-dark" : "text-label-primary-light dark:text-label-primary-dark border-separator-regular-light dark:border-separator-regular-dark"),
|
|
6076
|
-
children: /* @__PURE__ */
|
|
6076
|
+
children: /* @__PURE__ */ m(J, {
|
|
6077
6077
|
variant: "B1Button",
|
|
6078
6078
|
significance: l.includes(e.id) ? "quaternary" : "primary",
|
|
6079
6079
|
children: e.text
|
|
@@ -6081,16 +6081,16 @@ var Hn = ({ title: e, icon: t, description: n, image: r, children: i, onPrevious
|
|
|
6081
6081
|
}) }, e.id))
|
|
6082
6082
|
})
|
|
6083
6083
|
})
|
|
6084
|
-
}),
|
|
6084
|
+
}), Un = ({ size: e = 16, strokeColor: t = "currentColor", fillColor: n = "none", selected: r = !1 }) => {
|
|
6085
6085
|
let i = e + 1, a = i / 2, o = (e - 2) / 2;
|
|
6086
|
-
return /* @__PURE__ */
|
|
6086
|
+
return /* @__PURE__ */ h("svg", {
|
|
6087
6087
|
className: "shrink-0",
|
|
6088
6088
|
width: e,
|
|
6089
6089
|
height: e,
|
|
6090
6090
|
viewBox: `0 0 ${i} ${i}`,
|
|
6091
6091
|
fill: r ? n : "none",
|
|
6092
6092
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6093
|
-
children: [/* @__PURE__ */
|
|
6093
|
+
children: [/* @__PURE__ */ m("circle", {
|
|
6094
6094
|
cx: a,
|
|
6095
6095
|
cy: a,
|
|
6096
6096
|
r: o,
|
|
@@ -6098,16 +6098,16 @@ var Hn = ({ title: e, icon: t, description: n, image: r, children: i, onPrevious
|
|
|
6098
6098
|
strokeWidth: "1.5",
|
|
6099
6099
|
strokeLinecap: "round",
|
|
6100
6100
|
strokeLinejoin: "round"
|
|
6101
|
-
}), r && /* @__PURE__ */
|
|
6101
|
+
}), r && /* @__PURE__ */ m("circle", {
|
|
6102
6102
|
cx: a,
|
|
6103
6103
|
cy: a,
|
|
6104
6104
|
r: o - 3,
|
|
6105
6105
|
fill: t
|
|
6106
6106
|
})]
|
|
6107
6107
|
});
|
|
6108
|
-
},
|
|
6109
|
-
let { t: p } =
|
|
6110
|
-
return /* @__PURE__ */
|
|
6108
|
+
}, Wn = ({ title: e, icon: t, description: n, image: r, onPrevious: i, onNext: a, onQuit: o, inputText: s, setInputText: c, maxCharacters: l, isValid: u, hasPreviousStep: d, hasNextStep: f }) => {
|
|
6109
|
+
let { t: p } = Ze();
|
|
6110
|
+
return /* @__PURE__ */ m(Vn, {
|
|
6111
6111
|
title: e,
|
|
6112
6112
|
icon: t,
|
|
6113
6113
|
description: n,
|
|
@@ -6118,127 +6118,127 @@ var Hn = ({ title: e, icon: t, description: n, image: r, children: i, onPrevious
|
|
|
6118
6118
|
isValid: u,
|
|
6119
6119
|
hasPreviousStep: d,
|
|
6120
6120
|
hasNextStep: f,
|
|
6121
|
-
children: /* @__PURE__ */
|
|
6121
|
+
children: /* @__PURE__ */ h("div", {
|
|
6122
6122
|
className: "flex flex-col py-3 gap-2",
|
|
6123
|
-
children: [l && /* @__PURE__ */
|
|
6123
|
+
children: [l && /* @__PURE__ */ h("div", {
|
|
6124
6124
|
className: "flex items-center justify-between",
|
|
6125
|
-
children: [/* @__PURE__ */
|
|
6125
|
+
children: [/* @__PURE__ */ m(J, {
|
|
6126
6126
|
significance: "secondary",
|
|
6127
6127
|
children: p("Max {{maxCharacters}} characters", { maxCharacters: l })
|
|
6128
|
-
}), /* @__PURE__ */
|
|
6128
|
+
}), /* @__PURE__ */ m(J, {
|
|
6129
6129
|
significance: "secondary",
|
|
6130
6130
|
children: `${s.length}/${l}`
|
|
6131
6131
|
})]
|
|
6132
|
-
}), /* @__PURE__ */
|
|
6132
|
+
}), /* @__PURE__ */ h("div", {
|
|
6133
6133
|
className: "flex flex-col relative",
|
|
6134
|
-
children: [/* @__PURE__ */
|
|
6134
|
+
children: [/* @__PURE__ */ m(J, {
|
|
6135
6135
|
as: "div",
|
|
6136
6136
|
className: K("overflow-y-hidden whitespace-pre-wrap invisible break-words rounded-lg py-3 px-4 min-h-20 border-separator-opaque-light dark:border-separator-opaque-dark"),
|
|
6137
6137
|
children: s
|
|
6138
|
-
}), /* @__PURE__ */
|
|
6138
|
+
}), /* @__PURE__ */ m("textarea", {
|
|
6139
6139
|
id: "primary",
|
|
6140
6140
|
placeholder: p("Type your answer here"),
|
|
6141
|
-
className: K("absolute inset-0 resize-none", "overflow-hidden break-words outline-hidden resize-none material-medium", "rounded-lg py-3 px-4 min-h-20 border border-separator-opaque-light dark:border-separator-opaque-dark", "text-label-primary-light dark:text-label-primary-dark",
|
|
6141
|
+
className: K("absolute inset-0 resize-none", "overflow-hidden break-words outline-hidden resize-none material-medium", "rounded-lg py-3 px-4 min-h-20 border border-separator-opaque-light dark:border-separator-opaque-dark", "text-label-primary-light dark:text-label-primary-dark", Nn.B1),
|
|
6142
6142
|
value: s,
|
|
6143
6143
|
onChange: (e) => c(e.target.value)
|
|
6144
6144
|
})]
|
|
6145
6145
|
})]
|
|
6146
6146
|
})
|
|
6147
6147
|
});
|
|
6148
|
-
},
|
|
6148
|
+
}, Gn = ({ title: e, icon: t, description: n, image: r, children: i, wrapperClassName: a }) => /* @__PURE__ */ h("div", {
|
|
6149
6149
|
className: K("grid mx-4 my-8 rounded-xl border", "grid-cols-1 p-4 pt-10", "md:p-8 md:gap-16 md:max-w-[960px] md:min-w-[660px]", r ? "md:grid-cols-2" : "md:grid-cols-1", "border-separator-opaque-light dark:border-separator-opaque-dark material-ultra-thick", a),
|
|
6150
|
-
children: [/* @__PURE__ */
|
|
6150
|
+
children: [/* @__PURE__ */ h("div", {
|
|
6151
6151
|
className: "flex flex-col justify-between gap-6 md:gap-8 order-2 md:order-1",
|
|
6152
|
-
children: [/* @__PURE__ */
|
|
6152
|
+
children: [/* @__PURE__ */ h("div", {
|
|
6153
6153
|
className: "flex flex-col gap-6 md:gap-8",
|
|
6154
|
-
children: [/* @__PURE__ */
|
|
6154
|
+
children: [/* @__PURE__ */ h("div", {
|
|
6155
6155
|
className: "flex flex-col gap-2 md:gap-4",
|
|
6156
|
-
children: [t && /* @__PURE__ */
|
|
6156
|
+
children: [t && /* @__PURE__ */ m("div", {
|
|
6157
6157
|
className: K("h-8 w-8 rounded-lg overflow-hidden", r ? "hidden md:block" : "block"),
|
|
6158
|
-
children: /* @__PURE__ */
|
|
6158
|
+
children: /* @__PURE__ */ m("img", {
|
|
6159
6159
|
className: "w-full h-full object-cover",
|
|
6160
6160
|
src: t,
|
|
6161
6161
|
alt: "icon"
|
|
6162
6162
|
})
|
|
6163
|
-
}), /* @__PURE__ */
|
|
6163
|
+
}), /* @__PURE__ */ m(J, {
|
|
6164
6164
|
variant: "H2",
|
|
6165
6165
|
children: e
|
|
6166
6166
|
})]
|
|
6167
|
-
}), n && n.trim().replace(/\n{3,}/g, "\n\n").split("\n\n").map((e, t) => /* @__PURE__ */
|
|
6167
|
+
}), n && n.trim().replace(/\n{3,}/g, "\n\n").split("\n\n").map((e, t) => /* @__PURE__ */ m(J, { children: e.trim() }, t))]
|
|
6168
6168
|
}), i]
|
|
6169
|
-
}), r && /* @__PURE__ */
|
|
6169
|
+
}), r && /* @__PURE__ */ m("div", {
|
|
6170
6170
|
className: "flex flex-col justify-center order-1 md:order-2",
|
|
6171
|
-
children: /* @__PURE__ */
|
|
6171
|
+
children: /* @__PURE__ */ m("div", {
|
|
6172
6172
|
className: "rounded-lg overflow-hidden mb-6 md:mb-0",
|
|
6173
|
-
children: /* @__PURE__ */
|
|
6173
|
+
children: /* @__PURE__ */ m("img", {
|
|
6174
6174
|
className: "w-full h-full object-cover aspect-video md:aspect-square",
|
|
6175
6175
|
src: r,
|
|
6176
6176
|
alt: "image"
|
|
6177
6177
|
})
|
|
6178
6178
|
})
|
|
6179
6179
|
})]
|
|
6180
|
-
}),
|
|
6180
|
+
}), Kn = ({ title: e, icon: t, description: n, image: r, quitText: i, onQuit: a, externalLink: o }) => /* @__PURE__ */ h(Gn, {
|
|
6181
6181
|
title: e,
|
|
6182
6182
|
icon: t,
|
|
6183
6183
|
description: n,
|
|
6184
6184
|
image: r,
|
|
6185
|
-
children: [/* @__PURE__ */
|
|
6185
|
+
children: [/* @__PURE__ */ m("div", {
|
|
6186
6186
|
className: "flex justify-end gap-2",
|
|
6187
|
-
children: o ? /* @__PURE__ */
|
|
6187
|
+
children: o ? /* @__PURE__ */ m(q, {
|
|
6188
6188
|
variant: "secondary",
|
|
6189
6189
|
text: i,
|
|
6190
|
-
iconAfter: /* @__PURE__ */
|
|
6190
|
+
iconAfter: /* @__PURE__ */ m(ft, {}),
|
|
6191
6191
|
onClick: () => {
|
|
6192
6192
|
window.open(o, "_blank"), a();
|
|
6193
6193
|
}
|
|
6194
|
-
}) : /* @__PURE__ */
|
|
6194
|
+
}) : /* @__PURE__ */ m(q, {
|
|
6195
6195
|
variant: "secondary",
|
|
6196
6196
|
onClick: a,
|
|
6197
6197
|
text: i
|
|
6198
6198
|
})
|
|
6199
|
-
}), o && /* @__PURE__ */
|
|
6199
|
+
}), o && /* @__PURE__ */ m(q, {
|
|
6200
6200
|
className: "absolute -top-2 -right-2 md:-top-4 md:-right-4",
|
|
6201
6201
|
variant: "secondary",
|
|
6202
6202
|
size: "small",
|
|
6203
6203
|
onClick: a,
|
|
6204
|
-
iconAfter: /* @__PURE__ */
|
|
6204
|
+
iconAfter: /* @__PURE__ */ m(xt, {}),
|
|
6205
6205
|
"aria-label": "quit"
|
|
6206
6206
|
})]
|
|
6207
|
-
}),
|
|
6207
|
+
}), qn = ({ title: e, icon: t, description: n, image: r, quitText: i, onQuit: a, startText: o, onStart: s }) => /* @__PURE__ */ h(Gn, {
|
|
6208
6208
|
title: e,
|
|
6209
6209
|
icon: t,
|
|
6210
6210
|
description: n,
|
|
6211
6211
|
image: r,
|
|
6212
6212
|
wrapperClassName: "relative",
|
|
6213
|
-
children: [/* @__PURE__ */
|
|
6213
|
+
children: [/* @__PURE__ */ h("div", {
|
|
6214
6214
|
className: "flex justify-end gap-2",
|
|
6215
|
-
children: [a && i && /* @__PURE__ */
|
|
6215
|
+
children: [a && i && /* @__PURE__ */ m(q, {
|
|
6216
6216
|
variant: "subtle",
|
|
6217
6217
|
text: i,
|
|
6218
6218
|
onClick: a
|
|
6219
|
-
}), /* @__PURE__ */
|
|
6219
|
+
}), /* @__PURE__ */ m(q, {
|
|
6220
6220
|
variant: "secondary",
|
|
6221
6221
|
text: o,
|
|
6222
6222
|
onClick: s
|
|
6223
6223
|
})]
|
|
6224
|
-
}), a && /* @__PURE__ */
|
|
6224
|
+
}), a && /* @__PURE__ */ m(q, {
|
|
6225
6225
|
className: "absolute -top-2 -right-2",
|
|
6226
6226
|
variant: "secondary",
|
|
6227
6227
|
size: "xsmall",
|
|
6228
6228
|
onClick: a,
|
|
6229
|
-
iconAfter: /* @__PURE__ */
|
|
6229
|
+
iconAfter: /* @__PURE__ */ m(xt, {}),
|
|
6230
6230
|
"aria-label": "quit"
|
|
6231
6231
|
})]
|
|
6232
|
-
}),
|
|
6233
|
-
function
|
|
6234
|
-
return
|
|
6232
|
+
}), Jn = {};
|
|
6233
|
+
function Yn() {
|
|
6234
|
+
return Jn;
|
|
6235
6235
|
}
|
|
6236
|
-
function
|
|
6237
|
-
|
|
6236
|
+
function Xn(e) {
|
|
6237
|
+
Jn = e;
|
|
6238
6238
|
}
|
|
6239
6239
|
//#endregion
|
|
6240
6240
|
//#region ../node_modules/date-fns/locale/en-US/_lib/formatDistance.js
|
|
6241
|
-
var
|
|
6241
|
+
var Zn = {
|
|
6242
6242
|
lessThanXSeconds: {
|
|
6243
6243
|
one: "less than a second",
|
|
6244
6244
|
other: "less than {{count}} seconds"
|
|
@@ -6300,13 +6300,13 @@ var Qn = {
|
|
|
6300
6300
|
one: "almost 1 year",
|
|
6301
6301
|
other: "almost {{count}} years"
|
|
6302
6302
|
}
|
|
6303
|
-
},
|
|
6304
|
-
let r, i =
|
|
6303
|
+
}, Qn = (e, t, n) => {
|
|
6304
|
+
let r, i = Zn[e];
|
|
6305
6305
|
return r = typeof i == "string" ? i : t === 1 ? i.one : i.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
6306
6306
|
};
|
|
6307
6307
|
//#endregion
|
|
6308
6308
|
//#region ../node_modules/date-fns/locale/_lib/buildFormatLongFn.js
|
|
6309
|
-
function
|
|
6309
|
+
function $n(e) {
|
|
6310
6310
|
return (t = {}) => {
|
|
6311
6311
|
let n = t.width ? String(t.width) : e.defaultWidth;
|
|
6312
6312
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
@@ -6314,14 +6314,14 @@ function er(e) {
|
|
|
6314
6314
|
}
|
|
6315
6315
|
//#endregion
|
|
6316
6316
|
//#region ../node_modules/date-fns/locale/en-US/_lib/formatRelative.js
|
|
6317
|
-
var
|
|
6317
|
+
var er = {
|
|
6318
6318
|
lastWeek: "'last' eeee 'at' p",
|
|
6319
6319
|
yesterday: "'yesterday at' p",
|
|
6320
6320
|
today: "'today at' p",
|
|
6321
6321
|
tomorrow: "'tomorrow at' p",
|
|
6322
6322
|
nextWeek: "eeee 'at' p",
|
|
6323
6323
|
other: "P"
|
|
6324
|
-
},
|
|
6324
|
+
}, tr = (e, t, n, r) => er[e];
|
|
6325
6325
|
//#endregion
|
|
6326
6326
|
//#region ../node_modules/date-fns/locale/_lib/buildLocalizeFn.js
|
|
6327
6327
|
function X(e) {
|
|
@@ -6338,7 +6338,7 @@ function X(e) {
|
|
|
6338
6338
|
return i[a];
|
|
6339
6339
|
};
|
|
6340
6340
|
}
|
|
6341
|
-
var
|
|
6341
|
+
var nr = {
|
|
6342
6342
|
ordinalNumber: (e, t) => {
|
|
6343
6343
|
let n = Number(e), r = n % 100;
|
|
6344
6344
|
if (r > 20 || r < 10) switch (r % 10) {
|
|
@@ -6543,7 +6543,7 @@ function Z(e) {
|
|
|
6543
6543
|
return (t, n = {}) => {
|
|
6544
6544
|
let r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(i);
|
|
6545
6545
|
if (!a) return null;
|
|
6546
|
-
let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ?
|
|
6546
|
+
let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? ir(s, (e) => e.test(o)) : rr(s, (e) => e.test(o)), l;
|
|
6547
6547
|
l = e.valueCallback ? e.valueCallback(c) : c, l = n.valueCallback ? n.valueCallback(l) : l;
|
|
6548
6548
|
let u = t.slice(o.length);
|
|
6549
6549
|
return {
|
|
@@ -6552,15 +6552,15 @@ function Z(e) {
|
|
|
6552
6552
|
};
|
|
6553
6553
|
};
|
|
6554
6554
|
}
|
|
6555
|
-
function
|
|
6555
|
+
function rr(e, t) {
|
|
6556
6556
|
for (let n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) return n;
|
|
6557
6557
|
}
|
|
6558
|
-
function
|
|
6558
|
+
function ir(e, t) {
|
|
6559
6559
|
for (let n = 0; n < e.length; n++) if (t(e[n])) return n;
|
|
6560
6560
|
}
|
|
6561
6561
|
//#endregion
|
|
6562
6562
|
//#region ../node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
|
|
6563
|
-
function
|
|
6563
|
+
function ar(e) {
|
|
6564
6564
|
return (t, n = {}) => {
|
|
6565
6565
|
let r = t.match(e.matchPattern);
|
|
6566
6566
|
if (!r) return null;
|
|
@@ -6575,8 +6575,8 @@ function or(e) {
|
|
|
6575
6575
|
};
|
|
6576
6576
|
};
|
|
6577
6577
|
}
|
|
6578
|
-
var
|
|
6579
|
-
ordinalNumber:
|
|
6578
|
+
var or = {
|
|
6579
|
+
ordinalNumber: ar({
|
|
6580
6580
|
matchPattern: /^(\d+)(th|st|nd|rd)?/i,
|
|
6581
6581
|
parsePattern: /\d+/i,
|
|
6582
6582
|
valueCallback: (e) => parseInt(e, 10)
|
|
@@ -6697,19 +6697,19 @@ var sr = {
|
|
|
6697
6697
|
};
|
|
6698
6698
|
//#endregion
|
|
6699
6699
|
//#region ../node_modules/date-fns/setDefaultOptions.js
|
|
6700
|
-
function
|
|
6701
|
-
let t = {}, n =
|
|
6700
|
+
function sr(e) {
|
|
6701
|
+
let t = {}, n = Yn();
|
|
6702
6702
|
for (let e in n) Object.prototype.hasOwnProperty.call(n, e) && (t[e] = n[e]);
|
|
6703
6703
|
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (e[n] === void 0 ? delete t[n] : t[n] = e[n]);
|
|
6704
|
-
|
|
6704
|
+
Xn(t);
|
|
6705
6705
|
}
|
|
6706
6706
|
//#endregion
|
|
6707
6707
|
//#region ../node_modules/date-fns/locale/en-GB.js
|
|
6708
|
-
var
|
|
6708
|
+
var cr = {
|
|
6709
6709
|
code: "en-GB",
|
|
6710
|
-
formatDistance:
|
|
6710
|
+
formatDistance: Qn,
|
|
6711
6711
|
formatLong: {
|
|
6712
|
-
date:
|
|
6712
|
+
date: $n({
|
|
6713
6713
|
formats: {
|
|
6714
6714
|
full: "EEEE, d MMMM yyyy",
|
|
6715
6715
|
long: "d MMMM yyyy",
|
|
@@ -6718,7 +6718,7 @@ var lr = {
|
|
|
6718
6718
|
},
|
|
6719
6719
|
defaultWidth: "full"
|
|
6720
6720
|
}),
|
|
6721
|
-
time:
|
|
6721
|
+
time: $n({
|
|
6722
6722
|
formats: {
|
|
6723
6723
|
full: "HH:mm:ss zzzz",
|
|
6724
6724
|
long: "HH:mm:ss z",
|
|
@@ -6727,7 +6727,7 @@ var lr = {
|
|
|
6727
6727
|
},
|
|
6728
6728
|
defaultWidth: "full"
|
|
6729
6729
|
}),
|
|
6730
|
-
dateTime:
|
|
6730
|
+
dateTime: $n({
|
|
6731
6731
|
formats: {
|
|
6732
6732
|
full: "{{date}} 'at' {{time}}",
|
|
6733
6733
|
long: "{{date}} 'at' {{time}}",
|
|
@@ -6737,20 +6737,20 @@ var lr = {
|
|
|
6737
6737
|
defaultWidth: "full"
|
|
6738
6738
|
})
|
|
6739
6739
|
},
|
|
6740
|
-
formatRelative:
|
|
6741
|
-
localize:
|
|
6742
|
-
match:
|
|
6740
|
+
formatRelative: tr,
|
|
6741
|
+
localize: nr,
|
|
6742
|
+
match: or,
|
|
6743
6743
|
options: {
|
|
6744
6744
|
weekStartsOn: 1,
|
|
6745
6745
|
firstWeekContainsDate: 4
|
|
6746
6746
|
}
|
|
6747
|
-
}, { slice:
|
|
6748
|
-
function
|
|
6749
|
-
return
|
|
6747
|
+
}, { slice: lr, forEach: ur } = [];
|
|
6748
|
+
function dr(e) {
|
|
6749
|
+
return ur.call(lr.call(arguments, 1), (t) => {
|
|
6750
6750
|
if (t) for (let n in t) e[n] === void 0 && (e[n] = t[n]);
|
|
6751
6751
|
}), e;
|
|
6752
6752
|
}
|
|
6753
|
-
function
|
|
6753
|
+
function fr(e) {
|
|
6754
6754
|
return typeof e == "string" ? [
|
|
6755
6755
|
/<\s*script.*?>/i,
|
|
6756
6756
|
/<\s*\/\s*script\s*>/i,
|
|
@@ -6767,7 +6767,7 @@ function pr(e) {
|
|
|
6767
6767
|
/innerHTML/i
|
|
6768
6768
|
].some((t) => t.test(e)) : !1;
|
|
6769
6769
|
}
|
|
6770
|
-
var
|
|
6770
|
+
var pr = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, mr = function(e, t) {
|
|
6771
6771
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { path: "/" }, r = `${e}=${encodeURIComponent(t)}`;
|
|
6772
6772
|
if (n.maxAge > 0) {
|
|
6773
6773
|
let e = n.maxAge - 0;
|
|
@@ -6775,11 +6775,11 @@ var mr = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, hr = function(e, t) {
|
|
|
6775
6775
|
r += `; Max-Age=${Math.floor(e)}`;
|
|
6776
6776
|
}
|
|
6777
6777
|
if (n.domain) {
|
|
6778
|
-
if (!
|
|
6778
|
+
if (!pr.test(n.domain)) throw TypeError("option domain is invalid");
|
|
6779
6779
|
r += `; Domain=${n.domain}`;
|
|
6780
6780
|
}
|
|
6781
6781
|
if (n.path) {
|
|
6782
|
-
if (!
|
|
6782
|
+
if (!pr.test(n.path)) throw TypeError("option path is invalid");
|
|
6783
6783
|
r += `; Path=${n.path}`;
|
|
6784
6784
|
}
|
|
6785
6785
|
if (n.expires) {
|
|
@@ -6802,13 +6802,13 @@ var mr = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, hr = function(e, t) {
|
|
|
6802
6802
|
default: throw TypeError("option sameSite is invalid");
|
|
6803
6803
|
}
|
|
6804
6804
|
return n.partitioned && (r += "; Partitioned"), r;
|
|
6805
|
-
},
|
|
6805
|
+
}, hr = {
|
|
6806
6806
|
create(e, t, n, r) {
|
|
6807
6807
|
let i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
6808
6808
|
path: "/",
|
|
6809
6809
|
sameSite: "strict"
|
|
6810
6810
|
};
|
|
6811
|
-
n && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + n * 60 * 1e3)), r && (i.domain = r), document.cookie =
|
|
6811
|
+
n && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + n * 60 * 1e3)), r && (i.domain = r), document.cookie = mr(e, t, i);
|
|
6812
6812
|
},
|
|
6813
6813
|
read(e) {
|
|
6814
6814
|
let t = `${e}=`, n = document.cookie.split(";");
|
|
@@ -6822,17 +6822,17 @@ var mr = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, hr = function(e, t) {
|
|
|
6822
6822
|
remove(e, t) {
|
|
6823
6823
|
this.create(e, "", -1, t);
|
|
6824
6824
|
}
|
|
6825
|
-
},
|
|
6825
|
+
}, gr = {
|
|
6826
6826
|
name: "cookie",
|
|
6827
6827
|
lookup(e) {
|
|
6828
6828
|
let { lookupCookie: t } = e;
|
|
6829
|
-
if (t && typeof document < "u") return
|
|
6829
|
+
if (t && typeof document < "u") return hr.read(t) || void 0;
|
|
6830
6830
|
},
|
|
6831
6831
|
cacheUserLanguage(e, t) {
|
|
6832
6832
|
let { lookupCookie: n, cookieMinutes: r, cookieDomain: i, cookieOptions: a } = t;
|
|
6833
|
-
n && typeof document < "u" &&
|
|
6833
|
+
n && typeof document < "u" && hr.create(n, e, r, i, a);
|
|
6834
6834
|
}
|
|
6835
|
-
},
|
|
6835
|
+
}, _r = {
|
|
6836
6836
|
name: "querystring",
|
|
6837
6837
|
lookup(e) {
|
|
6838
6838
|
let { lookupQuerystring: t } = e, n;
|
|
@@ -6847,7 +6847,7 @@ var mr = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, hr = function(e, t) {
|
|
|
6847
6847
|
}
|
|
6848
6848
|
return n;
|
|
6849
6849
|
}
|
|
6850
|
-
},
|
|
6850
|
+
}, vr = {
|
|
6851
6851
|
name: "hash",
|
|
6852
6852
|
lookup(e) {
|
|
6853
6853
|
let { lookupHash: t, lookupFromHashIndex: n } = e, r;
|
|
@@ -6871,7 +6871,7 @@ var mr = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, hr = function(e, t) {
|
|
|
6871
6871
|
}
|
|
6872
6872
|
return r;
|
|
6873
6873
|
}
|
|
6874
|
-
}, Q = null,
|
|
6874
|
+
}, Q = null, yr = () => {
|
|
6875
6875
|
if (Q !== null) return Q;
|
|
6876
6876
|
try {
|
|
6877
6877
|
if (Q = typeof window < "u" && window.localStorage !== null, !Q) return !1;
|
|
@@ -6881,17 +6881,17 @@ var mr = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, hr = function(e, t) {
|
|
|
6881
6881
|
Q = !1;
|
|
6882
6882
|
}
|
|
6883
6883
|
return Q;
|
|
6884
|
-
},
|
|
6884
|
+
}, br = {
|
|
6885
6885
|
name: "localStorage",
|
|
6886
6886
|
lookup(e) {
|
|
6887
6887
|
let { lookupLocalStorage: t } = e;
|
|
6888
|
-
if (t &&
|
|
6888
|
+
if (t && yr()) return window.localStorage.getItem(t) || void 0;
|
|
6889
6889
|
},
|
|
6890
6890
|
cacheUserLanguage(e, t) {
|
|
6891
6891
|
let { lookupLocalStorage: n } = t;
|
|
6892
|
-
n &&
|
|
6892
|
+
n && yr() && window.localStorage.setItem(n, e);
|
|
6893
6893
|
}
|
|
6894
|
-
}, $ = null,
|
|
6894
|
+
}, $ = null, xr = () => {
|
|
6895
6895
|
if ($ !== null) return $;
|
|
6896
6896
|
try {
|
|
6897
6897
|
if ($ = typeof window < "u" && window.sessionStorage !== null, !$) return !1;
|
|
@@ -6901,17 +6901,17 @@ var mr = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, hr = function(e, t) {
|
|
|
6901
6901
|
$ = !1;
|
|
6902
6902
|
}
|
|
6903
6903
|
return $;
|
|
6904
|
-
},
|
|
6904
|
+
}, Sr = {
|
|
6905
6905
|
name: "sessionStorage",
|
|
6906
6906
|
lookup(e) {
|
|
6907
6907
|
let { lookupSessionStorage: t } = e;
|
|
6908
|
-
if (t &&
|
|
6908
|
+
if (t && xr()) return window.sessionStorage.getItem(t) || void 0;
|
|
6909
6909
|
},
|
|
6910
6910
|
cacheUserLanguage(e, t) {
|
|
6911
6911
|
let { lookupSessionStorage: n } = t;
|
|
6912
|
-
n &&
|
|
6912
|
+
n && xr() && window.sessionStorage.setItem(n, e);
|
|
6913
6913
|
}
|
|
6914
|
-
},
|
|
6914
|
+
}, Cr = {
|
|
6915
6915
|
name: "navigator",
|
|
6916
6916
|
lookup(e) {
|
|
6917
6917
|
let t = [];
|
|
@@ -6922,13 +6922,13 @@ var mr = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, hr = function(e, t) {
|
|
|
6922
6922
|
}
|
|
6923
6923
|
return t.length > 0 ? t : void 0;
|
|
6924
6924
|
}
|
|
6925
|
-
},
|
|
6925
|
+
}, wr = {
|
|
6926
6926
|
name: "htmlTag",
|
|
6927
6927
|
lookup(e) {
|
|
6928
6928
|
let { htmlTag: t } = e, n, r = t || (typeof document < "u" ? document.documentElement : null);
|
|
6929
6929
|
return r && typeof r.getAttribute == "function" && (n = r.getAttribute("lang")), n;
|
|
6930
6930
|
}
|
|
6931
|
-
},
|
|
6931
|
+
}, Tr = {
|
|
6932
6932
|
name: "path",
|
|
6933
6933
|
lookup(e) {
|
|
6934
6934
|
let { lookupFromPathIndex: t } = e;
|
|
@@ -6936,17 +6936,17 @@ var mr = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, hr = function(e, t) {
|
|
|
6936
6936
|
let n = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
|
|
6937
6937
|
if (Array.isArray(n)) return n[typeof t == "number" ? t : 0]?.replace("/", "");
|
|
6938
6938
|
}
|
|
6939
|
-
},
|
|
6939
|
+
}, Er = {
|
|
6940
6940
|
name: "subdomain",
|
|
6941
6941
|
lookup(e) {
|
|
6942
6942
|
let { lookupFromSubdomainIndex: t } = e, n = typeof t == "number" ? t + 1 : 1, r = typeof window < "u" && window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);
|
|
6943
6943
|
if (r) return r[n];
|
|
6944
6944
|
}
|
|
6945
|
-
},
|
|
6945
|
+
}, Dr = !1;
|
|
6946
6946
|
try {
|
|
6947
|
-
document.cookie,
|
|
6947
|
+
document.cookie, Dr = !0;
|
|
6948
6948
|
} catch {}
|
|
6949
|
-
var
|
|
6949
|
+
var Or = [
|
|
6950
6950
|
"querystring",
|
|
6951
6951
|
"cookie",
|
|
6952
6952
|
"localStorage",
|
|
@@ -6954,9 +6954,9 @@ var kr = [
|
|
|
6954
6954
|
"navigator",
|
|
6955
6955
|
"htmlTag"
|
|
6956
6956
|
];
|
|
6957
|
-
|
|
6958
|
-
var
|
|
6959
|
-
order:
|
|
6957
|
+
Dr || Or.splice(1, 1);
|
|
6958
|
+
var kr = () => ({
|
|
6959
|
+
order: Or,
|
|
6960
6960
|
lookupQuerystring: "lng",
|
|
6961
6961
|
lookupCookie: "i18next",
|
|
6962
6962
|
lookupLocalStorage: "i18nextLng",
|
|
@@ -6964,14 +6964,14 @@ var Ar = () => ({
|
|
|
6964
6964
|
caches: ["localStorage"],
|
|
6965
6965
|
excludeCacheFor: ["cimode"],
|
|
6966
6966
|
convertDetectedLanguage: (e) => e
|
|
6967
|
-
}),
|
|
6967
|
+
}), Ar = class {
|
|
6968
6968
|
constructor(e) {
|
|
6969
6969
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6970
6970
|
this.type = "languageDetector", this.detectors = {}, this.init(e, t);
|
|
6971
6971
|
}
|
|
6972
6972
|
init() {
|
|
6973
6973
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { languageUtils: {} }, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
6974
|
-
this.services = e, this.options =
|
|
6974
|
+
this.services = e, this.options = dr(t, this.options || {}, kr()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (e) => e.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = n, this.addDetector(gr), this.addDetector(_r), this.addDetector(br), this.addDetector(Sr), this.addDetector(Cr), this.addDetector(wr), this.addDetector(Tr), this.addDetector(Er), this.addDetector(vr);
|
|
6975
6975
|
}
|
|
6976
6976
|
addDetector(e) {
|
|
6977
6977
|
return this.detectors[e.name] = e, this;
|
|
@@ -6983,7 +6983,7 @@ var Ar = () => ({
|
|
|
6983
6983
|
let n = this.detectors[e].lookup(this.options);
|
|
6984
6984
|
n && typeof n == "string" && (n = [n]), n && (t = t.concat(n));
|
|
6985
6985
|
}
|
|
6986
|
-
}), t = t.filter((e) => e != null && !
|
|
6986
|
+
}), t = t.filter((e) => e != null && !fr(e)).map((e) => this.options.convertDetectedLanguage(e)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? t : t.length > 0 ? t[0] : null;
|
|
6987
6987
|
}
|
|
6988
6988
|
cacheUserLanguage(e) {
|
|
6989
6989
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.caches;
|
|
@@ -6992,7 +6992,7 @@ var Ar = () => ({
|
|
|
6992
6992
|
}));
|
|
6993
6993
|
}
|
|
6994
6994
|
};
|
|
6995
|
-
|
|
6995
|
+
Ar.type = "languageDetector", sr({ locale: cr }), z.use(Ar).use(Ke).init({
|
|
6996
6996
|
debug: e.debug,
|
|
6997
6997
|
fallbackLng: "en",
|
|
6998
6998
|
interpolation: { escapeValue: !1 },
|
|
@@ -7008,30 +7008,31 @@ jr.type = "languageDetector", cr({ locale: lr }), R.use(jr).use(Je).init({
|
|
|
7008
7008
|
nb: { tranlation: {} }
|
|
7009
7009
|
}
|
|
7010
7010
|
});
|
|
7011
|
-
var
|
|
7011
|
+
var jr = z, Mr = class extends Error {
|
|
7012
7012
|
errorType;
|
|
7013
7013
|
constructor(e, t) {
|
|
7014
7014
|
super(t), this.name = "FormError", this.errorType = e;
|
|
7015
7015
|
}
|
|
7016
|
-
},
|
|
7016
|
+
}, Nr = /* @__PURE__ */ v({ FormManager: () => Pr }), Pr = class {
|
|
7017
7017
|
logger;
|
|
7018
7018
|
headers;
|
|
7019
|
+
http;
|
|
7019
7020
|
config;
|
|
7020
|
-
constructor(e, t, n = {}) {
|
|
7021
|
-
this.logger = e, this.headers = t, this.config =
|
|
7021
|
+
constructor(e, t, n, r = {}) {
|
|
7022
|
+
this.logger = e, this.headers = t, this.http = n, this.config = r;
|
|
7022
7023
|
}
|
|
7023
|
-
async fetchAndDisplayForm(e,
|
|
7024
|
+
async fetchAndDisplayForm(e, t, n) {
|
|
7024
7025
|
this.logger.debug(`Fetching form config for: ${e}`);
|
|
7025
7026
|
try {
|
|
7026
|
-
let
|
|
7027
|
-
if (!
|
|
7028
|
-
let e = new
|
|
7027
|
+
let r = await this.http.get(`/external/forms/${e}`, { headers: this.headers });
|
|
7028
|
+
if (!r.ok && this.config.onFormError) {
|
|
7029
|
+
let e = new Mr("FETCH_ERROR", r.error?.message);
|
|
7029
7030
|
this.config.onFormError(e);
|
|
7030
7031
|
}
|
|
7031
|
-
|
|
7032
|
+
r.ok && r.data ? (this.logger.info(`Form config loaded for: ${e}`, r.data), this.displayForm(r.data, t, n)) : this.logger.warn(`No form config found for: ${e}`);
|
|
7032
7033
|
} catch (t) {
|
|
7033
7034
|
if (this.logger.error(`Failed to fetch form config for: ${e}`, t), this.config.onFormError) {
|
|
7034
|
-
let e = new
|
|
7035
|
+
let e = new Mr("FETCH_ERROR");
|
|
7035
7036
|
this.config.onFormError(e);
|
|
7036
7037
|
}
|
|
7037
7038
|
}
|
|
@@ -7039,28 +7040,28 @@ var Mr = R, Nr = class extends Error {
|
|
|
7039
7040
|
displayForm(e, t, n) {
|
|
7040
7041
|
let r = document.createElement("div");
|
|
7041
7042
|
r.id = "nm", document.body.appendChild(r);
|
|
7042
|
-
let
|
|
7043
|
+
let a = g(r), o = i(Qe, { i18n: jr }, i(et, {
|
|
7043
7044
|
form: e,
|
|
7044
7045
|
onDismiss: async (e) => {
|
|
7045
|
-
await t(),
|
|
7046
|
+
await t(), a.unmount(), r.remove(), this.logger.info("Form dismissed", e);
|
|
7046
7047
|
},
|
|
7047
7048
|
onComplete: async (t) => {
|
|
7048
|
-
await n(), await this.postFormResponse(e, t),
|
|
7049
|
+
await n(), await this.postFormResponse(e, t), a.unmount(), r.remove(), this.logger.info("Form completed", t);
|
|
7049
7050
|
},
|
|
7050
7051
|
zIndex: this.config.zIndex
|
|
7051
7052
|
}));
|
|
7052
|
-
|
|
7053
|
+
a.render(o);
|
|
7053
7054
|
}
|
|
7054
|
-
async postFormResponse(e,
|
|
7055
|
-
this.logger.info("Posting form response",
|
|
7056
|
-
let
|
|
7057
|
-
if (!
|
|
7058
|
-
let e = new
|
|
7055
|
+
async postFormResponse(e, t) {
|
|
7056
|
+
this.logger.info("Posting form response", t);
|
|
7057
|
+
let n = await this.http.post(`/external/forms/${e.slug}`, t, { headers: this.headers });
|
|
7058
|
+
if (!n.ok && this.config.onFormError) {
|
|
7059
|
+
let e = new Mr("SUBMISSION_ERROR", n.error?.message);
|
|
7059
7060
|
this.config.onFormError(e);
|
|
7060
|
-
} else this.logger.info("Form response posted",
|
|
7061
|
+
} else this.logger.info("Form response posted", n.data);
|
|
7061
7062
|
}
|
|
7062
7063
|
};
|
|
7063
7064
|
//#endregion
|
|
7064
|
-
export {
|
|
7065
|
+
export { Nr as n, Mr as r, Pr as t };
|
|
7065
7066
|
|
|
7066
|
-
//# sourceMappingURL=form-manager-
|
|
7067
|
+
//# sourceMappingURL=form-manager-B6ielB39.js.map
|