@nemme/js-sdk 0.9.4 → 1.0.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-BYPXJmEU.js +2 -0
- package/dist/chunks/client-BYPXJmEU.js.map +1 -0
- package/dist/chunks/{client-DSNW6X_M.js → client-D6k2IoC6.js} +241 -48
- package/dist/chunks/client-D6k2IoC6.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-3PwpV6gK.js +12 -0
- package/dist/chunks/form-manager-3PwpV6gK.js.map +1 -0
- package/dist/chunks/{form-manager-UhU4AnMM.js → form-manager-BqtPAs-A.js} +658 -656
- package/dist/chunks/form-manager-BqtPAs-A.js.map +1 -0
- 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/question-text/question-text.d.ts +1 -0
- 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/dist/types/forms.d.ts +2 -0
- 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/form-manager-BsBsY3Hj.js.map +0 -1
- package/dist/chunks/form-manager-UhU4AnMM.js.map +0 -1
- 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, customPlaceholder: h, placeholder: g } = e, _ = n.responses[e.id] || "", v = (f && d ? _.length <= d : !0) && (p ? _.length > 0 : !0);
|
|
1499
|
+
return /* @__PURE__ */ m(Wn, {
|
|
1500
1500
|
title: s,
|
|
1501
1501
|
icon: t.icon,
|
|
1502
1502
|
description: l,
|
|
@@ -1505,36 +1505,37 @@ 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
|
-
|
|
1508
|
+
placeholder: h && g ? g : void 0,
|
|
1509
|
+
inputText: _,
|
|
1509
1510
|
setInputText: (t) => {
|
|
1510
1511
|
f && d && t.length > d || o(e.id, t);
|
|
1511
1512
|
},
|
|
1512
|
-
isValid:
|
|
1513
|
+
isValid: v,
|
|
1513
1514
|
hasPreviousStep: c.hasPreviousStep,
|
|
1514
1515
|
hasNextStep: c.hasNextStep
|
|
1515
1516
|
});
|
|
1516
1517
|
}
|
|
1517
1518
|
}
|
|
1518
1519
|
return null;
|
|
1519
|
-
},
|
|
1520
|
-
let i = +!!e.startTransition + e.questions.length + +!!e.endTransition - 1, [a,
|
|
1520
|
+
}, et = ({ form: e, onDismiss: t, onComplete: n, zIndex: r = 100 }) => {
|
|
1521
|
+
let i = +!!e.startTransition + e.questions.length + +!!e.endTransition - 1, [a, s] = d({
|
|
1521
1522
|
responses: {},
|
|
1522
1523
|
currentStep: 0,
|
|
1523
1524
|
startedAt: /* @__PURE__ */ new Date()
|
|
1524
|
-
}), c =
|
|
1525
|
-
|
|
1525
|
+
}), c = o((e, t) => {
|
|
1526
|
+
s((n) => ({
|
|
1526
1527
|
...n,
|
|
1527
1528
|
responses: {
|
|
1528
1529
|
...n.responses,
|
|
1529
1530
|
[e]: t
|
|
1530
1531
|
}
|
|
1531
1532
|
}));
|
|
1532
|
-
}, []), l =
|
|
1533
|
-
|
|
1533
|
+
}, []), l = o((e) => {
|
|
1534
|
+
s((t) => ({
|
|
1534
1535
|
...t,
|
|
1535
1536
|
currentStep: e
|
|
1536
1537
|
}));
|
|
1537
|
-
}, []), u =
|
|
1538
|
+
}, []), u = o(() => {
|
|
1538
1539
|
a.currentStep < i ? l(a.currentStep + 1) : n({
|
|
1539
1540
|
...a,
|
|
1540
1541
|
completedAt: /* @__PURE__ */ new Date()
|
|
@@ -1544,131 +1545,131 @@ var tt = ({ step: e, form: t, formState: n, onDismiss: r, onNextStep: i, onPrevi
|
|
|
1544
1545
|
i,
|
|
1545
1546
|
l,
|
|
1546
1547
|
n
|
|
1547
|
-
]),
|
|
1548
|
+
]), f = o(() => {
|
|
1548
1549
|
a.currentStep > 0 && l(a.currentStep - 1);
|
|
1549
1550
|
}, [a.currentStep, l]);
|
|
1550
|
-
return /* @__PURE__ */
|
|
1551
|
+
return /* @__PURE__ */ m("div", {
|
|
1551
1552
|
className: "flex flex-col justify-center items-center fixed inset-0 bg-overlay-background-default-light dark:bg-overlay-background-default-dark",
|
|
1552
1553
|
style: { zIndex: r },
|
|
1553
|
-
children: /* @__PURE__ */
|
|
1554
|
+
children: /* @__PURE__ */ m($e, {
|
|
1554
1555
|
step: a.currentStep,
|
|
1555
1556
|
form: e,
|
|
1556
1557
|
formState: a,
|
|
1557
1558
|
onDismiss: t,
|
|
1558
1559
|
onNextStep: u,
|
|
1559
|
-
onPreviousStep:
|
|
1560
|
+
onPreviousStep: f,
|
|
1560
1561
|
onUpdateResponse: c
|
|
1561
1562
|
})
|
|
1562
1563
|
});
|
|
1563
|
-
},
|
|
1564
|
-
["bold", /* @__PURE__ */
|
|
1565
|
-
["duotone", /* @__PURE__ */
|
|
1564
|
+
}, tt = /* @__PURE__ */ new Map([
|
|
1565
|
+
["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" }))],
|
|
1566
|
+
["duotone", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", {
|
|
1566
1567
|
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
1568
|
opacity: "0.2"
|
|
1568
|
-
}), /* @__PURE__ */
|
|
1569
|
-
["fill", /* @__PURE__ */
|
|
1570
|
-
["light", /* @__PURE__ */
|
|
1571
|
-
["regular", /* @__PURE__ */
|
|
1572
|
-
["thin", /* @__PURE__ */
|
|
1573
|
-
]),
|
|
1574
|
-
["bold", /* @__PURE__ */
|
|
1575
|
-
["duotone", /* @__PURE__ */
|
|
1569
|
+
}), /* @__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" }))],
|
|
1570
|
+
["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" }))],
|
|
1571
|
+
["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" }))],
|
|
1572
|
+
["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" }))],
|
|
1573
|
+
["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" }))]
|
|
1574
|
+
]), nt = /* @__PURE__ */ new Map([
|
|
1575
|
+
["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" }))],
|
|
1576
|
+
["duotone", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", {
|
|
1576
1577
|
d: "M208,96l-80,80L48,96Z",
|
|
1577
1578
|
opacity: "0.2"
|
|
1578
|
-
}), /* @__PURE__ */
|
|
1579
|
-
["fill", /* @__PURE__ */
|
|
1580
|
-
["light", /* @__PURE__ */
|
|
1581
|
-
["regular", /* @__PURE__ */
|
|
1582
|
-
["thin", /* @__PURE__ */
|
|
1583
|
-
]),
|
|
1584
|
-
["bold", /* @__PURE__ */
|
|
1585
|
-
["duotone", /* @__PURE__ */
|
|
1579
|
+
}), /* @__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" }))],
|
|
1580
|
+
["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" }))],
|
|
1581
|
+
["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" }))],
|
|
1582
|
+
["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" }))],
|
|
1583
|
+
["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" }))]
|
|
1584
|
+
]), rt = /* @__PURE__ */ new Map([
|
|
1585
|
+
["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" }))],
|
|
1586
|
+
["duotone", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", {
|
|
1586
1587
|
d: "M160,48V208L80,128Z",
|
|
1587
1588
|
opacity: "0.2"
|
|
1588
|
-
}), /* @__PURE__ */
|
|
1589
|
-
["fill", /* @__PURE__ */
|
|
1590
|
-
["light", /* @__PURE__ */
|
|
1591
|
-
["regular", /* @__PURE__ */
|
|
1592
|
-
["thin", /* @__PURE__ */
|
|
1593
|
-
]),
|
|
1594
|
-
["bold", /* @__PURE__ */
|
|
1595
|
-
["duotone", /* @__PURE__ */
|
|
1589
|
+
}), /* @__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" }))],
|
|
1590
|
+
["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" }))],
|
|
1591
|
+
["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" }))],
|
|
1592
|
+
["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" }))],
|
|
1593
|
+
["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" }))]
|
|
1594
|
+
]), it = /* @__PURE__ */ new Map([
|
|
1595
|
+
["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" }))],
|
|
1596
|
+
["duotone", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", {
|
|
1596
1597
|
d: "M176,128,96,208V48Z",
|
|
1597
1598
|
opacity: "0.2"
|
|
1598
|
-
}), /* @__PURE__ */
|
|
1599
|
-
["fill", /* @__PURE__ */
|
|
1600
|
-
["light", /* @__PURE__ */
|
|
1601
|
-
["regular", /* @__PURE__ */
|
|
1602
|
-
["thin", /* @__PURE__ */
|
|
1603
|
-
]),
|
|
1604
|
-
["bold", /* @__PURE__ */
|
|
1605
|
-
["duotone", /* @__PURE__ */
|
|
1599
|
+
}), /* @__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" }))],
|
|
1600
|
+
["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" }))],
|
|
1601
|
+
["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" }))],
|
|
1602
|
+
["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" }))],
|
|
1603
|
+
["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" }))]
|
|
1604
|
+
]), at = /* @__PURE__ */ new Map([
|
|
1605
|
+
["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" }))],
|
|
1606
|
+
["duotone", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", {
|
|
1606
1607
|
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
1608
|
opacity: "0.2"
|
|
1608
|
-
}), /* @__PURE__ */
|
|
1609
|
-
["fill", /* @__PURE__ */
|
|
1610
|
-
["light", /* @__PURE__ */
|
|
1611
|
-
["regular", /* @__PURE__ */
|
|
1612
|
-
["thin", /* @__PURE__ */
|
|
1613
|
-
]),
|
|
1614
|
-
["bold", /* @__PURE__ */
|
|
1615
|
-
["duotone", /* @__PURE__ */
|
|
1609
|
+
}), /* @__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" }))],
|
|
1610
|
+
["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" }))],
|
|
1611
|
+
["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" }))],
|
|
1612
|
+
["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" }))],
|
|
1613
|
+
["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" }))]
|
|
1614
|
+
]), ot = /* @__PURE__ */ new Map([
|
|
1615
|
+
["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" }))],
|
|
1616
|
+
["duotone", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", {
|
|
1616
1617
|
d: "M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",
|
|
1617
1618
|
opacity: "0.2"
|
|
1618
|
-
}), /* @__PURE__ */
|
|
1619
|
-
["fill", /* @__PURE__ */
|
|
1620
|
-
["light", /* @__PURE__ */
|
|
1621
|
-
["regular", /* @__PURE__ */
|
|
1622
|
-
["thin", /* @__PURE__ */
|
|
1623
|
-
]),
|
|
1624
|
-
["bold", /* @__PURE__ */
|
|
1625
|
-
["duotone", /* @__PURE__ */
|
|
1619
|
+
}), /* @__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" }))],
|
|
1620
|
+
["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" }))],
|
|
1621
|
+
["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" }))],
|
|
1622
|
+
["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" }))],
|
|
1623
|
+
["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" }))]
|
|
1624
|
+
]), st = /* @__PURE__ */ new Map([
|
|
1625
|
+
["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" }))],
|
|
1626
|
+
["duotone", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", {
|
|
1626
1627
|
d: "M216,40V168H168V88H88V40Z",
|
|
1627
1628
|
opacity: "0.2"
|
|
1628
|
-
}), /* @__PURE__ */
|
|
1629
|
-
["fill", /* @__PURE__ */
|
|
1630
|
-
["light", /* @__PURE__ */
|
|
1631
|
-
["regular", /* @__PURE__ */
|
|
1632
|
-
["thin", /* @__PURE__ */
|
|
1633
|
-
]),
|
|
1634
|
-
["bold", /* @__PURE__ */
|
|
1635
|
-
["duotone", /* @__PURE__ */
|
|
1629
|
+
}), /* @__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" }))],
|
|
1630
|
+
["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" }))],
|
|
1631
|
+
["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" }))],
|
|
1632
|
+
["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" }))],
|
|
1633
|
+
["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" }))]
|
|
1634
|
+
]), ct = /* @__PURE__ */ new Map([
|
|
1635
|
+
["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" }))],
|
|
1636
|
+
["duotone", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", {
|
|
1636
1637
|
d: "M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",
|
|
1637
1638
|
opacity: "0.2"
|
|
1638
|
-
}), /* @__PURE__ */
|
|
1639
|
-
["fill", /* @__PURE__ */
|
|
1640
|
-
["light", /* @__PURE__ */
|
|
1641
|
-
["regular", /* @__PURE__ */
|
|
1642
|
-
["thin", /* @__PURE__ */
|
|
1643
|
-
]),
|
|
1644
|
-
["bold", /* @__PURE__ */
|
|
1645
|
-
["duotone", /* @__PURE__ */
|
|
1639
|
+
}), /* @__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" }))],
|
|
1640
|
+
["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" }))],
|
|
1641
|
+
["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" }))],
|
|
1642
|
+
["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" }))],
|
|
1643
|
+
["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" }))]
|
|
1644
|
+
]), lt = /* @__PURE__ */ new Map([
|
|
1645
|
+
["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" }))],
|
|
1646
|
+
["duotone", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", {
|
|
1646
1647
|
d: "M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",
|
|
1647
1648
|
opacity: "0.2"
|
|
1648
|
-
}), /* @__PURE__ */
|
|
1649
|
-
["fill", /* @__PURE__ */
|
|
1650
|
-
["light", /* @__PURE__ */
|
|
1651
|
-
["regular", /* @__PURE__ */
|
|
1652
|
-
["thin", /* @__PURE__ */
|
|
1653
|
-
]),
|
|
1654
|
-
["bold", /* @__PURE__ */
|
|
1655
|
-
["duotone", /* @__PURE__ */
|
|
1649
|
+
}), /* @__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" }))],
|
|
1650
|
+
["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" }))],
|
|
1651
|
+
["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" }))],
|
|
1652
|
+
["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" }))],
|
|
1653
|
+
["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" }))]
|
|
1654
|
+
]), ut = /* @__PURE__ */ new Map([
|
|
1655
|
+
["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" }))],
|
|
1656
|
+
["duotone", /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", {
|
|
1656
1657
|
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
1658
|
opacity: "0.2"
|
|
1658
|
-
}), /* @__PURE__ */
|
|
1659
|
-
["fill", /* @__PURE__ */
|
|
1660
|
-
["light", /* @__PURE__ */
|
|
1661
|
-
["regular", /* @__PURE__ */
|
|
1662
|
-
["thin", /* @__PURE__ */
|
|
1663
|
-
]),
|
|
1659
|
+
}), /* @__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" }))],
|
|
1660
|
+
["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" }))],
|
|
1661
|
+
["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" }))],
|
|
1662
|
+
["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" }))],
|
|
1663
|
+
["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" }))]
|
|
1664
|
+
]), dt = r({
|
|
1664
1665
|
color: "currentColor",
|
|
1665
1666
|
size: "1em",
|
|
1666
1667
|
weight: "regular",
|
|
1667
1668
|
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:
|
|
1669
|
+
}), V = t.forwardRef((e, n) => {
|
|
1670
|
+
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);
|
|
1671
|
+
return /* @__PURE__ */ t.createElement("svg", {
|
|
1672
|
+
ref: n,
|
|
1672
1673
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1673
1674
|
width: a ?? f,
|
|
1674
1675
|
height: a ?? f,
|
|
@@ -1677,137 +1678,137 @@ var tt = ({ step: e, form: t, formState: n, onDismiss: r, onNextStep: i, onPrevi
|
|
|
1677
1678
|
transform: s || m ? "scale(-1, 1)" : void 0,
|
|
1678
1679
|
...h,
|
|
1679
1680
|
...u
|
|
1680
|
-
}, !!r && /* @__PURE__ */
|
|
1681
|
+
}, !!r && /* @__PURE__ */ t.createElement("title", null, r), c, l.get(o ?? p));
|
|
1681
1682
|
});
|
|
1682
|
-
|
|
1683
|
+
V.displayName = "IconBase";
|
|
1683
1684
|
//#endregion
|
|
1684
1685
|
//#region ../node_modules/@phosphor-icons/react/dist/csr/ArrowSquareOut.es.js
|
|
1685
|
-
var
|
|
1686
|
-
ref:
|
|
1686
|
+
var ft = t.forwardRef((e, n) => /* @__PURE__ */ t.createElement(V, {
|
|
1687
|
+
ref: n,
|
|
1687
1688
|
...e,
|
|
1688
|
-
weights:
|
|
1689
|
+
weights: tt
|
|
1689
1690
|
}));
|
|
1690
|
-
|
|
1691
|
+
ft.displayName = "ArrowSquareOutIcon";
|
|
1691
1692
|
//#endregion
|
|
1692
1693
|
//#region ../node_modules/@phosphor-icons/react/dist/csr/CaretDown.es.js
|
|
1693
|
-
var
|
|
1694
|
-
ref:
|
|
1694
|
+
var pt = t.forwardRef((e, n) => /* @__PURE__ */ t.createElement(V, {
|
|
1695
|
+
ref: n,
|
|
1695
1696
|
...e,
|
|
1696
|
-
weights:
|
|
1697
|
+
weights: nt
|
|
1697
1698
|
}));
|
|
1698
|
-
|
|
1699
|
+
pt.displayName = "CaretDownIcon";
|
|
1699
1700
|
//#endregion
|
|
1700
1701
|
//#region ../node_modules/@phosphor-icons/react/dist/csr/CaretLeft.es.js
|
|
1701
|
-
var
|
|
1702
|
-
ref:
|
|
1702
|
+
var mt = t.forwardRef((e, n) => /* @__PURE__ */ t.createElement(V, {
|
|
1703
|
+
ref: n,
|
|
1703
1704
|
...e,
|
|
1704
|
-
weights:
|
|
1705
|
+
weights: rt
|
|
1705
1706
|
}));
|
|
1706
|
-
|
|
1707
|
+
mt.displayName = "CaretLeftIcon";
|
|
1707
1708
|
//#endregion
|
|
1708
1709
|
//#region ../node_modules/@phosphor-icons/react/dist/csr/CaretRight.es.js
|
|
1709
|
-
var
|
|
1710
|
-
ref:
|
|
1710
|
+
var ht = t.forwardRef((e, n) => /* @__PURE__ */ t.createElement(V, {
|
|
1711
|
+
ref: n,
|
|
1711
1712
|
...e,
|
|
1712
|
-
weights:
|
|
1713
|
+
weights: it
|
|
1713
1714
|
}));
|
|
1714
|
-
|
|
1715
|
+
ht.displayName = "CaretRightIcon";
|
|
1715
1716
|
//#endregion
|
|
1716
1717
|
//#region ../node_modules/@phosphor-icons/react/dist/csr/Check.es.js
|
|
1717
|
-
var
|
|
1718
|
-
ref:
|
|
1718
|
+
var gt = t.forwardRef((e, n) => /* @__PURE__ */ t.createElement(V, {
|
|
1719
|
+
ref: n,
|
|
1719
1720
|
...e,
|
|
1720
|
-
weights:
|
|
1721
|
+
weights: at
|
|
1721
1722
|
}));
|
|
1722
|
-
|
|
1723
|
+
gt.displayName = "CheckIcon";
|
|
1723
1724
|
//#endregion
|
|
1724
1725
|
//#region ../node_modules/@phosphor-icons/react/dist/csr/CircleNotch.es.js
|
|
1725
|
-
var
|
|
1726
|
-
ref:
|
|
1726
|
+
var _t = t.forwardRef((e, n) => /* @__PURE__ */ t.createElement(V, {
|
|
1727
|
+
ref: n,
|
|
1727
1728
|
...e,
|
|
1728
|
-
weights:
|
|
1729
|
+
weights: ot
|
|
1729
1730
|
}));
|
|
1730
|
-
|
|
1731
|
+
_t.displayName = "CircleNotchIcon";
|
|
1731
1732
|
//#endregion
|
|
1732
1733
|
//#region ../node_modules/@phosphor-icons/react/dist/csr/Copy.es.js
|
|
1733
|
-
var
|
|
1734
|
-
ref:
|
|
1734
|
+
var vt = t.forwardRef((e, n) => /* @__PURE__ */ t.createElement(V, {
|
|
1735
|
+
ref: n,
|
|
1735
1736
|
...e,
|
|
1736
|
-
weights:
|
|
1737
|
+
weights: st
|
|
1737
1738
|
}));
|
|
1738
|
-
|
|
1739
|
+
vt.displayName = "CopyIcon";
|
|
1739
1740
|
//#endregion
|
|
1740
1741
|
//#region ../node_modules/@phosphor-icons/react/dist/csr/Info.es.js
|
|
1741
|
-
var
|
|
1742
|
-
ref:
|
|
1742
|
+
var yt = t.forwardRef((e, n) => /* @__PURE__ */ t.createElement(V, {
|
|
1743
|
+
ref: n,
|
|
1743
1744
|
...e,
|
|
1744
|
-
weights:
|
|
1745
|
+
weights: ct
|
|
1745
1746
|
}));
|
|
1746
|
-
|
|
1747
|
+
yt.displayName = "InfoIcon";
|
|
1747
1748
|
//#endregion
|
|
1748
1749
|
//#region ../node_modules/@phosphor-icons/react/dist/csr/MagnifyingGlass.es.js
|
|
1749
|
-
var
|
|
1750
|
-
ref:
|
|
1750
|
+
var bt = t.forwardRef((e, n) => /* @__PURE__ */ t.createElement(V, {
|
|
1751
|
+
ref: n,
|
|
1751
1752
|
...e,
|
|
1752
|
-
weights:
|
|
1753
|
+
weights: lt
|
|
1753
1754
|
}));
|
|
1754
|
-
|
|
1755
|
+
bt.displayName = "MagnifyingGlassIcon";
|
|
1755
1756
|
//#endregion
|
|
1756
1757
|
//#region ../node_modules/@phosphor-icons/react/dist/csr/X.es.js
|
|
1757
|
-
var
|
|
1758
|
-
ref:
|
|
1758
|
+
var xt = t.forwardRef((e, n) => /* @__PURE__ */ t.createElement(V, {
|
|
1759
|
+
ref: n,
|
|
1759
1760
|
...e,
|
|
1760
|
-
weights:
|
|
1761
|
+
weights: ut
|
|
1761
1762
|
}));
|
|
1762
|
-
|
|
1763
|
+
xt.displayName = "XIcon";
|
|
1763
1764
|
//#endregion
|
|
1764
1765
|
//#region ../node_modules/clsx/dist/clsx.mjs
|
|
1765
|
-
function
|
|
1766
|
+
function St(e) {
|
|
1766
1767
|
var t, n, r = "";
|
|
1767
1768
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
1768
1769
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
1769
1770
|
var i = e.length;
|
|
1770
|
-
for (t = 0; t < i; t++) e[t] && (n =
|
|
1771
|
+
for (t = 0; t < i; t++) e[t] && (n = St(e[t])) && (r && (r += " "), r += n);
|
|
1771
1772
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
1772
1773
|
return r;
|
|
1773
1774
|
}
|
|
1774
|
-
function
|
|
1775
|
-
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t =
|
|
1775
|
+
function Ct() {
|
|
1776
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = St(e)) && (r && (r += " "), r += t);
|
|
1776
1777
|
return r;
|
|
1777
1778
|
}
|
|
1778
1779
|
//#endregion
|
|
1779
1780
|
//#region ../node_modules/prism-react-renderer/dist/index.mjs
|
|
1780
|
-
var
|
|
1781
|
+
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
1782
|
enumerable: !0,
|
|
1782
1783
|
configurable: !0,
|
|
1783
1784
|
writable: !0,
|
|
1784
1785
|
value: n
|
|
1785
1786
|
}) : e[t] = n, H = (e, t) => {
|
|
1786
|
-
for (var n in t ||= {})
|
|
1787
|
-
if (
|
|
1787
|
+
for (var n in t ||= {}) Mt.call(t, n) && Pt(e, n, t[n]);
|
|
1788
|
+
if (At) for (var n of At(t)) Nt.call(t, n) && Pt(e, n, t[n]);
|
|
1788
1789
|
return e;
|
|
1789
|
-
},
|
|
1790
|
+
}, Ft = (e, t) => Et(e, Ot(t)), It = (e, t) => {
|
|
1790
1791
|
var n = {};
|
|
1791
|
-
for (var r in e)
|
|
1792
|
-
if (e != null &&
|
|
1792
|
+
for (var r in e) Mt.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
1793
|
+
if (e != null && At) for (var r of At(e)) t.indexOf(r) < 0 && Nt.call(e, r) && (n[r] = e[r]);
|
|
1793
1794
|
return n;
|
|
1794
|
-
},
|
|
1795
|
-
return t || (0, e[
|
|
1796
|
-
},
|
|
1797
|
-
for (var n in t)
|
|
1795
|
+
}, Lt = (e, t) => function() {
|
|
1796
|
+
return t || (0, e[kt(e)[0]])((t = { exports: {} }).exports, t), t.exports;
|
|
1797
|
+
}, Rt = (e, t) => {
|
|
1798
|
+
for (var n in t) Tt(e, n, {
|
|
1798
1799
|
get: t[n],
|
|
1799
1800
|
enumerable: !0
|
|
1800
1801
|
});
|
|
1801
|
-
},
|
|
1802
|
-
if (t && typeof t == "object" || typeof t == "function") for (let i of
|
|
1802
|
+
}, zt = (e, t, n, r) => {
|
|
1803
|
+
if (t && typeof t == "object" || typeof t == "function") for (let i of kt(t)) !Mt.call(e, i) && i !== n && Tt(e, i, {
|
|
1803
1804
|
get: () => t[i],
|
|
1804
|
-
enumerable: !(r =
|
|
1805
|
+
enumerable: !(r = Dt(t, i)) || r.enumerable
|
|
1805
1806
|
});
|
|
1806
1807
|
return e;
|
|
1807
|
-
}, U = ((e, t, n) => (n = e == null ? {} :
|
|
1808
|
+
}, U = ((e, t, n) => (n = e == null ? {} : wt(jt(e)), zt(t || !e || !e.__esModule ? Tt(n, "default", {
|
|
1808
1809
|
value: e,
|
|
1809
1810
|
enumerable: !0
|
|
1810
|
-
}) : n, e)))(
|
|
1811
|
+
}) : n, e)))(Lt({ "../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e, t) {
|
|
1811
1812
|
var n = function() {
|
|
1812
1813
|
var e = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, t = 0, n = {}, r = {
|
|
1813
1814
|
util: {
|
|
@@ -1976,17 +1977,17 @@ var Tt = Object.create, Et = Object.defineProperty, Dt = Object.defineProperties
|
|
|
1976
1977
|
for (var A = S; A !== t.tail && (k < O || typeof A.value == "string"); A = A.next) T++, k += A.value.length;
|
|
1977
1978
|
T--, w = e.slice(C, k), E.index -= C;
|
|
1978
1979
|
} 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
|
|
1980
|
+
var D = E.index, j = E[0], M = w.slice(0, D), ee = w.slice(D + j.length), te = C + w.length;
|
|
1981
|
+
d && te > d.reach && (d.reach = te);
|
|
1982
|
+
var N = S.prev;
|
|
1983
|
+
M && (N = c(t, N, M), C += M.length), l(t, N, T);
|
|
1984
|
+
var ne = new i(f, g ? r.tokenize(j, g) : j, y, j);
|
|
1985
|
+
if (S = c(t, N, ne), ee && c(t, S, ee), T > 1) {
|
|
1986
|
+
var P = {
|
|
1986
1987
|
cause: f + "," + m,
|
|
1987
|
-
reach:
|
|
1988
|
+
reach: te
|
|
1988
1989
|
};
|
|
1989
|
-
o(e, t, n, S.prev, C,
|
|
1990
|
+
o(e, t, n, S.prev, C, P), d && P.reach > d.reach && (d.reach = P.reach);
|
|
1990
1991
|
}
|
|
1991
1992
|
}
|
|
1992
1993
|
}
|
|
@@ -3778,29 +3779,29 @@ U.languages.markup = {
|
|
|
3778
3779
|
pattern: /\bnull\b/,
|
|
3779
3780
|
alias: "keyword"
|
|
3780
3781
|
}
|
|
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: () =>
|
|
3782
|
+
}, U.languages.webmanifest = U.languages.json, Rt({}, {
|
|
3783
|
+
dracula: () => Bt,
|
|
3784
|
+
duotoneDark: () => Vt,
|
|
3785
|
+
duotoneLight: () => Ht,
|
|
3786
|
+
github: () => Ut,
|
|
3787
|
+
gruvboxMaterialDark: () => an,
|
|
3788
|
+
gruvboxMaterialLight: () => on,
|
|
3789
|
+
jettwaveDark: () => en,
|
|
3790
|
+
jettwaveLight: () => tn,
|
|
3791
|
+
nightOwl: () => Wt,
|
|
3792
|
+
nightOwlLight: () => Gt,
|
|
3793
|
+
oceanicNext: () => Kt,
|
|
3794
|
+
okaidia: () => qt,
|
|
3795
|
+
oneDark: () => nn,
|
|
3796
|
+
oneLight: () => rn,
|
|
3797
|
+
palenight: () => Jt,
|
|
3798
|
+
shadesOfPurple: () => Yt,
|
|
3799
|
+
synthwave84: () => Xt,
|
|
3800
|
+
ultramin: () => Zt,
|
|
3801
|
+
vsDark: () => Qt,
|
|
3802
|
+
vsLight: () => $t
|
|
3802
3803
|
});
|
|
3803
|
-
var
|
|
3804
|
+
var Bt = {
|
|
3804
3805
|
plain: {
|
|
3805
3806
|
color: "#F8F8F2",
|
|
3806
3807
|
backgroundColor: "#282A36"
|
|
@@ -3855,7 +3856,7 @@ var Vt = {
|
|
|
3855
3856
|
style: { color: "rgb(241, 250, 140)" }
|
|
3856
3857
|
}
|
|
3857
3858
|
]
|
|
3858
|
-
},
|
|
3859
|
+
}, Vt = {
|
|
3859
3860
|
plain: {
|
|
3860
3861
|
backgroundColor: "#2a2734",
|
|
3861
3862
|
color: "#9a86fd"
|
|
@@ -3939,7 +3940,7 @@ var Vt = {
|
|
|
3939
3940
|
style: { color: "#c4b9fe" }
|
|
3940
3941
|
}
|
|
3941
3942
|
]
|
|
3942
|
-
},
|
|
3943
|
+
}, Ht = {
|
|
3943
3944
|
plain: {
|
|
3944
3945
|
backgroundColor: "#faf8f5",
|
|
3945
3946
|
color: "#728fcb"
|
|
@@ -4025,7 +4026,7 @@ var Vt = {
|
|
|
4025
4026
|
style: { color: "#896724" }
|
|
4026
4027
|
}
|
|
4027
4028
|
]
|
|
4028
|
-
},
|
|
4029
|
+
}, Ut = {
|
|
4029
4030
|
plain: {
|
|
4030
4031
|
color: "#393A34",
|
|
4031
4032
|
backgroundColor: "#f6f8fa"
|
|
@@ -4100,7 +4101,7 @@ var Vt = {
|
|
|
4100
4101
|
style: { color: "#00009f" }
|
|
4101
4102
|
}
|
|
4102
4103
|
]
|
|
4103
|
-
},
|
|
4104
|
+
}, Wt = {
|
|
4104
4105
|
plain: {
|
|
4105
4106
|
color: "#d6deeb",
|
|
4106
4107
|
backgroundColor: "#011627"
|
|
@@ -4191,7 +4192,7 @@ var Vt = {
|
|
|
4191
4192
|
style: { color: "rgb(178, 204, 214)" }
|
|
4192
4193
|
}
|
|
4193
4194
|
]
|
|
4194
|
-
},
|
|
4195
|
+
}, Gt = {
|
|
4195
4196
|
plain: {
|
|
4196
4197
|
color: "#403f53",
|
|
4197
4198
|
backgroundColor: "#FBFBFB"
|
|
@@ -4294,7 +4295,7 @@ var Vt = {
|
|
|
4294
4295
|
className: "#FAC863",
|
|
4295
4296
|
method: "#6699CC",
|
|
4296
4297
|
operator: "#fc929e"
|
|
4297
|
-
},
|
|
4298
|
+
}, Kt = {
|
|
4298
4299
|
plain: {
|
|
4299
4300
|
backgroundColor: "#282c34",
|
|
4300
4301
|
color: "#ffffff"
|
|
@@ -4393,7 +4394,7 @@ var Vt = {
|
|
|
4393
4394
|
style: { opacity: .7 }
|
|
4394
4395
|
}
|
|
4395
4396
|
]
|
|
4396
|
-
},
|
|
4397
|
+
}, qt = {
|
|
4397
4398
|
plain: {
|
|
4398
4399
|
color: "#f8f8f2",
|
|
4399
4400
|
backgroundColor: "#272822"
|
|
@@ -4496,7 +4497,7 @@ var Vt = {
|
|
|
4496
4497
|
style: { color: "#e6db74" }
|
|
4497
4498
|
}
|
|
4498
4499
|
]
|
|
4499
|
-
},
|
|
4500
|
+
}, Jt = {
|
|
4500
4501
|
plain: {
|
|
4501
4502
|
color: "#bfc7d5",
|
|
4502
4503
|
backgroundColor: "#292d3e"
|
|
@@ -4570,7 +4571,7 @@ var Vt = {
|
|
|
4570
4571
|
style: { color: "rgb(221, 221, 221)" }
|
|
4571
4572
|
}
|
|
4572
4573
|
]
|
|
4573
|
-
},
|
|
4574
|
+
}, Yt = {
|
|
4574
4575
|
plain: {
|
|
4575
4576
|
color: "#9EFEFF",
|
|
4576
4577
|
backgroundColor: "#2D2A55"
|
|
@@ -4642,7 +4643,7 @@ var Vt = {
|
|
|
4642
4643
|
style: { color: "rgb(250, 208, 0)" }
|
|
4643
4644
|
}
|
|
4644
4645
|
]
|
|
4645
|
-
},
|
|
4646
|
+
}, Xt = {
|
|
4646
4647
|
plain: {
|
|
4647
4648
|
backgroundColor: "linear-gradient(to bottom, #2a2139 75%, #34294f)",
|
|
4648
4649
|
backgroundImage: "#34294f",
|
|
@@ -4770,7 +4771,7 @@ var Vt = {
|
|
|
4770
4771
|
style: { color: "green" }
|
|
4771
4772
|
}
|
|
4772
4773
|
]
|
|
4773
|
-
},
|
|
4774
|
+
}, Zt = {
|
|
4774
4775
|
plain: {
|
|
4775
4776
|
color: "#282a2e",
|
|
4776
4777
|
backgroundColor: "#ffffff"
|
|
@@ -4799,7 +4800,7 @@ var Vt = {
|
|
|
4799
4800
|
style: { color: "rgb(40, 42, 46)" }
|
|
4800
4801
|
}
|
|
4801
4802
|
]
|
|
4802
|
-
},
|
|
4803
|
+
}, Qt = {
|
|
4803
4804
|
plain: {
|
|
4804
4805
|
color: "#9CDCFE",
|
|
4805
4806
|
backgroundColor: "#1E1E1E"
|
|
@@ -4878,7 +4879,7 @@ var Vt = {
|
|
|
4878
4879
|
style: { color: "rgb(209, 105, 105)" }
|
|
4879
4880
|
}
|
|
4880
4881
|
]
|
|
4881
|
-
},
|
|
4882
|
+
}, $t = {
|
|
4882
4883
|
plain: {
|
|
4883
4884
|
color: "#000000",
|
|
4884
4885
|
backgroundColor: "#ffffff"
|
|
@@ -4933,7 +4934,7 @@ var Vt = {
|
|
|
4933
4934
|
style: { color: "rgb(38, 127, 153)" }
|
|
4934
4935
|
}
|
|
4935
4936
|
]
|
|
4936
|
-
},
|
|
4937
|
+
}, en = {
|
|
4937
4938
|
plain: {
|
|
4938
4939
|
color: "#f8fafc",
|
|
4939
4940
|
backgroundColor: "#011627"
|
|
@@ -5012,7 +5013,7 @@ var Vt = {
|
|
|
5012
5013
|
style: { color: "#D16969" }
|
|
5013
5014
|
}
|
|
5014
5015
|
]
|
|
5015
|
-
},
|
|
5016
|
+
}, tn = {
|
|
5016
5017
|
plain: {
|
|
5017
5018
|
color: "#0f172a",
|
|
5018
5019
|
backgroundColor: "#f1f5f9"
|
|
@@ -5091,7 +5092,7 @@ var Vt = {
|
|
|
5091
5092
|
style: { color: "#D16969" }
|
|
5092
5093
|
}
|
|
5093
5094
|
]
|
|
5094
|
-
},
|
|
5095
|
+
}, nn = {
|
|
5095
5096
|
plain: {
|
|
5096
5097
|
backgroundColor: "hsl(220, 13%, 18%)",
|
|
5097
5098
|
color: "hsl(220, 14%, 71%)",
|
|
@@ -5185,7 +5186,7 @@ var Vt = {
|
|
|
5185
5186
|
style: { color: "hsl(220, 14%, 71%)" }
|
|
5186
5187
|
}
|
|
5187
5188
|
]
|
|
5188
|
-
},
|
|
5189
|
+
}, rn = {
|
|
5189
5190
|
plain: {
|
|
5190
5191
|
backgroundColor: "hsl(230, 1%, 98%)",
|
|
5191
5192
|
color: "hsl(230, 8%, 24%)"
|
|
@@ -5278,7 +5279,7 @@ var Vt = {
|
|
|
5278
5279
|
style: { color: "hsl(230, 8%, 24%)" }
|
|
5279
5280
|
}
|
|
5280
5281
|
]
|
|
5281
|
-
},
|
|
5282
|
+
}, an = {
|
|
5282
5283
|
plain: {
|
|
5283
5284
|
color: "#ebdbb2",
|
|
5284
5285
|
backgroundColor: "#292828"
|
|
@@ -5350,7 +5351,7 @@ var Vt = {
|
|
|
5350
5351
|
style: { color: "#d3869b" }
|
|
5351
5352
|
}
|
|
5352
5353
|
]
|
|
5353
|
-
},
|
|
5354
|
+
}, on = {
|
|
5354
5355
|
plain: {
|
|
5355
5356
|
color: "#654735",
|
|
5356
5357
|
backgroundColor: "#f9f5d7"
|
|
@@ -5421,88 +5422,88 @@ var Vt = {
|
|
|
5421
5422
|
style: { color: "#924f79" }
|
|
5422
5423
|
}
|
|
5423
5424
|
]
|
|
5424
|
-
},
|
|
5425
|
+
}, sn = (e) => o((t) => {
|
|
5425
5426
|
var n = t, { className: r, style: i, line: a } = n;
|
|
5426
|
-
let o =
|
|
5427
|
+
let o = Ft(H({}, It(n, [
|
|
5427
5428
|
"className",
|
|
5428
5429
|
"style",
|
|
5429
5430
|
"line"
|
|
5430
|
-
])), { className:
|
|
5431
|
+
])), { className: Ct("token-line", r) });
|
|
5431
5432
|
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 =
|
|
5433
|
+
}, [e]), cn = (e) => {
|
|
5434
|
+
let t = o(({ types: t, empty: n }) => {
|
|
5434
5435
|
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
5436
|
}, [e]);
|
|
5436
|
-
return
|
|
5437
|
+
return o((e) => {
|
|
5437
5438
|
var n = e, { token: r, className: i, style: a } = n;
|
|
5438
|
-
let o =
|
|
5439
|
+
let o = Ft(H({}, It(n, [
|
|
5439
5440
|
"token",
|
|
5440
5441
|
"className",
|
|
5441
5442
|
"style"
|
|
5442
5443
|
])), {
|
|
5443
|
-
className:
|
|
5444
|
+
className: Ct("token", ...r.types, i),
|
|
5444
5445
|
children: r.content,
|
|
5445
5446
|
style: t(r)
|
|
5446
5447
|
});
|
|
5447
5448
|
return a != null && (o.style = H(H({}, o.style || {}), a)), o;
|
|
5448
5449
|
}, [t]);
|
|
5449
|
-
},
|
|
5450
|
+
}, ln = /\r\n|\r|\n/, un = (e) => {
|
|
5450
5451
|
e.length === 0 ? e.push({
|
|
5451
5452
|
types: ["plain"],
|
|
5452
5453
|
content: "\n",
|
|
5453
5454
|
empty: !0
|
|
5454
5455
|
}) : e.length === 1 && e[0].content === "" && (e[0].content = "\n", e[0].empty = !0);
|
|
5455
|
-
},
|
|
5456
|
+
}, dn = (e, t) => {
|
|
5456
5457
|
let n = e.length;
|
|
5457
5458
|
return n > 0 && e[n - 1] === t ? e : e.concat(t);
|
|
5458
|
-
},
|
|
5459
|
+
}, fn = (e) => {
|
|
5459
5460
|
let t = [[]], n = [e], r = [0], i = [e.length], a = 0, o = 0, s = [], c = [s];
|
|
5460
5461
|
for (; o > -1;) {
|
|
5461
5462
|
for (; (a = r[o]++) < i[o];) {
|
|
5462
5463
|
let e, l = t[o], u = n[o][a];
|
|
5463
|
-
if (typeof u == "string" ? (l = o > 0 ? l : ["plain"], e = u) : (l =
|
|
5464
|
+
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
5465
|
o++, t.push(l), n.push(e), r.push(0), i.push(e.length);
|
|
5465
5466
|
continue;
|
|
5466
5467
|
}
|
|
5467
|
-
let d = e.split(
|
|
5468
|
+
let d = e.split(ln), f = d.length;
|
|
5468
5469
|
s.push({
|
|
5469
5470
|
types: l,
|
|
5470
5471
|
content: d[0]
|
|
5471
5472
|
});
|
|
5472
|
-
for (let e = 1; e < f; e++)
|
|
5473
|
+
for (let e = 1; e < f; e++) un(s), c.push(s = []), s.push({
|
|
5473
5474
|
types: l,
|
|
5474
5475
|
content: d[e]
|
|
5475
5476
|
});
|
|
5476
5477
|
}
|
|
5477
5478
|
o--, t.pop(), n.pop(), r.pop(), i.pop();
|
|
5478
5479
|
}
|
|
5479
|
-
return
|
|
5480
|
-
},
|
|
5481
|
-
if (n == null) return
|
|
5480
|
+
return un(s), c;
|
|
5481
|
+
}, pn = ({ prism: e, code: t, grammar: n, language: r }) => l(() => {
|
|
5482
|
+
if (n == null) return fn([t]);
|
|
5482
5483
|
let i = {
|
|
5483
5484
|
code: t,
|
|
5484
5485
|
grammar: n,
|
|
5485
5486
|
language: r,
|
|
5486
5487
|
tokens: []
|
|
5487
5488
|
};
|
|
5488
|
-
return e.hooks.run("before-tokenize", i), i.tokens = e.tokenize(t, n), e.hooks.run("after-tokenize", i),
|
|
5489
|
+
return e.hooks.run("before-tokenize", i), i.tokens = e.tokenize(t, n), e.hooks.run("after-tokenize", i), fn(i.tokens);
|
|
5489
5490
|
}, [
|
|
5490
5491
|
t,
|
|
5491
5492
|
n,
|
|
5492
5493
|
r,
|
|
5493
5494
|
e
|
|
5494
|
-
]),
|
|
5495
|
+
]), mn = (e, t) => {
|
|
5495
5496
|
let { plain: n } = e, r = e.styles.reduce((e, n) => {
|
|
5496
5497
|
let { languages: r, style: i } = n;
|
|
5497
5498
|
return r && !r.includes(t) || n.types.forEach((t) => {
|
|
5498
5499
|
e[t] = H(H({}, e[t]), i);
|
|
5499
5500
|
}), e;
|
|
5500
5501
|
}, {});
|
|
5501
|
-
return r.root = n, r.plain =
|
|
5502
|
-
},
|
|
5503
|
-
let a = t.toLowerCase(), o =
|
|
5502
|
+
return r.root = n, r.plain = Ft(H({}, n), { backgroundColor: void 0 }), r;
|
|
5503
|
+
}, hn = ({ children: e, language: t, code: n, theme: r, prism: i }) => {
|
|
5504
|
+
let a = t.toLowerCase(), o = mn(r, a), s = sn(o), c = cn(o), l = i.languages[a];
|
|
5504
5505
|
return e({
|
|
5505
|
-
tokens:
|
|
5506
|
+
tokens: pn({
|
|
5506
5507
|
prism: i,
|
|
5507
5508
|
language: a,
|
|
5508
5509
|
code: n,
|
|
@@ -5513,26 +5514,26 @@ var Vt = {
|
|
|
5513
5514
|
getLineProps: s,
|
|
5514
5515
|
getTokenProps: c
|
|
5515
5516
|
});
|
|
5516
|
-
},
|
|
5517
|
+
}, gn = (e) => i(hn, Ft(H({}, e), {
|
|
5517
5518
|
prism: e.prism || U,
|
|
5518
|
-
theme: e.theme ||
|
|
5519
|
+
theme: e.theme || Qt,
|
|
5519
5520
|
code: e.code,
|
|
5520
5521
|
language: e.language
|
|
5521
|
-
})),
|
|
5522
|
+
})), _n = (e, t) => t.some((t) => {
|
|
5522
5523
|
if (typeof t == "number") return e === t;
|
|
5523
5524
|
let [n, r] = t.split(":").map((e) => parseInt(e));
|
|
5524
5525
|
return n <= e && e <= r;
|
|
5525
|
-
}),
|
|
5526
|
+
}), 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
5527
|
e = e.startsWith("/") ? e : "/" + e;
|
|
5527
5528
|
let [, t, n = "0:Infinity"] = e.split("/"), [r, i = r] = n.split(":").map((e) => Number(e));
|
|
5528
5529
|
return [t, [r, i]];
|
|
5529
|
-
}),
|
|
5530
|
-
let n =
|
|
5530
|
+
}), xn = (e, t) => () => {
|
|
5531
|
+
let n = s(e);
|
|
5531
5532
|
if (n === void 0) throw Error(t);
|
|
5532
5533
|
return n;
|
|
5533
|
-
},
|
|
5534
|
-
let a =
|
|
5535
|
-
return
|
|
5534
|
+
}, 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 }) => {
|
|
5535
|
+
let a = l(() => bn(t), [t]);
|
|
5536
|
+
return m(Sn.Provider, {
|
|
5536
5537
|
value: {
|
|
5537
5538
|
code: e.trim(),
|
|
5538
5539
|
words: a,
|
|
@@ -5542,16 +5543,16 @@ var Vt = {
|
|
|
5542
5543
|
children: r
|
|
5543
5544
|
});
|
|
5544
5545
|
};
|
|
5545
|
-
|
|
5546
|
-
let { lines: i, words: a, ...o } =
|
|
5547
|
-
return
|
|
5546
|
+
En.Code = G(({ as: e, children: t, ...n }, r) => {
|
|
5547
|
+
let { lines: i, words: a, ...o } = wn(), s = e ?? "pre";
|
|
5548
|
+
return m(gn, {
|
|
5548
5549
|
...o,
|
|
5549
|
-
children: (e) =>
|
|
5550
|
+
children: (e) => m(s, {
|
|
5550
5551
|
...n,
|
|
5551
5552
|
ref: r,
|
|
5552
5553
|
children: e.tokens.map((n, r) => {
|
|
5553
|
-
let a = r + 1, o =
|
|
5554
|
-
return
|
|
5554
|
+
let a = r + 1, o = _n(a, i);
|
|
5555
|
+
return m(Cn.Provider, {
|
|
5555
5556
|
value: {
|
|
5556
5557
|
highlight: e,
|
|
5557
5558
|
line: n,
|
|
@@ -5565,9 +5566,9 @@ G.Code = Cn(({ as: e, children: t, ...n }, r) => {
|
|
|
5565
5566
|
})
|
|
5566
5567
|
})
|
|
5567
5568
|
});
|
|
5568
|
-
}),
|
|
5569
|
-
let { highlight: a, line: o } =
|
|
5570
|
-
return
|
|
5569
|
+
}), En.LineContent = G(({ as: e, children: t, className: n, ...r }, i) => {
|
|
5570
|
+
let { highlight: a, line: o } = Tn(), { getLineProps: s } = a;
|
|
5571
|
+
return m(e ?? "div", {
|
|
5571
5572
|
...s({
|
|
5572
5573
|
line: o,
|
|
5573
5574
|
className: n
|
|
@@ -5576,26 +5577,26 @@ G.Code = Cn(({ as: e, children: t, ...n }, r) => {
|
|
|
5576
5577
|
ref: i,
|
|
5577
5578
|
children: t
|
|
5578
5579
|
});
|
|
5579
|
-
}),
|
|
5580
|
-
let { words: o } =
|
|
5581
|
-
return
|
|
5580
|
+
}), En.Token = G(({ as: e, children: t = ({ children: e }) => m("span", { children: e }), className: r, ...i }, a) => {
|
|
5581
|
+
let { words: o } = wn(), { line: s, highlight: c, lineNumber: l } = Tn(), { getTokenProps: u } = c, d = e ?? "span";
|
|
5582
|
+
return m(n.Fragment, { children: s.map((e, s) => {
|
|
5582
5583
|
let { children: c, ...f } = u({
|
|
5583
5584
|
token: e,
|
|
5584
|
-
className:
|
|
5585
|
-
}), p = o.length ?
|
|
5586
|
-
return
|
|
5585
|
+
className: r
|
|
5586
|
+
}), p = o.length ? yn(c, o) : [c];
|
|
5587
|
+
return m(n.Fragment, { children: p.map((e, n) => m(d, {
|
|
5587
5588
|
...f,
|
|
5588
5589
|
...i,
|
|
5589
5590
|
ref: a,
|
|
5590
5591
|
children: t({
|
|
5591
5592
|
children: e,
|
|
5592
|
-
isTokenHighlighted:
|
|
5593
|
+
isTokenHighlighted: vn(e, l, o)
|
|
5593
5594
|
})
|
|
5594
5595
|
}, n)) }, s);
|
|
5595
5596
|
}) });
|
|
5596
|
-
}),
|
|
5597
|
-
let { lineNumber: r } =
|
|
5598
|
-
return
|
|
5597
|
+
}), En.LineNumber = G(({ as: e, ...t }, n) => {
|
|
5598
|
+
let { lineNumber: r } = Tn();
|
|
5599
|
+
return m(e ?? "span", {
|
|
5599
5600
|
...t,
|
|
5600
5601
|
ref: n,
|
|
5601
5602
|
children: r
|
|
@@ -5603,39 +5604,39 @@ G.Code = Cn(({ as: e, children: t, ...n }, r) => {
|
|
|
5603
5604
|
});
|
|
5604
5605
|
//#endregion
|
|
5605
5606
|
//#region ../ui-kit/dist/index.es.js
|
|
5606
|
-
function
|
|
5607
|
+
function Dn(e) {
|
|
5607
5608
|
var t, n, r = "";
|
|
5608
5609
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
5609
5610
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
5610
5611
|
var i = e.length;
|
|
5611
|
-
for (t = 0; t < i; t++) e[t] && (n =
|
|
5612
|
+
for (t = 0; t < i; t++) e[t] && (n = Dn(e[t])) && (r && (r += " "), r += n);
|
|
5612
5613
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
5613
5614
|
return r;
|
|
5614
5615
|
}
|
|
5615
|
-
function
|
|
5616
|
-
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t =
|
|
5616
|
+
function On() {
|
|
5617
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Dn(e)) && (r && (r += " "), r += t);
|
|
5617
5618
|
return r;
|
|
5618
5619
|
}
|
|
5619
|
-
var K =
|
|
5620
|
-
className: K("flex gap-2 justify-center items-center disabled:pointer-events-none", c ? "rounded-full" : "rounded-lg",
|
|
5620
|
+
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", {
|
|
5621
|
+
className: K("flex gap-2 justify-center items-center disabled:pointer-events-none", c ? "rounded-full" : "rounded-lg", kn(e), jn(t), a),
|
|
5621
5622
|
disabled: o,
|
|
5622
5623
|
...l,
|
|
5623
|
-
children: /* @__PURE__ */
|
|
5624
|
+
children: /* @__PURE__ */ m(dt.Provider, {
|
|
5624
5625
|
value: {
|
|
5625
5626
|
size: t === "xsmall" ? 12 : 16,
|
|
5626
5627
|
weight: "regular",
|
|
5627
|
-
className: K(
|
|
5628
|
+
className: K(An(e, o))
|
|
5628
5629
|
},
|
|
5629
|
-
children: s ? /* @__PURE__ */
|
|
5630
|
+
children: s ? /* @__PURE__ */ m(_t, { className: K(An(e, o), "animate-spin") }) : /* @__PURE__ */ h(p, { children: [
|
|
5630
5631
|
r && r,
|
|
5631
|
-
n && /* @__PURE__ */
|
|
5632
|
-
className: K(
|
|
5632
|
+
n && /* @__PURE__ */ m("span", {
|
|
5633
|
+
className: K(An(e, o), Mn(t)),
|
|
5633
5634
|
children: n
|
|
5634
5635
|
}),
|
|
5635
5636
|
i && i
|
|
5636
5637
|
] })
|
|
5637
5638
|
})
|
|
5638
|
-
}),
|
|
5639
|
+
}), kn = (e) => {
|
|
5639
5640
|
switch (e) {
|
|
5640
5641
|
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
5642
|
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 +5644,7 @@ var K = kn, q = ({ variant: e = "primary", size: t = "medium", text: n, iconBefo
|
|
|
5643
5644
|
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
5645
|
case "subtle": return "border border-grey-0/0 hover:bg-background-universal-overlay-light dark:hover:bg-background-universal-overlay-dark";
|
|
5645
5646
|
}
|
|
5646
|
-
},
|
|
5647
|
+
}, An = (e, t) => {
|
|
5647
5648
|
if (t) return "text-label-tertiary-light dark:text-label-tertiary-dark";
|
|
5648
5649
|
switch (e) {
|
|
5649
5650
|
case "primary": return "text-nonadaptable-text-light";
|
|
@@ -5652,19 +5653,19 @@ var K = kn, q = ({ variant: e = "primary", size: t = "medium", text: n, iconBefo
|
|
|
5652
5653
|
case "neutral": return "text-label-primary-light dark:text-label-primary-dark";
|
|
5653
5654
|
case "subtle": return "text-label-primary-light dark:text-label-primary-dark";
|
|
5654
5655
|
}
|
|
5655
|
-
},
|
|
5656
|
+
}, jn = (e) => {
|
|
5656
5657
|
switch (e) {
|
|
5657
5658
|
case "xsmall": return "p-1";
|
|
5658
5659
|
case "small": return "p-2";
|
|
5659
5660
|
case "medium": return "p-3";
|
|
5660
5661
|
}
|
|
5661
|
-
},
|
|
5662
|
+
}, Mn = (e) => {
|
|
5662
5663
|
switch (e) {
|
|
5663
5664
|
case "xsmall": return "text-[10px] leading-[14px]";
|
|
5664
5665
|
case "small": return "text-[13px] leading-[16px]";
|
|
5665
5666
|
case "medium": return "text-[15px] leading-[16px] -tracking-0,1";
|
|
5666
5667
|
}
|
|
5667
|
-
},
|
|
5668
|
+
}, Nn = {
|
|
5668
5669
|
Di1: "text-[72px] font-bold leading-[90px] -tracking-2,5",
|
|
5669
5670
|
Di2: "text-[60px] font-bold leading-[72px] -tracking-2,0",
|
|
5670
5671
|
Di3: "text-[48px] font-bold leading-[60px] -tracking-1,5",
|
|
@@ -5684,12 +5685,12 @@ var K = kn, q = ({ variant: e = "primary", size: t = "medium", text: n, iconBefo
|
|
|
5684
5685
|
D1: "text-[12px] leading-[16px]",
|
|
5685
5686
|
M: "text-[10px] leading-[16px]"
|
|
5686
5687
|
}, 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",
|
|
5688
|
+
let a = i ?? Pn[n], o = Nn[n];
|
|
5689
|
+
return /* @__PURE__ */ m(a, {
|
|
5690
|
+
className: K("font-sans", Fn[r], t, o),
|
|
5690
5691
|
children: e
|
|
5691
5692
|
});
|
|
5692
|
-
},
|
|
5693
|
+
}, Pn = {
|
|
5693
5694
|
Di1: "h1",
|
|
5694
5695
|
Di2: "h2",
|
|
5695
5696
|
Di3: "h3",
|
|
@@ -5708,7 +5709,7 @@ var K = kn, q = ({ variant: e = "primary", size: t = "medium", text: n, iconBefo
|
|
|
5708
5709
|
D1B: "p",
|
|
5709
5710
|
D1: "p",
|
|
5710
5711
|
M: "p"
|
|
5711
|
-
},
|
|
5712
|
+
}, Fn = {
|
|
5712
5713
|
primary: "text-label-primary-light dark:text-label-primary-dark",
|
|
5713
5714
|
secondary: "text-label-secondary-light dark:text-label-secondary-dark",
|
|
5714
5715
|
tertiary: "text-label-tertiary-light dark:text-label-tertiary-dark",
|
|
@@ -5719,22 +5720,22 @@ var K = kn, q = ({ variant: e = "primary", size: t = "medium", text: n, iconBefo
|
|
|
5719
5720
|
"brand-yellow": "text-brand-yellow-text-big-light dark:text-brand-yellow-text-big-dark",
|
|
5720
5721
|
"brand-coral": "text-brand-coral-text-big-light dark:text-brand-coral-text-big-dark",
|
|
5721
5722
|
"brand-mint": "text-brand-mint-text-big-light dark:text-brand-mint-text-big-dark"
|
|
5722
|
-
},
|
|
5723
|
+
}, In = ({ items: e, ordered: t }) => /* @__PURE__ */ m(t ? "ol" : "ul", {
|
|
5723
5724
|
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__ */
|
|
5725
|
+
children: e.map((e, n) => /* @__PURE__ */ h("li", { children: [/* @__PURE__ */ m(J, {
|
|
5725
5726
|
as: "span",
|
|
5726
|
-
children: /* @__PURE__ */
|
|
5727
|
-
}), e.children.length > 0 && /* @__PURE__ */
|
|
5727
|
+
children: /* @__PURE__ */ m(Ln, { text: e.content })
|
|
5728
|
+
}), e.children.length > 0 && /* @__PURE__ */ m(In, {
|
|
5728
5729
|
items: e.children,
|
|
5729
5730
|
ordered: t
|
|
5730
5731
|
})] }, n))
|
|
5731
|
-
}),
|
|
5732
|
-
function
|
|
5732
|
+
}), Ln = ({ text: e }) => /* @__PURE__ */ m(p, { children: Rn(e) });
|
|
5733
|
+
function Rn(e) {
|
|
5733
5734
|
let t = [], n = e, r = 0;
|
|
5734
5735
|
for (; n.length > 0;) {
|
|
5735
5736
|
let e = n.match(/^`([^`]+)`/);
|
|
5736
5737
|
if (e) {
|
|
5737
|
-
t.push(/* @__PURE__ */
|
|
5738
|
+
t.push(/* @__PURE__ */ m("code", {
|
|
5738
5739
|
className: "bg-background-tertiary-grouped-light dark:bg-background-tertiary-grouped-dark rounded px-1 py-0.5 text-[13px] font-code",
|
|
5739
5740
|
children: e[1]
|
|
5740
5741
|
}, r++)), n = n.slice(e[0].length);
|
|
@@ -5742,17 +5743,17 @@ function zn(e) {
|
|
|
5742
5743
|
}
|
|
5743
5744
|
let i = n.match(/^\*\*\*(.+?)\*\*\*/);
|
|
5744
5745
|
if (i) {
|
|
5745
|
-
t.push(/* @__PURE__ */
|
|
5746
|
+
t.push(/* @__PURE__ */ m("strong", { children: /* @__PURE__ */ m("em", { children: i[1] }) }, r++)), n = n.slice(i[0].length);
|
|
5746
5747
|
continue;
|
|
5747
5748
|
}
|
|
5748
5749
|
let a = n.match(/^\*\*(.+?)\*\*/);
|
|
5749
5750
|
if (a) {
|
|
5750
|
-
t.push(/* @__PURE__ */
|
|
5751
|
+
t.push(/* @__PURE__ */ m("strong", { children: a[1] }, r++)), n = n.slice(a[0].length);
|
|
5751
5752
|
continue;
|
|
5752
5753
|
}
|
|
5753
5754
|
let o = n.match(/^\*(.+?)\*/);
|
|
5754
5755
|
if (o) {
|
|
5755
|
-
t.push(/* @__PURE__ */
|
|
5756
|
+
t.push(/* @__PURE__ */ m("em", { children: o[1] }, r++)), n = n.slice(o[0].length);
|
|
5756
5757
|
continue;
|
|
5757
5758
|
}
|
|
5758
5759
|
let s = n.slice(1).search(/[`*]/);
|
|
@@ -5764,16 +5765,16 @@ function zn(e) {
|
|
|
5764
5765
|
}
|
|
5765
5766
|
return t;
|
|
5766
5767
|
}
|
|
5767
|
-
function
|
|
5768
|
+
function zn(e) {
|
|
5768
5769
|
let t = e.match(/^(\s*)/);
|
|
5769
5770
|
return t ? t[1].length : 0;
|
|
5770
5771
|
}
|
|
5771
|
-
function
|
|
5772
|
-
let r = [], i = t, a =
|
|
5772
|
+
function Bn(e, t, n) {
|
|
5773
|
+
let r = [], i = t, a = zn(e[t]), o = n === "unordered" ? /^(\s*)[-*+]\s(.*)/ : /^(\s*)\d+\.\s(.*)/;
|
|
5773
5774
|
for (; i < e.length;) {
|
|
5774
5775
|
let t = e[i];
|
|
5775
5776
|
if (t.trim() === "") {
|
|
5776
|
-
if (i + 1 < e.length && o.test(e[i + 1]) &&
|
|
5777
|
+
if (i + 1 < e.length && o.test(e[i + 1]) && zn(e[i + 1]) >= a) {
|
|
5777
5778
|
i++;
|
|
5778
5779
|
continue;
|
|
5779
5780
|
}
|
|
@@ -5784,7 +5785,7 @@ function Vn(e, t, n) {
|
|
|
5784
5785
|
let c = s[1].length;
|
|
5785
5786
|
if (c < a) break;
|
|
5786
5787
|
if (c > a) {
|
|
5787
|
-
let { items: t, endIndex: a } =
|
|
5788
|
+
let { items: t, endIndex: a } = Bn(e, i, n);
|
|
5788
5789
|
r.length > 0 && r[r.length - 1].children.push(...t), i = a;
|
|
5789
5790
|
continue;
|
|
5790
5791
|
}
|
|
@@ -5974,67 +5975,67 @@ var Y = {
|
|
|
5974
5975
|
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
5976
|
//#endregion
|
|
5976
5977
|
//#region src/forms/question-wrapper.tsx
|
|
5977
|
-
var
|
|
5978
|
-
let { t: d } =
|
|
5979
|
-
return /* @__PURE__ */
|
|
5978
|
+
var Vn = ({ title: e, icon: t, description: n, image: r, children: i, onPrevious: a, onNext: o, onQuit: s, isValid: c, hasPreviousStep: l, hasNextStep: u }) => {
|
|
5979
|
+
let { t: d } = Ze();
|
|
5980
|
+
return /* @__PURE__ */ h("div", {
|
|
5980
5981
|
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__ */
|
|
5982
|
+
children: [/* @__PURE__ */ h("div", {
|
|
5982
5983
|
className: "flex flex-col justify-between order-2 md:order-1",
|
|
5983
5984
|
children: [
|
|
5984
|
-
/* @__PURE__ */
|
|
5985
|
+
/* @__PURE__ */ h("div", {
|
|
5985
5986
|
className: "flex flex-col",
|
|
5986
|
-
children: [/* @__PURE__ */
|
|
5987
|
+
children: [/* @__PURE__ */ h("div", {
|
|
5987
5988
|
className: "flex flex-col gap-1 md:gap-2 pb-3",
|
|
5988
5989
|
children: [
|
|
5989
|
-
t && /* @__PURE__ */
|
|
5990
|
+
t && /* @__PURE__ */ m("div", {
|
|
5990
5991
|
className: K("h-8 w-8 rounded-lg overflow-hidden mb-1 md:mb-2", r ? "hidden md:block" : "block"),
|
|
5991
|
-
children: /* @__PURE__ */
|
|
5992
|
+
children: /* @__PURE__ */ m("img", {
|
|
5992
5993
|
className: "w-full h-full object-cover",
|
|
5993
5994
|
src: t,
|
|
5994
5995
|
alt: "icon"
|
|
5995
5996
|
})
|
|
5996
5997
|
}),
|
|
5997
|
-
/* @__PURE__ */
|
|
5998
|
+
/* @__PURE__ */ m(J, {
|
|
5998
5999
|
variant: "H2",
|
|
5999
6000
|
children: e
|
|
6000
6001
|
}),
|
|
6001
|
-
n && n.trim().replace(/\n{3,}/g, "\n\n").split("\n\n").map((e, t) => /* @__PURE__ */
|
|
6002
|
+
n && n.trim().replace(/\n{3,}/g, "\n\n").split("\n\n").map((e, t) => /* @__PURE__ */ m(J, {
|
|
6002
6003
|
significance: "secondary",
|
|
6003
6004
|
children: e.trim()
|
|
6004
6005
|
}, t))
|
|
6005
6006
|
]
|
|
6006
6007
|
}), i]
|
|
6007
6008
|
}),
|
|
6008
|
-
/* @__PURE__ */
|
|
6009
|
+
/* @__PURE__ */ h("div", {
|
|
6009
6010
|
className: "flex justify-end pt-4 gap-2",
|
|
6010
|
-
children: [l && /* @__PURE__ */
|
|
6011
|
+
children: [l && /* @__PURE__ */ m(q, {
|
|
6011
6012
|
variant: "subtle",
|
|
6012
6013
|
onClick: a,
|
|
6013
|
-
iconBefore: /* @__PURE__ */
|
|
6014
|
+
iconBefore: /* @__PURE__ */ m(mt, {}),
|
|
6014
6015
|
disabled: !a,
|
|
6015
6016
|
text: d("Previous")
|
|
6016
|
-
}), /* @__PURE__ */
|
|
6017
|
+
}), /* @__PURE__ */ m(q, {
|
|
6017
6018
|
variant: "subtle",
|
|
6018
6019
|
onClick: o,
|
|
6019
|
-
iconAfter: /* @__PURE__ */
|
|
6020
|
+
iconAfter: /* @__PURE__ */ m(ht, {}),
|
|
6020
6021
|
disabled: !o || !c,
|
|
6021
6022
|
text: d(u ? "Next" : "Submit")
|
|
6022
6023
|
})]
|
|
6023
6024
|
}),
|
|
6024
|
-
s && /* @__PURE__ */
|
|
6025
|
+
s && /* @__PURE__ */ m(q, {
|
|
6025
6026
|
className: "absolute -top-2 -right-2",
|
|
6026
6027
|
variant: "secondary",
|
|
6027
6028
|
size: "xsmall",
|
|
6028
6029
|
onClick: s,
|
|
6029
|
-
iconAfter: /* @__PURE__ */
|
|
6030
|
+
iconAfter: /* @__PURE__ */ m(xt, {}),
|
|
6030
6031
|
"aria-label": "quit"
|
|
6031
6032
|
})
|
|
6032
6033
|
]
|
|
6033
|
-
}), r && /* @__PURE__ */
|
|
6034
|
+
}), r && /* @__PURE__ */ m("div", {
|
|
6034
6035
|
className: "flex flex-col justify-center order-1 md:order-2",
|
|
6035
|
-
children: /* @__PURE__ */
|
|
6036
|
+
children: /* @__PURE__ */ m("div", {
|
|
6036
6037
|
className: "rounded-lg overflow-hidden mb-6 md:mb-0",
|
|
6037
|
-
children: /* @__PURE__ */
|
|
6038
|
+
children: /* @__PURE__ */ m("img", {
|
|
6038
6039
|
className: "w-full h-full object-cover aspect-video md:aspect-square",
|
|
6039
6040
|
src: r,
|
|
6040
6041
|
alt: "image"
|
|
@@ -6042,7 +6043,7 @@ var Hn = ({ title: e, icon: t, description: n, image: r, children: i, onPrevious
|
|
|
6042
6043
|
})
|
|
6043
6044
|
})]
|
|
6044
6045
|
});
|
|
6045
|
-
},
|
|
6046
|
+
}, 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
6047
|
title: e,
|
|
6047
6048
|
icon: t,
|
|
6048
6049
|
description: n,
|
|
@@ -6052,28 +6053,28 @@ var Hn = ({ title: e, icon: t, description: n, image: r, children: i, onPrevious
|
|
|
6052
6053
|
onQuit: o,
|
|
6053
6054
|
isValid: f,
|
|
6054
6055
|
hasPreviousStep: p,
|
|
6055
|
-
hasNextStep:
|
|
6056
|
-
children: /* @__PURE__ */
|
|
6056
|
+
hasNextStep: g,
|
|
6057
|
+
children: /* @__PURE__ */ m("div", {
|
|
6057
6058
|
className: "flex flex-col max-h-[272px] md:max-h-full overflow-y-auto scrollbar-thin",
|
|
6058
|
-
children: u === 1 ? /* @__PURE__ */
|
|
6059
|
+
children: u === 1 ? /* @__PURE__ */ m("div", {
|
|
6059
6060
|
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__ */
|
|
6061
|
+
children: s.map((e) => /* @__PURE__ */ m("div", { children: /* @__PURE__ */ h("button", {
|
|
6061
6062
|
onClick: () => c(e.id),
|
|
6062
6063
|
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__ */
|
|
6064
|
+
children: [/* @__PURE__ */ m(J, {
|
|
6064
6065
|
variant: "B1Button",
|
|
6065
6066
|
children: e.text
|
|
6066
|
-
}), /* @__PURE__ */
|
|
6067
|
+
}), /* @__PURE__ */ m(Un, {
|
|
6067
6068
|
size: 20,
|
|
6068
6069
|
selected: l.includes(e.id)
|
|
6069
6070
|
})]
|
|
6070
6071
|
}) }, e.id))
|
|
6071
|
-
}) : /* @__PURE__ */
|
|
6072
|
+
}) : /* @__PURE__ */ m("div", {
|
|
6072
6073
|
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__ */
|
|
6074
|
+
children: s.map((e) => /* @__PURE__ */ m("div", { children: /* @__PURE__ */ m("button", {
|
|
6074
6075
|
onClick: () => c(e.id),
|
|
6075
6076
|
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__ */
|
|
6077
|
+
children: /* @__PURE__ */ m(J, {
|
|
6077
6078
|
variant: "B1Button",
|
|
6078
6079
|
significance: l.includes(e.id) ? "quaternary" : "primary",
|
|
6079
6080
|
children: e.text
|
|
@@ -6081,16 +6082,16 @@ var Hn = ({ title: e, icon: t, description: n, image: r, children: i, onPrevious
|
|
|
6081
6082
|
}) }, e.id))
|
|
6082
6083
|
})
|
|
6083
6084
|
})
|
|
6084
|
-
}),
|
|
6085
|
+
}), Un = ({ size: e = 16, strokeColor: t = "currentColor", fillColor: n = "none", selected: r = !1 }) => {
|
|
6085
6086
|
let i = e + 1, a = i / 2, o = (e - 2) / 2;
|
|
6086
|
-
return /* @__PURE__ */
|
|
6087
|
+
return /* @__PURE__ */ h("svg", {
|
|
6087
6088
|
className: "shrink-0",
|
|
6088
6089
|
width: e,
|
|
6089
6090
|
height: e,
|
|
6090
6091
|
viewBox: `0 0 ${i} ${i}`,
|
|
6091
6092
|
fill: r ? n : "none",
|
|
6092
6093
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6093
|
-
children: [/* @__PURE__ */
|
|
6094
|
+
children: [/* @__PURE__ */ m("circle", {
|
|
6094
6095
|
cx: a,
|
|
6095
6096
|
cy: a,
|
|
6096
6097
|
r: o,
|
|
@@ -6098,16 +6099,16 @@ var Hn = ({ title: e, icon: t, description: n, image: r, children: i, onPrevious
|
|
|
6098
6099
|
strokeWidth: "1.5",
|
|
6099
6100
|
strokeLinecap: "round",
|
|
6100
6101
|
strokeLinejoin: "round"
|
|
6101
|
-
}), r && /* @__PURE__ */
|
|
6102
|
+
}), r && /* @__PURE__ */ m("circle", {
|
|
6102
6103
|
cx: a,
|
|
6103
6104
|
cy: a,
|
|
6104
6105
|
r: o - 3,
|
|
6105
6106
|
fill: t
|
|
6106
6107
|
})]
|
|
6107
6108
|
});
|
|
6108
|
-
},
|
|
6109
|
-
let { t:
|
|
6110
|
-
return /* @__PURE__ */
|
|
6109
|
+
}, Wn = ({ title: e, icon: t, description: n, image: r, onPrevious: i, onNext: a, onQuit: o, inputText: s, setInputText: c, maxCharacters: l, placeholder: u, isValid: d, hasPreviousStep: f, hasNextStep: p }) => {
|
|
6110
|
+
let { t: g } = Ze();
|
|
6111
|
+
return /* @__PURE__ */ m(Vn, {
|
|
6111
6112
|
title: e,
|
|
6112
6113
|
icon: t,
|
|
6113
6114
|
description: n,
|
|
@@ -6115,130 +6116,130 @@ var Hn = ({ title: e, icon: t, description: n, image: r, children: i, onPrevious
|
|
|
6115
6116
|
onPrevious: i,
|
|
6116
6117
|
onNext: a,
|
|
6117
6118
|
onQuit: o,
|
|
6118
|
-
isValid:
|
|
6119
|
-
hasPreviousStep:
|
|
6120
|
-
hasNextStep:
|
|
6121
|
-
children: /* @__PURE__ */
|
|
6119
|
+
isValid: d,
|
|
6120
|
+
hasPreviousStep: f,
|
|
6121
|
+
hasNextStep: p,
|
|
6122
|
+
children: /* @__PURE__ */ h("div", {
|
|
6122
6123
|
className: "flex flex-col py-3 gap-2",
|
|
6123
|
-
children: [l && /* @__PURE__ */
|
|
6124
|
+
children: [l && /* @__PURE__ */ h("div", {
|
|
6124
6125
|
className: "flex items-center justify-between",
|
|
6125
|
-
children: [/* @__PURE__ */
|
|
6126
|
+
children: [/* @__PURE__ */ m(J, {
|
|
6126
6127
|
significance: "secondary",
|
|
6127
|
-
children:
|
|
6128
|
-
}), /* @__PURE__ */
|
|
6128
|
+
children: g("Max {{maxCharacters}} characters", { maxCharacters: l })
|
|
6129
|
+
}), /* @__PURE__ */ m(J, {
|
|
6129
6130
|
significance: "secondary",
|
|
6130
6131
|
children: `${s.length}/${l}`
|
|
6131
6132
|
})]
|
|
6132
|
-
}), /* @__PURE__ */
|
|
6133
|
+
}), /* @__PURE__ */ h("div", {
|
|
6133
6134
|
className: "flex flex-col relative",
|
|
6134
|
-
children: [/* @__PURE__ */
|
|
6135
|
+
children: [/* @__PURE__ */ m(J, {
|
|
6135
6136
|
as: "div",
|
|
6136
6137
|
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
6138
|
children: s
|
|
6138
|
-
}), /* @__PURE__ */
|
|
6139
|
+
}), /* @__PURE__ */ m("textarea", {
|
|
6139
6140
|
id: "primary",
|
|
6140
|
-
placeholder:
|
|
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
|
+
placeholder: u ?? g("Type your answer here"),
|
|
6142
|
+
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
6143
|
value: s,
|
|
6143
6144
|
onChange: (e) => c(e.target.value)
|
|
6144
6145
|
})]
|
|
6145
6146
|
})]
|
|
6146
6147
|
})
|
|
6147
6148
|
});
|
|
6148
|
-
},
|
|
6149
|
+
}, Gn = ({ title: e, icon: t, description: n, image: r, children: i, wrapperClassName: a }) => /* @__PURE__ */ h("div", {
|
|
6149
6150
|
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__ */
|
|
6151
|
+
children: [/* @__PURE__ */ h("div", {
|
|
6151
6152
|
className: "flex flex-col justify-between gap-6 md:gap-8 order-2 md:order-1",
|
|
6152
|
-
children: [/* @__PURE__ */
|
|
6153
|
+
children: [/* @__PURE__ */ h("div", {
|
|
6153
6154
|
className: "flex flex-col gap-6 md:gap-8",
|
|
6154
|
-
children: [/* @__PURE__ */
|
|
6155
|
+
children: [/* @__PURE__ */ h("div", {
|
|
6155
6156
|
className: "flex flex-col gap-2 md:gap-4",
|
|
6156
|
-
children: [t && /* @__PURE__ */
|
|
6157
|
+
children: [t && /* @__PURE__ */ m("div", {
|
|
6157
6158
|
className: K("h-8 w-8 rounded-lg overflow-hidden", r ? "hidden md:block" : "block"),
|
|
6158
|
-
children: /* @__PURE__ */
|
|
6159
|
+
children: /* @__PURE__ */ m("img", {
|
|
6159
6160
|
className: "w-full h-full object-cover",
|
|
6160
6161
|
src: t,
|
|
6161
6162
|
alt: "icon"
|
|
6162
6163
|
})
|
|
6163
|
-
}), /* @__PURE__ */
|
|
6164
|
+
}), /* @__PURE__ */ m(J, {
|
|
6164
6165
|
variant: "H2",
|
|
6165
6166
|
children: e
|
|
6166
6167
|
})]
|
|
6167
|
-
}), n && n.trim().replace(/\n{3,}/g, "\n\n").split("\n\n").map((e, t) => /* @__PURE__ */
|
|
6168
|
+
}), n && n.trim().replace(/\n{3,}/g, "\n\n").split("\n\n").map((e, t) => /* @__PURE__ */ m(J, { children: e.trim() }, t))]
|
|
6168
6169
|
}), i]
|
|
6169
|
-
}), r && /* @__PURE__ */
|
|
6170
|
+
}), r && /* @__PURE__ */ m("div", {
|
|
6170
6171
|
className: "flex flex-col justify-center order-1 md:order-2",
|
|
6171
|
-
children: /* @__PURE__ */
|
|
6172
|
+
children: /* @__PURE__ */ m("div", {
|
|
6172
6173
|
className: "rounded-lg overflow-hidden mb-6 md:mb-0",
|
|
6173
|
-
children: /* @__PURE__ */
|
|
6174
|
+
children: /* @__PURE__ */ m("img", {
|
|
6174
6175
|
className: "w-full h-full object-cover aspect-video md:aspect-square",
|
|
6175
6176
|
src: r,
|
|
6176
6177
|
alt: "image"
|
|
6177
6178
|
})
|
|
6178
6179
|
})
|
|
6179
6180
|
})]
|
|
6180
|
-
}),
|
|
6181
|
+
}), Kn = ({ title: e, icon: t, description: n, image: r, quitText: i, onQuit: a, externalLink: o }) => /* @__PURE__ */ h(Gn, {
|
|
6181
6182
|
title: e,
|
|
6182
6183
|
icon: t,
|
|
6183
6184
|
description: n,
|
|
6184
6185
|
image: r,
|
|
6185
|
-
children: [/* @__PURE__ */
|
|
6186
|
+
children: [/* @__PURE__ */ m("div", {
|
|
6186
6187
|
className: "flex justify-end gap-2",
|
|
6187
|
-
children: o ? /* @__PURE__ */
|
|
6188
|
+
children: o ? /* @__PURE__ */ m(q, {
|
|
6188
6189
|
variant: "secondary",
|
|
6189
6190
|
text: i,
|
|
6190
|
-
iconAfter: /* @__PURE__ */
|
|
6191
|
+
iconAfter: /* @__PURE__ */ m(ft, {}),
|
|
6191
6192
|
onClick: () => {
|
|
6192
6193
|
window.open(o, "_blank"), a();
|
|
6193
6194
|
}
|
|
6194
|
-
}) : /* @__PURE__ */
|
|
6195
|
+
}) : /* @__PURE__ */ m(q, {
|
|
6195
6196
|
variant: "secondary",
|
|
6196
6197
|
onClick: a,
|
|
6197
6198
|
text: i
|
|
6198
6199
|
})
|
|
6199
|
-
}), o && /* @__PURE__ */
|
|
6200
|
+
}), o && /* @__PURE__ */ m(q, {
|
|
6200
6201
|
className: "absolute -top-2 -right-2 md:-top-4 md:-right-4",
|
|
6201
6202
|
variant: "secondary",
|
|
6202
6203
|
size: "small",
|
|
6203
6204
|
onClick: a,
|
|
6204
|
-
iconAfter: /* @__PURE__ */
|
|
6205
|
+
iconAfter: /* @__PURE__ */ m(xt, {}),
|
|
6205
6206
|
"aria-label": "quit"
|
|
6206
6207
|
})]
|
|
6207
|
-
}),
|
|
6208
|
+
}), qn = ({ title: e, icon: t, description: n, image: r, quitText: i, onQuit: a, startText: o, onStart: s }) => /* @__PURE__ */ h(Gn, {
|
|
6208
6209
|
title: e,
|
|
6209
6210
|
icon: t,
|
|
6210
6211
|
description: n,
|
|
6211
6212
|
image: r,
|
|
6212
6213
|
wrapperClassName: "relative",
|
|
6213
|
-
children: [/* @__PURE__ */
|
|
6214
|
+
children: [/* @__PURE__ */ h("div", {
|
|
6214
6215
|
className: "flex justify-end gap-2",
|
|
6215
|
-
children: [a && i && /* @__PURE__ */
|
|
6216
|
+
children: [a && i && /* @__PURE__ */ m(q, {
|
|
6216
6217
|
variant: "subtle",
|
|
6217
6218
|
text: i,
|
|
6218
6219
|
onClick: a
|
|
6219
|
-
}), /* @__PURE__ */
|
|
6220
|
+
}), /* @__PURE__ */ m(q, {
|
|
6220
6221
|
variant: "secondary",
|
|
6221
6222
|
text: o,
|
|
6222
6223
|
onClick: s
|
|
6223
6224
|
})]
|
|
6224
|
-
}), a && /* @__PURE__ */
|
|
6225
|
+
}), a && /* @__PURE__ */ m(q, {
|
|
6225
6226
|
className: "absolute -top-2 -right-2",
|
|
6226
6227
|
variant: "secondary",
|
|
6227
6228
|
size: "xsmall",
|
|
6228
6229
|
onClick: a,
|
|
6229
|
-
iconAfter: /* @__PURE__ */
|
|
6230
|
+
iconAfter: /* @__PURE__ */ m(xt, {}),
|
|
6230
6231
|
"aria-label": "quit"
|
|
6231
6232
|
})]
|
|
6232
|
-
}),
|
|
6233
|
-
function
|
|
6234
|
-
return
|
|
6233
|
+
}), Jn = {};
|
|
6234
|
+
function Yn() {
|
|
6235
|
+
return Jn;
|
|
6235
6236
|
}
|
|
6236
|
-
function
|
|
6237
|
-
|
|
6237
|
+
function Xn(e) {
|
|
6238
|
+
Jn = e;
|
|
6238
6239
|
}
|
|
6239
6240
|
//#endregion
|
|
6240
6241
|
//#region ../node_modules/date-fns/locale/en-US/_lib/formatDistance.js
|
|
6241
|
-
var
|
|
6242
|
+
var Zn = {
|
|
6242
6243
|
lessThanXSeconds: {
|
|
6243
6244
|
one: "less than a second",
|
|
6244
6245
|
other: "less than {{count}} seconds"
|
|
@@ -6300,13 +6301,13 @@ var Qn = {
|
|
|
6300
6301
|
one: "almost 1 year",
|
|
6301
6302
|
other: "almost {{count}} years"
|
|
6302
6303
|
}
|
|
6303
|
-
},
|
|
6304
|
-
let r, i =
|
|
6304
|
+
}, Qn = (e, t, n) => {
|
|
6305
|
+
let r, i = Zn[e];
|
|
6305
6306
|
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
6307
|
};
|
|
6307
6308
|
//#endregion
|
|
6308
6309
|
//#region ../node_modules/date-fns/locale/_lib/buildFormatLongFn.js
|
|
6309
|
-
function
|
|
6310
|
+
function $n(e) {
|
|
6310
6311
|
return (t = {}) => {
|
|
6311
6312
|
let n = t.width ? String(t.width) : e.defaultWidth;
|
|
6312
6313
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
@@ -6314,14 +6315,14 @@ function er(e) {
|
|
|
6314
6315
|
}
|
|
6315
6316
|
//#endregion
|
|
6316
6317
|
//#region ../node_modules/date-fns/locale/en-US/_lib/formatRelative.js
|
|
6317
|
-
var
|
|
6318
|
+
var er = {
|
|
6318
6319
|
lastWeek: "'last' eeee 'at' p",
|
|
6319
6320
|
yesterday: "'yesterday at' p",
|
|
6320
6321
|
today: "'today at' p",
|
|
6321
6322
|
tomorrow: "'tomorrow at' p",
|
|
6322
6323
|
nextWeek: "eeee 'at' p",
|
|
6323
6324
|
other: "P"
|
|
6324
|
-
},
|
|
6325
|
+
}, tr = (e, t, n, r) => er[e];
|
|
6325
6326
|
//#endregion
|
|
6326
6327
|
//#region ../node_modules/date-fns/locale/_lib/buildLocalizeFn.js
|
|
6327
6328
|
function X(e) {
|
|
@@ -6338,7 +6339,7 @@ function X(e) {
|
|
|
6338
6339
|
return i[a];
|
|
6339
6340
|
};
|
|
6340
6341
|
}
|
|
6341
|
-
var
|
|
6342
|
+
var nr = {
|
|
6342
6343
|
ordinalNumber: (e, t) => {
|
|
6343
6344
|
let n = Number(e), r = n % 100;
|
|
6344
6345
|
if (r > 20 || r < 10) switch (r % 10) {
|
|
@@ -6543,7 +6544,7 @@ function Z(e) {
|
|
|
6543
6544
|
return (t, n = {}) => {
|
|
6544
6545
|
let r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(i);
|
|
6545
6546
|
if (!a) return null;
|
|
6546
|
-
let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ?
|
|
6547
|
+
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
6548
|
l = e.valueCallback ? e.valueCallback(c) : c, l = n.valueCallback ? n.valueCallback(l) : l;
|
|
6548
6549
|
let u = t.slice(o.length);
|
|
6549
6550
|
return {
|
|
@@ -6552,15 +6553,15 @@ function Z(e) {
|
|
|
6552
6553
|
};
|
|
6553
6554
|
};
|
|
6554
6555
|
}
|
|
6555
|
-
function
|
|
6556
|
+
function rr(e, t) {
|
|
6556
6557
|
for (let n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) return n;
|
|
6557
6558
|
}
|
|
6558
|
-
function
|
|
6559
|
+
function ir(e, t) {
|
|
6559
6560
|
for (let n = 0; n < e.length; n++) if (t(e[n])) return n;
|
|
6560
6561
|
}
|
|
6561
6562
|
//#endregion
|
|
6562
6563
|
//#region ../node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
|
|
6563
|
-
function
|
|
6564
|
+
function ar(e) {
|
|
6564
6565
|
return (t, n = {}) => {
|
|
6565
6566
|
let r = t.match(e.matchPattern);
|
|
6566
6567
|
if (!r) return null;
|
|
@@ -6575,8 +6576,8 @@ function or(e) {
|
|
|
6575
6576
|
};
|
|
6576
6577
|
};
|
|
6577
6578
|
}
|
|
6578
|
-
var
|
|
6579
|
-
ordinalNumber:
|
|
6579
|
+
var or = {
|
|
6580
|
+
ordinalNumber: ar({
|
|
6580
6581
|
matchPattern: /^(\d+)(th|st|nd|rd)?/i,
|
|
6581
6582
|
parsePattern: /\d+/i,
|
|
6582
6583
|
valueCallback: (e) => parseInt(e, 10)
|
|
@@ -6697,19 +6698,19 @@ var sr = {
|
|
|
6697
6698
|
};
|
|
6698
6699
|
//#endregion
|
|
6699
6700
|
//#region ../node_modules/date-fns/setDefaultOptions.js
|
|
6700
|
-
function
|
|
6701
|
-
let t = {}, n =
|
|
6701
|
+
function sr(e) {
|
|
6702
|
+
let t = {}, n = Yn();
|
|
6702
6703
|
for (let e in n) Object.prototype.hasOwnProperty.call(n, e) && (t[e] = n[e]);
|
|
6703
6704
|
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (e[n] === void 0 ? delete t[n] : t[n] = e[n]);
|
|
6704
|
-
|
|
6705
|
+
Xn(t);
|
|
6705
6706
|
}
|
|
6706
6707
|
//#endregion
|
|
6707
6708
|
//#region ../node_modules/date-fns/locale/en-GB.js
|
|
6708
|
-
var
|
|
6709
|
+
var cr = {
|
|
6709
6710
|
code: "en-GB",
|
|
6710
|
-
formatDistance:
|
|
6711
|
+
formatDistance: Qn,
|
|
6711
6712
|
formatLong: {
|
|
6712
|
-
date:
|
|
6713
|
+
date: $n({
|
|
6713
6714
|
formats: {
|
|
6714
6715
|
full: "EEEE, d MMMM yyyy",
|
|
6715
6716
|
long: "d MMMM yyyy",
|
|
@@ -6718,7 +6719,7 @@ var lr = {
|
|
|
6718
6719
|
},
|
|
6719
6720
|
defaultWidth: "full"
|
|
6720
6721
|
}),
|
|
6721
|
-
time:
|
|
6722
|
+
time: $n({
|
|
6722
6723
|
formats: {
|
|
6723
6724
|
full: "HH:mm:ss zzzz",
|
|
6724
6725
|
long: "HH:mm:ss z",
|
|
@@ -6727,7 +6728,7 @@ var lr = {
|
|
|
6727
6728
|
},
|
|
6728
6729
|
defaultWidth: "full"
|
|
6729
6730
|
}),
|
|
6730
|
-
dateTime:
|
|
6731
|
+
dateTime: $n({
|
|
6731
6732
|
formats: {
|
|
6732
6733
|
full: "{{date}} 'at' {{time}}",
|
|
6733
6734
|
long: "{{date}} 'at' {{time}}",
|
|
@@ -6737,20 +6738,20 @@ var lr = {
|
|
|
6737
6738
|
defaultWidth: "full"
|
|
6738
6739
|
})
|
|
6739
6740
|
},
|
|
6740
|
-
formatRelative:
|
|
6741
|
-
localize:
|
|
6742
|
-
match:
|
|
6741
|
+
formatRelative: tr,
|
|
6742
|
+
localize: nr,
|
|
6743
|
+
match: or,
|
|
6743
6744
|
options: {
|
|
6744
6745
|
weekStartsOn: 1,
|
|
6745
6746
|
firstWeekContainsDate: 4
|
|
6746
6747
|
}
|
|
6747
|
-
}, { slice:
|
|
6748
|
-
function
|
|
6749
|
-
return
|
|
6748
|
+
}, { slice: lr, forEach: ur } = [];
|
|
6749
|
+
function dr(e) {
|
|
6750
|
+
return ur.call(lr.call(arguments, 1), (t) => {
|
|
6750
6751
|
if (t) for (let n in t) e[n] === void 0 && (e[n] = t[n]);
|
|
6751
6752
|
}), e;
|
|
6752
6753
|
}
|
|
6753
|
-
function
|
|
6754
|
+
function fr(e) {
|
|
6754
6755
|
return typeof e == "string" ? [
|
|
6755
6756
|
/<\s*script.*?>/i,
|
|
6756
6757
|
/<\s*\/\s*script\s*>/i,
|
|
@@ -6767,7 +6768,7 @@ function pr(e) {
|
|
|
6767
6768
|
/innerHTML/i
|
|
6768
6769
|
].some((t) => t.test(e)) : !1;
|
|
6769
6770
|
}
|
|
6770
|
-
var
|
|
6771
|
+
var pr = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, mr = function(e, t) {
|
|
6771
6772
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { path: "/" }, r = `${e}=${encodeURIComponent(t)}`;
|
|
6772
6773
|
if (n.maxAge > 0) {
|
|
6773
6774
|
let e = n.maxAge - 0;
|
|
@@ -6775,11 +6776,11 @@ var mr = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, hr = function(e, t) {
|
|
|
6775
6776
|
r += `; Max-Age=${Math.floor(e)}`;
|
|
6776
6777
|
}
|
|
6777
6778
|
if (n.domain) {
|
|
6778
|
-
if (!
|
|
6779
|
+
if (!pr.test(n.domain)) throw TypeError("option domain is invalid");
|
|
6779
6780
|
r += `; Domain=${n.domain}`;
|
|
6780
6781
|
}
|
|
6781
6782
|
if (n.path) {
|
|
6782
|
-
if (!
|
|
6783
|
+
if (!pr.test(n.path)) throw TypeError("option path is invalid");
|
|
6783
6784
|
r += `; Path=${n.path}`;
|
|
6784
6785
|
}
|
|
6785
6786
|
if (n.expires) {
|
|
@@ -6802,13 +6803,13 @@ var mr = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, hr = function(e, t) {
|
|
|
6802
6803
|
default: throw TypeError("option sameSite is invalid");
|
|
6803
6804
|
}
|
|
6804
6805
|
return n.partitioned && (r += "; Partitioned"), r;
|
|
6805
|
-
},
|
|
6806
|
+
}, hr = {
|
|
6806
6807
|
create(e, t, n, r) {
|
|
6807
6808
|
let i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
6808
6809
|
path: "/",
|
|
6809
6810
|
sameSite: "strict"
|
|
6810
6811
|
};
|
|
6811
|
-
n && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + n * 60 * 1e3)), r && (i.domain = r), document.cookie =
|
|
6812
|
+
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
6813
|
},
|
|
6813
6814
|
read(e) {
|
|
6814
6815
|
let t = `${e}=`, n = document.cookie.split(";");
|
|
@@ -6822,17 +6823,17 @@ var mr = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, hr = function(e, t) {
|
|
|
6822
6823
|
remove(e, t) {
|
|
6823
6824
|
this.create(e, "", -1, t);
|
|
6824
6825
|
}
|
|
6825
|
-
},
|
|
6826
|
+
}, gr = {
|
|
6826
6827
|
name: "cookie",
|
|
6827
6828
|
lookup(e) {
|
|
6828
6829
|
let { lookupCookie: t } = e;
|
|
6829
|
-
if (t && typeof document < "u") return
|
|
6830
|
+
if (t && typeof document < "u") return hr.read(t) || void 0;
|
|
6830
6831
|
},
|
|
6831
6832
|
cacheUserLanguage(e, t) {
|
|
6832
6833
|
let { lookupCookie: n, cookieMinutes: r, cookieDomain: i, cookieOptions: a } = t;
|
|
6833
|
-
n && typeof document < "u" &&
|
|
6834
|
+
n && typeof document < "u" && hr.create(n, e, r, i, a);
|
|
6834
6835
|
}
|
|
6835
|
-
},
|
|
6836
|
+
}, _r = {
|
|
6836
6837
|
name: "querystring",
|
|
6837
6838
|
lookup(e) {
|
|
6838
6839
|
let { lookupQuerystring: t } = e, n;
|
|
@@ -6847,7 +6848,7 @@ var mr = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, hr = function(e, t) {
|
|
|
6847
6848
|
}
|
|
6848
6849
|
return n;
|
|
6849
6850
|
}
|
|
6850
|
-
},
|
|
6851
|
+
}, vr = {
|
|
6851
6852
|
name: "hash",
|
|
6852
6853
|
lookup(e) {
|
|
6853
6854
|
let { lookupHash: t, lookupFromHashIndex: n } = e, r;
|
|
@@ -6871,7 +6872,7 @@ var mr = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, hr = function(e, t) {
|
|
|
6871
6872
|
}
|
|
6872
6873
|
return r;
|
|
6873
6874
|
}
|
|
6874
|
-
}, Q = null,
|
|
6875
|
+
}, Q = null, yr = () => {
|
|
6875
6876
|
if (Q !== null) return Q;
|
|
6876
6877
|
try {
|
|
6877
6878
|
if (Q = typeof window < "u" && window.localStorage !== null, !Q) return !1;
|
|
@@ -6881,17 +6882,17 @@ var mr = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, hr = function(e, t) {
|
|
|
6881
6882
|
Q = !1;
|
|
6882
6883
|
}
|
|
6883
6884
|
return Q;
|
|
6884
|
-
},
|
|
6885
|
+
}, br = {
|
|
6885
6886
|
name: "localStorage",
|
|
6886
6887
|
lookup(e) {
|
|
6887
6888
|
let { lookupLocalStorage: t } = e;
|
|
6888
|
-
if (t &&
|
|
6889
|
+
if (t && yr()) return window.localStorage.getItem(t) || void 0;
|
|
6889
6890
|
},
|
|
6890
6891
|
cacheUserLanguage(e, t) {
|
|
6891
6892
|
let { lookupLocalStorage: n } = t;
|
|
6892
|
-
n &&
|
|
6893
|
+
n && yr() && window.localStorage.setItem(n, e);
|
|
6893
6894
|
}
|
|
6894
|
-
}, $ = null,
|
|
6895
|
+
}, $ = null, xr = () => {
|
|
6895
6896
|
if ($ !== null) return $;
|
|
6896
6897
|
try {
|
|
6897
6898
|
if ($ = typeof window < "u" && window.sessionStorage !== null, !$) return !1;
|
|
@@ -6901,17 +6902,17 @@ var mr = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, hr = function(e, t) {
|
|
|
6901
6902
|
$ = !1;
|
|
6902
6903
|
}
|
|
6903
6904
|
return $;
|
|
6904
|
-
},
|
|
6905
|
+
}, Sr = {
|
|
6905
6906
|
name: "sessionStorage",
|
|
6906
6907
|
lookup(e) {
|
|
6907
6908
|
let { lookupSessionStorage: t } = e;
|
|
6908
|
-
if (t &&
|
|
6909
|
+
if (t && xr()) return window.sessionStorage.getItem(t) || void 0;
|
|
6909
6910
|
},
|
|
6910
6911
|
cacheUserLanguage(e, t) {
|
|
6911
6912
|
let { lookupSessionStorage: n } = t;
|
|
6912
|
-
n &&
|
|
6913
|
+
n && xr() && window.sessionStorage.setItem(n, e);
|
|
6913
6914
|
}
|
|
6914
|
-
},
|
|
6915
|
+
}, Cr = {
|
|
6915
6916
|
name: "navigator",
|
|
6916
6917
|
lookup(e) {
|
|
6917
6918
|
let t = [];
|
|
@@ -6922,13 +6923,13 @@ var mr = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, hr = function(e, t) {
|
|
|
6922
6923
|
}
|
|
6923
6924
|
return t.length > 0 ? t : void 0;
|
|
6924
6925
|
}
|
|
6925
|
-
},
|
|
6926
|
+
}, wr = {
|
|
6926
6927
|
name: "htmlTag",
|
|
6927
6928
|
lookup(e) {
|
|
6928
6929
|
let { htmlTag: t } = e, n, r = t || (typeof document < "u" ? document.documentElement : null);
|
|
6929
6930
|
return r && typeof r.getAttribute == "function" && (n = r.getAttribute("lang")), n;
|
|
6930
6931
|
}
|
|
6931
|
-
},
|
|
6932
|
+
}, Tr = {
|
|
6932
6933
|
name: "path",
|
|
6933
6934
|
lookup(e) {
|
|
6934
6935
|
let { lookupFromPathIndex: t } = e;
|
|
@@ -6936,17 +6937,17 @@ var mr = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, hr = function(e, t) {
|
|
|
6936
6937
|
let n = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
|
|
6937
6938
|
if (Array.isArray(n)) return n[typeof t == "number" ? t : 0]?.replace("/", "");
|
|
6938
6939
|
}
|
|
6939
|
-
},
|
|
6940
|
+
}, Er = {
|
|
6940
6941
|
name: "subdomain",
|
|
6941
6942
|
lookup(e) {
|
|
6942
6943
|
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
6944
|
if (r) return r[n];
|
|
6944
6945
|
}
|
|
6945
|
-
},
|
|
6946
|
+
}, Dr = !1;
|
|
6946
6947
|
try {
|
|
6947
|
-
document.cookie,
|
|
6948
|
+
document.cookie, Dr = !0;
|
|
6948
6949
|
} catch {}
|
|
6949
|
-
var
|
|
6950
|
+
var Or = [
|
|
6950
6951
|
"querystring",
|
|
6951
6952
|
"cookie",
|
|
6952
6953
|
"localStorage",
|
|
@@ -6954,9 +6955,9 @@ var kr = [
|
|
|
6954
6955
|
"navigator",
|
|
6955
6956
|
"htmlTag"
|
|
6956
6957
|
];
|
|
6957
|
-
|
|
6958
|
-
var
|
|
6959
|
-
order:
|
|
6958
|
+
Dr || Or.splice(1, 1);
|
|
6959
|
+
var kr = () => ({
|
|
6960
|
+
order: Or,
|
|
6960
6961
|
lookupQuerystring: "lng",
|
|
6961
6962
|
lookupCookie: "i18next",
|
|
6962
6963
|
lookupLocalStorage: "i18nextLng",
|
|
@@ -6964,14 +6965,14 @@ var Ar = () => ({
|
|
|
6964
6965
|
caches: ["localStorage"],
|
|
6965
6966
|
excludeCacheFor: ["cimode"],
|
|
6966
6967
|
convertDetectedLanguage: (e) => e
|
|
6967
|
-
}),
|
|
6968
|
+
}), Ar = class {
|
|
6968
6969
|
constructor(e) {
|
|
6969
6970
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6970
6971
|
this.type = "languageDetector", this.detectors = {}, this.init(e, t);
|
|
6971
6972
|
}
|
|
6972
6973
|
init() {
|
|
6973
6974
|
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 =
|
|
6975
|
+
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
6976
|
}
|
|
6976
6977
|
addDetector(e) {
|
|
6977
6978
|
return this.detectors[e.name] = e, this;
|
|
@@ -6983,7 +6984,7 @@ var Ar = () => ({
|
|
|
6983
6984
|
let n = this.detectors[e].lookup(this.options);
|
|
6984
6985
|
n && typeof n == "string" && (n = [n]), n && (t = t.concat(n));
|
|
6985
6986
|
}
|
|
6986
|
-
}), t = t.filter((e) => e != null && !
|
|
6987
|
+
}), 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
6988
|
}
|
|
6988
6989
|
cacheUserLanguage(e) {
|
|
6989
6990
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.caches;
|
|
@@ -6992,7 +6993,7 @@ var Ar = () => ({
|
|
|
6992
6993
|
}));
|
|
6993
6994
|
}
|
|
6994
6995
|
};
|
|
6995
|
-
|
|
6996
|
+
Ar.type = "languageDetector", sr({ locale: cr }), z.use(Ar).use(Ke).init({
|
|
6996
6997
|
debug: e.debug,
|
|
6997
6998
|
fallbackLng: "en",
|
|
6998
6999
|
interpolation: { escapeValue: !1 },
|
|
@@ -7008,30 +7009,31 @@ jr.type = "languageDetector", cr({ locale: lr }), R.use(jr).use(Je).init({
|
|
|
7008
7009
|
nb: { tranlation: {} }
|
|
7009
7010
|
}
|
|
7010
7011
|
});
|
|
7011
|
-
var
|
|
7012
|
+
var jr = z, Mr = class extends Error {
|
|
7012
7013
|
errorType;
|
|
7013
7014
|
constructor(e, t) {
|
|
7014
7015
|
super(t), this.name = "FormError", this.errorType = e;
|
|
7015
7016
|
}
|
|
7016
|
-
},
|
|
7017
|
+
}, Nr = /* @__PURE__ */ v({ FormManager: () => Pr }), Pr = class {
|
|
7017
7018
|
logger;
|
|
7018
7019
|
headers;
|
|
7020
|
+
http;
|
|
7019
7021
|
config;
|
|
7020
|
-
constructor(e, t, n = {}) {
|
|
7021
|
-
this.logger = e, this.headers = t, this.config =
|
|
7022
|
+
constructor(e, t, n, r = {}) {
|
|
7023
|
+
this.logger = e, this.headers = t, this.http = n, this.config = r;
|
|
7022
7024
|
}
|
|
7023
|
-
async fetchAndDisplayForm(e,
|
|
7025
|
+
async fetchAndDisplayForm(e, t, n) {
|
|
7024
7026
|
this.logger.debug(`Fetching form config for: ${e}`);
|
|
7025
7027
|
try {
|
|
7026
|
-
let
|
|
7027
|
-
if (!
|
|
7028
|
-
let e = new
|
|
7028
|
+
let r = await this.http.get(`/external/forms/${e}`, { headers: this.headers });
|
|
7029
|
+
if (!r.ok && this.config.onFormError) {
|
|
7030
|
+
let e = new Mr("FETCH_ERROR", r.error?.message);
|
|
7029
7031
|
this.config.onFormError(e);
|
|
7030
7032
|
}
|
|
7031
|
-
|
|
7033
|
+
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
7034
|
} catch (t) {
|
|
7033
7035
|
if (this.logger.error(`Failed to fetch form config for: ${e}`, t), this.config.onFormError) {
|
|
7034
|
-
let e = new
|
|
7036
|
+
let e = new Mr("FETCH_ERROR");
|
|
7035
7037
|
this.config.onFormError(e);
|
|
7036
7038
|
}
|
|
7037
7039
|
}
|
|
@@ -7039,28 +7041,28 @@ var Mr = R, Nr = class extends Error {
|
|
|
7039
7041
|
displayForm(e, t, n) {
|
|
7040
7042
|
let r = document.createElement("div");
|
|
7041
7043
|
r.id = "nm", document.body.appendChild(r);
|
|
7042
|
-
let
|
|
7044
|
+
let a = g(r), o = i(Qe, { i18n: jr }, i(et, {
|
|
7043
7045
|
form: e,
|
|
7044
7046
|
onDismiss: async (e) => {
|
|
7045
|
-
await t(),
|
|
7047
|
+
await t(), a.unmount(), r.remove(), this.logger.info("Form dismissed", e);
|
|
7046
7048
|
},
|
|
7047
7049
|
onComplete: async (t) => {
|
|
7048
|
-
await n(), await this.postFormResponse(e, t),
|
|
7050
|
+
await n(), await this.postFormResponse(e, t), a.unmount(), r.remove(), this.logger.info("Form completed", t);
|
|
7049
7051
|
},
|
|
7050
7052
|
zIndex: this.config.zIndex
|
|
7051
7053
|
}));
|
|
7052
|
-
|
|
7054
|
+
a.render(o);
|
|
7053
7055
|
}
|
|
7054
|
-
async postFormResponse(e,
|
|
7055
|
-
this.logger.info("Posting form response",
|
|
7056
|
-
let
|
|
7057
|
-
if (!
|
|
7058
|
-
let e = new
|
|
7056
|
+
async postFormResponse(e, t) {
|
|
7057
|
+
this.logger.info("Posting form response", t);
|
|
7058
|
+
let n = await this.http.post(`/external/forms/${e.slug}`, t, { headers: this.headers });
|
|
7059
|
+
if (!n.ok && this.config.onFormError) {
|
|
7060
|
+
let e = new Mr("SUBMISSION_ERROR", n.error?.message);
|
|
7059
7061
|
this.config.onFormError(e);
|
|
7060
|
-
} else this.logger.info("Form response posted",
|
|
7062
|
+
} else this.logger.info("Form response posted", n.data);
|
|
7061
7063
|
}
|
|
7062
7064
|
};
|
|
7063
7065
|
//#endregion
|
|
7064
|
-
export {
|
|
7066
|
+
export { Nr as n, Mr as r, Pr as t };
|
|
7065
7067
|
|
|
7066
|
-
//# sourceMappingURL=form-manager-
|
|
7068
|
+
//# sourceMappingURL=form-manager-BqtPAs-A.js.map
|