@oslokommune/punkt-react 12.3.3 → 12.3.6
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/CHANGELOG.md +42 -0
- package/dist/index.d.ts +4 -0
- package/dist/punkt-react.es.js +743 -754
- package/dist/punkt-react.umd.js +95 -104
- package/package.json +4 -4
- package/src/components/datepicker/Datepicker.tsx +4 -3
package/dist/punkt-react.es.js
CHANGED
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
var zm = (e, t, n) => t in e ? Wm(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
38
38
|
var nr = (e, t, n) => zm(e, typeof t != "symbol" ? t + "" : t, n);
|
|
39
39
|
import * as Vm from "react";
|
|
40
|
-
import xe, { forwardRef as Ne, createContext as
|
|
40
|
+
import xe, { forwardRef as Ne, createContext as Ym, useState as Ve, useContext as Gm, useEffect as oa, Fragment as fo, isValidElement as ta, useRef as ga, cloneElement as Km } from "react";
|
|
41
41
|
import { Link as ou } from "react-router-dom";
|
|
42
42
|
function Jm(e, t) {
|
|
43
43
|
for (var n = 0; n < t.length; n++) {
|
|
@@ -56,10 +56,10 @@ function Jm(e, t) {
|
|
|
56
56
|
return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
|
|
57
57
|
}
|
|
58
58
|
var gn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
59
|
-
function
|
|
59
|
+
function _i(e) {
|
|
60
60
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
61
61
|
}
|
|
62
|
-
var
|
|
62
|
+
var zs = { exports: {} }, Ur = {};
|
|
63
63
|
/**
|
|
64
64
|
* @license React
|
|
65
65
|
* react-jsx-runtime.production.min.js
|
|
@@ -130,7 +130,7 @@ function Qm() {
|
|
|
130
130
|
// with.
|
|
131
131
|
w.$$typeof === j || w.getModuleId !== void 0));
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function G(w, M, H) {
|
|
134
134
|
var Z = w.displayName;
|
|
135
135
|
if (Z)
|
|
136
136
|
return Z;
|
|
@@ -170,7 +170,7 @@ function Qm() {
|
|
|
170
170
|
var H = w;
|
|
171
171
|
return V(H._context) + ".Provider";
|
|
172
172
|
case d:
|
|
173
|
-
return
|
|
173
|
+
return G(w, w.render, "ForwardRef");
|
|
174
174
|
case v:
|
|
175
175
|
var Z = w.displayName || null;
|
|
176
176
|
return Z !== null ? Z : L(w.type) || "Memo";
|
|
@@ -212,7 +212,7 @@ function Qm() {
|
|
|
212
212
|
q++;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function _e() {
|
|
216
216
|
{
|
|
217
217
|
if (q--, q === 0) {
|
|
218
218
|
var w = {
|
|
@@ -316,23 +316,23 @@ function Qm() {
|
|
|
316
316
|
if (it && Z && typeof it.stack == "string") {
|
|
317
317
|
for (var ae = it.stack.split(`
|
|
318
318
|
`), Xe = Z.stack.split(`
|
|
319
|
-
`), Te = ae.length - 1,
|
|
320
|
-
|
|
321
|
-
for (; Te >= 1 &&
|
|
322
|
-
if (ae[Te] !== Xe[
|
|
323
|
-
if (Te !== 1 ||
|
|
319
|
+
`), Te = ae.length - 1, Fe = Xe.length - 1; Te >= 1 && Fe >= 0 && ae[Te] !== Xe[Fe]; )
|
|
320
|
+
Fe--;
|
|
321
|
+
for (; Te >= 1 && Fe >= 0; Te--, Fe--)
|
|
322
|
+
if (ae[Te] !== Xe[Fe]) {
|
|
323
|
+
if (Te !== 1 || Fe !== 1)
|
|
324
324
|
do
|
|
325
|
-
if (Te--,
|
|
325
|
+
if (Te--, Fe--, Fe < 0 || ae[Te] !== Xe[Fe]) {
|
|
326
326
|
var ft = `
|
|
327
327
|
` + ae[Te].replace(" at new ", " at ");
|
|
328
328
|
return w.displayName && ft.includes("<anonymous>") && (ft = ft.replace("<anonymous>", w.displayName)), typeof w == "function" && Dt.set(w, ft), ft;
|
|
329
329
|
}
|
|
330
|
-
while (Te >= 1 &&
|
|
330
|
+
while (Te >= 1 && Fe >= 0);
|
|
331
331
|
break;
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
} finally {
|
|
335
|
-
jt = !1, Le.current = me,
|
|
335
|
+
jt = !1, Le.current = me, _e(), Error.prepareStackTrace = ve;
|
|
336
336
|
}
|
|
337
337
|
var He = w ? w.displayName || w.name : "", Qe = He ? dt(He) : "";
|
|
338
338
|
return typeof w == "function" && Dt.set(w, Qe), Qe;
|
|
@@ -374,7 +374,7 @@ function Qm() {
|
|
|
374
374
|
return "";
|
|
375
375
|
}
|
|
376
376
|
var ke = Object.prototype.hasOwnProperty, je = {}, Ce = T.ReactDebugCurrentFrame;
|
|
377
|
-
function
|
|
377
|
+
function Gn(w) {
|
|
378
378
|
if (w) {
|
|
379
379
|
var M = w._owner, H = Pt(w.type, w._source, M ? M.type : null);
|
|
380
380
|
Ce.setExtraStackFrame(H);
|
|
@@ -396,13 +396,13 @@ function Qm() {
|
|
|
396
396
|
} catch (Te) {
|
|
397
397
|
ae = Te;
|
|
398
398
|
}
|
|
399
|
-
ae && !(ae instanceof Error) && (
|
|
399
|
+
ae && !(ae instanceof Error) && (Gn(ve), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Z || "React class", H, pe, typeof ae), Gn(null)), ae instanceof Error && !(ae.message in je) && (je[ae.message] = !0, Gn(ve), E("Failed %s type: %s", H, ae.message), Gn(null));
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
var
|
|
403
|
+
var qi = Array.isArray;
|
|
404
404
|
function zt(w) {
|
|
405
|
-
return
|
|
405
|
+
return qi(w);
|
|
406
406
|
}
|
|
407
407
|
function _r(w) {
|
|
408
408
|
{
|
|
@@ -410,7 +410,7 @@ function Qm() {
|
|
|
410
410
|
return H;
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function Hi(w) {
|
|
414
414
|
try {
|
|
415
415
|
return Ea(w), !1;
|
|
416
416
|
} catch {
|
|
@@ -421,7 +421,7 @@ function Qm() {
|
|
|
421
421
|
return "" + w;
|
|
422
422
|
}
|
|
423
423
|
function ht(w) {
|
|
424
|
-
if (
|
|
424
|
+
if (Hi(w))
|
|
425
425
|
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", _r(w)), Ea(w);
|
|
426
426
|
}
|
|
427
427
|
var Lt = T.ReactCurrentOwner, Fa = {
|
|
@@ -439,7 +439,7 @@ function Qm() {
|
|
|
439
439
|
}
|
|
440
440
|
return w.ref !== void 0;
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function Ui(w) {
|
|
443
443
|
if (ke.call(w, "key")) {
|
|
444
444
|
var M = Object.getOwnPropertyDescriptor(w, "key").get;
|
|
445
445
|
if (M && M.isReactWarning)
|
|
@@ -447,13 +447,13 @@ function Qm() {
|
|
|
447
447
|
}
|
|
448
448
|
return w.key !== void 0;
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function Wi(w, M) {
|
|
451
451
|
if (typeof w.ref == "string" && Lt.current && M && Lt.current.stateNode !== M) {
|
|
452
452
|
var H = L(Lt.current.type);
|
|
453
453
|
Sr[H] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', L(Lt.current.type), w.ref), Sr[H] = !0);
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function zi(w, M) {
|
|
457
457
|
{
|
|
458
458
|
var H = function() {
|
|
459
459
|
Aa || (Aa = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", M));
|
|
@@ -464,7 +464,7 @@ function Qm() {
|
|
|
464
464
|
});
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function Vi(w, M) {
|
|
468
468
|
{
|
|
469
469
|
var H = function() {
|
|
470
470
|
$a || ($a = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", M));
|
|
@@ -504,10 +504,10 @@ function Qm() {
|
|
|
504
504
|
value: ve
|
|
505
505
|
}), Object.freeze && (Object.freeze(ae.props), Object.freeze(ae)), ae;
|
|
506
506
|
};
|
|
507
|
-
function
|
|
507
|
+
function Yi(w, M, H, Z, ve) {
|
|
508
508
|
{
|
|
509
509
|
var me, pe = {}, ae = null, Xe = null;
|
|
510
|
-
H !== void 0 && (ht(H), ae = "" + H),
|
|
510
|
+
H !== void 0 && (ht(H), ae = "" + H), Ui(M) && (ht(M.key), ae = "" + M.key), kt(M) && (Xe = M.ref, Wi(M, ve));
|
|
511
511
|
for (me in M)
|
|
512
512
|
ke.call(M, me) && !Fa.hasOwnProperty(me) && (pe[me] = M[me]);
|
|
513
513
|
if (w && w.defaultProps) {
|
|
@@ -516,8 +516,8 @@ function Qm() {
|
|
|
516
516
|
pe[me] === void 0 && (pe[me] = Te[me]);
|
|
517
517
|
}
|
|
518
518
|
if (ae || Xe) {
|
|
519
|
-
var
|
|
520
|
-
ae &&
|
|
519
|
+
var Fe = typeof w == "function" ? w.displayName || w.name || "Unknown" : w;
|
|
520
|
+
ae && zi(pe, Fe), Xe && Vi(pe, Fe);
|
|
521
521
|
}
|
|
522
522
|
return xt(w, ae, Xe, ve, Z, Lt.current, pe);
|
|
523
523
|
}
|
|
@@ -551,7 +551,7 @@ Check the render method of \`` + w + "`.";
|
|
|
551
551
|
return "";
|
|
552
552
|
}
|
|
553
553
|
var Ba = {};
|
|
554
|
-
function
|
|
554
|
+
function Ki(w) {
|
|
555
555
|
{
|
|
556
556
|
var M = $r();
|
|
557
557
|
if (!M) {
|
|
@@ -568,7 +568,7 @@ Check the top-level render call using <` + H + ">.");
|
|
|
568
568
|
if (!w._store || w._store.validated || w.key != null)
|
|
569
569
|
return;
|
|
570
570
|
w._store.validated = !0;
|
|
571
|
-
var H =
|
|
571
|
+
var H = Ki(M);
|
|
572
572
|
if (Ba[H])
|
|
573
573
|
return;
|
|
574
574
|
Ba[H] = !0;
|
|
@@ -620,7 +620,7 @@ Check the top-level render call using <` + H + ">.");
|
|
|
620
620
|
typeof M.getDefaultProps == "function" && !M.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function Ji(w) {
|
|
624
624
|
{
|
|
625
625
|
for (var M = Object.keys(w.props), H = 0; H < M.length; H++) {
|
|
626
626
|
var Z = M[H];
|
|
@@ -644,9 +644,9 @@ Check the top-level render call using <` + H + ">.");
|
|
|
644
644
|
var Te;
|
|
645
645
|
w === null ? Te = "null" : zt(w) ? Te = "array" : w !== void 0 && w.$$typeof === t ? (Te = "<" + (L(w.type) || "Unknown") + " />", ae = " Did you accidentally export a JSX literal instead of a component?") : Te = typeof w, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Te, ae);
|
|
646
646
|
}
|
|
647
|
-
var
|
|
648
|
-
if (
|
|
649
|
-
return
|
|
647
|
+
var Fe = Yi(w, M, H, ve, me);
|
|
648
|
+
if (Fe == null)
|
|
649
|
+
return Fe;
|
|
650
650
|
if (pe) {
|
|
651
651
|
var ft = M.children;
|
|
652
652
|
if (ft !== void 0)
|
|
@@ -661,8 +661,8 @@ Check the top-level render call using <` + H + ">.");
|
|
|
661
661
|
Vt(ft, w);
|
|
662
662
|
}
|
|
663
663
|
if (ke.call(M, "key")) {
|
|
664
|
-
var Qe = L(w), it = Object.keys(M).filter(function(
|
|
665
|
-
return
|
|
664
|
+
var Qe = L(w), it = Object.keys(M).filter(function(Zi) {
|
|
665
|
+
return Zi !== "key";
|
|
666
666
|
}), Tr = it.length > 0 ? "{key: someKey, " + it.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
667
667
|
if (!Na[Qe + Tr]) {
|
|
668
668
|
var La = it.length > 0 ? "{" + it.join(": ..., ") + ": ...}" : "{}";
|
|
@@ -674,21 +674,21 @@ React keys must be passed directly to JSX without using spread:
|
|
|
674
674
|
<%s key={someKey} {...props} />`, Tr, Qe, La, Qe), Na[Qe + Tr] = !0;
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
|
-
return w === r ?
|
|
677
|
+
return w === r ? Ji(Fe) : wt(Fe), Fe;
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
680
|
function Pa(w, M, H) {
|
|
681
681
|
return ja(w, M, H, !0);
|
|
682
682
|
}
|
|
683
|
-
function
|
|
683
|
+
function Xi(w, M, H) {
|
|
684
684
|
return ja(w, M, H, !1);
|
|
685
685
|
}
|
|
686
|
-
var
|
|
687
|
-
Wr.Fragment = r, Wr.jsx =
|
|
686
|
+
var Qi = Xi, Kn = Pa;
|
|
687
|
+
Wr.Fragment = r, Wr.jsx = Qi, Wr.jsxs = Kn;
|
|
688
688
|
}()), Wr;
|
|
689
689
|
}
|
|
690
|
-
process.env.NODE_ENV === "production" ?
|
|
691
|
-
var m =
|
|
690
|
+
process.env.NODE_ENV === "production" ? zs.exports = Xm() : zs.exports = Qm();
|
|
691
|
+
var m = zs.exports;
|
|
692
692
|
const u_ = Ne(
|
|
693
693
|
({ compact: e = !1, skin: t = "borderless", className: n, children: r }, i) => {
|
|
694
694
|
const o = [
|
|
@@ -699,21 +699,21 @@ const u_ = Ne(
|
|
|
699
699
|
].filter(Boolean).join(" ");
|
|
700
700
|
return /* @__PURE__ */ m.jsx("div", { "data-testid": "pkt-accordion", className: o, ref: i, children: r });
|
|
701
701
|
}
|
|
702
|
-
),
|
|
702
|
+
), Cs = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>', Zm = "https://punkt-cdn.oslo.kommune.no/12.3/icons/";
|
|
703
703
|
function eg(e) {
|
|
704
704
|
return new Promise((t) => setTimeout(t, e));
|
|
705
705
|
}
|
|
706
|
-
const
|
|
706
|
+
const xs = {}, tg = async (e, t) => {
|
|
707
707
|
let n = 0;
|
|
708
|
-
for (;
|
|
708
|
+
for (; xs[t + e + ".svg"] === "fetching" && (n++, !(n > 50)); )
|
|
709
709
|
await eg(50);
|
|
710
|
-
return localStorage.getItem(t + e + ".svg") ? Promise.resolve(localStorage.getItem(t + e + ".svg")) : typeof window.fetch == "function" ? (
|
|
711
|
-
fetch(t + e + ".svg").then((r) => r.ok ? r.text() : (console.error("Missing icon: " + t + e + ".svg"),
|
|
712
|
-
)) : Promise.resolve(
|
|
710
|
+
return localStorage.getItem(t + e + ".svg") ? Promise.resolve(localStorage.getItem(t + e + ".svg")) : typeof window.fetch == "function" ? (xs[t + e + ".svg"] = "fetching", Promise.resolve(
|
|
711
|
+
fetch(t + e + ".svg").then((r) => r.ok ? r.text() : (console.error("Missing icon: " + t + e + ".svg"), Cs)).then((r) => (r !== Cs && localStorage.setItem(t + e + ".svg", r), xs[t + e + ".svg"] = "fetched", r))
|
|
712
|
+
)) : Promise.resolve(Cs);
|
|
713
713
|
}, ng = {
|
|
714
714
|
fetchIcon: async (e, t) => tg(e, t || Zm)
|
|
715
|
-
}, rg =
|
|
716
|
-
const [i, o] = Ve(null), u =
|
|
715
|
+
}, rg = Ym(ng), ee = ({ name: e, path: t, className: n = "", ...r }) => {
|
|
716
|
+
const [i, o] = Ve(null), u = Gm(rg);
|
|
717
717
|
return oa(() => {
|
|
718
718
|
e ? u.fetchIcon(e, t).then(o) : o(null);
|
|
719
719
|
}, [e, t]), i ? /* @__PURE__ */ m.jsx("span", { className: `pkt-icon ${n}`, dangerouslySetInnerHTML: { __html: i }, ...r }) : null;
|
|
@@ -755,7 +755,7 @@ var Hc = { exports: {} };
|
|
|
755
755
|
})();
|
|
756
756
|
})(Hc);
|
|
757
757
|
var ag = Hc.exports;
|
|
758
|
-
const nt = /* @__PURE__ */
|
|
758
|
+
const nt = /* @__PURE__ */ _i(ag), c_ = Ne(
|
|
759
759
|
({ title: e, className: t, children: n, toggleProps: r, defaultOpen: i = !1, id: o }, u) => {
|
|
760
760
|
const [c, d] = Ve(i), h = r ? r.isOpen : c, g = (b) => b ?? void 0, v = (b, k) => {
|
|
761
761
|
b.preventDefault(), r !== void 0 && r.onToggleClick(b, k), d(!h);
|
|
@@ -1042,7 +1042,7 @@ const lg = (e) => new og(typeof e == "string" ? e : e + "", void 0, Wc), ug = (e
|
|
|
1042
1042
|
* Copyright 2017 Google LLC
|
|
1043
1043
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1044
1044
|
*/
|
|
1045
|
-
const { is: cg, defineProperty: pg, getOwnPropertyDescriptor: dg, getOwnPropertyNames: hg, getOwnPropertySymbols: fg, getPrototypeOf: mg } = Object, mr = globalThis, fu = mr.trustedTypes, gg = fu ? fu.emptyScript : "", mu = mr.reactiveElementPolyfillSupport, na = (e, t) => e,
|
|
1045
|
+
const { is: cg, defineProperty: pg, getOwnPropertyDescriptor: dg, getOwnPropertyNames: hg, getOwnPropertySymbols: fg, getPrototypeOf: mg } = Object, mr = globalThis, fu = mr.trustedTypes, gg = fu ? fu.emptyScript : "", mu = mr.reactiveElementPolyfillSupport, na = (e, t) => e, gi = { toAttribute(e, t) {
|
|
1046
1046
|
switch (t) {
|
|
1047
1047
|
case Boolean:
|
|
1048
1048
|
e = e ? gg : null;
|
|
@@ -1070,7 +1070,7 @@ const { is: cg, defineProperty: pg, getOwnPropertyDescriptor: dg, getOwnProperty
|
|
|
1070
1070
|
}
|
|
1071
1071
|
}
|
|
1072
1072
|
return n;
|
|
1073
|
-
} }, vo = (e, t) => !cg(e, t), gu = { attribute: !0, type: String, converter:
|
|
1073
|
+
} }, vo = (e, t) => !cg(e, t), gu = { attribute: !0, type: String, converter: gi, reflect: !1, hasChanged: vo };
|
|
1074
1074
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), mr.litPropertyMetadata ?? (mr.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
1075
1075
|
let or = class extends HTMLElement {
|
|
1076
1076
|
static addInitializer(t) {
|
|
@@ -1183,7 +1183,7 @@ let or = class extends HTMLElement {
|
|
|
1183
1183
|
var r;
|
|
1184
1184
|
const i = this.constructor.elementProperties.get(t), o = this.constructor._$Eu(t, i);
|
|
1185
1185
|
if (o !== void 0 && i.reflect === !0) {
|
|
1186
|
-
const u = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter :
|
|
1186
|
+
const u = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : gi).toAttribute(n, i.type);
|
|
1187
1187
|
this._$Em = t, u == null ? this.removeAttribute(o) : this.setAttribute(o, u), this._$Em = null;
|
|
1188
1188
|
}
|
|
1189
1189
|
}
|
|
@@ -1191,7 +1191,7 @@ let or = class extends HTMLElement {
|
|
|
1191
1191
|
var r;
|
|
1192
1192
|
const i = this.constructor, o = i._$Eh.get(t);
|
|
1193
1193
|
if (o !== void 0 && this._$Em !== o) {
|
|
1194
|
-
const u = i.getPropertyOptions(o), c = typeof u.converter == "function" ? { fromAttribute: u.converter } : ((r = u.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? u.converter :
|
|
1194
|
+
const u = i.getPropertyOptions(o), c = typeof u.converter == "function" ? { fromAttribute: u.converter } : ((r = u.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? u.converter : gi;
|
|
1195
1195
|
this._$Em = o, this[o] = c.fromAttribute(n, u.type), this._$Em = null;
|
|
1196
1196
|
}
|
|
1197
1197
|
}
|
|
@@ -1276,14 +1276,14 @@ or.elementStyles = [], or.shadowRootOptions = { mode: "open" }, or[na("elementPr
|
|
|
1276
1276
|
* Copyright 2017 Google LLC
|
|
1277
1277
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1278
1278
|
*/
|
|
1279
|
-
const
|
|
1280
|
-
\f\r]`, zr = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Du = /-->/g, yu = />/g, Fn = RegExp(`>|${
|
|
1279
|
+
const vi = globalThis, Di = vi.trustedTypes, vu = Di ? Di.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Do = "$lit$", Jt = `lit$${Math.random().toFixed(9).slice(2)}$`, yo = "?" + Jt, vg = `<${yo}>`, In = document, la = () => In.createComment(""), ua = (e) => e === null || typeof e != "object" && typeof e != "function", bo = Array.isArray, zc = (e) => bo(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", _s = `[
|
|
1280
|
+
\f\r]`, zr = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Du = /-->/g, yu = />/g, Fn = RegExp(`>|${_s}(?:([^\\s"'>=/]+)(${_s}*=${_s}*(?:[^
|
|
1281
1281
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), bu = /'/g, ku = /"/g, Vc = /^(?:script|style|textarea|title)$/i, Dg = (e) => (t, ...n) => ({ _$litType$: e, strings: t, values: n }), J = Dg(1), Qt = Symbol.for("lit-noChange"), te = Symbol.for("lit-nothing"), wu = /* @__PURE__ */ new WeakMap(), Ln = In.createTreeWalker(In, 129);
|
|
1282
|
-
function
|
|
1282
|
+
function Yc(e, t) {
|
|
1283
1283
|
if (!bo(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1284
1284
|
return vu !== void 0 ? vu.createHTML(t) : t;
|
|
1285
1285
|
}
|
|
1286
|
-
const
|
|
1286
|
+
const Gc = (e, t) => {
|
|
1287
1287
|
const n = e.length - 1, r = [];
|
|
1288
1288
|
let i, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", u = zr;
|
|
1289
1289
|
for (let c = 0; c < n; c++) {
|
|
@@ -1293,14 +1293,14 @@ const Yc = (e, t) => {
|
|
|
1293
1293
|
const b = u === Fn && e[c + 1].startsWith("/>") ? " " : "";
|
|
1294
1294
|
o += u === zr ? d + vg : v >= 0 ? (r.push(h), d.slice(0, v) + Do + d.slice(v) + Jt + b) : d + Jt + (v === -2 ? c : b);
|
|
1295
1295
|
}
|
|
1296
|
-
return [
|
|
1296
|
+
return [Yc(e, o + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
|
|
1297
1297
|
};
|
|
1298
|
-
let
|
|
1298
|
+
let Vs = class Kc {
|
|
1299
1299
|
constructor({ strings: t, _$litType$: n }, r) {
|
|
1300
1300
|
let i;
|
|
1301
1301
|
this.parts = [];
|
|
1302
1302
|
let o = 0, u = 0;
|
|
1303
|
-
const c = t.length - 1, d = this.parts, [h, g] =
|
|
1303
|
+
const c = t.length - 1, d = this.parts, [h, g] = Gc(t, n);
|
|
1304
1304
|
if (this.el = Kc.createElement(h, r), Ln.currentNode = this.el.content, n === 2 || n === 3) {
|
|
1305
1305
|
const v = this.el.content.firstChild;
|
|
1306
1306
|
v.replaceWith(...v.childNodes);
|
|
@@ -1314,7 +1314,7 @@ let zs = class Kc {
|
|
|
1314
1314
|
if (Vc.test(i.tagName)) {
|
|
1315
1315
|
const v = i.textContent.split(Jt), D = v.length - 1;
|
|
1316
1316
|
if (D > 0) {
|
|
1317
|
-
i.textContent =
|
|
1317
|
+
i.textContent = Di ? Di.emptyScript : "";
|
|
1318
1318
|
for (let b = 0; b < D; b++) i.append(v[b], la()), Ln.nextNode(), d.push({ type: 2, index: ++o });
|
|
1319
1319
|
i.append(v[D], la());
|
|
1320
1320
|
}
|
|
@@ -1356,7 +1356,7 @@ let Jc = class {
|
|
|
1356
1356
|
for (; d !== void 0; ) {
|
|
1357
1357
|
if (u === d.index) {
|
|
1358
1358
|
let h;
|
|
1359
|
-
d.type === 2 ? h = new
|
|
1359
|
+
d.type === 2 ? h = new Si(o, o.nextSibling, this, t) : d.type === 1 ? h = new d.ctor(o, d.name, d.strings, this, t) : d.type === 6 && (h = new tp(o, this, t)), this._$AV.push(h), d = r[++c];
|
|
1360
1360
|
}
|
|
1361
1361
|
u !== (d == null ? void 0 : d.index) && (o = Ln.nextNode(), u++);
|
|
1362
1362
|
}
|
|
@@ -1366,7 +1366,7 @@ let Jc = class {
|
|
|
1366
1366
|
let n = 0;
|
|
1367
1367
|
for (const r of this._$AV) r !== void 0 && (r.strings !== void 0 ? (r._$AI(t, r, n), n += r.strings.length - 2) : r._$AI(t[n])), n++;
|
|
1368
1368
|
}
|
|
1369
|
-
},
|
|
1369
|
+
}, Si = class Xc {
|
|
1370
1370
|
get _$AU() {
|
|
1371
1371
|
var t;
|
|
1372
1372
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this.v;
|
|
@@ -1399,7 +1399,7 @@ let Jc = class {
|
|
|
1399
1399
|
}
|
|
1400
1400
|
$(t) {
|
|
1401
1401
|
var n;
|
|
1402
|
-
const { values: r, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el =
|
|
1402
|
+
const { values: r, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = Vs.createElement(Yc(i.h, i.h[0]), this.options)), i);
|
|
1403
1403
|
if (((n = this._$AH) == null ? void 0 : n._$AD) === o) this._$AH.p(r);
|
|
1404
1404
|
else {
|
|
1405
1405
|
const u = new Jc(o, this), c = u.u(this.options);
|
|
@@ -1408,7 +1408,7 @@ let Jc = class {
|
|
|
1408
1408
|
}
|
|
1409
1409
|
_$AC(t) {
|
|
1410
1410
|
let n = wu.get(t.strings);
|
|
1411
|
-
return n === void 0 && wu.set(t.strings, n = new
|
|
1411
|
+
return n === void 0 && wu.set(t.strings, n = new Vs(t)), n;
|
|
1412
1412
|
}
|
|
1413
1413
|
k(t) {
|
|
1414
1414
|
bo(this._$AH) || (this._$AH = [], this._$AR());
|
|
@@ -1490,14 +1490,14 @@ let Jc = class {
|
|
|
1490
1490
|
Mn(this, t);
|
|
1491
1491
|
}
|
|
1492
1492
|
};
|
|
1493
|
-
const yg = { M: Do, P: Jt, A: yo, C: 1, L:
|
|
1494
|
-
Cu == null || Cu(
|
|
1493
|
+
const yg = { M: Do, P: Jt, A: yo, C: 1, L: Gc, R: Jc, D: zc, V: Mn, I: Si, H: va, N: Zc, U: ep, B: Qc, F: tp }, Cu = vi.litHtmlPolyfillSupport;
|
|
1494
|
+
Cu == null || Cu(Vs, Si), (vi.litHtmlVersions ?? (vi.litHtmlVersions = [])).push("3.2.0");
|
|
1495
1495
|
const bg = (e, t, n) => {
|
|
1496
1496
|
const r = (n == null ? void 0 : n.renderBefore) ?? t;
|
|
1497
1497
|
let i = r._$litPart$;
|
|
1498
1498
|
if (i === void 0) {
|
|
1499
1499
|
const o = (n == null ? void 0 : n.renderBefore) ?? null;
|
|
1500
|
-
r._$litPart$ = i = new
|
|
1500
|
+
r._$litPart$ = i = new Si(t.insertBefore(la(), o), o, void 0, n ?? {});
|
|
1501
1501
|
}
|
|
1502
1502
|
return i._$AI(e), i;
|
|
1503
1503
|
};
|
|
@@ -1541,7 +1541,7 @@ _u == null || _u({ LitElement: ra });
|
|
|
1541
1541
|
* Copyright 2017 Google LLC
|
|
1542
1542
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1543
1543
|
*/
|
|
1544
|
-
const kg = { attribute: !0, type: String, converter:
|
|
1544
|
+
const kg = { attribute: !0, type: String, converter: gi, reflect: !1, hasChanged: vo }, wg = (e = kg, t, n) => {
|
|
1545
1545
|
const { kind: r, metadata: i } = n;
|
|
1546
1546
|
let o = globalThis.litPropertyMetadata.get(i);
|
|
1547
1547
|
if (o === void 0 && globalThis.litPropertyMetadata.set(i, o = /* @__PURE__ */ new Map()), o.set(n.name, e), r === "accessor") {
|
|
@@ -1577,8 +1577,8 @@ function Da(e) {
|
|
|
1577
1577
|
return O({ ...e, state: !0, attribute: !1 });
|
|
1578
1578
|
}
|
|
1579
1579
|
var et = [];
|
|
1580
|
-
for (var
|
|
1581
|
-
et.push((
|
|
1580
|
+
for (var Ss = 0; Ss < 256; ++Ss)
|
|
1581
|
+
et.push((Ss + 256).toString(16).slice(1));
|
|
1582
1582
|
function Cg(e, t = 0) {
|
|
1583
1583
|
return (et[e[t + 0]] + et[e[t + 1]] + et[e[t + 2]] + et[e[t + 3]] + "-" + et[e[t + 4]] + et[e[t + 5]] + "-" + et[e[t + 6]] + et[e[t + 7]] + "-" + et[e[t + 8]] + et[e[t + 9]] + "-" + et[e[t + 10]] + et[e[t + 11]] + et[e[t + 12]] + et[e[t + 13]] + et[e[t + 14]] + et[e[t + 15]]).toLowerCase();
|
|
1584
1584
|
}
|
|
@@ -1678,7 +1678,7 @@ const Eg = {
|
|
|
1678
1678
|
dates: Ag,
|
|
1679
1679
|
forms: $g
|
|
1680
1680
|
};
|
|
1681
|
-
var Tg = Object.defineProperty,
|
|
1681
|
+
var Tg = Object.defineProperty, Ge = (e, t, n, r) => {
|
|
1682
1682
|
for (var i = void 0, o = e.length - 1, u; o >= 0; o--)
|
|
1683
1683
|
(u = e[o]) && (i = u(t, n, i) || i);
|
|
1684
1684
|
return i && Tg(t, n, i), i;
|
|
@@ -1709,7 +1709,7 @@ let qt = class extends ra {
|
|
|
1709
1709
|
this.requestUpdate();
|
|
1710
1710
|
}
|
|
1711
1711
|
};
|
|
1712
|
-
|
|
1712
|
+
Ge([
|
|
1713
1713
|
O({ type: Object })
|
|
1714
1714
|
], qt.prototype, "strings");
|
|
1715
1715
|
let Ke = class extends qt {
|
|
@@ -1740,71 +1740,76 @@ let Ke = class extends qt {
|
|
|
1740
1740
|
this.touched = !0;
|
|
1741
1741
|
return;
|
|
1742
1742
|
}
|
|
1743
|
-
if (
|
|
1744
|
-
|
|
1745
|
-
|
|
1743
|
+
if (!(typeof t != "string" && !Array.isArray(t))) {
|
|
1744
|
+
if ((this.range || this.multiple) && !Array.isArray(t) && t.includes(",") && (t = t.split(",")), !this.multiple && !this.range && Array.isArray(t) && (t = t[0]), Array.isArray(t)) {
|
|
1745
|
+
const n = new FormData();
|
|
1746
|
+
t.forEach((r) => {
|
|
1747
|
+
n.append(this.name, r);
|
|
1748
|
+
}), this.internals.setFormValue(n);
|
|
1749
|
+
} else
|
|
1750
|
+
this.internals.setFormValue(t);
|
|
1751
|
+
this.manageValidity(this.inputRef.value), this.inputRef2 && this.manageValidity(this.inputRef2.value), this.dispatchEvent(new Event("input")), this.dispatchEvent(new Event("change")), this.dispatchEvent(
|
|
1752
|
+
new CustomEvent("value-change", {
|
|
1753
|
+
detail: t,
|
|
1754
|
+
bubbles: !0,
|
|
1755
|
+
composed: !0
|
|
1756
|
+
})
|
|
1757
|
+
), this.internals.reportValidity();
|
|
1746
1758
|
}
|
|
1747
|
-
!Array.isArray(t) && t.includes(",") && (t = t.split(",")), !this.multiple && !this.range && Array.isArray(t) && (t = t[0]), this.manageValidity(this.inputRef.value), this.inputRef2 && this.manageValidity(this.inputRef2.value), this.internals.setFormValue(t), this.dispatchEvent(new Event("input")), this.dispatchEvent(new Event("change")), this.dispatchEvent(
|
|
1748
|
-
new CustomEvent("value-changed", {
|
|
1749
|
-
detail: this._value,
|
|
1750
|
-
bubbles: !0,
|
|
1751
|
-
composed: !0
|
|
1752
|
-
})
|
|
1753
|
-
), this.internals.reportValidity();
|
|
1754
1759
|
}
|
|
1755
1760
|
firstUpdated(t) {
|
|
1756
1761
|
super.firstUpdated(t), this.required && (this.internals.ariaRequired = !0), this.disabled && (this.internals.disabled = !0, this.internals.ariaDisabled = !0), this.internals.setFormValue(this.value), this.manageValidity(this.inputRef.value);
|
|
1757
1762
|
}
|
|
1758
1763
|
};
|
|
1759
|
-
|
|
1764
|
+
Ge([
|
|
1760
1765
|
O({ type: String, reflect: !0 })
|
|
1761
1766
|
], Ke.prototype, "id");
|
|
1762
|
-
|
|
1767
|
+
Ge([
|
|
1763
1768
|
O({ type: String, reflect: !0 })
|
|
1764
1769
|
], Ke.prototype, "name");
|
|
1765
|
-
|
|
1770
|
+
Ge([
|
|
1766
1771
|
O({ type: Boolean, reflect: !0 })
|
|
1767
1772
|
], Ke.prototype, "required");
|
|
1768
|
-
|
|
1773
|
+
Ge([
|
|
1769
1774
|
O({ type: Boolean, reflect: !0 })
|
|
1770
1775
|
], Ke.prototype, "disabled");
|
|
1771
|
-
|
|
1776
|
+
Ge([
|
|
1772
1777
|
O({ type: String, reflect: !0 })
|
|
1773
1778
|
], Ke.prototype, "placeholder");
|
|
1774
|
-
|
|
1779
|
+
Ge([
|
|
1775
1780
|
O({ type: Number, reflect: !0 })
|
|
1776
1781
|
], Ke.prototype, "min");
|
|
1777
|
-
|
|
1782
|
+
Ge([
|
|
1778
1783
|
O({ type: Number, reflect: !0 })
|
|
1779
1784
|
], Ke.prototype, "max");
|
|
1780
|
-
|
|
1785
|
+
Ge([
|
|
1781
1786
|
O({ type: Number, reflect: !0 })
|
|
1782
1787
|
], Ke.prototype, "minlength");
|
|
1783
|
-
|
|
1788
|
+
Ge([
|
|
1784
1789
|
O({ type: Number, reflect: !0 })
|
|
1785
1790
|
], Ke.prototype, "maxlength");
|
|
1786
|
-
|
|
1791
|
+
Ge([
|
|
1787
1792
|
O({ type: String, reflect: !0 })
|
|
1788
1793
|
], Ke.prototype, "pattern");
|
|
1789
|
-
|
|
1794
|
+
Ge([
|
|
1790
1795
|
O({ type: Boolean, reflect: !0 })
|
|
1791
1796
|
], Ke.prototype, "optionalTag");
|
|
1792
|
-
|
|
1797
|
+
Ge([
|
|
1793
1798
|
O({ type: String, reflect: !0 })
|
|
1794
1799
|
], Ke.prototype, "optionalText");
|
|
1795
|
-
|
|
1800
|
+
Ge([
|
|
1796
1801
|
O({ type: Boolean, reflect: !0 })
|
|
1797
1802
|
], Ke.prototype, "requiredTag");
|
|
1798
|
-
|
|
1803
|
+
Ge([
|
|
1799
1804
|
O({ type: String, reflect: !0 })
|
|
1800
1805
|
], Ke.prototype, "requiredText");
|
|
1801
|
-
|
|
1806
|
+
Ge([
|
|
1802
1807
|
O({ type: Boolean, reflect: !0 })
|
|
1803
1808
|
], Ke.prototype, "hasError");
|
|
1804
|
-
|
|
1809
|
+
Ge([
|
|
1805
1810
|
O({ type: String, reflect: !0 })
|
|
1806
1811
|
], Ke.prototype, "errorMessage");
|
|
1807
|
-
|
|
1812
|
+
Ge([
|
|
1808
1813
|
Da()
|
|
1809
1814
|
], Ke.prototype, "touched");
|
|
1810
1815
|
const rp = (e) => {
|
|
@@ -1835,8 +1840,8 @@ const tn = (e) => (t, n) => {
|
|
|
1835
1840
|
* Copyright 2017 Google LLC
|
|
1836
1841
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1837
1842
|
*/
|
|
1838
|
-
const
|
|
1839
|
-
let
|
|
1843
|
+
const Ei = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, ya = (e) => (...t) => ({ _$litDirective$: e, values: t });
|
|
1844
|
+
let Fi = class {
|
|
1840
1845
|
constructor(t) {
|
|
1841
1846
|
}
|
|
1842
1847
|
get _$AU() {
|
|
@@ -1857,10 +1862,10 @@ let Ei = class {
|
|
|
1857
1862
|
* Copyright 2018 Google LLC
|
|
1858
1863
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1859
1864
|
*/
|
|
1860
|
-
const
|
|
1865
|
+
const Ye = ya(class extends Fi {
|
|
1861
1866
|
constructor(e) {
|
|
1862
1867
|
var t;
|
|
1863
|
-
if (super(e), e.type !==
|
|
1868
|
+
if (super(e), e.type !== Ei.ATTRIBUTE || e.name !== "class" || ((t = e.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
1864
1869
|
}
|
|
1865
1870
|
render(e) {
|
|
1866
1871
|
return " " + Object.keys(e).filter((t) => e[t]).join(" ") + " ";
|
|
@@ -1886,9 +1891,9 @@ const Ge = ya(class extends Ei {
|
|
|
1886
1891
|
* Copyright 2017 Google LLC
|
|
1887
1892
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1888
1893
|
*/
|
|
1889
|
-
|
|
1894
|
+
class yi extends Fi {
|
|
1890
1895
|
constructor(t) {
|
|
1891
|
-
if (super(t), this.it = te, t.type !==
|
|
1896
|
+
if (super(t), this.it = te, t.type !== Ei.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
1892
1897
|
}
|
|
1893
1898
|
render(t) {
|
|
1894
1899
|
if (t === te || t == null) return this._t = void 0, this.it = t;
|
|
@@ -1899,18 +1904,18 @@ let Di = class extends Ei {
|
|
|
1899
1904
|
const n = [t];
|
|
1900
1905
|
return n.raw = n, this._t = { _$litType$: this.constructor.resultType, strings: n, values: [] };
|
|
1901
1906
|
}
|
|
1902
|
-
}
|
|
1903
|
-
|
|
1904
|
-
const ri = ya(
|
|
1907
|
+
}
|
|
1908
|
+
yi.directiveName = "unsafeHTML", yi.resultType = 1;
|
|
1909
|
+
const ri = ya(yi);
|
|
1905
1910
|
/**
|
|
1906
1911
|
* @license
|
|
1907
1912
|
* Copyright 2017 Google LLC
|
|
1908
1913
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1909
1914
|
*/
|
|
1910
|
-
let
|
|
1915
|
+
let Ys = class extends yi {
|
|
1911
1916
|
};
|
|
1912
|
-
|
|
1913
|
-
const Eu = ya(
|
|
1917
|
+
Ys.directiveName = "unsafeSVG", Ys.resultType = 2;
|
|
1918
|
+
const Eu = ya(Ys);
|
|
1914
1919
|
var jg = Object.defineProperty, Pg = Object.getOwnPropertyDescriptor, ba = (e, t, n, r) => {
|
|
1915
1920
|
for (var i = r > 1 ? void 0 : r ? Pg(t, n) : t, o = e.length - 1, u; o >= 0; o--)
|
|
1916
1921
|
(u = e[o]) && (i = (r ? u(t, n, i) : u(i)) || i);
|
|
@@ -1918,12 +1923,12 @@ var jg = Object.defineProperty, Pg = Object.getOwnPropertyDescriptor, ba = (e, t
|
|
|
1918
1923
|
};
|
|
1919
1924
|
window.pktFetch = window.pktFetch === void 0 ? fetch : window.pktFetch;
|
|
1920
1925
|
window.pktIconPath = window.pktIconPath || "https://punkt-cdn.oslo.kommune.no/12.3/icons/";
|
|
1921
|
-
const Lg = (e) => new Promise((t) => setTimeout(t, e)), ui = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>',
|
|
1926
|
+
const Lg = (e) => new Promise((t) => setTimeout(t, e)), ui = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>', Es = {}, Og = async (e, t) => {
|
|
1922
1927
|
let n = 0;
|
|
1923
|
-
for (;
|
|
1928
|
+
for (; Es[t + e + ".svg"] === "fetching" && (n++, !(n > 50)); )
|
|
1924
1929
|
await Lg(50);
|
|
1925
|
-
return localStorage.getItem(t + e + ".svg") ? Promise.resolve(localStorage.getItem(t + e + ".svg")) : typeof window.pktFetch == "function" ? (
|
|
1926
|
-
window.pktFetch(t + e + ".svg").then((r) => r.ok ? r.text() : (console.error("Missing icon: " + t + e + ".svg"), ui)).then((r) => (r !== ui && localStorage.setItem(t + e + ".svg", r),
|
|
1930
|
+
return localStorage.getItem(t + e + ".svg") ? Promise.resolve(localStorage.getItem(t + e + ".svg")) : typeof window.pktFetch == "function" ? (Es[t + e + ".svg"] = "fetching", Promise.resolve(
|
|
1931
|
+
window.pktFetch(t + e + ".svg").then((r) => r.ok ? r.text() : (console.error("Missing icon: " + t + e + ".svg"), ui)).then((r) => (r !== ui && localStorage.setItem(t + e + ".svg", r), Es[t + e + ".svg"] = "fetched", r))
|
|
1927
1932
|
)) : Promise.resolve(ui);
|
|
1928
1933
|
};
|
|
1929
1934
|
let gr = class extends qt {
|
|
@@ -1966,15 +1971,15 @@ function Rn(e, t) {
|
|
|
1966
1971
|
}
|
|
1967
1972
|
const ap = 6048e5, Ig = 864e5;
|
|
1968
1973
|
let Mg = {};
|
|
1969
|
-
function
|
|
1974
|
+
function Ai() {
|
|
1970
1975
|
return Mg;
|
|
1971
1976
|
}
|
|
1972
1977
|
function ca(e, t) {
|
|
1973
1978
|
var n, r, i, o;
|
|
1974
|
-
const u =
|
|
1979
|
+
const u = Ai(), c = (t == null ? void 0 : t.weekStartsOn) ?? ((r = (n = t == null ? void 0 : t.locale) == null ? void 0 : n.options) == null ? void 0 : r.weekStartsOn) ?? u.weekStartsOn ?? ((o = (i = u.locale) == null ? void 0 : i.options) == null ? void 0 : o.weekStartsOn) ?? 0, d = pt(e), h = d.getDay(), g = (h < c ? 7 : 0) + h - c;
|
|
1975
1980
|
return d.setDate(d.getDate() - g), d.setHours(0, 0, 0, 0), d;
|
|
1976
1981
|
}
|
|
1977
|
-
function
|
|
1982
|
+
function Fs(e, t) {
|
|
1978
1983
|
const n = pt(e.start), r = pt(e.end);
|
|
1979
1984
|
let i = +n > +r;
|
|
1980
1985
|
const o = i ? +n : +r, u = i ? r : n;
|
|
@@ -1987,7 +1992,7 @@ function Es(e, t) {
|
|
|
1987
1992
|
}
|
|
1988
1993
|
function ip(e, t) {
|
|
1989
1994
|
var n, r, i, o;
|
|
1990
|
-
const u = pt(e), c = u.getFullYear(), d =
|
|
1995
|
+
const u = pt(e), c = u.getFullYear(), d = Ai(), h = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((r = (n = t == null ? void 0 : t.locale) == null ? void 0 : n.options) == null ? void 0 : r.firstWeekContainsDate) ?? d.firstWeekContainsDate ?? ((o = (i = d.locale) == null ? void 0 : i.options) == null ? void 0 : o.firstWeekContainsDate) ?? 1, g = Rn(e, 0);
|
|
1991
1996
|
g.setFullYear(c + 1, 0, h), g.setHours(0, 0, 0, 0);
|
|
1992
1997
|
const v = ca(g, t), D = Rn(e, 0);
|
|
1993
1998
|
D.setFullYear(c, 0, h), D.setHours(0, 0, 0, 0);
|
|
@@ -1996,10 +2001,10 @@ function ip(e, t) {
|
|
|
1996
2001
|
}
|
|
1997
2002
|
function Rg(e, t) {
|
|
1998
2003
|
var n, r, i, o;
|
|
1999
|
-
const u =
|
|
2004
|
+
const u = Ai(), c = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((r = (n = t == null ? void 0 : t.locale) == null ? void 0 : n.options) == null ? void 0 : r.firstWeekContainsDate) ?? u.firstWeekContainsDate ?? ((o = (i = u.locale) == null ? void 0 : i.options) == null ? void 0 : o.firstWeekContainsDate) ?? 1, d = ip(e, t), h = Rn(e, 0);
|
|
2000
2005
|
return h.setFullYear(d, 0, c), h.setHours(0, 0, 0, 0), ca(h, t);
|
|
2001
2006
|
}
|
|
2002
|
-
function
|
|
2007
|
+
function ci(e, t) {
|
|
2003
2008
|
const n = pt(e), r = +ca(n, t) - +Rg(n, t);
|
|
2004
2009
|
return Math.round(r / ap) + 1;
|
|
2005
2010
|
}
|
|
@@ -2094,33 +2099,38 @@ const Hg = "pkt-calendar", Ug = {
|
|
|
2094
2099
|
props: Ug,
|
|
2095
2100
|
events: Wg
|
|
2096
2101
|
};
|
|
2097
|
-
var zg = Object.defineProperty, Vg = Object.getOwnPropertyDescriptor,
|
|
2102
|
+
var zg = Object.defineProperty, Vg = Object.getOwnPropertyDescriptor, $e = (e, t, n, r) => {
|
|
2098
2103
|
for (var i = r > 1 ? void 0 : r ? Vg(t, n) : t, o = e.length - 1, u; o >= 0; o--)
|
|
2099
2104
|
(u = e[o]) && (i = (r ? u(t, n, i) : u(i)) || i);
|
|
2100
2105
|
return r && i && zg(t, n, i), i;
|
|
2101
2106
|
};
|
|
2102
|
-
let
|
|
2107
|
+
let Ee = class extends qt {
|
|
2103
2108
|
/**
|
|
2104
2109
|
* If we are initializing props, slots and events from specs, we should do it in the constructor
|
|
2105
2110
|
*/
|
|
2106
2111
|
constructor() {
|
|
2107
|
-
super(), this.multiple = An.props.multiple.default, this.maxMultiple = An.props.maxMultiple.default, this.range = An.props.range.default, this.weeknumbers = An.props.weeknumbers.default, this.withcontrols = An.props.withcontrols.default, this.
|
|
2112
|
+
super(), this.multiple = An.props.multiple.default, this.maxMultiple = An.props.maxMultiple.default, this.range = An.props.range.default, this.weeknumbers = An.props.weeknumbers.default, this.withcontrols = An.props.withcontrols.default, this.selected = [], this.earliest = An.props.earliest.default, this.latest = An.props.latest.default, this.excludedates = [], this.excludeweekdays = [], this.currentmonth = /* @__PURE__ */ new Date(), this.dayStrings = this.strings.dates.daysShort, this.monthStrings = this.strings.dates.months, this.weekString = this.strings.dates.week, this.prevMonthString = this.strings.dates.prevMonth, this.nextMonthString = this.strings.dates.nextMonth, this._selected = [], this.year = 0, this.month = 0, this.week = 0, this.rangeHovered = null, this.inRange = {}, this.focusedDate = null, this.selectableDates = [];
|
|
2108
2113
|
}
|
|
2109
2114
|
/**
|
|
2110
2115
|
* Runs on mount, used to set up various values and whatever you need to run
|
|
2111
2116
|
*/
|
|
2112
2117
|
connectedCallback() {
|
|
2113
2118
|
const t = this.currentmonth;
|
|
2114
|
-
this.year = t.getFullYear(), this.month = t.getMonth(), this.week =
|
|
2119
|
+
this.year = t.getFullYear(), this.month = t.getMonth(), this.week = ci(new Date(this.year, this.month, 1, 12)), this.selected && this.selected.length && this.selected.forEach((n) => {
|
|
2115
2120
|
this._selected.push(new Date(n));
|
|
2116
2121
|
}), super.connectedCallback();
|
|
2117
2122
|
}
|
|
2118
2123
|
disconnectedCallback() {
|
|
2119
2124
|
this.removeEventListener("keydown", this.handleKeydown), super.disconnectedCallback();
|
|
2120
2125
|
}
|
|
2126
|
+
attributeChangedCallback(t, n, r) {
|
|
2127
|
+
t === "currentmonth" && r && (this.currentmonth = new Date(r), this.year = this.currentmonth.getFullYear(), this.month = this.currentmonth.getMonth(), this.week = ci(new Date(this.year, this.month, 1, 12))), t === "selected" && r && (this._selected = [], this.selected.forEach((i) => {
|
|
2128
|
+
this._selected.push(new Date(i));
|
|
2129
|
+
})), super.attributeChangedCallback(t, n, r);
|
|
2130
|
+
}
|
|
2121
2131
|
updated(t) {
|
|
2122
2132
|
if (t.has("selected") && this.selected.length === 2) {
|
|
2123
|
-
const n =
|
|
2133
|
+
const n = Fs({
|
|
2124
2134
|
start: new Date(this.selected[0]),
|
|
2125
2135
|
end: new Date(this.selected[1])
|
|
2126
2136
|
});
|
|
@@ -2272,7 +2282,7 @@ let _e = class extends qt {
|
|
|
2272
2282
|
"pkt-cal-in-range-last": this.range && this.selected.length === 2 && o === this.selected[1],
|
|
2273
2283
|
"pkt-cal-range-hover": this.rangeHovered !== null && o === this.formatISODate(this.rangeHovered)
|
|
2274
2284
|
};
|
|
2275
|
-
return J`<td class=${
|
|
2285
|
+
return J`<td class=${Ye(g)}>
|
|
2276
2286
|
<div
|
|
2277
2287
|
?aria-selected=${c}
|
|
2278
2288
|
role="gridcell"
|
|
@@ -2298,7 +2308,7 @@ let _e = class extends qt {
|
|
|
2298
2308
|
renderCalendarBody() {
|
|
2299
2309
|
const t = /* @__PURE__ */ new Date(), n = new Date(this.year, this.month, 1, 12), r = new Date(this.year, this.month + 1, 0, 12), i = (n.getDay() + 6) % 7, o = r.getDate(), u = Math.ceil((o + i) / 7), c = new Date(this.year, this.month, 0, 12).getDate();
|
|
2300
2310
|
let d = 1;
|
|
2301
|
-
this.week =
|
|
2311
|
+
this.week = ci(new Date(this.year, this.month, 1, 12));
|
|
2302
2312
|
const h = [];
|
|
2303
2313
|
for (let g = 0; g < u; g++) {
|
|
2304
2314
|
const v = [];
|
|
@@ -2369,7 +2379,7 @@ let _e = class extends qt {
|
|
|
2369
2379
|
isRangeAllowed(t) {
|
|
2370
2380
|
let n = !0;
|
|
2371
2381
|
if (this._selected.length === 1) {
|
|
2372
|
-
const r =
|
|
2382
|
+
const r = Fs({
|
|
2373
2383
|
start: this._selected[0],
|
|
2374
2384
|
end: t
|
|
2375
2385
|
});
|
|
@@ -2385,7 +2395,7 @@ let _e = class extends qt {
|
|
|
2385
2395
|
this.selected = [], this._selected = [], this.inRange = {};
|
|
2386
2396
|
}
|
|
2387
2397
|
addToSelected(t) {
|
|
2388
|
-
this.selected.includes(this.formatISODate(t)) || (this.selected = [...this.selected, this.formatISODate(t)], this._selected = [...this._selected, t]);
|
|
2398
|
+
this.selected.includes(this.formatISODate(t)) || (this.selected = [...this.selected, this.formatISODate(t)], this._selected = [...this._selected, t], this.range && this.selected.length === 2 && this.close());
|
|
2389
2399
|
}
|
|
2390
2400
|
removeFromSelected(t) {
|
|
2391
2401
|
if (this.selected.length === 1)
|
|
@@ -2406,7 +2416,7 @@ let _e = class extends qt {
|
|
|
2406
2416
|
handleRangeHover(t) {
|
|
2407
2417
|
if (this.range && this._selected.length === 1 && this.isRangeAllowed(t) && this._selected[0] < t) {
|
|
2408
2418
|
this.rangeHovered = t, this.inRange = {};
|
|
2409
|
-
const n =
|
|
2419
|
+
const n = Fs({
|
|
2410
2420
|
start: this._selected[0],
|
|
2411
2421
|
end: t
|
|
2412
2422
|
});
|
|
@@ -2439,84 +2449,81 @@ let _e = class extends qt {
|
|
|
2439
2449
|
);
|
|
2440
2450
|
}
|
|
2441
2451
|
};
|
|
2442
|
-
|
|
2452
|
+
$e([
|
|
2443
2453
|
O({ type: Boolean, reflect: !0 })
|
|
2444
|
-
],
|
|
2445
|
-
|
|
2454
|
+
], Ee.prototype, "multiple", 2);
|
|
2455
|
+
$e([
|
|
2446
2456
|
O({ type: Number })
|
|
2447
|
-
],
|
|
2448
|
-
|
|
2449
|
-
O({ type: Boolean, reflect: !0 })
|
|
2450
|
-
], _e.prototype, "range", 2);
|
|
2451
|
-
Fe([
|
|
2457
|
+
], Ee.prototype, "maxMultiple", 2);
|
|
2458
|
+
$e([
|
|
2452
2459
|
O({ type: Boolean, reflect: !0 })
|
|
2453
|
-
],
|
|
2454
|
-
|
|
2460
|
+
], Ee.prototype, "range", 2);
|
|
2461
|
+
$e([
|
|
2455
2462
|
O({ type: Boolean, reflect: !0 })
|
|
2456
|
-
],
|
|
2457
|
-
|
|
2463
|
+
], Ee.prototype, "weeknumbers", 2);
|
|
2464
|
+
$e([
|
|
2458
2465
|
O({ type: Boolean, reflect: !0 })
|
|
2459
|
-
],
|
|
2460
|
-
|
|
2466
|
+
], Ee.prototype, "withcontrols", 2);
|
|
2467
|
+
$e([
|
|
2461
2468
|
O({ converter: br.csvToArray })
|
|
2462
|
-
],
|
|
2463
|
-
|
|
2469
|
+
], Ee.prototype, "selected", 2);
|
|
2470
|
+
$e([
|
|
2464
2471
|
O({ type: String, reflect: !0 })
|
|
2465
|
-
],
|
|
2466
|
-
|
|
2472
|
+
], Ee.prototype, "earliest", 2);
|
|
2473
|
+
$e([
|
|
2467
2474
|
O({ type: String, reflect: !0 })
|
|
2468
|
-
],
|
|
2469
|
-
|
|
2475
|
+
], Ee.prototype, "latest", 2);
|
|
2476
|
+
$e([
|
|
2470
2477
|
O({ converter: br.stringsToDate })
|
|
2471
|
-
],
|
|
2472
|
-
|
|
2478
|
+
], Ee.prototype, "excludedates", 2);
|
|
2479
|
+
$e([
|
|
2473
2480
|
O({ converter: br.csvToArray })
|
|
2474
|
-
],
|
|
2475
|
-
|
|
2481
|
+
], Ee.prototype, "excludeweekdays", 2);
|
|
2482
|
+
$e([
|
|
2476
2483
|
O({ converter: br.stringToDate })
|
|
2477
|
-
],
|
|
2478
|
-
|
|
2484
|
+
], Ee.prototype, "currentmonth", 2);
|
|
2485
|
+
$e([
|
|
2479
2486
|
O({ type: Array })
|
|
2480
|
-
],
|
|
2481
|
-
|
|
2487
|
+
], Ee.prototype, "dayStrings", 2);
|
|
2488
|
+
$e([
|
|
2482
2489
|
O({ type: Array })
|
|
2483
|
-
],
|
|
2484
|
-
|
|
2490
|
+
], Ee.prototype, "monthStrings", 2);
|
|
2491
|
+
$e([
|
|
2485
2492
|
O({ type: String })
|
|
2486
|
-
],
|
|
2487
|
-
|
|
2493
|
+
], Ee.prototype, "weekString", 2);
|
|
2494
|
+
$e([
|
|
2488
2495
|
O({ type: String })
|
|
2489
|
-
],
|
|
2490
|
-
|
|
2496
|
+
], Ee.prototype, "prevMonthString", 2);
|
|
2497
|
+
$e([
|
|
2491
2498
|
O({ type: String })
|
|
2492
|
-
],
|
|
2493
|
-
|
|
2499
|
+
], Ee.prototype, "nextMonthString", 2);
|
|
2500
|
+
$e([
|
|
2494
2501
|
O({ type: Array })
|
|
2495
|
-
],
|
|
2496
|
-
|
|
2502
|
+
], Ee.prototype, "_selected", 2);
|
|
2503
|
+
$e([
|
|
2497
2504
|
O({ type: Number })
|
|
2498
|
-
],
|
|
2499
|
-
|
|
2505
|
+
], Ee.prototype, "year", 2);
|
|
2506
|
+
$e([
|
|
2500
2507
|
O({ type: Number })
|
|
2501
|
-
],
|
|
2502
|
-
|
|
2508
|
+
], Ee.prototype, "month", 2);
|
|
2509
|
+
$e([
|
|
2503
2510
|
O({ type: Number })
|
|
2504
|
-
],
|
|
2505
|
-
|
|
2511
|
+
], Ee.prototype, "week", 2);
|
|
2512
|
+
$e([
|
|
2506
2513
|
O({ type: Date })
|
|
2507
|
-
],
|
|
2508
|
-
|
|
2514
|
+
], Ee.prototype, "rangeHovered", 2);
|
|
2515
|
+
$e([
|
|
2509
2516
|
Da()
|
|
2510
|
-
],
|
|
2511
|
-
|
|
2517
|
+
], Ee.prototype, "inRange", 2);
|
|
2518
|
+
$e([
|
|
2512
2519
|
Da()
|
|
2513
|
-
],
|
|
2514
|
-
|
|
2520
|
+
], Ee.prototype, "focusedDate", 2);
|
|
2521
|
+
$e([
|
|
2515
2522
|
Da()
|
|
2516
|
-
],
|
|
2517
|
-
|
|
2523
|
+
], Ee.prototype, "selectableDates", 2);
|
|
2524
|
+
Ee = $e([
|
|
2518
2525
|
tn("pkt-calendar")
|
|
2519
|
-
],
|
|
2526
|
+
], Ee);
|
|
2520
2527
|
let kr = class {
|
|
2521
2528
|
constructor(t, ...n) {
|
|
2522
2529
|
this.nodes = [], this.host = t, this.host.addController(this), this.slots = n, this.nodes = [];
|
|
@@ -2552,12 +2559,12 @@ let kr = class {
|
|
|
2552
2559
|
* Copyright 2020 Google LLC
|
|
2553
2560
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2554
2561
|
*/
|
|
2555
|
-
const { I:
|
|
2562
|
+
const { I: Yg } = yg, Gg = (e) => e.strings === void 0, Fu = () => document.createComment(""), Vr = (e, t, n) => {
|
|
2556
2563
|
var r;
|
|
2557
2564
|
const i = e._$AA.parentNode, o = t === void 0 ? e._$AB : t._$AA;
|
|
2558
2565
|
if (n === void 0) {
|
|
2559
2566
|
const u = i.insertBefore(Fu(), o), c = i.insertBefore(Fu(), o);
|
|
2560
|
-
n = new
|
|
2567
|
+
n = new Yg(u, c, e, e.options);
|
|
2561
2568
|
} else {
|
|
2562
2569
|
const u = n._$AB.nextSibling, c = n._$AM, d = c !== e;
|
|
2563
2570
|
if (d) {
|
|
@@ -2573,7 +2580,7 @@ const { I: Gg } = yg, Yg = (e) => e.strings === void 0, Fu = () => document.crea
|
|
|
2573
2580
|
}
|
|
2574
2581
|
}
|
|
2575
2582
|
return n;
|
|
2576
|
-
}, $n = (e, t, n = e) => (e._$AI(t, n), e), Kg = {}, Jg = (e, t = Kg) => e._$AH = t, Xg = (e) => e._$AH,
|
|
2583
|
+
}, $n = (e, t, n = e) => (e._$AI(t, n), e), Kg = {}, Jg = (e, t = Kg) => e._$AH = t, Xg = (e) => e._$AH, As = (e) => {
|
|
2577
2584
|
var t;
|
|
2578
2585
|
(t = e._$AP) == null || t.call(e, !1, !0);
|
|
2579
2586
|
let n = e._$AA;
|
|
@@ -2594,7 +2601,7 @@ const aa = (e, t) => {
|
|
|
2594
2601
|
if (r === void 0) return !1;
|
|
2595
2602
|
for (const i of r) (n = i._$AO) == null || n.call(i, t, !1), aa(i, t);
|
|
2596
2603
|
return !0;
|
|
2597
|
-
},
|
|
2604
|
+
}, bi = (e) => {
|
|
2598
2605
|
let t, n;
|
|
2599
2606
|
do {
|
|
2600
2607
|
if ((t = e._$AM) === void 0) break;
|
|
@@ -2609,18 +2616,18 @@ const aa = (e, t) => {
|
|
|
2609
2616
|
}
|
|
2610
2617
|
};
|
|
2611
2618
|
function Qg(e) {
|
|
2612
|
-
this._$AN !== void 0 ? (
|
|
2619
|
+
this._$AN !== void 0 ? (bi(this), this._$AM = e, sp(this)) : this._$AM = e;
|
|
2613
2620
|
}
|
|
2614
2621
|
function Zg(e, t = !1, n = 0) {
|
|
2615
2622
|
const r = this._$AH, i = this._$AN;
|
|
2616
|
-
if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(r)) for (let o = n; o < r.length; o++) aa(r[o], !1),
|
|
2617
|
-
else r != null && (aa(r, !1),
|
|
2623
|
+
if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(r)) for (let o = n; o < r.length; o++) aa(r[o], !1), bi(r[o]);
|
|
2624
|
+
else r != null && (aa(r, !1), bi(r));
|
|
2618
2625
|
else aa(this, e);
|
|
2619
2626
|
}
|
|
2620
2627
|
const ev = (e) => {
|
|
2621
|
-
e.type ==
|
|
2628
|
+
e.type == Ei.CHILD && (e._$AP ?? (e._$AP = Zg), e._$AQ ?? (e._$AQ = Qg));
|
|
2622
2629
|
};
|
|
2623
|
-
let tv = class extends
|
|
2630
|
+
let tv = class extends Fi {
|
|
2624
2631
|
constructor() {
|
|
2625
2632
|
super(...arguments), this._$AN = void 0;
|
|
2626
2633
|
}
|
|
@@ -2629,10 +2636,10 @@ let tv = class extends Ei {
|
|
|
2629
2636
|
}
|
|
2630
2637
|
_$AO(t, n = !0) {
|
|
2631
2638
|
var r, i;
|
|
2632
|
-
t !== this.isConnected && (this.isConnected = t, t ? (r = this.reconnected) == null || r.call(this) : (i = this.disconnected) == null || i.call(this)), n && (aa(this, t),
|
|
2639
|
+
t !== this.isConnected && (this.isConnected = t, t ? (r = this.reconnected) == null || r.call(this) : (i = this.disconnected) == null || i.call(this)), n && (aa(this, t), bi(this));
|
|
2633
2640
|
}
|
|
2634
2641
|
setValue(t) {
|
|
2635
|
-
if (
|
|
2642
|
+
if (Gg(this.t)) this.t._$AI(t, this);
|
|
2636
2643
|
else {
|
|
2637
2644
|
const n = [...this.t._$AH];
|
|
2638
2645
|
n[this.i] = t, this.t._$AI(n, this, 0);
|
|
@@ -2651,7 +2658,7 @@ let tv = class extends Ei {
|
|
|
2651
2658
|
const Et = () => new nv();
|
|
2652
2659
|
let nv = class {
|
|
2653
2660
|
};
|
|
2654
|
-
const
|
|
2661
|
+
const $s = /* @__PURE__ */ new WeakMap(), ct = ya(class extends tv {
|
|
2655
2662
|
render(e) {
|
|
2656
2663
|
return te;
|
|
2657
2664
|
}
|
|
@@ -2663,13 +2670,13 @@ const As = /* @__PURE__ */ new WeakMap(), ct = ya(class extends tv {
|
|
|
2663
2670
|
rt(e) {
|
|
2664
2671
|
if (this.isConnected || (e = void 0), typeof this.Y == "function") {
|
|
2665
2672
|
const t = this.ht ?? globalThis;
|
|
2666
|
-
let n =
|
|
2667
|
-
n === void 0 && (n = /* @__PURE__ */ new WeakMap(),
|
|
2673
|
+
let n = $s.get(t);
|
|
2674
|
+
n === void 0 && (n = /* @__PURE__ */ new WeakMap(), $s.set(t, n)), n.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), n.set(this.Y, e), e !== void 0 && this.Y.call(this.ht, e);
|
|
2668
2675
|
} else this.Y.value = e;
|
|
2669
2676
|
}
|
|
2670
2677
|
get lt() {
|
|
2671
2678
|
var e, t;
|
|
2672
|
-
return typeof this.Y == "function" ? (e =
|
|
2679
|
+
return typeof this.Y == "function" ? (e = $s.get(this.ht ?? globalThis)) == null ? void 0 : e.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
|
|
2673
2680
|
}
|
|
2674
2681
|
disconnected() {
|
|
2675
2682
|
this.lt === this.ct && this.rt(void 0);
|
|
@@ -2775,7 +2782,7 @@ let Rt = class extends qt {
|
|
|
2775
2782
|
};
|
|
2776
2783
|
return this.closeTag ? this._isClosed ? te : J`
|
|
2777
2784
|
<button
|
|
2778
|
-
class=${
|
|
2785
|
+
class=${Ye(n)}
|
|
2779
2786
|
type=${this.type}
|
|
2780
2787
|
aria-label=${this.ariaLabel}
|
|
2781
2788
|
@click=${this.close}
|
|
@@ -2785,7 +2792,7 @@ let Rt = class extends qt {
|
|
|
2785
2792
|
<pkt-icon class="pkt-tag__close-btn" name="close"></pkt-icon>
|
|
2786
2793
|
</button>
|
|
2787
2794
|
` : J`
|
|
2788
|
-
<span class=${
|
|
2795
|
+
<span class=${Ye(t)}>
|
|
2789
2796
|
${this.iconName && J` <pkt-icon class="pkt-tag__icon" name=${this.iconName}></pkt-icon> `}
|
|
2790
2797
|
<span ${ct(this.defaultSlot)}> </span>
|
|
2791
2798
|
</span>
|
|
@@ -2931,7 +2938,7 @@ let Zt = class extends qt {
|
|
|
2931
2938
|
}, this.heading = "", this.subheading = "", this.tags = [], this.slotController = new kr(this, this.defaultSlot);
|
|
2932
2939
|
}
|
|
2933
2940
|
connectedCallback() {
|
|
2934
|
-
super.connectedCallback()
|
|
2941
|
+
super.connectedCallback();
|
|
2935
2942
|
}
|
|
2936
2943
|
render() {
|
|
2937
2944
|
const t = {
|
|
@@ -2940,7 +2947,7 @@ let Zt = class extends qt {
|
|
|
2940
2947
|
[`pkt-card--${this.direction}`]: this.direction
|
|
2941
2948
|
};
|
|
2942
2949
|
return J`
|
|
2943
|
-
<div class=${
|
|
2950
|
+
<div class=${Ye(t)}>
|
|
2944
2951
|
${this.image.src && J`
|
|
2945
2952
|
<div class="pkt-card__image">
|
|
2946
2953
|
<img src=${this.image.src} alt=${this.image.alt || ""} />
|
|
@@ -3014,7 +3021,7 @@ let vr = class extends qt {
|
|
|
3014
3021
|
"pkt-darkmode": this.darkmode
|
|
3015
3022
|
};
|
|
3016
3023
|
return J`
|
|
3017
|
-
<div class="${
|
|
3024
|
+
<div class="${Ye(e)}">
|
|
3018
3025
|
<h1 class="pkt-txt-28">${this.string}</h1>
|
|
3019
3026
|
|
|
3020
3027
|
<h2 class="pkt-txt-22">Innhold fra attributter og funksjoner</h2>
|
|
@@ -3083,7 +3090,7 @@ vr = ka([
|
|
|
3083
3090
|
* Copyright 2020 Google LLC
|
|
3084
3091
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3085
3092
|
*/
|
|
3086
|
-
const gv = Symbol.for(""),
|
|
3093
|
+
const gv = Symbol.for(""), Ts = (e, ...t) => ({ _$litStatic$: t.reduce((n, r, i) => n + ((o) => {
|
|
3087
3094
|
if (o._$litStatic$ !== void 0) return o._$litStatic$;
|
|
3088
3095
|
throw Error(`Value passed to 'literal' function must be a 'literal' result: ${o}. Use 'unsafeStatic' to pass non-literal values, but
|
|
3089
3096
|
take care to ensure page security.`);
|
|
@@ -3214,7 +3221,7 @@ var bv = Object.defineProperty, kv = Object.getOwnPropertyDescriptor, Oe = (e, t
|
|
|
3214
3221
|
};
|
|
3215
3222
|
let Pe = class extends qt {
|
|
3216
3223
|
constructor() {
|
|
3217
|
-
super(), this.defaultSlot = Et(), this.forId = np(), this.label = _t.props.label.default, this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton = _t.props.helptextDropdownButton.default, this.counter = _t.props.counter.default, this.counterCurrent = 0, this.counterMaxLength = 0, this.optionalTag = _t.props.optionalTag.default, this.optionalText = _t.props.optionalText.default, this.requiredTag = _t.props.requiredTag.default, this.requiredText = _t.props.requiredText.default, this.hasError = _t.props.hasError.default, this.errorMessage = "", this.disabled = _t.props.disabled.default, this.inline = _t.props.inline.default, this.ariaDescribedby = void 0, this.hasFieldset = _t.props.hasFieldset.default, this.useWrapper = _t.props.useWrapper.default, this.isHelpTextOpen = !1, this.wrapperType = this.useWrapper ?
|
|
3224
|
+
super(), this.defaultSlot = Et(), this.forId = np(), this.label = _t.props.label.default, this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton = _t.props.helptextDropdownButton.default, this.counter = _t.props.counter.default, this.counterCurrent = 0, this.counterMaxLength = 0, this.optionalTag = _t.props.optionalTag.default, this.optionalText = _t.props.optionalText.default, this.requiredTag = _t.props.requiredTag.default, this.requiredText = _t.props.requiredText.default, this.hasError = _t.props.hasError.default, this.errorMessage = "", this.disabled = _t.props.disabled.default, this.inline = _t.props.inline.default, this.ariaDescribedby = void 0, this.hasFieldset = _t.props.hasFieldset.default, this.useWrapper = _t.props.useWrapper.default, this.isHelpTextOpen = !1, this.wrapperType = this.useWrapper ? Ts`fieldset` : this.hasDropdown ? Ts`div` : Ts`label`, this.slotController = new kr(this, this.defaultSlot);
|
|
3218
3225
|
}
|
|
3219
3226
|
render() {
|
|
3220
3227
|
const t = {
|
|
@@ -3243,7 +3250,7 @@ let Pe = class extends qt {
|
|
|
3243
3250
|
"pkt-inputwrapper__label": !0,
|
|
3244
3251
|
"pkt-inputwrapper__fieldset": this.hasFieldset,
|
|
3245
3252
|
"pkt-inputwrapper__legend": this.hasFieldset
|
|
3246
|
-
}, c = this.ariaDescribedby ? this.ariaDescribedby : this.helptext ? `${this.forId}-helptext` : te, d = () => this.optionalTag || this.requiredTag ? J`<span class=${
|
|
3253
|
+
}, c = this.ariaDescribedby ? this.ariaDescribedby : this.helptext ? `${this.forId}-helptext` : te, d = () => this.optionalTag || this.requiredTag ? J`<span class=${Ye(n)}
|
|
3247
3254
|
>${this.optionalTag ? this.optionalText : this.requiredTag ? this.requiredText : te}</span
|
|
3248
3255
|
>` : te, h = () => this.useWrapper ? this.hasFieldset ? J`<legend class="pkt-inputwrapper__legend" id="${this.forId}-label">
|
|
3249
3256
|
${this.label} ${d()}
|
|
@@ -3264,7 +3271,7 @@ let Pe = class extends qt {
|
|
|
3264
3271
|
></pkt-icon>
|
|
3265
3272
|
<span class="pkt-btn__text">${ri(this.helptextDropdownButton)}</span>
|
|
3266
3273
|
</button>
|
|
3267
|
-
<div class="${
|
|
3274
|
+
<div class="${Ye(o)}">
|
|
3268
3275
|
${ri(this.helptextDropdown)}
|
|
3269
3276
|
</div>
|
|
3270
3277
|
${this.hasFieldset ? te : J`<label
|
|
@@ -3286,18 +3293,18 @@ let Pe = class extends qt {
|
|
|
3286
3293
|
${h()} ${g()}
|
|
3287
3294
|
<div class="pkt-contents" ${ct(this.defaultSlot)}></div>
|
|
3288
3295
|
${v()} ${D()}
|
|
3289
|
-
`, k = () => this.hasFieldset ? J`<fieldset class=${
|
|
3296
|
+
`, k = () => this.hasFieldset ? J`<fieldset class=${Ye(u)} aria-describedby="${c}">
|
|
3290
3297
|
${b()}
|
|
3291
|
-
</fieldset>` : r ? J`<div class=${
|
|
3298
|
+
</fieldset>` : r ? J`<div class=${Ye(u)} aria-describedby="${c}">
|
|
3292
3299
|
${b()}
|
|
3293
3300
|
</div>` : J`<label
|
|
3294
|
-
class=${
|
|
3301
|
+
class=${Ye(u)}
|
|
3295
3302
|
for="${this.forId}"
|
|
3296
3303
|
aria-describedby="${c}"
|
|
3297
3304
|
>
|
|
3298
3305
|
${b()}
|
|
3299
3306
|
</label>`;
|
|
3300
|
-
return J`<div class=${
|
|
3307
|
+
return J`<div class=${Ye(t)}>${k()}</div> `;
|
|
3301
3308
|
}
|
|
3302
3309
|
};
|
|
3303
3310
|
Oe([
|
|
@@ -3363,15 +3370,15 @@ Oe([
|
|
|
3363
3370
|
Pe = Oe([
|
|
3364
3371
|
tn("pkt-input-wrapper")
|
|
3365
3372
|
], Pe);
|
|
3366
|
-
function
|
|
3373
|
+
function ki(e) {
|
|
3367
3374
|
return ca(e, { weekStartsOn: 1 });
|
|
3368
3375
|
}
|
|
3369
3376
|
function op(e) {
|
|
3370
3377
|
const t = pt(e), n = t.getFullYear(), r = Rn(e, 0);
|
|
3371
3378
|
r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
3372
|
-
const i =
|
|
3379
|
+
const i = ki(r), o = Rn(e, 0);
|
|
3373
3380
|
o.setFullYear(n, 0, 4), o.setHours(0, 0, 0, 0);
|
|
3374
|
-
const u =
|
|
3381
|
+
const u = ki(o);
|
|
3375
3382
|
return t.getTime() >= i.getTime() ? n + 1 : t.getTime() >= u.getTime() ? n : n - 1;
|
|
3376
3383
|
}
|
|
3377
3384
|
function $u(e) {
|
|
@@ -3398,7 +3405,7 @@ function wv(e, t) {
|
|
|
3398
3405
|
}
|
|
3399
3406
|
function Cv(e) {
|
|
3400
3407
|
const t = op(e), n = Rn(e, 0);
|
|
3401
|
-
return n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0),
|
|
3408
|
+
return n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0), ki(n);
|
|
3402
3409
|
}
|
|
3403
3410
|
function xv(e) {
|
|
3404
3411
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
@@ -3480,7 +3487,7 @@ const Ev = {
|
|
|
3480
3487
|
const i = Ev[e];
|
|
3481
3488
|
return typeof i == "string" ? r = i : t === 1 ? r = i.one : r = i.other.replace("{{count}}", t.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
3482
3489
|
};
|
|
3483
|
-
function
|
|
3490
|
+
function Bs(e) {
|
|
3484
3491
|
return (t = {}) => {
|
|
3485
3492
|
const n = t.width ? String(t.width) : e.defaultWidth;
|
|
3486
3493
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
@@ -3502,15 +3509,15 @@ const Av = {
|
|
|
3502
3509
|
medium: "{{date}}, {{time}}",
|
|
3503
3510
|
short: "{{date}}, {{time}}"
|
|
3504
3511
|
}, Bv = {
|
|
3505
|
-
date:
|
|
3512
|
+
date: Bs({
|
|
3506
3513
|
formats: Av,
|
|
3507
3514
|
defaultWidth: "full"
|
|
3508
3515
|
}),
|
|
3509
|
-
time:
|
|
3516
|
+
time: Bs({
|
|
3510
3517
|
formats: $v,
|
|
3511
3518
|
defaultWidth: "full"
|
|
3512
3519
|
}),
|
|
3513
|
-
dateTime:
|
|
3520
|
+
dateTime: Bs({
|
|
3514
3521
|
formats: Tv,
|
|
3515
3522
|
defaultWidth: "full"
|
|
3516
3523
|
})
|
|
@@ -3522,7 +3529,7 @@ const Av = {
|
|
|
3522
3529
|
nextWeek: "eeee 'at' p",
|
|
3523
3530
|
other: "P"
|
|
3524
3531
|
}, jv = (e, t, n, r) => Nv[e];
|
|
3525
|
-
function
|
|
3532
|
+
function Yr(e) {
|
|
3526
3533
|
return (t, n) => {
|
|
3527
3534
|
const r = n != null && n.context ? String(n.context) : "standalone";
|
|
3528
3535
|
let i;
|
|
@@ -3664,31 +3671,31 @@ const Pv = {
|
|
|
3664
3671
|
return n + "th";
|
|
3665
3672
|
}, Hv = {
|
|
3666
3673
|
ordinalNumber: qv,
|
|
3667
|
-
era:
|
|
3674
|
+
era: Yr({
|
|
3668
3675
|
values: Pv,
|
|
3669
3676
|
defaultWidth: "wide"
|
|
3670
3677
|
}),
|
|
3671
|
-
quarter:
|
|
3678
|
+
quarter: Yr({
|
|
3672
3679
|
values: Lv,
|
|
3673
3680
|
defaultWidth: "wide",
|
|
3674
3681
|
argumentCallback: (e) => e - 1
|
|
3675
3682
|
}),
|
|
3676
|
-
month:
|
|
3683
|
+
month: Yr({
|
|
3677
3684
|
values: Ov,
|
|
3678
3685
|
defaultWidth: "wide"
|
|
3679
3686
|
}),
|
|
3680
|
-
day:
|
|
3687
|
+
day: Yr({
|
|
3681
3688
|
values: Iv,
|
|
3682
3689
|
defaultWidth: "wide"
|
|
3683
3690
|
}),
|
|
3684
|
-
dayPeriod:
|
|
3691
|
+
dayPeriod: Yr({
|
|
3685
3692
|
values: Mv,
|
|
3686
3693
|
defaultWidth: "wide",
|
|
3687
3694
|
formattingValues: Rv,
|
|
3688
3695
|
defaultFormattingWidth: "wide"
|
|
3689
3696
|
})
|
|
3690
3697
|
};
|
|
3691
|
-
function
|
|
3698
|
+
function Gr(e) {
|
|
3692
3699
|
return (t, n = {}) => {
|
|
3693
3700
|
const r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], o = t.match(i);
|
|
3694
3701
|
if (!o)
|
|
@@ -3728,7 +3735,7 @@ function zv(e) {
|
|
|
3728
3735
|
return { value: u, rest: c };
|
|
3729
3736
|
};
|
|
3730
3737
|
}
|
|
3731
|
-
const Vv = /^(\d+)(th|st|nd|rd)?/i,
|
|
3738
|
+
const Vv = /^(\d+)(th|st|nd|rd)?/i, Yv = /\d+/i, Gv = {
|
|
3732
3739
|
narrow: /^(b|a)/i,
|
|
3733
3740
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
3734
3741
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
@@ -3798,35 +3805,35 @@ const Vv = /^(\d+)(th|st|nd|rd)?/i, Gv = /\d+/i, Yv = {
|
|
|
3798
3805
|
}, a2 = {
|
|
3799
3806
|
ordinalNumber: zv({
|
|
3800
3807
|
matchPattern: Vv,
|
|
3801
|
-
parsePattern:
|
|
3808
|
+
parsePattern: Yv,
|
|
3802
3809
|
valueCallback: (e) => parseInt(e, 10)
|
|
3803
3810
|
}),
|
|
3804
|
-
era:
|
|
3805
|
-
matchPatterns:
|
|
3811
|
+
era: Gr({
|
|
3812
|
+
matchPatterns: Gv,
|
|
3806
3813
|
defaultMatchWidth: "wide",
|
|
3807
3814
|
parsePatterns: Kv,
|
|
3808
3815
|
defaultParseWidth: "any"
|
|
3809
3816
|
}),
|
|
3810
|
-
quarter:
|
|
3817
|
+
quarter: Gr({
|
|
3811
3818
|
matchPatterns: Jv,
|
|
3812
3819
|
defaultMatchWidth: "wide",
|
|
3813
3820
|
parsePatterns: Xv,
|
|
3814
3821
|
defaultParseWidth: "any",
|
|
3815
3822
|
valueCallback: (e) => e + 1
|
|
3816
3823
|
}),
|
|
3817
|
-
month:
|
|
3824
|
+
month: Gr({
|
|
3818
3825
|
matchPatterns: Qv,
|
|
3819
3826
|
defaultMatchWidth: "wide",
|
|
3820
3827
|
parsePatterns: Zv,
|
|
3821
3828
|
defaultParseWidth: "any"
|
|
3822
3829
|
}),
|
|
3823
|
-
day:
|
|
3830
|
+
day: Gr({
|
|
3824
3831
|
matchPatterns: e2,
|
|
3825
3832
|
defaultMatchWidth: "wide",
|
|
3826
3833
|
parsePatterns: t2,
|
|
3827
3834
|
defaultParseWidth: "any"
|
|
3828
3835
|
}),
|
|
3829
|
-
dayPeriod:
|
|
3836
|
+
dayPeriod: Gr({
|
|
3830
3837
|
matchPatterns: n2,
|
|
3831
3838
|
defaultMatchWidth: "any",
|
|
3832
3839
|
parsePatterns: r2,
|
|
@@ -3849,7 +3856,7 @@ function s2(e) {
|
|
|
3849
3856
|
return wv(t, Sv(t)) + 1;
|
|
3850
3857
|
}
|
|
3851
3858
|
function o2(e) {
|
|
3852
|
-
const t = pt(e), n = +
|
|
3859
|
+
const t = pt(e), n = +ki(t) - +Cv(t);
|
|
3853
3860
|
return Math.round(n / ap) + 1;
|
|
3854
3861
|
}
|
|
3855
3862
|
function we(e, t) {
|
|
@@ -4077,7 +4084,7 @@ const fn = {
|
|
|
4077
4084
|
},
|
|
4078
4085
|
// Local week of year
|
|
4079
4086
|
w: function(e, t, n, r) {
|
|
4080
|
-
const i =
|
|
4087
|
+
const i = ci(e, r);
|
|
4081
4088
|
return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : we(i, t.length);
|
|
4082
4089
|
},
|
|
4083
4090
|
// ISO week of year
|
|
@@ -4484,7 +4491,7 @@ function g2(e, t, n) {
|
|
|
4484
4491
|
const v2 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, D2 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, y2 = /^'([^]*?)'?$/, b2 = /''/g, k2 = /[a-zA-Z]/;
|
|
4485
4492
|
function w2(e, t, n) {
|
|
4486
4493
|
var r, i, o, u;
|
|
4487
|
-
const c =
|
|
4494
|
+
const c = Ai(), d = c.locale ?? i2, h = c.firstWeekContainsDate ?? ((i = (r = c.locale) == null ? void 0 : r.options) == null ? void 0 : i.firstWeekContainsDate) ?? 1, g = c.weekStartsOn ?? ((u = (o = c.locale) == null ? void 0 : o.options) == null ? void 0 : u.weekStartsOn) ?? 0, v = pt(e);
|
|
4488
4495
|
if (!_v(v))
|
|
4489
4496
|
throw new RangeError("Invalid time value");
|
|
4490
4497
|
let D = t.match(D2).map((k) => {
|
|
@@ -4535,9 +4542,9 @@ const Lu = (e, t, n) => {
|
|
|
4535
4542
|
const r = /* @__PURE__ */ new Map();
|
|
4536
4543
|
for (let i = t; i <= n; i++) r.set(e[i], i);
|
|
4537
4544
|
return r;
|
|
4538
|
-
}, x2 = ya(class extends
|
|
4545
|
+
}, x2 = ya(class extends Fi {
|
|
4539
4546
|
constructor(e) {
|
|
4540
|
-
if (super(e), e.type !==
|
|
4547
|
+
if (super(e), e.type !== Ei.CHILD) throw Error("repeat() can only be used in text expressions");
|
|
4541
4548
|
}
|
|
4542
4549
|
dt(e, t, n) {
|
|
4543
4550
|
let r;
|
|
@@ -4568,15 +4575,15 @@ const Lu = (e, t, n) => {
|
|
|
4568
4575
|
$n(T, o[b]), d[b] = T;
|
|
4569
4576
|
} else d[b] = $n(C, o[b]), Vr(e, i[v], C), i[x] = null;
|
|
4570
4577
|
b++;
|
|
4571
|
-
} else
|
|
4572
|
-
else
|
|
4578
|
+
} else As(i[D]), D--;
|
|
4579
|
+
else As(i[v]), v++;
|
|
4573
4580
|
for (; b <= k; ) {
|
|
4574
4581
|
const x = Vr(e, d[k + 1]);
|
|
4575
4582
|
$n(x, o[b]), d[b++] = x;
|
|
4576
4583
|
}
|
|
4577
4584
|
for (; v <= D; ) {
|
|
4578
4585
|
const x = i[v++];
|
|
4579
|
-
x !== null &&
|
|
4586
|
+
x !== null && As(x);
|
|
4580
4587
|
}
|
|
4581
4588
|
return this.ut = u, Jg(e, d), Qt;
|
|
4582
4589
|
}
|
|
@@ -4752,7 +4759,7 @@ const Lu = (e, t, n) => {
|
|
|
4752
4759
|
toggleHelpText: {
|
|
4753
4760
|
description: "Returnerer <code>event.detail { isOpen: true }</code> eller <code>event.detail { isOpen: false }</code> når hjelpeteksten åpnes eller lukkes"
|
|
4754
4761
|
}
|
|
4755
|
-
},
|
|
4762
|
+
}, Yt = {
|
|
4756
4763
|
name: _2,
|
|
4757
4764
|
"css-class": "pkt-datepicker",
|
|
4758
4765
|
isElement: S2,
|
|
@@ -4767,7 +4774,7 @@ var A2 = Object.defineProperty, $2 = Object.getOwnPropertyDescriptor, Je = (e, t
|
|
|
4767
4774
|
const Ou = (e) => new Promise((t) => setTimeout(t, e));
|
|
4768
4775
|
let qe = class extends Ke {
|
|
4769
4776
|
constructor() {
|
|
4770
|
-
super(...arguments), this.value = "", this._value = this.value ? Array.isArray(this.value) ? this.value : this.value.split(",") : [], this.label = "Datovelger", this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton =
|
|
4777
|
+
super(...arguments), this.value = "", this._value = this.value ? Array.isArray(this.value) ? this.value : this.value.split(",") : [], this.label = "Datovelger", this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton = Yt.props.helptextDropdownButton.default, this.dateformat = Yt.props.dateformat.default, this.multiple = Yt.props.multiple.default, this.maxlength = Yt.props.maxlength.default, this.range = Yt.props.range.default, this.weeknumbers = Yt.props.weeknumbers.default, this.withcontrols = Yt.props.withcontrols.default, this.fullwidth = !1, this.excludedates = [], this.excludeweekdays = [], this.currentmonth = this.formatISODate(/* @__PURE__ */ new Date()), this.calendarOpen = !1, this.inputRef = Et(), this.inputRefTo = Et(), this.btnRef = Et(), this.calRef = Et(), this.popupRef = Et(), this.inputClasses = {
|
|
4771
4778
|
"pkt-input": !0,
|
|
4772
4779
|
"pkt-datepicker__input": !0,
|
|
4773
4780
|
"pkt-input--fullwidth": this.fullwidth
|
|
@@ -4789,7 +4796,7 @@ let qe = class extends Ke {
|
|
|
4789
4796
|
return this.multiple ? t : this.range ? t.slice(0, 2) : [t[0]];
|
|
4790
4797
|
}, this.addToSelected = (e) => {
|
|
4791
4798
|
const t = e.target, n = this.min ? new Date(this.min) : null, r = this.max ? new Date(this.max) : null, i = new Date(t.value.split(",")[0]);
|
|
4792
|
-
i.setHours(12, 0, 0, 0), i && !isNaN(i.getTime()) && (!n || i >= n) && (!r || i <= r) && this.calRef.value && this.calRef.value.handleDateSelect(i), t.value = ""
|
|
4799
|
+
i.setHours(12, 0, 0, 0), i && !isNaN(i.getTime()) && (!n || i >= n) && (!r || i <= r) && this.calRef.value && this.calRef.value.handleDateSelect(i), t.value = "";
|
|
4793
4800
|
};
|
|
4794
4801
|
}
|
|
4795
4802
|
/**
|
|
@@ -4799,7 +4806,7 @@ let qe = class extends Ke {
|
|
|
4799
4806
|
super.connectedCallback(), document && document.body.addEventListener("click", (e) => {
|
|
4800
4807
|
var t, n;
|
|
4801
4808
|
(t = this.inputRef) != null && t.value && (n = this.btnRef) != null && n.value && !this.inputRef.value.contains(e.target) && !(this.inputRefTo.value && this.inputRefTo.value.contains(e.target)) && !this.btnRef.value.contains(e.target) && !e.target.closest(".pkt-calendar-popup") && this.hideCalendar();
|
|
4802
|
-
}), this.value.length && this._value.length === 0 && (this._value = Array.isArray(this.value) ? this.value : this.value.split(",")), this.min = this.min ||
|
|
4809
|
+
}), this.value.length && this._value.length === 0 && (this._value = Array.isArray(this.value) ? this.value : this.value.split(",")), this.min = this.min || Yt.props.min.default, this.max = this.max || Yt.props.max.default, typeof this.excludedates == "string" && (this.excludedates = this.excludedates.split(",")), typeof this.excludeweekdays == "string" && (this.excludeweekdays = this.excludeweekdays.split(",")), (this.multiple || this.range) && this.name && !this.name.endsWith("[]") && (this.name = this.name + "[]"), this.calendarOpen && (await Ou(20), this.handleCalendarPosition());
|
|
4803
4810
|
}
|
|
4804
4811
|
disconnectedCallback() {
|
|
4805
4812
|
super.disconnectedCallback(), document && document.body.removeEventListener("click", (e) => {
|
|
@@ -4808,24 +4815,15 @@ let qe = class extends Ke {
|
|
|
4808
4815
|
});
|
|
4809
4816
|
}
|
|
4810
4817
|
attributeChangedCallback(e, t, n) {
|
|
4811
|
-
|
|
4812
|
-
if (super.attributeChangedCallback(e, t, n), e === "value") {
|
|
4813
|
-
if (this.value === "" || this.value.length === 0)
|
|
4814
|
-
this._value = [];
|
|
4815
|
-
else if (this.value.length && this._value.length === 0) {
|
|
4816
|
-
const o = Array.isArray(this.value) ? this.value : this.value.split(",");
|
|
4817
|
-
for (const u of o)
|
|
4818
|
-
u && !this._value.includes(u) && ((i = (r = this.calRef) == null ? void 0 : r.value) == null || i.handleDateSelect(this.fromISOToDate(u)));
|
|
4819
|
-
}
|
|
4820
|
-
}
|
|
4821
|
-
e === "excludedates" && typeof this.excludedates == "string" && (this.excludedates = (n == null ? void 0 : n.split(",")) ?? []), e === "excludeweekdays" && typeof this.excludeweekdays == "string" && (this.excludeweekdays = (n == null ? void 0 : n.split(",")) ?? []);
|
|
4818
|
+
e === "value" && (this.value === "" || this.value.length === 0 || typeof this.value > "u" ? this._value = [] : this.value.length && this._value.length === 0 && (!Array.isArray(this.value) && this.value.includes(",") && (this.value = this.value.split(",")), this._value = Array.isArray(this.value) ? this.value : this.value.split(","))), e === "excludedates" && typeof this.excludedates == "string" && (this.excludedates = (n == null ? void 0 : n.split(",")) ?? []), e === "excludeweekdays" && typeof this.excludeweekdays == "string" && (this.excludeweekdays = (n == null ? void 0 : n.split(",")) ?? []), super.attributeChangedCallback(e, t, n);
|
|
4822
4819
|
}
|
|
4823
4820
|
firstUpdated(e) {
|
|
4824
4821
|
super.firstUpdated(e);
|
|
4825
4822
|
}
|
|
4826
4823
|
updated(e) {
|
|
4824
|
+
var t;
|
|
4827
4825
|
if (super.updated(e), e.has("value")) {
|
|
4828
|
-
if (this.range && this._value.length === 1)
|
|
4826
|
+
if (this.range && this._value.length === 1 || ((t = e.get("value")) == null ? void 0 : t.toString()) === this.value.toString())
|
|
4829
4827
|
return;
|
|
4830
4828
|
this.onInput(this.value);
|
|
4831
4829
|
}
|
|
@@ -4839,16 +4837,14 @@ let qe = class extends Ke {
|
|
|
4839
4837
|
renderInput() {
|
|
4840
4838
|
return J`
|
|
4841
4839
|
<input
|
|
4842
|
-
class="${
|
|
4840
|
+
class="${Ye(this.inputClasses)}"
|
|
4843
4841
|
type="date"
|
|
4844
4842
|
id="${this.id}-input"
|
|
4845
|
-
|
|
4846
|
-
.value=${this.value}
|
|
4843
|
+
value=${this.value}
|
|
4847
4844
|
min=${this.min}
|
|
4848
4845
|
max=${this.max}
|
|
4849
|
-
@focus=${this.showCalendar}
|
|
4850
4846
|
@click=${(e) => {
|
|
4851
|
-
e.preventDefault();
|
|
4847
|
+
e.preventDefault(), this.showCalendar();
|
|
4852
4848
|
}}
|
|
4853
4849
|
?disabled=${this.disabled}
|
|
4854
4850
|
@blur=${(e) => {
|
|
@@ -4865,16 +4861,14 @@ let qe = class extends Ke {
|
|
|
4865
4861
|
return J`
|
|
4866
4862
|
<div class="pkt-input-prefix">Fra</div>
|
|
4867
4863
|
<input
|
|
4868
|
-
class=${
|
|
4864
|
+
class=${Ye(this.inputClasses)}
|
|
4869
4865
|
type="date"
|
|
4870
4866
|
id="${this.id}-input"
|
|
4871
|
-
|
|
4872
|
-
.value=${this._value[0] ?? ""}
|
|
4867
|
+
value=${this._value[0] ?? ""}
|
|
4873
4868
|
min=${this.min}
|
|
4874
4869
|
max=${this.max}
|
|
4875
|
-
@focus=${this.showCalendar}
|
|
4876
4870
|
@click=${(e) => {
|
|
4877
|
-
e.preventDefault();
|
|
4871
|
+
e.preventDefault(), this.showCalendar();
|
|
4878
4872
|
}}
|
|
4879
4873
|
?disabled=${this.disabled}
|
|
4880
4874
|
@blur=${(e) => {
|
|
@@ -4882,7 +4876,7 @@ let qe = class extends Ke {
|
|
|
4882
4876
|
if (e.target.value) {
|
|
4883
4877
|
this.manageValidity(e.target);
|
|
4884
4878
|
const r = this.fromISOToDate(e.target.value);
|
|
4885
|
-
r && ((n = (t = this.calRef) == null ? void 0 : t.value) == null || n.handleDateSelect(r));
|
|
4879
|
+
r && this._value[0] !== e.target.value && this._value[1] && ((n = (t = this.calRef) == null ? void 0 : t.value) == null || n.handleDateSelect(r));
|
|
4886
4880
|
}
|
|
4887
4881
|
}}
|
|
4888
4882
|
@change=${(e) => {
|
|
@@ -4892,16 +4886,14 @@ let qe = class extends Ke {
|
|
|
4892
4886
|
/>
|
|
4893
4887
|
<div class="pkt-input-prefix">Til</div>
|
|
4894
4888
|
<input
|
|
4895
|
-
class=${
|
|
4889
|
+
class=${Ye(this.inputClasses)}
|
|
4896
4890
|
type="date"
|
|
4897
4891
|
id="${this.id}-to"
|
|
4898
|
-
|
|
4899
|
-
.value=${this._value[1] ?? ""}
|
|
4892
|
+
value=${this._value[1] ?? ""}
|
|
4900
4893
|
min=${this.min}
|
|
4901
4894
|
max=${this.max}
|
|
4902
|
-
@focus=${this.showCalendar}
|
|
4903
4895
|
@click=${(e) => {
|
|
4904
|
-
e.preventDefault();
|
|
4896
|
+
e.preventDefault(), this.showCalendar();
|
|
4905
4897
|
}}
|
|
4906
4898
|
?disabled=${this.disabled}
|
|
4907
4899
|
@blur=${(e) => {
|
|
@@ -4932,15 +4924,13 @@ let qe = class extends Ke {
|
|
|
4932
4924
|
renderMultipleInput() {
|
|
4933
4925
|
return J`
|
|
4934
4926
|
<input
|
|
4935
|
-
class=${
|
|
4927
|
+
class=${Ye(this.inputClasses)}
|
|
4936
4928
|
type="date"
|
|
4937
4929
|
id="${this.id}-input"
|
|
4938
|
-
name="${this.name}"
|
|
4939
4930
|
min=${this.min}
|
|
4940
4931
|
max=${this.max}
|
|
4941
|
-
@focus=${this.showCalendar}
|
|
4942
4932
|
@click=${(e) => {
|
|
4943
|
-
e.preventDefault();
|
|
4933
|
+
e.preventDefault(), this.showCalendar();
|
|
4944
4934
|
}}
|
|
4945
4935
|
@blur=${(e) => {
|
|
4946
4936
|
this.addToSelected(e);
|
|
@@ -4989,7 +4979,6 @@ let qe = class extends Ke {
|
|
|
4989
4979
|
?range=${this.range}
|
|
4990
4980
|
?weeknumbers=${this.weeknumbers}
|
|
4991
4981
|
?withcontrols=${this.withcontrols}
|
|
4992
|
-
?focused=${this.calendarOpen}
|
|
4993
4982
|
.maxMultiple=${this.maxlength}
|
|
4994
4983
|
.selected=${this._value}
|
|
4995
4984
|
.earliest=${this.min}
|
|
@@ -5031,7 +5020,7 @@ let qe = class extends Ke {
|
|
|
5031
5020
|
<div class="pkt-input__container">
|
|
5032
5021
|
${this.range ? this.renderRangeInput() : this.multiple ? this.renderMultipleInput() : this.renderInput()}
|
|
5033
5022
|
<button
|
|
5034
|
-
class="${
|
|
5023
|
+
class="${Ye(this.buttonClasses)}"
|
|
5035
5024
|
@click=${this.toggleCalendar}
|
|
5036
5025
|
${ct(this.btnRef)}
|
|
5037
5026
|
>
|
|
@@ -5163,7 +5152,7 @@ const T2 = "pkt-link", B2 = !0, N2 = {
|
|
|
5163
5152
|
default: {
|
|
5164
5153
|
description: "Innholdet i lenken"
|
|
5165
5154
|
}
|
|
5166
|
-
},
|
|
5155
|
+
}, Ns = {
|
|
5167
5156
|
name: T2,
|
|
5168
5157
|
"css-class": "pkt-link",
|
|
5169
5158
|
"dark-mode": !0,
|
|
@@ -5178,7 +5167,7 @@ var P2 = Object.defineProperty, L2 = Object.getOwnPropertyDescriptor, wr = (e, t
|
|
|
5178
5167
|
};
|
|
5179
5168
|
let vn = class extends qt {
|
|
5180
5169
|
constructor() {
|
|
5181
|
-
super(), this.defaultSlot = Et(), this.href =
|
|
5170
|
+
super(), this.defaultSlot = Et(), this.href = Ns.props.href.default, this.iconName = void 0, this.iconPosition = void 0, this.external = Ns.props.external.default, this.target = Ns.props.target.default, this.slotController = new kr(this, this.defaultSlot);
|
|
5182
5171
|
}
|
|
5183
5172
|
render() {
|
|
5184
5173
|
const e = {
|
|
@@ -5188,7 +5177,7 @@ let vn = class extends qt {
|
|
|
5188
5177
|
"pkt-link--external": this.external
|
|
5189
5178
|
};
|
|
5190
5179
|
return J`<a
|
|
5191
|
-
class=${
|
|
5180
|
+
class=${Ye(e)}
|
|
5192
5181
|
href=${this.href}
|
|
5193
5182
|
@click=${this.handleClick}
|
|
5194
5183
|
.target=${this.target}
|
|
@@ -5242,7 +5231,7 @@ let Dn = class extends qt {
|
|
|
5242
5231
|
[`pkt-messagebox--${this.skin}`]: this.skin,
|
|
5243
5232
|
"pkt-messagebox--closable": this.closable
|
|
5244
5233
|
};
|
|
5245
|
-
return this.isDisplayed ? J`<div class=${
|
|
5234
|
+
return this.isDisplayed ? J`<div class=${Ye(e)}>
|
|
5246
5235
|
${this.closable ? J`<div class="pkt-messagebox__close">
|
|
5247
5236
|
<button
|
|
5248
5237
|
@click=${this.handleClose}
|
|
@@ -5287,7 +5276,7 @@ const M2 = mo({
|
|
|
5287
5276
|
({ children: e, ...t }, n) => /* @__PURE__ */ m.jsx(M2, { ...t, ref: n, children: /* @__PURE__ */ m.jsx("div", { className: "pkt-contents", children: e }) })
|
|
5288
5277
|
);
|
|
5289
5278
|
R2.displayName = "PktCard";
|
|
5290
|
-
const
|
|
5279
|
+
const Gs = Ne(
|
|
5291
5280
|
({
|
|
5292
5281
|
id: e,
|
|
5293
5282
|
hasTile: t = !1,
|
|
@@ -5332,7 +5321,7 @@ const Ys = Ne(
|
|
|
5332
5321
|
) });
|
|
5333
5322
|
}
|
|
5334
5323
|
);
|
|
5335
|
-
|
|
5324
|
+
Gs.displayName = "PktCheckbox";
|
|
5336
5325
|
const q2 = mo({
|
|
5337
5326
|
tagName: "pkt-datepicker",
|
|
5338
5327
|
elementClass: qe,
|
|
@@ -5343,7 +5332,7 @@ const q2 = mo({
|
|
|
5343
5332
|
onValueChange: "value-change",
|
|
5344
5333
|
onToggleHelpText: "toggleHelpText"
|
|
5345
5334
|
}
|
|
5346
|
-
}),
|
|
5335
|
+
}), N_ = ({
|
|
5347
5336
|
columnOne: e,
|
|
5348
5337
|
columnTwo: t,
|
|
5349
5338
|
socialLinks: n,
|
|
@@ -5445,7 +5434,7 @@ const q2 = mo({
|
|
|
5445
5434
|
) }, `sociallinks-${g}`)) })
|
|
5446
5435
|
] })
|
|
5447
5436
|
] }) });
|
|
5448
|
-
},
|
|
5437
|
+
}, j_ = ({
|
|
5449
5438
|
links: e = [],
|
|
5450
5439
|
personvernOgInfoLink: t = "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",
|
|
5451
5440
|
tilgjengelighetLink: n = "https://www.oslo.kommune.no/tilgjengelighet/",
|
|
@@ -5481,7 +5470,7 @@ const q2 = mo({
|
|
|
5481
5470
|
"Tilgjengelighet"
|
|
5482
5471
|
] }) })
|
|
5483
5472
|
] }) }) });
|
|
5484
|
-
},
|
|
5473
|
+
}, P_ = Ne(
|
|
5485
5474
|
({
|
|
5486
5475
|
className: e,
|
|
5487
5476
|
logoLink: t = "https://www.oslo.kommune.no/",
|
|
@@ -5510,7 +5499,7 @@ const q2 = mo({
|
|
|
5510
5499
|
xe.useEffect(() => (document && (document.addEventListener("mouseup", V), window.addEventListener("scroll", L)), () => {
|
|
5511
5500
|
document && (document.removeEventListener("mouseup", V), window.removeEventListener("scroll", L));
|
|
5512
5501
|
}));
|
|
5513
|
-
const
|
|
5502
|
+
const G = () => {
|
|
5514
5503
|
j(!I);
|
|
5515
5504
|
}, V = (N) => {
|
|
5516
5505
|
W.current && !W.current.contains(N.target) && j(!1);
|
|
@@ -5591,7 +5580,7 @@ const q2 = mo({
|
|
|
5591
5580
|
role: "button",
|
|
5592
5581
|
"aria-controls": "pktUserDropdown",
|
|
5593
5582
|
"aria-expanded": I,
|
|
5594
|
-
onClick:
|
|
5583
|
+
onClick: G,
|
|
5595
5584
|
children: [
|
|
5596
5585
|
/* @__PURE__ */ m.jsx(ee, { name: "user", className: "pkt-btn__icon" }),
|
|
5597
5586
|
/* @__PURE__ */ m.jsx("span", { className: "pkt-header__user-fullname", children: (c == null ? void 0 : c.name) || (o == null ? void 0 : o.name) }),
|
|
@@ -5701,8 +5690,8 @@ const wa = Ne(
|
|
|
5701
5690
|
}, A) => {
|
|
5702
5691
|
const [$, P] = Ve(!1), I = () => {
|
|
5703
5692
|
P(!$);
|
|
5704
|
-
}, j = () => d ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : g ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", W = d ? h : g ? v : "",
|
|
5705
|
-
return /* @__PURE__ */ m.jsxs("div", { className: ["pkt-inputwrapper", _,
|
|
5693
|
+
}, j = () => d ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : g ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", W = d ? h : g ? v : "", G = k ? "pkt-inputwrapper--disabled" : "", V = x ? "pkt-inputwrapper--inline" : "", L = D ? "pkt-inputwrapper--error" : "", N = !!r && r !== "", q = i || 'Les mer <span class="pkt-sr-only">om inputfeltet</span>', X = F ? "fieldset" : N ? "div" : "label", de = F ? "legend" : N ? "h2" : "span", Q = C || (n ? `${e}-helptext` : void 0);
|
|
5694
|
+
return /* @__PURE__ */ m.jsxs("div", { className: ["pkt-inputwrapper", _, G, V, L].join(" "), ref: A, children: [
|
|
5706
5695
|
T ? /* @__PURE__ */ m.jsx(m.Fragment, { children: /* @__PURE__ */ m.jsxs(
|
|
5707
5696
|
X,
|
|
5708
5697
|
{
|
|
@@ -5838,7 +5827,7 @@ const V2 = Ne(
|
|
|
5838
5827
|
}
|
|
5839
5828
|
);
|
|
5840
5829
|
V2.displayName = "PktLoader";
|
|
5841
|
-
const
|
|
5830
|
+
const Y2 = Ne(
|
|
5842
5831
|
({
|
|
5843
5832
|
children: e,
|
|
5844
5833
|
className: t,
|
|
@@ -5874,7 +5863,7 @@ const G2 = Ne(
|
|
|
5874
5863
|
] }) : null;
|
|
5875
5864
|
}
|
|
5876
5865
|
);
|
|
5877
|
-
|
|
5866
|
+
Y2.displayName = "PktMessagebox";
|
|
5878
5867
|
/*!
|
|
5879
5868
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
5880
5869
|
*
|
|
@@ -5884,18 +5873,18 @@ G2.displayName = "PktMessagebox";
|
|
|
5884
5873
|
function Iu(e) {
|
|
5885
5874
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
5886
5875
|
}
|
|
5887
|
-
function
|
|
5876
|
+
function G2(e) {
|
|
5888
5877
|
var t, n;
|
|
5889
5878
|
return Iu(e) === !1 ? !1 : (t = e.constructor, t === void 0 ? !0 : (n = t.prototype, !(Iu(n) === !1 || n.hasOwnProperty("isPrototypeOf") === !1)));
|
|
5890
5879
|
}
|
|
5891
|
-
var up = {},
|
|
5892
|
-
return
|
|
5880
|
+
var up = {}, wi = gn && gn.__assign || function() {
|
|
5881
|
+
return wi = Object.assign || function(e) {
|
|
5893
5882
|
for (var t, n = 1, r = arguments.length; n < r; n++) {
|
|
5894
5883
|
t = arguments[n];
|
|
5895
5884
|
for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
5896
5885
|
}
|
|
5897
5886
|
return e;
|
|
5898
|
-
},
|
|
5887
|
+
}, wi.apply(this, arguments);
|
|
5899
5888
|
}, K2 = gn && gn.__spreadArrays || function() {
|
|
5900
5889
|
for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
|
|
5901
5890
|
for (var r = Array(e), i = 0, t = 0; t < n; t++)
|
|
@@ -5917,12 +5906,12 @@ function Q2(e) {
|
|
|
5917
5906
|
return Object.prototype.propertyIsEnumerable.call(e, t);
|
|
5918
5907
|
});
|
|
5919
5908
|
}
|
|
5920
|
-
function
|
|
5909
|
+
function pi(e, t, n) {
|
|
5921
5910
|
n === void 0 && (n = "");
|
|
5922
5911
|
var r = {
|
|
5923
5912
|
indent: " ",
|
|
5924
5913
|
singleQuotes: !0
|
|
5925
|
-
}, i =
|
|
5914
|
+
}, i = wi(wi({}, r), t), o;
|
|
5926
5915
|
i.inlineCharacterLimit === void 0 ? o = {
|
|
5927
5916
|
newLine: `
|
|
5928
5917
|
`,
|
|
@@ -5954,7 +5943,7 @@ function ci(e, t, n) {
|
|
|
5954
5943
|
return "[]";
|
|
5955
5944
|
Kr.push(e);
|
|
5956
5945
|
var c = "[" + o.newLine + e.map(function(h, g) {
|
|
5957
|
-
var v = e.length - 1 === g ? o.newLine : "," + o.newLineOrSpace, D =
|
|
5946
|
+
var v = e.length - 1 === g ? o.newLine : "," + o.newLineOrSpace, D = pi(h, i, n + i.indent);
|
|
5958
5947
|
return i.transform && (D = i.transform(e, g, D)), o.indent + D + v;
|
|
5959
5948
|
}).join("") + o.pad + "]";
|
|
5960
5949
|
return Kr.pop(), u(c);
|
|
@@ -5967,7 +5956,7 @@ function ci(e, t, n) {
|
|
|
5967
5956
|
return "{}";
|
|
5968
5957
|
Kr.push(e);
|
|
5969
5958
|
var c = "{" + o.newLine + d.map(function(g, v) {
|
|
5970
|
-
var D = d.length - 1 === v ? o.newLine : "," + o.newLineOrSpace, b = typeof g == "symbol", k = !b && /^[a-z$_][a-z$_0-9]*$/i.test(g.toString()), x = b || k ? g :
|
|
5959
|
+
var D = d.length - 1 === v ? o.newLine : "," + o.newLineOrSpace, b = typeof g == "symbol", k = !b && /^[a-z$_][a-z$_0-9]*$/i.test(g.toString()), x = b || k ? g : pi(g, i), C = pi(e[g], i, n + i.indent);
|
|
5971
5960
|
return i.transform && (C = i.transform(e, g, C)), o.indent + String(x) + ": " + C + D;
|
|
5972
5961
|
}).join("") + o.pad + "}";
|
|
5973
5962
|
return Kr.pop(), u(c);
|
|
@@ -5977,7 +5966,7 @@ function ci(e, t, n) {
|
|
|
5977
5966
|
` ? "\\n" : "\\r";
|
|
5978
5967
|
}), i.singleQuotes ? (e = e.replace(/\\?'/g, "\\'"), "'" + e + "'") : (e = e.replace(/"/g, '\\"'), '"' + e + '"');
|
|
5979
5968
|
}
|
|
5980
|
-
var Z2 = up.prettyPrint =
|
|
5969
|
+
var Z2 = up.prettyPrint = pi, Ks = { exports: {} }, ye = {};
|
|
5981
5970
|
/**
|
|
5982
5971
|
* @license React
|
|
5983
5972
|
* react-is.production.min.js
|
|
@@ -6109,7 +6098,7 @@ function tD() {
|
|
|
6109
6098
|
}
|
|
6110
6099
|
}
|
|
6111
6100
|
}
|
|
6112
|
-
var $ = v, P = g, I = o, j = b, W = c,
|
|
6101
|
+
var $ = v, P = g, I = o, j = b, W = c, G = T, V = C, L = u, N = h, q = d, X = k, de = x, Q = !1, se = !1;
|
|
6113
6102
|
function he(K) {
|
|
6114
6103
|
return Q || (Q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
6115
6104
|
}
|
|
@@ -6125,7 +6114,7 @@ function tD() {
|
|
|
6125
6114
|
function Be(K) {
|
|
6126
6115
|
return typeof K == "object" && K !== null && K.$$typeof === o;
|
|
6127
6116
|
}
|
|
6128
|
-
function
|
|
6117
|
+
function _e(K) {
|
|
6129
6118
|
return A(K) === b;
|
|
6130
6119
|
}
|
|
6131
6120
|
function Le(K) {
|
|
@@ -6152,7 +6141,7 @@ function tD() {
|
|
|
6152
6141
|
function bt(K) {
|
|
6153
6142
|
return A(K) === x;
|
|
6154
6143
|
}
|
|
6155
|
-
be.ContextConsumer = $, be.ContextProvider = P, be.Element = I, be.ForwardRef = j, be.Fragment = W, be.Lazy =
|
|
6144
|
+
be.ContextConsumer = $, be.ContextProvider = P, be.Element = I, be.ForwardRef = j, be.Fragment = W, be.Lazy = G, be.Memo = V, be.Portal = L, be.Profiler = N, be.StrictMode = q, be.Suspense = X, be.SuspenseList = de, be.isAsyncMode = he, be.isConcurrentMode = re, be.isContextConsumer = ge, be.isContextProvider = at, be.isElement = Be, be.isForwardRef = _e, be.isFragment = Le, be.isLazy = ce, be.isMemo = dt, be.isPortal = jt, be.isProfiler = Dt, be.isStrictMode = yt, be.isSuspense = cn, be.isSuspenseList = bt, be.isValidElementType = F, be.typeOf = A;
|
|
6156
6145
|
}()), be;
|
|
6157
6146
|
}
|
|
6158
6147
|
process.env.NODE_ENV === "production" ? Ks.exports = eD() : Ks.exports = tD();
|
|
@@ -6306,7 +6295,7 @@ var mD = function(t) {
|
|
|
6306
6295
|
var i = sD(e), o = Z2(i, {
|
|
6307
6296
|
transform: function(c, d, h) {
|
|
6308
6297
|
var g = c[d];
|
|
6309
|
-
return g && /* @__PURE__ */ ta(g) ?
|
|
6298
|
+
return g && /* @__PURE__ */ ta(g) ? $i(ko(g, r), !0, n, r) : typeof g == "function" ? dp(g, r) : h;
|
|
6310
6299
|
}
|
|
6311
6300
|
});
|
|
6312
6301
|
return t ? o.replace(/\s+/g, " ").replace(/{ /g, "{").replace(/ }/g, "}").replace(/\[ /g, "[").replace(/ ]/g, "]") : o.replace(/\t/g, Xt(1, r.tabStop)).replace(/\n([^$])/g, `
|
|
@@ -6322,7 +6311,7 @@ var mD = function(t) {
|
|
|
6322
6311
|
var o = t.valueOf().toString().replace(/Symbol\((.*)\)/, "$1");
|
|
6323
6312
|
return o ? "{Symbol('".concat(o, "')}") : "{Symbol()}";
|
|
6324
6313
|
}
|
|
6325
|
-
return typeof t == "function" ? "{".concat(dp(t, i), "}") : /* @__PURE__ */ ta(t) ? "{".concat(
|
|
6314
|
+
return typeof t == "function" ? "{".concat(dp(t, i), "}") : /* @__PURE__ */ ta(t) ? "{".concat($i(ko(t, i), !0, r, i), "}") : t instanceof Date ? isNaN(t.valueOf()) ? "{new Date(NaN)}" : '{new Date("'.concat(t.toISOString(), '")}') : G2(t) || Array.isArray(t) ? "{".concat(gD(t, n, r, i), "}") : "{".concat(String(t), "}");
|
|
6326
6315
|
}, yD = function(e, t, n, r, i, o, u, c) {
|
|
6327
6316
|
if (!t && !r)
|
|
6328
6317
|
throw new Error('The prop "'.concat(e, '" has no value and no default: could not be formatted'));
|
|
@@ -6363,7 +6352,7 @@ var xD = function(t, n, r, i, o) {
|
|
|
6363
6352
|
`) : n;
|
|
6364
6353
|
}, _D = function(t, n, r) {
|
|
6365
6354
|
return function(i) {
|
|
6366
|
-
return xD(i,
|
|
6355
|
+
return xD(i, $i(i, t, n, r), t, n, r);
|
|
6367
6356
|
};
|
|
6368
6357
|
}, SD = function(t, n) {
|
|
6369
6358
|
return function(r) {
|
|
@@ -6390,8 +6379,8 @@ var xD = function(t, n, r, i, o) {
|
|
|
6390
6379
|
});
|
|
6391
6380
|
var P = wD(x)(A);
|
|
6392
6381
|
if (P.forEach(function(j) {
|
|
6393
|
-
var W = yD(j, Object.keys(h).includes(j), h[j], Object.keys(v).includes(j), v[j], t, n, r),
|
|
6394
|
-
L && (F = !0), E +=
|
|
6382
|
+
var W = yD(j, Object.keys(h).includes(j), h[j], Object.keys(v).includes(j), v[j], t, n, r), G = W.attributeFormattedInline, V = W.attributeFormattedMultiline, L = W.isMultilineAttribute;
|
|
6383
|
+
L && (F = !0), E += G, _ += V;
|
|
6395
6384
|
}), _ += `
|
|
6396
6385
|
`.concat(Xt(n, C)), ED(P, E, F, t, n, C, b) ? T = _ : T = E, c && c.length > 0) {
|
|
6397
6386
|
var I = n + 1;
|
|
@@ -6434,7 +6423,7 @@ var xD = function(t, n, r, i, o) {
|
|
|
6434
6423
|
}, LD = function(t) {
|
|
6435
6424
|
var n = t;
|
|
6436
6425
|
return n.endsWith(" ") && (n = n.replace(/^(.*?)(\s+)$/, "$1{'$2'}")), n.startsWith(" ") && (n = n.replace(/^(\s+)(.*)$/, "{'$1'}$2")), n;
|
|
6437
|
-
},
|
|
6426
|
+
}, $i = function(e, t, n, r) {
|
|
6438
6427
|
if (e.type === "number")
|
|
6439
6428
|
return String(e.value);
|
|
6440
6429
|
if (e.type === "string")
|
|
@@ -6445,7 +6434,7 @@ var xD = function(t, n, r, i, o) {
|
|
|
6445
6434
|
return BD(e, t, n, r);
|
|
6446
6435
|
throw new TypeError('Unknow format type "'.concat(e.type, '"'));
|
|
6447
6436
|
}, OD = function(e, t) {
|
|
6448
|
-
return
|
|
6437
|
+
return $i(e, !1, 0, t);
|
|
6449
6438
|
}, ID = function(t) {
|
|
6450
6439
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = n.filterProps, i = r === void 0 ? [] : r, o = n.showDefaultProps, u = o === void 0 ? !0 : o, c = n.showFunctions, d = c === void 0 ? !1 : c, h = n.functionValue, g = n.tabStop, v = g === void 0 ? 2 : g, D = n.useBooleanShorthandSyntax, b = D === void 0 ? !0 : D, k = n.useFragmentShortSyntax, x = k === void 0 ? !0 : k, C = n.sortProps, T = C === void 0 ? !0 : C, E = n.maxInlineAttributesLineLength, _ = n.displayName;
|
|
6451
6440
|
if (!t)
|
|
@@ -6463,19 +6452,19 @@ var xD = function(t, n, r, i, o) {
|
|
|
6463
6452
|
displayName: _
|
|
6464
6453
|
};
|
|
6465
6454
|
return OD(ko(t, F), F);
|
|
6466
|
-
}, MD = Object.create,
|
|
6455
|
+
}, MD = Object.create, Ti = Object.defineProperty, RD = Object.getOwnPropertyDescriptor, qD = Object.getOwnPropertyNames, HD = Object.getPrototypeOf, UD = Object.prototype.hasOwnProperty, mp = (e) => {
|
|
6467
6456
|
throw TypeError(e);
|
|
6468
|
-
}, WD = (e, t) => () => (e && (t = e(e = 0)), t), wo = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
6469
|
-
for (var n in t)
|
|
6457
|
+
}, WD = (e, t) => () => (e && (t = e(e = 0)), t), wo = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), Bi = (e, t) => {
|
|
6458
|
+
for (var n in t) Ti(e, n, { get: t[n], enumerable: !0 });
|
|
6470
6459
|
}, gp = (e, t, n, r) => {
|
|
6471
|
-
if (t && typeof t == "object" || typeof t == "function") for (let i of qD(t)) !UD.call(e, i) && i !== n &&
|
|
6460
|
+
if (t && typeof t == "object" || typeof t == "function") for (let i of qD(t)) !UD.call(e, i) && i !== n && Ti(e, i, { get: () => t[i], enumerable: !(r = RD(t, i)) || r.enumerable });
|
|
6472
6461
|
return e;
|
|
6473
|
-
},
|
|
6462
|
+
}, Ni = (e, t, n) => (n = e != null ? MD(HD(e)) : {}, gp(Ti(n, "default", { value: e, enumerable: !0 }), e)), zD = (e) => gp(Ti({}, "__esModule", { value: !0 }), e), VD = (e, t, n) => t.has(e) || mp("Cannot " + n), YD = (e, t, n) => t.has(e) ? mp("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Jr = (e, t, n) => (VD(e, t, "access private method"), n), Co = wo((e, t) => {
|
|
6474
6463
|
var n = new Proxy(String, { get: () => n });
|
|
6475
6464
|
t.exports = n;
|
|
6476
6465
|
}), vp = {};
|
|
6477
|
-
|
|
6478
|
-
var Dp, yp,
|
|
6466
|
+
Bi(vp, { default: () => yp, shouldHighlight: () => Dp });
|
|
6467
|
+
var Dp, yp, GD = WD(() => {
|
|
6479
6468
|
Dp = () => !1, yp = String;
|
|
6480
6469
|
}), KD = wo((e, t) => {
|
|
6481
6470
|
var n = String, r = function() {
|
|
@@ -6484,7 +6473,7 @@ var Dp, yp, YD = WD(() => {
|
|
|
6484
6473
|
t.exports = r(), t.exports.createColors = r;
|
|
6485
6474
|
}), JD = wo((e) => {
|
|
6486
6475
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.codeFrameColumns = b, e.default = k;
|
|
6487
|
-
var t = (
|
|
6476
|
+
var t = (GD(), zD(vp)), n = i(KD(), !0);
|
|
6488
6477
|
function r(x) {
|
|
6489
6478
|
if (typeof WeakMap != "function") return null;
|
|
6490
6479
|
var C = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap();
|
|
@@ -6513,8 +6502,8 @@ var Dp, yp, YD = WD(() => {
|
|
|
6513
6502
|
}
|
|
6514
6503
|
var v = /\r\n|[\n\r\u2028\u2029]/;
|
|
6515
6504
|
function D(x, C, T) {
|
|
6516
|
-
let E = Object.assign({ column: 0, line: -1 }, x.start), _ = Object.assign({}, E, x.end), { linesAbove: F = 2, linesBelow: A = 3 } = T || {}, $ = E.line, P = E.column, I = _.line, j = _.column, W = Math.max($ - (F + 1), 0),
|
|
6517
|
-
$ === -1 && (W = 0), I === -1 && (
|
|
6505
|
+
let E = Object.assign({ column: 0, line: -1 }, x.start), _ = Object.assign({}, E, x.end), { linesAbove: F = 2, linesBelow: A = 3 } = T || {}, $ = E.line, P = E.column, I = _.line, j = _.column, W = Math.max($ - (F + 1), 0), G = Math.min(C.length, I + A);
|
|
6506
|
+
$ === -1 && (W = 0), I === -1 && (G = C.length);
|
|
6518
6507
|
let V = I - $, L = {};
|
|
6519
6508
|
if (V) for (let N = 0; N <= V; N++) {
|
|
6520
6509
|
let q = N + $;
|
|
@@ -6529,11 +6518,11 @@ var Dp, yp, YD = WD(() => {
|
|
|
6529
6518
|
}
|
|
6530
6519
|
}
|
|
6531
6520
|
else P === j ? P ? L[$] = [P, 0] : L[$] = !0 : L[$] = [P, j - P];
|
|
6532
|
-
return { start: W, end:
|
|
6521
|
+
return { start: W, end: G, markerLines: L };
|
|
6533
6522
|
}
|
|
6534
6523
|
function b(x, C, T = {}) {
|
|
6535
|
-
let E = (T.highlightCode || T.forceColor) && (0, t.shouldHighlight)(T), _ = d(T.forceColor), F = g(_), A = (L, N) => E ? L(N) : N, $ = x.split(v), { start: P, end: I, markerLines: j } = D(C, $, T), W = C.start && typeof C.start.column == "number",
|
|
6536
|
-
let q = P + 1 + N, X = ` ${` ${q}`.slice(-
|
|
6524
|
+
let E = (T.highlightCode || T.forceColor) && (0, t.shouldHighlight)(T), _ = d(T.forceColor), F = g(_), A = (L, N) => E ? L(N) : N, $ = x.split(v), { start: P, end: I, markerLines: j } = D(C, $, T), W = C.start && typeof C.start.column == "number", G = String(I).length, V = (E ? (0, t.default)(x, T) : x).split(v, I).slice(P, I).map((L, N) => {
|
|
6525
|
+
let q = P + 1 + N, X = ` ${` ${q}`.slice(-G)} |`, de = j[q], Q = !j[q + 1];
|
|
6537
6526
|
if (de) {
|
|
6538
6527
|
let se = "";
|
|
6539
6528
|
if (Array.isArray(de)) {
|
|
@@ -6545,7 +6534,7 @@ var Dp, yp, YD = WD(() => {
|
|
|
6545
6534
|
} else return ` ${A(F.gutter, X)}${L.length > 0 ? ` ${L}` : ""}`;
|
|
6546
6535
|
}).join(`
|
|
6547
6536
|
`);
|
|
6548
|
-
return T.message && !W && (V = `${" ".repeat(
|
|
6537
|
+
return T.message && !W && (V = `${" ".repeat(G + 1)}${T.message}
|
|
6549
6538
|
${V}`), E ? _.reset(V) : V;
|
|
6550
6539
|
}
|
|
6551
6540
|
function k(x, C, T, E = {}) {
|
|
@@ -6560,10 +6549,10 @@ ${V}`), E ? _.reset(V) : V;
|
|
|
6560
6549
|
return T = Math.max(T, 0), b(x, { start: { column: T, line: C } }, E);
|
|
6561
6550
|
}
|
|
6562
6551
|
}), XD = {};
|
|
6563
|
-
|
|
6552
|
+
Bi(XD, { __debug: () => Zb, check: () => Xb, doc: () => id, format: () => Oo, formatWithCursor: () => od, getSupportInfo: () => Qb, util: () => sd, version: () => Eb });
|
|
6564
6553
|
var QD = (e, t, n, r) => {
|
|
6565
6554
|
if (!(e && t == null)) return t.replaceAll ? t.replaceAll(n, r) : n.global ? t.replace(n, r) : t.split(n).join(r);
|
|
6566
|
-
},
|
|
6555
|
+
}, ji = QD;
|
|
6567
6556
|
function bn() {
|
|
6568
6557
|
}
|
|
6569
6558
|
bn.prototype = { diff: function(e, t) {
|
|
@@ -6652,9 +6641,9 @@ function ZD(e, t, n, r, i) {
|
|
|
6652
6641
|
var k = o[d - 1];
|
|
6653
6642
|
return d > 1 && typeof k.value == "string" && (k.added || k.removed) && e.equals("", k.value) && (o[d - 2].value += k.value, o.pop()), o;
|
|
6654
6643
|
}
|
|
6655
|
-
var Vu = /^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,
|
|
6644
|
+
var Vu = /^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/, Yu = /\S/, bp = new bn();
|
|
6656
6645
|
bp.equals = function(e, t) {
|
|
6657
|
-
return this.options.ignoreCase && (e = e.toLowerCase(), t = t.toLowerCase()), e === t || this.options.ignoreWhitespace && !
|
|
6646
|
+
return this.options.ignoreCase && (e = e.toLowerCase(), t = t.toLowerCase()), e === t || this.options.ignoreWhitespace && !Yu.test(e) && !Yu.test(t);
|
|
6658
6647
|
};
|
|
6659
6648
|
bp.tokenize = function(e) {
|
|
6660
6649
|
for (var t = e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/), n = 0; n < t.length - 1; n++) !t[n + 1] && t[n + 2] && Vu.test(t[n]) && Vu.test(t[n + 2]) && (t[n] += t[n + 2], t.splice(n + 1, 2), n--);
|
|
@@ -6680,13 +6669,13 @@ var ty = new bn();
|
|
|
6680
6669
|
ty.tokenize = function(e) {
|
|
6681
6670
|
return e.split(/([{}:;,]|\s+)/);
|
|
6682
6671
|
};
|
|
6683
|
-
function
|
|
6672
|
+
function di(e) {
|
|
6684
6673
|
"@babel/helpers - typeof";
|
|
6685
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
6674
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? di = function(t) {
|
|
6686
6675
|
return typeof t;
|
|
6687
|
-
} :
|
|
6676
|
+
} : di = function(t) {
|
|
6688
6677
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
6689
|
-
},
|
|
6678
|
+
}, di(e);
|
|
6690
6679
|
}
|
|
6691
6680
|
var ny = Object.prototype.toString, da = new bn();
|
|
6692
6681
|
da.useLongestToken = !0;
|
|
@@ -6709,7 +6698,7 @@ function Qs(e, t, n, r, i) {
|
|
|
6709
6698
|
for (t.push(e), u = new Array(e.length), n.push(u), o = 0; o < e.length; o += 1) u[o] = Qs(e[o], t, n, r, i);
|
|
6710
6699
|
return t.pop(), n.pop(), u;
|
|
6711
6700
|
}
|
|
6712
|
-
if (e && e.toJSON && (e = e.toJSON()),
|
|
6701
|
+
if (e && e.toJSON && (e = e.toJSON()), di(e) === "object" && e !== null) {
|
|
6713
6702
|
t.push(e), u = {}, n.push(u);
|
|
6714
6703
|
var c = [], d;
|
|
6715
6704
|
for (d in e) e.hasOwnProperty(d) && c.push(d);
|
|
@@ -6718,15 +6707,15 @@ function Qs(e, t, n, r, i) {
|
|
|
6718
6707
|
} else u = e;
|
|
6719
6708
|
return u;
|
|
6720
6709
|
}
|
|
6721
|
-
var
|
|
6722
|
-
|
|
6710
|
+
var Ci = new bn();
|
|
6711
|
+
Ci.tokenize = function(e) {
|
|
6723
6712
|
return e.slice();
|
|
6724
6713
|
};
|
|
6725
|
-
|
|
6714
|
+
Ci.join = Ci.removeEmpty = function(e) {
|
|
6726
6715
|
return e;
|
|
6727
6716
|
};
|
|
6728
6717
|
function ry(e, t, n) {
|
|
6729
|
-
return
|
|
6718
|
+
return Ci.diff(e, t, n);
|
|
6730
6719
|
}
|
|
6731
6720
|
function ay(e) {
|
|
6732
6721
|
let t = e.indexOf("\r");
|
|
@@ -6766,7 +6755,7 @@ function wp(e, t) {
|
|
|
6766
6755
|
return r ? r.length : 0;
|
|
6767
6756
|
}
|
|
6768
6757
|
function iy(e) {
|
|
6769
|
-
return
|
|
6758
|
+
return ji(!1, e, /\r\n?/gu, `
|
|
6770
6759
|
`);
|
|
6771
6760
|
}
|
|
6772
6761
|
var Wn = "string", en = "array", zn = "cursor", rn = "indent", an = "align", sn = "trim", vt = "group", Ht = "fill", Ct = "if-break", on = "indent-if-break", ln = "line-suffix", un = "line-suffix-boundary", rt = "line", Ut = "label", Ft = "break-parent", Cp = /* @__PURE__ */ new Set([zn, rn, an, sn, vt, Ht, Ct, on, ln, un, rt, Ut, Ft]);
|
|
@@ -6795,16 +6784,16 @@ var uy = class extends Error {
|
|
|
6795
6784
|
nr(this, "name", "InvalidDocError");
|
|
6796
6785
|
this.doc = t;
|
|
6797
6786
|
}
|
|
6798
|
-
}, Dr = uy,
|
|
6787
|
+
}, Dr = uy, Gu = {};
|
|
6799
6788
|
function cy(e, t, n, r) {
|
|
6800
6789
|
let i = [e];
|
|
6801
6790
|
for (; i.length > 0; ) {
|
|
6802
6791
|
let o = i.pop();
|
|
6803
|
-
if (o ===
|
|
6792
|
+
if (o === Gu) {
|
|
6804
6793
|
n(i.pop());
|
|
6805
6794
|
continue;
|
|
6806
6795
|
}
|
|
6807
|
-
n && i.push(o,
|
|
6796
|
+
n && i.push(o, Gu);
|
|
6808
6797
|
let u = Vn(o);
|
|
6809
6798
|
if (!u) throw new Dr(o);
|
|
6810
6799
|
if ((t == null ? void 0 : t(o)) !== !1) switch (u) {
|
|
@@ -6842,7 +6831,7 @@ function cy(e, t, n, r) {
|
|
|
6842
6831
|
}
|
|
6843
6832
|
var _o = cy, py = () => {
|
|
6844
6833
|
}, dy = py;
|
|
6845
|
-
function
|
|
6834
|
+
function xi(e) {
|
|
6846
6835
|
return { type: rn, contents: e };
|
|
6847
6836
|
}
|
|
6848
6837
|
function yr(e, t) {
|
|
@@ -6875,7 +6864,7 @@ function Dy(e, t) {
|
|
|
6875
6864
|
function Zs(e) {
|
|
6876
6865
|
return { type: ln, contents: e };
|
|
6877
6866
|
}
|
|
6878
|
-
var yy = { type: un },
|
|
6867
|
+
var yy = { type: un }, Pi = { type: Ft }, by = { type: sn }, So = { type: rt, hard: !0 }, Sp = { type: rt, hard: !0, literal: !0 }, Ep = { type: rt }, ky = { type: rt, soft: !0 }, On = [So, Pi], Fp = [Sp, Pi], eo = { type: zn };
|
|
6879
6868
|
function Ap(e, t) {
|
|
6880
6869
|
let n = [];
|
|
6881
6870
|
for (let r = 0; r < t.length; r++) r !== 0 && n.push(e), n.push(t[r]);
|
|
@@ -6884,7 +6873,7 @@ function Ap(e, t) {
|
|
|
6884
6873
|
function $p(e, t, n) {
|
|
6885
6874
|
let r = e;
|
|
6886
6875
|
if (t > 0) {
|
|
6887
|
-
for (let i = 0; i < Math.floor(t / n); ++i) r =
|
|
6876
|
+
for (let i = 0; i < Math.floor(t / n); ++i) r = xi(r);
|
|
6888
6877
|
r = yr(t % n, r), r = yr(Number.NEGATIVE_INFINITY, r);
|
|
6889
6878
|
}
|
|
6890
6879
|
return r;
|
|
@@ -6975,7 +6964,7 @@ function $y(e) {
|
|
|
6975
6964
|
return t;
|
|
6976
6965
|
}
|
|
6977
6966
|
var Eo = $y;
|
|
6978
|
-
function
|
|
6967
|
+
function Li(e, t) {
|
|
6979
6968
|
if (typeof e == "string") return t(e);
|
|
6980
6969
|
let n = /* @__PURE__ */ new Map();
|
|
6981
6970
|
return r(e);
|
|
@@ -7053,7 +7042,7 @@ function jy(e) {
|
|
|
7053
7042
|
return e.type === rt && !e.hard ? e.soft ? "" : " " : e.type === Ct ? e.flatContents : e;
|
|
7054
7043
|
}
|
|
7055
7044
|
function Py(e) {
|
|
7056
|
-
return
|
|
7045
|
+
return Li(e, jy);
|
|
7057
7046
|
}
|
|
7058
7047
|
function Ju(e) {
|
|
7059
7048
|
for (e = [...e]; e.length >= 2 && ze(!1, e, -2).type === rt && ze(!1, e, -1).type === Ft; ) e.length -= 2;
|
|
@@ -7137,10 +7126,10 @@ function Ly(e) {
|
|
|
7137
7126
|
return e;
|
|
7138
7127
|
}
|
|
7139
7128
|
function Oy(e) {
|
|
7140
|
-
return
|
|
7129
|
+
return Li(e, (t) => Ly(t));
|
|
7141
7130
|
}
|
|
7142
7131
|
function Iy(e, t = Fp) {
|
|
7143
|
-
return
|
|
7132
|
+
return Li(e, (n) => typeof n == "string" ? Ap(t, n.split(`
|
|
7144
7133
|
`)) : n);
|
|
7145
7134
|
}
|
|
7146
7135
|
function My(e) {
|
|
@@ -7271,14 +7260,14 @@ function ai(e, t, n, r, i, o) {
|
|
|
7271
7260
|
}
|
|
7272
7261
|
return !1;
|
|
7273
7262
|
}
|
|
7274
|
-
function
|
|
7263
|
+
function Oi(e, t) {
|
|
7275
7264
|
let n = {}, r = t.printWidth, i = xo(t.endOfLine), o = 0, u = [{ ind: Np(), mode: gt, doc: e }], c = [], d = !1, h = [], g = 0;
|
|
7276
7265
|
for (Ny(e); u.length > 0; ) {
|
|
7277
7266
|
let { ind: D, mode: b, doc: k } = u.pop();
|
|
7278
7267
|
switch (Vn(k)) {
|
|
7279
7268
|
case Wn: {
|
|
7280
7269
|
let x = i !== `
|
|
7281
|
-
` ?
|
|
7270
|
+
` ? ji(!1, k, `
|
|
7282
7271
|
`, i) : k;
|
|
7283
7272
|
c.push(x), u.length > 0 && (o += Eo(x));
|
|
7284
7273
|
break;
|
|
@@ -7353,11 +7342,11 @@ function Li(e, t) {
|
|
|
7353
7342
|
case on: {
|
|
7354
7343
|
let x = k.groupId ? n[k.groupId] : b;
|
|
7355
7344
|
if (x === gt) {
|
|
7356
|
-
let C = k.type === Ct ? k.breakContents : k.negate ? k.contents :
|
|
7345
|
+
let C = k.type === Ct ? k.breakContents : k.negate ? k.contents : xi(k.contents);
|
|
7357
7346
|
C && u.push({ ind: D, mode: b, doc: C });
|
|
7358
7347
|
}
|
|
7359
7348
|
if (x === Ot) {
|
|
7360
|
-
let C = k.type === Ct ? k.flatContents : k.negate ?
|
|
7349
|
+
let C = k.type === Ct ? k.flatContents : k.negate ? xi(k.contents) : k.contents;
|
|
7361
7350
|
C && u.push({ ind: D, mode: b, doc: C });
|
|
7362
7351
|
}
|
|
7363
7352
|
break;
|
|
@@ -7407,9 +7396,9 @@ function Uy(e, t, n = 0) {
|
|
|
7407
7396
|
for (let i = n; i < e.length; ++i) e[i] === " " ? r = r + t - r % t : r++;
|
|
7408
7397
|
return r;
|
|
7409
7398
|
}
|
|
7410
|
-
var Ao = Uy, Nn, ro,
|
|
7399
|
+
var Ao = Uy, Nn, ro, hi, Wy = class {
|
|
7411
7400
|
constructor(e) {
|
|
7412
|
-
|
|
7401
|
+
YD(this, Nn), this.stack = [e];
|
|
7413
7402
|
}
|
|
7414
7403
|
get key() {
|
|
7415
7404
|
let { stack: e, siblings: t } = this;
|
|
@@ -7456,7 +7445,7 @@ var Ao = Uy, Nn, ro, di, Wy = class {
|
|
|
7456
7445
|
return this.stack[0];
|
|
7457
7446
|
}
|
|
7458
7447
|
get ancestors() {
|
|
7459
|
-
return [...Jr(this, Nn,
|
|
7448
|
+
return [...Jr(this, Nn, hi).call(this)];
|
|
7460
7449
|
}
|
|
7461
7450
|
getName() {
|
|
7462
7451
|
let { stack: e } = this, { length: t } = e;
|
|
@@ -7515,10 +7504,10 @@ var Ao = Uy, Nn, ro, di, Wy = class {
|
|
|
7515
7504
|
return !0;
|
|
7516
7505
|
}
|
|
7517
7506
|
findAncestor(e) {
|
|
7518
|
-
for (let t of Jr(this, Nn,
|
|
7507
|
+
for (let t of Jr(this, Nn, hi).call(this)) if (e(t)) return t;
|
|
7519
7508
|
}
|
|
7520
7509
|
hasAncestor(e) {
|
|
7521
|
-
for (let t of Jr(this, Nn,
|
|
7510
|
+
for (let t of Jr(this, Nn, hi).call(this)) if (e(t)) return !0;
|
|
7522
7511
|
return !1;
|
|
7523
7512
|
}
|
|
7524
7513
|
};
|
|
@@ -7526,7 +7515,7 @@ Nn = /* @__PURE__ */ new WeakSet(), ro = function(e) {
|
|
|
7526
7515
|
let { stack: t } = this;
|
|
7527
7516
|
for (let n = t.length - 1; n >= 0; n -= 2) if (!Array.isArray(t[n]) && --e < 0) return n;
|
|
7528
7517
|
return -1;
|
|
7529
|
-
},
|
|
7518
|
+
}, hi = function* () {
|
|
7530
7519
|
let { stack: e } = this;
|
|
7531
7520
|
for (let t = e.length - 3; t >= 0; t -= 2) {
|
|
7532
7521
|
let n = e[t];
|
|
@@ -7538,16 +7527,16 @@ var zy = Wy, jp = new Proxy(() => {
|
|
|
7538
7527
|
function Vy(e) {
|
|
7539
7528
|
return e !== null && typeof e == "object";
|
|
7540
7529
|
}
|
|
7541
|
-
var
|
|
7530
|
+
var Yy = Vy;
|
|
7542
7531
|
function* Pp(e, t) {
|
|
7543
|
-
let { getVisitorKeys: n, filter: r = () => !0 } = t, i = (o) =>
|
|
7532
|
+
let { getVisitorKeys: n, filter: r = () => !0 } = t, i = (o) => Yy(o) && r(o);
|
|
7544
7533
|
for (let o of n(e)) {
|
|
7545
7534
|
let u = e[o];
|
|
7546
7535
|
if (Array.isArray(u)) for (let c of u) i(c) && (yield c);
|
|
7547
7536
|
else i(u) && (yield u);
|
|
7548
7537
|
}
|
|
7549
7538
|
}
|
|
7550
|
-
function*
|
|
7539
|
+
function* Gy(e, t) {
|
|
7551
7540
|
let n = [e];
|
|
7552
7541
|
for (let r = 0; r < n.length; r++) {
|
|
7553
7542
|
let i = n[r];
|
|
@@ -7600,7 +7589,7 @@ var Zy = Qy, Ip = /* @__PURE__ */ new Set(["tokens", "comments", "parent", "encl
|
|
|
7600
7589
|
function t0(e) {
|
|
7601
7590
|
return e ? (t) => e(t, Ip) : e0;
|
|
7602
7591
|
}
|
|
7603
|
-
var
|
|
7592
|
+
var Ii = t0;
|
|
7604
7593
|
function n0(e) {
|
|
7605
7594
|
let t = e.type || e.kind || "(unknown type)", n = String(e.name || e.id && (typeof e.id == "object" ? e.id.name : e.id) || e.key && (typeof e.key == "object" ? e.key.name : e.key) || e.value && (typeof e.value == "object" ? "" : String(e.value)) || e.operator || "");
|
|
7606
7595
|
return n.length > 20 && (n = n.slice(0, 19) + "…"), t + (n ? " " + n : "");
|
|
@@ -7617,13 +7606,13 @@ function jn(e, t, n) {
|
|
|
7617
7606
|
function cr(e, t) {
|
|
7618
7607
|
t.leading = !1, t.trailing = !0, $o(e, t);
|
|
7619
7608
|
}
|
|
7620
|
-
var
|
|
7609
|
+
var js = /* @__PURE__ */ new WeakMap();
|
|
7621
7610
|
function To(e, t) {
|
|
7622
|
-
if (
|
|
7611
|
+
if (js.has(e)) return js.get(e);
|
|
7623
7612
|
let { printer: { getCommentChildNodes: n, canAttachComment: r, getVisitorKeys: i }, locStart: o, locEnd: u } = t;
|
|
7624
7613
|
if (!r) return [];
|
|
7625
|
-
let c = ((n == null ? void 0 : n(e, t)) ?? [...Pp(e, { getVisitorKeys:
|
|
7626
|
-
return c.sort((d, h) => o(d) - o(h) || u(d) - u(h)),
|
|
7614
|
+
let c = ((n == null ? void 0 : n(e, t)) ?? [...Pp(e, { getVisitorKeys: Ii(i) })]).flatMap((d) => r(d) ? [d] : To(d, t));
|
|
7615
|
+
return c.sort((d, h) => o(d) - o(h) || u(d) - u(h)), js.set(e, c), c;
|
|
7627
7616
|
}
|
|
7628
7617
|
function Mp(e, t, n, r) {
|
|
7629
7618
|
let { locStart: i, locEnd: o } = n, u = i(t), c = o(t), d = To(e, n), h, g, v = 0, D = d.length;
|
|
@@ -7641,16 +7630,16 @@ function Mp(e, t, n, r) {
|
|
|
7641
7630
|
throw new Error("Comment location overlaps with node location");
|
|
7642
7631
|
}
|
|
7643
7632
|
if ((r == null ? void 0 : r.type) === "TemplateLiteral") {
|
|
7644
|
-
let { quasis: b } = r, k =
|
|
7645
|
-
h &&
|
|
7633
|
+
let { quasis: b } = r, k = Ls(b, t, n);
|
|
7634
|
+
h && Ls(b, h, n) !== k && (h = null), g && Ls(b, g, n) !== k && (g = null);
|
|
7646
7635
|
}
|
|
7647
7636
|
return { enclosingNode: r, precedingNode: h, followingNode: g };
|
|
7648
7637
|
}
|
|
7649
|
-
var
|
|
7638
|
+
var Ps = () => !1;
|
|
7650
7639
|
function r0(e, t) {
|
|
7651
7640
|
let { comments: n } = e;
|
|
7652
7641
|
if (delete e.comments, !Zy(n) || !t.printer.canAttachComment) return;
|
|
7653
|
-
let r = [], { locStart: i, locEnd: o, printer: { experimentalFeatures: { avoidAstMutation: u = !1 } = {}, handleComments: c = {} }, originalText: d } = t, { ownLine: h =
|
|
7642
|
+
let r = [], { locStart: i, locEnd: o, printer: { experimentalFeatures: { avoidAstMutation: u = !1 } = {}, handleComments: c = {} }, originalText: d } = t, { ownLine: h = Ps, endOfLine: g = Ps, remaining: v = Ps } = c, D = n.map((b, k) => ({ ...Mp(e, b, t), comment: b, text: d, options: t, ast: e, isLastComment: n.length - 1 === k }));
|
|
7654
7643
|
for (let [b, k] of D.entries()) {
|
|
7655
7644
|
let { comment: x, precedingNode: C, enclosingNode: T, followingNode: E, text: _, options: F, ast: A, isLastComment: $ } = k;
|
|
7656
7645
|
if (F.parser === "json" || F.parser === "json5" || F.parser === "jsonc" || F.parser === "__js_expression" || F.parser === "__ts_expression" || F.parser === "__vue_expression" || F.parser === "__vue_ts_expression") {
|
|
@@ -7708,7 +7697,7 @@ function Xu(e, t) {
|
|
|
7708
7697
|
for (let h of [o, u]) h.comments && h.comments.length > 1 && h.comments.sort((g, v) => t.locStart(g) - t.locStart(v));
|
|
7709
7698
|
e.length = 0;
|
|
7710
7699
|
}
|
|
7711
|
-
function
|
|
7700
|
+
function Ls(e, t, n) {
|
|
7712
7701
|
let r = n.locStart(t) - 1;
|
|
7713
7702
|
for (let i = 1; i < e.length; ++i) if (r < n.locStart(e[i])) return i - 1;
|
|
7714
7703
|
return 0;
|
|
@@ -7741,7 +7730,7 @@ function l0(e, t, n) {
|
|
|
7741
7730
|
let g = Bo(c, d(i));
|
|
7742
7731
|
return { doc: Zs([On, g ? On : "", o]), isBlock: h, hasLineSuffix: !0 };
|
|
7743
7732
|
}
|
|
7744
|
-
return !h || n != null && n.hasLineSuffix ? { doc: [Zs([" ", o]),
|
|
7733
|
+
return !h || n != null && n.hasLineSuffix ? { doc: [Zs([" ", o]), Pi], isBlock: h, hasLineSuffix: !0 } : { doc: [" ", o], isBlock: h, hasLineSuffix: !1 };
|
|
7745
7734
|
}
|
|
7746
7735
|
function u0(e, t) {
|
|
7747
7736
|
let n = e.node;
|
|
@@ -7826,10 +7815,10 @@ var D0 = v0, pr = { key: (e) => /^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e) ? e : JSON.
|
|
|
7826
7815
|
if (Array.isArray(e)) return `[${e.map((n) => pr.value(n)).join(", ")}]`;
|
|
7827
7816
|
let t = Object.keys(e);
|
|
7828
7817
|
return t.length === 0 ? "{}" : `{ ${t.map((n) => `${pr.key(n)}: ${pr.value(e[n])}`).join(", ")} }`;
|
|
7829
|
-
}, pair: ({ key: e, value: t }) => pr.value({ [e]: t }) }, ec =
|
|
7818
|
+
}, pair: ({ key: e, value: t }) => pr.value({ [e]: t }) }, ec = Ni(Co()), y0 = (e, t, { descriptor: n }) => {
|
|
7830
7819
|
let r = [`${ec.default.yellow(typeof e == "string" ? n.key(e) : n.pair(e))} is deprecated`];
|
|
7831
7820
|
return t && r.push(`we now treat it as ${ec.default.blue(typeof t == "string" ? n.key(t) : n.pair(t))}`), r.join("; ") + ".";
|
|
7832
|
-
}, dr =
|
|
7821
|
+
}, dr = Ni(Co()), Wp = Symbol.for("vnopts.VALUE_NOT_EXIST"), fi = Symbol.for("vnopts.VALUE_UNCHANGED"), tc = " ".repeat(2), b0 = (e, t, n) => {
|
|
7833
7822
|
let { text: r, list: i } = n.normalizeExpectedResult(n.schemas[e].expected(n)), o = [];
|
|
7834
7823
|
return r && o.push(nc(e, t, r, n.descriptor)), i && o.push([nc(e, t, i.title, n.descriptor)].concat(i.values.map((u) => zp(u, n.loggerPrintWidth))).join(`
|
|
7835
7824
|
`)), Vp(o, n.loggerPrintWidth);
|
|
@@ -7848,7 +7837,7 @@ function Vp(e, t) {
|
|
|
7848
7837
|
`, 1)[0].length);
|
|
7849
7838
|
return i > t && i > o ? r : n;
|
|
7850
7839
|
}
|
|
7851
|
-
var rc =
|
|
7840
|
+
var rc = Ni(Co()), Os = [], ac = [];
|
|
7852
7841
|
function k0(e, t) {
|
|
7853
7842
|
if (e === t) return 0;
|
|
7854
7843
|
let n = e;
|
|
@@ -7859,11 +7848,11 @@ function k0(e, t) {
|
|
|
7859
7848
|
for (; o < r && e.charCodeAt(o) === t.charCodeAt(o); ) o++;
|
|
7860
7849
|
if (r -= o, i -= o, r === 0) return i;
|
|
7861
7850
|
let u, c, d, h, g = 0, v = 0;
|
|
7862
|
-
for (; g < r; ) ac[g] = e.charCodeAt(o + g),
|
|
7863
|
-
for (; v < i; ) for (u = t.charCodeAt(o + v), d = v++, c = v, g = 0; g < r; g++) h = u === ac[g] ? d : d + 1, d =
|
|
7851
|
+
for (; g < r; ) ac[g] = e.charCodeAt(o + g), Os[g] = ++g;
|
|
7852
|
+
for (; v < i; ) for (u = t.charCodeAt(o + v), d = v++, c = v, g = 0; g < r; g++) h = u === ac[g] ? d : d + 1, d = Os[g], c = Os[g] = d > c ? h > c ? c + 1 : h : h > d ? d + 1 : h;
|
|
7864
7853
|
return c;
|
|
7865
7854
|
}
|
|
7866
|
-
var
|
|
7855
|
+
var Yp = (e, t, { descriptor: n, logger: r, schemas: i }) => {
|
|
7867
7856
|
let o = [`Ignored unknown option ${rc.default.yellow(n.pair({ key: e, value: t }))}.`], u = Object.keys(i).sort().find((c) => k0(e, c) < 3);
|
|
7868
7857
|
u && o.push(`Did you mean ${rc.default.blue(n.key(u))}?`), r.warn(o.join(" "));
|
|
7869
7858
|
}, w0 = ["default", "expected", "validate", "deprecated", "forward", "redirect", "overlap", "preprocess", "postprocess"];
|
|
@@ -7901,7 +7890,7 @@ var kn = class {
|
|
|
7901
7890
|
return e;
|
|
7902
7891
|
}
|
|
7903
7892
|
postprocess(e, t) {
|
|
7904
|
-
return
|
|
7893
|
+
return fi;
|
|
7905
7894
|
}
|
|
7906
7895
|
};
|
|
7907
7896
|
function x0(e, t, n) {
|
|
@@ -8030,10 +8019,10 @@ function P0(e) {
|
|
|
8030
8019
|
function sc(e) {
|
|
8031
8020
|
return e === void 0 ? {} : e;
|
|
8032
8021
|
}
|
|
8033
|
-
function
|
|
8022
|
+
function Gp(e) {
|
|
8034
8023
|
if (typeof e == "string") return { text: e };
|
|
8035
8024
|
let { text: t, list: n } = e;
|
|
8036
|
-
return L0((t || n) !== void 0, "Unexpected `expected` result, there should be at least one field."), n ? { text: t, list: { title: n.title, values: n.values.map(
|
|
8025
|
+
return L0((t || n) !== void 0, "Unexpected `expected` result, there should be at least one field."), n ? { text: t, list: { title: n.title, values: n.values.map(Gp) } } : { text: t };
|
|
8037
8026
|
}
|
|
8038
8027
|
function oc(e, t) {
|
|
8039
8028
|
return e === !0 ? !0 : e === !1 ? { value: t } : e;
|
|
@@ -8098,11 +8087,11 @@ var O0 = class extends kn {
|
|
|
8098
8087
|
validate(e) {
|
|
8099
8088
|
return typeof e == "string";
|
|
8100
8089
|
}
|
|
8101
|
-
}, R0 = pr, q0 =
|
|
8090
|
+
}, R0 = pr, q0 = Yp, H0 = b0, U0 = y0, W0 = class {
|
|
8102
8091
|
constructor(e, t) {
|
|
8103
|
-
let { logger: n = console, loggerPrintWidth: r = 80, descriptor: i = R0, unknown: o = q0, invalid: u = H0, deprecated: c = U0, missing: d = () => !1, required: h = () => !1, preprocess: g = (D) => D, postprocess: v = () =>
|
|
8092
|
+
let { logger: n = console, loggerPrintWidth: r = 80, descriptor: i = R0, unknown: o = q0, invalid: u = H0, deprecated: c = U0, missing: d = () => !1, required: h = () => !1, preprocess: g = (D) => D, postprocess: v = () => fi } = t || {};
|
|
8104
8093
|
this._utils = { descriptor: i, logger: n || { warn: () => {
|
|
8105
|
-
} }, loggerPrintWidth: r, schemas: A0(e, "name"), normalizeDefaultResult: sc, normalizeExpectedResult:
|
|
8094
|
+
} }, loggerPrintWidth: r, schemas: A0(e, "name"), normalizeDefaultResult: sc, normalizeExpectedResult: Gp, normalizeDeprecatedResult: lc, normalizeForwardResult: io, normalizeRedirectResult: cc, normalizeValidateResult: oc }, this._unknownHandler = o, this._invalidHandler = P0(u), this._deprecatedHandler = c, this._identifyMissing = (D, b) => !(D in b) || d(D, b), this._identifyRequired = h, this._preprocess = g, this._postprocess = v, this.cleanHistory();
|
|
8106
8095
|
}
|
|
8107
8096
|
cleanHistory() {
|
|
8108
8097
|
this._hasDeprecationWarned = T0();
|
|
@@ -8126,7 +8115,7 @@ var O0 = class extends kn {
|
|
|
8126
8115
|
for (let i of Object.keys(this._utils.schemas)) {
|
|
8127
8116
|
if (!(i in t)) continue;
|
|
8128
8117
|
let o = this._utils.schemas[i], u = t[i], c = o.postprocess(u, this._utils);
|
|
8129
|
-
c !==
|
|
8118
|
+
c !== fi && (this._applyValidation(c, i, o), t[i] = c);
|
|
8130
8119
|
}
|
|
8131
8120
|
return this._applyPostprocess(t), this._applyRequiredCheck(t), t;
|
|
8132
8121
|
}
|
|
@@ -8185,7 +8174,7 @@ var O0 = class extends kn {
|
|
|
8185
8174
|
}
|
|
8186
8175
|
_applyPostprocess(e) {
|
|
8187
8176
|
let t = this._postprocess(e, this._utils);
|
|
8188
|
-
if (t !==
|
|
8177
|
+
if (t !== fi) {
|
|
8189
8178
|
if (t.delete) for (let n of t.delete) delete e[n];
|
|
8190
8179
|
if (t.override) {
|
|
8191
8180
|
let { knownKeys: n, unknownKeys: r } = this._partitionOptionKeys(t.override);
|
|
@@ -8203,7 +8192,7 @@ var O0 = class extends kn {
|
|
|
8203
8192
|
}
|
|
8204
8193
|
}
|
|
8205
8194
|
}
|
|
8206
|
-
},
|
|
8195
|
+
}, Is;
|
|
8207
8196
|
function z0(e, t, { logger: n = !1, isCLI: r = !1, passThrough: i = !1, FlagSchema: o, descriptor: u } = {}) {
|
|
8208
8197
|
if (r) {
|
|
8209
8198
|
if (!o) throw new Error("'FlagSchema' option is required.");
|
|
@@ -8211,19 +8200,19 @@ function z0(e, t, { logger: n = !1, isCLI: r = !1, passThrough: i = !1, FlagSche
|
|
|
8211
8200
|
} else u = pr;
|
|
8212
8201
|
let c = i ? Array.isArray(i) ? (D, b) => i.includes(D) ? { [D]: b } : void 0 : (D, b) => ({ [D]: b }) : (D, b, k) => {
|
|
8213
8202
|
let { _: x, ...C } = k.schemas;
|
|
8214
|
-
return
|
|
8203
|
+
return Yp(D, b, { ...k, schemas: C });
|
|
8215
8204
|
}, d = V0(t, { isCLI: r, FlagSchema: o }), h = new W0(d, { logger: n, unknown: c, descriptor: u }), g = n !== !1;
|
|
8216
|
-
g &&
|
|
8205
|
+
g && Is && (h._hasDeprecationWarned = Is);
|
|
8217
8206
|
let v = h.normalize(e);
|
|
8218
|
-
return g && (
|
|
8207
|
+
return g && (Is = h._hasDeprecationWarned), v;
|
|
8219
8208
|
}
|
|
8220
8209
|
function V0(e, { isCLI: t, FlagSchema: n }) {
|
|
8221
8210
|
let r = [];
|
|
8222
8211
|
t && r.push(S0.create({ name: "_" }));
|
|
8223
|
-
for (let i of e) r.push(
|
|
8212
|
+
for (let i of e) r.push(Y0(i, { isCLI: t, optionInfos: e, FlagSchema: n })), i.alias && t && r.push(_0.create({ name: i.alias, sourceName: i.name }));
|
|
8224
8213
|
return r;
|
|
8225
8214
|
}
|
|
8226
|
-
function
|
|
8215
|
+
function Y0(e, { isCLI: t, optionInfos: n, FlagSchema: r }) {
|
|
8227
8216
|
let { name: i } = e, o = { name: i }, u, c = {};
|
|
8228
8217
|
switch (e.type) {
|
|
8229
8218
|
case "int":
|
|
@@ -8253,7 +8242,7 @@ function G0(e, { isCLI: t, optionInfos: n, FlagSchema: r }) {
|
|
|
8253
8242
|
}
|
|
8254
8243
|
return e.array ? E0.create({ ...t ? { preprocess: (d) => Array.isArray(d) ? d : [d] } : {}, ...c, valueSchema: u.create(o) }) : u.create({ ...o, ...c });
|
|
8255
8244
|
}
|
|
8256
|
-
var
|
|
8245
|
+
var G0 = z0, K0 = (e, t, n) => {
|
|
8257
8246
|
if (!(e && t == null)) {
|
|
8258
8247
|
if (t.findLast) return t.findLast(n);
|
|
8259
8248
|
for (let r = t.length - 1; r >= 0; r--) {
|
|
@@ -8301,9 +8290,9 @@ async function Q0(e, t = {}) {
|
|
|
8301
8290
|
r.printer = h;
|
|
8302
8291
|
let g = d.defaultOptions ? Object.fromEntries(Object.entries(d.defaultOptions).filter(([, D]) => D !== void 0)) : {}, v = { ...o, ...g };
|
|
8303
8292
|
for (let [D, b] of Object.entries(v)) (r[D] === null || r[D] === void 0) && (r[D] = b);
|
|
8304
|
-
return r.parser === "json" && (r.trailingComma = "none"),
|
|
8293
|
+
return r.parser === "json" && (r.trailingComma = "none"), G0(r, i, { passThrough: Object.keys(dc), ...t });
|
|
8305
8294
|
}
|
|
8306
|
-
var Cr = Q0, Z0 =
|
|
8295
|
+
var Cr = Q0, Z0 = Ni(JD());
|
|
8307
8296
|
async function eb(e, t) {
|
|
8308
8297
|
let n = await Xp(t), r = n.preprocess ? n.preprocess(e, t) : e;
|
|
8309
8298
|
t.originalText = r;
|
|
@@ -8329,7 +8318,7 @@ async function nb(e, t, n, r, i) {
|
|
|
8329
8318
|
let { embeddedLanguageFormatting: o, printer: { embed: u, hasPrettierIgnore: c = () => !1, getVisitorKeys: d } } = n;
|
|
8330
8319
|
if (!u || o !== "auto") return;
|
|
8331
8320
|
if (u.length > 2) throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");
|
|
8332
|
-
let h =
|
|
8321
|
+
let h = Ii(u.getVisitorKeys ?? d), g = [];
|
|
8333
8322
|
b();
|
|
8334
8323
|
let v = e.stack;
|
|
8335
8324
|
for (let { print: k, node: x, pathStack: C } of g) try {
|
|
@@ -8367,10 +8356,10 @@ function ab(e, t) {
|
|
|
8367
8356
|
return n.slice(d, h);
|
|
8368
8357
|
}
|
|
8369
8358
|
var ib = ab;
|
|
8370
|
-
async function
|
|
8359
|
+
async function Mi(e, t) {
|
|
8371
8360
|
({ ast: e } = await Zp(e, t));
|
|
8372
8361
|
let n = /* @__PURE__ */ new Map(), r = new zy(e), i = /* @__PURE__ */ new Map();
|
|
8373
|
-
await nb(r, u, t,
|
|
8362
|
+
await nb(r, u, t, Mi, i);
|
|
8374
8363
|
let o = await hc(r, t, u, void 0, i);
|
|
8375
8364
|
return p0(t), o;
|
|
8376
8365
|
function u(d, h) {
|
|
@@ -8397,15 +8386,15 @@ async function Zp(e, t) {
|
|
|
8397
8386
|
return e = r ? await r(e, t) : e, { ast: e, comments: n };
|
|
8398
8387
|
}
|
|
8399
8388
|
function sb(e, t) {
|
|
8400
|
-
let { cursorOffset: n, locStart: r, locEnd: i } = t, o =
|
|
8401
|
-
for (let d of
|
|
8389
|
+
let { cursorOffset: n, locStart: r, locEnd: i } = t, o = Ii(t.printer.getVisitorKeys), u = (d) => r(d) <= n && i(d) >= n, c = e;
|
|
8390
|
+
for (let d of Gy(e, { getVisitorKeys: o, filter: u })) c = d;
|
|
8402
8391
|
return c;
|
|
8403
8392
|
}
|
|
8404
8393
|
var ob = sb;
|
|
8405
8394
|
function lb(e, t) {
|
|
8406
8395
|
let { printer: { massageAstNode: n, getVisitorKeys: r } } = t;
|
|
8407
8396
|
if (!n) return e;
|
|
8408
|
-
let i =
|
|
8397
|
+
let i = Ii(r), o = n.ignoredProperties ?? /* @__PURE__ */ new Set();
|
|
8409
8398
|
return u(e);
|
|
8410
8399
|
function u(c, d) {
|
|
8411
8400
|
if (!(c !== null && typeof c == "object")) return c;
|
|
@@ -8506,9 +8495,9 @@ async function nd(e, t, n = 0) {
|
|
|
8506
8495
|
if (!e || e.trim().length === 0) return { formatted: "", cursorOffset: -1, comments: [] };
|
|
8507
8496
|
let { ast: r, text: i } = await xa(e, t);
|
|
8508
8497
|
t.cursorOffset >= 0 && (t.cursorNode = ob(r, t));
|
|
8509
|
-
let o = await
|
|
8498
|
+
let o = await Mi(r, t);
|
|
8510
8499
|
n > 0 && (o = $p([On, o], n, t.tabWidth));
|
|
8511
|
-
let u =
|
|
8500
|
+
let u = Oi(o, t);
|
|
8512
8501
|
if (n > 0) {
|
|
8513
8502
|
let d = u.formatted.trim();
|
|
8514
8503
|
u.cursorNodeStart !== void 0 && (u.cursorNodeStart -= u.formatted.indexOf(d)), u.formatted = d + xo(t.endOfLine);
|
|
@@ -8536,17 +8525,17 @@ async function Db(e, t) {
|
|
|
8536
8525
|
let k = xo(t.endOfLine);
|
|
8537
8526
|
D >= 0 && k === `\r
|
|
8538
8527
|
` && (D += wp(b.slice(0, D), `
|
|
8539
|
-
`)), b =
|
|
8528
|
+
`)), b = ji(!1, b, `
|
|
8540
8529
|
`, k);
|
|
8541
8530
|
}
|
|
8542
8531
|
return { formatted: b, cursorOffset: D, comments: g.comments };
|
|
8543
8532
|
}
|
|
8544
|
-
function
|
|
8533
|
+
function Ms(e, t, n) {
|
|
8545
8534
|
return typeof t != "number" || Number.isNaN(t) || t < 0 || t > e.length ? n : t;
|
|
8546
8535
|
}
|
|
8547
8536
|
function vc(e, t) {
|
|
8548
8537
|
let { cursorOffset: n, rangeStart: r, rangeEnd: i } = t;
|
|
8549
|
-
return n =
|
|
8538
|
+
return n = Ms(e, n, -1), r = Ms(e, r, 0), i = Ms(e, i, e.length), { ...t, cursorOffset: n, rangeStart: r, rangeEnd: i };
|
|
8550
8539
|
}
|
|
8551
8540
|
function rd(e, t) {
|
|
8552
8541
|
let { cursorOffset: n, rangeStart: r, rangeEnd: i, endOfLine: o } = vc(e, t), u = e.charAt(0) === td;
|
|
@@ -8573,8 +8562,8 @@ async function yb(e, t, n) {
|
|
|
8573
8562
|
}
|
|
8574
8563
|
async function bb(e, t) {
|
|
8575
8564
|
t = await Cr(t);
|
|
8576
|
-
let n = await
|
|
8577
|
-
return
|
|
8565
|
+
let n = await Mi(e, t);
|
|
8566
|
+
return Oi(n, t);
|
|
8578
8567
|
}
|
|
8579
8568
|
async function kb(e, t) {
|
|
8580
8569
|
let n = Cy(e), { formatted: r } = await ad(n, { ...t, parser: "__js_expression" });
|
|
@@ -8583,15 +8572,15 @@ async function kb(e, t) {
|
|
|
8583
8572
|
async function wb(e, t) {
|
|
8584
8573
|
t = await Cr(t);
|
|
8585
8574
|
let { ast: n } = await xa(e, t);
|
|
8586
|
-
return
|
|
8575
|
+
return Mi(n, t);
|
|
8587
8576
|
}
|
|
8588
8577
|
async function Cb(e, t) {
|
|
8589
|
-
return
|
|
8578
|
+
return Oi(e, await Cr(t));
|
|
8590
8579
|
}
|
|
8591
8580
|
var id = {};
|
|
8592
|
-
|
|
8593
|
-
var xb = { join: Ap, line: Ep, softline: ky, hardline: On, literalline: Fp, group: xp, conditionalGroup: gy, fill: _p, lineSuffix: Zs, lineSuffixBoundary: yy, cursor: eo, breakParent:
|
|
8594
|
-
|
|
8581
|
+
Bi(id, { builders: () => xb, printer: () => _b, utils: () => Sb });
|
|
8582
|
+
var xb = { join: Ap, line: Ep, softline: ky, hardline: On, literalline: Fp, group: xp, conditionalGroup: gy, fill: _p, lineSuffix: Zs, lineSuffixBoundary: yy, cursor: eo, breakParent: Pi, ifBreak: vy, trim: by, indent: xi, indentIfBreak: Dy, align: yr, addAlignmentToDoc: $p, markAsRoot: fy, dedentToRoot: hy, dedent: my, hardlineWithoutBreakParent: So, literallineWithoutBreakParent: Sp, label: wy, concat: (e) => e }, _b = { printDocToString: Oi }, Sb = { willBreak: By, traverseDoc: _o, findInDoc: Fo, mapDoc: Li, removeLines: Py, stripTrailingHardline: Tp, replaceEndOfLine: Iy, canBreak: Ry }, Eb = "3.3.3", sd = {};
|
|
8583
|
+
Bi(sd, { addDanglingComment: () => jn, addLeadingComment: () => ur, addTrailingComment: () => cr, getAlignmentSize: () => Ao, getIndentSize: () => Nb, getMaxContinuousCount: () => Lb, getNextNonSpaceNonCommentCharacter: () => Ib, getNextNonSpaceNonCommentCharacterIndex: () => Vb, getStringWidth: () => Eo, hasNewline: () => mn, hasNewlineInRange: () => Rb, hasSpaces: () => Hb, isNextLineEmpty: () => Jb, isNextLineEmptyAfterIndex: () => Lo, isPreviousLineEmpty: () => Gb, makeString: () => Wb, skip: () => Ca, skipEverythingButNewLine: () => Op, skipInlineComment: () => No, skipNewline: () => qn, skipSpaces: () => yn, skipToLineEnd: () => Lp, skipTrailingComment: () => jo, skipWhitespace: () => Ky });
|
|
8595
8584
|
function Fb(e, t) {
|
|
8596
8585
|
if (t === !1) return !1;
|
|
8597
8586
|
if (e.charAt(t) === "/" && e.charAt(t + 1) === "*") {
|
|
@@ -8647,7 +8636,7 @@ function qb(e, t, n = {}) {
|
|
|
8647
8636
|
}
|
|
8648
8637
|
var Hb = qb;
|
|
8649
8638
|
function Ub(e, t, n) {
|
|
8650
|
-
let r = t === '"' ? "'" : '"', i =
|
|
8639
|
+
let r = t === '"' ? "'" : '"', i = ji(!1, e, /\\(.)|(["'])/gsu, (o, u, c) => u === r ? u : c === t ? "\\" + c : c || (n && /^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(u) ? u : "\\" + u));
|
|
8651
8640
|
return t + i + t;
|
|
8652
8641
|
}
|
|
8653
8642
|
var Wb = Ub;
|
|
@@ -8657,11 +8646,11 @@ function zb(e, t, n) {
|
|
|
8657
8646
|
function Vb(e, t) {
|
|
8658
8647
|
return arguments.length === 2 || typeof t == "number" ? Po(e, t) : zb(...arguments);
|
|
8659
8648
|
}
|
|
8660
|
-
function
|
|
8649
|
+
function Yb(e, t, n) {
|
|
8661
8650
|
return Bo(e, n(t));
|
|
8662
8651
|
}
|
|
8663
|
-
function
|
|
8664
|
-
return arguments.length === 2 || typeof t == "number" ? Bo(e, t) :
|
|
8652
|
+
function Gb(e, t) {
|
|
8653
|
+
return arguments.length === 2 || typeof t == "number" ? Bo(e, t) : Yb(...arguments);
|
|
8665
8654
|
}
|
|
8666
8655
|
function Kb(e, t, n) {
|
|
8667
8656
|
return Lo(e, n(t));
|
|
@@ -8703,7 +8692,7 @@ var Qb = Pn(Up, 0), Zb = { parse: Pn(yb), formatAST: Pn(bb), formatDoc: Pn(kb),
|
|
|
8703
8692
|
c(k, { languages: () => jf, options: () => Lf, parsers: () => Al, printers: () => Hm });
|
|
8704
8693
|
var x = (a, s, l, p) => {
|
|
8705
8694
|
if (!(a && s == null)) return s.replaceAll ? s.replaceAll(l, p) : l.global ? s.replace(l, p) : s.split(l).join(p);
|
|
8706
|
-
}, C = x, T = "string", E = "array", _ = "cursor", F = "indent", A = "align", $ = "trim", P = "group", I = "fill", j = "if-break", W = "indent-if-break",
|
|
8695
|
+
}, C = x, T = "string", E = "array", _ = "cursor", F = "indent", A = "align", $ = "trim", P = "group", I = "fill", j = "if-break", W = "indent-if-break", G = "line-suffix", V = "line-suffix-boundary", L = "line", N = "label", q = "break-parent", X = /* @__PURE__ */ new Set([_, F, A, $, P, I, j, W, G, V, L, N, q]);
|
|
8707
8696
|
function de(a) {
|
|
8708
8697
|
if (typeof a == "string") return T;
|
|
8709
8698
|
if (Array.isArray(a)) return E;
|
|
@@ -8731,7 +8720,7 @@ Expected it to be ${p}.`;
|
|
|
8731
8720
|
}
|
|
8732
8721
|
}, ge = re, at = () => {
|
|
8733
8722
|
}, Be = at;
|
|
8734
|
-
function
|
|
8723
|
+
function _e(a) {
|
|
8735
8724
|
return { type: F, contents: a };
|
|
8736
8725
|
}
|
|
8737
8726
|
function Le(a, s) {
|
|
@@ -8755,15 +8744,15 @@ Expected it to be ${p}.`;
|
|
|
8755
8744
|
function cn(a, s) {
|
|
8756
8745
|
return { type: W, contents: a, groupId: s.groupId, negate: s.negate };
|
|
8757
8746
|
}
|
|
8758
|
-
var bt = { type: q }, K = { type: L, hard: !0 }, Pt = { type: L, hard: !0, literal: !0 }, ke = { type: L }, je = { type: L, soft: !0 }, Ce = [K, bt],
|
|
8747
|
+
var bt = { type: q }, K = { type: L, hard: !0 }, Pt = { type: L, hard: !0, literal: !0 }, ke = { type: L }, je = { type: L, soft: !0 }, Ce = [K, bt], Gn = [Pt, bt];
|
|
8759
8748
|
function pn(a, s) {
|
|
8760
8749
|
let l = [];
|
|
8761
8750
|
for (let p = 0; p < s.length; p++) p !== 0 && l.push(a), l.push(s[p]);
|
|
8762
8751
|
return l;
|
|
8763
8752
|
}
|
|
8764
|
-
var
|
|
8753
|
+
var qi = (a, s, l) => {
|
|
8765
8754
|
if (!(a && s == null)) return Array.isArray(s) || typeof s == "string" ? s[l < 0 ? s.length + l : l] : s.at(l);
|
|
8766
|
-
}, zt =
|
|
8755
|
+
}, zt = qi;
|
|
8767
8756
|
function _r(a, s) {
|
|
8768
8757
|
if (typeof a == "string") return s(a);
|
|
8769
8758
|
let l = /* @__PURE__ */ new Map();
|
|
@@ -8789,7 +8778,7 @@ Expected it to be ${p}.`;
|
|
|
8789
8778
|
case F:
|
|
8790
8779
|
case W:
|
|
8791
8780
|
case N:
|
|
8792
|
-
case
|
|
8781
|
+
case G:
|
|
8793
8782
|
return s({ ...y, contents: p(y.contents) });
|
|
8794
8783
|
case T:
|
|
8795
8784
|
case _:
|
|
@@ -8803,7 +8792,7 @@ Expected it to be ${p}.`;
|
|
|
8803
8792
|
}
|
|
8804
8793
|
}
|
|
8805
8794
|
}
|
|
8806
|
-
function
|
|
8795
|
+
function Hi(a) {
|
|
8807
8796
|
switch (Q(a)) {
|
|
8808
8797
|
case I:
|
|
8809
8798
|
if (a.parts.every((s) => s === "")) return "";
|
|
@@ -8815,7 +8804,7 @@ Expected it to be ${p}.`;
|
|
|
8815
8804
|
case A:
|
|
8816
8805
|
case F:
|
|
8817
8806
|
case W:
|
|
8818
|
-
case
|
|
8807
|
+
case G:
|
|
8819
8808
|
if (!a.contents) return "";
|
|
8820
8809
|
break;
|
|
8821
8810
|
case j:
|
|
@@ -8844,9 +8833,9 @@ Expected it to be ${p}.`;
|
|
|
8844
8833
|
return a;
|
|
8845
8834
|
}
|
|
8846
8835
|
function Ea(a) {
|
|
8847
|
-
return _r(a, (s) =>
|
|
8836
|
+
return _r(a, (s) => Hi(s));
|
|
8848
8837
|
}
|
|
8849
|
-
function ht(a, s =
|
|
8838
|
+
function ht(a, s = Gn) {
|
|
8850
8839
|
return _r(a, (l) => typeof l == "string" ? pn(s, l.split(`
|
|
8851
8840
|
`)) : l);
|
|
8852
8841
|
}
|
|
@@ -8861,7 +8850,7 @@ Expected it to be ${p}.`;
|
|
|
8861
8850
|
if (typeof a != "string") throw new TypeError("Expected a string");
|
|
8862
8851
|
return a.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
8863
8852
|
}
|
|
8864
|
-
var kt,
|
|
8853
|
+
var kt, Ui = class {
|
|
8865
8854
|
constructor(a) {
|
|
8866
8855
|
D(this, kt), b(this, kt, new Set(a));
|
|
8867
8856
|
}
|
|
@@ -8918,14 +8907,14 @@ Expected it to be ${p}.`;
|
|
|
8918
8907
|
}
|
|
8919
8908
|
};
|
|
8920
8909
|
kt = /* @__PURE__ */ new WeakMap();
|
|
8921
|
-
var
|
|
8922
|
-
`, "\f", "\r", " "],
|
|
8910
|
+
var Wi = Ui, zi = [" ", `
|
|
8911
|
+
`, "\f", "\r", " "], Vi = new Wi(zi), xt = Vi, Yi = class extends Error {
|
|
8923
8912
|
constructor(s, l, p = "type") {
|
|
8924
8913
|
super(`Unexpected ${l} node ${p}: ${JSON.stringify(s[p])}.`);
|
|
8925
8914
|
nr(this, "name", "UnexpectedNodeError");
|
|
8926
8915
|
this.node = s;
|
|
8927
8916
|
}
|
|
8928
|
-
}, Er =
|
|
8917
|
+
}, Er = Yi;
|
|
8929
8918
|
function Ta(a) {
|
|
8930
8919
|
return (a == null ? void 0 : a.type) === "front-matter";
|
|
8931
8920
|
}
|
|
@@ -8944,9 +8933,9 @@ Expected it to be ${p}.`;
|
|
|
8944
8933
|
return jt([a.startDelimiter, a.explicitLanguage, Ce, p, p ? Ce : "", a.endDelimiter]);
|
|
8945
8934
|
}
|
|
8946
8935
|
}
|
|
8947
|
-
var
|
|
8936
|
+
var Ki = Ba;
|
|
8948
8937
|
function Cn(a, s = !0) {
|
|
8949
|
-
return [
|
|
8938
|
+
return [_e([je, a]), s ? je : ""];
|
|
8950
8939
|
}
|
|
8951
8940
|
function Vt(a, s) {
|
|
8952
8941
|
let l = a.type === "NGRoot" ? a.node.type === "NGMicrosyntax" && a.node.body.length === 1 && a.node.body[0].type === "NGMicrosyntaxExpression" ? a.node.body[0].expression : a.node : a.type === "JsExpressionRoot" ? a.node : a;
|
|
@@ -8961,24 +8950,24 @@ Expected it to be ${p}.`;
|
|
|
8961
8950
|
let y = await s(a, l, s);
|
|
8962
8951
|
return f ? ce(y) : Cn(y);
|
|
8963
8952
|
}
|
|
8964
|
-
function
|
|
8953
|
+
function Ji(a, s, l, p) {
|
|
8965
8954
|
let { node: f } = l, y = p.originalText.slice(f.sourceSpan.start.offset, f.sourceSpan.end.offset);
|
|
8966
8955
|
return /^\s*$/u.test(y) ? "" : wt(y, a, { parser: "__ng_directive", __isInHtmlAttribute: !1 }, Vt);
|
|
8967
8956
|
}
|
|
8968
|
-
var Na =
|
|
8957
|
+
var Na = Ji, ja = (a) => String(a).split(/[/\\]/u).pop();
|
|
8969
8958
|
function Pa(a, s) {
|
|
8970
8959
|
if (!s) return;
|
|
8971
8960
|
let l = ja(s).toLowerCase();
|
|
8972
8961
|
return a.find(({ filenames: p }) => p == null ? void 0 : p.some((f) => f.toLowerCase() === l)) ?? a.find(({ extensions: p }) => p == null ? void 0 : p.some((f) => l.endsWith(f)));
|
|
8973
8962
|
}
|
|
8974
|
-
function
|
|
8963
|
+
function Xi(a, s) {
|
|
8975
8964
|
if (s) return a.find(({ name: l }) => l.toLowerCase() === s) ?? a.find(({ aliases: l }) => l == null ? void 0 : l.includes(s)) ?? a.find(({ extensions: l }) => l == null ? void 0 : l.includes(`.${s}`));
|
|
8976
8965
|
}
|
|
8977
|
-
function
|
|
8978
|
-
let l = a.plugins.flatMap((f) => f.languages ?? []), p =
|
|
8966
|
+
function Qi(a, s) {
|
|
8967
|
+
let l = a.plugins.flatMap((f) => f.languages ?? []), p = Xi(l, s.language) ?? Pa(l, s.physicalFile) ?? Pa(l, s.file) ?? (s.physicalFile, void 0);
|
|
8979
8968
|
return p == null ? void 0 : p.parsers[0];
|
|
8980
8969
|
}
|
|
8981
|
-
var Kn =
|
|
8970
|
+
var Kn = Qi, w = "inline", M = { area: "none", base: "none", basefont: "none", datalist: "none", head: "none", link: "none", meta: "none", noembed: "none", noframes: "none", param: "block", rp: "none", script: "block", style: "none", template: "inline", title: "none", html: "block", body: "block", address: "block", blockquote: "block", center: "block", dialog: "block", div: "block", figure: "block", figcaption: "block", footer: "block", form: "block", header: "block", hr: "block", legend: "block", listing: "block", main: "block", p: "block", plaintext: "block", pre: "block", search: "block", xmp: "block", slot: "contents", ruby: "ruby", rt: "ruby-text", article: "block", aside: "block", h1: "block", h2: "block", h3: "block", h4: "block", h5: "block", h6: "block", hgroup: "block", nav: "block", section: "block", dir: "block", dd: "block", dl: "block", dt: "block", menu: "block", ol: "block", ul: "block", li: "list-item", table: "table", caption: "table-caption", colgroup: "table-column-group", col: "table-column", thead: "table-header-group", tbody: "table-row-group", tfoot: "table-footer-group", tr: "table-row", td: "table-cell", th: "table-cell", input: "inline-block", button: "inline-block", fieldset: "block", marquee: "inline-block", source: "block", track: "block", details: "block", summary: "block", meter: "inline-block", progress: "inline-block", object: "inline-block", video: "inline-block", audio: "inline-block", select: "inline-block", option: "block", optgroup: "block" }, H = "normal", Z = { listing: "pre", plaintext: "pre", pre: "pre", xmp: "pre", nobr: "nowrap", table: "initial", textarea: "pre-wrap" };
|
|
8982
8971
|
function ve(a) {
|
|
8983
8972
|
return a.type === "element" && !a.hasExplicitNamespace && !["html", "svg"].includes(a.namespace);
|
|
8984
8973
|
}
|
|
@@ -8989,9 +8978,9 @@ Expected it to be ${p}.`;
|
|
|
8989
8978
|
return p && (s = s.slice(0, -p.length)), { leadingWhitespace: l, trailingWhitespace: p, text: s };
|
|
8990
8979
|
};
|
|
8991
8980
|
function Te(a, s) {
|
|
8992
|
-
return !!(a.type === "ieConditionalComment" && a.lastChild && !a.lastChild.isSelfClosing && !a.lastChild.endSourceSpan || a.type === "ieConditionalComment" && !a.complete || Jn(a) && a.children.some((l) => l.type !== "text" && l.type !== "interpolation") ||
|
|
8981
|
+
return !!(a.type === "ieConditionalComment" && a.lastChild && !a.lastChild.isSelfClosing && !a.lastChild.endSourceSpan || a.type === "ieConditionalComment" && !a.complete || Jn(a) && a.children.some((l) => l.type !== "text" && l.type !== "interpolation") || ns(a, s) && !Qe(a) && a.type !== "interpolation");
|
|
8993
8982
|
}
|
|
8994
|
-
function
|
|
8983
|
+
function Fe(a) {
|
|
8995
8984
|
return a.type === "attribute" || !a.parent || !a.prev ? !1 : ft(a.prev);
|
|
8996
8985
|
}
|
|
8997
8986
|
function ft(a) {
|
|
@@ -9012,7 +9001,7 @@ Expected it to be ${p}.`;
|
|
|
9012
9001
|
function La(a) {
|
|
9013
9002
|
return ll(a).startsWith("pre");
|
|
9014
9003
|
}
|
|
9015
|
-
function
|
|
9004
|
+
function Zi(a, s) {
|
|
9016
9005
|
var l, p;
|
|
9017
9006
|
let f = y();
|
|
9018
9007
|
if (f && !a.prev && (p = (l = a.parent) == null ? void 0 : l.tagDefinition) != null && p.ignoreFirstLf) return a.type === "interpolation";
|
|
@@ -9036,7 +9025,7 @@ Expected it to be ${p}.`;
|
|
|
9036
9025
|
function tl(a) {
|
|
9037
9026
|
return a.type === "element" && a.children.length > 0 && (["html", "head", "ul", "ol", "select"].includes(a.name) || a.cssDisplay.startsWith("table") && a.cssDisplay !== "table-cell");
|
|
9038
9027
|
}
|
|
9039
|
-
function
|
|
9028
|
+
function es(a) {
|
|
9040
9029
|
return il(a) || a.prev && zd(a.prev) || nl(a);
|
|
9041
9030
|
}
|
|
9042
9031
|
function zd(a) {
|
|
@@ -9062,8 +9051,8 @@ Expected it to be ${p}.`;
|
|
|
9062
9051
|
}
|
|
9063
9052
|
return !1;
|
|
9064
9053
|
}
|
|
9065
|
-
function
|
|
9066
|
-
return a.lastChild ?
|
|
9054
|
+
function ts(a) {
|
|
9055
|
+
return a.lastChild ? ts(a.lastChild) : a;
|
|
9067
9056
|
}
|
|
9068
9057
|
function Vd(a) {
|
|
9069
9058
|
var s;
|
|
@@ -9088,14 +9077,14 @@ Expected it to be ${p}.`;
|
|
|
9088
9077
|
if (a.endsWith("json") || a.endsWith("importmap") || a === "speculationrules") return "json";
|
|
9089
9078
|
}
|
|
9090
9079
|
}
|
|
9091
|
-
function
|
|
9080
|
+
function Yd(a, s) {
|
|
9092
9081
|
let { name: l, attrMap: p } = a;
|
|
9093
9082
|
if (l !== "script" || Object.prototype.hasOwnProperty.call(p, "src")) return;
|
|
9094
9083
|
let { type: f, lang: y } = a.attrMap;
|
|
9095
9084
|
return !y && !f ? "babel" : Kn(s, { language: y }) ?? sl(f);
|
|
9096
9085
|
}
|
|
9097
|
-
function
|
|
9098
|
-
if (!
|
|
9086
|
+
function Gd(a, s) {
|
|
9087
|
+
if (!ns(a, s)) return;
|
|
9099
9088
|
let { attrMap: l } = a;
|
|
9100
9089
|
if (Object.prototype.hasOwnProperty.call(l, "src")) return;
|
|
9101
9090
|
let { type: p, lang: f } = l;
|
|
@@ -9107,7 +9096,7 @@ Expected it to be ${p}.`;
|
|
|
9107
9096
|
return l ? Kn(s, { language: l }) : "css";
|
|
9108
9097
|
}
|
|
9109
9098
|
function ol(a, s) {
|
|
9110
|
-
return
|
|
9099
|
+
return Yd(a, s) ?? Kd(a, s) ?? Gd(a, s);
|
|
9111
9100
|
}
|
|
9112
9101
|
function Br(a) {
|
|
9113
9102
|
return a === "block" || a === "list-item" || a.startsWith("table");
|
|
@@ -9189,7 +9178,7 @@ Expected it to be ${p}.`;
|
|
|
9189
9178
|
function Xn(a, s) {
|
|
9190
9179
|
return s.parser === "vue" && a.type === "element" && a.parent.type === "root" && a.fullName.toLowerCase() !== "html";
|
|
9191
9180
|
}
|
|
9192
|
-
function
|
|
9181
|
+
function ns(a, s) {
|
|
9193
9182
|
return Xn(a, s) && (Ia(a, s) || a.attrMap.lang && a.attrMap.lang !== "html");
|
|
9194
9183
|
}
|
|
9195
9184
|
function ih(a) {
|
|
@@ -9213,16 +9202,16 @@ Expected it to be ${p}.`;
|
|
|
9213
9202
|
let l = [];
|
|
9214
9203
|
for (let [p, f] of a.split(hl).entries()) if (p % 2 === 0) l.push(ht(f));
|
|
9215
9204
|
else try {
|
|
9216
|
-
l.push(ce(["{{",
|
|
9205
|
+
l.push(ce(["{{", _e([ke, await wt(f, s, { parser: "__ng_interpolation", __isInHtmlInterpolation: !0 })]), ke, "}}"]));
|
|
9217
9206
|
} catch {
|
|
9218
9207
|
l.push("{{", ht(f), "}}");
|
|
9219
9208
|
}
|
|
9220
9209
|
return l;
|
|
9221
9210
|
}
|
|
9222
|
-
function
|
|
9211
|
+
function rs({ parser: a }) {
|
|
9223
9212
|
return (s, l, p) => wt(dn(p.node), s, { parser: a }, Vt);
|
|
9224
9213
|
}
|
|
9225
|
-
var lh =
|
|
9214
|
+
var lh = rs({ parser: "__ng_action" }), uh = rs({ parser: "__ng_binding" }), ch = rs({ parser: "__ng_directive" });
|
|
9226
9215
|
function ph(a, s) {
|
|
9227
9216
|
if (s.parser !== "angular") return;
|
|
9228
9217
|
let { node: l } = a, p = l.fullName;
|
|
@@ -9246,20 +9235,20 @@ Expected it to be ${p}.`;
|
|
|
9246
9235
|
var mh = /^[ \t\n\r\u000c]+/, gh = /^[, \t\n\r\u000c]+/, vh = /^[^ \t\n\r\u000c]+/, Dh = /[,]+$/, ml = /^\d+$/, yh = /^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;
|
|
9247
9236
|
function bh(a) {
|
|
9248
9237
|
let s = a.length, l, p, f, y, S, B = 0, R;
|
|
9249
|
-
function
|
|
9250
|
-
let
|
|
9251
|
-
if (Ue) return [
|
|
9238
|
+
function Y(le) {
|
|
9239
|
+
let Se, Ue = le.exec(a.substring(B));
|
|
9240
|
+
if (Ue) return [Se] = Ue, B += Se.length, Se;
|
|
9252
9241
|
}
|
|
9253
9242
|
let U = [];
|
|
9254
9243
|
for (; ; ) {
|
|
9255
|
-
if (
|
|
9244
|
+
if (Y(gh), B >= s) {
|
|
9256
9245
|
if (U.length === 0) throw new Error("Must contain one or more image candidate strings.");
|
|
9257
9246
|
return U;
|
|
9258
9247
|
}
|
|
9259
|
-
R = B, l =
|
|
9248
|
+
R = B, l = Y(vh), p = [], l.slice(-1) === "," ? (l = l.replace(Dh, ""), fe()) : De();
|
|
9260
9249
|
}
|
|
9261
9250
|
function De() {
|
|
9262
|
-
for (
|
|
9251
|
+
for (Y(mh), f = "", y = "in descriptor"; ; ) {
|
|
9263
9252
|
if (S = a.charAt(B), y === "in descriptor") if (fl(S)) f && (p.push(f), f = "", y = "after descriptor");
|
|
9264
9253
|
else if (S === ",") {
|
|
9265
9254
|
B += 1, f && p.push(f), fe();
|
|
@@ -9282,9 +9271,9 @@ Expected it to be ${p}.`;
|
|
|
9282
9271
|
}
|
|
9283
9272
|
}
|
|
9284
9273
|
function fe() {
|
|
9285
|
-
let le = !1,
|
|
9286
|
-
for (st = 0; st < p.length; st++) ue = p[st], We = ue[ue.length - 1], Me = ue.substring(0, ue.length - 1), lt = parseInt(Me, 10), tr = parseFloat(Me), ml.test(Me) && We === "w" ? ((
|
|
9287
|
-
if (!le) z.source = { value: l, startOffset: R },
|
|
9274
|
+
let le = !1, Se, Ue, Ze, st, z = {}, ue, We, Me, lt, tr;
|
|
9275
|
+
for (st = 0; st < p.length; st++) ue = p[st], We = ue[ue.length - 1], Me = ue.substring(0, ue.length - 1), lt = parseInt(Me, 10), tr = parseFloat(Me), ml.test(Me) && We === "w" ? ((Se || Ue) && (le = !0), lt === 0 ? le = !0 : Se = lt) : yh.test(Me) && We === "x" ? ((Se || Ue || Ze) && (le = !0), tr < 0 ? le = !0 : Ue = tr) : ml.test(Me) && We === "h" ? ((Ze || Ue) && (le = !0), lt === 0 ? le = !0 : Ze = lt) : le = !0;
|
|
9276
|
+
if (!le) z.source = { value: l, startOffset: R }, Se && (z.width = { value: Se }), Ue && (z.density = { value: Ue }), Ze && (z.height = { value: Ze }), U.push(z);
|
|
9288
9277
|
else throw new Error(`Invalid srcset descriptor found in "${a}" at "${ue}".`);
|
|
9289
9278
|
}
|
|
9290
9279
|
}
|
|
@@ -9299,11 +9288,11 @@ Expected it to be ${p}.`;
|
|
|
9299
9288
|
let [p] = l, f = gl[p], y = s.map((U) => U.source.value), S = Math.max(...y.map((U) => U.length)), B = s.map((U) => U[p] ? String(U[p].value) : ""), R = B.map((U) => {
|
|
9300
9289
|
let De = U.indexOf(".");
|
|
9301
9290
|
return De === -1 ? U.length : De;
|
|
9302
|
-
}),
|
|
9291
|
+
}), Y = Math.max(...R);
|
|
9303
9292
|
return Cn(pn([",", ke], y.map((U, De) => {
|
|
9304
9293
|
let fe = [U], le = B[De];
|
|
9305
9294
|
if (le) {
|
|
9306
|
-
let
|
|
9295
|
+
let Se = S - U.length + 1, Ue = Y - R[De], Ze = " ".repeat(Se + Ue);
|
|
9307
9296
|
fe.push(yt(Ze, " "), le + f);
|
|
9308
9297
|
}
|
|
9309
9298
|
return fe;
|
|
@@ -9314,12 +9303,12 @@ Expected it to be ${p}.`;
|
|
|
9314
9303
|
let { node: l } = a, p = dn(a.node).trim();
|
|
9315
9304
|
if (l.fullName === "style" && !s.parentParser && !p.includes("{{")) return async (f) => Cn(await f(p, { parser: "css", __isHTMLStyleAttribute: !0 }));
|
|
9316
9305
|
}
|
|
9317
|
-
var
|
|
9306
|
+
var as = /* @__PURE__ */ new WeakMap();
|
|
9318
9307
|
function Eh(a, s) {
|
|
9319
9308
|
let { root: l } = a;
|
|
9320
|
-
return
|
|
9309
|
+
return as.has(l) || as.set(l, l.children.some((p) => dl(p, s) && ["ts", "typescript"].includes(p.attrMap.lang))), as.get(l);
|
|
9321
9310
|
}
|
|
9322
|
-
var
|
|
9311
|
+
var is = Eh;
|
|
9323
9312
|
function Fh(a, s, l) {
|
|
9324
9313
|
let { node: p } = l, f = dn(p);
|
|
9325
9314
|
return wt(`type T<${f}> = any`, a, { parser: "babel-ts", __isEmbeddedTypescriptGenericParameters: !0 }, Vt);
|
|
@@ -9332,7 +9321,7 @@ Expected it to be ${p}.`;
|
|
|
9332
9321
|
return s.test(p) || l.test(p);
|
|
9333
9322
|
}
|
|
9334
9323
|
async function Th(a, s, l, p) {
|
|
9335
|
-
let f = dn(l.node), { left: y, operator: S, right: B } = Bh(f), R =
|
|
9324
|
+
let f = dn(l.node), { left: y, operator: S, right: B } = Bh(f), R = is(l, p);
|
|
9336
9325
|
return [ce(await wt(`function _(${y}) {}`, a, { parser: R ? "babel-ts" : "babel", __isVueForBindingLeft: !0 })), " ", S, " ", await wt(B, a, { parser: R ? "__ts_expression" : "__js_expression" })];
|
|
9337
9326
|
}
|
|
9338
9327
|
function Bh(a) {
|
|
@@ -9343,14 +9332,14 @@ Expected it to be ${p}.`;
|
|
|
9343
9332
|
let S = C(!1, f[1].trim(), p, ""), B = S.match(l);
|
|
9344
9333
|
B ? (y.alias = S.replace(l, ""), y.iterator1 = B[1].trim(), B[2] && (y.iterator2 = B[2].trim())) : y.alias = S;
|
|
9345
9334
|
let R = [y.alias, y.iterator1, y.iterator2];
|
|
9346
|
-
if (!R.some((
|
|
9335
|
+
if (!R.some((Y, U) => !Y && (U === 0 || R.slice(U + 1).some(Boolean)))) return { left: R.filter(Boolean).join(","), operator: f[2], right: y.for };
|
|
9347
9336
|
}
|
|
9348
9337
|
function Nh(a, s) {
|
|
9349
9338
|
if (s.parser !== "vue") return;
|
|
9350
9339
|
let { node: l } = a, p = l.fullName;
|
|
9351
9340
|
if (p === "v-for") return Th;
|
|
9352
9341
|
if (p === "generic" && dl(l.parent, s)) return Fh;
|
|
9353
|
-
let f = dn(l), y =
|
|
9342
|
+
let f = dn(l), y = is(a, s);
|
|
9354
9343
|
if (ih(l) || sh(l, s)) return (S) => Ah(f, S, { parseWithTs: y });
|
|
9355
9344
|
if (p.startsWith("@") || p.startsWith("v-on:")) return (S) => jh(f, S, { parseWithTs: y });
|
|
9356
9345
|
if (p.startsWith(":") || p.startsWith("v-bind:")) return (S) => Ph(f, S, { parseWithTs: y });
|
|
@@ -9387,18 +9376,18 @@ Expected it to be ${p}.`;
|
|
|
9387
9376
|
function Rh(a) {
|
|
9388
9377
|
return Array.isArray(a) && a.length > 0;
|
|
9389
9378
|
}
|
|
9390
|
-
var
|
|
9379
|
+
var ss = Rh;
|
|
9391
9380
|
function Ma(a) {
|
|
9392
9381
|
return a.sourceSpan.start.offset;
|
|
9393
9382
|
}
|
|
9394
9383
|
function Ra(a) {
|
|
9395
9384
|
return a.sourceSpan.end.offset;
|
|
9396
9385
|
}
|
|
9397
|
-
function
|
|
9386
|
+
function os(a, s) {
|
|
9398
9387
|
return [a.isSelfClosing ? "" : qh(a, s), Nr(a, s)];
|
|
9399
9388
|
}
|
|
9400
9389
|
function qh(a, s) {
|
|
9401
|
-
return a.lastChild && Lr(a.lastChild) ? "" : [Hh(a, s),
|
|
9390
|
+
return a.lastChild && Lr(a.lastChild) ? "" : [Hh(a, s), ls(a, s)];
|
|
9402
9391
|
}
|
|
9403
9392
|
function Nr(a, s) {
|
|
9404
9393
|
return (a.next ? _n(a.next) : Pr(a.parent)) ? "" : [jr(a, s), xn(a, s)];
|
|
@@ -9407,9 +9396,9 @@ Expected it to be ${p}.`;
|
|
|
9407
9396
|
return Pr(a) ? jr(a.lastChild, s) : "";
|
|
9408
9397
|
}
|
|
9409
9398
|
function xn(a, s) {
|
|
9410
|
-
return Lr(a) ?
|
|
9399
|
+
return Lr(a) ? ls(a.parent, s) : qa(a) ? cs(a.next) : "";
|
|
9411
9400
|
}
|
|
9412
|
-
function
|
|
9401
|
+
function ls(a, s) {
|
|
9413
9402
|
if (yl(!a.isSelfClosing), bl(a, s)) return "";
|
|
9414
9403
|
switch (a.type) {
|
|
9415
9404
|
case "ieConditionalComment":
|
|
@@ -9439,17 +9428,17 @@ Expected it to be ${p}.`;
|
|
|
9439
9428
|
}
|
|
9440
9429
|
}
|
|
9441
9430
|
function bl(a, s) {
|
|
9442
|
-
return !a.isSelfClosing && !a.endSourceSpan && (
|
|
9431
|
+
return !a.isSelfClosing && !a.endSourceSpan && (Fe(a) || Te(a.parent, s));
|
|
9443
9432
|
}
|
|
9444
9433
|
function _n(a) {
|
|
9445
9434
|
return a.prev && a.prev.type !== "docType" && a.type !== "angularControlFlowBlock" && !He(a.prev) && a.isLeadingSpaceSensitive && !a.hasLeadingSpaces;
|
|
9446
9435
|
}
|
|
9447
9436
|
function Pr(a) {
|
|
9448
9437
|
var s;
|
|
9449
|
-
return ((s = a.lastChild) == null ? void 0 : s.isTrailingSpaceSensitive) && !a.lastChild.hasTrailingSpaces && !He(
|
|
9438
|
+
return ((s = a.lastChild) == null ? void 0 : s.isTrailingSpaceSensitive) && !a.lastChild.hasTrailingSpaces && !He(ts(a.lastChild)) && !Jn(a);
|
|
9450
9439
|
}
|
|
9451
9440
|
function Lr(a) {
|
|
9452
|
-
return !a.next && !a.hasTrailingSpaces && a.isTrailingSpaceSensitive && He(
|
|
9441
|
+
return !a.next && !a.hasTrailingSpaces && a.isTrailingSpaceSensitive && He(ts(a));
|
|
9453
9442
|
}
|
|
9454
9443
|
function qa(a) {
|
|
9455
9444
|
return a.next && !He(a.next) && He(a) && a.isTrailingSpaceSensitive && !a.hasTrailingSpaces;
|
|
@@ -9464,24 +9453,24 @@ Expected it to be ${p}.`;
|
|
|
9464
9453
|
function Wh(a, s, l) {
|
|
9465
9454
|
var p;
|
|
9466
9455
|
let { node: f } = a;
|
|
9467
|
-
if (!
|
|
9468
|
-
let y = ((p = f.prev) == null ? void 0 : p.type) === "comment" && Uh(f.prev.value), S = typeof y == "boolean" ? () => y : Array.isArray(y) ? (De) => y.includes(De.rawName) : () => !1, B = a.map(({ node: De }) => S(De) ? ht(s.originalText.slice(Ma(De), Ra(De))) : l(), "attrs"), R = f.type === "element" && f.fullName === "script" && f.attrs.length === 1 && f.attrs[0].fullName === "src" && f.children.length === 0,
|
|
9456
|
+
if (!ss(f.attrs)) return f.isSelfClosing ? " " : "";
|
|
9457
|
+
let y = ((p = f.prev) == null ? void 0 : p.type) === "comment" && Uh(f.prev.value), S = typeof y == "boolean" ? () => y : Array.isArray(y) ? (De) => y.includes(De.rawName) : () => !1, B = a.map(({ node: De }) => S(De) ? ht(s.originalText.slice(Ma(De), Ra(De))) : l(), "attrs"), R = f.type === "element" && f.fullName === "script" && f.attrs.length === 1 && f.attrs[0].fullName === "src" && f.children.length === 0, Y = s.singleAttributePerLine && f.attrs.length > 1 && !Xn(f, s) ? Ce : ke, U = [_e([R ? " " : ke, pn(Y, B)])];
|
|
9469
9458
|
return f.firstChild && Ha(f.firstChild) || f.isSelfClosing && Pr(f.parent) || R ? U.push(f.isSelfClosing ? " " : "") : U.push(s.bracketSameLine ? f.isSelfClosing ? " " : "" : f.isSelfClosing ? ke : je), U;
|
|
9470
9459
|
}
|
|
9471
9460
|
function zh(a) {
|
|
9472
|
-
return a.firstChild && Ha(a.firstChild) ? "" :
|
|
9461
|
+
return a.firstChild && Ha(a.firstChild) ? "" : ps(a);
|
|
9473
9462
|
}
|
|
9474
|
-
function
|
|
9463
|
+
function us(a, s, l) {
|
|
9475
9464
|
let { node: p } = a;
|
|
9476
9465
|
return [Or(p, s), Wh(a, s, l), p.isSelfClosing ? "" : zh(p)];
|
|
9477
9466
|
}
|
|
9478
9467
|
function Or(a, s) {
|
|
9479
|
-
return a.prev && qa(a.prev) ? "" : [Sn(a, s),
|
|
9468
|
+
return a.prev && qa(a.prev) ? "" : [Sn(a, s), cs(a)];
|
|
9480
9469
|
}
|
|
9481
9470
|
function Sn(a, s) {
|
|
9482
|
-
return Ha(a) ?
|
|
9471
|
+
return Ha(a) ? ps(a.parent) : _n(a) ? jr(a.prev, s) : "";
|
|
9483
9472
|
}
|
|
9484
|
-
function
|
|
9473
|
+
function cs(a) {
|
|
9485
9474
|
switch (a.type) {
|
|
9486
9475
|
case "ieConditionalComment":
|
|
9487
9476
|
case "ieConditionalStartComment":
|
|
@@ -9500,7 +9489,7 @@ Expected it to be ${p}.`;
|
|
|
9500
9489
|
return `<${a.rawName}`;
|
|
9501
9490
|
}
|
|
9502
9491
|
}
|
|
9503
|
-
function
|
|
9492
|
+
function ps(a) {
|
|
9504
9493
|
switch (yl(!a.isSelfClosing), a.type) {
|
|
9505
9494
|
case "ieConditionalComment":
|
|
9506
9495
|
return "]>";
|
|
@@ -9513,21 +9502,21 @@ Expected it to be ${p}.`;
|
|
|
9513
9502
|
function Vh(a, s) {
|
|
9514
9503
|
if (!a.endSourceSpan) return "";
|
|
9515
9504
|
let l = a.startSourceSpan.end.offset;
|
|
9516
|
-
a.firstChild && Ha(a.firstChild) && (l -=
|
|
9505
|
+
a.firstChild && Ha(a.firstChild) && (l -= ps(a).length);
|
|
9517
9506
|
let p = a.endSourceSpan.start.offset;
|
|
9518
|
-
return a.lastChild && Lr(a.lastChild) ? p +=
|
|
9507
|
+
return a.lastChild && Lr(a.lastChild) ? p += ls(a, s).length : Pr(a) && (p -= jr(a.lastChild, s).length), s.originalText.slice(l, p);
|
|
9519
9508
|
}
|
|
9520
|
-
var kl = Vh,
|
|
9521
|
-
function
|
|
9509
|
+
var kl = Vh, Yh = /* @__PURE__ */ new Set(["if", "else if", "for", "switch", "case"]);
|
|
9510
|
+
function Gh(a, s) {
|
|
9522
9511
|
let { node: l } = a;
|
|
9523
9512
|
switch (l.type) {
|
|
9524
9513
|
case "element":
|
|
9525
9514
|
if (Qe(l) || l.type === "interpolation") return;
|
|
9526
|
-
if (!l.isSelfClosing &&
|
|
9515
|
+
if (!l.isSelfClosing && ns(l, s)) {
|
|
9527
9516
|
let p = ol(l, s);
|
|
9528
9517
|
return p ? async (f, y) => {
|
|
9529
9518
|
let S = kl(l, s), B = /^\s*$/u.test(S), R = "";
|
|
9530
|
-
return B || (R = await f(ae(S), { parser: p, __embeddedInHtml: !0 }), B = R === ""), [Sn(l, s), ce(
|
|
9519
|
+
return B || (R = await f(ae(S), { parser: p, __embeddedInHtml: !0 }), B = R === ""), [Sn(l, s), ce(us(a, s, y)), B ? "" : Ce, R, B ? "" : Ce, os(l, s), xn(l, s)];
|
|
9531
9520
|
} : void 0;
|
|
9532
9521
|
}
|
|
9533
9522
|
break;
|
|
@@ -9544,20 +9533,20 @@ Expected it to be ${p}.`;
|
|
|
9544
9533
|
};
|
|
9545
9534
|
} else if (l.parent.type === "interpolation") return async (p) => {
|
|
9546
9535
|
let f = { __isInHtmlInterpolation: !0, __embeddedInHtml: !0 };
|
|
9547
|
-
return s.parser === "angular" ? f.parser = "__ng_interpolation" : s.parser === "vue" ? f.parser =
|
|
9536
|
+
return s.parser === "angular" ? f.parser = "__ng_interpolation" : s.parser === "vue" ? f.parser = is(a, s) ? "__vue_ts_expression" : "__vue_expression" : f.parser = "__js_expression", [_e([ke, await p(l.value, f)]), l.parent.next && _n(l.parent.next) ? " " : ke];
|
|
9548
9537
|
};
|
|
9549
9538
|
break;
|
|
9550
9539
|
case "attribute":
|
|
9551
9540
|
return Mh(a, s);
|
|
9552
9541
|
case "front-matter":
|
|
9553
|
-
return (p) =>
|
|
9542
|
+
return (p) => Ki(l, p);
|
|
9554
9543
|
case "angularControlFlowBlockParameters":
|
|
9555
|
-
return
|
|
9544
|
+
return Yh.has(a.parent.name) ? Na : void 0;
|
|
9556
9545
|
case "angularLetDeclarationInitializer":
|
|
9557
9546
|
return (p) => wt(l.value, p, { parser: "__ng_binding", __isInHtmlAttribute: !1 });
|
|
9558
9547
|
}
|
|
9559
9548
|
}
|
|
9560
|
-
var Kh =
|
|
9549
|
+
var Kh = Gh, Ir = null;
|
|
9561
9550
|
function Mr(a) {
|
|
9562
9551
|
if (Ir !== null && typeof Ir.property) {
|
|
9563
9552
|
let s = Ir;
|
|
@@ -9591,20 +9580,20 @@ Expected it to be ${p}.`;
|
|
|
9591
9580
|
var of = /* @__PURE__ */ new Map([["if", /* @__PURE__ */ new Set(["else if", "else"])], ["else if", /* @__PURE__ */ new Set(["else if", "else"])], ["for", /* @__PURE__ */ new Set(["empty"])], ["defer", /* @__PURE__ */ new Set(["placeholder", "error", "loading"])], ["placeholder", /* @__PURE__ */ new Set(["placeholder", "error", "loading"])], ["error", /* @__PURE__ */ new Set(["placeholder", "error", "loading"])], ["loading", /* @__PURE__ */ new Set(["placeholder", "error", "loading"])]]);
|
|
9592
9581
|
function wl(a) {
|
|
9593
9582
|
let s = Ra(a);
|
|
9594
|
-
return a.type === "element" && !a.endSourceSpan &&
|
|
9583
|
+
return a.type === "element" && !a.endSourceSpan && ss(a.children) ? Math.max(s, wl(zt(!1, a.children, -1))) : s;
|
|
9595
9584
|
}
|
|
9596
9585
|
function Rr(a, s, l) {
|
|
9597
9586
|
let p = a.node;
|
|
9598
|
-
if (
|
|
9587
|
+
if (Fe(p)) {
|
|
9599
9588
|
let f = wl(p);
|
|
9600
|
-
return [Sn(p, s), ht(xt.trimEnd(s.originalText.slice(Ma(p) + (p.prev && qa(p.prev) ?
|
|
9589
|
+
return [Sn(p, s), ht(xt.trimEnd(s.originalText.slice(Ma(p) + (p.prev && qa(p.prev) ? cs(p).length : 0), f - (p.next && _n(p.next) ? jr(p, s).length : 0)))), xn(p, s)];
|
|
9601
9590
|
}
|
|
9602
9591
|
return l();
|
|
9603
9592
|
}
|
|
9604
9593
|
function Ua(a, s) {
|
|
9605
|
-
return He(a) && He(s) ? a.isTrailingSpaceSensitive ? a.hasTrailingSpaces ?
|
|
9594
|
+
return He(a) && He(s) ? a.isTrailingSpaceSensitive ? a.hasTrailingSpaces ? es(s) ? Ce : ke : "" : es(s) ? Ce : je : qa(a) && (Fe(s) || s.firstChild || s.isSelfClosing || s.type === "element" && s.attrs.length > 0) || a.type === "element" && a.isSelfClosing && _n(s) ? "" : !s.isLeadingSpaceSensitive || es(s) || _n(s) && a.lastChild && Lr(a.lastChild) && a.lastChild.lastChild && Lr(a.lastChild.lastChild) ? Ce : s.hasLeadingSpaces ? ke : je;
|
|
9606
9595
|
}
|
|
9607
|
-
function
|
|
9596
|
+
function ds(a, s, l) {
|
|
9608
9597
|
let { node: p } = a;
|
|
9609
9598
|
if (tl(p)) return [bt, ...a.map((y) => {
|
|
9610
9599
|
let S = y.node, B = S.prev ? Ua(S.prev, S) : "";
|
|
@@ -9615,20 +9604,20 @@ Expected it to be ${p}.`;
|
|
|
9615
9604
|
let B = y.node;
|
|
9616
9605
|
if (He(B)) {
|
|
9617
9606
|
if (B.prev && He(B.prev)) {
|
|
9618
|
-
let
|
|
9619
|
-
if (
|
|
9607
|
+
let Se = Ua(B.prev, B);
|
|
9608
|
+
if (Se) return Oa(B.prev) ? [Ce, Ce, Rr(y, s, l)] : [Se, Rr(y, s, l)];
|
|
9620
9609
|
}
|
|
9621
9610
|
return Rr(y, s, l);
|
|
9622
9611
|
}
|
|
9623
|
-
let R = [],
|
|
9624
|
-
return fe && (Oa(B.prev) ? R.push(Ce, Ce) : fe === Ce ? R.push(Ce) : He(B.prev) ?
|
|
9612
|
+
let R = [], Y = [], U = [], De = [], fe = B.prev ? Ua(B.prev, B) : "", le = B.next ? Ua(B, B.next) : "";
|
|
9613
|
+
return fe && (Oa(B.prev) ? R.push(Ce, Ce) : fe === Ce ? R.push(Ce) : He(B.prev) ? Y.push(fe) : Y.push(yt("", je, { groupId: f[S - 1] }))), le && (Oa(B) ? He(B.next) && De.push(Ce, Ce) : le === Ce ? He(B.next) && De.push(Ce) : U.push(le)), [...R, ce([...Y, ce([Rr(y, s, l), ...U], { id: f[S] })]), ...De];
|
|
9625
9614
|
}, "children");
|
|
9626
9615
|
}
|
|
9627
9616
|
function lf(a, s, l) {
|
|
9628
9617
|
let { node: p } = a, f = [];
|
|
9629
9618
|
uf(a) && f.push("} "), f.push("@", p.name), p.parameters && f.push(" (", ce(l("parameters")), ")"), f.push(" {");
|
|
9630
9619
|
let y = Cl(p);
|
|
9631
|
-
return p.children.length > 0 ? (p.firstChild.hasLeadingSpaces = !0, p.lastChild.hasTrailingSpaces = !0, f.push(
|
|
9620
|
+
return p.children.length > 0 ? (p.firstChild.hasLeadingSpaces = !0, p.lastChild.hasTrailingSpaces = !0, f.push(_e([Ce, ds(a, s, l)])), y && f.push(Ce, "}")) : y && f.push("}"), ce(f, { shouldBreak: !0 });
|
|
9632
9621
|
}
|
|
9633
9622
|
function Cl(a) {
|
|
9634
9623
|
var s, l;
|
|
@@ -9636,51 +9625,51 @@ Expected it to be ${p}.`;
|
|
|
9636
9625
|
}
|
|
9637
9626
|
function uf(a) {
|
|
9638
9627
|
let { previous: s } = a;
|
|
9639
|
-
return (s == null ? void 0 : s.type) === "angularControlFlowBlock" && !
|
|
9628
|
+
return (s == null ? void 0 : s.type) === "angularControlFlowBlock" && !Fe(s) && !Cl(s);
|
|
9640
9629
|
}
|
|
9641
9630
|
function cf(a, s, l) {
|
|
9642
|
-
return [
|
|
9631
|
+
return [_e([je, pn([";", ke], a.map(l, "children"))]), je];
|
|
9643
9632
|
}
|
|
9644
9633
|
function pf(a, s, l) {
|
|
9645
9634
|
let { node: p } = a;
|
|
9646
|
-
return [Or(p, s), ce([p.switchValue.trim(), ", ", p.clause, p.cases.length > 0 ? [",",
|
|
9635
|
+
return [Or(p, s), ce([p.switchValue.trim(), ", ", p.clause, p.cases.length > 0 ? [",", _e([ke, pn(ke, a.map(l, "cases"))])] : "", je]), Nr(p, s)];
|
|
9647
9636
|
}
|
|
9648
9637
|
function df(a, s, l) {
|
|
9649
9638
|
let { node: p } = a;
|
|
9650
|
-
return [p.value, " {", ce([
|
|
9639
|
+
return [p.value, " {", ce([_e([je, a.map(({ node: f }) => f.type === "text" && !xt.trim(f.value) ? "" : l(), "expression")]), je]), "}"];
|
|
9651
9640
|
}
|
|
9652
9641
|
function hf(a, s, l) {
|
|
9653
9642
|
let { node: p } = a;
|
|
9654
|
-
if (Te(p, s)) return [Sn(p, s), ce(
|
|
9655
|
-
let f = p.children.length === 1 && (p.firstChild.type === "interpolation" || p.firstChild.type === "angularIcuExpression") && p.firstChild.isLeadingSpaceSensitive && !p.firstChild.hasLeadingSpaces && p.lastChild.isTrailingSpaceSensitive && !p.lastChild.hasTrailingSpaces, y = Symbol("element-attr-group-id"), S = (U) => ce([ce(
|
|
9656
|
-
return p.children.length === 0 ? S(p.hasDanglingSpaces && p.isDanglingSpaceSensitive ? ke : "") : S([Wd(p) ? bt : "", B([R(),
|
|
9643
|
+
if (Te(p, s)) return [Sn(p, s), ce(us(a, s, l)), ht(kl(p, s)), ...os(p, s), xn(p, s)];
|
|
9644
|
+
let f = p.children.length === 1 && (p.firstChild.type === "interpolation" || p.firstChild.type === "angularIcuExpression") && p.firstChild.isLeadingSpaceSensitive && !p.firstChild.hasLeadingSpaces && p.lastChild.isTrailingSpaceSensitive && !p.lastChild.hasTrailingSpaces, y = Symbol("element-attr-group-id"), S = (U) => ce([ce(us(a, s, l), { id: y }), U, os(p, s)]), B = (U) => f ? cn(U, { groupId: y }) : (Qe(p) || Ia(p, s)) && p.parent.type === "root" && s.parser === "vue" && !s.vueIndentScriptAndStyle ? U : _e(U), R = () => f ? yt(je, "", { groupId: y }) : p.firstChild.hasLeadingSpaces && p.firstChild.isLeadingSpaceSensitive ? ke : p.firstChild.type === "text" && p.isWhitespaceSensitive && p.isIndentationSensitive ? dt(je) : je, Y = () => (p.next ? _n(p.next) : Pr(p.parent)) ? p.lastChild.hasTrailingSpaces && p.lastChild.isTrailingSpaceSensitive ? " " : "" : f ? yt(je, "", { groupId: y }) : p.lastChild.hasTrailingSpaces && p.lastChild.isTrailingSpaceSensitive ? ke : (p.lastChild.type === "comment" || p.lastChild.type === "text" && p.isWhitespaceSensitive && p.isIndentationSensitive) && new RegExp(`\\n[\\t ]{${s.tabWidth * (a.ancestors.length - 1)}}$`, "u").test(p.lastChild.value) ? "" : je;
|
|
9645
|
+
return p.children.length === 0 ? S(p.hasDanglingSpaces && p.isDanglingSpaceSensitive ? ke : "") : S([Wd(p) ? bt : "", B([R(), ds(a, s, l)]), Y()]);
|
|
9657
9646
|
}
|
|
9658
9647
|
function Wa(a) {
|
|
9659
9648
|
return a >= 9 && a <= 32 || a == 160;
|
|
9660
9649
|
}
|
|
9661
|
-
function
|
|
9650
|
+
function hs(a) {
|
|
9662
9651
|
return 48 <= a && a <= 57;
|
|
9663
9652
|
}
|
|
9664
9653
|
function za(a) {
|
|
9665
9654
|
return a >= 97 && a <= 122 || a >= 65 && a <= 90;
|
|
9666
9655
|
}
|
|
9667
9656
|
function ff(a) {
|
|
9668
|
-
return a >= 97 && a <= 102 || a >= 65 && a <= 70 ||
|
|
9657
|
+
return a >= 97 && a <= 102 || a >= 65 && a <= 70 || hs(a);
|
|
9669
9658
|
}
|
|
9670
|
-
function
|
|
9659
|
+
function fs(a) {
|
|
9671
9660
|
return a === 10 || a === 13;
|
|
9672
9661
|
}
|
|
9673
9662
|
function xl(a) {
|
|
9674
9663
|
return 48 <= a && a <= 55;
|
|
9675
9664
|
}
|
|
9676
|
-
function
|
|
9665
|
+
function ms(a) {
|
|
9677
9666
|
return a === 39 || a === 34 || a === 96;
|
|
9678
9667
|
}
|
|
9679
9668
|
var mf = /-+([a-z0-9])/g;
|
|
9680
9669
|
function gf(a) {
|
|
9681
9670
|
return a.replace(mf, (...s) => s[1].toUpperCase());
|
|
9682
9671
|
}
|
|
9683
|
-
var
|
|
9672
|
+
var gs = class ud {
|
|
9684
9673
|
constructor(s, l, p, f) {
|
|
9685
9674
|
this.file = s, this.offset = l, this.line = p, this.col = f;
|
|
9686
9675
|
}
|
|
@@ -9807,12 +9796,12 @@ Expected it to be ${p}.`;
|
|
|
9807
9796
|
if (f.type !== "text") continue;
|
|
9808
9797
|
let y = f.sourceSpan.start, S = null, B = f.value.split(l);
|
|
9809
9798
|
for (let R = 0; R < B.length; R++, y = S) {
|
|
9810
|
-
let
|
|
9799
|
+
let Y = B[R];
|
|
9811
9800
|
if (R % 2 === 0) {
|
|
9812
|
-
S = y.moveBy(
|
|
9801
|
+
S = y.moveBy(Y.length), Y.length > 0 && p.insertChildBefore(f, { type: "text", value: Y, sourceSpan: new ie(y, S) });
|
|
9813
9802
|
continue;
|
|
9814
9803
|
}
|
|
9815
|
-
S = y.moveBy(
|
|
9804
|
+
S = y.moveBy(Y.length + 4), p.insertChildBefore(f, { type: "interpolation", sourceSpan: new ie(y, S), children: Y.length === 0 ? [] : [{ type: "text", value: Y, sourceSpan: new ie(y.moveBy(2), S.moveBy(-2)) }] });
|
|
9816
9805
|
}
|
|
9817
9806
|
p.removeChild(f);
|
|
9818
9807
|
}
|
|
@@ -9829,8 +9818,8 @@ Expected it to be ${p}.`;
|
|
|
9829
9818
|
if (!l) for (let f = 0; f < s.children.length; f++) {
|
|
9830
9819
|
let y = s.children[f];
|
|
9831
9820
|
if (y.type !== "text") continue;
|
|
9832
|
-
let { leadingWhitespace: S, text: B, trailingWhitespace: R } = Xe(y.value),
|
|
9833
|
-
B ? (y.value = B, y.sourceSpan = new ie(y.sourceSpan.start.moveBy(S.length), y.sourceSpan.end.moveBy(-R.length)), S && (
|
|
9821
|
+
let { leadingWhitespace: S, text: B, trailingWhitespace: R } = Xe(y.value), Y = y.prev, U = y.next;
|
|
9822
|
+
B ? (y.value = B, y.sourceSpan = new ie(y.sourceSpan.start.moveBy(S.length), y.sourceSpan.end.moveBy(-R.length)), S && (Y && (Y.hasTrailingSpaces = !0), y.hasLeadingSpaces = !0), R && (y.hasTrailingSpaces = !0, U && (U.hasLeadingSpaces = !0))) : (s.removeChild(y), f--, (S || R) && (Y && (Y.hasTrailingSpaces = !0), U && (U.hasLeadingSpaces = !0)));
|
|
9834
9823
|
}
|
|
9835
9824
|
s.isWhitespaceSensitive = l, s.isIndentationSensitive = p;
|
|
9836
9825
|
});
|
|
@@ -9858,7 +9847,7 @@ Expected it to be ${p}.`;
|
|
|
9858
9847
|
l.isDanglingSpaceSensitive = Ud(l);
|
|
9859
9848
|
return;
|
|
9860
9849
|
}
|
|
9861
|
-
for (let f of p) f.isLeadingSpaceSensitive =
|
|
9850
|
+
for (let f of p) f.isLeadingSpaceSensitive = Zi(f, s), f.isTrailingSpaceSensitive = Hd(f, s);
|
|
9862
9851
|
for (let f = 0; f < p.length; f++) {
|
|
9863
9852
|
let y = p[f];
|
|
9864
9853
|
y.isLeadingSpaceSensitive = (f === 0 || y.prev.isTrailingSpaceSensitive) && y.isLeadingSpaceSensitive, y.isTrailingSpaceSensitive = (f === p.length - 1 || y.next.isLeadingSpaceSensitive) && y.isTrailingSpaceSensitive;
|
|
@@ -9873,7 +9862,7 @@ Expected it to be ${p}.`;
|
|
|
9873
9862
|
case "front-matter":
|
|
9874
9863
|
return ht(p.raw);
|
|
9875
9864
|
case "root":
|
|
9876
|
-
return s.__onHtmlRoot && s.__onHtmlRoot(p), [ce(
|
|
9865
|
+
return s.__onHtmlRoot && s.__onHtmlRoot(p), [ce(ds(a, s, l)), Ce];
|
|
9877
9866
|
case "element":
|
|
9878
9867
|
case "ieConditionalComment":
|
|
9879
9868
|
return hf(a, s, l);
|
|
@@ -9884,7 +9873,7 @@ Expected it to be ${p}.`;
|
|
|
9884
9873
|
case "angularControlFlowBlockParameter":
|
|
9885
9874
|
return xt.trim(p.expression);
|
|
9886
9875
|
case "angularLetDeclaration":
|
|
9887
|
-
return ce(["@let ", ce([p.id, " =", ce(
|
|
9876
|
+
return ce(["@let ", ce([p.id, " =", ce(_e([ke, l("init")]))]), ";"]);
|
|
9888
9877
|
case "angularLetDeclarationInitializer":
|
|
9889
9878
|
return p.value;
|
|
9890
9879
|
case "angularIcuExpression":
|
|
@@ -9944,7 +9933,7 @@ Expected it to be ${p}.`;
|
|
|
9944
9933
|
(function(a) {
|
|
9945
9934
|
a[a.RAW_TEXT = 0] = "RAW_TEXT", a[a.ESCAPABLE_RAW_TEXT = 1] = "ESCAPABLE_RAW_TEXT", a[a.PARSABLE_DATA = 2] = "PARSABLE_DATA";
|
|
9946
9935
|
})(Tt || (Tt = {}));
|
|
9947
|
-
function
|
|
9936
|
+
function Ya(a, s = !0) {
|
|
9948
9937
|
if (a[0] != ":") return [null, a];
|
|
9949
9938
|
let l = a.indexOf(":", 1);
|
|
9950
9939
|
if (l === -1) {
|
|
@@ -9954,13 +9943,13 @@ Expected it to be ${p}.`;
|
|
|
9954
9943
|
return [a.slice(1, l), a.slice(l + 1)];
|
|
9955
9944
|
}
|
|
9956
9945
|
function Ll(a) {
|
|
9957
|
-
return
|
|
9946
|
+
return Ya(a)[1] === "ng-container";
|
|
9958
9947
|
}
|
|
9959
9948
|
function Ol(a) {
|
|
9960
|
-
return
|
|
9949
|
+
return Ya(a)[1] === "ng-content";
|
|
9961
9950
|
}
|
|
9962
|
-
function
|
|
9963
|
-
return a === null ? null :
|
|
9951
|
+
function Ga(a) {
|
|
9952
|
+
return a === null ? null : Ya(a)[0];
|
|
9964
9953
|
}
|
|
9965
9954
|
function Ka(a, s) {
|
|
9966
9955
|
return a ? `:${a}:${s}` : s;
|
|
@@ -9977,30 +9966,30 @@ Expected it to be ${p}.`;
|
|
|
9977
9966
|
constructor() {
|
|
9978
9967
|
super(), this._schema = /* @__PURE__ */ new Map(), this._eventSchema = /* @__PURE__ */ new Map(), Hf.forEach((a) => {
|
|
9979
9968
|
let s = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Set(), [p, f] = a.split("|"), y = f.split(","), [S, B] = p.split("^");
|
|
9980
|
-
S.split(",").forEach((
|
|
9981
|
-
this._schema.set(
|
|
9969
|
+
S.split(",").forEach((Y) => {
|
|
9970
|
+
this._schema.set(Y.toLowerCase(), s), this._eventSchema.set(Y.toLowerCase(), l);
|
|
9982
9971
|
});
|
|
9983
9972
|
let R = B && this._schema.get(B.toLowerCase());
|
|
9984
9973
|
if (R) {
|
|
9985
|
-
for (let [
|
|
9986
|
-
for (let
|
|
9974
|
+
for (let [Y, U] of R) s.set(Y, U);
|
|
9975
|
+
for (let Y of this._eventSchema.get(B.toLowerCase())) l.add(Y);
|
|
9987
9976
|
}
|
|
9988
|
-
y.forEach((
|
|
9989
|
-
if (
|
|
9977
|
+
y.forEach((Y) => {
|
|
9978
|
+
if (Y.length > 0) switch (Y[0]) {
|
|
9990
9979
|
case "*":
|
|
9991
|
-
l.add(
|
|
9980
|
+
l.add(Y.substring(1));
|
|
9992
9981
|
break;
|
|
9993
9982
|
case "!":
|
|
9994
|
-
s.set(
|
|
9983
|
+
s.set(Y.substring(1), If);
|
|
9995
9984
|
break;
|
|
9996
9985
|
case "#":
|
|
9997
|
-
s.set(
|
|
9986
|
+
s.set(Y.substring(1), Mf);
|
|
9998
9987
|
break;
|
|
9999
9988
|
case "%":
|
|
10000
|
-
s.set(
|
|
9989
|
+
s.set(Y.substring(1), qf);
|
|
10001
9990
|
break;
|
|
10002
9991
|
default:
|
|
10003
|
-
s.set(
|
|
9992
|
+
s.set(Y, Rf);
|
|
10004
9993
|
}
|
|
10005
9994
|
});
|
|
10006
9995
|
});
|
|
@@ -10103,9 +10092,9 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10103
10092
|
return typeof this.contentType == "object" ? (a === void 0 ? void 0 : this.contentType[a]) ?? this.contentType.default : this.contentType;
|
|
10104
10093
|
}
|
|
10105
10094
|
}, Rl, qr;
|
|
10106
|
-
function
|
|
10095
|
+
function vs(a) {
|
|
10107
10096
|
return qr || (Rl = new ne({ canSelfClose: !0 }), qr = Object.assign(/* @__PURE__ */ Object.create(null), { base: new ne({ isVoid: !0 }), meta: new ne({ isVoid: !0 }), area: new ne({ isVoid: !0 }), embed: new ne({ isVoid: !0 }), link: new ne({ isVoid: !0 }), img: new ne({ isVoid: !0 }), input: new ne({ isVoid: !0 }), param: new ne({ isVoid: !0 }), hr: new ne({ isVoid: !0 }), br: new ne({ isVoid: !0 }), source: new ne({ isVoid: !0 }), track: new ne({ isVoid: !0 }), wbr: new ne({ isVoid: !0 }), p: new ne({ closedByChildren: ["address", "article", "aside", "blockquote", "div", "dl", "fieldset", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "main", "nav", "ol", "p", "pre", "section", "table", "ul"], closedByParent: !0 }), thead: new ne({ closedByChildren: ["tbody", "tfoot"] }), tbody: new ne({ closedByChildren: ["tbody", "tfoot"], closedByParent: !0 }), tfoot: new ne({ closedByChildren: ["tbody"], closedByParent: !0 }), tr: new ne({ closedByChildren: ["tr"], closedByParent: !0 }), td: new ne({ closedByChildren: ["td", "th"], closedByParent: !0 }), th: new ne({ closedByChildren: ["td", "th"], closedByParent: !0 }), col: new ne({ isVoid: !0 }), svg: new ne({ implicitNamespacePrefix: "svg" }), foreignObject: new ne({ implicitNamespacePrefix: "svg", preventNamespaceInheritance: !0 }), math: new ne({ implicitNamespacePrefix: "math" }), li: new ne({ closedByChildren: ["li"], closedByParent: !0 }), dt: new ne({ closedByChildren: ["dt", "dd"] }), dd: new ne({ closedByChildren: ["dt", "dd"], closedByParent: !0 }), rb: new ne({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: !0 }), rt: new ne({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: !0 }), rtc: new ne({ closedByChildren: ["rb", "rtc", "rp"], closedByParent: !0 }), rp: new ne({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: !0 }), optgroup: new ne({ closedByChildren: ["optgroup"], closedByParent: !0 }), option: new ne({ closedByChildren: ["option", "optgroup"], closedByParent: !0 }), pre: new ne({ ignoreFirstLf: !0 }), listing: new ne({ ignoreFirstLf: !0 }), style: new ne({ contentType: Tt.RAW_TEXT }), script: new ne({ contentType: Tt.RAW_TEXT }), title: new ne({ contentType: { default: Tt.ESCAPABLE_RAW_TEXT, svg: Tt.PARSABLE_DATA } }), textarea: new ne({ contentType: Tt.ESCAPABLE_RAW_TEXT, ignoreFirstLf: !0 }) }), new Wf().allKnownElementNames().forEach((s) => {
|
|
10108
|
-
!qr[s] &&
|
|
10097
|
+
!qr[s] && Ga(s) === null && (qr[s] = new ne({ canSelfClose: !1 }));
|
|
10109
10098
|
})), qr[a] ?? Rl;
|
|
10110
10099
|
}
|
|
10111
10100
|
var Qn = class {
|
|
@@ -10119,14 +10108,14 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10119
10108
|
visit(a, s) {
|
|
10120
10109
|
return a.visitText(this, s);
|
|
10121
10110
|
}
|
|
10122
|
-
},
|
|
10111
|
+
}, Yf = class extends Qn {
|
|
10123
10112
|
constructor(a, s, l, p) {
|
|
10124
10113
|
super(s, p), this.value = a, this.tokens = l, this.type = "cdata";
|
|
10125
10114
|
}
|
|
10126
10115
|
visit(a, s) {
|
|
10127
10116
|
return a.visitCdata(this, s);
|
|
10128
10117
|
}
|
|
10129
|
-
},
|
|
10118
|
+
}, Gf = class extends Qn {
|
|
10130
10119
|
constructor(a, s, l, p, f, y) {
|
|
10131
10120
|
super(p, y), this.switchValue = a, this.type = s, this.cases = l, this.switchValueSourceSpan = f;
|
|
10132
10121
|
}
|
|
@@ -10261,7 +10250,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10261
10250
|
constructor(s, l) {
|
|
10262
10251
|
this.start = s, this.end = l;
|
|
10263
10252
|
}
|
|
10264
|
-
}, Wl = new rm("{{", "}}"),
|
|
10253
|
+
}, Wl = new rm("{{", "}}"), Ds = class extends Sl {
|
|
10265
10254
|
constructor(a, s, l) {
|
|
10266
10255
|
super(l, a), this.tokenType = s;
|
|
10267
10256
|
}
|
|
@@ -10288,7 +10277,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10288
10277
|
(function(a) {
|
|
10289
10278
|
a.HEX = "hexadecimal", a.DEC = "decimal";
|
|
10290
10279
|
})(Za || (Za = {}));
|
|
10291
|
-
var
|
|
10280
|
+
var ys = class {
|
|
10292
10281
|
constructor(a) {
|
|
10293
10282
|
this.error = a;
|
|
10294
10283
|
}
|
|
@@ -10326,7 +10315,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10326
10315
|
}
|
|
10327
10316
|
_getBlockName() {
|
|
10328
10317
|
let a = !1, s = this._cursor.clone();
|
|
10329
|
-
return this._attemptCharCodeUntilFn((l) => Wa(l) ? !a :
|
|
10318
|
+
return this._attemptCharCodeUntilFn((l) => Wa(l) ? !a : Gl(l) ? (a = !0, !1) : !0), this._cursor.getChars(s).trim();
|
|
10330
10319
|
}
|
|
10331
10320
|
_consumeBlockStart(a) {
|
|
10332
10321
|
this._beginToken(25, a);
|
|
@@ -10349,7 +10338,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10349
10338
|
let p = this._cursor.peek();
|
|
10350
10339
|
if (p === 92) this._cursor.advance();
|
|
10351
10340
|
else if (p === s) s = null;
|
|
10352
|
-
else if (s === null &&
|
|
10341
|
+
else if (s === null && ms(p)) s = p;
|
|
10353
10342
|
else if (p === 40 && s === null) l++;
|
|
10354
10343
|
else if (p === 41 && s === null) {
|
|
10355
10344
|
if (l === 0) break;
|
|
@@ -10372,18 +10361,18 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10372
10361
|
s.type = 33;
|
|
10373
10362
|
return;
|
|
10374
10363
|
}
|
|
10375
|
-
this._attemptCharCodeUntilFn((l) => Ie(l) && !
|
|
10364
|
+
this._attemptCharCodeUntilFn((l) => Ie(l) && !fs(l)), this._consumeLetDeclarationValue(), this._cursor.peek() === 59 ? (this._beginToken(32), this._endToken([]), this._cursor.advance()) : (s.type = 33, s.sourceSpan = this._cursor.getSpan(a));
|
|
10376
10365
|
}
|
|
10377
10366
|
_getLetDeclarationName() {
|
|
10378
10367
|
let a = this._cursor.clone(), s = !1;
|
|
10379
|
-
return this._attemptCharCodeUntilFn((l) => za(l) || l == 36 || l === 95 || s &&
|
|
10368
|
+
return this._attemptCharCodeUntilFn((l) => za(l) || l == 36 || l === 95 || s && hs(l) ? (s = !0, !1) : !0), this._cursor.getChars(a).trim();
|
|
10380
10369
|
}
|
|
10381
10370
|
_consumeLetDeclarationValue() {
|
|
10382
10371
|
let a = this._cursor.clone();
|
|
10383
10372
|
for (this._beginToken(31, a); this._cursor.peek() !== 0; ) {
|
|
10384
10373
|
let s = this._cursor.peek();
|
|
10385
10374
|
if (s === 59) break;
|
|
10386
|
-
|
|
10375
|
+
ms(s) && (this._cursor.advance(), this._attemptCharCodeUntilFn((l) => l === 92 ? (this._cursor.advance(), !1) : l === s)), this._cursor.advance();
|
|
10387
10376
|
}
|
|
10388
10377
|
this._endToken([this._cursor.getChars(a)]);
|
|
10389
10378
|
}
|
|
@@ -10400,18 +10389,18 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10400
10389
|
this._currentTokenStart = s, this._currentTokenType = a;
|
|
10401
10390
|
}
|
|
10402
10391
|
_endToken(a, s) {
|
|
10403
|
-
if (this._currentTokenStart === null) throw new
|
|
10404
|
-
if (this._currentTokenType === null) throw new
|
|
10392
|
+
if (this._currentTokenStart === null) throw new Ds("Programming error - attempted to end a token when there was no start to the token", this._currentTokenType, this._cursor.getSpan(s));
|
|
10393
|
+
if (this._currentTokenType === null) throw new Ds("Programming error - attempted to end a token which has no token type", null, this._cursor.getSpan(this._currentTokenStart));
|
|
10405
10394
|
let l = { type: this._currentTokenType, parts: a, sourceSpan: (s ?? this._cursor).getSpan(this._currentTokenStart, this._leadingTriviaCodePoints) };
|
|
10406
10395
|
return this.tokens.push(l), this._currentTokenStart = null, this._currentTokenType = null, l;
|
|
10407
10396
|
}
|
|
10408
10397
|
_createError(a, s) {
|
|
10409
10398
|
this._isInExpansionForm() && (a += ` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);
|
|
10410
|
-
let l = new
|
|
10411
|
-
return this._currentTokenStart = null, this._currentTokenType = null, new
|
|
10399
|
+
let l = new Ds(a, this._currentTokenType, s);
|
|
10400
|
+
return this._currentTokenStart = null, this._currentTokenType = null, new ys(l);
|
|
10412
10401
|
}
|
|
10413
10402
|
handleError(a) {
|
|
10414
|
-
if (a instanceof
|
|
10403
|
+
if (a instanceof bs && (a = this._createError(a.msg, this._cursor.getSpan(a.cursor))), a instanceof ys) this.errors.push(a.error);
|
|
10415
10404
|
else throw a;
|
|
10416
10405
|
}
|
|
10417
10406
|
_attemptCharCode(a) {
|
|
@@ -10532,7 +10521,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10532
10521
|
}
|
|
10533
10522
|
this._consumeTagOpenEnd();
|
|
10534
10523
|
} catch (S) {
|
|
10535
|
-
if (S instanceof
|
|
10524
|
+
if (S instanceof ys) {
|
|
10536
10525
|
p ? p.type = 4 : (this._beginToken(5, a), this._endToken(["<"]));
|
|
10537
10526
|
return;
|
|
10538
10527
|
}
|
|
@@ -10633,7 +10622,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10633
10622
|
return;
|
|
10634
10623
|
} else this._attemptStr("//") && (S = !0);
|
|
10635
10624
|
let R = this._cursor.peek();
|
|
10636
|
-
this._cursor.advance(), R === 92 ? this._cursor.advance() : R === y ? y = null : !S && y === null &&
|
|
10625
|
+
this._cursor.advance(), R === 92 ? this._cursor.advance() : R === y ? y = null : !S && y === null && ms(R) && (y = R);
|
|
10637
10626
|
}
|
|
10638
10627
|
p.push(this._getProcessedChars(f, this._cursor)), this._endToken(p);
|
|
10639
10628
|
}
|
|
@@ -10655,7 +10644,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10655
10644
|
_isBlockStart() {
|
|
10656
10645
|
if (this._tokenizeBlocks && this._cursor.peek() === 64) {
|
|
10657
10646
|
let a = this._cursor.clone();
|
|
10658
|
-
if (a.advance(),
|
|
10647
|
+
if (a.advance(), Gl(a.peek())) return !0;
|
|
10659
10648
|
}
|
|
10660
10649
|
return !1;
|
|
10661
10650
|
}
|
|
@@ -10708,13 +10697,13 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10708
10697
|
return a !== 125;
|
|
10709
10698
|
}
|
|
10710
10699
|
function hm(a, s) {
|
|
10711
|
-
return
|
|
10700
|
+
return Yl(a) === Yl(s);
|
|
10712
10701
|
}
|
|
10713
|
-
function
|
|
10702
|
+
function Yl(a) {
|
|
10714
10703
|
return a >= 97 && a <= 122 ? a - 97 + 65 : a;
|
|
10715
10704
|
}
|
|
10716
|
-
function
|
|
10717
|
-
return za(a) ||
|
|
10705
|
+
function Gl(a) {
|
|
10706
|
+
return za(a) || hs(a) || a === 95;
|
|
10718
10707
|
}
|
|
10719
10708
|
function Kl(a) {
|
|
10720
10709
|
return a !== 59 && Ie(a);
|
|
@@ -10770,15 +10759,15 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10770
10759
|
return this.input.charCodeAt(s);
|
|
10771
10760
|
}
|
|
10772
10761
|
advanceState(s) {
|
|
10773
|
-
if (s.offset >= this.end) throw this.state = s, new
|
|
10762
|
+
if (s.offset >= this.end) throw this.state = s, new bs('Unexpected character "EOF"', this);
|
|
10774
10763
|
let l = this.charAt(s.offset);
|
|
10775
|
-
l === 10 ? (s.line++, s.column = 0) :
|
|
10764
|
+
l === 10 ? (s.line++, s.column = 0) : fs(l) || s.column++, s.offset++, this.updatePeek(s);
|
|
10776
10765
|
}
|
|
10777
10766
|
updatePeek(s) {
|
|
10778
10767
|
s.peek = s.offset >= this.end ? 0 : this.charAt(s.offset);
|
|
10779
10768
|
}
|
|
10780
10769
|
locationFromCursor(s) {
|
|
10781
|
-
return new
|
|
10770
|
+
return new gs(s.file, s.state.offset, s.state.line, s.state.column);
|
|
10782
10771
|
}
|
|
10783
10772
|
}, mm = class lo extends Jl {
|
|
10784
10773
|
constructor(s, l) {
|
|
@@ -10823,14 +10812,14 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10823
10812
|
let l = "", p = 0, f = this.clone();
|
|
10824
10813
|
for (; xl(s()) && p < 3; ) f = this.clone(), l += String.fromCodePoint(s()), this.advanceState(this.internalState), p++;
|
|
10825
10814
|
this.state.peek = parseInt(l, 8), this.internalState = f.internalState;
|
|
10826
|
-
} else
|
|
10815
|
+
} else fs(this.internalState.peek) ? (this.advanceState(this.internalState), this.state = this.internalState) : this.state.peek = this.internalState.peek;
|
|
10827
10816
|
}
|
|
10828
10817
|
decodeHexDigits(s, l) {
|
|
10829
10818
|
let p = this.input.slice(s.internalState.offset, s.internalState.offset + l), f = parseInt(p, 16);
|
|
10830
|
-
if (isNaN(f)) throw s.state = s.internalState, new
|
|
10819
|
+
if (isNaN(f)) throw s.state = s.internalState, new bs("Invalid hexadecimal escape sequence", s);
|
|
10831
10820
|
return f;
|
|
10832
10821
|
}
|
|
10833
|
-
},
|
|
10822
|
+
}, bs = class {
|
|
10834
10823
|
constructor(a, s) {
|
|
10835
10824
|
this.msg = a, this.cursor = s;
|
|
10836
10825
|
}
|
|
@@ -10850,11 +10839,11 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10850
10839
|
this.getTagDefinition = a;
|
|
10851
10840
|
}
|
|
10852
10841
|
parse(a, s, l, p = !1, f) {
|
|
10853
|
-
let y = (le) => (
|
|
10854
|
-
let st = R(le,
|
|
10842
|
+
let y = (le) => (Se, ...Ue) => le(Se.toLowerCase(), ...Ue), S = p ? this.getTagDefinition : y(this.getTagDefinition), B = (le) => S(le).getContentType(), R = p ? f : y(f), Y = im(a, s, f ? (le, Se, Ue, Ze) => {
|
|
10843
|
+
let st = R(le, Se, Ue, Ze);
|
|
10855
10844
|
return st !== void 0 ? st : B(le);
|
|
10856
|
-
} : B, l), U = l && l.canSelfClose || !1, De = l && l.allowHtmComponentClosingTags || !1, fe = new Dm(
|
|
10857
|
-
return fe.build(), new gm(fe.rootNodes,
|
|
10845
|
+
} : B, l), U = l && l.canSelfClose || !1, De = l && l.allowHtmComponentClosingTags || !1, fe = new Dm(Y.tokens, S, U, De, p);
|
|
10846
|
+
return fe.build(), new gm(fe.rootNodes, Y.errors.concat(fe.errors));
|
|
10858
10847
|
}
|
|
10859
10848
|
}, Dm = class dd {
|
|
10860
10849
|
constructor(s, l, p, f, y) {
|
|
@@ -10873,7 +10862,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10873
10862
|
}
|
|
10874
10863
|
_consumeCdata(s) {
|
|
10875
10864
|
let l = this._advance(), p = this._getText(l), f = this._advanceIf(13);
|
|
10876
|
-
this._addToParent(new
|
|
10865
|
+
this._addToParent(new Yf(p, new ie(s.sourceSpan.start, (f || l).sourceSpan.end), [l]));
|
|
10877
10866
|
}
|
|
10878
10867
|
_consumeComment(s) {
|
|
10879
10868
|
let l = this._advanceIf(7), p = this._advanceIf(11), f = l != null ? l.parts[0].trim() : null, y = p == null ? s.sourceSpan : new ie(s.sourceSpan.start, p.sourceSpan.end, s.sourceSpan.fullStart);
|
|
@@ -10895,7 +10884,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10895
10884
|
return;
|
|
10896
10885
|
}
|
|
10897
10886
|
let y = new ie(s.sourceSpan.start, this._peek.sourceSpan.end, s.sourceSpan.fullStart);
|
|
10898
|
-
this._addToParent(new
|
|
10887
|
+
this._addToParent(new Gf(l.parts[0], p.parts[0], f, y, l.sourceSpan)), this._advance();
|
|
10899
10888
|
}
|
|
10900
10889
|
_parseExpansionCase() {
|
|
10901
10890
|
let s = this._advance();
|
|
@@ -10954,9 +10943,9 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10954
10943
|
if (this._peek.type === 2) {
|
|
10955
10944
|
this._advance(), S = !0;
|
|
10956
10945
|
let le = this.getTagDefinition(y);
|
|
10957
|
-
this.canSelfClose || le.canSelfClose ||
|
|
10946
|
+
this.canSelfClose || le.canSelfClose || Ga(y) !== null || le.isVoid || this.errors.push(ot.create(y, s.sourceSpan, `Only void, custom and foreign elements can be self closed "${s.parts[1]}"`));
|
|
10958
10947
|
} else this._peek.type === 1 && (this._advance(), S = !1);
|
|
10959
|
-
let B = this._peek.sourceSpan.fullStart, R = new ie(s.sourceSpan.start, B, s.sourceSpan.fullStart),
|
|
10948
|
+
let B = this._peek.sourceSpan.fullStart, R = new ie(s.sourceSpan.start, B, s.sourceSpan.fullStart), Y = new ie(s.sourceSpan.start, B, s.sourceSpan.fullStart), U = new ie(s.sourceSpan.start.moveBy(1), s.sourceSpan.end), De = new hn(y, f, [], R, Y, void 0, U), fe = this._getContainer();
|
|
10960
10949
|
this._pushContainer(De, fe instanceof hn && this.getTagDefinition(fe.name).isClosedByChild(De.name)), S ? this._popContainer(y, hn, R) : s.type === 4 && (this._popContainer(y, hn, null), this.errors.push(ot.create(y, R, `Opening tag "${y}" not terminated.`)));
|
|
10961
10950
|
}
|
|
10962
10951
|
_pushContainer(s, l) {
|
|
@@ -10974,7 +10963,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10974
10963
|
let f = !1;
|
|
10975
10964
|
for (let y = this._containerStack.length - 1; y >= 0; y--) {
|
|
10976
10965
|
let S = this._containerStack[y];
|
|
10977
|
-
if (
|
|
10966
|
+
if (Ga(S.name) ? S.name === s : (s == null || S.name.toLowerCase() === s.toLowerCase()) && S instanceof l) return S.endSourceSpan = p, S.sourceSpan.end = p !== null ? p.end : S.sourceSpan.end, this._containerStack.splice(y, this._containerStack.length - y), !f;
|
|
10978
10967
|
(S instanceof Zn || S instanceof hn && !this.getTagDefinition(S.name).closedByParent) && (f = !0);
|
|
10979
10968
|
}
|
|
10980
10969
|
return !1;
|
|
@@ -10988,8 +10977,8 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10988
10977
|
S.push(U), U.type === 17 ? y += U.parts.join("").replace(/&([^;]+);/g, Ql) : U.type === 9 ? y += U.parts[0] : y += U.parts.join(""), R = p = U.sourceSpan.end;
|
|
10989
10978
|
}
|
|
10990
10979
|
this._peek.type === 15 && (R = p = this._advance().sourceSpan.end);
|
|
10991
|
-
let
|
|
10992
|
-
return new Jf(l, y, new ie(s.sourceSpan.start, p, s.sourceSpan.fullStart), s.sourceSpan,
|
|
10980
|
+
let Y = B && R && new ie((f == null ? void 0 : f.sourceSpan.start) ?? B.start, R, (f == null ? void 0 : f.sourceSpan.fullStart) ?? B.fullStart);
|
|
10981
|
+
return new Jf(l, y, new ie(s.sourceSpan.start, p, s.sourceSpan.fullStart), s.sourceSpan, Y, S.length > 0 ? S : void 0, void 0);
|
|
10993
10982
|
}
|
|
10994
10983
|
_consumeBlockOpen(s) {
|
|
10995
10984
|
let l = [];
|
|
@@ -11023,7 +11012,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
11023
11012
|
this.errors.push(ot.create(s.parts[0], s.sourceSpan, `Unterminated @let declaration "${l}". Declaration must be terminated with a semicolon.`));
|
|
11024
11013
|
return;
|
|
11025
11014
|
} else f = this._advance();
|
|
11026
|
-
let y = f.sourceSpan.fullStart, S = new ie(s.sourceSpan.start, y, s.sourceSpan.fullStart), B = s.sourceSpan.toString().lastIndexOf(l), R = s.sourceSpan.start.moveBy(B),
|
|
11015
|
+
let y = f.sourceSpan.fullStart, S = new ie(s.sourceSpan.start, y, s.sourceSpan.fullStart), B = s.sourceSpan.toString().lastIndexOf(l), R = s.sourceSpan.start.moveBy(B), Y = new ie(R, s.sourceSpan.end), U = new Hl(l, p.parts[0], S, Y, p.sourceSpan);
|
|
11027
11016
|
this._addToParent(U);
|
|
11028
11017
|
}
|
|
11029
11018
|
_consumeIncompleteLet(s) {
|
|
@@ -11047,8 +11036,8 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
11047
11036
|
}
|
|
11048
11037
|
_getElementFullName(s, l, p) {
|
|
11049
11038
|
if (s === "" && (s = this.getTagDefinition(l).implicitNamespacePrefix || "", s === "" && p != null)) {
|
|
11050
|
-
let f =
|
|
11051
|
-
this.getTagDefinition(f).preventNamespaceInheritance || (s =
|
|
11039
|
+
let f = Ya(p.name)[1];
|
|
11040
|
+
this.getTagDefinition(f).preventNamespaceInheritance || (s = Ga(p.name));
|
|
11052
11041
|
}
|
|
11053
11042
|
return Ka(s, l);
|
|
11054
11043
|
}
|
|
@@ -11061,12 +11050,12 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
11061
11050
|
}
|
|
11062
11051
|
var ym = class extends vm {
|
|
11063
11052
|
constructor() {
|
|
11064
|
-
super(
|
|
11053
|
+
super(vs);
|
|
11065
11054
|
}
|
|
11066
11055
|
parse(a, s, l, p = !1, f) {
|
|
11067
11056
|
return super.parse(a, s, l, p, f);
|
|
11068
11057
|
}
|
|
11069
|
-
},
|
|
11058
|
+
}, ks = null, bm = () => (ks || (ks = new ym()), ks);
|
|
11070
11059
|
function Zl(a, s = {}) {
|
|
11071
11060
|
let { canSelfClose: l = !1, allowHtmComponentClosingTags: p = !1, isTagNameCaseSensitive: f = !1, getTagContentType: y, tokenizeAngularBlocks: S = !1, tokenizeAngularLetDeclaration: B = !1 } = s;
|
|
11072
11061
|
return bm().parse(a, "angular-html-parser", { tokenizeExpansionForms: S, interpolationConfig: void 0, canSelfClose: l, allowHtmComponentClosingTags: p, tokenizeBlocks: S, tokenizeLet: B }, f, y);
|
|
@@ -11184,14 +11173,14 @@ ${s}`, l), y = p;
|
|
|
11184
11173
|
return null;
|
|
11185
11174
|
}
|
|
11186
11175
|
function $m(a, s, l) {
|
|
11187
|
-
let [, p, f, y] = l, S = 4 + p.length, B = a.sourceSpan.start.moveBy(S), R = B.moveBy(y.length), [
|
|
11176
|
+
let [, p, f, y] = l, S = 4 + p.length, B = a.sourceSpan.start.moveBy(S), R = B.moveBy(y.length), [Y, U] = (() => {
|
|
11188
11177
|
try {
|
|
11189
11178
|
return [!0, s(y, B).children];
|
|
11190
11179
|
} catch {
|
|
11191
11180
|
return [!1, [{ type: "text", value: y, sourceSpan: new ie(B, R) }]];
|
|
11192
11181
|
}
|
|
11193
11182
|
})();
|
|
11194
|
-
return { type: "ieConditionalComment", complete:
|
|
11183
|
+
return { type: "ieConditionalComment", complete: Y, children: U, condition: C(!1, f.trim(), /\s+/gu, " "), sourceSpan: a.sourceSpan, startSourceSpan: new ie(a.sourceSpan.start, B), endSourceSpan: new ie(R, a.sourceSpan.end) };
|
|
11195
11184
|
}
|
|
11196
11185
|
function Tm(a, s, l) {
|
|
11197
11186
|
let [, p] = l;
|
|
@@ -11200,10 +11189,10 @@ ${s}`, l), y = p;
|
|
|
11200
11189
|
function Bm(a) {
|
|
11201
11190
|
return { type: "ieConditionalEndComment", sourceSpan: a.sourceSpan };
|
|
11202
11191
|
}
|
|
11203
|
-
var
|
|
11192
|
+
var ws = /* @__PURE__ */ new Map([["*", /* @__PURE__ */ new Set(["accesskey", "autocapitalize", "autofocus", "class", "contenteditable", "dir", "draggable", "enterkeyhint", "hidden", "id", "inert", "inputmode", "is", "itemid", "itemprop", "itemref", "itemscope", "itemtype", "lang", "nonce", "popover", "slot", "spellcheck", "style", "tabindex", "title", "translate", "writingsuggestions"])], ["a", /* @__PURE__ */ new Set(["charset", "coords", "download", "href", "hreflang", "name", "ping", "referrerpolicy", "rel", "rev", "shape", "target", "type"])], ["applet", /* @__PURE__ */ new Set(["align", "alt", "archive", "code", "codebase", "height", "hspace", "name", "object", "vspace", "width"])], ["area", /* @__PURE__ */ new Set(["alt", "coords", "download", "href", "hreflang", "nohref", "ping", "referrerpolicy", "rel", "shape", "target", "type"])], ["audio", /* @__PURE__ */ new Set(["autoplay", "controls", "crossorigin", "loop", "muted", "preload", "src"])], ["base", /* @__PURE__ */ new Set(["href", "target"])], ["basefont", /* @__PURE__ */ new Set(["color", "face", "size"])], ["blockquote", /* @__PURE__ */ new Set(["cite"])], ["body", /* @__PURE__ */ new Set(["alink", "background", "bgcolor", "link", "text", "vlink"])], ["br", /* @__PURE__ */ new Set(["clear"])], ["button", /* @__PURE__ */ new Set(["disabled", "form", "formaction", "formenctype", "formmethod", "formnovalidate", "formtarget", "name", "popovertarget", "popovertargetaction", "type", "value"])], ["canvas", /* @__PURE__ */ new Set(["height", "width"])], ["caption", /* @__PURE__ */ new Set(["align"])], ["col", /* @__PURE__ */ new Set(["align", "char", "charoff", "span", "valign", "width"])], ["colgroup", /* @__PURE__ */ new Set(["align", "char", "charoff", "span", "valign", "width"])], ["data", /* @__PURE__ */ new Set(["value"])], ["del", /* @__PURE__ */ new Set(["cite", "datetime"])], ["details", /* @__PURE__ */ new Set(["name", "open"])], ["dialog", /* @__PURE__ */ new Set(["open"])], ["dir", /* @__PURE__ */ new Set(["compact"])], ["div", /* @__PURE__ */ new Set(["align"])], ["dl", /* @__PURE__ */ new Set(["compact"])], ["embed", /* @__PURE__ */ new Set(["height", "src", "type", "width"])], ["fieldset", /* @__PURE__ */ new Set(["disabled", "form", "name"])], ["font", /* @__PURE__ */ new Set(["color", "face", "size"])], ["form", /* @__PURE__ */ new Set(["accept", "accept-charset", "action", "autocomplete", "enctype", "method", "name", "novalidate", "target"])], ["frame", /* @__PURE__ */ new Set(["frameborder", "longdesc", "marginheight", "marginwidth", "name", "noresize", "scrolling", "src"])], ["frameset", /* @__PURE__ */ new Set(["cols", "rows"])], ["h1", /* @__PURE__ */ new Set(["align"])], ["h2", /* @__PURE__ */ new Set(["align"])], ["h3", /* @__PURE__ */ new Set(["align"])], ["h4", /* @__PURE__ */ new Set(["align"])], ["h5", /* @__PURE__ */ new Set(["align"])], ["h6", /* @__PURE__ */ new Set(["align"])], ["head", /* @__PURE__ */ new Set(["profile"])], ["hr", /* @__PURE__ */ new Set(["align", "noshade", "size", "width"])], ["html", /* @__PURE__ */ new Set(["manifest", "version"])], ["iframe", /* @__PURE__ */ new Set(["align", "allow", "allowfullscreen", "allowpaymentrequest", "allowusermedia", "frameborder", "height", "loading", "longdesc", "marginheight", "marginwidth", "name", "referrerpolicy", "sandbox", "scrolling", "src", "srcdoc", "width"])], ["img", /* @__PURE__ */ new Set(["align", "alt", "border", "crossorigin", "decoding", "fetchpriority", "height", "hspace", "ismap", "loading", "longdesc", "name", "referrerpolicy", "sizes", "src", "srcset", "usemap", "vspace", "width"])], ["input", /* @__PURE__ */ new Set(["accept", "align", "alt", "autocomplete", "checked", "dirname", "disabled", "form", "formaction", "formenctype", "formmethod", "formnovalidate", "formtarget", "height", "ismap", "list", "max", "maxlength", "min", "minlength", "multiple", "name", "pattern", "placeholder", "popovertarget", "popovertargetaction", "readonly", "required", "size", "src", "step", "type", "usemap", "value", "width"])], ["ins", /* @__PURE__ */ new Set(["cite", "datetime"])], ["isindex", /* @__PURE__ */ new Set(["prompt"])], ["label", /* @__PURE__ */ new Set(["for", "form"])], ["legend", /* @__PURE__ */ new Set(["align"])], ["li", /* @__PURE__ */ new Set(["type", "value"])], ["link", /* @__PURE__ */ new Set(["as", "blocking", "charset", "color", "crossorigin", "disabled", "fetchpriority", "href", "hreflang", "imagesizes", "imagesrcset", "integrity", "media", "referrerpolicy", "rel", "rev", "sizes", "target", "type"])], ["map", /* @__PURE__ */ new Set(["name"])], ["menu", /* @__PURE__ */ new Set(["compact"])], ["meta", /* @__PURE__ */ new Set(["charset", "content", "http-equiv", "media", "name", "scheme"])], ["meter", /* @__PURE__ */ new Set(["high", "low", "max", "min", "optimum", "value"])], ["object", /* @__PURE__ */ new Set(["align", "archive", "border", "classid", "codebase", "codetype", "data", "declare", "form", "height", "hspace", "name", "standby", "type", "typemustmatch", "usemap", "vspace", "width"])], ["ol", /* @__PURE__ */ new Set(["compact", "reversed", "start", "type"])], ["optgroup", /* @__PURE__ */ new Set(["disabled", "label"])], ["option", /* @__PURE__ */ new Set(["disabled", "label", "selected", "value"])], ["output", /* @__PURE__ */ new Set(["for", "form", "name"])], ["p", /* @__PURE__ */ new Set(["align"])], ["param", /* @__PURE__ */ new Set(["name", "type", "value", "valuetype"])], ["pre", /* @__PURE__ */ new Set(["width"])], ["progress", /* @__PURE__ */ new Set(["max", "value"])], ["q", /* @__PURE__ */ new Set(["cite"])], ["script", /* @__PURE__ */ new Set(["async", "blocking", "charset", "crossorigin", "defer", "fetchpriority", "integrity", "language", "nomodule", "referrerpolicy", "src", "type"])], ["select", /* @__PURE__ */ new Set(["autocomplete", "disabled", "form", "multiple", "name", "required", "size"])], ["slot", /* @__PURE__ */ new Set(["name"])], ["source", /* @__PURE__ */ new Set(["height", "media", "sizes", "src", "srcset", "type", "width"])], ["style", /* @__PURE__ */ new Set(["blocking", "media", "type"])], ["table", /* @__PURE__ */ new Set(["align", "bgcolor", "border", "cellpadding", "cellspacing", "frame", "rules", "summary", "width"])], ["tbody", /* @__PURE__ */ new Set(["align", "char", "charoff", "valign"])], ["td", /* @__PURE__ */ new Set(["abbr", "align", "axis", "bgcolor", "char", "charoff", "colspan", "headers", "height", "nowrap", "rowspan", "scope", "valign", "width"])], ["template", /* @__PURE__ */ new Set(["shadowrootclonable", "shadowrootdelegatesfocus", "shadowrootmode"])], ["textarea", /* @__PURE__ */ new Set(["autocomplete", "cols", "dirname", "disabled", "form", "maxlength", "minlength", "name", "placeholder", "readonly", "required", "rows", "wrap"])], ["tfoot", /* @__PURE__ */ new Set(["align", "char", "charoff", "valign"])], ["th", /* @__PURE__ */ new Set(["abbr", "align", "axis", "bgcolor", "char", "charoff", "colspan", "headers", "height", "nowrap", "rowspan", "scope", "valign", "width"])], ["thead", /* @__PURE__ */ new Set(["align", "char", "charoff", "valign"])], ["time", /* @__PURE__ */ new Set(["datetime"])], ["tr", /* @__PURE__ */ new Set(["align", "bgcolor", "char", "charoff", "valign"])], ["track", /* @__PURE__ */ new Set(["default", "kind", "label", "src", "srclang"])], ["ul", /* @__PURE__ */ new Set(["compact", "type"])], ["video", /* @__PURE__ */ new Set(["autoplay", "controls", "crossorigin", "height", "loop", "muted", "playsinline", "poster", "preload", "src", "width"])]]), Nm = /* @__PURE__ */ new Set(["a", "abbr", "acronym", "address", "applet", "area", "article", "aside", "audio", "b", "base", "basefont", "bdi", "bdo", "bgsound", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "command", "content", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "embed", "fieldset", "figcaption", "figure", "font", "footer", "form", "frame", "frameset", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "image", "img", "input", "ins", "isindex", "kbd", "keygen", "label", "legend", "li", "link", "listing", "main", "map", "mark", "marquee", "math", "menu", "menuitem", "meta", "meter", "multicol", "nav", "nextid", "nobr", "noembed", "noframes", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "plaintext", "pre", "progress", "q", "rb", "rbc", "rp", "rt", "rtc", "ruby", "s", "samp", "script", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "svg", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "tt", "u", "ul", "var", "video", "wbr", "xmp"]);
|
|
11204
11193
|
function jm(a) {
|
|
11205
11194
|
if (a.type === "block") {
|
|
11206
|
-
if (a.name = C(!1, a.name.toLowerCase(), /\s+/gu, " ").trim(), a.type = "angularControlFlowBlock", !
|
|
11195
|
+
if (a.name = C(!1, a.name.toLowerCase(), /\s+/gu, " ").trim(), a.type = "angularControlFlowBlock", !ss(a.parameters)) {
|
|
11207
11196
|
delete a.parameters;
|
|
11208
11197
|
return;
|
|
11209
11198
|
}
|
|
@@ -11218,7 +11207,7 @@ ${s}`, l), y = p;
|
|
|
11218
11207
|
(a.type === "plural" || a.type === "select") && (a.clause = a.type, a.type = "angularIcuExpression"), a.type === "expansionCase" && (a.type = "angularIcuCase");
|
|
11219
11208
|
}
|
|
11220
11209
|
function tu(a, s, l) {
|
|
11221
|
-
let { name: p, canSelfClose: f = !0, normalizeTagName: y = !1, normalizeAttributeName: S = !1, allowHtmComponentClosingTags: B = !1, isTagNameCaseSensitive: R = !1, shouldParseAsRawText:
|
|
11210
|
+
let { name: p, canSelfClose: f = !0, normalizeTagName: y = !1, normalizeAttributeName: S = !1, allowHtmComponentClosingTags: B = !1, isTagNameCaseSensitive: R = !1, shouldParseAsRawText: Y } = s, { rootNodes: U, errors: De } = Zl(a, { canSelfClose: f, allowHtmComponentClosingTags: B, isTagNameCaseSensitive: R, getTagContentType: Y ? (...z) => Y(...z) ? Tt.RAW_TEXT : void 0 : void 0, tokenizeAngularBlocks: p === "angular" ? !0 : void 0, tokenizeAngularLetDeclaration: p === "angular" ? !0 : void 0 });
|
|
11222
11211
|
if (p === "vue") {
|
|
11223
11212
|
if (U.some((Me) => Me.type === "docType" && Me.value === "html" || Me.type === "element" && Me.name.toLowerCase() === "html")) return tu(a, au, l);
|
|
11224
11213
|
let z, ue = () => z ?? (z = Zl(a, { canSelfClose: f, allowHtmComponentClosingTags: B, isTagNameCaseSensitive: R })), We = (Me) => ue().rootNodes.find(({ startSourceSpan: lt }) => lt && lt.start.offset === Me.startSourceSpan.start.offset) ?? Me;
|
|
@@ -11248,17 +11237,17 @@ ${s}`, l), y = p;
|
|
|
11248
11237
|
z.value = z.sourceSpan.toString();
|
|
11249
11238
|
break;
|
|
11250
11239
|
}
|
|
11251
|
-
},
|
|
11240
|
+
}, Se = (z, ue) => {
|
|
11252
11241
|
let We = z.toLowerCase();
|
|
11253
11242
|
return ue(We) ? We : z;
|
|
11254
11243
|
}, Ue = (z) => {
|
|
11255
|
-
if (z.type === "element" && (y && (!z.namespace || z.namespace === z.tagDefinition.implicitNamespacePrefix || me(z)) && (z.name =
|
|
11244
|
+
if (z.type === "element" && (y && (!z.namespace || z.namespace === z.tagDefinition.implicitNamespacePrefix || me(z)) && (z.name = Se(z.name, (ue) => Nm.has(ue))), S)) for (let ue of z.attrs) ue.namespace || (ue.name = Se(ue.name, (We) => ws.has(z.name) && (ws.get("*").has(We) || ws.get(z.name).has(We))));
|
|
11256
11245
|
}, Ze = (z) => {
|
|
11257
11246
|
z.sourceSpan && z.endSourceSpan && (z.sourceSpan = new ie(z.sourceSpan.start, z.endSourceSpan.end));
|
|
11258
11247
|
}, st = (z) => {
|
|
11259
11248
|
if (z.type === "element") {
|
|
11260
|
-
let ue =
|
|
11261
|
-
!z.namespace || z.namespace === ue.implicitNamespacePrefix || me(z) ? z.tagDefinition = ue : z.tagDefinition =
|
|
11249
|
+
let ue = vs(R ? z.name : z.name.toLowerCase());
|
|
11250
|
+
!z.namespace || z.namespace === ue.implicitNamespacePrefix || me(z) ? z.tagDefinition = ue : z.tagDefinition = vs("");
|
|
11262
11251
|
}
|
|
11263
11252
|
};
|
|
11264
11253
|
return Ul(new class extends Zf {
|
|
@@ -11283,16 +11272,16 @@ ${s}`, l), y = p;
|
|
|
11283
11272
|
throw wm(s, { loc: { start: { line: l.line + 1, column: l.col + 1 }, end: { line: p.line + 1, column: p.col + 1 } }, cause: a });
|
|
11284
11273
|
}
|
|
11285
11274
|
function ru(a, s, l = {}, p = !0) {
|
|
11286
|
-
let { frontMatter: f, content: y } = p ? _m(a) : { frontMatter: null, content: a }, S = new _l(a, l.filepath), B = new
|
|
11275
|
+
let { frontMatter: f, content: y } = p ? _m(a) : { frontMatter: null, content: a }, S = new _l(a, l.filepath), B = new gs(S, 0, 0, 0), R = B.moveBy(a.length), Y = { type: "root", sourceSpan: new ie(B, R), children: tu(y, s, l) };
|
|
11287
11276
|
if (f) {
|
|
11288
|
-
let fe = new
|
|
11289
|
-
f.sourceSpan = new ie(fe, le),
|
|
11277
|
+
let fe = new gs(S, 0, 0, 0), le = fe.moveBy(f.raw.length);
|
|
11278
|
+
f.sourceSpan = new ie(fe, le), Y.children.unshift(f);
|
|
11290
11279
|
}
|
|
11291
|
-
let U = new Sm(
|
|
11292
|
-
let { offset:
|
|
11280
|
+
let U = new Sm(Y), De = (fe, le) => {
|
|
11281
|
+
let { offset: Se } = le, Ue = C(!1, a.slice(0, Se), /[^\n\r]/gu, " "), Ze = ru(Ue + fe, s, l, !1);
|
|
11293
11282
|
Ze.sourceSpan = new ie(le, zt(!1, Ze.children, -1).sourceSpan.end);
|
|
11294
11283
|
let st = Ze.children[0];
|
|
11295
|
-
return st.length ===
|
|
11284
|
+
return st.length === Se ? Ze.children.shift() : (st.sourceSpan = new ie(st.sourceSpan.start.moveBy(Se), st.sourceSpan.end), st.value = st.value.slice(Se)), Ze;
|
|
11296
11285
|
};
|
|
11297
11286
|
return U.walk((fe) => {
|
|
11298
11287
|
if (fe.type === "comment") {
|
|
@@ -11312,7 +11301,7 @@ ${s}`, l), y = p;
|
|
|
11312
11301
|
});
|
|
11313
11302
|
})(ld);
|
|
11314
11303
|
var hd = ld.exports;
|
|
11315
|
-
const e1 = /* @__PURE__ */
|
|
11304
|
+
const e1 = /* @__PURE__ */ _i(hd), t1 = /* @__PURE__ */ Jm({
|
|
11316
11305
|
__proto__: null,
|
|
11317
11306
|
default: e1
|
|
11318
11307
|
}, [hd]);
|
|
@@ -11429,11 +11418,11 @@ function p1(e) {
|
|
|
11429
11418
|
if (t >= 4)
|
|
11430
11419
|
return [e[0], e[1], e[2], e[3], "".concat(e[0], ".").concat(e[1]), "".concat(e[0], ".").concat(e[2]), "".concat(e[0], ".").concat(e[3]), "".concat(e[1], ".").concat(e[0]), "".concat(e[1], ".").concat(e[2]), "".concat(e[1], ".").concat(e[3]), "".concat(e[2], ".").concat(e[0]), "".concat(e[2], ".").concat(e[1]), "".concat(e[2], ".").concat(e[3]), "".concat(e[3], ".").concat(e[0]), "".concat(e[3], ".").concat(e[1]), "".concat(e[3], ".").concat(e[2]), "".concat(e[0], ".").concat(e[1], ".").concat(e[2]), "".concat(e[0], ".").concat(e[1], ".").concat(e[3]), "".concat(e[0], ".").concat(e[2], ".").concat(e[1]), "".concat(e[0], ".").concat(e[2], ".").concat(e[3]), "".concat(e[0], ".").concat(e[3], ".").concat(e[1]), "".concat(e[0], ".").concat(e[3], ".").concat(e[2]), "".concat(e[1], ".").concat(e[0], ".").concat(e[2]), "".concat(e[1], ".").concat(e[0], ".").concat(e[3]), "".concat(e[1], ".").concat(e[2], ".").concat(e[0]), "".concat(e[1], ".").concat(e[2], ".").concat(e[3]), "".concat(e[1], ".").concat(e[3], ".").concat(e[0]), "".concat(e[1], ".").concat(e[3], ".").concat(e[2]), "".concat(e[2], ".").concat(e[0], ".").concat(e[1]), "".concat(e[2], ".").concat(e[0], ".").concat(e[3]), "".concat(e[2], ".").concat(e[1], ".").concat(e[0]), "".concat(e[2], ".").concat(e[1], ".").concat(e[3]), "".concat(e[2], ".").concat(e[3], ".").concat(e[0]), "".concat(e[2], ".").concat(e[3], ".").concat(e[1]), "".concat(e[3], ".").concat(e[0], ".").concat(e[1]), "".concat(e[3], ".").concat(e[0], ".").concat(e[2]), "".concat(e[3], ".").concat(e[1], ".").concat(e[0]), "".concat(e[3], ".").concat(e[1], ".").concat(e[2]), "".concat(e[3], ".").concat(e[2], ".").concat(e[0]), "".concat(e[3], ".").concat(e[2], ".").concat(e[1]), "".concat(e[0], ".").concat(e[1], ".").concat(e[2], ".").concat(e[3]), "".concat(e[0], ".").concat(e[1], ".").concat(e[3], ".").concat(e[2]), "".concat(e[0], ".").concat(e[2], ".").concat(e[1], ".").concat(e[3]), "".concat(e[0], ".").concat(e[2], ".").concat(e[3], ".").concat(e[1]), "".concat(e[0], ".").concat(e[3], ".").concat(e[1], ".").concat(e[2]), "".concat(e[0], ".").concat(e[3], ".").concat(e[2], ".").concat(e[1]), "".concat(e[1], ".").concat(e[0], ".").concat(e[2], ".").concat(e[3]), "".concat(e[1], ".").concat(e[0], ".").concat(e[3], ".").concat(e[2]), "".concat(e[1], ".").concat(e[2], ".").concat(e[0], ".").concat(e[3]), "".concat(e[1], ".").concat(e[2], ".").concat(e[3], ".").concat(e[0]), "".concat(e[1], ".").concat(e[3], ".").concat(e[0], ".").concat(e[2]), "".concat(e[1], ".").concat(e[3], ".").concat(e[2], ".").concat(e[0]), "".concat(e[2], ".").concat(e[0], ".").concat(e[1], ".").concat(e[3]), "".concat(e[2], ".").concat(e[0], ".").concat(e[3], ".").concat(e[1]), "".concat(e[2], ".").concat(e[1], ".").concat(e[0], ".").concat(e[3]), "".concat(e[2], ".").concat(e[1], ".").concat(e[3], ".").concat(e[0]), "".concat(e[2], ".").concat(e[3], ".").concat(e[0], ".").concat(e[1]), "".concat(e[2], ".").concat(e[3], ".").concat(e[1], ".").concat(e[0]), "".concat(e[3], ".").concat(e[0], ".").concat(e[1], ".").concat(e[2]), "".concat(e[3], ".").concat(e[0], ".").concat(e[2], ".").concat(e[1]), "".concat(e[3], ".").concat(e[1], ".").concat(e[0], ".").concat(e[2]), "".concat(e[3], ".").concat(e[1], ".").concat(e[2], ".").concat(e[0]), "".concat(e[3], ".").concat(e[2], ".").concat(e[0], ".").concat(e[1]), "".concat(e[3], ".").concat(e[2], ".").concat(e[1], ".").concat(e[0])];
|
|
11431
11420
|
}
|
|
11432
|
-
var
|
|
11421
|
+
var Rs = {};
|
|
11433
11422
|
function d1(e) {
|
|
11434
11423
|
if (e.length === 0 || e.length === 1) return e;
|
|
11435
11424
|
var t = e.join(".");
|
|
11436
|
-
return
|
|
11425
|
+
return Rs[t] || (Rs[t] = p1(e)), Rs[t];
|
|
11437
11426
|
}
|
|
11438
11427
|
function h1(e) {
|
|
11439
11428
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 ? arguments[2] : void 0, r = e.filter(function(o) {
|
|
@@ -11572,7 +11561,7 @@ function vd(e, t, n) {
|
|
|
11572
11561
|
}, i = typeof e == "function" ? e(t) : e, o = Mt(Mt({}, r), i);
|
|
11573
11562
|
return o;
|
|
11574
11563
|
}
|
|
11575
|
-
function
|
|
11564
|
+
function mi(e) {
|
|
11576
11565
|
var t = e.children, n = e.lineNumber, r = e.lineNumberStyle, i = e.largestLineNumber, o = e.showInlineLineNumbers, u = e.lineProps, c = u === void 0 ? {} : u, d = e.className, h = d === void 0 ? [] : d, g = e.showLineNumbers, v = e.wrapLongLines, D = typeof c == "function" ? c(n) : c;
|
|
11577
11566
|
if (D.className = h, n && o) {
|
|
11578
11567
|
var b = vd(r, n, i);
|
|
@@ -11591,7 +11580,7 @@ function Dd(e) {
|
|
|
11591
11580
|
for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [], r = 0; r < e.length; r++) {
|
|
11592
11581
|
var i = e[r];
|
|
11593
11582
|
if (i.type === "text")
|
|
11594
|
-
n.push(
|
|
11583
|
+
n.push(mi({
|
|
11595
11584
|
children: [i],
|
|
11596
11585
|
className: l1(new Set(t))
|
|
11597
11586
|
}));
|
|
@@ -11608,7 +11597,7 @@ function w1(e, t, n, r, i, o, u, c, d) {
|
|
|
11608
11597
|
var h, g = Dd(e.value), v = [], D = -1, b = 0;
|
|
11609
11598
|
function k(A, $) {
|
|
11610
11599
|
var P = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
11611
|
-
return
|
|
11600
|
+
return mi({
|
|
11612
11601
|
children: A,
|
|
11613
11602
|
lineNumber: $,
|
|
11614
11603
|
lineNumberStyle: c,
|
|
@@ -11636,25 +11625,25 @@ function w1(e, t, n, r, i, o, u, c, d) {
|
|
|
11636
11625
|
if (I) {
|
|
11637
11626
|
var j = P.split(`
|
|
11638
11627
|
`);
|
|
11639
|
-
j.forEach(function(W,
|
|
11628
|
+
j.forEach(function(W, G) {
|
|
11640
11629
|
var V = r && v.length + o, L = {
|
|
11641
11630
|
type: "text",
|
|
11642
11631
|
value: "".concat(W, `
|
|
11643
11632
|
`)
|
|
11644
11633
|
};
|
|
11645
|
-
if (
|
|
11646
|
-
var N = g.slice(D + 1, b).concat(
|
|
11634
|
+
if (G === 0) {
|
|
11635
|
+
var N = g.slice(D + 1, b).concat(mi({
|
|
11647
11636
|
children: [L],
|
|
11648
11637
|
className: $.properties.className
|
|
11649
11638
|
})), q = C(N, V);
|
|
11650
11639
|
v.push(q);
|
|
11651
|
-
} else if (
|
|
11640
|
+
} else if (G === j.length - 1) {
|
|
11652
11641
|
var X = g[b + 1] && g[b + 1].children && g[b + 1].children[0], de = {
|
|
11653
11642
|
type: "text",
|
|
11654
11643
|
value: "".concat(W)
|
|
11655
11644
|
};
|
|
11656
11645
|
if (X) {
|
|
11657
|
-
var Q =
|
|
11646
|
+
var Q = mi({
|
|
11658
11647
|
children: [de],
|
|
11659
11648
|
className: $.properties.className
|
|
11660
11649
|
});
|
|
@@ -11721,7 +11710,7 @@ function _1(e, t) {
|
|
|
11721
11710
|
var i = r.language, o = r.children, u = r.style, c = u === void 0 ? t : u, d = r.customStyle, h = d === void 0 ? {} : d, g = r.codeTagProps, v = g === void 0 ? {
|
|
11722
11711
|
className: i ? "language-".concat(i) : void 0,
|
|
11723
11712
|
style: Mt(Mt({}, c['code[class*="language-"]']), c['code[class*="language-'.concat(i, '"]')])
|
|
11724
|
-
} : g, D = r.useInlineStyles, b = D === void 0 ? !0 : D, k = r.showLineNumbers, x = k === void 0 ? !1 : k, C = r.showInlineLineNumbers, T = C === void 0 ? !0 : C, E = r.startingLineNumber, _ = E === void 0 ? 1 : E, F = r.lineNumberContainerStyle, A = r.lineNumberStyle, $ = A === void 0 ? {} : A, P = r.wrapLines, I = r.wrapLongLines, j = I === void 0 ? !1 : I, W = r.lineProps,
|
|
11713
|
+
} : g, D = r.useInlineStyles, b = D === void 0 ? !0 : D, k = r.showLineNumbers, x = k === void 0 ? !1 : k, C = r.showInlineLineNumbers, T = C === void 0 ? !0 : C, E = r.startingLineNumber, _ = E === void 0 ? 1 : E, F = r.lineNumberContainerStyle, A = r.lineNumberStyle, $ = A === void 0 ? {} : A, P = r.wrapLines, I = r.wrapLongLines, j = I === void 0 ? !1 : I, W = r.lineProps, G = W === void 0 ? {} : W, V = r.renderer, L = r.PreTag, N = L === void 0 ? "pre" : L, q = r.CodeTag, X = q === void 0 ? "code" : q, de = r.code, Q = de === void 0 ? (Array.isArray(o) ? o[0] : o) || "" : de, se = r.astGenerator, he = r1(r, g1);
|
|
11725
11714
|
se = se || e;
|
|
11726
11715
|
var re = x ? /* @__PURE__ */ xe.createElement(b1, {
|
|
11727
11716
|
containerStyle: F,
|
|
@@ -11744,17 +11733,17 @@ function _1(e, t) {
|
|
|
11744
11733
|
}), !se)
|
|
11745
11734
|
return /* @__PURE__ */ xe.createElement(N, Be, re, /* @__PURE__ */ xe.createElement(X, v, Q));
|
|
11746
11735
|
(P === void 0 && V || j) && (P = !0), V = V || C1;
|
|
11747
|
-
var
|
|
11736
|
+
var _e = [{
|
|
11748
11737
|
type: "text",
|
|
11749
11738
|
value: Q
|
|
11750
11739
|
}], Le = x1({
|
|
11751
11740
|
astGenerator: se,
|
|
11752
11741
|
language: i,
|
|
11753
11742
|
code: Q,
|
|
11754
|
-
defaultCodeValue:
|
|
11743
|
+
defaultCodeValue: _e
|
|
11755
11744
|
});
|
|
11756
|
-
Le.language === null && (Le.value =
|
|
11757
|
-
var ce = Le.value.length + _, dt = w1(Le, P,
|
|
11745
|
+
Le.language === null && (Le.value = _e);
|
|
11746
|
+
var ce = Le.value.length + _, dt = w1(Le, P, G, x, T, _, ce, $, j);
|
|
11758
11747
|
return /* @__PURE__ */ xe.createElement(N, Be, /* @__PURE__ */ xe.createElement(X, v, !T && re, V({
|
|
11759
11748
|
rows: dt,
|
|
11760
11749
|
stylesheet: c,
|
|
@@ -11809,14 +11798,14 @@ function Cd(e, t) {
|
|
|
11809
11798
|
this.property = e, this.attribute = t;
|
|
11810
11799
|
}
|
|
11811
11800
|
var Wt = {}, N1 = 0;
|
|
11812
|
-
Wt.boolean =
|
|
11813
|
-
Wt.booleanish =
|
|
11814
|
-
Wt.overloadedBoolean =
|
|
11815
|
-
Wt.number =
|
|
11816
|
-
Wt.spaceSeparated =
|
|
11817
|
-
Wt.commaSeparated =
|
|
11818
|
-
Wt.commaOrSpaceSeparated =
|
|
11819
|
-
function
|
|
11801
|
+
Wt.boolean = Yn();
|
|
11802
|
+
Wt.booleanish = Yn();
|
|
11803
|
+
Wt.overloadedBoolean = Yn();
|
|
11804
|
+
Wt.number = Yn();
|
|
11805
|
+
Wt.spaceSeparated = Yn();
|
|
11806
|
+
Wt.commaSeparated = Yn();
|
|
11807
|
+
Wt.commaOrSpaceSeparated = Yn();
|
|
11808
|
+
function Yn() {
|
|
11820
11809
|
return Math.pow(2, ++N1);
|
|
11821
11810
|
}
|
|
11822
11811
|
var xd = wd, Cc = Wt, _d = Ro;
|
|
@@ -11883,11 +11872,11 @@ var W1 = z1;
|
|
|
11883
11872
|
function z1(e, t) {
|
|
11884
11873
|
return t in e ? e[t] : t;
|
|
11885
11874
|
}
|
|
11886
|
-
var V1 = W1, Ed =
|
|
11887
|
-
function
|
|
11875
|
+
var V1 = W1, Ed = Y1;
|
|
11876
|
+
function Y1(e, t) {
|
|
11888
11877
|
return V1(e, t.toLowerCase());
|
|
11889
11878
|
}
|
|
11890
|
-
var
|
|
11879
|
+
var G1 = _a, K1 = Ed, J1 = G1({
|
|
11891
11880
|
space: "xmlns",
|
|
11892
11881
|
attributes: {
|
|
11893
11882
|
xmlnsxlink: "xmlns:xlink"
|
|
@@ -11954,7 +11943,7 @@ var Y1 = _a, K1 = Ed, J1 = Y1({
|
|
|
11954
11943
|
function Z1(e, t) {
|
|
11955
11944
|
return t === "role" ? t : "aria-" + t.slice(4).toLowerCase();
|
|
11956
11945
|
}
|
|
11957
|
-
var xr = Wt, ek = _a, tk = Ed, oe = xr.boolean, nk = xr.overloadedBoolean, Xr = xr.booleanish,
|
|
11946
|
+
var xr = Wt, ek = _a, tk = Ed, oe = xr.boolean, nk = xr.overloadedBoolean, Xr = xr.booleanish, Ae = xr.number, ut = xr.spaceSeparated, ii = xr.commaSeparated, rk = ek({
|
|
11958
11947
|
space: "html",
|
|
11959
11948
|
attributes: {
|
|
11960
11949
|
acceptcharset: "accept-charset",
|
|
@@ -11987,13 +11976,13 @@ var xr = Wt, ek = _a, tk = Ed, oe = xr.boolean, nk = xr.overloadedBoolean, Xr =
|
|
|
11987
11976
|
checked: oe,
|
|
11988
11977
|
cite: null,
|
|
11989
11978
|
className: ut,
|
|
11990
|
-
cols:
|
|
11979
|
+
cols: Ae,
|
|
11991
11980
|
colSpan: null,
|
|
11992
11981
|
content: null,
|
|
11993
11982
|
contentEditable: Xr,
|
|
11994
11983
|
controls: oe,
|
|
11995
11984
|
controlsList: ut,
|
|
11996
|
-
coords:
|
|
11985
|
+
coords: Ae | ii,
|
|
11997
11986
|
crossOrigin: null,
|
|
11998
11987
|
data: null,
|
|
11999
11988
|
dateTime: null,
|
|
@@ -12014,9 +12003,9 @@ var xr = Wt, ek = _a, tk = Ed, oe = xr.boolean, nk = xr.overloadedBoolean, Xr =
|
|
|
12014
12003
|
formNoValidate: oe,
|
|
12015
12004
|
formTarget: null,
|
|
12016
12005
|
headers: ut,
|
|
12017
|
-
height:
|
|
12006
|
+
height: Ae,
|
|
12018
12007
|
hidden: oe,
|
|
12019
|
-
high:
|
|
12008
|
+
high: Ae,
|
|
12020
12009
|
href: null,
|
|
12021
12010
|
hrefLang: null,
|
|
12022
12011
|
htmlFor: ut,
|
|
@@ -12040,14 +12029,14 @@ var xr = Wt, ek = _a, tk = Ed, oe = xr.boolean, nk = xr.overloadedBoolean, Xr =
|
|
|
12040
12029
|
list: null,
|
|
12041
12030
|
loading: null,
|
|
12042
12031
|
loop: oe,
|
|
12043
|
-
low:
|
|
12032
|
+
low: Ae,
|
|
12044
12033
|
manifest: null,
|
|
12045
12034
|
max: null,
|
|
12046
|
-
maxLength:
|
|
12035
|
+
maxLength: Ae,
|
|
12047
12036
|
media: null,
|
|
12048
12037
|
method: null,
|
|
12049
12038
|
min: null,
|
|
12050
|
-
minLength:
|
|
12039
|
+
minLength: Ae,
|
|
12051
12040
|
multiple: oe,
|
|
12052
12041
|
muted: oe,
|
|
12053
12042
|
name: null,
|
|
@@ -12138,7 +12127,7 @@ var xr = Wt, ek = _a, tk = Ed, oe = xr.boolean, nk = xr.overloadedBoolean, Xr =
|
|
|
12138
12127
|
onWaiting: null,
|
|
12139
12128
|
onWheel: null,
|
|
12140
12129
|
open: oe,
|
|
12141
|
-
optimum:
|
|
12130
|
+
optimum: Ae,
|
|
12142
12131
|
pattern: null,
|
|
12143
12132
|
ping: ut,
|
|
12144
12133
|
placeholder: null,
|
|
@@ -12150,27 +12139,27 @@ var xr = Wt, ek = _a, tk = Ed, oe = xr.boolean, nk = xr.overloadedBoolean, Xr =
|
|
|
12150
12139
|
rel: ut,
|
|
12151
12140
|
required: oe,
|
|
12152
12141
|
reversed: oe,
|
|
12153
|
-
rows:
|
|
12154
|
-
rowSpan:
|
|
12142
|
+
rows: Ae,
|
|
12143
|
+
rowSpan: Ae,
|
|
12155
12144
|
sandbox: ut,
|
|
12156
12145
|
scope: null,
|
|
12157
12146
|
scoped: oe,
|
|
12158
12147
|
seamless: oe,
|
|
12159
12148
|
selected: oe,
|
|
12160
12149
|
shape: null,
|
|
12161
|
-
size:
|
|
12150
|
+
size: Ae,
|
|
12162
12151
|
sizes: null,
|
|
12163
12152
|
slot: null,
|
|
12164
|
-
span:
|
|
12153
|
+
span: Ae,
|
|
12165
12154
|
spellCheck: Xr,
|
|
12166
12155
|
src: null,
|
|
12167
12156
|
srcDoc: null,
|
|
12168
12157
|
srcLang: null,
|
|
12169
12158
|
srcSet: ii,
|
|
12170
|
-
start:
|
|
12159
|
+
start: Ae,
|
|
12171
12160
|
step: null,
|
|
12172
12161
|
style: null,
|
|
12173
|
-
tabIndex:
|
|
12162
|
+
tabIndex: Ae,
|
|
12174
12163
|
target: null,
|
|
12175
12164
|
title: null,
|
|
12176
12165
|
translate: null,
|
|
@@ -12178,7 +12167,7 @@ var xr = Wt, ek = _a, tk = Ed, oe = xr.boolean, nk = xr.overloadedBoolean, Xr =
|
|
|
12178
12167
|
typeMustMatch: oe,
|
|
12179
12168
|
useMap: null,
|
|
12180
12169
|
value: Xr,
|
|
12181
|
-
width:
|
|
12170
|
+
width: Ae,
|
|
12182
12171
|
wrap: null,
|
|
12183
12172
|
// Legacy.
|
|
12184
12173
|
// See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
|
|
@@ -12194,11 +12183,11 @@ var xr = Wt, ek = _a, tk = Ed, oe = xr.boolean, nk = xr.overloadedBoolean, Xr =
|
|
|
12194
12183
|
// `<body>`. Use CSS `background-image` instead
|
|
12195
12184
|
bgColor: null,
|
|
12196
12185
|
// `<body>` and table elements. Use CSS `background-color` instead
|
|
12197
|
-
border:
|
|
12186
|
+
border: Ae,
|
|
12198
12187
|
// `<table>`. Use CSS `border-width` instead,
|
|
12199
12188
|
borderColor: null,
|
|
12200
12189
|
// `<table>`. Use CSS `border-color` instead,
|
|
12201
|
-
bottomMargin:
|
|
12190
|
+
bottomMargin: Ae,
|
|
12202
12191
|
// `<body>`
|
|
12203
12192
|
cellPadding: null,
|
|
12204
12193
|
// `<table>`
|
|
@@ -12232,9 +12221,9 @@ var xr = Wt, ek = _a, tk = Ed, oe = xr.boolean, nk = xr.overloadedBoolean, Xr =
|
|
|
12232
12221
|
// `<table>`
|
|
12233
12222
|
frameBorder: null,
|
|
12234
12223
|
// `<iframe>`. Use CSS `border` instead
|
|
12235
|
-
hSpace:
|
|
12224
|
+
hSpace: Ae,
|
|
12236
12225
|
// `<img>` and `<object>`
|
|
12237
|
-
leftMargin:
|
|
12226
|
+
leftMargin: Ae,
|
|
12238
12227
|
// `<body>`
|
|
12239
12228
|
link: null,
|
|
12240
12229
|
// `<body>`. Use CSS `a:link {color: *}` instead
|
|
@@ -12242,9 +12231,9 @@ var xr = Wt, ek = _a, tk = Ed, oe = xr.boolean, nk = xr.overloadedBoolean, Xr =
|
|
|
12242
12231
|
// `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
|
|
12243
12232
|
lowSrc: null,
|
|
12244
12233
|
// `<img>`. Use a `<picture>`
|
|
12245
|
-
marginHeight:
|
|
12234
|
+
marginHeight: Ae,
|
|
12246
12235
|
// `<body>`
|
|
12247
|
-
marginWidth:
|
|
12236
|
+
marginWidth: Ae,
|
|
12248
12237
|
// `<body>`
|
|
12249
12238
|
noResize: oe,
|
|
12250
12239
|
// `<frame>`
|
|
@@ -12262,7 +12251,7 @@ var xr = Wt, ek = _a, tk = Ed, oe = xr.boolean, nk = xr.overloadedBoolean, Xr =
|
|
|
12262
12251
|
// `<isindex>`
|
|
12263
12252
|
rev: null,
|
|
12264
12253
|
// `<link>`
|
|
12265
|
-
rightMargin:
|
|
12254
|
+
rightMargin: Ae,
|
|
12266
12255
|
// `<body>`
|
|
12267
12256
|
rules: null,
|
|
12268
12257
|
// `<table>`
|
|
@@ -12276,7 +12265,7 @@ var xr = Wt, ek = _a, tk = Ed, oe = xr.boolean, nk = xr.overloadedBoolean, Xr =
|
|
|
12276
12265
|
// `<table>`
|
|
12277
12266
|
text: null,
|
|
12278
12267
|
// `<body>`. Use CSS `color` instead
|
|
12279
|
-
topMargin:
|
|
12268
|
+
topMargin: Ae,
|
|
12280
12269
|
// `<body>`
|
|
12281
12270
|
valueType: null,
|
|
12282
12271
|
// `<param>`
|
|
@@ -12286,7 +12275,7 @@ var xr = Wt, ek = _a, tk = Ed, oe = xr.boolean, nk = xr.overloadedBoolean, Xr =
|
|
|
12286
12275
|
// Several. Use CSS `vertical-align` instead
|
|
12287
12276
|
vLink: null,
|
|
12288
12277
|
// `<body>`. Use CSS `a:visited {color}` instead
|
|
12289
|
-
vSpace:
|
|
12278
|
+
vSpace: Ae,
|
|
12290
12279
|
// `<img>` and `<object>`
|
|
12291
12280
|
// Non-standard Properties.
|
|
12292
12281
|
allowTransparency: null,
|
|
@@ -12296,7 +12285,7 @@ var xr = Wt, ek = _a, tk = Ed, oe = xr.boolean, nk = xr.overloadedBoolean, Xr =
|
|
|
12296
12285
|
disableRemotePlayback: oe,
|
|
12297
12286
|
prefix: null,
|
|
12298
12287
|
property: null,
|
|
12299
|
-
results:
|
|
12288
|
+
results: Ae,
|
|
12300
12289
|
security: null,
|
|
12301
12290
|
unselectable: null
|
|
12302
12291
|
}
|
|
@@ -12413,12 +12402,12 @@ function Mk(e) {
|
|
|
12413
12402
|
var Rk = ck, qk = Bk, $d = qk(Rk, "div");
|
|
12414
12403
|
$d.displayName = "html";
|
|
12415
12404
|
var Hk = $d, Uk = Hk;
|
|
12416
|
-
const Wk = "Æ", zk = "&", Vk = "Á",
|
|
12405
|
+
const Wk = "Æ", zk = "&", Vk = "Á", Yk = "Â", Gk = "À", Kk = "Å", Jk = "Ã", Xk = "Ä", Qk = "©", Zk = "Ç", ew = "Ð", tw = "É", nw = "Ê", rw = "È", aw = "Ë", iw = ">", sw = "Í", ow = "Î", lw = "Ì", uw = "Ï", cw = "<", pw = "Ñ", dw = "Ó", hw = "Ô", fw = "Ò", mw = "Ø", gw = "Õ", vw = "Ö", Dw = '"', yw = "®", bw = "Þ", kw = "Ú", ww = "Û", Cw = "Ù", xw = "Ü", _w = "Ý", Sw = "á", Ew = "â", Fw = "´", Aw = "æ", $w = "à", Tw = "&", Bw = "å", Nw = "ã", jw = "ä", Pw = "¦", Lw = "ç", Ow = "¸", Iw = "¢", Mw = "©", Rw = "¤", qw = "°", Hw = "÷", Uw = "é", Ww = "ê", zw = "è", Vw = "ð", Yw = "ë", Gw = "½", Kw = "¼", Jw = "¾", Xw = ">", Qw = "í", Zw = "î", eC = "¡", tC = "ì", nC = "¿", rC = "ï", aC = "«", iC = "<", sC = "¯", oC = "µ", lC = "·", uC = " ", cC = "¬", pC = "ñ", dC = "ó", hC = "ô", fC = "ò", mC = "ª", gC = "º", vC = "ø", DC = "õ", yC = "ö", bC = "¶", kC = "±", wC = "£", CC = '"', xC = "»", _C = "®", SC = "§", EC = "", FC = "¹", AC = "²", $C = "³", TC = "ß", BC = "þ", NC = "×", jC = "ú", PC = "û", LC = "ù", OC = "¨", IC = "ü", MC = "ý", RC = "¥", qC = "ÿ", HC = {
|
|
12417
12406
|
AElig: Wk,
|
|
12418
12407
|
AMP: zk,
|
|
12419
12408
|
Aacute: Vk,
|
|
12420
|
-
Acirc:
|
|
12421
|
-
Agrave:
|
|
12409
|
+
Acirc: Yk,
|
|
12410
|
+
Agrave: Gk,
|
|
12422
12411
|
Aring: Kk,
|
|
12423
12412
|
Atilde: Jk,
|
|
12424
12413
|
Auml: Xk,
|
|
@@ -12471,8 +12460,8 @@ const Wk = "Æ", zk = "&", Vk = "Á", Gk = "Â", Yk = "À", Kk = "Å", Jk = "Ã"
|
|
|
12471
12460
|
ecirc: Ww,
|
|
12472
12461
|
egrave: zw,
|
|
12473
12462
|
eth: Vw,
|
|
12474
|
-
euml:
|
|
12475
|
-
frac12:
|
|
12463
|
+
euml: Yw,
|
|
12464
|
+
frac12: Gw,
|
|
12476
12465
|
frac14: Kw,
|
|
12477
12466
|
frac34: Jw,
|
|
12478
12467
|
gt: Xw,
|
|
@@ -12560,12 +12549,12 @@ function VC(e) {
|
|
|
12560
12549
|
var t = typeof e == "string" ? e.charCodeAt(0) : e;
|
|
12561
12550
|
return t >= 97 && t <= 102 || t >= 65 && t <= 70 || t >= 48 && t <= 57;
|
|
12562
12551
|
}
|
|
12563
|
-
var
|
|
12564
|
-
function
|
|
12552
|
+
var YC = GC;
|
|
12553
|
+
function GC(e) {
|
|
12565
12554
|
var t = typeof e == "string" ? e.charCodeAt(0) : e;
|
|
12566
12555
|
return t >= 97 && t <= 122 || t >= 65 && t <= 90;
|
|
12567
12556
|
}
|
|
12568
|
-
var KC =
|
|
12557
|
+
var KC = YC, JC = Td, XC = QC;
|
|
12569
12558
|
function QC(e) {
|
|
12570
12559
|
return KC(e) || JC(e);
|
|
12571
12560
|
}
|
|
@@ -12585,13 +12574,13 @@ var Nc = HC, jc = UC, nx = Td, rx = zC, Bd = XC, ax = ex, ix = Dx, sx = {}.hasOw
|
|
|
12585
12574
|
additional: null,
|
|
12586
12575
|
attribute: !1,
|
|
12587
12576
|
nonTerminated: !0
|
|
12588
|
-
}, lx = 9, Lc = 10, ux = 12, cx = 32, Oc = 38, px = 59, dx = 60, hx = 61, fx = 35, mx = 88, gx = 120, vx = 65533, lr = "named", zo = "hexadecimal", Vo = "decimal",
|
|
12589
|
-
|
|
12590
|
-
|
|
12591
|
-
var
|
|
12592
|
-
|
|
12593
|
-
|
|
12594
|
-
|
|
12577
|
+
}, lx = 9, Lc = 10, ux = 12, cx = 32, Oc = 38, px = 59, dx = 60, hx = 61, fx = 35, mx = 88, gx = 120, vx = 65533, lr = "named", zo = "hexadecimal", Vo = "decimal", Yo = {};
|
|
12578
|
+
Yo[zo] = 16;
|
|
12579
|
+
Yo[Vo] = 10;
|
|
12580
|
+
var Ri = {};
|
|
12581
|
+
Ri[lr] = Bd;
|
|
12582
|
+
Ri[Vo] = nx;
|
|
12583
|
+
Ri[zo] = rx;
|
|
12595
12584
|
var Nd = 1, jd = 2, Pd = 3, Ld = 4, Od = 5, ho = 6, Id = 7, wn = {};
|
|
12596
12585
|
wn[Nd] = "Named character references must be terminated by a semicolon";
|
|
12597
12586
|
wn[jd] = "Numeric character references must be terminated by a semicolon";
|
|
@@ -12608,16 +12597,16 @@ function Dx(e, t) {
|
|
|
12608
12597
|
return (n.position.indent || n.position.start) && (n.indent = n.position.indent || [], n.position = n.position.start), yx(e, n);
|
|
12609
12598
|
}
|
|
12610
12599
|
function yx(e, t) {
|
|
12611
|
-
var n = t.additional, r = t.nonTerminated, i = t.text, o = t.reference, u = t.warning, c = t.textContext, d = t.referenceContext, h = t.warningContext, g = t.position, v = t.indent || [], D = e.length, b = 0, k = -1, x = g.column || 1, C = g.line || 1, T = "", E = [], _, F, A, $, P, I, j, W,
|
|
12600
|
+
var n = t.additional, r = t.nonTerminated, i = t.text, o = t.reference, u = t.warning, c = t.textContext, d = t.referenceContext, h = t.warningContext, g = t.position, v = t.indent || [], D = e.length, b = 0, k = -1, x = g.column || 1, C = g.line || 1, T = "", E = [], _, F, A, $, P, I, j, W, G, V, L, N, q, X, de, Q, se, he, re;
|
|
12612
12601
|
for (typeof n == "string" && (n = n.charCodeAt(0)), Q = ge(), W = u ? at : ox, b--, D++; ++b < D; )
|
|
12613
12602
|
if (P === Lc && (x = v[k] || 1), P = e.charCodeAt(b), P === Oc) {
|
|
12614
12603
|
if (j = e.charCodeAt(b + 1), j === lx || j === Lc || j === ux || j === cx || j === Oc || j === dx || j !== j || n && j === n) {
|
|
12615
12604
|
T += ir(P), x++;
|
|
12616
12605
|
continue;
|
|
12617
12606
|
}
|
|
12618
|
-
for (q = b + 1, N = q, re = q, j === fx ? (re = ++N, j = e.charCodeAt(re), j === mx || j === gx ? (X = zo, re = ++N) : X = Vo) : X = lr, _ = "", L = "", $ = "", de =
|
|
12607
|
+
for (q = b + 1, N = q, re = q, j === fx ? (re = ++N, j = e.charCodeAt(re), j === mx || j === gx ? (X = zo, re = ++N) : X = Vo) : X = lr, _ = "", L = "", $ = "", de = Ri[X], re--; ++re < D && (j = e.charCodeAt(re), !!de(j)); )
|
|
12619
12608
|
$ += ir(j), X === lr && sx.call(Nc, $) && (_ = $, L = Nc[$]);
|
|
12620
|
-
A = e.charCodeAt(re) === px, A && (re++, F = X === lr ? ax($) : !1, F && (_ = $, L = F)), he = 1 + re - q, !A && !r || ($ ? X === lr ? (A && !L ? W(Od, 1) : (_ !== $ && (re = N + _.length, he = 1 + re - N, A = !1), A || (
|
|
12609
|
+
A = e.charCodeAt(re) === px, A && (re++, F = X === lr ? ax($) : !1, F && (_ = $, L = F)), he = 1 + re - q, !A && !r || ($ ? X === lr ? (A && !L ? W(Od, 1) : (_ !== $ && (re = N + _.length, he = 1 + re - N, A = !1), A || (G = _ ? Nd : Pd, t.attribute ? (j = e.charCodeAt(re), j === hx ? (W(G, he), L = null) : Bd(j) ? L = null : W(G, he)) : W(G, he))), I = L) : (A || W(jd, he), I = parseInt($, Yo[X]), bx(I) ? (W(Id, he), I = ir(vx)) : I in jc ? (W(ho, he), I = jc[I]) : (V = "", kx(I) && W(ho, he), I > 65535 && (I -= 65536, V += ir(I >>> 10 | 55296), I = 56320 | I & 1023), I = V + ir(I))) : X !== lr && W(Ld, he)), I ? (Be(), Q = ge(), b = re - 1, x += re - q + 1, E.push(I), se = ge(), se.offset++, o && o.call(
|
|
12621
12610
|
d,
|
|
12622
12611
|
I,
|
|
12623
12612
|
{ start: Q, end: se },
|
|
@@ -12633,9 +12622,9 @@ function yx(e, t) {
|
|
|
12633
12622
|
offset: b + (g.offset || 0)
|
|
12634
12623
|
};
|
|
12635
12624
|
}
|
|
12636
|
-
function at(
|
|
12625
|
+
function at(_e, Le) {
|
|
12637
12626
|
var ce = ge();
|
|
12638
|
-
ce.column += Le, ce.offset += Le, u.call(h, wn[
|
|
12627
|
+
ce.column += Le, ce.offset += Le, u.call(h, wn[_e], ce, _e);
|
|
12639
12628
|
}
|
|
12640
12629
|
function Be() {
|
|
12641
12630
|
T && (E.push(T), i && i.call(c, T, { start: Q, end: ge() }), T = "");
|
|
@@ -13003,8 +12992,8 @@ var Md = { exports: {} };
|
|
|
13003
12992
|
F.hasOwnProperty(I) || (P[I] = $[I]);
|
|
13004
12993
|
}
|
|
13005
12994
|
var W = A[E];
|
|
13006
|
-
return A[E] = P, c.languages.DFS(c.languages, function(
|
|
13007
|
-
V === W &&
|
|
12995
|
+
return A[E] = P, c.languages.DFS(c.languages, function(G, V) {
|
|
12996
|
+
V === W && G != E && (this[G] = P);
|
|
13008
12997
|
}), P;
|
|
13009
12998
|
},
|
|
13010
12999
|
// Traverse a language definition with Depth First Search
|
|
@@ -13111,10 +13100,10 @@ var Md = { exports: {} };
|
|
|
13111
13100
|
return;
|
|
13112
13101
|
}
|
|
13113
13102
|
if (_ && r.Worker) {
|
|
13114
|
-
var
|
|
13115
|
-
|
|
13103
|
+
var G = new Worker(c.filename);
|
|
13104
|
+
G.onmessage = function(V) {
|
|
13116
13105
|
W(V.data);
|
|
13117
|
-
},
|
|
13106
|
+
}, G.postMessage(JSON.stringify({
|
|
13118
13107
|
language: j.language,
|
|
13119
13108
|
code: j.code,
|
|
13120
13109
|
immediateClose: !0
|
|
@@ -13271,12 +13260,12 @@ var Md = { exports: {} };
|
|
|
13271
13260
|
for (var W = 0; W < j.length; ++W) {
|
|
13272
13261
|
if (P && P.cause == I + "," + W)
|
|
13273
13262
|
return;
|
|
13274
|
-
var
|
|
13275
|
-
if (N && !
|
|
13276
|
-
var X =
|
|
13277
|
-
|
|
13263
|
+
var G = j[W], V = G.inside, L = !!G.lookbehind, N = !!G.greedy, q = G.alias;
|
|
13264
|
+
if (N && !G.pattern.global) {
|
|
13265
|
+
var X = G.pattern.toString().match(/[imsuy]*$/)[0];
|
|
13266
|
+
G.pattern = RegExp(G.pattern.source, X + "g");
|
|
13278
13267
|
}
|
|
13279
|
-
for (var de =
|
|
13268
|
+
for (var de = G.pattern || G, Q = A.next, se = $; Q !== _.tail && !(P && se >= P.reach); se += Q.value.length, Q = Q.next) {
|
|
13280
13269
|
var he = Q.value;
|
|
13281
13270
|
if (_.length > E.length)
|
|
13282
13271
|
return;
|
|
@@ -13290,8 +13279,8 @@ var Md = { exports: {} };
|
|
|
13290
13279
|
Q = Q.next, Be += Q.value.length;
|
|
13291
13280
|
if (Be -= Q.value.length, se = Be, Q.value instanceof d)
|
|
13292
13281
|
continue;
|
|
13293
|
-
for (var
|
|
13294
|
-
re++, Be +=
|
|
13282
|
+
for (var _e = Q; _e !== _.tail && (Be < at || typeof _e.value == "string"); _e = _e.next)
|
|
13283
|
+
re++, Be += _e.value.length;
|
|
13295
13284
|
re--, he = E.slice(se, Be), ge.index -= se;
|
|
13296
13285
|
} else if (ge = h(de, 0, he, L), !ge)
|
|
13297
13286
|
continue;
|
|
@@ -13348,10 +13337,10 @@ var Md = { exports: {} };
|
|
|
13348
13337
|
}(t);
|
|
13349
13338
|
e.exports && (e.exports = n), typeof gn < "u" && (gn.Prism = n);
|
|
13350
13339
|
})(Md);
|
|
13351
|
-
var wx = Md.exports, Cx =
|
|
13352
|
-
|
|
13353
|
-
|
|
13354
|
-
function
|
|
13340
|
+
var wx = Md.exports, Cx = Go;
|
|
13341
|
+
Go.displayName = "markup";
|
|
13342
|
+
Go.aliases = ["html", "mathml", "svg", "xml", "ssml", "atom", "rss"];
|
|
13343
|
+
function Go(e) {
|
|
13355
13344
|
e.languages.markup = {
|
|
13356
13345
|
comment: {
|
|
13357
13346
|
pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
|
|
@@ -13843,7 +13832,7 @@ function Ux() {
|
|
|
13843
13832
|
e ? ea.Prism = t : delete ea.Prism, e = void 0, t = void 0;
|
|
13844
13833
|
}
|
|
13845
13834
|
}
|
|
13846
|
-
const Zo = /* @__PURE__ */
|
|
13835
|
+
const Zo = /* @__PURE__ */ _i(jx);
|
|
13847
13836
|
var fa = _1(Zo, {});
|
|
13848
13837
|
fa.registerLanguage = function(e, t) {
|
|
13849
13838
|
return Zo.register(t);
|
|
@@ -14114,7 +14103,7 @@ function el(e) {
|
|
|
14114
14103
|
});
|
|
14115
14104
|
})(e);
|
|
14116
14105
|
}
|
|
14117
|
-
const zx = /* @__PURE__ */
|
|
14106
|
+
const zx = /* @__PURE__ */ _i(Wx), Mc = Ne(
|
|
14118
14107
|
({
|
|
14119
14108
|
ariaDescribedby: e,
|
|
14120
14109
|
ariaLabelledby: t,
|
|
@@ -14305,12 +14294,12 @@ const Vx = Ne(
|
|
|
14305
14294
|
suffix: I,
|
|
14306
14295
|
type: j = "text",
|
|
14307
14296
|
useWrapper: W = !0,
|
|
14308
|
-
omitSearchIcon:
|
|
14297
|
+
omitSearchIcon: G = !1,
|
|
14309
14298
|
value: V,
|
|
14310
14299
|
onChange: L,
|
|
14311
14300
|
...N
|
|
14312
14301
|
}, q) => {
|
|
14313
|
-
const X = [u, "pkt-textinput"].join(" "), de = n || `${e}-label`, Q = j === "search" && !b && !
|
|
14302
|
+
const X = [u, "pkt-textinput"].join(" "), de = n || `${e}-label`, Q = j === "search" && !b && !G;
|
|
14314
14303
|
ga(null);
|
|
14315
14304
|
const [se, he] = Ve(0), re = (ge) => {
|
|
14316
14305
|
var at, Be;
|
|
@@ -14371,7 +14360,7 @@ const Vx = Ne(
|
|
|
14371
14360
|
}
|
|
14372
14361
|
);
|
|
14373
14362
|
}
|
|
14374
|
-
),
|
|
14363
|
+
), Yx = [
|
|
14375
14364
|
{
|
|
14376
14365
|
id: "24h",
|
|
14377
14366
|
fn: "24h.svg",
|
|
@@ -15297,7 +15286,7 @@ const Vx = Ne(
|
|
|
15297
15286
|
fn: "workplace.svg",
|
|
15298
15287
|
cat: "social"
|
|
15299
15288
|
}
|
|
15300
|
-
],
|
|
15289
|
+
], qs = ({
|
|
15301
15290
|
className: e,
|
|
15302
15291
|
compact: t = !1,
|
|
15303
15292
|
skin: n = "basic",
|
|
@@ -15316,7 +15305,7 @@ const Vx = Ne(
|
|
|
15316
15305
|
role: "table",
|
|
15317
15306
|
children: i
|
|
15318
15307
|
}
|
|
15319
|
-
),
|
|
15308
|
+
), Hs = ({ className: e, children: t }) => /* @__PURE__ */ m.jsx("thead", { className: nt(e, "pkt-table__header", {}), role: "rowgroup", children: t }), Us = ({ children: e, className: t }) => /* @__PURE__ */ m.jsx("tbody", { className: nt(t, "pkt-table__body", {}), role: "rowgroup", children: e }), sr = ({ className: e, children: t }) => /* @__PURE__ */ m.jsx("tr", { className: nt(e, "pkt-table__row", {}), role: "row", children: t }), Gt = ({ className: e, children: t }) => /* @__PURE__ */ m.jsx("th", { className: nt(e, "pkt-table__header-cell", {}), role: "columnheader", children: t }), Bt = ({ children: e, className: t, dataLabel: n }) => /* @__PURE__ */ m.jsx(
|
|
15320
15309
|
"td",
|
|
15321
15310
|
{
|
|
15322
15311
|
className: nt(t, "pkt-table__data-cell", {}),
|
|
@@ -15325,20 +15314,20 @@ const Vx = Ne(
|
|
|
15325
15314
|
"data-testid": "pkt-table__data-cell",
|
|
15326
15315
|
children: e
|
|
15327
15316
|
}
|
|
15328
|
-
),
|
|
15317
|
+
), Gx = ({ specs: e }) => {
|
|
15329
15318
|
const t = (r) => Array.isArray(r) ? r.join(`
|
|
15330
15319
|
`) : r, n = (r) => typeof r == "boolean" ? r ? "true" : "false" : r;
|
|
15331
15320
|
return /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
15332
15321
|
/* @__PURE__ */ m.jsx("h2", { children: "Egenskaper" }),
|
|
15333
|
-
/* @__PURE__ */ m.jsxs(
|
|
15334
|
-
/* @__PURE__ */ m.jsx(
|
|
15335
|
-
/* @__PURE__ */ m.jsx(
|
|
15336
|
-
/* @__PURE__ */ m.jsx(
|
|
15337
|
-
/* @__PURE__ */ m.jsx(
|
|
15338
|
-
/* @__PURE__ */ m.jsx(
|
|
15339
|
-
/* @__PURE__ */ m.jsx(
|
|
15322
|
+
/* @__PURE__ */ m.jsxs(qs, { compact: !0, children: [
|
|
15323
|
+
/* @__PURE__ */ m.jsx(Hs, { children: /* @__PURE__ */ m.jsxs(sr, { children: [
|
|
15324
|
+
/* @__PURE__ */ m.jsx(Gt, { children: "Navn" }),
|
|
15325
|
+
/* @__PURE__ */ m.jsx(Gt, { children: "Prop" }),
|
|
15326
|
+
/* @__PURE__ */ m.jsx(Gt, { children: "Beskrivelse" }),
|
|
15327
|
+
/* @__PURE__ */ m.jsx(Gt, { children: "Type" }),
|
|
15328
|
+
/* @__PURE__ */ m.jsx(Gt, { children: "Standardverdi" })
|
|
15340
15329
|
] }) }),
|
|
15341
|
-
/* @__PURE__ */ m.jsx(
|
|
15330
|
+
/* @__PURE__ */ m.jsx(Us, { children: Object.entries(e.props || {}).map(([r, i]) => /* @__PURE__ */ m.jsxs(sr, { children: [
|
|
15342
15331
|
/* @__PURE__ */ m.jsx(Bt, { dataLabel: "Prop", children: /* @__PURE__ */ m.jsx("pre", { children: r }) }),
|
|
15343
15332
|
/* @__PURE__ */ m.jsx(Bt, { dataLabel: "Navn", children: !Array.isArray(i) && i.name || r }),
|
|
15344
15333
|
Array.isArray(i) ? /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
@@ -15354,12 +15343,12 @@ const Vx = Ne(
|
|
|
15354
15343
|
] }),
|
|
15355
15344
|
e.events && /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
15356
15345
|
/* @__PURE__ */ m.jsx("h2", { children: "Hendelser / handlinger" }),
|
|
15357
|
-
/* @__PURE__ */ m.jsxs(
|
|
15358
|
-
/* @__PURE__ */ m.jsx(
|
|
15359
|
-
/* @__PURE__ */ m.jsx(
|
|
15360
|
-
/* @__PURE__ */ m.jsx(
|
|
15346
|
+
/* @__PURE__ */ m.jsxs(qs, { compact: !0, children: [
|
|
15347
|
+
/* @__PURE__ */ m.jsx(Hs, { children: /* @__PURE__ */ m.jsxs(sr, { children: [
|
|
15348
|
+
/* @__PURE__ */ m.jsx(Gt, { children: "Event" }),
|
|
15349
|
+
/* @__PURE__ */ m.jsx(Gt, { children: "Beskrivelse" })
|
|
15361
15350
|
] }) }),
|
|
15362
|
-
/* @__PURE__ */ m.jsx(
|
|
15351
|
+
/* @__PURE__ */ m.jsx(Us, { children: Object.entries(e.events || {}).map(([r, i]) => /* @__PURE__ */ m.jsxs(sr, { children: [
|
|
15363
15352
|
/* @__PURE__ */ m.jsx(Bt, { dataLabel: "Event", children: /* @__PURE__ */ m.jsx("pre", { children: r }) }),
|
|
15364
15353
|
/* @__PURE__ */ m.jsx(Bt, { dataLabel: "Beskrivelse", children: /* @__PURE__ */ m.jsx("span", { dangerouslySetInnerHTML: { __html: i.description || "" } }) })
|
|
15365
15354
|
] }, r)) })
|
|
@@ -15367,12 +15356,12 @@ const Vx = Ne(
|
|
|
15367
15356
|
] }),
|
|
15368
15357
|
e.slots && /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
15369
15358
|
/* @__PURE__ */ m.jsx("h2", { children: "Innhold" }),
|
|
15370
|
-
/* @__PURE__ */ m.jsxs(
|
|
15371
|
-
/* @__PURE__ */ m.jsx(
|
|
15372
|
-
/* @__PURE__ */ m.jsx(
|
|
15373
|
-
/* @__PURE__ */ m.jsx(
|
|
15359
|
+
/* @__PURE__ */ m.jsxs(qs, { compact: !0, children: [
|
|
15360
|
+
/* @__PURE__ */ m.jsx(Hs, { children: /* @__PURE__ */ m.jsxs(sr, { children: [
|
|
15361
|
+
/* @__PURE__ */ m.jsx(Gt, { children: "Slot" }),
|
|
15362
|
+
/* @__PURE__ */ m.jsx(Gt, { children: "Beskrivelse" })
|
|
15374
15363
|
] }) }),
|
|
15375
|
-
/* @__PURE__ */ m.jsx(
|
|
15364
|
+
/* @__PURE__ */ m.jsx(Us, { children: Object.entries(e.slots || {}).map(([r, i]) => /* @__PURE__ */ m.jsxs(sr, { children: [
|
|
15376
15365
|
/* @__PURE__ */ m.jsx(Bt, { dataLabel: "Slot", children: /* @__PURE__ */ m.jsx("pre", { children: r }) }),
|
|
15377
15366
|
/* @__PURE__ */ m.jsx(Bt, { dataLabel: "Beskrivelse", children: /* @__PURE__ */ m.jsx("span", { dangerouslySetInnerHTML: { __html: i.description || "" } }) })
|
|
15378
15367
|
] }, r)) })
|
|
@@ -15382,7 +15371,7 @@ const Vx = Ne(
|
|
|
15382
15371
|
};
|
|
15383
15372
|
fa.registerLanguage("jsx", zx);
|
|
15384
15373
|
const Kx = ({ specs: e, children: t, fullWidth: n }) => {
|
|
15385
|
-
var
|
|
15374
|
+
var G, V;
|
|
15386
15375
|
const r = e.props && typeof e.props == "object" && !Array.isArray(e.props) ? Object.entries(e.props).reduce((L, [N, q]) => (typeof q == "object" && !Array.isArray(q) && q.default !== void 0 && q.default !== null && (q.default === "false" && (q.default = !1), q.default === "true" && (q.default = !0), L[N] = q.default), L), {}) : {}, [i, o] = Ve(r), [u, c] = Ve("light"), [d, h] = Ve(""), [g, v] = Ve(""), [D, b] = Ve(""), [k, x] = Ve("Rediger innhold"), [C, T] = Ve([
|
|
15387
15376
|
{
|
|
15388
15377
|
text: "Rediger",
|
|
@@ -15449,7 +15438,7 @@ const Kx = ({ specs: e, children: t, fullWidth: n }) => {
|
|
|
15449
15438
|
] }), I = ta(t) && Km(
|
|
15450
15439
|
t,
|
|
15451
15440
|
{ ...i },
|
|
15452
|
-
t.props.children ? t.props.children : (
|
|
15441
|
+
t.props.children ? t.props.children : (G = e.slots) != null && G.default ? k : null
|
|
15453
15442
|
), j = (L, N, q = !1) => {
|
|
15454
15443
|
if (!q && (!N || N == "false")) {
|
|
15455
15444
|
const { [L]: X, ...de } = i;
|
|
@@ -15470,7 +15459,7 @@ const Kx = ({ specs: e, children: t, fullWidth: n }) => {
|
|
|
15470
15459
|
hasFieldset: !0,
|
|
15471
15460
|
requiredTag: N.required,
|
|
15472
15461
|
children: /* @__PURE__ */ m.jsx(
|
|
15473
|
-
|
|
15462
|
+
Gs,
|
|
15474
15463
|
{
|
|
15475
15464
|
id: L,
|
|
15476
15465
|
label: L,
|
|
@@ -15495,7 +15484,7 @@ const Kx = ({ specs: e, children: t, fullWidth: n }) => {
|
|
|
15495
15484
|
requiredTag: N.required,
|
|
15496
15485
|
children: [
|
|
15497
15486
|
/* @__PURE__ */ m.jsx("option", { value: "" }),
|
|
15498
|
-
|
|
15487
|
+
Yx.map((q) => /* @__PURE__ */ m.jsx("option", { value: q.id, children: q.id }, q.id))
|
|
15499
15488
|
]
|
|
15500
15489
|
}
|
|
15501
15490
|
);
|
|
@@ -15544,7 +15533,7 @@ const Kx = ({ specs: e, children: t, fullWidth: n }) => {
|
|
|
15544
15533
|
return /* @__PURE__ */ m.jsxs("div", { className: "pkt-preview", children: [
|
|
15545
15534
|
/* @__PURE__ */ m.jsxs("div", { className: "pkt-preview__component-container", "data-mode": u, children: [
|
|
15546
15535
|
e["dark-mode"] && /* @__PURE__ */ m.jsx("div", { className: "pkt-preview__mode", children: /* @__PURE__ */ m.jsx(
|
|
15547
|
-
|
|
15536
|
+
Gs,
|
|
15548
15537
|
{
|
|
15549
15538
|
id: "mode",
|
|
15550
15539
|
label: "Dark mode",
|
|
@@ -15593,13 +15582,13 @@ const Kx = ({ specs: e, children: t, fullWidth: n }) => {
|
|
|
15593
15582
|
/* @__PURE__ */ m.jsx(fa, { language: "html", style: Ic, children: d }),
|
|
15594
15583
|
P("html", d)
|
|
15595
15584
|
] }),
|
|
15596
|
-
/* @__PURE__ */ m.jsx("div", { className: `pkt-preview__specs ${C[3].active ? "" : "pkt-hide"}`, children: /* @__PURE__ */ m.jsx(
|
|
15585
|
+
/* @__PURE__ */ m.jsx("div", { className: `pkt-preview__specs ${C[3].active ? "" : "pkt-hide"}`, children: /* @__PURE__ */ m.jsx(Gx, { specs: e }) })
|
|
15597
15586
|
] });
|
|
15598
15587
|
};
|
|
15599
15588
|
Kx.displayName = "PktPreview";
|
|
15600
15589
|
var tt = [];
|
|
15601
|
-
for (var
|
|
15602
|
-
tt.push((
|
|
15590
|
+
for (var Ws = 0; Ws < 256; ++Ws)
|
|
15591
|
+
tt.push((Ws + 256).toString(16).slice(1));
|
|
15603
15592
|
function Jx(e, t = 0) {
|
|
15604
15593
|
return (tt[e[t + 0]] + tt[e[t + 1]] + tt[e[t + 2]] + tt[e[t + 3]] + "-" + tt[e[t + 4]] + tt[e[t + 5]] + "-" + tt[e[t + 6]] + tt[e[t + 7]] + "-" + tt[e[t + 8]] + tt[e[t + 9]] + "-" + tt[e[t + 10]] + tt[e[t + 11]] + tt[e[t + 12]] + tt[e[t + 13]] + tt[e[t + 14]] + tt[e[t + 15]]).toLowerCase();
|
|
15605
15594
|
}
|
|
@@ -15647,7 +15636,7 @@ const t_ = Ne(
|
|
|
15647
15636
|
E(N.getBoundingClientRect().width);
|
|
15648
15637
|
}
|
|
15649
15638
|
});
|
|
15650
|
-
const A = n - t, $ = e / A * 100, P = n !== 100 || t !== 0 ? Math.round($) : e, I = `${e} av ${n}`, j = u !== "none", W = nt("pkt-progressbar__bar", { [`pkt-progressbar__bar--${r}`]: r }),
|
|
15639
|
+
const A = n - t, $ = e / A * 100, P = n !== 100 || t !== 0 ? Math.round($) : e, I = `${e} av ${n}`, j = u !== "none", W = nt("pkt-progressbar__bar", { [`pkt-progressbar__bar--${r}`]: r }), G = nt("pkt-progressbar__title", {
|
|
15651
15640
|
"pkt-progressbar__title-center": o === "center"
|
|
15652
15641
|
}), V = nt("pkt-progressbar__status", {
|
|
15653
15642
|
"pkt-progressbar__status--center": c === "center"
|
|
@@ -15668,7 +15657,7 @@ const t_ = Ne(
|
|
|
15668
15657
|
"--pkt-progress-width": `${P}%`
|
|
15669
15658
|
},
|
|
15670
15659
|
children: [
|
|
15671
|
-
i && /* @__PURE__ */ m.jsx("p", { id: `${_}-title`, className:
|
|
15660
|
+
i && /* @__PURE__ */ m.jsx("p", { id: `${_}-title`, className: G, children: i }),
|
|
15672
15661
|
/* @__PURE__ */ m.jsx(
|
|
15673
15662
|
"div",
|
|
15674
15663
|
{
|
|
@@ -15730,7 +15719,7 @@ const n_ = Ne(
|
|
|
15730
15719
|
}
|
|
15731
15720
|
);
|
|
15732
15721
|
n_.displayName = "PktRadioButton";
|
|
15733
|
-
const
|
|
15722
|
+
const O_ = Ne(
|
|
15734
15723
|
({
|
|
15735
15724
|
appearance: e = "local",
|
|
15736
15725
|
disabled: t = !1,
|
|
@@ -15809,7 +15798,7 @@ const I_ = Ne(
|
|
|
15809
15798
|
] })
|
|
15810
15799
|
);
|
|
15811
15800
|
}
|
|
15812
|
-
),
|
|
15801
|
+
), I_ = Ne(
|
|
15813
15802
|
({
|
|
15814
15803
|
activeStep: e,
|
|
15815
15804
|
className: t,
|
|
@@ -15835,7 +15824,7 @@ const I_ = Ne(
|
|
|
15835
15824
|
] }), i_ = /* @__PURE__ */ m.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", children: [
|
|
15836
15825
|
/* @__PURE__ */ m.jsx("path", { fill: "#2A2859", d: "M3 3h18v18H3z" }),
|
|
15837
15826
|
/* @__PURE__ */ m.jsx("path", { d: "m10.34 16-1.11-1.14L7 12.58l1.11-1.15 2.23 2.28L15.88 8 17 9.15l-5.55 5.71L10.34 16Z", fill: "#F1FDFF" })
|
|
15838
|
-
] }),
|
|
15827
|
+
] }), M_ = ({ children: e, className: t, status: n = "incomplete", title: r }) => /* @__PURE__ */ m.jsxs("li", { className: nt("pkt-step", t, `pkt-step--${n}`), "data-testid": "pkt-step", children: [
|
|
15839
15828
|
/* @__PURE__ */ m.jsx("span", { className: "pkt-step__line pkt-step__line--1", "aria-hidden": !0 }),
|
|
15840
15829
|
/* @__PURE__ */ m.jsx("span", { className: "pkt-step__line pkt-step__line--2", "aria-hidden": !0 }),
|
|
15841
15830
|
/* @__PURE__ */ m.jsx("span", { className: nt("pkt-step__indicator"), children: n === "current" ? a_ : n === "completed" ? i_ : r_ }),
|
|
@@ -15844,7 +15833,7 @@ const I_ = Ne(
|
|
|
15844
15833
|
/* @__PURE__ */ m.jsx("div", { className: "pkt-step__title", children: r }),
|
|
15845
15834
|
/* @__PURE__ */ m.jsx("div", { className: "pkt-step__content", children: e })
|
|
15846
15835
|
] })
|
|
15847
|
-
] }),
|
|
15836
|
+
] }), R_ = Ne(
|
|
15848
15837
|
({
|
|
15849
15838
|
id: e,
|
|
15850
15839
|
ariaDescribedby: t,
|
|
@@ -15872,7 +15861,7 @@ const I_ = Ne(
|
|
|
15872
15861
|
onChange: P,
|
|
15873
15862
|
...I
|
|
15874
15863
|
}, j) => {
|
|
15875
|
-
const W = [o, "pkt-textinput", "pkt-textarea"].join(" "),
|
|
15864
|
+
const W = [o, "pkt-textinput", "pkt-textarea"].join(" "), G = n || `${e}-label`, V = ga(null), [L, N] = Ve(0), q = (X) => {
|
|
15876
15865
|
var de, Q;
|
|
15877
15866
|
if (r && N(((Q = (de = X.currentTarget) == null ? void 0 : de.value) == null ? void 0 : Q.length) || 0), P)
|
|
15878
15867
|
return P(X);
|
|
@@ -15912,7 +15901,7 @@ const I_ = Ne(
|
|
|
15912
15901
|
placeholder: F,
|
|
15913
15902
|
disabled: u,
|
|
15914
15903
|
rows: A,
|
|
15915
|
-
"aria-labelledby":
|
|
15904
|
+
"aria-labelledby": G,
|
|
15916
15905
|
"aria-invalid": d,
|
|
15917
15906
|
"aria-errormessage": `${e}-error`,
|
|
15918
15907
|
...I,
|
|
@@ -15931,11 +15920,11 @@ export {
|
|
|
15931
15920
|
p_ as PktBreadcrumbs,
|
|
15932
15921
|
fr as PktButton,
|
|
15933
15922
|
R2 as PktCard,
|
|
15934
|
-
|
|
15923
|
+
Gs as PktCheckbox,
|
|
15935
15924
|
q2 as PktDatepicker,
|
|
15936
|
-
|
|
15937
|
-
|
|
15938
|
-
|
|
15925
|
+
N_ as PktFooter,
|
|
15926
|
+
j_ as PktFooterSimple,
|
|
15927
|
+
P_ as PktHeader,
|
|
15939
15928
|
ee as PktIcon,
|
|
15940
15929
|
rg as PktIconContext,
|
|
15941
15930
|
H2 as PktInput,
|
|
@@ -15943,22 +15932,22 @@ export {
|
|
|
15943
15932
|
W2 as PktLink,
|
|
15944
15933
|
z2 as PktLinkCard,
|
|
15945
15934
|
V2 as PktLoader,
|
|
15946
|
-
|
|
15935
|
+
Y2 as PktMessagebox,
|
|
15947
15936
|
Kx as PktPreview,
|
|
15948
15937
|
t_ as PktProgressbar,
|
|
15949
15938
|
n_ as PktRadioButton,
|
|
15950
|
-
|
|
15939
|
+
O_ as PktSearchInput,
|
|
15951
15940
|
Mc as PktSelect,
|
|
15952
|
-
|
|
15953
|
-
|
|
15954
|
-
|
|
15955
|
-
|
|
15941
|
+
M_ as PktStep,
|
|
15942
|
+
I_ as PktStepper,
|
|
15943
|
+
qs as PktTable,
|
|
15944
|
+
Us as PktTableBody,
|
|
15956
15945
|
Bt as PktTableDataCell,
|
|
15957
|
-
|
|
15958
|
-
|
|
15946
|
+
Hs as PktTableHeader,
|
|
15947
|
+
Gt as PktTableHeaderCell,
|
|
15959
15948
|
sr as PktTableRow,
|
|
15960
15949
|
Vx as PktTabs,
|
|
15961
15950
|
ma as PktTag,
|
|
15962
|
-
|
|
15951
|
+
R_ as PktTextarea,
|
|
15963
15952
|
Rc as PktTextinput
|
|
15964
15953
|
};
|