@nemme/js-sdk 0.5.1 → 0.5.2
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/assets/js-sdk.css +1 -1
- package/dist/client.d.ts +1 -0
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +232 -231
- package/dist/index.esm.js.map +1 -1
- package/dist/nemme-sdk.umd.js +8 -8
- package/dist/nemme-sdk.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as x from "react";
|
|
2
|
-
import fe, { createContext as ye, useContext as He, useMemo as de, useRef as Xe, useCallback as q, useState as pe, useEffect as
|
|
2
|
+
import fe, { createContext as ye, useContext as He, useMemo as de, useRef as Xe, useCallback as q, useState as pe, useEffect as Rt, createElement as we, forwardRef as dn } from "react";
|
|
3
3
|
import { createRoot as pn } from "react-dom/client";
|
|
4
4
|
const L = (n) => typeof n == "string", ie = () => {
|
|
5
5
|
let n, e;
|
|
@@ -279,7 +279,7 @@ function ze(n, e) {
|
|
|
279
279
|
} = n(Ln());
|
|
280
280
|
return t.join(e?.keySeparator ?? ".");
|
|
281
281
|
}
|
|
282
|
-
const at = {},
|
|
282
|
+
const at = {}, Re = (n) => !L(n) && typeof n != "boolean" && typeof n != "number";
|
|
283
283
|
class ke extends Ee {
|
|
284
284
|
constructor(e, t = {}) {
|
|
285
285
|
super(), gn(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = W.create("translator");
|
|
@@ -296,7 +296,7 @@ class ke extends Ee {
|
|
|
296
296
|
if (e == null) return !1;
|
|
297
297
|
const a = this.resolve(e, r);
|
|
298
298
|
if (a?.res === void 0) return !1;
|
|
299
|
-
const s =
|
|
299
|
+
const s = Re(a.res);
|
|
300
300
|
return !(r.returnObjects === !1 && s);
|
|
301
301
|
}
|
|
302
302
|
extractFromKey(e, t) {
|
|
@@ -358,34 +358,34 @@ class ke extends Ee {
|
|
|
358
358
|
let p = m?.res;
|
|
359
359
|
const g = m?.usedKey || o, h = m?.exactUsedKey || o, w = ["[object Number]", "[object Function]", "[object RegExp]"], b = a.joinArrays !== void 0 ? a.joinArrays : this.options.joinArrays, v = !this.i18nFormat || this.i18nFormat.handleAsObject, k = a.count !== void 0 && !L(a.count), E = ke.hasDefaultValue(a), A = k ? this.pluralResolver.getSuffix(u, a.count, a) : "", F = a.ordinal && k ? this.pluralResolver.getSuffix(u, a.count, {
|
|
360
360
|
ordinal: !1
|
|
361
|
-
}) : "",
|
|
362
|
-
let
|
|
363
|
-
v && !p && E && (
|
|
364
|
-
const H =
|
|
365
|
-
if (v &&
|
|
361
|
+
}) : "", T = k && !a.ordinal && a.count === 0, N = T && a[`defaultValue${this.options.pluralSeparator}zero`] || a[`defaultValue${A}`] || a[`defaultValue${F}`] || a.defaultValue;
|
|
362
|
+
let R = p;
|
|
363
|
+
v && !p && E && (R = N);
|
|
364
|
+
const H = Re(R), U = Object.prototype.toString.apply(R);
|
|
365
|
+
if (v && R && H && w.indexOf(U) < 0 && !(L(b) && Array.isArray(R))) {
|
|
366
366
|
if (!a.returnObjects && !this.options.returnObjects) {
|
|
367
367
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
368
|
-
const M = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(g,
|
|
368
|
+
const M = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(g, R, {
|
|
369
369
|
...a,
|
|
370
370
|
ns: l
|
|
371
371
|
}) : `key '${o} (${this.language})' returned an object instead of string.`;
|
|
372
372
|
return s ? (m.res = M, m.usedParams = this.getUsedParamsDetails(a), m) : M;
|
|
373
373
|
}
|
|
374
374
|
if (i) {
|
|
375
|
-
const M = Array.isArray(
|
|
376
|
-
for (const P in
|
|
377
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
375
|
+
const M = Array.isArray(R), O = M ? [] : {}, B = M ? h : g;
|
|
376
|
+
for (const P in R)
|
|
377
|
+
if (Object.prototype.hasOwnProperty.call(R, P)) {
|
|
378
378
|
const D = `${B}${i}${P}`;
|
|
379
379
|
E && !p ? O[P] = this.translate(D, {
|
|
380
380
|
...a,
|
|
381
|
-
defaultValue:
|
|
381
|
+
defaultValue: Re(N) ? N[P] : void 0,
|
|
382
382
|
joinArrays: !1,
|
|
383
383
|
ns: l
|
|
384
384
|
}) : O[P] = this.translate(D, {
|
|
385
385
|
...a,
|
|
386
386
|
joinArrays: !1,
|
|
387
387
|
ns: l
|
|
388
|
-
}), O[P] === D && (O[P] =
|
|
388
|
+
}), O[P] === D && (O[P] = R[P]);
|
|
389
389
|
}
|
|
390
390
|
p = O;
|
|
391
391
|
}
|
|
@@ -415,7 +415,7 @@ class ke extends Ee {
|
|
|
415
415
|
};
|
|
416
416
|
this.options.saveMissing && (this.options.saveMissingPlurals && k ? j.forEach((C) => {
|
|
417
417
|
const V = this.pluralResolver.getSuffixes(C, a);
|
|
418
|
-
|
|
418
|
+
T && a[`defaultValue${this.options.pluralSeparator}zero`] && V.indexOf(`${this.options.pluralSeparator}zero`) < 0 && V.push(`${this.options.pluralSeparator}zero`), V.forEach((Z) => {
|
|
419
419
|
K([C], o + Z, a[`defaultValue${Z}`] || N);
|
|
420
420
|
});
|
|
421
421
|
}) : K(j, o, N));
|
|
@@ -809,7 +809,7 @@ const On = (n) => {
|
|
|
809
809
|
return o || (o = n(he(r), a), e[i] = o), o(t);
|
|
810
810
|
};
|
|
811
811
|
}, Nn = (n) => (e, t, r) => n(he(t), r)(e);
|
|
812
|
-
class
|
|
812
|
+
class Tn {
|
|
813
813
|
constructor(e = {}) {
|
|
814
814
|
this.logger = W.create("formatter"), this.options = e, this.init(e);
|
|
815
815
|
}
|
|
@@ -888,7 +888,7 @@ class Rn {
|
|
|
888
888
|
}, e);
|
|
889
889
|
}
|
|
890
890
|
}
|
|
891
|
-
const
|
|
891
|
+
const Rn = (n, e) => {
|
|
892
892
|
n.pending[e] !== void 0 && (delete n.pending[e], n.pendingCount--);
|
|
893
893
|
};
|
|
894
894
|
class Cn extends Ee {
|
|
@@ -923,7 +923,7 @@ class Cn extends Ee {
|
|
|
923
923
|
}), this.state[e] = t ? -1 : 2, t && r && (this.state[e] = 0);
|
|
924
924
|
const o = {};
|
|
925
925
|
this.queue.forEach((l) => {
|
|
926
|
-
hn(l.loaded, [s], i),
|
|
926
|
+
hn(l.loaded, [s], i), Rn(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((c) => {
|
|
927
927
|
o[c] || (o[c] = {});
|
|
928
928
|
const d = l.loaded[c];
|
|
929
929
|
d.length && d.forEach((u) => {
|
|
@@ -1111,7 +1111,7 @@ class me extends Ee {
|
|
|
1111
1111
|
if (!this.options.isClone) {
|
|
1112
1112
|
this.modules.logger ? W.init(a(this.modules.logger), this.options) : W.init(null, this.options);
|
|
1113
1113
|
let c;
|
|
1114
|
-
this.modules.formatter ? c = this.modules.formatter : c =
|
|
1114
|
+
this.modules.formatter ? c = this.modules.formatter : c = Tn;
|
|
1115
1115
|
const d = new st(this.options);
|
|
1116
1116
|
this.store = new rt(this.options.resources, this.options);
|
|
1117
1117
|
const u = this.services;
|
|
@@ -1317,22 +1317,22 @@ class me extends Ee {
|
|
|
1317
1317
|
};
|
|
1318
1318
|
}
|
|
1319
1319
|
}
|
|
1320
|
-
const
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1320
|
+
const I = me.createInstance();
|
|
1321
|
+
I.createInstance = me.createInstance;
|
|
1322
|
+
I.createInstance;
|
|
1323
|
+
I.dir;
|
|
1324
|
+
I.init;
|
|
1325
|
+
I.loadResources;
|
|
1326
|
+
I.reloadResources;
|
|
1327
|
+
I.use;
|
|
1328
|
+
I.changeLanguage;
|
|
1329
|
+
I.getFixedT;
|
|
1330
|
+
I.t;
|
|
1331
|
+
I.exists;
|
|
1332
|
+
I.setDefaultNamespace;
|
|
1333
|
+
I.hasLoadedNamespace;
|
|
1334
|
+
I.loadNamespaces;
|
|
1335
|
+
I.loadLanguages;
|
|
1336
1336
|
const jn = (n, e, t, r) => {
|
|
1337
1337
|
const a = [t, {
|
|
1338
1338
|
code: e,
|
|
@@ -1341,9 +1341,9 @@ const jn = (n, e, t, r) => {
|
|
|
1341
1341
|
if (n?.services?.logger?.forward)
|
|
1342
1342
|
return n.services.logger.forward(a, "warn", "react-i18next::", !0);
|
|
1343
1343
|
Q(a[0]) && (a[0] = `react-i18next:: ${a[0]}`), n?.services?.logger?.warn ? n.services.logger.warn(...a) : console?.warn && console.warn(...a);
|
|
1344
|
-
}, pt = {},
|
|
1344
|
+
}, pt = {}, It = (n, e, t, r) => {
|
|
1345
1345
|
Q(t) && pt[t] || (Q(t) && (pt[t] = /* @__PURE__ */ new Date()), jn(n, e, t, r));
|
|
1346
|
-
},
|
|
1346
|
+
}, $t = (n, e) => () => {
|
|
1347
1347
|
if (n.isInitialized)
|
|
1348
1348
|
e();
|
|
1349
1349
|
else {
|
|
@@ -1355,20 +1355,20 @@ const jn = (n, e, t, r) => {
|
|
|
1355
1355
|
n.on("initialized", t);
|
|
1356
1356
|
}
|
|
1357
1357
|
}, Ue = (n, e, t) => {
|
|
1358
|
-
n.loadNamespaces(e,
|
|
1358
|
+
n.loadNamespaces(e, $t(n, t));
|
|
1359
1359
|
}, gt = (n, e, t, r) => {
|
|
1360
1360
|
if (Q(t) && (t = [t]), n.options.preload && n.options.preload.indexOf(e) > -1) return Ue(n, t, r);
|
|
1361
1361
|
t.forEach((a) => {
|
|
1362
1362
|
n.options.ns.indexOf(a) < 0 && n.options.ns.push(a);
|
|
1363
|
-
}), n.loadLanguages(e,
|
|
1364
|
-
},
|
|
1363
|
+
}), n.loadLanguages(e, $t(n, r));
|
|
1364
|
+
}, In = (n, e, t = {}) => !e.languages || !e.languages.length ? (It(e, "NO_LANGUAGES", "i18n.languages were undefined or empty", {
|
|
1365
1365
|
languages: e.languages
|
|
1366
1366
|
}), !0) : e.hasLoadedNamespace(n, {
|
|
1367
1367
|
lng: t.lng,
|
|
1368
1368
|
precheck: (r, a) => {
|
|
1369
1369
|
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && r.services.backendConnector.backend && r.isLanguageChangingTo && !a(r.isLanguageChangingTo, n)) return !1;
|
|
1370
1370
|
}
|
|
1371
|
-
}), Q = (n) => typeof n == "string",
|
|
1371
|
+
}), Q = (n) => typeof n == "string", $n = (n) => typeof n == "object" && n !== null, Dn = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, _n = {
|
|
1372
1372
|
"&": "&",
|
|
1373
1373
|
"&": "&",
|
|
1374
1374
|
"<": "<",
|
|
@@ -1484,7 +1484,7 @@ function Wn() {
|
|
|
1484
1484
|
return ht || (ht = 1, Pe.exports = Zn()), Pe.exports;
|
|
1485
1485
|
}
|
|
1486
1486
|
var Gn = Wn();
|
|
1487
|
-
const Yn = (n, e) => Q(e) ? e :
|
|
1487
|
+
const Yn = (n, e) => Q(e) ? e : $n(e) && Q(e.defaultValue) ? e.defaultValue : Array.isArray(n) ? n[n.length - 1] : n, Jn = {
|
|
1488
1488
|
t: Yn,
|
|
1489
1489
|
ready: !1
|
|
1490
1490
|
}, Xn = () => () => {
|
|
@@ -1495,7 +1495,7 @@ const Yn = (n, e) => Q(e) ? e : In(e) && Q(e.defaultValue) ? e.defaultValue : Ar
|
|
|
1495
1495
|
i18n: r,
|
|
1496
1496
|
defaultNS: a
|
|
1497
1497
|
} = He(_t) || {}, s = t || r || Hn();
|
|
1498
|
-
s && !s.reportNamespaces && (s.reportNamespaces = new qn()), s ||
|
|
1498
|
+
s && !s.reportNamespaces && (s.reportNamespaces = new qn()), s || It(s, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
|
|
1499
1499
|
const i = de(() => ({
|
|
1500
1500
|
...Un(),
|
|
1501
1501
|
...s?.options?.react,
|
|
@@ -1517,12 +1517,12 @@ const Yn = (n, e) => Q(e) ? e : In(e) && Q(e.defaultValue) ? e.defaultValue : Ar
|
|
|
1517
1517
|
d.current += 1, k();
|
|
1518
1518
|
};
|
|
1519
1519
|
return E && s.on(E, F), A && s.store.on(A, F), () => {
|
|
1520
|
-
E && E.split(" ").forEach((
|
|
1520
|
+
E && E.split(" ").forEach((T) => s.off(T, F)), A && A.split(" ").forEach((T) => s.store.off(T, F));
|
|
1521
1521
|
};
|
|
1522
1522
|
}, [s, i]), f = Xe(), m = q(() => {
|
|
1523
1523
|
if (!s)
|
|
1524
1524
|
return Jn;
|
|
1525
|
-
const k = !!(s.isInitialized || s.initializedStoreOnce) && c.every((
|
|
1525
|
+
const k = !!(s.isInitialized || s.initializedStoreOnce) && c.every((R) => In(R, s, i)), E = e.lng || s.language, A = d.current, F = f.current;
|
|
1526
1526
|
if (F && F.ready === k && F.lng === E && F.keyPrefix === l && F.revision === A)
|
|
1527
1527
|
return F;
|
|
1528
1528
|
const N = {
|
|
@@ -1537,7 +1537,7 @@ const Yn = (n, e) => Q(e) ? e : In(e) && Q(e.defaultValue) ? e.defaultValue : Ar
|
|
|
1537
1537
|
t: h,
|
|
1538
1538
|
ready: w
|
|
1539
1539
|
} = Gn.useSyncExternalStore(u, m, m);
|
|
1540
|
-
|
|
1540
|
+
Rt(() => {
|
|
1541
1541
|
if (s && !w && !o) {
|
|
1542
1542
|
const k = () => g((E) => E + 1);
|
|
1543
1543
|
e.lng ? gt(s, e.lng, c, k) : Ue(s, c, k);
|
|
@@ -1567,7 +1567,7 @@ function Qn({
|
|
|
1567
1567
|
value: r
|
|
1568
1568
|
}, t);
|
|
1569
1569
|
}
|
|
1570
|
-
var
|
|
1570
|
+
var Ie = { exports: {} }, oe = {};
|
|
1571
1571
|
/**
|
|
1572
1572
|
* @license React
|
|
1573
1573
|
* react-jsx-runtime.production.min.js
|
|
@@ -1593,7 +1593,7 @@ function er() {
|
|
|
1593
1593
|
}
|
|
1594
1594
|
var yt;
|
|
1595
1595
|
function tr() {
|
|
1596
|
-
return yt || (yt = 1,
|
|
1596
|
+
return yt || (yt = 1, Ie.exports = er()), Ie.exports;
|
|
1597
1597
|
}
|
|
1598
1598
|
var S = tr();
|
|
1599
1599
|
const nr = ({ step: n, form: e, formState: t, onDismiss: r, onNextStep: a, onPreviousStep: s, onUpdateResponse: i }) => {
|
|
@@ -1688,7 +1688,7 @@ const nr = ({ step: n, form: e, formState: t, onDismiss: r, onNextStep: a, onPre
|
|
|
1688
1688
|
selectedAlternatives: b,
|
|
1689
1689
|
onAlternativeSelect: (k) => {
|
|
1690
1690
|
if (g > 1) {
|
|
1691
|
-
const A = b, F = A.includes(k) ? A.filter((
|
|
1691
|
+
const A = b, F = A.includes(k) ? A.filter((T) => T !== k) : g && A.length >= g && g != 4 ? A : [...A, k];
|
|
1692
1692
|
i(d.id, F);
|
|
1693
1693
|
} else
|
|
1694
1694
|
b.includes(k) ? i(d.id, []) : i(d.id, [k]);
|
|
@@ -1702,7 +1702,7 @@ const nr = ({ step: n, form: e, formState: t, onDismiss: r, onNextStep: a, onPre
|
|
|
1702
1702
|
if (d.questionType === "text") {
|
|
1703
1703
|
const { title: u, description: f, image: m, maxChars: p, limited: g, required: h } = d, w = t.responses[d.id] || "", b = (g && p ? w.length <= p : !0) && (h ? w.length > 0 : !0);
|
|
1704
1704
|
return /* @__PURE__ */ S.jsx(
|
|
1705
|
-
|
|
1705
|
+
Ra,
|
|
1706
1706
|
{
|
|
1707
1707
|
title: u,
|
|
1708
1708
|
icon: e.icon,
|
|
@@ -1992,7 +1992,7 @@ var wt;
|
|
|
1992
1992
|
function ur() {
|
|
1993
1993
|
return wt || (wt = 1, bt.exports = /* @__PURE__ */ cr()), bt.exports;
|
|
1994
1994
|
}
|
|
1995
|
-
var
|
|
1995
|
+
var $ = /* @__PURE__ */ ur();
|
|
1996
1996
|
function Ht(n) {
|
|
1997
1997
|
var e, t, r = "";
|
|
1998
1998
|
if (typeof n == "string" || typeof n == "number") r += n;
|
|
@@ -2017,7 +2017,7 @@ const _ = qe, J = ({
|
|
|
2017
2017
|
loading: o = !1,
|
|
2018
2018
|
round: l = !1,
|
|
2019
2019
|
...c
|
|
2020
|
-
}) => /* @__PURE__ */
|
|
2020
|
+
}) => /* @__PURE__ */ $.jsx(
|
|
2021
2021
|
"button",
|
|
2022
2022
|
{
|
|
2023
2023
|
className: _(
|
|
@@ -2029,17 +2029,17 @@ const _ = qe, J = ({
|
|
|
2029
2029
|
),
|
|
2030
2030
|
disabled: i,
|
|
2031
2031
|
...c,
|
|
2032
|
-
children: /* @__PURE__ */
|
|
2032
|
+
children: /* @__PURE__ */ $.jsx(
|
|
2033
2033
|
Mt.Provider,
|
|
2034
2034
|
{
|
|
2035
2035
|
value: {
|
|
2036
2036
|
size: e === "xsmall" ? 12 : 16,
|
|
2037
2037
|
weight: "regular",
|
|
2038
|
-
className: _(
|
|
2038
|
+
className: _($e(n, i))
|
|
2039
2039
|
},
|
|
2040
|
-
children: o ? /* @__PURE__ */
|
|
2040
|
+
children: o ? /* @__PURE__ */ $.jsx(Vt, { className: _($e(n, i), "animate-spin") }) : /* @__PURE__ */ $.jsxs($.Fragment, { children: [
|
|
2041
2041
|
r && r,
|
|
2042
|
-
t && /* @__PURE__ */
|
|
2042
|
+
t && /* @__PURE__ */ $.jsx("span", { className: _($e(n, i), gr(e)), children: t }),
|
|
2043
2043
|
a && a
|
|
2044
2044
|
] })
|
|
2045
2045
|
}
|
|
@@ -2058,7 +2058,7 @@ const _ = qe, J = ({
|
|
|
2058
2058
|
case "subtle":
|
|
2059
2059
|
return "border border-grey-0/0 hover:bg-background-universal-overlay-light dark:hover:bg-background-universal-overlay-dark";
|
|
2060
2060
|
}
|
|
2061
|
-
},
|
|
2061
|
+
}, $e = (n, e) => {
|
|
2062
2062
|
if (e) return "text-label-tertiary-light dark:text-label-tertiary-dark";
|
|
2063
2063
|
switch (n) {
|
|
2064
2064
|
case "primary":
|
|
@@ -2090,40 +2090,89 @@ const _ = qe, J = ({
|
|
|
2090
2090
|
case "medium":
|
|
2091
2091
|
return "text-[15px] leading-[16px] -tracking-0,1";
|
|
2092
2092
|
}
|
|
2093
|
+
}, Kt = {
|
|
2094
|
+
Di1: "text-[72px] font-bold leading-[90px] -tracking-2,5",
|
|
2095
|
+
Di2: "text-[60px] font-bold leading-[72px] -tracking-2,0",
|
|
2096
|
+
Di3: "text-[48px] font-bold leading-[60px] -tracking-1,5",
|
|
2097
|
+
T1: "text-[40px] font-bold leading-[48px] -tracking-1,5",
|
|
2098
|
+
T2: "text-[32px] font-bold leading-[40px] -tracking-1",
|
|
2099
|
+
T3: "text-[24px] font-bold leading-[32px] -tracking-0,5",
|
|
2100
|
+
H1: "text-[24px] font-bold leading-[32px] -tracking-0,5",
|
|
2101
|
+
H2: "text-[20px] font-bold leading-[24px]",
|
|
2102
|
+
H3: "text-[15px] font-bold leading-[20px]",
|
|
2103
|
+
H4: "text-[13px] font-bold leading-[16px]",
|
|
2104
|
+
B1B: "text-[15px] font-bold leading-[24px] -tracking-0,1",
|
|
2105
|
+
B1: "text-[15px] leading-[24px] -tracking-0,1",
|
|
2106
|
+
B1Button: "text-[15px] leading-[16px] -tracking-0,1",
|
|
2107
|
+
B2: "text-[13px] leading-[20px]",
|
|
2108
|
+
B2Button: "text-[13px] leading-[16px]",
|
|
2109
|
+
D1B: "text-[12px] font-bold leading-[16px]",
|
|
2110
|
+
D1: "text-[12px] leading-[16px]",
|
|
2111
|
+
M: "text-[10px] leading-[16px]"
|
|
2112
|
+
}, X = ({ children: n, className: e, variant: t = "B1", significance: r = "primary", as: a }) => {
|
|
2113
|
+
const s = a ?? fr[t], i = Kt[t];
|
|
2114
|
+
return /* @__PURE__ */ $.jsx(s, { className: _("font-sans", hr[r], e, i), children: n });
|
|
2115
|
+
}, fr = {
|
|
2116
|
+
Di1: "h1",
|
|
2117
|
+
Di2: "h2",
|
|
2118
|
+
Di3: "h3",
|
|
2119
|
+
T1: "h1",
|
|
2120
|
+
T2: "h2",
|
|
2121
|
+
T3: "h3",
|
|
2122
|
+
H1: "h1",
|
|
2123
|
+
H2: "h2",
|
|
2124
|
+
H3: "h3",
|
|
2125
|
+
H4: "h4",
|
|
2126
|
+
B1B: "p",
|
|
2127
|
+
B1: "p",
|
|
2128
|
+
B1Button: "span",
|
|
2129
|
+
B2: "p",
|
|
2130
|
+
B2Button: "span",
|
|
2131
|
+
D1B: "p",
|
|
2132
|
+
D1: "p",
|
|
2133
|
+
M: "p"
|
|
2134
|
+
}, hr = {
|
|
2135
|
+
primary: "text-label-primary-light dark:text-label-primary-dark",
|
|
2136
|
+
secondary: "text-label-secondary-light dark:text-label-secondary-dark",
|
|
2137
|
+
tertiary: "text-label-tertiary-light dark:text-label-tertiary-dark",
|
|
2138
|
+
quaternary: "text-label-quaternary-light dark:text-label-quaternary-dark",
|
|
2139
|
+
placeholder: "text-label-placeholder-light dark:text-label-placeholder-dark",
|
|
2140
|
+
"nonadaptable-text": "text-nonadaptable-text-light dark:text-nonadaptable-text-dark",
|
|
2141
|
+
disabled: "text-primary-action-disabled-light dark:text-primary-action-disabled-dark"
|
|
2093
2142
|
};
|
|
2094
|
-
var
|
|
2143
|
+
var mr = Object.create, Fe = Object.defineProperty, yr = Object.defineProperties, br = Object.getOwnPropertyDescriptor, xr = Object.getOwnPropertyDescriptors, qt = Object.getOwnPropertyNames, Se = Object.getOwnPropertySymbols, wr = Object.getPrototypeOf, Ze = Object.prototype.hasOwnProperty, Zt = Object.prototype.propertyIsEnumerable, vt = (n, e, t) => e in n ? Fe(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, G = (n, e) => {
|
|
2095
2144
|
for (var t in e || (e = {}))
|
|
2096
2145
|
Ze.call(e, t) && vt(n, t, e[t]);
|
|
2097
2146
|
if (Se)
|
|
2098
2147
|
for (var t of Se(e))
|
|
2099
|
-
|
|
2148
|
+
Zt.call(e, t) && vt(n, t, e[t]);
|
|
2100
2149
|
return n;
|
|
2101
|
-
}, Ae = (n, e) =>
|
|
2150
|
+
}, Ae = (n, e) => yr(n, xr(e)), Wt = (n, e) => {
|
|
2102
2151
|
var t = {};
|
|
2103
2152
|
for (var r in n)
|
|
2104
2153
|
Ze.call(n, r) && e.indexOf(r) < 0 && (t[r] = n[r]);
|
|
2105
2154
|
if (n != null && Se)
|
|
2106
2155
|
for (var r of Se(n))
|
|
2107
|
-
e.indexOf(r) < 0 &&
|
|
2156
|
+
e.indexOf(r) < 0 && Zt.call(n, r) && (t[r] = n[r]);
|
|
2108
2157
|
return t;
|
|
2109
|
-
},
|
|
2110
|
-
return e || (0, n[
|
|
2111
|
-
},
|
|
2158
|
+
}, vr = (n, e) => function() {
|
|
2159
|
+
return e || (0, n[qt(n)[0]])((e = { exports: {} }).exports, e), e.exports;
|
|
2160
|
+
}, kr = (n, e) => {
|
|
2112
2161
|
for (var t in e)
|
|
2113
2162
|
Fe(n, t, { get: e[t], enumerable: !0 });
|
|
2114
|
-
},
|
|
2163
|
+
}, Sr = (n, e, t, r) => {
|
|
2115
2164
|
if (e && typeof e == "object" || typeof e == "function")
|
|
2116
|
-
for (let a of
|
|
2117
|
-
!Ze.call(n, a) && a !== t && Fe(n, a, { get: () => e[a], enumerable: !(r =
|
|
2165
|
+
for (let a of qt(e))
|
|
2166
|
+
!Ze.call(n, a) && a !== t && Fe(n, a, { get: () => e[a], enumerable: !(r = br(e, a)) || r.enumerable });
|
|
2118
2167
|
return n;
|
|
2119
|
-
},
|
|
2168
|
+
}, Er = (n, e, t) => (t = n != null ? mr(wr(n)) : {}, Sr(
|
|
2120
2169
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
2121
2170
|
// file that has been converted to a CommonJS file using a Babel-
|
|
2122
2171
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
2123
2172
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
2124
2173
|
!n || !n.__esModule ? Fe(t, "default", { value: n, enumerable: !0 }) : t,
|
|
2125
2174
|
n
|
|
2126
|
-
)),
|
|
2175
|
+
)), Lr = vr({
|
|
2127
2176
|
"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(n, e) {
|
|
2128
2177
|
var t = (function() {
|
|
2129
2178
|
var r = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, a = 0, s = {}, i = {
|
|
@@ -2396,8 +2445,8 @@ var fr = Object.create, Fe = Object.defineProperty, hr = Object.defineProperties
|
|
|
2396
2445
|
h.hasOwnProperty(k) || (v[k] = b[k]);
|
|
2397
2446
|
}
|
|
2398
2447
|
var A = w[p];
|
|
2399
|
-
return w[p] = v, i.languages.DFS(i.languages, function(F,
|
|
2400
|
-
|
|
2448
|
+
return w[p] = v, i.languages.DFS(i.languages, function(F, T) {
|
|
2449
|
+
T === A && F != p && (this[F] = v);
|
|
2401
2450
|
}), v;
|
|
2402
2451
|
},
|
|
2403
2452
|
// Traverse a language definition with Depth First Search
|
|
@@ -2561,8 +2610,8 @@ var fr = Object.create, Fe = Object.defineProperty, hr = Object.defineProperties
|
|
|
2561
2610
|
for (var A = 0; A < E.length; ++A) {
|
|
2562
2611
|
if (v && v.cause == k + "," + A)
|
|
2563
2612
|
return;
|
|
2564
|
-
var F = E[A],
|
|
2565
|
-
if (
|
|
2613
|
+
var F = E[A], T = F.inside, N = !!F.lookbehind, R = !!F.greedy, H = F.alias;
|
|
2614
|
+
if (R && !F.pattern.global) {
|
|
2566
2615
|
var U = F.pattern.toString().match(/[imsuy]*$/)[0];
|
|
2567
2616
|
F.pattern = RegExp(F.pattern.source, U + "g");
|
|
2568
2617
|
}
|
|
@@ -2572,7 +2621,7 @@ var fr = Object.create, Fe = Object.defineProperty, hr = Object.defineProperties
|
|
|
2572
2621
|
return;
|
|
2573
2622
|
if (!(P instanceof o)) {
|
|
2574
2623
|
var D = 1, j;
|
|
2575
|
-
if (
|
|
2624
|
+
if (R) {
|
|
2576
2625
|
if (j = l(M, B, p, N), !j || j.index >= p.length)
|
|
2577
2626
|
break;
|
|
2578
2627
|
var V = j.index, ee = j.index + j[0].length, K = B;
|
|
@@ -2589,13 +2638,13 @@ var fr = Object.create, Fe = Object.defineProperty, hr = Object.defineProperties
|
|
|
2589
2638
|
v && Ne > v.reach && (v.reach = Ne);
|
|
2590
2639
|
var be = O.prev;
|
|
2591
2640
|
te && (be = u(g, be, te), B += te.length), f(g, be, D);
|
|
2592
|
-
var un = new o(k,
|
|
2641
|
+
var un = new o(k, T ? i.tokenize(Z, T) : Z, H, Z);
|
|
2593
2642
|
if (O = u(g, be, un), Je && u(g, O, Je), D > 1) {
|
|
2594
|
-
var
|
|
2643
|
+
var Te = {
|
|
2595
2644
|
cause: k + "," + A,
|
|
2596
2645
|
reach: Ne
|
|
2597
2646
|
};
|
|
2598
|
-
c(p, g, h, O.prev, B,
|
|
2647
|
+
c(p, g, h, O.prev, B, Te), v && Te.reach > v.reach && (v.reach = Te.reach);
|
|
2599
2648
|
}
|
|
2600
2649
|
}
|
|
2601
2650
|
}
|
|
@@ -2624,7 +2673,7 @@ var fr = Object.create, Fe = Object.defineProperty, hr = Object.defineProperties
|
|
|
2624
2673
|
})();
|
|
2625
2674
|
e.exports = t, t.default = t;
|
|
2626
2675
|
}
|
|
2627
|
-
}), y =
|
|
2676
|
+
}), y = Er(Lr());
|
|
2628
2677
|
y.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy: !0 }, prolog: { pattern: /<\?[\s\S]+?\?>/, greedy: !0 }, doctype: { pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i, greedy: !0, inside: { "internal-subset": { pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/, lookbehind: !0, greedy: !0, inside: null }, string: { pattern: /"[^"]*"|'[^']*'/, greedy: !0 }, punctuation: /^<!|>$|[[\]]/, "doctype-tag": /^DOCTYPE/i, name: /[^\s<>'"]+/ } }, cdata: { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, greedy: !0 }, tag: { pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/, greedy: !0, inside: { tag: { pattern: /^<\/?[^\s>\/]+/, inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ } }, "special-attr": [], "attr-value": { pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/, inside: { punctuation: [{ pattern: /^=/, alias: "attr-equals" }, { pattern: /^(\s*)["']|["']$/, lookbehind: !0 }] } }, punctuation: /\/?>/, "attr-name": { pattern: /[^\s>\/]+/, inside: { namespace: /^[^\s>\/:]+:/ } } } }, entity: [{ pattern: /&[\da-z]{1,8};/i, alias: "named-entity" }, /&#x?[\da-f]{1,8};/i] }, y.languages.markup.tag.inside["attr-value"].inside.entity = y.languages.markup.entity, y.languages.markup.doctype.inside["internal-subset"].inside = y.languages.markup, y.hooks.add("wrap", function(n) {
|
|
2629
2678
|
n.type === "entity" && (n.attributes.title = n.content.replace(/&/, "&"));
|
|
2630
2679
|
}), Object.defineProperty(y.languages.markup.tag, "addInlined", { value: function(n, r) {
|
|
@@ -2804,8 +2853,8 @@ y.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
|
|
|
2804
2853
|
for (var k = 0; k < v.length; k++) {
|
|
2805
2854
|
if (p >= w.length)
|
|
2806
2855
|
return;
|
|
2807
|
-
var E, A, F,
|
|
2808
|
-
typeof U == "string" || typeof U.content == "string" ? (E = w[p], (H = (
|
|
2856
|
+
var E, A, F, T, N, R, H, U = v[k];
|
|
2857
|
+
typeof U == "string" || typeof U.content == "string" ? (E = w[p], (H = (R = typeof U == "string" ? U : U.content).indexOf(E)) !== -1 && (++p, A = R.substring(0, H), N = g[E], F = void 0, (T = {})["interpolation-punctuation"] = a, (T = n.tokenize(N, T)).length === 3 && ((F = [1, 1]).push.apply(F, o(T[1], n.languages.javascript, "javascript")), T.splice.apply(T, F)), F = new n.Token("interpolation", T, r.alias, N), T = R.substring(H + E.length), N = [], A && N.push(A), N.push(F), T && (b(R = [T]), N.push.apply(N, R)), typeof U == "string" ? (v.splice.apply(v, [k, 1].concat(N)), k += N.length - 1) : U.content = N)) : (H = U.content, Array.isArray(H) ? b(H) : b([H]));
|
|
2809
2858
|
}
|
|
2810
2859
|
})(h), new n.Token(m, h, "language-" + m, u);
|
|
2811
2860
|
}
|
|
@@ -2895,30 +2944,30 @@ y.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
|
|
|
2895
2944
|
return t;
|
|
2896
2945
|
}) + ")"), lookbehind: !0, greedy: !0, inside: { string: /^[<"][\s\S]+/, operator: /:/, punctuation: /\./ } }, "raw-string": { pattern: /R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/, alias: "string", greedy: !0 } }), n.languages.insertBefore("cpp", "keyword", { "generic-function": { pattern: /\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i, inside: { function: /^\w+/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: n.languages.cpp } } } }), n.languages.insertBefore("cpp", "operator", { "double-colon": { pattern: /::/, alias: "punctuation" } }), n.languages.insertBefore("cpp", "class-name", { "base-clause": { pattern: /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/, lookbehind: !0, greedy: !0, inside: n.languages.extend("cpp", {}) } }), n.languages.insertBefore("inside", "double-colon", { "class-name": /\b[a-z_]\w*\b(?!\s*::)/i }, n.languages.cpp["base-clause"]);
|
|
2897
2946
|
})(y), y.languages.python = { comment: { pattern: /(^|[^\\])#.*/, lookbehind: !0, greedy: !0 }, "string-interpolation": { pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i, greedy: !0, inside: { interpolation: { pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/, lookbehind: !0, inside: { "format-spec": { pattern: /(:)[^:(){}]+(?=\}$)/, lookbehind: !0 }, "conversion-option": { pattern: //, alias: "punctuation" }, rest: null } }, string: /[\s\S]+/ } }, "triple-quoted-string": { pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i, greedy: !0, alias: "string" }, string: { pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i, greedy: !0 }, function: { pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g, lookbehind: !0 }, "class-name": { pattern: /(\bclass\s+)\w+/i, lookbehind: !0 }, decorator: { pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m, lookbehind: !0, alias: ["annotation", "punctuation"], inside: { punctuation: /\./ } }, keyword: /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/, builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/, boolean: /\b(?:False|None|True)\b/, number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i, operator: /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/, punctuation: /[{}[\];(),.:]/ }, y.languages.python["string-interpolation"].inside.interpolation.inside.rest = y.languages.python, y.languages.py = y.languages.python, y.languages.json = { property: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/, lookbehind: !0, greedy: !0 }, string: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/, lookbehind: !0, greedy: !0 }, comment: { pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 }, number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, punctuation: /[{}[\],]/, operator: /:/, boolean: /\b(?:false|true)\b/, null: { pattern: /\bnull\b/, alias: "keyword" } }, y.languages.webmanifest = y.languages.json;
|
|
2898
|
-
var
|
|
2899
|
-
|
|
2900
|
-
dracula: () =>
|
|
2901
|
-
duotoneDark: () =>
|
|
2902
|
-
duotoneLight: () =>
|
|
2903
|
-
github: () =>
|
|
2904
|
-
gruvboxMaterialDark: () =>
|
|
2905
|
-
gruvboxMaterialLight: () =>
|
|
2906
|
-
jettwaveDark: () =>
|
|
2907
|
-
jettwaveLight: () =>
|
|
2908
|
-
nightOwl: () =>
|
|
2909
|
-
nightOwlLight: () =>
|
|
2910
|
-
oceanicNext: () =>
|
|
2911
|
-
okaidia: () =>
|
|
2912
|
-
oneDark: () =>
|
|
2913
|
-
oneLight: () =>
|
|
2914
|
-
palenight: () =>
|
|
2915
|
-
shadesOfPurple: () =>
|
|
2916
|
-
synthwave84: () =>
|
|
2917
|
-
ultramin: () =>
|
|
2918
|
-
vsDark: () =>
|
|
2919
|
-
vsLight: () =>
|
|
2947
|
+
var Fr = {};
|
|
2948
|
+
kr(Fr, {
|
|
2949
|
+
dracula: () => Or,
|
|
2950
|
+
duotoneDark: () => Tr,
|
|
2951
|
+
duotoneLight: () => Cr,
|
|
2952
|
+
github: () => jr,
|
|
2953
|
+
gruvboxMaterialDark: () => ca,
|
|
2954
|
+
gruvboxMaterialLight: () => da,
|
|
2955
|
+
jettwaveDark: () => ta,
|
|
2956
|
+
jettwaveLight: () => ra,
|
|
2957
|
+
nightOwl: () => $r,
|
|
2958
|
+
nightOwlLight: () => _r,
|
|
2959
|
+
oceanicNext: () => Br,
|
|
2960
|
+
okaidia: () => Ur,
|
|
2961
|
+
oneDark: () => sa,
|
|
2962
|
+
oneLight: () => oa,
|
|
2963
|
+
palenight: () => Hr,
|
|
2964
|
+
shadesOfPurple: () => qr,
|
|
2965
|
+
synthwave84: () => Wr,
|
|
2966
|
+
ultramin: () => Yr,
|
|
2967
|
+
vsDark: () => Gt,
|
|
2968
|
+
vsLight: () => Qr
|
|
2920
2969
|
});
|
|
2921
|
-
var
|
|
2970
|
+
var Ar = {
|
|
2922
2971
|
plain: {
|
|
2923
2972
|
color: "#F8F8F2",
|
|
2924
2973
|
backgroundColor: "#282A36"
|
|
@@ -2980,7 +3029,7 @@ var Lr = {
|
|
|
2980
3029
|
}
|
|
2981
3030
|
}
|
|
2982
3031
|
]
|
|
2983
|
-
},
|
|
3032
|
+
}, Or = Ar, Nr = {
|
|
2984
3033
|
plain: {
|
|
2985
3034
|
backgroundColor: "#2a2734",
|
|
2986
3035
|
color: "#9a86fd"
|
|
@@ -3074,7 +3123,7 @@ var Lr = {
|
|
|
3074
3123
|
}
|
|
3075
3124
|
}
|
|
3076
3125
|
]
|
|
3077
|
-
},
|
|
3126
|
+
}, Tr = Nr, Rr = {
|
|
3078
3127
|
plain: {
|
|
3079
3128
|
backgroundColor: "#faf8f5",
|
|
3080
3129
|
color: "#728fcb"
|
|
@@ -3172,7 +3221,7 @@ var Lr = {
|
|
|
3172
3221
|
}
|
|
3173
3222
|
}
|
|
3174
3223
|
]
|
|
3175
|
-
},
|
|
3224
|
+
}, Cr = Rr, Pr = {
|
|
3176
3225
|
plain: {
|
|
3177
3226
|
color: "#393A34",
|
|
3178
3227
|
backgroundColor: "#f6f8fa"
|
|
@@ -3245,7 +3294,7 @@ var Lr = {
|
|
|
3245
3294
|
}
|
|
3246
3295
|
}
|
|
3247
3296
|
]
|
|
3248
|
-
},
|
|
3297
|
+
}, jr = Pr, Ir = {
|
|
3249
3298
|
plain: {
|
|
3250
3299
|
color: "#d6deeb",
|
|
3251
3300
|
backgroundColor: "#011627"
|
|
@@ -3349,7 +3398,7 @@ var Lr = {
|
|
|
3349
3398
|
}
|
|
3350
3399
|
}
|
|
3351
3400
|
]
|
|
3352
|
-
},
|
|
3401
|
+
}, $r = Ir, Dr = {
|
|
3353
3402
|
plain: {
|
|
3354
3403
|
color: "#403f53",
|
|
3355
3404
|
backgroundColor: "#FBFBFB"
|
|
@@ -3441,7 +3490,7 @@ var Lr = {
|
|
|
3441
3490
|
}
|
|
3442
3491
|
}
|
|
3443
3492
|
]
|
|
3444
|
-
},
|
|
3493
|
+
}, _r = Dr, z = {
|
|
3445
3494
|
char: "#D8DEE9",
|
|
3446
3495
|
comment: "#999999",
|
|
3447
3496
|
keyword: "#c5a5c5",
|
|
@@ -3452,7 +3501,7 @@ var Lr = {
|
|
|
3452
3501
|
tag: "#fc929e",
|
|
3453
3502
|
function: "#79b6f2",
|
|
3454
3503
|
className: "#FAC863"
|
|
3455
|
-
},
|
|
3504
|
+
}, Mr = {
|
|
3456
3505
|
plain: {
|
|
3457
3506
|
backgroundColor: "#282c34",
|
|
3458
3507
|
color: "#ffffff"
|
|
@@ -3575,7 +3624,7 @@ var Lr = {
|
|
|
3575
3624
|
}
|
|
3576
3625
|
}
|
|
3577
3626
|
]
|
|
3578
|
-
},
|
|
3627
|
+
}, Br = Mr, zr = {
|
|
3579
3628
|
plain: {
|
|
3580
3629
|
color: "#f8f8f2",
|
|
3581
3630
|
backgroundColor: "#272822"
|
|
@@ -3690,7 +3739,7 @@ var Lr = {
|
|
|
3690
3739
|
}
|
|
3691
3740
|
}
|
|
3692
3741
|
]
|
|
3693
|
-
},
|
|
3742
|
+
}, Ur = zr, Vr = {
|
|
3694
3743
|
plain: {
|
|
3695
3744
|
color: "#bfc7d5",
|
|
3696
3745
|
backgroundColor: "#292d3e"
|
|
@@ -3783,7 +3832,7 @@ var Lr = {
|
|
|
3783
3832
|
}
|
|
3784
3833
|
}
|
|
3785
3834
|
]
|
|
3786
|
-
},
|
|
3835
|
+
}, Hr = Vr, Kr = {
|
|
3787
3836
|
plain: {
|
|
3788
3837
|
color: "#9EFEFF",
|
|
3789
3838
|
backgroundColor: "#2D2A55"
|
|
@@ -3871,7 +3920,7 @@ var Lr = {
|
|
|
3871
3920
|
}
|
|
3872
3921
|
}
|
|
3873
3922
|
]
|
|
3874
|
-
},
|
|
3923
|
+
}, qr = Kr, Zr = {
|
|
3875
3924
|
plain: {
|
|
3876
3925
|
backgroundColor: "linear-gradient(to bottom, #2a2139 75%, #34294f)",
|
|
3877
3926
|
backgroundImage: "#34294f",
|
|
@@ -3996,7 +4045,7 @@ var Lr = {
|
|
|
3996
4045
|
}
|
|
3997
4046
|
}
|
|
3998
4047
|
]
|
|
3999
|
-
},
|
|
4048
|
+
}, Wr = Zr, Gr = {
|
|
4000
4049
|
plain: {
|
|
4001
4050
|
color: "#282a2e",
|
|
4002
4051
|
backgroundColor: "#ffffff"
|
|
@@ -4021,7 +4070,7 @@ var Lr = {
|
|
|
4021
4070
|
}
|
|
4022
4071
|
}
|
|
4023
4072
|
]
|
|
4024
|
-
},
|
|
4073
|
+
}, Yr = Gr, Jr = {
|
|
4025
4074
|
plain: {
|
|
4026
4075
|
color: "#9CDCFE",
|
|
4027
4076
|
backgroundColor: "#1E1E1E"
|
|
@@ -4123,7 +4172,7 @@ var Lr = {
|
|
|
4123
4172
|
}
|
|
4124
4173
|
}
|
|
4125
4174
|
]
|
|
4126
|
-
},
|
|
4175
|
+
}, Gt = Jr, Xr = {
|
|
4127
4176
|
plain: {
|
|
4128
4177
|
color: "#000000",
|
|
4129
4178
|
backgroundColor: "#ffffff"
|
|
@@ -4196,7 +4245,7 @@ var Lr = {
|
|
|
4196
4245
|
}
|
|
4197
4246
|
}
|
|
4198
4247
|
]
|
|
4199
|
-
},
|
|
4248
|
+
}, Qr = Xr, ea = {
|
|
4200
4249
|
plain: {
|
|
4201
4250
|
color: "#f8fafc",
|
|
4202
4251
|
backgroundColor: "#011627"
|
|
@@ -4295,7 +4344,7 @@ var Lr = {
|
|
|
4295
4344
|
}
|
|
4296
4345
|
}
|
|
4297
4346
|
]
|
|
4298
|
-
},
|
|
4347
|
+
}, ta = ea, na = {
|
|
4299
4348
|
plain: {
|
|
4300
4349
|
color: "#0f172a",
|
|
4301
4350
|
backgroundColor: "#f1f5f9"
|
|
@@ -4394,7 +4443,7 @@ var Lr = {
|
|
|
4394
4443
|
}
|
|
4395
4444
|
}
|
|
4396
4445
|
]
|
|
4397
|
-
},
|
|
4446
|
+
}, ra = na, aa = {
|
|
4398
4447
|
plain: {
|
|
4399
4448
|
backgroundColor: "hsl(220, 13%, 18%)",
|
|
4400
4449
|
color: "hsl(220, 14%, 71%)",
|
|
@@ -4492,7 +4541,7 @@ var Lr = {
|
|
|
4492
4541
|
}
|
|
4493
4542
|
}
|
|
4494
4543
|
]
|
|
4495
|
-
},
|
|
4544
|
+
}, sa = aa, ia = {
|
|
4496
4545
|
plain: {
|
|
4497
4546
|
backgroundColor: "hsl(230, 1%, 98%)",
|
|
4498
4547
|
color: "hsl(230, 8%, 24%)"
|
|
@@ -4593,7 +4642,7 @@ var Lr = {
|
|
|
4593
4642
|
}
|
|
4594
4643
|
}
|
|
4595
4644
|
]
|
|
4596
|
-
},
|
|
4645
|
+
}, oa = ia, la = {
|
|
4597
4646
|
plain: {
|
|
4598
4647
|
color: "#ebdbb2",
|
|
4599
4648
|
backgroundColor: "#292828"
|
|
@@ -4666,7 +4715,7 @@ var Lr = {
|
|
|
4666
4715
|
}
|
|
4667
4716
|
}
|
|
4668
4717
|
]
|
|
4669
|
-
},
|
|
4718
|
+
}, ca = la, ua = {
|
|
4670
4719
|
plain: {
|
|
4671
4720
|
color: "#654735",
|
|
4672
4721
|
backgroundColor: "#f9f5d7"
|
|
@@ -4738,16 +4787,16 @@ var Lr = {
|
|
|
4738
4787
|
}
|
|
4739
4788
|
}
|
|
4740
4789
|
]
|
|
4741
|
-
},
|
|
4790
|
+
}, da = ua, pa = (n) => q(
|
|
4742
4791
|
(e) => {
|
|
4743
|
-
var t = e, { className: r, style: a } = t, s =
|
|
4792
|
+
var t = e, { className: r, style: a } = t, s = Wt(t, ["className", "style", "line"]);
|
|
4744
4793
|
const i = Ae(G({}, s), {
|
|
4745
4794
|
className: qe("token-line", r)
|
|
4746
4795
|
});
|
|
4747
4796
|
return typeof n == "object" && "plain" in n && (i.style = n.plain), typeof a == "object" && (i.style = G(G({}, i.style || {}), a)), i;
|
|
4748
4797
|
},
|
|
4749
4798
|
[n]
|
|
4750
|
-
),
|
|
4799
|
+
), ga = (n) => {
|
|
4751
4800
|
const e = q(
|
|
4752
4801
|
({ types: t, empty: r }) => {
|
|
4753
4802
|
if (n != null) {
|
|
@@ -4767,7 +4816,7 @@ var Lr = {
|
|
|
4767
4816
|
);
|
|
4768
4817
|
return q(
|
|
4769
4818
|
(t) => {
|
|
4770
|
-
var r = t, { token: a, className: s, style: i } = r, o =
|
|
4819
|
+
var r = t, { token: a, className: s, style: i } = r, o = Wt(r, ["token", "className", "style"]);
|
|
4771
4820
|
const l = Ae(G({}, o), {
|
|
4772
4821
|
className: qe("token", ...a.types, s),
|
|
4773
4822
|
children: a.content,
|
|
@@ -4777,7 +4826,7 @@ var Lr = {
|
|
|
4777
4826
|
},
|
|
4778
4827
|
[e]
|
|
4779
4828
|
);
|
|
4780
|
-
},
|
|
4829
|
+
}, fa = /\r\n|\r|\n/, kt = (n) => {
|
|
4781
4830
|
n.length === 0 ? n.push({
|
|
4782
4831
|
types: ["plain"],
|
|
4783
4832
|
content: `
|
|
@@ -4788,7 +4837,7 @@ var Lr = {
|
|
|
4788
4837
|
}, St = (n, e) => {
|
|
4789
4838
|
const t = n.length;
|
|
4790
4839
|
return t > 0 && n[t - 1] === e ? n : n.concat(e);
|
|
4791
|
-
},
|
|
4840
|
+
}, ha = (n) => {
|
|
4792
4841
|
const e = [[]], t = [n], r = [0], a = [n.length];
|
|
4793
4842
|
let s = 0, i = 0, o = [];
|
|
4794
4843
|
const l = [o];
|
|
@@ -4800,7 +4849,7 @@ var Lr = {
|
|
|
4800
4849
|
i++, e.push(d), t.push(c), r.push(0), a.push(c.length);
|
|
4801
4850
|
continue;
|
|
4802
4851
|
}
|
|
4803
|
-
const f = c.split(
|
|
4852
|
+
const f = c.split(fa), m = f.length;
|
|
4804
4853
|
o.push({
|
|
4805
4854
|
types: d,
|
|
4806
4855
|
content: f[0]
|
|
@@ -4814,7 +4863,7 @@ var Lr = {
|
|
|
4814
4863
|
i--, e.pop(), t.pop(), r.pop(), a.pop();
|
|
4815
4864
|
}
|
|
4816
4865
|
return kt(o), l;
|
|
4817
|
-
}, Et =
|
|
4866
|
+
}, Et = ha, ma = ({ prism: n, code: e, grammar: t, language: r }) => de(() => {
|
|
4818
4867
|
if (t == null)
|
|
4819
4868
|
return Et([e]);
|
|
4820
4869
|
const a = {
|
|
@@ -4830,7 +4879,7 @@ var Lr = {
|
|
|
4830
4879
|
r,
|
|
4831
4880
|
// prism is a stable import
|
|
4832
4881
|
n
|
|
4833
|
-
]),
|
|
4882
|
+
]), ya = (n, e) => {
|
|
4834
4883
|
const { plain: t } = n, r = n.styles.reduce((a, s) => {
|
|
4835
4884
|
const { languages: i, style: o } = s;
|
|
4836
4885
|
return i && !i.includes(e) || s.types.forEach((l) => {
|
|
@@ -4839,14 +4888,14 @@ var Lr = {
|
|
|
4839
4888
|
}), a;
|
|
4840
4889
|
}, {});
|
|
4841
4890
|
return r.root = t, r.plain = Ae(G({}, t), { backgroundColor: void 0 }), r;
|
|
4842
|
-
},
|
|
4891
|
+
}, ba = ya, xa = ({
|
|
4843
4892
|
children: n,
|
|
4844
4893
|
language: e,
|
|
4845
4894
|
code: t,
|
|
4846
4895
|
theme: r,
|
|
4847
4896
|
prism: a
|
|
4848
4897
|
}) => {
|
|
4849
|
-
const s = e.toLowerCase(), i =
|
|
4898
|
+
const s = e.toLowerCase(), i = ba(r, s), o = pa(i), l = ga(i), c = a.languages[s], d = ma({ prism: a, language: s, code: t, grammar: c });
|
|
4850
4899
|
return n({
|
|
4851
4900
|
tokens: d,
|
|
4852
4901
|
className: `prism-code language-${s}`,
|
|
@@ -4854,9 +4903,9 @@ var Lr = {
|
|
|
4854
4903
|
getLineProps: o,
|
|
4855
4904
|
getTokenProps: l
|
|
4856
4905
|
});
|
|
4857
|
-
},
|
|
4906
|
+
}, wa = (n) => we(xa, Ae(G({}, n), {
|
|
4858
4907
|
prism: n.prism || y,
|
|
4859
|
-
theme: n.theme ||
|
|
4908
|
+
theme: n.theme || Gt,
|
|
4860
4909
|
code: n.code,
|
|
4861
4910
|
language: n.language
|
|
4862
4911
|
}));
|
|
@@ -4872,97 +4921,48 @@ prismjs/prism.js:
|
|
|
4872
4921
|
* @public
|
|
4873
4922
|
*)
|
|
4874
4923
|
*/
|
|
4875
|
-
const
|
|
4924
|
+
const va = (n, e) => e.some((t) => {
|
|
4876
4925
|
if (typeof t == "number")
|
|
4877
4926
|
return n === t;
|
|
4878
4927
|
const [r, a] = t.split(":").map((s) => parseInt(s));
|
|
4879
4928
|
return r <= n && n <= a;
|
|
4880
|
-
}),
|
|
4929
|
+
}), ka = (n, e, t) => t.some(([r, [a, s]]) => r === n && a <= e && e <= s), Sa = (n, e) => n.split(new RegExp(`(${e.map(([t]) => t).join("|")})`)).filter(Boolean), Yt = (n, e) => () => {
|
|
4881
4930
|
const t = He(n);
|
|
4882
4931
|
if (t === void 0)
|
|
4883
4932
|
throw new Error(e);
|
|
4884
4933
|
return t;
|
|
4885
4934
|
}, Oe = (n) => Object.assign(dn(n), {
|
|
4886
4935
|
displayName: n.displayName ?? n.name
|
|
4887
|
-
}),
|
|
4888
|
-
const { lines: a, words: s, ...i } =
|
|
4889
|
-
return
|
|
4890
|
-
const u = d + 1, f =
|
|
4891
|
-
return
|
|
4936
|
+
}), Ea = ye(void 0), Jt = ye(void 0), Xt = Yt(Ea, 'Could not find nearest <CodeBlock /> component. Please wrap this component with a <CodeBlock /> component imported from "react-code-block".'), We = Yt(Jt, 'Could not find nearest <CodeBlock.Code /> component. Please wrap this component with <CodeBlock.Code /> component imported from "react-code-block".'), La = ({ as: n, children: e, ...t }, r) => {
|
|
4937
|
+
const { lines: a, words: s, ...i } = Xt(), o = n ?? "pre";
|
|
4938
|
+
return $.jsx(wa, { ...i, children: (l) => $.jsx(o, { ...t, ref: r, children: l.tokens.map((c, d) => {
|
|
4939
|
+
const u = d + 1, f = va(u, a);
|
|
4940
|
+
return $.jsx(Jt.Provider, { value: { highlight: l, line: c, lineNumber: u }, children: typeof e == "function" ? e({ isLineHighlighted: f, lineNumber: u }, d) : e }, d);
|
|
4892
4941
|
}) }) });
|
|
4893
|
-
},
|
|
4942
|
+
}, Fa = ({ as: n, children: e, className: t, ...r }, a) => {
|
|
4894
4943
|
const { highlight: s, line: i } = We(), { getLineProps: o } = s, l = n ?? "div";
|
|
4895
|
-
return
|
|
4896
|
-
},
|
|
4897
|
-
const { words: s } =
|
|
4898
|
-
return
|
|
4944
|
+
return $.jsx(l, { ...o({ line: i, className: t }), ...r, ref: a, children: e });
|
|
4945
|
+
}, Aa = ({ as: n, children: e = ({ children: s }) => $.jsx("span", { children: s }), className: t, ...r }, a) => {
|
|
4946
|
+
const { words: s } = Xt(), { line: i, highlight: o, lineNumber: l } = We(), { getTokenProps: c } = o, d = n ?? "span";
|
|
4947
|
+
return $.jsx(fe.Fragment, { children: i.map((u, f) => {
|
|
4899
4948
|
const { children: m, ...p } = c({
|
|
4900
4949
|
token: u,
|
|
4901
4950
|
className: t
|
|
4902
|
-
}), g = s.length ?
|
|
4903
|
-
return
|
|
4951
|
+
}), g = s.length ? Sa(m, s) : [m];
|
|
4952
|
+
return $.jsx(fe.Fragment, { children: g.map((h, w) => $.jsx(d, { ...p, ...r, ref: a, children: e({
|
|
4904
4953
|
children: h,
|
|
4905
|
-
isTokenHighlighted:
|
|
4954
|
+
isTokenHighlighted: ka(h, l, s)
|
|
4906
4955
|
}) }, w)) }, f);
|
|
4907
4956
|
}) });
|
|
4908
|
-
},
|
|
4957
|
+
}, Oa = ({ as: n, ...e }, t) => {
|
|
4909
4958
|
const { lineNumber: r } = We(), a = n ?? "span";
|
|
4910
|
-
return
|
|
4959
|
+
return $.jsx(a, { ...e, ref: t, children: r });
|
|
4911
4960
|
};
|
|
4912
|
-
Oe(Sa);
|
|
4913
|
-
Oe(Ea);
|
|
4914
4961
|
Oe(La);
|
|
4915
4962
|
Oe(Fa);
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
Di3: "text-[48px] font-bold leading-[60px] -tracking-1,5",
|
|
4920
|
-
T1: "text-[40px] font-bold leading-[48px] -tracking-1,5",
|
|
4921
|
-
T2: "text-[32px] font-bold leading-[40px] -tracking-1",
|
|
4922
|
-
T3: "text-[24px] font-bold leading-[32px] -tracking-0,5",
|
|
4923
|
-
H1: "text-[24px] font-bold leading-[32px] -tracking-0,5",
|
|
4924
|
-
H2: "text-[20px] font-bold leading-[24px]",
|
|
4925
|
-
H3: "text-[15px] font-bold leading-[20px]",
|
|
4926
|
-
H4: "text-[13px] font-bold leading-[16px]",
|
|
4927
|
-
B1B: "text-[15px] font-bold leading-[24px] -tracking-0,1",
|
|
4928
|
-
B1: "text-[15px] leading-[24px] -tracking-0,1",
|
|
4929
|
-
B1Button: "text-[15px] leading-[16px] -tracking-0,1",
|
|
4930
|
-
B2: "text-[13px] leading-[20px]",
|
|
4931
|
-
B2Button: "text-[13px] leading-[16px]",
|
|
4932
|
-
D1B: "text-[12px] font-bold leading-[16px]",
|
|
4933
|
-
D1: "text-[12px] leading-[16px]",
|
|
4934
|
-
M: "text-[10px] leading-[16px]"
|
|
4935
|
-
}, X = ({ children: n, className: e, variant: t = "B1", significance: r = "primary", as: a }) => {
|
|
4936
|
-
const s = a ?? Aa[t], i = Xt[t];
|
|
4937
|
-
return /* @__PURE__ */ I.jsx(s, { className: _("font-sans", Oa[r], e, i), children: n });
|
|
4938
|
-
}, Aa = {
|
|
4939
|
-
Di1: "h1",
|
|
4940
|
-
Di2: "h2",
|
|
4941
|
-
Di3: "h3",
|
|
4942
|
-
T1: "h1",
|
|
4943
|
-
T2: "h2",
|
|
4944
|
-
T3: "h3",
|
|
4945
|
-
H1: "h1",
|
|
4946
|
-
H2: "h2",
|
|
4947
|
-
H3: "h3",
|
|
4948
|
-
H4: "h4",
|
|
4949
|
-
B1B: "p",
|
|
4950
|
-
B1: "p",
|
|
4951
|
-
B1Button: "span",
|
|
4952
|
-
B2: "p",
|
|
4953
|
-
B2Button: "span",
|
|
4954
|
-
D1B: "p",
|
|
4955
|
-
D1: "p",
|
|
4956
|
-
M: "p"
|
|
4957
|
-
}, Oa = {
|
|
4958
|
-
primary: "text-label-primary-light dark:text-label-primary-dark",
|
|
4959
|
-
secondary: "text-label-secondary-light dark:text-label-secondary-dark",
|
|
4960
|
-
tertiary: "text-label-tertiary-light dark:text-label-tertiary-dark",
|
|
4961
|
-
quaternary: "text-label-quaternary-light dark:text-label-quaternary-dark",
|
|
4962
|
-
placeholder: "text-label-placeholder-light dark:text-label-placeholder-dark",
|
|
4963
|
-
"nonadaptable-text": "text-nonadaptable-text-light dark:text-nonadaptable-text-dark",
|
|
4964
|
-
disabled: "text-primary-action-disabled-light dark:text-primary-action-disabled-dark"
|
|
4965
|
-
}, Qt = ({
|
|
4963
|
+
Oe(Aa);
|
|
4964
|
+
Oe(Oa);
|
|
4965
|
+
const Qt = ({
|
|
4966
4966
|
title: n,
|
|
4967
4967
|
icon: e,
|
|
4968
4968
|
description: t,
|
|
@@ -5087,7 +5087,7 @@ const Xt = {
|
|
|
5087
5087
|
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",
|
|
5088
5088
|
children: [
|
|
5089
5089
|
/* @__PURE__ */ S.jsx(X, { variant: "B1Button", children: g.text }),
|
|
5090
|
-
/* @__PURE__ */ S.jsx(
|
|
5090
|
+
/* @__PURE__ */ S.jsx(Ta, { size: 20, selected: c.includes(g.id) })
|
|
5091
5091
|
]
|
|
5092
5092
|
}
|
|
5093
5093
|
) }, g.id))
|
|
@@ -5120,7 +5120,7 @@ const Xt = {
|
|
|
5120
5120
|
}
|
|
5121
5121
|
) })
|
|
5122
5122
|
}
|
|
5123
|
-
),
|
|
5123
|
+
), Ta = ({ size: n = 16, strokeColor: e = "currentColor", fillColor: t = "none", selected: r = !1 }) => {
|
|
5124
5124
|
const a = n + 1, s = a / 2, i = (n - 2) / 2;
|
|
5125
5125
|
return /* @__PURE__ */ S.jsxs(
|
|
5126
5126
|
"svg",
|
|
@@ -5156,7 +5156,7 @@ const Xt = {
|
|
|
5156
5156
|
]
|
|
5157
5157
|
}
|
|
5158
5158
|
);
|
|
5159
|
-
},
|
|
5159
|
+
}, Ra = ({
|
|
5160
5160
|
title: n,
|
|
5161
5161
|
icon: e,
|
|
5162
5162
|
description: t,
|
|
@@ -5211,7 +5211,7 @@ const Xt = {
|
|
|
5211
5211
|
"overflow-hidden break-words outline-hidden resize-none material-medium",
|
|
5212
5212
|
"rounded-lg py-3 px-4 min-h-20 border border-separator-opaque-light dark:border-separator-opaque-dark",
|
|
5213
5213
|
"text-label-primary-light dark:text-label-primary-dark",
|
|
5214
|
-
|
|
5214
|
+
Kt.B1
|
|
5215
5215
|
),
|
|
5216
5216
|
value: o,
|
|
5217
5217
|
onChange: (p) => l(p.target.value)
|
|
@@ -5303,10 +5303,10 @@ let tn = {};
|
|
|
5303
5303
|
function ja() {
|
|
5304
5304
|
return tn;
|
|
5305
5305
|
}
|
|
5306
|
-
function
|
|
5306
|
+
function Ia(n) {
|
|
5307
5307
|
tn = n;
|
|
5308
5308
|
}
|
|
5309
|
-
const
|
|
5309
|
+
const $a = {
|
|
5310
5310
|
lessThanXSeconds: {
|
|
5311
5311
|
one: "less than a second",
|
|
5312
5312
|
other: "less than {{count}} seconds"
|
|
@@ -5370,7 +5370,7 @@ const Ia = {
|
|
|
5370
5370
|
}
|
|
5371
5371
|
}, Da = (n, e, t) => {
|
|
5372
5372
|
let r;
|
|
5373
|
-
const a =
|
|
5373
|
+
const a = $a[n];
|
|
5374
5374
|
return typeof a == "string" ? r = a : e === 1 ? r = a.one : r = a.other.replace("{{count}}", e.toString()), t?.addSuffix ? t.comparison && t.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
5375
5375
|
};
|
|
5376
5376
|
function De(n) {
|
|
@@ -5704,7 +5704,7 @@ function us(n) {
|
|
|
5704
5704
|
Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
|
|
5705
5705
|
for (const r in n)
|
|
5706
5706
|
Object.prototype.hasOwnProperty.call(n, r) && (n[r] === void 0 ? delete e[r] : e[r] = n[r]);
|
|
5707
|
-
|
|
5707
|
+
Ia(e);
|
|
5708
5708
|
}
|
|
5709
5709
|
const ds = {
|
|
5710
5710
|
full: "EEEE, d MMMM yyyy",
|
|
@@ -6009,7 +6009,7 @@ try {
|
|
|
6009
6009
|
}
|
|
6010
6010
|
const rn = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
|
|
6011
6011
|
nn || rn.splice(1, 1);
|
|
6012
|
-
const
|
|
6012
|
+
const Ts = () => ({
|
|
6013
6013
|
order: rn,
|
|
6014
6014
|
lookupQuerystring: "lng",
|
|
6015
6015
|
lookupCookie: "i18next",
|
|
@@ -6031,7 +6031,7 @@ class an {
|
|
|
6031
6031
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
6032
6032
|
languageUtils: {}
|
|
6033
6033
|
}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
6034
|
-
this.services = e, this.options = bs(t, this.options || {},
|
|
6034
|
+
this.services = e, this.options = bs(t, this.options || {}, Ts()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (a) => a.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = r, this.addDetector(vs), this.addDetector(ks), this.addDetector(Es), this.addDetector(Ls), this.addDetector(Fs), this.addDetector(As), this.addDetector(Os), this.addDetector(Ns), this.addDetector(Ss);
|
|
6035
6035
|
}
|
|
6036
6036
|
addDetector(e) {
|
|
6037
6037
|
return this.detectors[e.name] = e, this;
|
|
@@ -6056,16 +6056,16 @@ an.type = "languageDetector";
|
|
|
6056
6056
|
const sn = {
|
|
6057
6057
|
apiBaseUrl: "https://api.nemme.io",
|
|
6058
6058
|
debug: !1
|
|
6059
|
-
},
|
|
6060
|
-
Previous:
|
|
6059
|
+
}, Rs = "Previous", Cs = "Next", Ps = "Done", js = "Submit", Is = {
|
|
6060
|
+
Previous: Rs,
|
|
6061
6061
|
Next: Cs,
|
|
6062
6062
|
Done: Ps,
|
|
6063
6063
|
Submit: js,
|
|
6064
6064
|
"Type your answer here": "Type your answer here",
|
|
6065
6065
|
"Max {{maxCharacters}} characters": "Max {{maxCharacters}} characters"
|
|
6066
|
-
},
|
|
6066
|
+
}, $s = {};
|
|
6067
6067
|
us({ locale: hs });
|
|
6068
|
-
|
|
6068
|
+
I.use(an).use(Kn).init({
|
|
6069
6069
|
debug: sn.debug,
|
|
6070
6070
|
fallbackLng: "en",
|
|
6071
6071
|
interpolation: {
|
|
@@ -6074,10 +6074,10 @@ $.use(an).use(Kn).init({
|
|
|
6074
6074
|
},
|
|
6075
6075
|
resources: {
|
|
6076
6076
|
en: {
|
|
6077
|
-
translation:
|
|
6077
|
+
translation: Is
|
|
6078
6078
|
},
|
|
6079
6079
|
nb: {
|
|
6080
|
-
tranlation:
|
|
6080
|
+
tranlation: $s
|
|
6081
6081
|
}
|
|
6082
6082
|
}
|
|
6083
6083
|
});
|
|
@@ -6125,7 +6125,7 @@ class Ge {
|
|
|
6125
6125
|
e.prefix !== void 0 && (this.prefix = e.prefix), e.enabled !== void 0 && (this.enabled = e.enabled), e.level !== void 0 && (this.level = e.level);
|
|
6126
6126
|
}
|
|
6127
6127
|
}
|
|
6128
|
-
const on = new Ge(),
|
|
6128
|
+
const on = new Ge(), Tt = on.child("network"), Ds = 3e4, _s = (n, e) => {
|
|
6129
6129
|
const t = new URL(n, sn.apiBaseUrl);
|
|
6130
6130
|
return e && Object.entries(e).forEach(([r, a]) => {
|
|
6131
6131
|
a != null && t.searchParams.append(r, String(a));
|
|
@@ -6170,7 +6170,7 @@ const on = new Ge(), Rt = on.child("network"), Ds = 3e4, _s = (n, e) => {
|
|
|
6170
6170
|
g.ok = !0;
|
|
6171
6171
|
else {
|
|
6172
6172
|
const h = `Request failed with status ${f.status}: ${f.statusText}`;
|
|
6173
|
-
|
|
6173
|
+
Tt.error(h, {
|
|
6174
6174
|
url: o,
|
|
6175
6175
|
method: t,
|
|
6176
6176
|
status: f.status,
|
|
@@ -6187,7 +6187,7 @@ const on = new Ge(), Rt = on.child("network"), Ds = 3e4, _s = (n, e) => {
|
|
|
6187
6187
|
message: f instanceof Error ? f.message : String(f),
|
|
6188
6188
|
url: o,
|
|
6189
6189
|
method: t
|
|
6190
|
-
},
|
|
6190
|
+
}, Tt.error(m, p), {
|
|
6191
6191
|
data: {},
|
|
6192
6192
|
status: 0,
|
|
6193
6193
|
statusText: m,
|
|
@@ -6257,7 +6257,7 @@ class Ms {
|
|
|
6257
6257
|
a.id = "nm", document.body.appendChild(a);
|
|
6258
6258
|
const s = pn(a), i = we(
|
|
6259
6259
|
Qn,
|
|
6260
|
-
{ i18n:
|
|
6260
|
+
{ i18n: I },
|
|
6261
6261
|
we(rr, {
|
|
6262
6262
|
form: e,
|
|
6263
6263
|
onDismiss: async (o) => {
|
|
@@ -6574,6 +6574,7 @@ class Ye {
|
|
|
6574
6574
|
clientKey;
|
|
6575
6575
|
userIdentifier;
|
|
6576
6576
|
initialized = !1;
|
|
6577
|
+
lastInitError = null;
|
|
6577
6578
|
clientLogger = on.child("client");
|
|
6578
6579
|
headers = {};
|
|
6579
6580
|
formConfig;
|
|
@@ -6593,8 +6594,8 @@ class Ye {
|
|
|
6593
6594
|
deactivate: s = !1,
|
|
6594
6595
|
trackUrlParamChanges: i
|
|
6595
6596
|
}) {
|
|
6596
|
-
if (s)
|
|
6597
|
-
return this.clientLogger.info("Nemme client deactivated and will stop initialization."), this.initialized = !0, this.clientLogger.configure({ enabled: !1 }), this;
|
|
6597
|
+
if (this.initialized = !1, this.lastInitError = null, this.trackingManager?.destroy(), this.trackingManager = void 0, s)
|
|
6598
|
+
return this.clientLogger.info("Nemme client deactivated and will stop initialization."), this.initialized = !0, this.lastInitError = null, this.clientLogger.configure({ enabled: !1 }), this;
|
|
6598
6599
|
if (!e) throw new Error("userIdentifier is required parameter");
|
|
6599
6600
|
this.userIdentifier = e, this.clientLogger.configure({
|
|
6600
6601
|
enabled: t,
|
|
@@ -6605,12 +6606,12 @@ class Ye {
|
|
|
6605
6606
|
}, this.formConfig = a;
|
|
6606
6607
|
try {
|
|
6607
6608
|
const o = await this.initializeSession();
|
|
6608
|
-
await this.initializeManagers(o, r, i), this.initialized = !0, this.clientLogger.info("Nemme client initialized", {
|
|
6609
|
+
await this.initializeManagers(o, r, i), this.initialized = !0, this.lastInitError = null, this.clientLogger.info("Nemme client initialized", {
|
|
6609
6610
|
clientKey: this.clientKey,
|
|
6610
6611
|
userIdentifier: this.userIdentifier
|
|
6611
6612
|
});
|
|
6612
6613
|
} catch (o) {
|
|
6613
|
-
this.clientLogger.error("Error during initialization:", o);
|
|
6614
|
+
this.clientLogger.error("Error during initialization:", o), this.initialized = !1, this.lastInitError = o instanceof Error ? o : new Error("Error during initialization");
|
|
6614
6615
|
}
|
|
6615
6616
|
return this;
|
|
6616
6617
|
}
|
|
@@ -6661,7 +6662,7 @@ class Ye {
|
|
|
6661
6662
|
}
|
|
6662
6663
|
const ln = (n) => new Ye(n), cn = ye(void 0), Ws = ({ clientKey: n, config: e, children: t }) => {
|
|
6663
6664
|
const [r, a] = pe(null), [s, i] = pe(!1), [o, l] = pe(null);
|
|
6664
|
-
|
|
6665
|
+
Rt(() => {
|
|
6665
6666
|
let d = null, u = !1;
|
|
6666
6667
|
const f = async () => {
|
|
6667
6668
|
try {
|
|
@@ -6670,7 +6671,7 @@ const ln = (n) => new Ye(n), cn = ye(void 0), Ws = ({ clientKey: n, config: e, c
|
|
|
6670
6671
|
p.destroy();
|
|
6671
6672
|
return;
|
|
6672
6673
|
}
|
|
6673
|
-
d = p, a(p), i(
|
|
6674
|
+
d = p, a(p), i(p.initialized), l(p.lastInitError ? p.lastInitError.message : null);
|
|
6674
6675
|
} catch (p) {
|
|
6675
6676
|
u || (l(p instanceof Error ? p.message : "Failed to initialize Nemme client"), i(!1));
|
|
6676
6677
|
}
|