@oslokommune/punkt-react 12.7.2 → 12.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/punkt-react.es.js +871 -843
- package/dist/punkt-react.umd.js +3 -3
- package/package.json +5 -5
package/dist/punkt-react.es.js
CHANGED
|
@@ -96,11 +96,11 @@ var Yr = {};
|
|
|
96
96
|
var pu;
|
|
97
97
|
function Zm() {
|
|
98
98
|
return pu || (pu = 1, process.env.NODE_ENV !== "production" && function() {
|
|
99
|
-
var e = ye, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), k = Symbol.iterator,
|
|
99
|
+
var e = ye, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), k = Symbol.iterator, x = "@@iterator";
|
|
100
100
|
function C(w) {
|
|
101
101
|
if (w === null || typeof w != "object")
|
|
102
102
|
return null;
|
|
103
|
-
var M = k && w[k] || w[
|
|
103
|
+
var M = k && w[k] || w[x];
|
|
104
104
|
return typeof M == "function" ? M : null;
|
|
105
105
|
}
|
|
106
106
|
var T = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -121,10 +121,10 @@ function Zm() {
|
|
|
121
121
|
me.unshift("Warning: " + M), Function.prototype.apply.call(console[w], console, me);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
var A = !1,
|
|
124
|
+
var A = !1, _ = !1, $ = !1, L = !1, I = !1, j;
|
|
125
125
|
j = Symbol.for("react.module.reference");
|
|
126
126
|
function W(w) {
|
|
127
|
-
return !!(typeof w == "string" || typeof w == "function" || w === r || w === o || I || w === i || w === h || w === m || L || w === b || A ||
|
|
127
|
+
return !!(typeof w == "string" || typeof w == "function" || w === r || w === o || I || w === i || w === h || w === m || L || w === b || A || _ || $ || typeof w == "object" && w !== null && (w.$$typeof === y || w.$$typeof === v || w.$$typeof === u || w.$$typeof === c || w.$$typeof === d || // This needs to include all possible module reference object
|
|
128
128
|
// types supported by any Flight configuration anywhere since
|
|
129
129
|
// we don't know which Flight build this will end up being used
|
|
130
130
|
// with.
|
|
@@ -137,7 +137,7 @@ function Zm() {
|
|
|
137
137
|
var ve = M.displayName || M.name || "";
|
|
138
138
|
return ve !== "" ? H + "(" + ve + ")" : H;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function z(w) {
|
|
141
141
|
return w.displayName || "Context";
|
|
142
142
|
}
|
|
143
143
|
function P(w) {
|
|
@@ -165,10 +165,10 @@ function Zm() {
|
|
|
165
165
|
switch (w.$$typeof) {
|
|
166
166
|
case c:
|
|
167
167
|
var M = w;
|
|
168
|
-
return
|
|
168
|
+
return z(M) + ".Consumer";
|
|
169
169
|
case u:
|
|
170
170
|
var H = w;
|
|
171
|
-
return
|
|
171
|
+
return z(H._context) + ".Provider";
|
|
172
172
|
case d:
|
|
173
173
|
return K(w, w.render, "ForwardRef");
|
|
174
174
|
case v:
|
|
@@ -261,13 +261,13 @@ function Zm() {
|
|
|
261
261
|
` + se + w;
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
-
var
|
|
264
|
+
var xt = !1, yt;
|
|
265
265
|
{
|
|
266
266
|
var Dt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
267
267
|
yt = new Dt();
|
|
268
268
|
}
|
|
269
269
|
function pn(w, M) {
|
|
270
|
-
if (!w ||
|
|
270
|
+
if (!w || xt)
|
|
271
271
|
return "";
|
|
272
272
|
{
|
|
273
273
|
var H = yt.get(w);
|
|
@@ -275,7 +275,7 @@ function Zm() {
|
|
|
275
275
|
return H;
|
|
276
276
|
}
|
|
277
277
|
var Z;
|
|
278
|
-
|
|
278
|
+
xt = !0;
|
|
279
279
|
var ve = Error.prepareStackTrace;
|
|
280
280
|
Error.prepareStackTrace = void 0;
|
|
281
281
|
var me;
|
|
@@ -332,7 +332,7 @@ function Zm() {
|
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
} finally {
|
|
335
|
-
|
|
335
|
+
xt = !1, Ne.current = me, Ee(), Error.prepareStackTrace = ve;
|
|
336
336
|
}
|
|
337
337
|
var He = w ? w.displayName || w.name : "", Xe = He ? pt(He) : "";
|
|
338
338
|
return typeof w == "function" && yt.set(w, Xe), Xe;
|
|
@@ -373,13 +373,13 @@ function Zm() {
|
|
|
373
373
|
}
|
|
374
374
|
return "";
|
|
375
375
|
}
|
|
376
|
-
var we = Object.prototype.hasOwnProperty, Le = {},
|
|
376
|
+
var we = Object.prototype.hasOwnProperty, Le = {}, xe = T.ReactDebugCurrentFrame;
|
|
377
377
|
function Zn(w) {
|
|
378
378
|
if (w) {
|
|
379
379
|
var M = w._owner, H = Ot(w.type, w._source, M ? M.type : null);
|
|
380
|
-
|
|
380
|
+
xe.setExtraStackFrame(H);
|
|
381
381
|
} else
|
|
382
|
-
|
|
382
|
+
xe.setExtraStackFrame(null);
|
|
383
383
|
}
|
|
384
384
|
function dn(w, M, H, Z, ve) {
|
|
385
385
|
{
|
|
@@ -410,7 +410,7 @@ function Zm() {
|
|
|
410
410
|
return H;
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function Vi(w) {
|
|
414
414
|
try {
|
|
415
415
|
return Aa(w), !1;
|
|
416
416
|
} catch {
|
|
@@ -421,7 +421,7 @@ function Zm() {
|
|
|
421
421
|
return "" + w;
|
|
422
422
|
}
|
|
423
423
|
function dt(w) {
|
|
424
|
-
if (
|
|
424
|
+
if (Vi(w))
|
|
425
425
|
return F("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ar(w)), Aa(w);
|
|
426
426
|
}
|
|
427
427
|
var It = T.ReactCurrentOwner, $a = {
|
|
@@ -439,7 +439,7 @@ function Zm() {
|
|
|
439
439
|
}
|
|
440
440
|
return w.ref !== void 0;
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function zi(w) {
|
|
443
443
|
if (we.call(w, "key")) {
|
|
444
444
|
var M = Object.getOwnPropertyDescriptor(w, "key").get;
|
|
445
445
|
if (M && M.isReactWarning)
|
|
@@ -507,7 +507,7 @@ function Zm() {
|
|
|
507
507
|
function Ji(w, M, H, Z, ve) {
|
|
508
508
|
{
|
|
509
509
|
var me, ce = {}, re = null, Je = null;
|
|
510
|
-
H !== void 0 && (dt(H), re = "" + H),
|
|
510
|
+
H !== void 0 && (dt(H), re = "" + H), zi(M) && (dt(M.key), re = "" + M.key), kt(M) && (Je = M.ref, Gi(M, ve));
|
|
511
511
|
for (me in M)
|
|
512
512
|
we.call(M, me) && !$a.hasOwnProperty(me) && (ce[me] = M[me]);
|
|
513
513
|
if (w && w.defaultProps) {
|
|
@@ -689,7 +689,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
689
689
|
}
|
|
690
690
|
process.env.NODE_ENV === "production" ? Gs.exports = Qm() : Gs.exports = Zm();
|
|
691
691
|
var g = Gs.exports;
|
|
692
|
-
const
|
|
692
|
+
const bx = je(
|
|
693
693
|
({ compact: e = !1, skin: t = "borderless", className: n, children: r }, i) => {
|
|
694
694
|
const o = [
|
|
695
695
|
n,
|
|
@@ -713,7 +713,7 @@ const eg = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
|
|
|
713
713
|
let m = h.get(c);
|
|
714
714
|
d !== void 0 ? m === void 0 ? (h.set(c, m = { handleEvent: d }), u.addEventListener(c, m)) : m.handleEvent = d : m !== void 0 && (h.delete(c), u.removeEventListener(c, m));
|
|
715
715
|
})(e, o, n);
|
|
716
|
-
},
|
|
716
|
+
}, zn = ({ react: e, tagName: t, elementClass: n, events: r, displayName: i }) => {
|
|
717
717
|
const o = new Set(Object.keys(r ?? {})), u = e.forwardRef((c, d) => {
|
|
718
718
|
const h = e.useRef(/* @__PURE__ */ new Map()), m = e.useRef(null), v = {}, y = {};
|
|
719
719
|
for (const [b, k] of Object.entries(c)) eg.has(b) ? v[b === "className" ? "class" : b] = k : o.has(b) || b in n.prototype ? y[b] = k : v[b] = k;
|
|
@@ -721,7 +721,7 @@ const eg = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
|
|
|
721
721
|
if (m.current === null) return;
|
|
722
722
|
const b = /* @__PURE__ */ new Map();
|
|
723
723
|
for (const k in y) hu(m.current, k, c[k], h.current.get(k), r), h.current.delete(k), b.set(k, c[k]);
|
|
724
|
-
for (const [k,
|
|
724
|
+
for (const [k, x] of h.current) hu(m.current, k, void 0, x, r);
|
|
725
725
|
h.current = b;
|
|
726
726
|
}), e.useLayoutEffect(() => {
|
|
727
727
|
var b;
|
|
@@ -1006,9 +1006,9 @@ dr.elementStyles = [], dr.shadowRootOptions = { mode: "open" }, dr[sa("elementPr
|
|
|
1006
1006
|
* Copyright 2017 Google LLC
|
|
1007
1007
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1008
1008
|
*/
|
|
1009
|
-
const bi = globalThis, ki = bi.trustedTypes, Du = ki ? ki.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, bo = "$lit$", Xt = `lit$${Math.random().toFixed(9).slice(2)}$`, ko = "?" + Xt, pg = `<${ko}>`, qn = document, pa = () => qn.createComment(""), da = (e) => e === null || typeof e != "object" && typeof e != "function", wo = Array.isArray,
|
|
1009
|
+
const bi = globalThis, ki = bi.trustedTypes, Du = ki ? ki.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, bo = "$lit$", Xt = `lit$${Math.random().toFixed(9).slice(2)}$`, ko = "?" + Xt, pg = `<${ko}>`, qn = document, pa = () => qn.createComment(""), da = (e) => e === null || typeof e != "object" && typeof e != "function", wo = Array.isArray, Vc = (e) => wo(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", Ss = `[
|
|
1010
1010
|
\f\r]`, Kr = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, bu = /-->/g, ku = />/g, Tn = RegExp(`>|${Ss}(?:([^\\s"'>=/]+)(${Ss}*=${Ss}*(?:[^
|
|
1011
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), wu = /'/g, Cu = /"/g,
|
|
1011
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), wu = /'/g, Cu = /"/g, zc = /^(?:script|style|textarea|title)$/i, dg = (e) => (t, ...n) => ({ _$litType$: e, strings: t, values: n }), Y = dg(1), Zt = Symbol.for("lit-noChange"), ee = Symbol.for("lit-nothing"), _u = /* @__PURE__ */ new WeakMap(), Mn = qn.createTreeWalker(qn, 129);
|
|
1012
1012
|
function Gc(e, t) {
|
|
1013
1013
|
if (!wo(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1014
1014
|
return Du !== void 0 ? Du.createHTML(t) : t;
|
|
@@ -1019,7 +1019,7 @@ const Yc = (e, t) => {
|
|
|
1019
1019
|
for (let c = 0; c < n; c++) {
|
|
1020
1020
|
const d = e[c];
|
|
1021
1021
|
let h, m, v = -1, y = 0;
|
|
1022
|
-
for (; y < d.length && (u.lastIndex = y, m = u.exec(d), m !== null); ) y = u.lastIndex, u === Kr ? m[1] === "!--" ? u = bu : m[1] !== void 0 ? u = ku : m[2] !== void 0 ? (
|
|
1022
|
+
for (; y < d.length && (u.lastIndex = y, m = u.exec(d), m !== null); ) y = u.lastIndex, u === Kr ? m[1] === "!--" ? u = bu : m[1] !== void 0 ? u = ku : m[2] !== void 0 ? (zc.test(m[2]) && (i = RegExp("</" + m[2], "g")), u = Tn) : m[3] !== void 0 && (u = Tn) : u === Tn ? m[0] === ">" ? (u = i ?? Kr, v = -1) : m[1] === void 0 ? v = -2 : (v = u.lastIndex - m[2].length, h = m[1], u = m[3] === void 0 ? Tn : m[3] === '"' ? Cu : wu) : u === Cu || u === wu ? u = Tn : u === bu || u === ku ? u = Kr : (u = Tn, i = void 0);
|
|
1023
1023
|
const b = u === Tn && e[c + 1].startsWith("/>") ? " " : "";
|
|
1024
1024
|
o += u === Kr ? d + pg : v >= 0 ? (r.push(h), d.slice(0, v) + bo + d.slice(v) + Xt + b) : d + Xt + (v === -2 ? c : b);
|
|
1025
1025
|
}
|
|
@@ -1041,7 +1041,7 @@ let Ys = class Kc {
|
|
|
1041
1041
|
const y = m[u++], b = i.getAttribute(v).split(Xt), k = /([.?@])?(.*)/.exec(y);
|
|
1042
1042
|
d.push({ type: 1, index: o, name: k[2], strings: b, ctor: k[1] === "." ? Qc : k[1] === "?" ? Zc : k[1] === "@" ? ep : ba }), i.removeAttribute(v);
|
|
1043
1043
|
} else v.startsWith(Xt) && (d.push({ type: 6, index: o }), i.removeAttribute(v));
|
|
1044
|
-
if (
|
|
1044
|
+
if (zc.test(i.tagName)) {
|
|
1045
1045
|
const v = i.textContent.split(Xt), y = v.length - 1;
|
|
1046
1046
|
if (y > 0) {
|
|
1047
1047
|
i.textContent = ki ? ki.emptyScript : "";
|
|
@@ -1116,7 +1116,7 @@ let Jc = class {
|
|
|
1116
1116
|
return this._$AB;
|
|
1117
1117
|
}
|
|
1118
1118
|
_$AI(t, n = this) {
|
|
1119
|
-
t = Hn(this, t, n), da(t) ? t === ee || t == null || t === "" ? (this._$AH !== ee && this._$AR(), this._$AH = ee) : t !== this._$AH && t !== Zt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) :
|
|
1119
|
+
t = Hn(this, t, n), da(t) ? t === ee || t == null || t === "" ? (this._$AH !== ee && this._$AR(), this._$AH = ee) : t !== this._$AH && t !== Zt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Vc(t) ? this.k(t) : this._(t);
|
|
1120
1120
|
}
|
|
1121
1121
|
O(t) {
|
|
1122
1122
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -1137,8 +1137,8 @@ let Jc = class {
|
|
|
1137
1137
|
}
|
|
1138
1138
|
}
|
|
1139
1139
|
_$AC(t) {
|
|
1140
|
-
let n =
|
|
1141
|
-
return n === void 0 &&
|
|
1140
|
+
let n = _u.get(t.strings);
|
|
1141
|
+
return n === void 0 && _u.set(t.strings, n = new Ys(t)), n;
|
|
1142
1142
|
}
|
|
1143
1143
|
k(t) {
|
|
1144
1144
|
wo(this._$AH) || (this._$AH = [], this._$AR());
|
|
@@ -1220,8 +1220,8 @@ let Jc = class {
|
|
|
1220
1220
|
Hn(this, t);
|
|
1221
1221
|
}
|
|
1222
1222
|
};
|
|
1223
|
-
const hg = { M: bo, P: Xt, A: ko, C: 1, L: Yc, R: Jc, D:
|
|
1224
|
-
|
|
1223
|
+
const hg = { M: bo, P: Xt, A: ko, C: 1, L: Yc, R: Jc, D: Vc, V: Hn, I: Ai, H: ba, N: Zc, U: ep, B: Qc, F: tp }, xu = bi.litHtmlPolyfillSupport;
|
|
1224
|
+
xu == null || xu(Ys, Ai), (bi.litHtmlVersions ?? (bi.litHtmlVersions = [])).push("3.2.1");
|
|
1225
1225
|
const fg = (e, t, n) => {
|
|
1226
1226
|
const r = (n == null ? void 0 : n.renderBefore) ?? t;
|
|
1227
1227
|
let i = r._$litPart$;
|
|
@@ -1386,7 +1386,7 @@ const kg = {
|
|
|
1386
1386
|
week: "Uke",
|
|
1387
1387
|
prevMonth: "Forrige måned",
|
|
1388
1388
|
nextMonth: "Neste måned"
|
|
1389
|
-
},
|
|
1389
|
+
}, _g = {
|
|
1390
1390
|
labels: {
|
|
1391
1391
|
optional: "Valgfritt",
|
|
1392
1392
|
required: "Må fylles ut"
|
|
@@ -1409,12 +1409,12 @@ const kg = {
|
|
|
1409
1409
|
example: kg,
|
|
1410
1410
|
calendar: wg,
|
|
1411
1411
|
dates: Cg,
|
|
1412
|
-
forms:
|
|
1412
|
+
forms: _g
|
|
1413
1413
|
};
|
|
1414
|
-
var
|
|
1414
|
+
var xg = Object.defineProperty, Ye = (e, t, n, r) => {
|
|
1415
1415
|
for (var i = void 0, o = e.length - 1, u; o >= 0; o--)
|
|
1416
1416
|
(u = e[o]) && (i = u(t, n, i) || i);
|
|
1417
|
-
return i &&
|
|
1417
|
+
return i && xg(t, n, i), i;
|
|
1418
1418
|
};
|
|
1419
1419
|
let Pt = class extends oa {
|
|
1420
1420
|
/**
|
|
@@ -1605,32 +1605,60 @@ let Ti = class {
|
|
|
1605
1605
|
}
|
|
1606
1606
|
}, Gn = class {
|
|
1607
1607
|
constructor(t, ...n) {
|
|
1608
|
-
this.nodes = [], this.host = t, this.host.addController(this), this.slots = n, this.nodes = [];
|
|
1608
|
+
this.nodes = [], this.host = t, this.host.addController(this), this.slots = n, this.nodes = [], this.observer = new MutationObserver((r) => this.handleMutations(r));
|
|
1609
1609
|
}
|
|
1610
1610
|
hostConnected() {
|
|
1611
|
-
|
|
1611
|
+
this.updateNodes(), this.observer.observe(this.host, { childList: !0 });
|
|
1612
|
+
}
|
|
1613
|
+
hostDisconnected() {
|
|
1614
|
+
this.observer.disconnect();
|
|
1615
|
+
}
|
|
1616
|
+
hostUpdated() {
|
|
1617
|
+
this.updateSlots();
|
|
1618
|
+
}
|
|
1619
|
+
updateNodes() {
|
|
1620
|
+
this.nodes = [], Array.from(this.host.childNodes).forEach((t) => {
|
|
1612
1621
|
var n;
|
|
1613
|
-
if (t.
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
}
|
|
1618
|
-
} else
|
|
1619
|
-
this.nodes.push(t);
|
|
1622
|
+
if (t.nodeType === Node.TEXT_NODE && (n = t.nodeValue) != null && n.trim()) {
|
|
1623
|
+
const r = document == null ? void 0 : document.createElement("template");
|
|
1624
|
+
r.content.appendChild(t), this.nodes.push(r);
|
|
1625
|
+
} else this.isSlotElement(t) || this.nodes.push(t);
|
|
1620
1626
|
});
|
|
1621
1627
|
}
|
|
1622
|
-
|
|
1628
|
+
updateSlots() {
|
|
1623
1629
|
this.slots.forEach((t) => {
|
|
1624
1630
|
if (!t.value) return;
|
|
1625
1631
|
const n = t.value.getAttribute("name"), r = this.nodes.flatMap(
|
|
1626
1632
|
(i) => i.getAttribute && i.getAttribute("slot") == n ? this.nodeFromElement(i, t) : []
|
|
1633
|
+
).filter(
|
|
1634
|
+
(i) => t.value && !t.value.contains(i) && !i.contains(t.value)
|
|
1627
1635
|
);
|
|
1628
|
-
r.length && t.value.replaceChildren(...r);
|
|
1636
|
+
r.length > 0 && t.value.replaceChildren(...r);
|
|
1629
1637
|
});
|
|
1630
1638
|
}
|
|
1639
|
+
handleMutations(t) {
|
|
1640
|
+
let n = !1;
|
|
1641
|
+
t.forEach((r) => {
|
|
1642
|
+
r.type === "childList" && (r.addedNodes.forEach((i) => {
|
|
1643
|
+
var o;
|
|
1644
|
+
const u = i.nodeType === Node.ELEMENT_NODE && !this.isSlotElement(i), c = i.nodeType === Node.TEXT_NODE && ((o = i.nodeValue) == null ? void 0 : o.trim());
|
|
1645
|
+
if (u)
|
|
1646
|
+
this.nodes.push(i), n = !0;
|
|
1647
|
+
else if (c) {
|
|
1648
|
+
const d = document == null ? void 0 : document.createElement("template");
|
|
1649
|
+
d.content.appendChild(i), this.nodes.push(d), n = !0;
|
|
1650
|
+
}
|
|
1651
|
+
}), r.removedNodes.forEach((i) => {
|
|
1652
|
+
this.nodes = this.nodes.filter((o) => o !== i), n = !0;
|
|
1653
|
+
}));
|
|
1654
|
+
}), n && this.updateSlots();
|
|
1655
|
+
}
|
|
1656
|
+
isSlotElement(t) {
|
|
1657
|
+
return this.slots.some((n) => n.value === t);
|
|
1658
|
+
}
|
|
1631
1659
|
nodeFromElement(t, n) {
|
|
1632
1660
|
var r;
|
|
1633
|
-
return t === ((r = n.value) == null ? void 0 : r.parentNode) ? [] : t instanceof HTMLTemplateElement ? Array.from(t.content.childNodes) : t;
|
|
1661
|
+
return t === ((r = n.value) == null ? void 0 : r.parentNode) ? [] : t instanceof HTMLTemplateElement ? Array.from(t.content.childNodes) : [t];
|
|
1634
1662
|
}
|
|
1635
1663
|
};
|
|
1636
1664
|
/**
|
|
@@ -1769,7 +1797,7 @@ const As = /* @__PURE__ */ new WeakMap(), st = ka(class extends jg {
|
|
|
1769
1797
|
* Copyright 2018 Google LLC
|
|
1770
1798
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1771
1799
|
*/
|
|
1772
|
-
const
|
|
1800
|
+
const Ve = ka(class extends Ti {
|
|
1773
1801
|
constructor(e) {
|
|
1774
1802
|
var t;
|
|
1775
1803
|
if (super(e), e.type !== $i.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.");
|
|
@@ -1829,7 +1857,7 @@ var Pg = Object.defineProperty, Og = Object.getOwnPropertyDescriptor, wa = (e, t
|
|
|
1829
1857
|
return r && i && Pg(t, n, i), i;
|
|
1830
1858
|
};
|
|
1831
1859
|
window.pktFetch = window.pktFetch === void 0 ? fetch : window.pktFetch;
|
|
1832
|
-
window.pktIconPath = window.pktIconPath || "https://punkt-cdn.oslo.kommune.no/12.
|
|
1860
|
+
window.pktIconPath = window.pktIconPath || "https://punkt-cdn.oslo.kommune.no/12.8/icons/";
|
|
1833
1861
|
const Ig = (e) => new Promise((t) => setTimeout(t, e)), di = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>', $s = {}, Mg = async (e, t) => {
|
|
1834
1862
|
let n = 0;
|
|
1835
1863
|
for (; $s[t + e + ".svg"] === "fetching" && (n++, !(n > 50)); )
|
|
@@ -1939,10 +1967,10 @@ const Rg = "pkt-alert", qg = !0, Hg = {
|
|
|
1939
1967
|
props: Ug,
|
|
1940
1968
|
slots: Wg
|
|
1941
1969
|
};
|
|
1942
|
-
var
|
|
1943
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
1970
|
+
var Vg = Object.defineProperty, zg = Object.getOwnPropertyDescriptor, wn = (e, t, n, r) => {
|
|
1971
|
+
for (var i = r > 1 ? void 0 : r ? zg(t, n) : t, o = e.length - 1, u; o >= 0; o--)
|
|
1944
1972
|
(u = e[o]) && (i = (r ? u(t, n, i) : u(i)) || i);
|
|
1945
|
-
return r && i &&
|
|
1973
|
+
return r && i && Vg(t, n, i), i;
|
|
1946
1974
|
};
|
|
1947
1975
|
let Ht = class extends Pt {
|
|
1948
1976
|
constructor() {
|
|
@@ -1962,7 +1990,7 @@ let Ht = class extends Pt {
|
|
|
1962
1990
|
"pkt-hide": this._isClosed
|
|
1963
1991
|
};
|
|
1964
1992
|
return Y`
|
|
1965
|
-
<div class=${
|
|
1993
|
+
<div class=${Ve(t)} aria-live=${this.ariaLive}>
|
|
1966
1994
|
<pkt-icon
|
|
1967
1995
|
class="pkt-alert__icon"
|
|
1968
1996
|
name=${this.skin === "info" ? "alert-information" : `alert-${this.skin}`}
|
|
@@ -2022,7 +2050,7 @@ const ap = (e) => {
|
|
|
2022
2050
|
return e.split(",").map((t) => new Date(t));
|
|
2023
2051
|
if (Array.isArray(e))
|
|
2024
2052
|
return e.map((t) => new Date(t));
|
|
2025
|
-
},
|
|
2053
|
+
}, _r = {
|
|
2026
2054
|
csvToArray: ap,
|
|
2027
2055
|
stringToDate: Gg,
|
|
2028
2056
|
stringsToDate: Yg
|
|
@@ -2169,7 +2197,7 @@ var nv = Object.defineProperty, rv = Object.getOwnPropertyDescriptor, Se = (e, t
|
|
|
2169
2197
|
(u = e[o]) && (i = (r ? u(t, n, i) : u(i)) || i);
|
|
2170
2198
|
return r && i && nv(t, n, i), i;
|
|
2171
2199
|
};
|
|
2172
|
-
let
|
|
2200
|
+
let _e = class extends Pt {
|
|
2173
2201
|
constructor() {
|
|
2174
2202
|
super(...arguments), this.multiple = Nn.props.multiple.default, this.maxMultiple = Nn.props.maxMultiple.default, this.range = Nn.props.range.default, this.weeknumbers = Nn.props.weeknumbers.default, this.withcontrols = Nn.props.withcontrols.default, this.selected = [], this.earliest = Nn.props.earliest.default, this.latest = Nn.props.latest.default, this.excludedates = [], this.excludeweekdays = [], this.currentmonth = null, 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 = [], this.currentmonthtouched = !1, this.tabIndexSet = 0;
|
|
2175
2203
|
}
|
|
@@ -2367,7 +2395,7 @@ let xe = class extends Pt {
|
|
|
2367
2395
|
"pkt-cal-in-range-last": this.range && this.selected.length === 2 && u === this.selected[1],
|
|
2368
2396
|
"pkt-cal-range-hover": this.rangeHovered !== null && u === this.formatISODate(this.rangeHovered)
|
|
2369
2397
|
};
|
|
2370
|
-
return Y`<td class=${
|
|
2398
|
+
return Y`<td class=${Ve(v)}>
|
|
2371
2399
|
<div
|
|
2372
2400
|
?aria-selected=${d}
|
|
2373
2401
|
role="gridcell"
|
|
@@ -2550,85 +2578,85 @@ let xe = class extends Pt {
|
|
|
2550
2578
|
};
|
|
2551
2579
|
Se([
|
|
2552
2580
|
O({ type: Boolean })
|
|
2553
|
-
],
|
|
2581
|
+
], _e.prototype, "multiple", 2);
|
|
2554
2582
|
Se([
|
|
2555
2583
|
O({ type: Number })
|
|
2556
|
-
],
|
|
2584
|
+
], _e.prototype, "maxMultiple", 2);
|
|
2557
2585
|
Se([
|
|
2558
2586
|
O({ type: Boolean })
|
|
2559
|
-
],
|
|
2587
|
+
], _e.prototype, "range", 2);
|
|
2560
2588
|
Se([
|
|
2561
2589
|
O({ type: Boolean })
|
|
2562
|
-
],
|
|
2590
|
+
], _e.prototype, "weeknumbers", 2);
|
|
2563
2591
|
Se([
|
|
2564
2592
|
O({ type: Boolean })
|
|
2565
|
-
],
|
|
2593
|
+
], _e.prototype, "withcontrols", 2);
|
|
2566
2594
|
Se([
|
|
2567
|
-
O({ converter:
|
|
2568
|
-
],
|
|
2595
|
+
O({ converter: _r.csvToArray })
|
|
2596
|
+
], _e.prototype, "selected", 2);
|
|
2569
2597
|
Se([
|
|
2570
2598
|
O({ type: String })
|
|
2571
|
-
],
|
|
2599
|
+
], _e.prototype, "earliest", 2);
|
|
2572
2600
|
Se([
|
|
2573
2601
|
O({ type: String })
|
|
2574
|
-
],
|
|
2602
|
+
], _e.prototype, "latest", 2);
|
|
2575
2603
|
Se([
|
|
2576
|
-
O({ converter:
|
|
2577
|
-
],
|
|
2604
|
+
O({ converter: _r.stringsToDate })
|
|
2605
|
+
], _e.prototype, "excludedates", 2);
|
|
2578
2606
|
Se([
|
|
2579
|
-
O({ converter:
|
|
2580
|
-
],
|
|
2607
|
+
O({ converter: _r.csvToArray })
|
|
2608
|
+
], _e.prototype, "excludeweekdays", 2);
|
|
2581
2609
|
Se([
|
|
2582
|
-
O({ converter:
|
|
2583
|
-
],
|
|
2610
|
+
O({ converter: _r.stringToDate })
|
|
2611
|
+
], _e.prototype, "currentmonth", 2);
|
|
2584
2612
|
Se([
|
|
2585
2613
|
O({ type: Array })
|
|
2586
|
-
],
|
|
2614
|
+
], _e.prototype, "dayStrings", 2);
|
|
2587
2615
|
Se([
|
|
2588
2616
|
O({ type: Array })
|
|
2589
|
-
],
|
|
2617
|
+
], _e.prototype, "monthStrings", 2);
|
|
2590
2618
|
Se([
|
|
2591
2619
|
O({ type: String })
|
|
2592
|
-
],
|
|
2620
|
+
], _e.prototype, "weekString", 2);
|
|
2593
2621
|
Se([
|
|
2594
2622
|
O({ type: String })
|
|
2595
|
-
],
|
|
2623
|
+
], _e.prototype, "prevMonthString", 2);
|
|
2596
2624
|
Se([
|
|
2597
2625
|
O({ type: String })
|
|
2598
|
-
],
|
|
2626
|
+
], _e.prototype, "nextMonthString", 2);
|
|
2599
2627
|
Se([
|
|
2600
2628
|
O({ type: Array })
|
|
2601
|
-
],
|
|
2629
|
+
], _e.prototype, "_selected", 2);
|
|
2602
2630
|
Se([
|
|
2603
2631
|
O({ type: Number })
|
|
2604
|
-
],
|
|
2632
|
+
], _e.prototype, "year", 2);
|
|
2605
2633
|
Se([
|
|
2606
2634
|
O({ type: Number })
|
|
2607
|
-
],
|
|
2635
|
+
], _e.prototype, "month", 2);
|
|
2608
2636
|
Se([
|
|
2609
2637
|
O({ type: Number })
|
|
2610
|
-
],
|
|
2638
|
+
], _e.prototype, "week", 2);
|
|
2611
2639
|
Se([
|
|
2612
2640
|
O({ type: Date })
|
|
2613
|
-
],
|
|
2641
|
+
], _e.prototype, "rangeHovered", 2);
|
|
2614
2642
|
Se([
|
|
2615
2643
|
nn()
|
|
2616
|
-
],
|
|
2644
|
+
], _e.prototype, "inRange", 2);
|
|
2617
2645
|
Se([
|
|
2618
2646
|
nn()
|
|
2619
|
-
],
|
|
2647
|
+
], _e.prototype, "focusedDate", 2);
|
|
2620
2648
|
Se([
|
|
2621
2649
|
nn()
|
|
2622
|
-
],
|
|
2650
|
+
], _e.prototype, "selectableDates", 2);
|
|
2623
2651
|
Se([
|
|
2624
2652
|
nn()
|
|
2625
|
-
],
|
|
2653
|
+
], _e.prototype, "currentmonthtouched", 2);
|
|
2626
2654
|
Se([
|
|
2627
2655
|
nn()
|
|
2628
|
-
],
|
|
2629
|
-
|
|
2656
|
+
], _e.prototype, "tabIndexSet", 2);
|
|
2657
|
+
_e = Se([
|
|
2630
2658
|
Ut("pkt-calendar")
|
|
2631
|
-
],
|
|
2659
|
+
], _e);
|
|
2632
2660
|
const av = "pkt-tag", iv = !0, sv = {
|
|
2633
2661
|
closeTag: {
|
|
2634
2662
|
type: "boolean",
|
|
@@ -2727,7 +2755,7 @@ let Lt = class extends Pt {
|
|
|
2727
2755
|
};
|
|
2728
2756
|
return this.closeTag ? Y`
|
|
2729
2757
|
<button
|
|
2730
|
-
class=${
|
|
2758
|
+
class=${Ve(n)}
|
|
2731
2759
|
type=${this.type}
|
|
2732
2760
|
aria-label=${this.ariaLabel}
|
|
2733
2761
|
@click=${this.close}
|
|
@@ -2737,7 +2765,7 @@ let Lt = class extends Pt {
|
|
|
2737
2765
|
<pkt-icon class="pkt-tag__close-btn" name="close"></pkt-icon>
|
|
2738
2766
|
</button>
|
|
2739
2767
|
` : Y`
|
|
2740
|
-
<span class=${
|
|
2768
|
+
<span class=${Ve(t)}>
|
|
2741
2769
|
${this.iconName && Y` <pkt-icon class="pkt-tag__icon" name=${this.iconName}></pkt-icon> `}
|
|
2742
2770
|
<span ${st(this.defaultSlot)}></span>
|
|
2743
2771
|
</span>
|
|
@@ -2892,7 +2920,7 @@ let en = class extends Pt {
|
|
|
2892
2920
|
[`pkt-card--${this.direction}`]: this.direction
|
|
2893
2921
|
};
|
|
2894
2922
|
return Y`
|
|
2895
|
-
<div class=${
|
|
2923
|
+
<div class=${Ve(t)}>
|
|
2896
2924
|
${this.image.src && Y`
|
|
2897
2925
|
<div class="pkt-card__image">
|
|
2898
2926
|
<img src=${this.image.src} alt=${this.image.alt || ""} />
|
|
@@ -2966,7 +2994,7 @@ let br = class extends Pt {
|
|
|
2966
2994
|
"pkt-darkmode": this.darkmode
|
|
2967
2995
|
};
|
|
2968
2996
|
return Y`
|
|
2969
|
-
<div class="${
|
|
2997
|
+
<div class="${Ve(e)}">
|
|
2970
2998
|
<h1 class="pkt-txt-28">${this.string}</h1>
|
|
2971
2999
|
|
|
2972
3000
|
<h2 class="pkt-txt-22">Innhold fra attributter og funksjoner</h2>
|
|
@@ -3195,7 +3223,7 @@ let Pe = class extends Pt {
|
|
|
3195
3223
|
"pkt-inputwrapper__label": !0,
|
|
3196
3224
|
"pkt-inputwrapper__fieldset": this.hasFieldset,
|
|
3197
3225
|
"pkt-inputwrapper__legend": this.hasFieldset
|
|
3198
|
-
}, c = this.ariaDescribedby ? this.ariaDescribedby : this.helptext ? `${this.forId}-helptext` : ee, d = () => this.optionalTag || this.requiredTag ? Y`<span class=${
|
|
3226
|
+
}, c = this.ariaDescribedby ? this.ariaDescribedby : this.helptext ? `${this.forId}-helptext` : ee, d = () => this.optionalTag || this.requiredTag ? Y`<span class=${Ve(n)}
|
|
3199
3227
|
>${this.optionalTag ? this.optionalText : this.requiredTag ? this.requiredText : ee}</span
|
|
3200
3228
|
>` : ee, h = () => this.useWrapper ? this.hasFieldset ? Y`<legend class="pkt-inputwrapper__legend" id="${this.forId}-label">
|
|
3201
3229
|
${this.label} ${d()}
|
|
@@ -3216,7 +3244,7 @@ let Pe = class extends Pt {
|
|
|
3216
3244
|
></pkt-icon>
|
|
3217
3245
|
<span class="pkt-btn__text">${ii(this.helptextDropdownButton)}</span>
|
|
3218
3246
|
</button>
|
|
3219
|
-
<div class="${
|
|
3247
|
+
<div class="${Ve(o)}">
|
|
3220
3248
|
${ii(this.helptextDropdown)}
|
|
3221
3249
|
</div>
|
|
3222
3250
|
${this.hasFieldset ? ee : Y`<label
|
|
@@ -3238,18 +3266,18 @@ let Pe = class extends Pt {
|
|
|
3238
3266
|
${h()} ${m()}
|
|
3239
3267
|
<div class="pkt-contents" ${st(this.defaultSlot)}></div>
|
|
3240
3268
|
${v()} ${y()}
|
|
3241
|
-
`, k = () => this.hasFieldset ? Y`<fieldset class=${
|
|
3269
|
+
`, k = () => this.hasFieldset ? Y`<fieldset class=${Ve(u)} aria-describedby="${c}">
|
|
3242
3270
|
${b()}
|
|
3243
|
-
</fieldset>` : r ? Y`<div class=${
|
|
3271
|
+
</fieldset>` : r ? Y`<div class=${Ve(u)} aria-describedby="${c}">
|
|
3244
3272
|
${b()}
|
|
3245
3273
|
</div>` : Y`<label
|
|
3246
|
-
class=${
|
|
3274
|
+
class=${Ve(u)}
|
|
3247
3275
|
for="${this.forId}"
|
|
3248
3276
|
aria-describedby="${c}"
|
|
3249
3277
|
>
|
|
3250
3278
|
${b()}
|
|
3251
3279
|
</label>`;
|
|
3252
|
-
return Y`<div class=${
|
|
3280
|
+
return Y`<div class=${Ve(t)}>${k()}</div> `;
|
|
3253
3281
|
}
|
|
3254
3282
|
};
|
|
3255
3283
|
Ie([
|
|
@@ -3315,15 +3343,15 @@ Ie([
|
|
|
3315
3343
|
Pe = Ie([
|
|
3316
3344
|
Ut("pkt-input-wrapper")
|
|
3317
3345
|
], Pe);
|
|
3318
|
-
function
|
|
3346
|
+
function _i(e) {
|
|
3319
3347
|
return ha(e, { weekStartsOn: 1 });
|
|
3320
3348
|
}
|
|
3321
3349
|
function lp(e) {
|
|
3322
3350
|
const t = ct(e), n = t.getFullYear(), r = Wn(e, 0);
|
|
3323
3351
|
r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
3324
|
-
const i =
|
|
3352
|
+
const i = _i(r), o = Wn(e, 0);
|
|
3325
3353
|
o.setFullYear(n, 0, 4), o.setHours(0, 0, 0, 0);
|
|
3326
|
-
const u =
|
|
3354
|
+
const u = _i(o);
|
|
3327
3355
|
return t.getTime() >= i.getTime() ? n + 1 : t.getTime() >= u.getTime() ? n : n - 1;
|
|
3328
3356
|
}
|
|
3329
3357
|
function Bu(e) {
|
|
@@ -3344,13 +3372,13 @@ function Nu(e) {
|
|
|
3344
3372
|
);
|
|
3345
3373
|
return n.setUTCFullYear(t.getFullYear()), +e - +n;
|
|
3346
3374
|
}
|
|
3347
|
-
function
|
|
3375
|
+
function _v(e, t) {
|
|
3348
3376
|
const n = Bu(e), r = Bu(t), i = +n - Nu(n), o = +r - Nu(r);
|
|
3349
3377
|
return Math.round((i - o) / Kg);
|
|
3350
3378
|
}
|
|
3351
|
-
function
|
|
3379
|
+
function xv(e) {
|
|
3352
3380
|
const t = lp(e), n = Wn(e, 0);
|
|
3353
|
-
return n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0),
|
|
3381
|
+
return n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0), _i(n);
|
|
3354
3382
|
}
|
|
3355
3383
|
function Sv(e) {
|
|
3356
3384
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
@@ -3645,9 +3673,9 @@ function Qr(e) {
|
|
|
3645
3673
|
const r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], o = t.match(i);
|
|
3646
3674
|
if (!o)
|
|
3647
3675
|
return null;
|
|
3648
|
-
const u = o[0], c = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], d = Array.isArray(c) ?
|
|
3676
|
+
const u = o[0], c = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], d = Array.isArray(c) ? zv(c, (v) => v.test(u)) : (
|
|
3649
3677
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
3650
|
-
|
|
3678
|
+
Vv(c, (v) => v.test(u))
|
|
3651
3679
|
);
|
|
3652
3680
|
let h;
|
|
3653
3681
|
h = e.valueCallback ? e.valueCallback(d) : d, h = n.valueCallback ? (
|
|
@@ -3658,12 +3686,12 @@ function Qr(e) {
|
|
|
3658
3686
|
return { value: h, rest: m };
|
|
3659
3687
|
};
|
|
3660
3688
|
}
|
|
3661
|
-
function
|
|
3689
|
+
function Vv(e, t) {
|
|
3662
3690
|
for (const n in e)
|
|
3663
3691
|
if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
|
|
3664
3692
|
return n;
|
|
3665
3693
|
}
|
|
3666
|
-
function
|
|
3694
|
+
function zv(e, t) {
|
|
3667
3695
|
for (let n = 0; n < e.length; n++)
|
|
3668
3696
|
if (t(e[n]))
|
|
3669
3697
|
return n;
|
|
@@ -3798,10 +3826,10 @@ const Yv = /^(\d+)(th|st|nd|rd)?/i, Kv = /\d+/i, Jv = {
|
|
|
3798
3826
|
};
|
|
3799
3827
|
function l2(e) {
|
|
3800
3828
|
const t = ct(e);
|
|
3801
|
-
return
|
|
3829
|
+
return _v(t, Fv(t)) + 1;
|
|
3802
3830
|
}
|
|
3803
3831
|
function u2(e) {
|
|
3804
|
-
const t = ct(e), n = +
|
|
3832
|
+
const t = ct(e), n = +_i(t) - +xv(t);
|
|
3805
3833
|
return Math.round(n / ip) + 1;
|
|
3806
3834
|
}
|
|
3807
3835
|
function Ce(e, t) {
|
|
@@ -4434,29 +4462,29 @@ function y2(e, t, n) {
|
|
|
4434
4462
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
4435
4463
|
}
|
|
4436
4464
|
const D2 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, b2 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, k2 = /^'([^]*?)'?$/, w2 = /''/g, C2 = /[a-zA-Z]/;
|
|
4437
|
-
function
|
|
4465
|
+
function _2(e, t, n) {
|
|
4438
4466
|
var r, i, o, u;
|
|
4439
4467
|
const c = Bi(), d = c.locale ?? o2, h = c.firstWeekContainsDate ?? ((i = (r = c.locale) == null ? void 0 : r.options) == null ? void 0 : i.firstWeekContainsDate) ?? 1, m = c.weekStartsOn ?? ((u = (o = c.locale) == null ? void 0 : o.options) == null ? void 0 : u.weekStartsOn) ?? 0, v = ct(e);
|
|
4440
4468
|
if (!Ev(v))
|
|
4441
4469
|
throw new RangeError("Invalid time value");
|
|
4442
4470
|
let y = t.match(b2).map((k) => {
|
|
4443
|
-
const
|
|
4444
|
-
if (
|
|
4445
|
-
const C = p2[
|
|
4471
|
+
const x = k[0];
|
|
4472
|
+
if (x === "p" || x === "P") {
|
|
4473
|
+
const C = p2[x];
|
|
4446
4474
|
return C(k, d.formatLong);
|
|
4447
4475
|
}
|
|
4448
4476
|
return k;
|
|
4449
4477
|
}).join("").match(D2).map((k) => {
|
|
4450
4478
|
if (k === "''")
|
|
4451
4479
|
return { isToken: !1, value: "'" };
|
|
4452
|
-
const
|
|
4453
|
-
if (
|
|
4454
|
-
return { isToken: !1, value:
|
|
4455
|
-
if (ju[
|
|
4480
|
+
const x = k[0];
|
|
4481
|
+
if (x === "'")
|
|
4482
|
+
return { isToken: !1, value: x2(k) };
|
|
4483
|
+
if (ju[x])
|
|
4456
4484
|
return { isToken: !0, value: k };
|
|
4457
|
-
if (
|
|
4485
|
+
if (x.match(C2))
|
|
4458
4486
|
throw new RangeError(
|
|
4459
|
-
"Format string contains an unescaped latin alphabet character `" +
|
|
4487
|
+
"Format string contains an unescaped latin alphabet character `" + x + "`"
|
|
4460
4488
|
);
|
|
4461
4489
|
return { isToken: !1, value: k };
|
|
4462
4490
|
});
|
|
@@ -4468,13 +4496,13 @@ function x2(e, t, n) {
|
|
|
4468
4496
|
};
|
|
4469
4497
|
return y.map((k) => {
|
|
4470
4498
|
if (!k.isToken) return k.value;
|
|
4471
|
-
const
|
|
4472
|
-
(g2(
|
|
4473
|
-
const C = ju[
|
|
4474
|
-
return C(v,
|
|
4499
|
+
const x = k.value;
|
|
4500
|
+
(g2(x) || m2(x)) && v2(x, t, String(e));
|
|
4501
|
+
const C = ju[x[0]];
|
|
4502
|
+
return C(v, x, d.localize, b);
|
|
4475
4503
|
}).join("");
|
|
4476
4504
|
}
|
|
4477
|
-
function
|
|
4505
|
+
function x2(e) {
|
|
4478
4506
|
const t = e.match(k2);
|
|
4479
4507
|
return t ? t[1].replace(w2, "'") : e;
|
|
4480
4508
|
}
|
|
@@ -4514,21 +4542,21 @@ const Iu = (e, t, n) => {
|
|
|
4514
4542
|
else if (c[v] === u[k]) d[k] = Bn(i[v], o[k]), Jr(e, d[k + 1], i[v]), v++, k--;
|
|
4515
4543
|
else if (c[y] === u[b]) d[b] = Bn(i[y], o[b]), Jr(e, i[v], i[y]), y--, b++;
|
|
4516
4544
|
else if (h === void 0 && (h = Iu(u, b, k), m = Iu(c, v, y)), h.has(c[v])) if (h.has(c[y])) {
|
|
4517
|
-
const
|
|
4545
|
+
const x = m.get(u[b]), C = x !== void 0 ? i[x] : null;
|
|
4518
4546
|
if (C === null) {
|
|
4519
4547
|
const T = Jr(e, i[v]);
|
|
4520
4548
|
Bn(T, o[b]), d[b] = T;
|
|
4521
|
-
} else d[b] = Bn(C, o[b]), Jr(e, i[v], C), i[
|
|
4549
|
+
} else d[b] = Bn(C, o[b]), Jr(e, i[v], C), i[x] = null;
|
|
4522
4550
|
b++;
|
|
4523
4551
|
} else Fs(i[y]), y--;
|
|
4524
4552
|
else Fs(i[v]), v++;
|
|
4525
4553
|
for (; b <= k; ) {
|
|
4526
|
-
const
|
|
4527
|
-
Bn(
|
|
4554
|
+
const x = Jr(e, d[k + 1]);
|
|
4555
|
+
Bn(x, o[b]), d[b++] = x;
|
|
4528
4556
|
}
|
|
4529
4557
|
for (; v <= y; ) {
|
|
4530
|
-
const
|
|
4531
|
-
|
|
4558
|
+
const x = i[v++];
|
|
4559
|
+
x !== null && Fs(x);
|
|
4532
4560
|
}
|
|
4533
4561
|
return this.ut = u, Ag(e, d), Zt;
|
|
4534
4562
|
}
|
|
@@ -4720,7 +4748,7 @@ const Iu = (e, t, n) => {
|
|
|
4720
4748
|
props: A2,
|
|
4721
4749
|
events: $2
|
|
4722
4750
|
};
|
|
4723
|
-
var T2 = Object.defineProperty, B2 = Object.getOwnPropertyDescriptor,
|
|
4751
|
+
var T2 = Object.defineProperty, B2 = Object.getOwnPropertyDescriptor, ze = (e, t, n, r) => {
|
|
4724
4752
|
for (var i = r > 1 ? void 0 : r ? B2(t, n) : t, o = e.length - 1, u; o >= 0; o--)
|
|
4725
4753
|
(u = e[o]) && (i = (r ? u(t, n, i) : u(i)) || i);
|
|
4726
4754
|
return r && i && T2(t, n, i), i;
|
|
@@ -4744,7 +4772,7 @@ let Oe = class extends Ke {
|
|
|
4744
4772
|
return t.setHours(12, 0, 0, 0), isNaN(t.getTime()) ? null : t;
|
|
4745
4773
|
}, this.fromISOtoLocal = (e) => {
|
|
4746
4774
|
const t = new Date(e);
|
|
4747
|
-
return isNaN(t.getTime()) ? "" :
|
|
4775
|
+
return isNaN(t.getTime()) ? "" : _2(t, this.dateformat);
|
|
4748
4776
|
}, this.massageDates = (e) => {
|
|
4749
4777
|
const t = e.map((n) => n ?? void 0);
|
|
4750
4778
|
return this.multiple ? t : this.range ? t.slice(0, 2) : [t[0]];
|
|
@@ -4789,7 +4817,7 @@ let Oe = class extends Ke {
|
|
|
4789
4817
|
renderInput() {
|
|
4790
4818
|
return Y`
|
|
4791
4819
|
<input
|
|
4792
|
-
class="${
|
|
4820
|
+
class="${Ve(this.inputClasses)}"
|
|
4793
4821
|
.type=${this.inputType}
|
|
4794
4822
|
id="${this.id}-input"
|
|
4795
4823
|
.value=${this._value[0] ?? ""}
|
|
@@ -4824,7 +4852,7 @@ let Oe = class extends Ke {
|
|
|
4824
4852
|
return Y`
|
|
4825
4853
|
<div class="pkt-input-prefix">Fra</div>
|
|
4826
4854
|
<input
|
|
4827
|
-
class=${
|
|
4855
|
+
class=${Ve(this.inputClasses)}
|
|
4828
4856
|
.type=${this.inputType}
|
|
4829
4857
|
id="${this.id}-input"
|
|
4830
4858
|
.value=${this._value[0] ?? ""}
|
|
@@ -4859,7 +4887,7 @@ let Oe = class extends Ke {
|
|
|
4859
4887
|
/>
|
|
4860
4888
|
<div class="pkt-input-prefix" id="${this.id}-to-label">Til</div>
|
|
4861
4889
|
<input
|
|
4862
|
-
class=${
|
|
4890
|
+
class=${Ve(this.inputClasses)}
|
|
4863
4891
|
.type=${this.inputType}
|
|
4864
4892
|
id="${this.id}-to"
|
|
4865
4893
|
aria-labelledby="${this.id}-to-label"
|
|
@@ -4908,7 +4936,7 @@ let Oe = class extends Ke {
|
|
|
4908
4936
|
renderMultipleInput() {
|
|
4909
4937
|
return Y`
|
|
4910
4938
|
<input
|
|
4911
|
-
class=${
|
|
4939
|
+
class=${Ve(this.inputClasses)}
|
|
4912
4940
|
.type=${this.inputType}
|
|
4913
4941
|
id="${this.id}-input"
|
|
4914
4942
|
min=${this.min}
|
|
@@ -5018,7 +5046,7 @@ let Oe = class extends Ke {
|
|
|
5018
5046
|
<div class="pkt-input__container">
|
|
5019
5047
|
${this.range ? this.renderRangeInput() : this.multiple ? this.renderMultipleInput() : this.renderInput()}
|
|
5020
5048
|
<button
|
|
5021
|
-
class="${
|
|
5049
|
+
class="${Ve(this.buttonClasses)}"
|
|
5022
5050
|
type="button"
|
|
5023
5051
|
@click=${this.toggleCalendar}
|
|
5024
5052
|
?disabled=${this.disabled}
|
|
@@ -5058,61 +5086,61 @@ let Oe = class extends Ke {
|
|
|
5058
5086
|
e.preventDefault(), this.calendarOpen ? this.hideCalendar() : this.showCalendar();
|
|
5059
5087
|
}
|
|
5060
5088
|
};
|
|
5061
|
-
|
|
5089
|
+
ze([
|
|
5062
5090
|
O({ type: String, reflect: !0 })
|
|
5063
5091
|
], Oe.prototype, "value", 2);
|
|
5064
|
-
|
|
5092
|
+
ze([
|
|
5065
5093
|
O({ type: Array, reflect: !1 })
|
|
5066
5094
|
], Oe.prototype, "_value", 2);
|
|
5067
|
-
|
|
5095
|
+
ze([
|
|
5068
5096
|
O({ type: String })
|
|
5069
5097
|
], Oe.prototype, "label", 2);
|
|
5070
|
-
|
|
5098
|
+
ze([
|
|
5071
5099
|
O({ type: String })
|
|
5072
5100
|
], Oe.prototype, "helptext", 2);
|
|
5073
|
-
|
|
5101
|
+
ze([
|
|
5074
5102
|
O({ type: String })
|
|
5075
5103
|
], Oe.prototype, "helptextDropdown", 2);
|
|
5076
|
-
|
|
5104
|
+
ze([
|
|
5077
5105
|
O({ type: String })
|
|
5078
5106
|
], Oe.prototype, "helptextDropdownButton", 2);
|
|
5079
|
-
|
|
5107
|
+
ze([
|
|
5080
5108
|
O({ type: String })
|
|
5081
5109
|
], Oe.prototype, "dateformat", 2);
|
|
5082
|
-
|
|
5110
|
+
ze([
|
|
5083
5111
|
O({ type: Boolean, reflect: !0 })
|
|
5084
5112
|
], Oe.prototype, "multiple", 2);
|
|
5085
|
-
|
|
5113
|
+
ze([
|
|
5086
5114
|
O({ type: Number })
|
|
5087
5115
|
], Oe.prototype, "maxlength", 2);
|
|
5088
|
-
|
|
5116
|
+
ze([
|
|
5089
5117
|
O({ type: Boolean, reflect: !0 })
|
|
5090
5118
|
], Oe.prototype, "range", 2);
|
|
5091
|
-
|
|
5119
|
+
ze([
|
|
5092
5120
|
O({ type: Boolean })
|
|
5093
5121
|
], Oe.prototype, "weeknumbers", 2);
|
|
5094
|
-
|
|
5122
|
+
ze([
|
|
5095
5123
|
O({ type: Boolean })
|
|
5096
5124
|
], Oe.prototype, "withcontrols", 2);
|
|
5097
|
-
|
|
5125
|
+
ze([
|
|
5098
5126
|
O({ type: Boolean })
|
|
5099
5127
|
], Oe.prototype, "fullwidth", 2);
|
|
5100
|
-
|
|
5101
|
-
O({ converter:
|
|
5128
|
+
ze([
|
|
5129
|
+
O({ converter: _r.csvToArray })
|
|
5102
5130
|
], Oe.prototype, "excludedates", 2);
|
|
5103
|
-
|
|
5104
|
-
O({ converter:
|
|
5131
|
+
ze([
|
|
5132
|
+
O({ converter: _r.csvToArray })
|
|
5105
5133
|
], Oe.prototype, "excludeweekdays", 2);
|
|
5106
|
-
|
|
5134
|
+
ze([
|
|
5107
5135
|
O({ type: String })
|
|
5108
5136
|
], Oe.prototype, "currentmonth", 2);
|
|
5109
|
-
|
|
5137
|
+
ze([
|
|
5110
5138
|
O({ type: Boolean })
|
|
5111
5139
|
], Oe.prototype, "useWrapper", 2);
|
|
5112
|
-
|
|
5140
|
+
ze([
|
|
5113
5141
|
O({ type: Boolean, reflect: !0 })
|
|
5114
5142
|
], Oe.prototype, "calendarOpen", 2);
|
|
5115
|
-
Oe =
|
|
5143
|
+
Oe = ze([
|
|
5116
5144
|
Ut("pkt-datepicker")
|
|
5117
5145
|
], Oe);
|
|
5118
5146
|
const N2 = "pkt-link", j2 = !0, L2 = {
|
|
@@ -5164,7 +5192,7 @@ const N2 = "pkt-link", j2 = !0, L2 = {
|
|
|
5164
5192
|
props: L2,
|
|
5165
5193
|
slots: P2
|
|
5166
5194
|
};
|
|
5167
|
-
var O2 = Object.defineProperty, I2 = Object.getOwnPropertyDescriptor,
|
|
5195
|
+
var O2 = Object.defineProperty, I2 = Object.getOwnPropertyDescriptor, xr = (e, t, n, r) => {
|
|
5168
5196
|
for (var i = r > 1 ? void 0 : r ? I2(t, n) : t, o = e.length - 1, u; o >= 0; o--)
|
|
5169
5197
|
(u = e[o]) && (i = (r ? u(t, n, i) : u(i)) || i);
|
|
5170
5198
|
return r && i && O2(t, n, i), i;
|
|
@@ -5181,7 +5209,7 @@ let Dn = class extends Pt {
|
|
|
5181
5209
|
"pkt-link--external": this.external
|
|
5182
5210
|
};
|
|
5183
5211
|
return Y`<a
|
|
5184
|
-
class=${
|
|
5212
|
+
class=${Ve(e)}
|
|
5185
5213
|
href=${this.href}
|
|
5186
5214
|
@click=${this.handleClick}
|
|
5187
5215
|
.target=${this.target}
|
|
@@ -5198,22 +5226,22 @@ let Dn = class extends Pt {
|
|
|
5198
5226
|
);
|
|
5199
5227
|
}
|
|
5200
5228
|
};
|
|
5201
|
-
|
|
5229
|
+
xr([
|
|
5202
5230
|
O({ type: String, reflect: !0 })
|
|
5203
5231
|
], Dn.prototype, "href", 2);
|
|
5204
|
-
|
|
5232
|
+
xr([
|
|
5205
5233
|
O({ type: String, reflect: !0 })
|
|
5206
5234
|
], Dn.prototype, "iconName", 2);
|
|
5207
|
-
|
|
5235
|
+
xr([
|
|
5208
5236
|
O({ type: String, reflect: !0 })
|
|
5209
5237
|
], Dn.prototype, "iconPosition", 2);
|
|
5210
|
-
|
|
5238
|
+
xr([
|
|
5211
5239
|
O({ type: Boolean, reflect: !0 })
|
|
5212
5240
|
], Dn.prototype, "external", 2);
|
|
5213
|
-
|
|
5241
|
+
xr([
|
|
5214
5242
|
O({ type: String, reflect: !0 })
|
|
5215
5243
|
], Dn.prototype, "target", 2);
|
|
5216
|
-
Dn =
|
|
5244
|
+
Dn = xr([
|
|
5217
5245
|
Ut("pkt-link")
|
|
5218
5246
|
], Dn);
|
|
5219
5247
|
const M2 = "pkt-messagebox", R2 = !0, q2 = {
|
|
@@ -5264,8 +5292,8 @@ const M2 = "pkt-messagebox", R2 = !0, q2 = {
|
|
|
5264
5292
|
props: H2,
|
|
5265
5293
|
slots: U2
|
|
5266
5294
|
};
|
|
5267
|
-
var W2 = Object.defineProperty,
|
|
5268
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
5295
|
+
var W2 = Object.defineProperty, V2 = Object.getOwnPropertyDescriptor, Sr = (e, t, n, r) => {
|
|
5296
|
+
for (var i = r > 1 ? void 0 : r ? V2(t, n) : t, o = e.length - 1, u; o >= 0; o--)
|
|
5269
5297
|
(u = e[o]) && (i = (r ? u(t, n, i) : u(i)) || i);
|
|
5270
5298
|
return r && i && W2(t, n, i), i;
|
|
5271
5299
|
};
|
|
@@ -5283,7 +5311,7 @@ let bn = class extends Pt {
|
|
|
5283
5311
|
"pkt-messagebox--closable": this.closable,
|
|
5284
5312
|
"pkt-hide": this._isClosed
|
|
5285
5313
|
};
|
|
5286
|
-
return Y`<div class=${
|
|
5314
|
+
return Y`<div class=${Ve(e)}>
|
|
5287
5315
|
${this.closable ? Y`<div class="pkt-messagebox__close">
|
|
5288
5316
|
<button
|
|
5289
5317
|
@click=${this.close}
|
|
@@ -5315,7 +5343,7 @@ Sr([
|
|
|
5315
5343
|
bn = Sr([
|
|
5316
5344
|
Ut("pkt-messagebox")
|
|
5317
5345
|
], bn);
|
|
5318
|
-
const pe =
|
|
5346
|
+
const pe = zn({
|
|
5319
5347
|
tagName: "pkt-icon",
|
|
5320
5348
|
elementClass: Un,
|
|
5321
5349
|
react: ye,
|
|
@@ -5358,8 +5386,8 @@ var cp = { exports: {} };
|
|
|
5358
5386
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
5359
5387
|
})();
|
|
5360
5388
|
})(cp);
|
|
5361
|
-
var
|
|
5362
|
-
const tt = /* @__PURE__ */ Fi(
|
|
5389
|
+
var z2 = cp.exports;
|
|
5390
|
+
const tt = /* @__PURE__ */ Fi(z2), Ux = je(
|
|
5363
5391
|
({ title: e, className: t, children: n, toggleProps: r, defaultOpen: i = !1, id: o }, u) => {
|
|
5364
5392
|
const [c, d] = gt(i), h = r ? r.isOpen : c, m = (b) => b ?? void 0, v = (b, k) => {
|
|
5365
5393
|
b.preventDefault(), r !== void 0 && r.onToggleClick(b, k), d(!h);
|
|
@@ -5389,7 +5417,7 @@ const tt = /* @__PURE__ */ Fi(V2), U_ = je(
|
|
|
5389
5417
|
}
|
|
5390
5418
|
);
|
|
5391
5419
|
}
|
|
5392
|
-
), G2 =
|
|
5420
|
+
), G2 = zn({
|
|
5393
5421
|
tagName: "pkt-alert",
|
|
5394
5422
|
elementClass: Ht,
|
|
5395
5423
|
react: ye,
|
|
@@ -5420,7 +5448,7 @@ const Y2 = je(
|
|
|
5420
5448
|
}
|
|
5421
5449
|
);
|
|
5422
5450
|
Y2.displayName = "PktBackLink";
|
|
5423
|
-
const
|
|
5451
|
+
const Wx = je(
|
|
5424
5452
|
({ breadcrumbs: e, navigationType: t, className: n, ...r }, i) => {
|
|
5425
5453
|
const o = e.slice(0, 4), u = o[o.length - 2], c = [n, "pkt-breadcrumbs"].filter(Boolean).join(" ");
|
|
5426
5454
|
return /* @__PURE__ */ g.jsxs("nav", { ref: i, "aria-label": "brødsmulemeny", className: c, children: [
|
|
@@ -5487,7 +5515,7 @@ const W_ = je(
|
|
|
5487
5515
|
{
|
|
5488
5516
|
className: "pkt-btn__icon pkt-btn__spinner",
|
|
5489
5517
|
name: "spinner-blue",
|
|
5490
|
-
path: "https://punkt-cdn.oslo.kommune.no/12.
|
|
5518
|
+
path: "https://punkt-cdn.oslo.kommune.no/12.8/animations/"
|
|
5491
5519
|
}
|
|
5492
5520
|
),
|
|
5493
5521
|
c !== "label-only" && /* @__PURE__ */ g.jsx(pe, { className: "pkt-btn__icon", name: n }),
|
|
@@ -5497,7 +5525,7 @@ const W_ = je(
|
|
|
5497
5525
|
}
|
|
5498
5526
|
);
|
|
5499
5527
|
kr.displayName = "PktButton";
|
|
5500
|
-
const K2 =
|
|
5528
|
+
const K2 = zn({
|
|
5501
5529
|
tagName: "pkt-card",
|
|
5502
5530
|
elementClass: en,
|
|
5503
5531
|
react: ye,
|
|
@@ -5553,7 +5581,7 @@ const Js = je(
|
|
|
5553
5581
|
}
|
|
5554
5582
|
);
|
|
5555
5583
|
Js.displayName = "PktCheckbox";
|
|
5556
|
-
const X2 =
|
|
5584
|
+
const X2 = zn({
|
|
5557
5585
|
tagName: "pkt-datepicker",
|
|
5558
5586
|
elementClass: Oe,
|
|
5559
5587
|
react: ye,
|
|
@@ -5566,7 +5594,7 @@ const X2 = Vn({
|
|
|
5566
5594
|
onValueChange: "value-change",
|
|
5567
5595
|
onToggleHelpText: "toggleHelpText"
|
|
5568
5596
|
}
|
|
5569
|
-
}),
|
|
5597
|
+
}), Vx = ({
|
|
5570
5598
|
columnOne: e,
|
|
5571
5599
|
columnTwo: t,
|
|
5572
5600
|
socialLinks: n,
|
|
@@ -5654,7 +5682,7 @@ const X2 = Vn({
|
|
|
5654
5682
|
) }, `sociallinks-${m}`)) })
|
|
5655
5683
|
] })
|
|
5656
5684
|
] }) });
|
|
5657
|
-
},
|
|
5685
|
+
}, zx = ({
|
|
5658
5686
|
links: e = [],
|
|
5659
5687
|
personvernOgInfoLink: t = "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",
|
|
5660
5688
|
tilgjengelighetLink: n = "https://www.oslo.kommune.no/tilgjengelighet/",
|
|
@@ -5684,7 +5712,7 @@ const X2 = Vn({
|
|
|
5684
5712
|
"Tilgjengelighet"
|
|
5685
5713
|
] }) })
|
|
5686
5714
|
] }) }) });
|
|
5687
|
-
},
|
|
5715
|
+
}, Gx = je(
|
|
5688
5716
|
({
|
|
5689
5717
|
className: e,
|
|
5690
5718
|
logoLink: t = "https://www.oslo.kommune.no/",
|
|
@@ -5701,7 +5729,7 @@ const X2 = Vn({
|
|
|
5701
5729
|
showLogOutButton: y = !1,
|
|
5702
5730
|
openMenu: b,
|
|
5703
5731
|
logOut: k,
|
|
5704
|
-
changeRepresentation:
|
|
5732
|
+
changeRepresentation: x,
|
|
5705
5733
|
children: C,
|
|
5706
5734
|
...T
|
|
5707
5735
|
}, F) => {
|
|
@@ -5709,20 +5737,20 @@ const X2 = Vn({
|
|
|
5709
5737
|
year: "numeric",
|
|
5710
5738
|
month: "long",
|
|
5711
5739
|
day: "numeric"
|
|
5712
|
-
}) : "", [o]), [A,
|
|
5713
|
-
ye.useEffect(() => (document && (document.addEventListener("mouseup",
|
|
5714
|
-
document && (document.removeEventListener("mouseup",
|
|
5740
|
+
}) : "", [o]), [A, _] = ye.useState(!1), [$, L] = ye.useState(0), [I, j] = ye.useState(!1), W = ye.useRef(null);
|
|
5741
|
+
ye.useEffect(() => (document && (document.addEventListener("mouseup", z), window.addEventListener("scroll", P)), () => {
|
|
5742
|
+
document && (document.removeEventListener("mouseup", z), window.removeEventListener("scroll", P));
|
|
5715
5743
|
}));
|
|
5716
5744
|
const K = () => {
|
|
5717
5745
|
j(!I);
|
|
5718
|
-
},
|
|
5746
|
+
}, z = (N) => {
|
|
5719
5747
|
W.current && !W.current.contains(N.target) && j(!1);
|
|
5720
5748
|
}, P = () => {
|
|
5721
5749
|
if (i) {
|
|
5722
5750
|
const N = window.pageYOffset || document.documentElement.scrollTop;
|
|
5723
5751
|
if (N < 0 || Math.abs(N - $) < 60)
|
|
5724
5752
|
return;
|
|
5725
|
-
|
|
5753
|
+
_(N > $), L(N);
|
|
5726
5754
|
}
|
|
5727
5755
|
};
|
|
5728
5756
|
return /* @__PURE__ */ g.jsxs(
|
|
@@ -5746,7 +5774,7 @@ const X2 = Vn({
|
|
|
5746
5774
|
name: "oslologo",
|
|
5747
5775
|
className: "pkt-header__logo-svg",
|
|
5748
5776
|
"aria-hidden": "true",
|
|
5749
|
-
path: "https://punkt-cdn.oslo.kommune.no/12.
|
|
5777
|
+
path: "https://punkt-cdn.oslo.kommune.no/12.8/logos/"
|
|
5750
5778
|
}
|
|
5751
5779
|
) }) : /* @__PURE__ */ g.jsx(
|
|
5752
5780
|
"button",
|
|
@@ -5760,7 +5788,7 @@ const X2 = Vn({
|
|
|
5760
5788
|
name: "oslologo",
|
|
5761
5789
|
className: "pkt-header__logo-svg",
|
|
5762
5790
|
"aria-hidden": "true",
|
|
5763
|
-
path: "https://punkt-cdn.oslo.kommune.no/12.
|
|
5791
|
+
path: "https://punkt-cdn.oslo.kommune.no/12.8/logos/"
|
|
5764
5792
|
}
|
|
5765
5793
|
)
|
|
5766
5794
|
}
|
|
@@ -5829,7 +5857,7 @@ const X2 = Vn({
|
|
|
5829
5857
|
c.orgNumber
|
|
5830
5858
|
] })
|
|
5831
5859
|
] }),
|
|
5832
|
-
/* @__PURE__ */ g.jsx("ul", { className: "pkt-list mt-size-16", children: m && /* @__PURE__ */ g.jsx("li", { children: /* @__PURE__ */ g.jsxs("button", { className: "pkt-link-button pkt-link", onClick:
|
|
5860
|
+
/* @__PURE__ */ g.jsx("ul", { className: "pkt-list mt-size-16", children: m && /* @__PURE__ */ g.jsx("li", { children: /* @__PURE__ */ g.jsxs("button", { className: "pkt-link-button pkt-link", onClick: x, children: [
|
|
5833
5861
|
/* @__PURE__ */ g.jsx(pe, { name: "cogwheel", className: "pkt-link__icon" }),
|
|
5834
5862
|
"Endre organisasjon"
|
|
5835
5863
|
] }) }) })
|
|
@@ -5878,7 +5906,7 @@ const X2 = Vn({
|
|
|
5878
5906
|
] })
|
|
5879
5907
|
);
|
|
5880
5908
|
Q2.displayName = "PktInput";
|
|
5881
|
-
const
|
|
5909
|
+
const _a = je(
|
|
5882
5910
|
({
|
|
5883
5911
|
forId: e,
|
|
5884
5912
|
label: t,
|
|
@@ -5895,17 +5923,17 @@ const xa = je(
|
|
|
5895
5923
|
hasError: y,
|
|
5896
5924
|
errorMessage: b,
|
|
5897
5925
|
disabled: k,
|
|
5898
|
-
inline:
|
|
5926
|
+
inline: x,
|
|
5899
5927
|
ariaDescribedby: C,
|
|
5900
5928
|
useWrapper: T = !0,
|
|
5901
5929
|
children: F,
|
|
5902
5930
|
className: S,
|
|
5903
5931
|
hasFieldset: A = !1
|
|
5904
|
-
},
|
|
5932
|
+
}, _) => {
|
|
5905
5933
|
const [$, L] = gt(!1), I = () => {
|
|
5906
5934
|
L(!$);
|
|
5907
|
-
}, j = () => d ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : m ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", W = d ? h : m ? v : "", K = k ? "pkt-inputwrapper--disabled" : "",
|
|
5908
|
-
return /* @__PURE__ */ g.jsxs("div", { className: ["pkt-inputwrapper", S, K,
|
|
5935
|
+
}, j = () => d ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : m ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", W = d ? h : m ? v : "", K = k ? "pkt-inputwrapper--disabled" : "", z = x ? "pkt-inputwrapper--inline" : "", P = y ? "pkt-inputwrapper--error" : "", N = !!r && r !== "", q = i || 'Les mer <span class="pkt-sr-only">om inputfeltet</span>', X = A ? "fieldset" : N ? "div" : "label", de = A ? "legend" : N ? "h2" : "span", Q = C || (n ? `${e}-helptext` : void 0);
|
|
5936
|
+
return /* @__PURE__ */ g.jsxs("div", { className: ["pkt-inputwrapper", S, K, z, P].join(" "), ref: _, children: [
|
|
5909
5937
|
T ? /* @__PURE__ */ g.jsx(g.Fragment, { children: /* @__PURE__ */ g.jsxs(
|
|
5910
5938
|
X,
|
|
5911
5939
|
{
|
|
@@ -5955,8 +5983,8 @@ const xa = je(
|
|
|
5955
5983
|
] });
|
|
5956
5984
|
}
|
|
5957
5985
|
);
|
|
5958
|
-
|
|
5959
|
-
const Z2 =
|
|
5986
|
+
_a.displayName = "PktInputWrapper";
|
|
5987
|
+
const Z2 = zn({
|
|
5960
5988
|
tagName: "pkt-link",
|
|
5961
5989
|
elementClass: Dn,
|
|
5962
5990
|
react: ye,
|
|
@@ -6029,7 +6057,7 @@ const ny = je(
|
|
|
6029
6057
|
pe,
|
|
6030
6058
|
{
|
|
6031
6059
|
name: b(o),
|
|
6032
|
-
path: "https://punkt-cdn.oslo.kommune.no/12.
|
|
6060
|
+
path: "https://punkt-cdn.oslo.kommune.no/12.8/animations/",
|
|
6033
6061
|
className: `pkt-loader__svg pkt-loader__${o}`
|
|
6034
6062
|
}
|
|
6035
6063
|
),
|
|
@@ -6040,7 +6068,7 @@ const ny = je(
|
|
|
6040
6068
|
}
|
|
6041
6069
|
);
|
|
6042
6070
|
ny.displayName = "PktLoader";
|
|
6043
|
-
const ry =
|
|
6071
|
+
const ry = zn({
|
|
6044
6072
|
tagName: "pkt-messagebox",
|
|
6045
6073
|
elementClass: bn,
|
|
6046
6074
|
react: ye,
|
|
@@ -6065,14 +6093,14 @@ function iy(e) {
|
|
|
6065
6093
|
var t, n;
|
|
6066
6094
|
return Ru(e) === !1 ? !1 : (t = e.constructor, t === void 0 ? !0 : (n = t.prototype, !(Ru(n) === !1 || n.hasOwnProperty("isPrototypeOf") === !1)));
|
|
6067
6095
|
}
|
|
6068
|
-
var dp = {},
|
|
6069
|
-
return
|
|
6096
|
+
var dp = {}, xi = yn && yn.__assign || function() {
|
|
6097
|
+
return xi = Object.assign || function(e) {
|
|
6070
6098
|
for (var t, n = 1, r = arguments.length; n < r; n++) {
|
|
6071
6099
|
t = arguments[n];
|
|
6072
6100
|
for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
6073
6101
|
}
|
|
6074
6102
|
return e;
|
|
6075
|
-
},
|
|
6103
|
+
}, xi.apply(this, arguments);
|
|
6076
6104
|
}, sy = yn && yn.__spreadArrays || function() {
|
|
6077
6105
|
for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
|
|
6078
6106
|
for (var r = Array(e), i = 0, t = 0; t < n; t++)
|
|
@@ -6099,7 +6127,7 @@ function hi(e, t, n) {
|
|
|
6099
6127
|
var r = {
|
|
6100
6128
|
indent: " ",
|
|
6101
6129
|
singleQuotes: !0
|
|
6102
|
-
}, i =
|
|
6130
|
+
}, i = xi(xi({}, r), t), o;
|
|
6103
6131
|
i.inlineCharacterLimit === void 0 ? o = {
|
|
6104
6132
|
newLine: `
|
|
6105
6133
|
`,
|
|
@@ -6144,8 +6172,8 @@ function hi(e, t, n) {
|
|
|
6144
6172
|
return "{}";
|
|
6145
6173
|
Zr.push(e);
|
|
6146
6174
|
var c = "{" + o.newLine + d.map(function(m, v) {
|
|
6147
|
-
var y = d.length - 1 === v ? o.newLine : "," + o.newLineOrSpace, b = typeof m == "symbol", k = !b && /^[a-z$_][a-z$_0-9]*$/i.test(m.toString()),
|
|
6148
|
-
return i.transform && (C = i.transform(e, m, C)), o.indent + String(
|
|
6175
|
+
var y = d.length - 1 === v ? o.newLine : "," + o.newLineOrSpace, b = typeof m == "symbol", k = !b && /^[a-z$_][a-z$_0-9]*$/i.test(m.toString()), x = b || k ? m : hi(m, i), C = hi(e[m], i, n + i.indent);
|
|
6176
|
+
return i.transform && (C = i.transform(e, m, C)), o.indent + String(x) + ": " + C + y;
|
|
6149
6177
|
}).join("") + o.pad + "}";
|
|
6150
6178
|
return Zr.pop(), u(c);
|
|
6151
6179
|
}
|
|
@@ -6170,7 +6198,7 @@ function py() {
|
|
|
6170
6198
|
qu = 1;
|
|
6171
6199
|
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), u = Symbol.for("react.context"), c = Symbol.for("react.server_context"), d = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), k;
|
|
6172
6200
|
k = Symbol.for("react.module.reference");
|
|
6173
|
-
function
|
|
6201
|
+
function x(C) {
|
|
6174
6202
|
if (typeof C == "object" && C !== null) {
|
|
6175
6203
|
var T = C.$$typeof;
|
|
6176
6204
|
switch (T) {
|
|
@@ -6205,32 +6233,32 @@ function py() {
|
|
|
6205
6233
|
}, be.isConcurrentMode = function() {
|
|
6206
6234
|
return !1;
|
|
6207
6235
|
}, be.isContextConsumer = function(C) {
|
|
6208
|
-
return
|
|
6236
|
+
return x(C) === u;
|
|
6209
6237
|
}, be.isContextProvider = function(C) {
|
|
6210
|
-
return
|
|
6238
|
+
return x(C) === o;
|
|
6211
6239
|
}, be.isElement = function(C) {
|
|
6212
6240
|
return typeof C == "object" && C !== null && C.$$typeof === e;
|
|
6213
6241
|
}, be.isForwardRef = function(C) {
|
|
6214
|
-
return
|
|
6242
|
+
return x(C) === d;
|
|
6215
6243
|
}, be.isFragment = function(C) {
|
|
6216
|
-
return
|
|
6244
|
+
return x(C) === n;
|
|
6217
6245
|
}, be.isLazy = function(C) {
|
|
6218
|
-
return
|
|
6246
|
+
return x(C) === y;
|
|
6219
6247
|
}, be.isMemo = function(C) {
|
|
6220
|
-
return
|
|
6248
|
+
return x(C) === v;
|
|
6221
6249
|
}, be.isPortal = function(C) {
|
|
6222
|
-
return
|
|
6250
|
+
return x(C) === t;
|
|
6223
6251
|
}, be.isProfiler = function(C) {
|
|
6224
|
-
return
|
|
6252
|
+
return x(C) === i;
|
|
6225
6253
|
}, be.isStrictMode = function(C) {
|
|
6226
|
-
return
|
|
6254
|
+
return x(C) === r;
|
|
6227
6255
|
}, be.isSuspense = function(C) {
|
|
6228
|
-
return
|
|
6256
|
+
return x(C) === h;
|
|
6229
6257
|
}, be.isSuspenseList = function(C) {
|
|
6230
|
-
return
|
|
6258
|
+
return x(C) === m;
|
|
6231
6259
|
}, be.isValidElementType = function(C) {
|
|
6232
6260
|
return typeof C == "string" || typeof C == "function" || C === n || C === i || C === r || C === h || C === m || C === b || typeof C == "object" && C !== null && (C.$$typeof === y || C.$$typeof === v || C.$$typeof === o || C.$$typeof === u || C.$$typeof === d || C.$$typeof === k || C.getModuleId !== void 0);
|
|
6233
|
-
}, be.typeOf =
|
|
6261
|
+
}, be.typeOf = x, be;
|
|
6234
6262
|
}
|
|
6235
6263
|
var ke = {};
|
|
6236
6264
|
/**
|
|
@@ -6245,16 +6273,16 @@ var ke = {};
|
|
|
6245
6273
|
var Hu;
|
|
6246
6274
|
function dy() {
|
|
6247
6275
|
return Hu || (Hu = 1, process.env.NODE_ENV !== "production" && function() {
|
|
6248
|
-
var e = !1, t = !1, n = !1, r = !1, i = !1, o = Symbol.for("react.element"), u = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), v = Symbol.for("react.context"), y = Symbol.for("react.server_context"), b = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"),
|
|
6276
|
+
var e = !1, t = !1, n = !1, r = !1, i = !1, o = Symbol.for("react.element"), u = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), v = Symbol.for("react.context"), y = Symbol.for("react.server_context"), b = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), S;
|
|
6249
6277
|
S = Symbol.for("react.module.reference");
|
|
6250
6278
|
function A(J) {
|
|
6251
|
-
return !!(typeof J == "string" || typeof J == "function" || J === c || J === h || i || J === d || J === k || J ===
|
|
6279
|
+
return !!(typeof J == "string" || typeof J == "function" || J === c || J === h || i || J === d || J === k || J === x || r || J === F || e || t || n || typeof J == "object" && J !== null && (J.$$typeof === T || J.$$typeof === C || J.$$typeof === m || J.$$typeof === v || J.$$typeof === b || // This needs to include all possible module reference object
|
|
6252
6280
|
// types supported by any Flight configuration anywhere since
|
|
6253
6281
|
// we don't know which Flight build this will end up being used
|
|
6254
6282
|
// with.
|
|
6255
6283
|
J.$$typeof === S || J.getModuleId !== void 0));
|
|
6256
6284
|
}
|
|
6257
|
-
function
|
|
6285
|
+
function _(J) {
|
|
6258
6286
|
if (typeof J == "object" && J !== null) {
|
|
6259
6287
|
var Ot = J.$$typeof;
|
|
6260
6288
|
switch (Ot) {
|
|
@@ -6265,7 +6293,7 @@ function dy() {
|
|
|
6265
6293
|
case h:
|
|
6266
6294
|
case d:
|
|
6267
6295
|
case k:
|
|
6268
|
-
case
|
|
6296
|
+
case x:
|
|
6269
6297
|
return we;
|
|
6270
6298
|
default:
|
|
6271
6299
|
var Le = we && we.$$typeof;
|
|
@@ -6286,7 +6314,7 @@ function dy() {
|
|
|
6286
6314
|
}
|
|
6287
6315
|
}
|
|
6288
6316
|
}
|
|
6289
|
-
var $ = v, L = m, I = o, j = b, W = c, K = T,
|
|
6317
|
+
var $ = v, L = m, I = o, j = b, W = c, K = T, z = C, P = u, N = h, q = d, X = k, de = x, Q = !1, ie = !1;
|
|
6290
6318
|
function he(J) {
|
|
6291
6319
|
return Q || (Q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
6292
6320
|
}
|
|
@@ -6294,42 +6322,42 @@ function dy() {
|
|
|
6294
6322
|
return ie || (ie = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
6295
6323
|
}
|
|
6296
6324
|
function ge(J) {
|
|
6297
|
-
return
|
|
6325
|
+
return _(J) === v;
|
|
6298
6326
|
}
|
|
6299
6327
|
function rt(J) {
|
|
6300
|
-
return
|
|
6328
|
+
return _(J) === m;
|
|
6301
6329
|
}
|
|
6302
6330
|
function Be(J) {
|
|
6303
6331
|
return typeof J == "object" && J !== null && J.$$typeof === o;
|
|
6304
6332
|
}
|
|
6305
6333
|
function Ee(J) {
|
|
6306
|
-
return
|
|
6334
|
+
return _(J) === b;
|
|
6307
6335
|
}
|
|
6308
6336
|
function Ne(J) {
|
|
6309
|
-
return
|
|
6337
|
+
return _(J) === c;
|
|
6310
6338
|
}
|
|
6311
6339
|
function se(J) {
|
|
6312
|
-
return
|
|
6340
|
+
return _(J) === T;
|
|
6313
6341
|
}
|
|
6314
6342
|
function pt(J) {
|
|
6315
|
-
return
|
|
6343
|
+
return _(J) === C;
|
|
6316
6344
|
}
|
|
6317
|
-
function
|
|
6318
|
-
return
|
|
6345
|
+
function xt(J) {
|
|
6346
|
+
return _(J) === u;
|
|
6319
6347
|
}
|
|
6320
6348
|
function yt(J) {
|
|
6321
|
-
return
|
|
6349
|
+
return _(J) === h;
|
|
6322
6350
|
}
|
|
6323
6351
|
function Dt(J) {
|
|
6324
|
-
return
|
|
6352
|
+
return _(J) === d;
|
|
6325
6353
|
}
|
|
6326
6354
|
function pn(J) {
|
|
6327
|
-
return
|
|
6355
|
+
return _(J) === k;
|
|
6328
6356
|
}
|
|
6329
6357
|
function bt(J) {
|
|
6330
|
-
return
|
|
6358
|
+
return _(J) === x;
|
|
6331
6359
|
}
|
|
6332
|
-
ke.ContextConsumer = $, ke.ContextProvider = L, ke.Element = I, ke.ForwardRef = j, ke.Fragment = W, ke.Lazy = K, ke.Memo =
|
|
6360
|
+
ke.ContextConsumer = $, ke.ContextProvider = L, ke.Element = I, ke.ForwardRef = j, ke.Fragment = W, ke.Lazy = K, ke.Memo = z, ke.Portal = P, ke.Profiler = N, ke.StrictMode = q, ke.Suspense = X, ke.SuspenseList = de, ke.isAsyncMode = he, ke.isConcurrentMode = ne, ke.isContextConsumer = ge, ke.isContextProvider = rt, ke.isElement = Be, ke.isForwardRef = Ee, ke.isFragment = Ne, ke.isLazy = se, ke.isMemo = pt, ke.isPortal = xt, ke.isProfiler = yt, ke.isStrictMode = Dt, ke.isSuspense = pn, ke.isSuspenseList = bt, ke.isValidElementType = A, ke.typeOf = _;
|
|
6333
6361
|
}()), ke;
|
|
6334
6362
|
}
|
|
6335
6363
|
process.env.NODE_ENV === "production" ? Xs.exports = py() : Xs.exports = dy();
|
|
@@ -6443,9 +6471,9 @@ var hp = function(t) {
|
|
|
6443
6471
|
}
|
|
6444
6472
|
}, Wu = function(t, n) {
|
|
6445
6473
|
return n !== "children";
|
|
6446
|
-
},
|
|
6474
|
+
}, _y = function(t) {
|
|
6447
6475
|
return t !== !0 && t !== !1 && t !== null && t !== "";
|
|
6448
|
-
},
|
|
6476
|
+
}, Vu = function(t, n) {
|
|
6449
6477
|
var r = {};
|
|
6450
6478
|
return Object.keys(t).filter(function(i) {
|
|
6451
6479
|
return n(t[i], i);
|
|
@@ -6460,25 +6488,25 @@ var hp = function(t) {
|
|
|
6460
6488
|
return yy(t);
|
|
6461
6489
|
if (!/* @__PURE__ */ ye.isValidElement(t))
|
|
6462
6490
|
throw new Error("react-element-to-jsx-string: Expected a React.Element, got `".concat(fa(t), "`"));
|
|
6463
|
-
var o = i(t), u =
|
|
6491
|
+
var o = i(t), u = Vu(t.props, Wu);
|
|
6464
6492
|
t.ref !== null && (u.ref = t.ref);
|
|
6465
6493
|
var c = t.key;
|
|
6466
6494
|
typeof c == "string" && c.search(/^\./) && (u.key = c);
|
|
6467
|
-
var d =
|
|
6495
|
+
var d = Vu(t.type.defaultProps || {}, Wu), h = ye.Children.toArray(t.props.children).filter(_y).map(function(m) {
|
|
6468
6496
|
return e(m, n);
|
|
6469
6497
|
});
|
|
6470
6498
|
return ky && t.type === vo ? by(c, h) : Dy(o, u, d, h);
|
|
6471
6499
|
};
|
|
6472
|
-
function
|
|
6500
|
+
function xy() {
|
|
6473
6501
|
}
|
|
6474
6502
|
var Sy = function(t) {
|
|
6475
6503
|
return t.toString().split(`
|
|
6476
6504
|
`).map(function(n) {
|
|
6477
6505
|
return n.trim();
|
|
6478
6506
|
}).join("");
|
|
6479
|
-
},
|
|
6480
|
-
var n = t.functionValue, r = n === void 0 ?
|
|
6481
|
-
return r(!i && r ===
|
|
6507
|
+
}, zu = Sy, mp = function(e, t) {
|
|
6508
|
+
var n = t.functionValue, r = n === void 0 ? zu : n, i = t.showFunctions;
|
|
6509
|
+
return r(!i && r === zu ? xy : e);
|
|
6482
6510
|
}, Ey = function(e, t, n, r) {
|
|
6483
6511
|
var i = vy(e), o = cy(i, {
|
|
6484
6512
|
transform: function(c, d, h) {
|
|
@@ -6555,20 +6583,20 @@ var Ly = function(t, n, r, i, o) {
|
|
|
6555
6583
|
var i = e.type, o = e.displayName, u = o === void 0 ? "" : o, c = e.childrens, d = e.props, h = d === void 0 ? {} : d, m = e.defaultProps, v = m === void 0 ? {} : m;
|
|
6556
6584
|
if (i !== "ReactElement")
|
|
6557
6585
|
throw new Error('The "formatReactElementNode" function could only format node of type "ReactElement". Given: '.concat(i));
|
|
6558
|
-
var y = r.filterProps, b = r.maxInlineAttributesLineLength, k = r.showDefaultProps,
|
|
6586
|
+
var y = r.filterProps, b = r.maxInlineAttributesLineLength, k = r.showDefaultProps, x = r.sortProps, C = r.tabStop, T = "<".concat(u), F = T, S = T, A = !1, _ = [], $ = jy(h, y);
|
|
6559
6587
|
Object.keys(h).filter($).filter(Oy(v, h)).forEach(function(j) {
|
|
6560
|
-
return
|
|
6588
|
+
return _.push(j);
|
|
6561
6589
|
}), Object.keys(v).filter($).filter(function() {
|
|
6562
6590
|
return k;
|
|
6563
6591
|
}).filter(function(j) {
|
|
6564
|
-
return !
|
|
6592
|
+
return !_.includes(j);
|
|
6565
6593
|
}).forEach(function(j) {
|
|
6566
|
-
return
|
|
6594
|
+
return _.push(j);
|
|
6567
6595
|
});
|
|
6568
|
-
var L = Ny(
|
|
6596
|
+
var L = Ny(x)(_);
|
|
6569
6597
|
if (L.forEach(function(j) {
|
|
6570
|
-
var W = $y(j, Object.keys(h).includes(j), h[j], Object.keys(v).includes(j), v[j], t, n, r), K = W.attributeFormattedInline,
|
|
6571
|
-
P && (A = !0), F += K, S +=
|
|
6598
|
+
var W = $y(j, Object.keys(h).includes(j), h[j], Object.keys(v).includes(j), v[j], t, n, r), K = W.attributeFormattedInline, z = W.attributeFormattedMultiline, P = W.isMultilineAttribute;
|
|
6599
|
+
P && (A = !0), F += K, S += z;
|
|
6572
6600
|
}), S += `
|
|
6573
6601
|
`.concat(Qt(n, C)), Iy(L, F, A, t, n, C, b) ? T = S : T = F, c && c.length > 0) {
|
|
6574
6602
|
var I = n + 1;
|
|
@@ -6602,12 +6630,12 @@ var Ly = function(t, n, r, i, o) {
|
|
|
6602
6630
|
throw new Error('The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: '.concat(i));
|
|
6603
6631
|
var c = r.useFragmentShortSyntax, d;
|
|
6604
6632
|
return c ? Hy(e) || qy(e) ? d = Gu : d = My : d = Gu, vp(Ry(d, o, u), t, n, r);
|
|
6605
|
-
}, Wy = ["<", ">", "{", "}"],
|
|
6633
|
+
}, Wy = ["<", ">", "{", "}"], Vy = function(t) {
|
|
6606
6634
|
return Wy.some(function(n) {
|
|
6607
6635
|
return t.includes(n);
|
|
6608
6636
|
});
|
|
6609
|
-
},
|
|
6610
|
-
return
|
|
6637
|
+
}, zy = function(t) {
|
|
6638
|
+
return Vy(t) ? "{`".concat(t, "`}") : t;
|
|
6611
6639
|
}, Gy = function(t) {
|
|
6612
6640
|
var n = t;
|
|
6613
6641
|
return n.endsWith(" ") && (n = n.replace(/^(.*?)(\s+)$/, "$1{'$2'}")), n.startsWith(" ") && (n = n.replace(/^(\s+)(.*)$/, "{'$1'}$2")), n;
|
|
@@ -6615,7 +6643,7 @@ var Ly = function(t, n, r, i, o) {
|
|
|
6615
6643
|
if (e.type === "number")
|
|
6616
6644
|
return String(e.value);
|
|
6617
6645
|
if (e.type === "string")
|
|
6618
|
-
return e.value ? "".concat(Gy(
|
|
6646
|
+
return e.value ? "".concat(Gy(zy(String(e.value)))) : "";
|
|
6619
6647
|
if (e.type === "ReactElement")
|
|
6620
6648
|
return vp(e, t, n, r);
|
|
6621
6649
|
if (e.type === "ReactFragment")
|
|
@@ -6624,7 +6652,7 @@ var Ly = function(t, n, r, i, o) {
|
|
|
6624
6652
|
}, Yy = function(e, t) {
|
|
6625
6653
|
return Ni(e, !1, 0, t);
|
|
6626
6654
|
}, Ky = function(t) {
|
|
6627
|
-
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, m = n.tabStop, v = m === void 0 ? 2 : m, y = n.useBooleanShorthandSyntax, b = y === void 0 ? !0 : y, k = n.useFragmentShortSyntax,
|
|
6655
|
+
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, m = n.tabStop, v = m === void 0 ? 2 : m, y = n.useBooleanShorthandSyntax, b = y === void 0 ? !0 : y, k = n.useFragmentShortSyntax, x = k === void 0 ? !0 : k, C = n.sortProps, T = C === void 0 ? !0 : C, F = n.maxInlineAttributesLineLength, S = n.displayName;
|
|
6628
6656
|
if (!t)
|
|
6629
6657
|
throw new Error("react-element-to-jsx-string: Expected a ReactElement");
|
|
6630
6658
|
var A = {
|
|
@@ -6634,7 +6662,7 @@ var Ly = function(t, n, r, i, o) {
|
|
|
6634
6662
|
functionValue: h,
|
|
6635
6663
|
tabStop: v,
|
|
6636
6664
|
useBooleanShorthandSyntax: b,
|
|
6637
|
-
useFragmentShortSyntax:
|
|
6665
|
+
useFragmentShortSyntax: x,
|
|
6638
6666
|
sortProps: T,
|
|
6639
6667
|
maxInlineAttributesLineLength: F,
|
|
6640
6668
|
displayName: S
|
|
@@ -6642,64 +6670,64 @@ var Ly = function(t, n, r, i, o) {
|
|
|
6642
6670
|
return Yy(Co(t, A), A);
|
|
6643
6671
|
}, Jy = Object.create, ji = Object.defineProperty, Xy = Object.getOwnPropertyDescriptor, Qy = Object.getOwnPropertyNames, Zy = Object.getPrototypeOf, eD = Object.prototype.hasOwnProperty, yp = (e) => {
|
|
6644
6672
|
throw TypeError(e);
|
|
6645
|
-
}, tD = (e, t) => () => (e && (t = e(e = 0)), t),
|
|
6673
|
+
}, tD = (e, t) => () => (e && (t = e(e = 0)), t), _o = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), Li = (e, t) => {
|
|
6646
6674
|
for (var n in t) ji(e, n, { get: t[n], enumerable: !0 });
|
|
6647
6675
|
}, Dp = (e, t, n, r) => {
|
|
6648
6676
|
if (t && typeof t == "object" || typeof t == "function") for (let i of Qy(t)) !eD.call(e, i) && i !== n && ji(e, i, { get: () => t[i], enumerable: !(r = Xy(t, i)) || r.enumerable });
|
|
6649
6677
|
return e;
|
|
6650
|
-
}, Pi = (e, t, n) => (n = e != null ? Jy(Zy(e)) : {}, Dp(ji(n, "default", { value: e, enumerable: !0 }), e)), nD = (e) => Dp(ji({}, "__esModule", { value: !0 }), e), rD = (e, t, n) => t.has(e) || yp("Cannot " + n), aD = (e, t, n) => t.has(e) ? yp("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), ea = (e, t, n) => (rD(e, t, "access private method"), n),
|
|
6678
|
+
}, Pi = (e, t, n) => (n = e != null ? Jy(Zy(e)) : {}, Dp(ji(n, "default", { value: e, enumerable: !0 }), e)), nD = (e) => Dp(ji({}, "__esModule", { value: !0 }), e), rD = (e, t, n) => t.has(e) || yp("Cannot " + n), aD = (e, t, n) => t.has(e) ? yp("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), ea = (e, t, n) => (rD(e, t, "access private method"), n), xo = _o((e, t) => {
|
|
6651
6679
|
var n = new Proxy(String, { get: () => n });
|
|
6652
6680
|
t.exports = n;
|
|
6653
6681
|
}), bp = {};
|
|
6654
6682
|
Li(bp, { default: () => wp, shouldHighlight: () => kp });
|
|
6655
6683
|
var kp, wp, iD = tD(() => {
|
|
6656
6684
|
kp = () => !1, wp = String;
|
|
6657
|
-
}), sD =
|
|
6685
|
+
}), sD = _o((e, t) => {
|
|
6658
6686
|
var n = String, r = function() {
|
|
6659
6687
|
return { isColorSupported: !1, reset: n, bold: n, dim: n, italic: n, underline: n, inverse: n, hidden: n, strikethrough: n, black: n, red: n, green: n, yellow: n, blue: n, magenta: n, cyan: n, white: n, gray: n, bgBlack: n, bgRed: n, bgGreen: n, bgYellow: n, bgBlue: n, bgMagenta: n, bgCyan: n, bgWhite: n };
|
|
6660
6688
|
};
|
|
6661
6689
|
t.exports = r(), t.exports.createColors = r;
|
|
6662
|
-
}), oD =
|
|
6690
|
+
}), oD = _o((e) => {
|
|
6663
6691
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.codeFrameColumns = b, e.default = k;
|
|
6664
6692
|
var t = (iD(), nD(bp)), n = i(sD(), !0);
|
|
6665
|
-
function r(
|
|
6693
|
+
function r(x) {
|
|
6666
6694
|
if (typeof WeakMap != "function") return null;
|
|
6667
6695
|
var C = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap();
|
|
6668
6696
|
return (r = function(F) {
|
|
6669
6697
|
return F ? T : C;
|
|
6670
|
-
})(
|
|
6698
|
+
})(x);
|
|
6671
6699
|
}
|
|
6672
|
-
function i(
|
|
6673
|
-
if (
|
|
6700
|
+
function i(x, C) {
|
|
6701
|
+
if (x === null || typeof x != "object" && typeof x != "function") return { default: x };
|
|
6674
6702
|
var T = r(C);
|
|
6675
|
-
if (T && T.has(
|
|
6703
|
+
if (T && T.has(x)) return T.get(x);
|
|
6676
6704
|
var F = { __proto__: null }, S = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
6677
|
-
for (var A in
|
|
6678
|
-
var
|
|
6679
|
-
|
|
6705
|
+
for (var A in x) if (A !== "default" && {}.hasOwnProperty.call(x, A)) {
|
|
6706
|
+
var _ = S ? Object.getOwnPropertyDescriptor(x, A) : null;
|
|
6707
|
+
_ && (_.get || _.set) ? Object.defineProperty(F, A, _) : F[A] = x[A];
|
|
6680
6708
|
}
|
|
6681
|
-
return F.default =
|
|
6709
|
+
return F.default = x, T && T.set(x, F), F;
|
|
6682
6710
|
}
|
|
6683
|
-
var o = n.default, u = (
|
|
6684
|
-
function d(
|
|
6685
|
-
return
|
|
6711
|
+
var o = n.default, u = (x, C) => (T) => x(C(T)), c;
|
|
6712
|
+
function d(x) {
|
|
6713
|
+
return x ? (c != null || (c = (0, n.createColors)(!0)), c) : o;
|
|
6686
6714
|
}
|
|
6687
6715
|
var h = !1;
|
|
6688
|
-
function m(
|
|
6689
|
-
return { gutter:
|
|
6716
|
+
function m(x) {
|
|
6717
|
+
return { gutter: x.gray, marker: u(x.red, x.bold), message: u(x.red, x.bold) };
|
|
6690
6718
|
}
|
|
6691
6719
|
var v = /\r\n|[\n\r\u2028\u2029]/;
|
|
6692
|
-
function y(
|
|
6693
|
-
let F = Object.assign({ column: 0, line: -1 },
|
|
6720
|
+
function y(x, C, T) {
|
|
6721
|
+
let F = Object.assign({ column: 0, line: -1 }, x.start), S = Object.assign({}, F, x.end), { linesAbove: A = 2, linesBelow: _ = 3 } = T || {}, $ = F.line, L = F.column, I = S.line, j = S.column, W = Math.max($ - (A + 1), 0), K = Math.min(C.length, I + _);
|
|
6694
6722
|
$ === -1 && (W = 0), I === -1 && (K = C.length);
|
|
6695
|
-
let
|
|
6696
|
-
if (
|
|
6723
|
+
let z = I - $, P = {};
|
|
6724
|
+
if (z) for (let N = 0; N <= z; N++) {
|
|
6697
6725
|
let q = N + $;
|
|
6698
6726
|
if (!L) P[q] = !0;
|
|
6699
6727
|
else if (N === 0) {
|
|
6700
6728
|
let X = C[q - 1].length;
|
|
6701
6729
|
P[q] = [L, X - L + 1];
|
|
6702
|
-
} else if (N ===
|
|
6730
|
+
} else if (N === z) P[q] = [0, j];
|
|
6703
6731
|
else {
|
|
6704
6732
|
let X = C[q - N].length;
|
|
6705
6733
|
P[q] = [0, X];
|
|
@@ -6708,24 +6736,24 @@ var kp, wp, iD = tD(() => {
|
|
|
6708
6736
|
else L === j ? L ? P[$] = [L, 0] : P[$] = !0 : P[$] = [L, j - L];
|
|
6709
6737
|
return { start: W, end: K, markerLines: P };
|
|
6710
6738
|
}
|
|
6711
|
-
function b(
|
|
6712
|
-
let F = (T.highlightCode || T.forceColor) && (0, t.shouldHighlight)(T), S = d(T.forceColor), A = m(S),
|
|
6739
|
+
function b(x, C, T = {}) {
|
|
6740
|
+
let F = (T.highlightCode || T.forceColor) && (0, t.shouldHighlight)(T), S = d(T.forceColor), A = m(S), _ = (P, N) => F ? P(N) : N, $ = x.split(v), { start: L, end: I, markerLines: j } = y(C, $, T), W = C.start && typeof C.start.column == "number", K = String(I).length, z = (F ? (0, t.default)(x, T) : x).split(v, I).slice(L, I).map((P, N) => {
|
|
6713
6741
|
let q = L + 1 + N, X = ` ${` ${q}`.slice(-K)} |`, de = j[q], Q = !j[q + 1];
|
|
6714
6742
|
if (de) {
|
|
6715
6743
|
let ie = "";
|
|
6716
6744
|
if (Array.isArray(de)) {
|
|
6717
6745
|
let he = P.slice(0, Math.max(de[0] - 1, 0)).replace(/[^\t]/g, " "), ne = de[1] || 1;
|
|
6718
6746
|
ie = [`
|
|
6719
|
-
`,
|
|
6747
|
+
`, _(A.gutter, X.replace(/\d/g, " ")), " ", he, _(A.marker, "^").repeat(ne)].join(""), Q && T.message && (ie += " " + _(A.message, T.message));
|
|
6720
6748
|
}
|
|
6721
|
-
return [
|
|
6722
|
-
} else return ` ${
|
|
6749
|
+
return [_(A.marker, ">"), _(A.gutter, X), P.length > 0 ? ` ${P}` : "", ie].join("");
|
|
6750
|
+
} else return ` ${_(A.gutter, X)}${P.length > 0 ? ` ${P}` : ""}`;
|
|
6723
6751
|
}).join(`
|
|
6724
6752
|
`);
|
|
6725
|
-
return T.message && !W && (
|
|
6726
|
-
${
|
|
6753
|
+
return T.message && !W && (z = `${" ".repeat(K + 1)}${T.message}
|
|
6754
|
+
${z}`), F ? S.reset(z) : z;
|
|
6727
6755
|
}
|
|
6728
|
-
function k(
|
|
6756
|
+
function k(x, C, T, F = {}) {
|
|
6729
6757
|
if (!h) {
|
|
6730
6758
|
h = !0;
|
|
6731
6759
|
let S = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";
|
|
@@ -6734,7 +6762,7 @@ ${V}`), F ? S.reset(V) : V;
|
|
|
6734
6762
|
A.name = "DeprecationWarning", console.warn(new Error(S));
|
|
6735
6763
|
}
|
|
6736
6764
|
}
|
|
6737
|
-
return T = Math.max(T, 0), b(
|
|
6765
|
+
return T = Math.max(T, 0), b(x, { start: { column: T, line: C } }, F);
|
|
6738
6766
|
}
|
|
6739
6767
|
}), lD = {};
|
|
6740
6768
|
Li(lD, { __debug: () => ck, check: () => lk, doc: () => ld, format: () => Mo, formatWithCursor: () => cd, getSupportInfo: () => uk, util: () => ud, version: () => Ib });
|
|
@@ -6757,23 +6785,23 @@ Cn.prototype = { diff: function(e, t) {
|
|
|
6757
6785
|
r.maxEditLength && (m = Math.min(m, r.maxEditLength));
|
|
6758
6786
|
var v = (n = r.timeout) !== null && n !== void 0 ? n : 1 / 0, y = Date.now() + v, b = [{ oldPos: -1, lastComponent: void 0 }], k = this.extractCommon(b[0], t, e, 0);
|
|
6759
6787
|
if (b[0].oldPos + 1 >= d && k + 1 >= c) return u([{ value: this.join(t), count: t.length }]);
|
|
6760
|
-
var
|
|
6788
|
+
var x = -1 / 0, C = 1 / 0;
|
|
6761
6789
|
function T() {
|
|
6762
|
-
for (var S = Math.max(
|
|
6763
|
-
var A = void 0,
|
|
6764
|
-
|
|
6790
|
+
for (var S = Math.max(x, -h); S <= Math.min(C, h); S += 2) {
|
|
6791
|
+
var A = void 0, _ = b[S - 1], $ = b[S + 1];
|
|
6792
|
+
_ && (b[S - 1] = void 0);
|
|
6765
6793
|
var L = !1;
|
|
6766
6794
|
if ($) {
|
|
6767
6795
|
var I = $.oldPos - S;
|
|
6768
6796
|
L = $ && 0 <= I && I < c;
|
|
6769
6797
|
}
|
|
6770
|
-
var j =
|
|
6798
|
+
var j = _ && _.oldPos + 1 < d;
|
|
6771
6799
|
if (!L && !j) {
|
|
6772
6800
|
b[S] = void 0;
|
|
6773
6801
|
continue;
|
|
6774
6802
|
}
|
|
6775
|
-
if (!j || L &&
|
|
6776
|
-
b[S] = A, A.oldPos + 1 >= d && (C = Math.min(C, S - 1)), k + 1 >= c && (
|
|
6803
|
+
if (!j || L && _.oldPos + 1 < $.oldPos ? A = o.addToPath($, !0, void 0, 0) : A = o.addToPath(_, void 0, !0, 1), k = o.extractCommon(A, t, e, S), A.oldPos + 1 >= d && k + 1 >= c) return u(cD(o, A.lastComponent, t, e, o.useLongestToken));
|
|
6804
|
+
b[S] = A, A.oldPos + 1 >= d && (C = Math.min(C, S - 1)), k + 1 >= c && (x = Math.max(x, S + 1));
|
|
6777
6805
|
}
|
|
6778
6806
|
h++;
|
|
6779
6807
|
}
|
|
@@ -6818,9 +6846,9 @@ function cD(e, t, n, r, i) {
|
|
|
6818
6846
|
} else {
|
|
6819
6847
|
if (!v.added && i) {
|
|
6820
6848
|
var b = n.slice(h, h + v.count);
|
|
6821
|
-
b = b.map(function(
|
|
6849
|
+
b = b.map(function(x, C) {
|
|
6822
6850
|
var T = r[m + C];
|
|
6823
|
-
return T.length >
|
|
6851
|
+
return T.length > x.length ? T : x;
|
|
6824
6852
|
}), v.value = e.join(b);
|
|
6825
6853
|
} else v.value = e.join(n.slice(h, h + v.count));
|
|
6826
6854
|
h += v.count, v.added || (m += v.count);
|
|
@@ -6837,8 +6865,8 @@ Cp.tokenize = function(e) {
|
|
|
6837
6865
|
for (var t = e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/), n = 0; n < t.length - 1; n++) !t[n + 1] && t[n + 2] && Yu.test(t[n]) && Yu.test(t[n + 2]) && (t[n] += t[n + 2], t.splice(n + 1, 2), n--);
|
|
6838
6866
|
return t;
|
|
6839
6867
|
};
|
|
6840
|
-
var
|
|
6841
|
-
|
|
6868
|
+
var _p = new Cn();
|
|
6869
|
+
_p.tokenize = function(e) {
|
|
6842
6870
|
this.options.stripTrailingCr && (e = e.replace(/\r\n/g, `
|
|
6843
6871
|
`));
|
|
6844
6872
|
var t = [], n = e.split(/(\n|\r\n)/);
|
|
@@ -6867,7 +6895,7 @@ function fi(e) {
|
|
|
6867
6895
|
}
|
|
6868
6896
|
var hD = Object.prototype.toString, ma = new Cn();
|
|
6869
6897
|
ma.useLongestToken = !0;
|
|
6870
|
-
ma.tokenize =
|
|
6898
|
+
ma.tokenize = _p.tokenize;
|
|
6871
6899
|
ma.castInput = function(e) {
|
|
6872
6900
|
var t = this.options, n = t.undefinedReplacement, r = t.stringifyReplacer, i = r === void 0 ? function(o, u) {
|
|
6873
6901
|
return typeof u > "u" ? n : u;
|
|
@@ -6922,7 +6950,7 @@ function So(e) {
|
|
|
6922
6950
|
`;
|
|
6923
6951
|
}
|
|
6924
6952
|
}
|
|
6925
|
-
function
|
|
6953
|
+
function xp(e, t) {
|
|
6926
6954
|
let n;
|
|
6927
6955
|
switch (t) {
|
|
6928
6956
|
case `
|
|
@@ -6946,7 +6974,7 @@ function gD(e) {
|
|
|
6946
6974
|
return Oi(!1, e, /\r\n?/gu, `
|
|
6947
6975
|
`);
|
|
6948
6976
|
}
|
|
6949
|
-
var Kn = "string", tn = "array", Jn = "cursor", an = "indent", sn = "align", on = "trim", vt = "group", Wt = "fill",
|
|
6977
|
+
var Kn = "string", tn = "array", Jn = "cursor", an = "indent", sn = "align", on = "trim", vt = "group", Wt = "fill", _t = "if-break", ln = "indent-if-break", un = "line-suffix", cn = "line-suffix-boundary", nt = "line", Vt = "label", $t = "break-parent", Sp = /* @__PURE__ */ new Set([Jn, an, sn, on, vt, Wt, _t, ln, un, cn, nt, Vt, $t]);
|
|
6950
6978
|
function vD(e) {
|
|
6951
6979
|
if (typeof e == "string") return Kn;
|
|
6952
6980
|
if (Array.isArray(e)) return tn;
|
|
@@ -6991,7 +7019,7 @@ function kD(e, t, n, r) {
|
|
|
6991
7019
|
for (let d = c.length, h = d - 1; h >= 0; --h) i.push(c[h]);
|
|
6992
7020
|
break;
|
|
6993
7021
|
}
|
|
6994
|
-
case
|
|
7022
|
+
case _t:
|
|
6995
7023
|
i.push(o.flatContents, o.breakContents);
|
|
6996
7024
|
break;
|
|
6997
7025
|
case vt:
|
|
@@ -7001,7 +7029,7 @@ function kD(e, t, n, r) {
|
|
|
7001
7029
|
case sn:
|
|
7002
7030
|
case an:
|
|
7003
7031
|
case ln:
|
|
7004
|
-
case
|
|
7032
|
+
case Vt:
|
|
7005
7033
|
case un:
|
|
7006
7034
|
i.push(o.contents);
|
|
7007
7035
|
break;
|
|
@@ -7028,10 +7056,10 @@ function Cr(e, t) {
|
|
|
7028
7056
|
function Ep(e, t = {}) {
|
|
7029
7057
|
return CD(t.expandedStates), { type: vt, id: t.id, contents: e, break: !!t.shouldBreak, expandedStates: t.expandedStates };
|
|
7030
7058
|
}
|
|
7031
|
-
function
|
|
7059
|
+
function _D(e) {
|
|
7032
7060
|
return Cr(Number.NEGATIVE_INFINITY, e);
|
|
7033
7061
|
}
|
|
7034
|
-
function
|
|
7062
|
+
function xD(e) {
|
|
7035
7063
|
return Cr({ type: "root" }, e);
|
|
7036
7064
|
}
|
|
7037
7065
|
function SD(e) {
|
|
@@ -7044,7 +7072,7 @@ function Fp(e) {
|
|
|
7044
7072
|
return { type: Wt, parts: e };
|
|
7045
7073
|
}
|
|
7046
7074
|
function FD(e, t = "", n = {}) {
|
|
7047
|
-
return { type:
|
|
7075
|
+
return { type: _t, breakContents: e, flatContents: t, groupId: n.groupId };
|
|
7048
7076
|
}
|
|
7049
7077
|
function AD(e, t) {
|
|
7050
7078
|
return { type: ln, contents: e, groupId: t.groupId, negate: t.negate };
|
|
@@ -7067,7 +7095,7 @@ function Np(e, t, n) {
|
|
|
7067
7095
|
return r;
|
|
7068
7096
|
}
|
|
7069
7097
|
function ND(e, t) {
|
|
7070
|
-
return e ? { type:
|
|
7098
|
+
return e ? { type: Vt, label: e, contents: t } : t;
|
|
7071
7099
|
}
|
|
7072
7100
|
function Jt(e) {
|
|
7073
7101
|
var t;
|
|
@@ -7081,7 +7109,7 @@ function Jt(e) {
|
|
|
7081
7109
|
}
|
|
7082
7110
|
return n;
|
|
7083
7111
|
}
|
|
7084
|
-
return e.type ===
|
|
7112
|
+
return e.type === _t ? { ...e, breakContents: Jt(e.breakContents), flatContents: Jt(e.flatContents) } : e.type === vt ? { ...e, contents: Jt(e.contents), expandedStates: (t = e.expandedStates) == null ? void 0 : t.map(Jt) } : e.type === Wt ? { type: "fill", parts: e.parts.map(Jt) } : e.contents ? { ...e, contents: Jt(e.contents) } : e;
|
|
7085
7113
|
}
|
|
7086
7114
|
function jD(e) {
|
|
7087
7115
|
let t = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ new Set();
|
|
@@ -7101,7 +7129,7 @@ function jD(e) {
|
|
|
7101
7129
|
if (o.type === on) return "trim";
|
|
7102
7130
|
if (o.type === an) return "indent(" + r(o.contents) + ")";
|
|
7103
7131
|
if (o.type === sn) return o.n === Number.NEGATIVE_INFINITY ? "dedentToRoot(" + r(o.contents) + ")" : o.n < 0 ? "dedent(" + r(o.contents) + ")" : o.n.type === "root" ? "markAsRoot(" + r(o.contents) + ")" : "align(" + JSON.stringify(o.n) + ", " + r(o.contents) + ")";
|
|
7104
|
-
if (o.type ===
|
|
7132
|
+
if (o.type === _t) return "ifBreak(" + r(o.breakContents) + (o.flatContents ? ", " + r(o.flatContents) : "") + (o.groupId ? (o.flatContents ? "" : ', ""') + `, { groupId: ${i(o.groupId)} }` : "") + ")";
|
|
7105
7133
|
if (o.type === ln) {
|
|
7106
7134
|
let m = [];
|
|
7107
7135
|
o.negate && m.push("negate: true"), o.groupId && m.push(`groupId: ${i(o.groupId)}`);
|
|
@@ -7117,7 +7145,7 @@ function jD(e) {
|
|
|
7117
7145
|
if (o.type === Wt) return `fill([${o.parts.map((m) => r(m)).join(", ")}])`;
|
|
7118
7146
|
if (o.type === un) return "lineSuffix(" + r(o.contents) + ")";
|
|
7119
7147
|
if (o.type === cn) return "lineSuffixBoundary";
|
|
7120
|
-
if (o.type ===
|
|
7148
|
+
if (o.type === Vt) return `label(${JSON.stringify(o.label)}, ${r(o.contents)})`;
|
|
7121
7149
|
throw new Error("Unknown doc type " + o.type);
|
|
7122
7150
|
}
|
|
7123
7151
|
function i(o) {
|
|
@@ -7167,7 +7195,7 @@ function Mi(e, t) {
|
|
|
7167
7195
|
return t(o.map(r));
|
|
7168
7196
|
case Wt:
|
|
7169
7197
|
return t({ ...o, parts: o.parts.map(r) });
|
|
7170
|
-
case
|
|
7198
|
+
case _t:
|
|
7171
7199
|
return t({ ...o, breakContents: r(o.breakContents), flatContents: r(o.flatContents) });
|
|
7172
7200
|
case vt: {
|
|
7173
7201
|
let { expandedStates: u, contents: c } = o;
|
|
@@ -7176,7 +7204,7 @@ function Mi(e, t) {
|
|
|
7176
7204
|
case sn:
|
|
7177
7205
|
case an:
|
|
7178
7206
|
case ln:
|
|
7179
|
-
case
|
|
7207
|
+
case Vt:
|
|
7180
7208
|
case un:
|
|
7181
7209
|
return t({ ...o, contents: r(o.contents) });
|
|
7182
7210
|
case Kn:
|
|
@@ -7226,11 +7254,11 @@ function WD(e) {
|
|
|
7226
7254
|
}
|
|
7227
7255
|
Eo(e, r, i, !0);
|
|
7228
7256
|
}
|
|
7229
|
-
function zD(e) {
|
|
7230
|
-
return e.type === nt && !e.hard ? e.soft ? "" : " " : e.type === xt ? e.flatContents : e;
|
|
7231
|
-
}
|
|
7232
7257
|
function VD(e) {
|
|
7233
|
-
return
|
|
7258
|
+
return e.type === nt && !e.hard ? e.soft ? "" : " " : e.type === _t ? e.flatContents : e;
|
|
7259
|
+
}
|
|
7260
|
+
function zD(e) {
|
|
7261
|
+
return Mi(e, VD);
|
|
7234
7262
|
}
|
|
7235
7263
|
function Qu(e) {
|
|
7236
7264
|
for (e = [...e]; e.length >= 2 && Ge(!1, e, -2).type === nt && Ge(!1, e, -1).type === $t; ) e.length -= 2;
|
|
@@ -7246,11 +7274,11 @@ function ua(e) {
|
|
|
7246
7274
|
case ln:
|
|
7247
7275
|
case vt:
|
|
7248
7276
|
case un:
|
|
7249
|
-
case
|
|
7277
|
+
case Vt: {
|
|
7250
7278
|
let t = ua(e.contents);
|
|
7251
7279
|
return { ...e, contents: t };
|
|
7252
7280
|
}
|
|
7253
|
-
case
|
|
7281
|
+
case _t:
|
|
7254
7282
|
return { ...e, breakContents: ua(e.breakContents), flatContents: ua(e.flatContents) };
|
|
7255
7283
|
case Wt:
|
|
7256
7284
|
return { ...e, parts: Qu(e.parts) };
|
|
@@ -7288,7 +7316,7 @@ function GD(e) {
|
|
|
7288
7316
|
case un:
|
|
7289
7317
|
if (!e.contents) return "";
|
|
7290
7318
|
break;
|
|
7291
|
-
case
|
|
7319
|
+
case _t:
|
|
7292
7320
|
if (!e.flatContents && !e.breakContents) return "";
|
|
7293
7321
|
break;
|
|
7294
7322
|
case tn: {
|
|
@@ -7305,7 +7333,7 @@ function GD(e) {
|
|
|
7305
7333
|
case on:
|
|
7306
7334
|
case cn:
|
|
7307
7335
|
case nt:
|
|
7308
|
-
case
|
|
7336
|
+
case Vt:
|
|
7309
7337
|
case $t:
|
|
7310
7338
|
break;
|
|
7311
7339
|
default:
|
|
@@ -7327,7 +7355,7 @@ function XD(e) {
|
|
|
7327
7355
|
return $o(e, JD, !1);
|
|
7328
7356
|
}
|
|
7329
7357
|
function Lp(e, t) {
|
|
7330
|
-
return e.type ===
|
|
7358
|
+
return e.type === Vt ? { ...e, contents: t(e.contents) } : t(e);
|
|
7331
7359
|
}
|
|
7332
7360
|
var mt = Symbol("MODE_BREAK"), Rt = Symbol("MODE_FLAT"), ca = Symbol("cursor");
|
|
7333
7361
|
function Pp() {
|
|
@@ -7417,7 +7445,7 @@ function oi(e, t, n, r, i, o) {
|
|
|
7417
7445
|
case an:
|
|
7418
7446
|
case sn:
|
|
7419
7447
|
case ln:
|
|
7420
|
-
case
|
|
7448
|
+
case Vt:
|
|
7421
7449
|
c.push({ mode: h, doc: m.contents });
|
|
7422
7450
|
break;
|
|
7423
7451
|
case on:
|
|
@@ -7429,7 +7457,7 @@ function oi(e, t, n, r, i, o) {
|
|
|
7429
7457
|
c.push({ mode: y, doc: b });
|
|
7430
7458
|
break;
|
|
7431
7459
|
}
|
|
7432
|
-
case
|
|
7460
|
+
case _t: {
|
|
7433
7461
|
let y = (m.groupId ? i[m.groupId] || Rt : h) === mt ? m.breakContents : m.flatContents;
|
|
7434
7462
|
y && c.push({ mode: h, doc: y });
|
|
7435
7463
|
break;
|
|
@@ -7454,14 +7482,14 @@ function Ri(e, t) {
|
|
|
7454
7482
|
let { ind: y, mode: b, doc: k } = u.pop();
|
|
7455
7483
|
switch (Xn(k)) {
|
|
7456
7484
|
case Kn: {
|
|
7457
|
-
let
|
|
7485
|
+
let x = i !== `
|
|
7458
7486
|
` ? Oi(!1, k, `
|
|
7459
7487
|
`, i) : k;
|
|
7460
|
-
c.push(
|
|
7488
|
+
c.push(x), u.length > 0 && (o += Ao(x));
|
|
7461
7489
|
break;
|
|
7462
7490
|
}
|
|
7463
7491
|
case tn:
|
|
7464
|
-
for (let
|
|
7492
|
+
for (let x = k.length - 1; x >= 0; x--) u.push({ ind: y, mode: b, doc: k[x] });
|
|
7465
7493
|
break;
|
|
7466
7494
|
case Jn:
|
|
7467
7495
|
if (m >= 2) throw new Error("There are too many 'cursor' in doc.");
|
|
@@ -7485,8 +7513,8 @@ function Ri(e, t) {
|
|
|
7485
7513
|
}
|
|
7486
7514
|
case mt: {
|
|
7487
7515
|
d = !1;
|
|
7488
|
-
let
|
|
7489
|
-
if (!k.break && oi(
|
|
7516
|
+
let x = { ind: y, mode: Rt, doc: k.contents }, C = r - o, T = h.length > 0;
|
|
7517
|
+
if (!k.break && oi(x, u, C, T, n)) u.push(x);
|
|
7490
7518
|
else if (k.expandedStates) {
|
|
7491
7519
|
let F = Ge(!1, k.expandedStates, -1);
|
|
7492
7520
|
if (k.break) {
|
|
@@ -7496,9 +7524,9 @@ function Ri(e, t) {
|
|
|
7496
7524
|
u.push({ ind: y, mode: mt, doc: F });
|
|
7497
7525
|
break;
|
|
7498
7526
|
} else {
|
|
7499
|
-
let A = k.expandedStates[S],
|
|
7500
|
-
if (oi(
|
|
7501
|
-
u.push(
|
|
7527
|
+
let A = k.expandedStates[S], _ = { ind: y, mode: Rt, doc: A };
|
|
7528
|
+
if (oi(_, u, C, T, n)) {
|
|
7529
|
+
u.push(_);
|
|
7502
7530
|
break;
|
|
7503
7531
|
}
|
|
7504
7532
|
}
|
|
@@ -7509,32 +7537,32 @@ function Ri(e, t) {
|
|
|
7509
7537
|
k.id && (n[k.id] = Ge(!1, u, -1).mode);
|
|
7510
7538
|
break;
|
|
7511
7539
|
case Wt: {
|
|
7512
|
-
let
|
|
7540
|
+
let x = r - o, { parts: C } = k;
|
|
7513
7541
|
if (C.length === 0) break;
|
|
7514
|
-
let [T, F] = C, S = { ind: y, mode: Rt, doc: T }, A = { ind: y, mode: mt, doc: T },
|
|
7542
|
+
let [T, F] = C, S = { ind: y, mode: Rt, doc: T }, A = { ind: y, mode: mt, doc: T }, _ = oi(S, [], x, h.length > 0, n, !0);
|
|
7515
7543
|
if (C.length === 1) {
|
|
7516
|
-
|
|
7544
|
+
_ ? u.push(S) : u.push(A);
|
|
7517
7545
|
break;
|
|
7518
7546
|
}
|
|
7519
7547
|
let $ = { ind: y, mode: Rt, doc: F }, L = { ind: y, mode: mt, doc: F };
|
|
7520
7548
|
if (C.length === 2) {
|
|
7521
|
-
|
|
7549
|
+
_ ? u.push($, S) : u.push(L, A);
|
|
7522
7550
|
break;
|
|
7523
7551
|
}
|
|
7524
7552
|
C.splice(0, 2);
|
|
7525
7553
|
let I = { ind: y, mode: b, doc: Fp(C) }, j = C[0];
|
|
7526
|
-
oi({ ind: y, mode: Rt, doc: [T, F, j] }, [],
|
|
7554
|
+
oi({ ind: y, mode: Rt, doc: [T, F, j] }, [], x, h.length > 0, n, !0) ? u.push(I, $, S) : _ ? u.push(I, L, S) : u.push(I, L, A);
|
|
7527
7555
|
break;
|
|
7528
7556
|
}
|
|
7529
|
-
case
|
|
7557
|
+
case _t:
|
|
7530
7558
|
case ln: {
|
|
7531
|
-
let
|
|
7532
|
-
if (
|
|
7533
|
-
let C = k.type ===
|
|
7559
|
+
let x = k.groupId ? n[k.groupId] : b;
|
|
7560
|
+
if (x === mt) {
|
|
7561
|
+
let C = k.type === _t ? k.breakContents : k.negate ? k.contents : Ei(k.contents);
|
|
7534
7562
|
C && u.push({ ind: y, mode: b, doc: C });
|
|
7535
7563
|
}
|
|
7536
|
-
if (
|
|
7537
|
-
let C = k.type ===
|
|
7564
|
+
if (x === Rt) {
|
|
7565
|
+
let C = k.type === _t ? k.flatContents : k.negate ? Ei(k.contents) : k.contents;
|
|
7538
7566
|
C && u.push({ ind: y, mode: b, doc: C });
|
|
7539
7567
|
}
|
|
7540
7568
|
break;
|
|
@@ -7562,7 +7590,7 @@ function Ri(e, t) {
|
|
|
7562
7590
|
break;
|
|
7563
7591
|
}
|
|
7564
7592
|
break;
|
|
7565
|
-
case
|
|
7593
|
+
case Vt:
|
|
7566
7594
|
u.push({ ind: y, mode: b, doc: k.contents });
|
|
7567
7595
|
break;
|
|
7568
7596
|
case $t:
|
|
@@ -7574,8 +7602,8 @@ function Ri(e, t) {
|
|
|
7574
7602
|
}
|
|
7575
7603
|
let v = c.indexOf(ca);
|
|
7576
7604
|
if (v !== -1) {
|
|
7577
|
-
let y = c.indexOf(ca, v + 1), b = c.slice(0, v).join(""), k = c.slice(v + 1, y).join(""),
|
|
7578
|
-
return { formatted: b + k +
|
|
7605
|
+
let y = c.indexOf(ca, v + 1), b = c.slice(0, v).join(""), k = c.slice(v + 1, y).join(""), x = c.slice(y + 1).join("");
|
|
7606
|
+
return { formatted: b + k + x, cursorNodeStart: b.length, cursorNodeText: k };
|
|
7579
7607
|
}
|
|
7580
7608
|
return { formatted: c.join("") };
|
|
7581
7609
|
}
|
|
@@ -7731,7 +7759,7 @@ function* i0(e, t) {
|
|
|
7731
7759
|
for (let o of Ip(i, t)) yield o, n.push(o);
|
|
7732
7760
|
}
|
|
7733
7761
|
}
|
|
7734
|
-
function
|
|
7762
|
+
function xa(e) {
|
|
7735
7763
|
return (t, n, r) => {
|
|
7736
7764
|
let i = !!(r != null && r.backwards);
|
|
7737
7765
|
if (n === !1) return !1;
|
|
@@ -7746,7 +7774,7 @@ function _a(e) {
|
|
|
7746
7774
|
return u === -1 || u === o ? u : !1;
|
|
7747
7775
|
};
|
|
7748
7776
|
}
|
|
7749
|
-
var s0 =
|
|
7777
|
+
var s0 = xa(/\s/u), kn = xa(" "), Mp = xa(",; "), Rp = xa(/[^\n\r]/u);
|
|
7750
7778
|
function o0(e, t, n) {
|
|
7751
7779
|
let r = !!(n != null && n.backwards);
|
|
7752
7780
|
if (t === !1) return !1;
|
|
@@ -7764,9 +7792,9 @@ function o0(e, t, n) {
|
|
|
7764
7792
|
}
|
|
7765
7793
|
return t;
|
|
7766
7794
|
}
|
|
7767
|
-
var
|
|
7795
|
+
var Vn = o0;
|
|
7768
7796
|
function l0(e, t, n = {}) {
|
|
7769
|
-
let r = kn(e, n.backwards ? t - 1 : t, n), i =
|
|
7797
|
+
let r = kn(e, n.backwards ? t - 1 : t, n), i = Vn(e, r, n);
|
|
7770
7798
|
return r !== i;
|
|
7771
7799
|
}
|
|
7772
7800
|
var vn = l0;
|
|
@@ -7805,13 +7833,13 @@ function No(e, t) {
|
|
|
7805
7833
|
function Hp(e, t, n, r) {
|
|
7806
7834
|
let { locStart: i, locEnd: o } = n, u = i(t), c = o(t), d = No(e, n), h, m, v = 0, y = d.length;
|
|
7807
7835
|
for (; v < y; ) {
|
|
7808
|
-
let b = v + y >> 1, k = d[b],
|
|
7809
|
-
if (
|
|
7836
|
+
let b = v + y >> 1, k = d[b], x = i(k), C = o(k);
|
|
7837
|
+
if (x <= u && c <= C) return Hp(k, t, n, k);
|
|
7810
7838
|
if (C <= u) {
|
|
7811
7839
|
h = k, v = b + 1;
|
|
7812
7840
|
continue;
|
|
7813
7841
|
}
|
|
7814
|
-
if (c <=
|
|
7842
|
+
if (c <= x) {
|
|
7815
7843
|
m = k, y = b;
|
|
7816
7844
|
continue;
|
|
7817
7845
|
}
|
|
@@ -7829,24 +7857,24 @@ function f0(e, t) {
|
|
|
7829
7857
|
if (delete e.comments, !c0(n) || !t.printer.canAttachComment) return;
|
|
7830
7858
|
let r = [], { locStart: i, locEnd: o, printer: { experimentalFeatures: { avoidAstMutation: u = !1 } = {}, handleComments: c = {} }, originalText: d } = t, { ownLine: h = Os, endOfLine: m = Os, remaining: v = Os } = c, y = n.map((b, k) => ({ ...Hp(e, b, t), comment: b, text: d, options: t, ast: e, isLastComment: n.length - 1 === k }));
|
|
7831
7859
|
for (let [b, k] of y.entries()) {
|
|
7832
|
-
let { comment:
|
|
7860
|
+
let { comment: x, precedingNode: C, enclosingNode: T, followingNode: F, text: S, options: A, ast: _, isLastComment: $ } = k;
|
|
7833
7861
|
if (A.parser === "json" || A.parser === "json5" || A.parser === "jsonc" || A.parser === "__js_expression" || A.parser === "__ts_expression" || A.parser === "__vue_expression" || A.parser === "__vue_ts_expression") {
|
|
7834
|
-
if (i(
|
|
7835
|
-
fr(
|
|
7862
|
+
if (i(x) - i(_) <= 0) {
|
|
7863
|
+
fr(_, x);
|
|
7836
7864
|
continue;
|
|
7837
7865
|
}
|
|
7838
|
-
if (o(
|
|
7839
|
-
mr(
|
|
7866
|
+
if (o(x) - o(_) >= 0) {
|
|
7867
|
+
mr(_, x);
|
|
7840
7868
|
continue;
|
|
7841
7869
|
}
|
|
7842
7870
|
}
|
|
7843
7871
|
let L;
|
|
7844
|
-
if (u ? L = [k] : (
|
|
7845
|
-
else if (g0(S, A, y, b))
|
|
7846
|
-
else if (
|
|
7872
|
+
if (u ? L = [k] : (x.enclosingNode = T, x.precedingNode = C, x.followingNode = F, L = [x, S, A, _, $]), m0(S, A, y, b)) x.placement = "ownLine", h(...L) || (F ? fr(F, x) : C ? mr(C, x) : On(T || _, x));
|
|
7873
|
+
else if (g0(S, A, y, b)) x.placement = "endOfLine", m(...L) || (C ? mr(C, x) : F ? fr(F, x) : On(T || _, x));
|
|
7874
|
+
else if (x.placement = "remaining", !v(...L)) if (C && F) {
|
|
7847
7875
|
let I = r.length;
|
|
7848
7876
|
I > 0 && r[I - 1].followingNode !== F && Zu(r, A), r.push(k);
|
|
7849
|
-
} else C ? mr(C,
|
|
7877
|
+
} else C ? mr(C, x) : F ? fr(F, x) : On(T || _, x);
|
|
7850
7878
|
}
|
|
7851
7879
|
if (Zu(r, t), !u) for (let b of n) delete b.precedingNode, delete b.enclosingNode, delete b.followingNode;
|
|
7852
7880
|
}
|
|
@@ -7892,8 +7920,8 @@ function Is(e, t, n) {
|
|
|
7892
7920
|
}
|
|
7893
7921
|
function v0(e, t) {
|
|
7894
7922
|
let n = t - 1;
|
|
7895
|
-
n = kn(e, n, { backwards: !0 }), n =
|
|
7896
|
-
let r =
|
|
7923
|
+
n = kn(e, n, { backwards: !0 }), n = Vn(e, n, { backwards: !0 }), n = kn(e, n, { backwards: !0 });
|
|
7924
|
+
let r = Vn(e, n, { backwards: !0 });
|
|
7897
7925
|
return n !== r;
|
|
7898
7926
|
}
|
|
7899
7927
|
var jo = v0;
|
|
@@ -7908,7 +7936,7 @@ function y0(e, t) {
|
|
|
7908
7936
|
let m = vn(u, d(r)) ? vn(u, c(r), { backwards: !0 }) ? Rn : $p : " ";
|
|
7909
7937
|
i.push(m);
|
|
7910
7938
|
} else i.push(Rn);
|
|
7911
|
-
let h =
|
|
7939
|
+
let h = Vn(u, kn(u, d(r)));
|
|
7912
7940
|
return h !== !1 && vn(u, h) && i.push(Rn), i;
|
|
7913
7941
|
}
|
|
7914
7942
|
function D0(e, t, n) {
|
|
@@ -7944,7 +7972,7 @@ function w0(e) {
|
|
|
7944
7972
|
delete r.printed;
|
|
7945
7973
|
}
|
|
7946
7974
|
}
|
|
7947
|
-
var
|
|
7975
|
+
var Vp = class extends Error {
|
|
7948
7976
|
constructor() {
|
|
7949
7977
|
super(...arguments);
|
|
7950
7978
|
or(this, "name", "ConfigError");
|
|
@@ -7959,15 +7987,15 @@ var zp = class extends Error {
|
|
|
7959
7987
|
The range will extend forwards to the end of the selected statement.`, cliCategory: "Editor" }, rangeStart: { category: "Special", type: "int", default: 0, range: { start: 0, end: 1 / 0, step: 1 }, description: `Format code starting at a given character offset.
|
|
7960
7988
|
The range will extend backwards to the start of the first line containing the selected statement.`, cliCategory: "Editor" }, requirePragma: { category: "Special", type: "boolean", default: !1, description: `Require either '@prettier' or '@format' to be present in the file's first docblock comment
|
|
7961
7989
|
in order for it to be formatted.`, cliCategory: "Other" }, tabWidth: { type: "int", category: "Global", default: 2, description: "Number of spaces per indentation level.", range: { start: 0, end: 1 / 0, step: 1 } }, useTabs: { category: "Global", type: "boolean", default: !1, description: "Indent with tabs instead of spaces." }, embeddedLanguageFormatting: { category: "Global", type: "choice", default: "auto", description: "Control how Prettier formats quoted code embedded in the file.", choices: [{ value: "auto", description: "Format embedded code if Prettier can automatically identify it." }, { value: "off", description: "Never automatically format embedded code." }] } };
|
|
7962
|
-
function
|
|
7990
|
+
function zp({ plugins: e = [], showDeprecated: t = !1 } = {}) {
|
|
7963
7991
|
let n = e.flatMap((i) => i.languages ?? []), r = [];
|
|
7964
|
-
for (let i of
|
|
7992
|
+
for (let i of x0(Object.assign({}, ...e.map(({ options: o }) => o), C0))) !t && i.deprecated || (Array.isArray(i.choices) && (t || (i.choices = i.choices.filter((o) => !o.deprecated)), i.name === "parser" && (i.choices = [...i.choices, ..._0(i.choices, n, e)])), i.pluginDefaults = Object.fromEntries(e.filter((o) => {
|
|
7965
7993
|
var u;
|
|
7966
7994
|
return ((u = o.defaultOptions) == null ? void 0 : u[i.name]) !== void 0;
|
|
7967
7995
|
}).map((o) => [o.name, o.defaultOptions[i.name]])), r.push(i));
|
|
7968
7996
|
return { languages: n, options: r };
|
|
7969
7997
|
}
|
|
7970
|
-
function*
|
|
7998
|
+
function* _0(e, t, n) {
|
|
7971
7999
|
let r = new Set(e.map((i) => i.value));
|
|
7972
8000
|
for (let i of t) if (i.parsers) {
|
|
7973
8001
|
for (let o of i.parsers) if (!r.has(o)) {
|
|
@@ -7977,7 +8005,7 @@ function* x0(e, t, n) {
|
|
|
7977
8005
|
}
|
|
7978
8006
|
}
|
|
7979
8007
|
}
|
|
7980
|
-
function
|
|
8008
|
+
function x0(e) {
|
|
7981
8009
|
let t = [];
|
|
7982
8010
|
for (let [n, r] of Object.entries(e)) {
|
|
7983
8011
|
let i = { name: n, ...r };
|
|
@@ -8003,10 +8031,10 @@ var A0 = F0, gr = { key: (e) => /^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e) ? e : JSON.
|
|
|
8003
8031
|
if (Array.isArray(e)) return `[${e.map((n) => gr.value(n)).join(", ")}]`;
|
|
8004
8032
|
let t = Object.keys(e);
|
|
8005
8033
|
return t.length === 0 ? "{}" : `{ ${t.map((n) => `${gr.key(n)}: ${gr.value(e[n])}`).join(", ")} }`;
|
|
8006
|
-
}, pair: ({ key: e, value: t }) => gr.value({ [e]: t }) }, nc = Pi(
|
|
8034
|
+
}, pair: ({ key: e, value: t }) => gr.value({ [e]: t }) }, nc = Pi(xo()), $0 = (e, t, { descriptor: n }) => {
|
|
8007
8035
|
let r = [`${nc.default.yellow(typeof e == "string" ? n.key(e) : n.pair(e))} is deprecated`];
|
|
8008
8036
|
return t && r.push(`we now treat it as ${nc.default.blue(typeof t == "string" ? n.key(t) : n.pair(t))}`), r.join("; ") + ".";
|
|
8009
|
-
}, vr = Pi(
|
|
8037
|
+
}, vr = Pi(xo()), Gp = Symbol.for("vnopts.VALUE_NOT_EXIST"), gi = Symbol.for("vnopts.VALUE_UNCHANGED"), rc = " ".repeat(2), T0 = (e, t, n) => {
|
|
8010
8038
|
let { text: r, list: i } = n.normalizeExpectedResult(n.schemas[e].expected(n)), o = [];
|
|
8011
8039
|
return r && o.push(ac(e, t, r, n.descriptor)), i && o.push([ac(e, t, i.title, n.descriptor)].concat(i.values.map((u) => Yp(u, n.loggerPrintWidth))).join(`
|
|
8012
8040
|
`)), Kp(o, n.loggerPrintWidth);
|
|
@@ -8025,7 +8053,7 @@ function Kp(e, t) {
|
|
|
8025
8053
|
`, 1)[0].length);
|
|
8026
8054
|
return i > t && i > o ? r : n;
|
|
8027
8055
|
}
|
|
8028
|
-
var ic = Pi(
|
|
8056
|
+
var ic = Pi(xo()), Ms = [], sc = [];
|
|
8029
8057
|
function B0(e, t) {
|
|
8030
8058
|
if (e === t) return 0;
|
|
8031
8059
|
let n = e;
|
|
@@ -8046,10 +8074,10 @@ var Jp = (e, t, { descriptor: n, logger: r, schemas: i }) => {
|
|
|
8046
8074
|
}, N0 = ["default", "expected", "validate", "deprecated", "forward", "redirect", "overlap", "preprocess", "postprocess"];
|
|
8047
8075
|
function j0(e, t) {
|
|
8048
8076
|
let n = new e(t), r = Object.create(n);
|
|
8049
|
-
for (let i of N0) i in t && (r[i] = L0(t[i], n,
|
|
8077
|
+
for (let i of N0) i in t && (r[i] = L0(t[i], n, _n.prototype[i].length));
|
|
8050
8078
|
return r;
|
|
8051
8079
|
}
|
|
8052
|
-
var
|
|
8080
|
+
var _n = class {
|
|
8053
8081
|
static create(e) {
|
|
8054
8082
|
return j0(this, e);
|
|
8055
8083
|
}
|
|
@@ -8084,7 +8112,7 @@ var xn = class {
|
|
|
8084
8112
|
function L0(e, t, n) {
|
|
8085
8113
|
return typeof e == "function" ? (...r) => e(...r.slice(0, n - 1), t, ...r.slice(n - 1)) : () => e;
|
|
8086
8114
|
}
|
|
8087
|
-
var P0 = class extends
|
|
8115
|
+
var P0 = class extends _n {
|
|
8088
8116
|
constructor(e) {
|
|
8089
8117
|
super(e), this._sourceName = e.sourceName;
|
|
8090
8118
|
}
|
|
@@ -8097,14 +8125,14 @@ var P0 = class extends xn {
|
|
|
8097
8125
|
redirect(e, t) {
|
|
8098
8126
|
return this._sourceName;
|
|
8099
8127
|
}
|
|
8100
|
-
}, O0 = class extends
|
|
8128
|
+
}, O0 = class extends _n {
|
|
8101
8129
|
expected() {
|
|
8102
8130
|
return "anything";
|
|
8103
8131
|
}
|
|
8104
8132
|
validate() {
|
|
8105
8133
|
return !0;
|
|
8106
8134
|
}
|
|
8107
|
-
}, I0 = class extends
|
|
8135
|
+
}, I0 = class extends _n {
|
|
8108
8136
|
constructor({ valueSchema: e, name: t = e.name, ...n }) {
|
|
8109
8137
|
super({ ...n, name: t }), this._valueSchema = e;
|
|
8110
8138
|
}
|
|
@@ -8152,7 +8180,7 @@ var P0 = class extends xn {
|
|
|
8152
8180
|
function oc({ from: e, to: t }) {
|
|
8153
8181
|
return { from: [e], to: t };
|
|
8154
8182
|
}
|
|
8155
|
-
var M0 = class extends
|
|
8183
|
+
var M0 = class extends _n {
|
|
8156
8184
|
expected() {
|
|
8157
8185
|
return "true or false";
|
|
8158
8186
|
}
|
|
@@ -8193,12 +8221,12 @@ function U0(e, t) {
|
|
|
8193
8221
|
function W0(e) {
|
|
8194
8222
|
return e === Math.floor(e);
|
|
8195
8223
|
}
|
|
8196
|
-
function
|
|
8224
|
+
function V0(e, t) {
|
|
8197
8225
|
if (e === t) return 0;
|
|
8198
8226
|
let n = typeof e, r = typeof t, i = ["undefined", "object", "boolean", "number", "string"];
|
|
8199
8227
|
return n !== r ? i.indexOf(n) - i.indexOf(r) : n !== "string" ? Number(e) - Number(t) : e.localeCompare(t);
|
|
8200
8228
|
}
|
|
8201
|
-
function
|
|
8229
|
+
function z0(e) {
|
|
8202
8230
|
return (...t) => {
|
|
8203
8231
|
let n = e(...t);
|
|
8204
8232
|
return typeof n == "string" ? new Error(n) : n;
|
|
@@ -8231,12 +8259,12 @@ function dc(e, t) {
|
|
|
8231
8259
|
function G0(e, t) {
|
|
8232
8260
|
if (!e) throw new Error(t);
|
|
8233
8261
|
}
|
|
8234
|
-
var Y0 = class extends
|
|
8262
|
+
var Y0 = class extends _n {
|
|
8235
8263
|
constructor(e) {
|
|
8236
8264
|
super(e), this._choices = q0(e.choices.map((t) => t && typeof t == "object" ? t : { value: t }), "value");
|
|
8237
8265
|
}
|
|
8238
8266
|
expected({ descriptor: e }) {
|
|
8239
|
-
let t = Array.from(this._choices.keys()).map((i) => this._choices.get(i)).filter(({ hidden: i }) => !i).map((i) => i.value).sort(
|
|
8267
|
+
let t = Array.from(this._choices.keys()).map((i) => this._choices.get(i)).filter(({ hidden: i }) => !i).map((i) => i.value).sort(V0).map(e.value), n = t.slice(0, -2), r = t.slice(-2);
|
|
8240
8268
|
return { text: n.concat(r.join(" or ")).join(", "), list: { title: "one of the following values", values: t } };
|
|
8241
8269
|
}
|
|
8242
8270
|
validate(e) {
|
|
@@ -8254,7 +8282,7 @@ var Y0 = class extends xn {
|
|
|
8254
8282
|
let t = this._choices.get(e);
|
|
8255
8283
|
return t ? t.redirect : void 0;
|
|
8256
8284
|
}
|
|
8257
|
-
}, K0 = class extends
|
|
8285
|
+
}, K0 = class extends _n {
|
|
8258
8286
|
expected() {
|
|
8259
8287
|
return "a number";
|
|
8260
8288
|
}
|
|
@@ -8268,7 +8296,7 @@ var Y0 = class extends xn {
|
|
|
8268
8296
|
validate(e, t) {
|
|
8269
8297
|
return t.normalizeValidateResult(super.validate(e, t), e) === !0 && W0(e);
|
|
8270
8298
|
}
|
|
8271
|
-
}, hc = class extends
|
|
8299
|
+
}, hc = class extends _n {
|
|
8272
8300
|
expected() {
|
|
8273
8301
|
return "a string";
|
|
8274
8302
|
}
|
|
@@ -8279,7 +8307,7 @@ var Y0 = class extends xn {
|
|
|
8279
8307
|
constructor(e, t) {
|
|
8280
8308
|
let { logger: n = console, loggerPrintWidth: r = 80, descriptor: i = X0, unknown: o = Q0, invalid: u = Z0, deprecated: c = eb, missing: d = () => !1, required: h = () => !1, preprocess: m = (y) => y, postprocess: v = () => gi } = t || {};
|
|
8281
8309
|
this._utils = { descriptor: i, logger: n || { warn: () => {
|
|
8282
|
-
} }, loggerPrintWidth: r, schemas: R0(e, "name"), normalizeDefaultResult: lc, normalizeExpectedResult: Xp, normalizeDeprecatedResult: cc, normalizeForwardResult: oo, normalizeRedirectResult: dc, normalizeValidateResult: uc }, this._unknownHandler = o, this._invalidHandler =
|
|
8310
|
+
} }, loggerPrintWidth: r, schemas: R0(e, "name"), normalizeDefaultResult: lc, normalizeExpectedResult: Xp, normalizeDeprecatedResult: cc, normalizeForwardResult: oo, normalizeRedirectResult: dc, normalizeValidateResult: uc }, this._unknownHandler = o, this._invalidHandler = z0(u), this._deprecatedHandler = c, this._identifyMissing = (y, b) => !(y in b) || d(y, b), this._identifyRequired = h, this._preprocess = m, this._postprocess = v, this.cleanHistory();
|
|
8283
8311
|
}
|
|
8284
8312
|
cleanHistory() {
|
|
8285
8313
|
this._hasDeprecationWarned = H0();
|
|
@@ -8318,10 +8346,10 @@ var Y0 = class extends xn {
|
|
|
8318
8346
|
let b = cc(u.deprecated(v, this._utils), c, !0);
|
|
8319
8347
|
if (b !== !1) if (b === !0) this._hasDeprecationWarned(o) || this._utils.logger.warn(this._deprecatedHandler(o, y, this._utils));
|
|
8320
8348
|
else for (let { value: k } of b) {
|
|
8321
|
-
let
|
|
8322
|
-
if (!this._hasDeprecationWarned(
|
|
8349
|
+
let x = { key: o, value: k };
|
|
8350
|
+
if (!this._hasDeprecationWarned(x)) {
|
|
8323
8351
|
let C = typeof y == "string" ? { key: y, value: k } : y;
|
|
8324
|
-
this._utils.logger.warn(this._deprecatedHandler(
|
|
8352
|
+
this._utils.logger.warn(this._deprecatedHandler(x, C, this._utils));
|
|
8325
8353
|
}
|
|
8326
8354
|
}
|
|
8327
8355
|
};
|
|
@@ -8387,7 +8415,7 @@ function nb(e, t, { logger: n = !1, isCLI: r = !1, passThrough: i = !1, FlagSche
|
|
|
8387
8415
|
if (!u) throw new Error("'descriptor' option is required.");
|
|
8388
8416
|
} else u = gr;
|
|
8389
8417
|
let c = i ? Array.isArray(i) ? (y, b) => i.includes(y) ? { [y]: b } : void 0 : (y, b) => ({ [y]: b }) : (y, b, k) => {
|
|
8390
|
-
let { _, ...C } = k.schemas;
|
|
8418
|
+
let { _: x, ...C } = k.schemas;
|
|
8391
8419
|
return Jp(y, b, { ...k, schemas: C });
|
|
8392
8420
|
}, d = rb(t, { isCLI: r, FlagSchema: o }), h = new tb(d, { logger: n, unknown: c, descriptor: u }), m = n !== !1;
|
|
8393
8421
|
m && Rs && (h._hasDeprecationWarned = Rs);
|
|
@@ -8444,14 +8472,14 @@ function Zp(e, t) {
|
|
|
8444
8472
|
let n = Qp(!1, e, (i) => i.parsers && Object.prototype.hasOwnProperty.call(i.parsers, t));
|
|
8445
8473
|
if (n) return n;
|
|
8446
8474
|
let r = `Couldn't resolve parser "${t}".`;
|
|
8447
|
-
throw r += " Plugins must be explicitly added to the standalone bundle.", new
|
|
8475
|
+
throw r += " Plugins must be explicitly added to the standalone bundle.", new Vp(r);
|
|
8448
8476
|
}
|
|
8449
8477
|
function ob(e, t) {
|
|
8450
8478
|
if (!t) throw new Error("astFormat is required.");
|
|
8451
8479
|
let n = Qp(!1, e, (i) => i.printers && Object.prototype.hasOwnProperty.call(i.printers, t));
|
|
8452
8480
|
if (n) return n;
|
|
8453
8481
|
let r = `Couldn't find plugin for AST format "${t}".`;
|
|
8454
|
-
throw r += " Plugins must be explicitly added to the standalone bundle.", new
|
|
8482
|
+
throw r += " Plugins must be explicitly added to the standalone bundle.", new Vp(r);
|
|
8455
8483
|
}
|
|
8456
8484
|
function ed({ plugins: e, parser: t }) {
|
|
8457
8485
|
let n = Zp(e, t);
|
|
@@ -8472,7 +8500,7 @@ async function ub(e, t = {}) {
|
|
|
8472
8500
|
if (!r.parser) if (r.filepath) {
|
|
8473
8501
|
if (r.parser = A0(r, { physicalFile: r.filepath }), !r.parser) throw new ec(`No parser could be inferred for file "${r.filepath}".`);
|
|
8474
8502
|
} else throw new ec("No parser and no file path given, couldn't infer a parser.");
|
|
8475
|
-
let i =
|
|
8503
|
+
let i = zp({ plugins: e.plugins, showDeprecated: !0 }).options, o = { ...fc, ...Object.fromEntries(i.filter((y) => y.default !== void 0).map((y) => [y.name, y.default])) }, u = Zp(r.plugins, r.parser), c = await td(u, r.parser);
|
|
8476
8504
|
r.astFormat = c.astFormat, r.locEnd = c.locEnd, r.locStart = c.locStart;
|
|
8477
8505
|
let d = (n = u.printers) != null && n[c.astFormat] ? u : ob(r.plugins, c.astFormat), h = await lb(d, c.astFormat);
|
|
8478
8506
|
r.printer = h;
|
|
@@ -8509,28 +8537,28 @@ async function hb(e, t, n, r, i) {
|
|
|
8509
8537
|
let h = qi(u.getVisitorKeys ?? d), m = [];
|
|
8510
8538
|
b();
|
|
8511
8539
|
let v = e.stack;
|
|
8512
|
-
for (let { print: k, node:
|
|
8540
|
+
for (let { print: k, node: x, pathStack: C } of m) try {
|
|
8513
8541
|
e.stack = C;
|
|
8514
8542
|
let T = await k(y, t, e, n);
|
|
8515
|
-
T && i.set(
|
|
8543
|
+
T && i.set(x, T);
|
|
8516
8544
|
} catch (T) {
|
|
8517
8545
|
if (globalThis.PRETTIER_DEBUG) throw T;
|
|
8518
8546
|
}
|
|
8519
8547
|
e.stack = v;
|
|
8520
|
-
function y(k,
|
|
8521
|
-
return fb(k,
|
|
8548
|
+
function y(k, x) {
|
|
8549
|
+
return fb(k, x, n, r);
|
|
8522
8550
|
}
|
|
8523
8551
|
function b() {
|
|
8524
8552
|
let { node: k } = e;
|
|
8525
8553
|
if (k === null || typeof k != "object" || c(e)) return;
|
|
8526
8554
|
for (let C of h(k)) Array.isArray(k[C]) ? e.each(b, C) : e.call(b, C);
|
|
8527
|
-
let
|
|
8528
|
-
if (
|
|
8529
|
-
if (typeof
|
|
8530
|
-
m.push({ print:
|
|
8555
|
+
let x = u(e, n);
|
|
8556
|
+
if (x) {
|
|
8557
|
+
if (typeof x == "function") {
|
|
8558
|
+
m.push({ print: x, node: k, pathStack: [...e.stack] });
|
|
8531
8559
|
return;
|
|
8532
8560
|
}
|
|
8533
|
-
i.set(k,
|
|
8561
|
+
i.set(k, x);
|
|
8534
8562
|
}
|
|
8535
8563
|
}
|
|
8536
8564
|
}
|
|
@@ -8603,7 +8631,7 @@ var bb = Db, kb = (e, t, n) => {
|
|
|
8603
8631
|
return -1;
|
|
8604
8632
|
}
|
|
8605
8633
|
}, wb = kb, Cb = ({ parser: e }) => e === "json" || e === "json5" || e === "jsonc" || e === "json-stringify";
|
|
8606
|
-
function
|
|
8634
|
+
function _b(e, t) {
|
|
8607
8635
|
let n = [e.node, ...e.parentNodes], r = /* @__PURE__ */ new Set([t.node, ...t.parentNodes]);
|
|
8608
8636
|
return n.find((i) => rd.has(i.type) && r.has(i));
|
|
8609
8637
|
}
|
|
@@ -8611,7 +8639,7 @@ function gc(e) {
|
|
|
8611
8639
|
let t = wb(!1, e, (n) => n.type !== "Program" && n.type !== "File");
|
|
8612
8640
|
return t === -1 ? e : e.slice(0, t + 1);
|
|
8613
8641
|
}
|
|
8614
|
-
function
|
|
8642
|
+
function xb(e, t, { locStart: n, locEnd: r }) {
|
|
8615
8643
|
let i = e.node, o = t.node;
|
|
8616
8644
|
if (i === o) return { startNode: i, endNode: o };
|
|
8617
8645
|
let u = n(e.node);
|
|
@@ -8673,9 +8701,9 @@ function Fb(e, t, n) {
|
|
|
8673
8701
|
if (!h || !m) return { rangeStart: 0, rangeEnd: 0 };
|
|
8674
8702
|
let v, y;
|
|
8675
8703
|
if (Cb(t)) {
|
|
8676
|
-
let b =
|
|
8704
|
+
let b = _b(h, m);
|
|
8677
8705
|
v = b, y = b;
|
|
8678
|
-
} else ({ startNode: v, endNode: y } =
|
|
8706
|
+
} else ({ startNode: v, endNode: y } = xb(h, m, t));
|
|
8679
8707
|
return { rangeStart: Math.min(o(v), o(y)), rangeEnd: Math.max(u(v), u(y)) };
|
|
8680
8708
|
}
|
|
8681
8709
|
var ad = "\uFEFF", yc = Symbol("cursor");
|
|
@@ -8696,8 +8724,8 @@ async function id(e, t, n = 0) {
|
|
|
8696
8724
|
if (t.cursorNode && u.cursorNodeText ? (d = t.locStart(t.cursorNode), h = i.slice(d, t.locEnd(t.cursorNode)), m = t.cursorOffset - d, v = u.cursorNodeStart, y = u.cursorNodeText) : (d = 0, h = i, m = t.cursorOffset, v = 0, y = u.formatted), h === y) return { formatted: u.formatted, cursorOffset: v + m, comments: c };
|
|
8697
8725
|
let b = h.split("");
|
|
8698
8726
|
b.splice(m, 0, yc);
|
|
8699
|
-
let k = y.split(""),
|
|
8700
|
-
for (let T of
|
|
8727
|
+
let k = y.split(""), x = fD(b, k), C = v;
|
|
8728
|
+
for (let T of x) if (T.removed) {
|
|
8701
8729
|
if (T.value.includes(yc)) break;
|
|
8702
8730
|
} else C += T.count;
|
|
8703
8731
|
return { formatted: u.formatted, cursorOffset: C, comments: c };
|
|
@@ -8712,7 +8740,7 @@ async function Ab(e, t) {
|
|
|
8712
8740
|
if (t.endOfLine !== "lf") {
|
|
8713
8741
|
let k = So(t.endOfLine);
|
|
8714
8742
|
y >= 0 && k === `\r
|
|
8715
|
-
` && (y +=
|
|
8743
|
+
` && (y += xp(b.slice(0, y), `
|
|
8716
8744
|
`)), b = Oi(!1, b, `
|
|
8717
8745
|
`, k);
|
|
8718
8746
|
}
|
|
@@ -8728,7 +8756,7 @@ function Dc(e, t) {
|
|
|
8728
8756
|
function sd(e, t) {
|
|
8729
8757
|
let { cursorOffset: n, rangeStart: r, rangeEnd: i, endOfLine: o } = Dc(e, t), u = e.charAt(0) === ad;
|
|
8730
8758
|
if (u && (e = e.slice(1), n--, r--, i--), o === "auto" && (o = mD(e)), e.includes("\r")) {
|
|
8731
|
-
let c = (d) =>
|
|
8759
|
+
let c = (d) => xp(e.slice(0, Math.max(d, 0)), `\r
|
|
8732
8760
|
`);
|
|
8733
8761
|
n -= c(n), r -= c(r), i -= c(i), e = gD(e);
|
|
8734
8762
|
}
|
|
@@ -8767,8 +8795,8 @@ async function jb(e, t) {
|
|
|
8767
8795
|
}
|
|
8768
8796
|
var ld = {};
|
|
8769
8797
|
Li(ld, { builders: () => Lb, printer: () => Pb, utils: () => Ob });
|
|
8770
|
-
var Lb = { join: Bp, line: $p, softline: BD, hardline: Rn, literalline: Tp, group: Ep, conditionalGroup: ED, fill: Fp, lineSuffix: to, lineSuffixBoundary: $D, cursor: no, breakParent: Ii, ifBreak: FD, trim: TD, indent: Ei, indentIfBreak: AD, align: Cr, addAlignmentToDoc: Np, markAsRoot:
|
|
8771
|
-
Li(ud, { addDanglingComment: () => On, addLeadingComment: () => fr, addTrailingComment: () => mr, getAlignmentSize: () => To, getIndentSize: () => Wb, getMaxContinuousCount: () => Gb, getNextNonSpaceNonCommentCharacter: () => Kb, getNextNonSpaceNonCommentCharacterIndex: () => rk, getStringWidth: () => Ao, hasNewline: () => vn, hasNewlineInRange: () => Xb, hasSpaces: () => Zb, isNextLineEmpty: () => ok, isNextLineEmptyAfterIndex: () => Io, isPreviousLineEmpty: () => ik, makeString: () => tk, skip: () =>
|
|
8798
|
+
var Lb = { join: Bp, line: $p, softline: BD, hardline: Rn, literalline: Tp, group: Ep, conditionalGroup: ED, fill: Fp, lineSuffix: to, lineSuffixBoundary: $D, cursor: no, breakParent: Ii, ifBreak: FD, trim: TD, indent: Ei, indentIfBreak: AD, align: Cr, addAlignmentToDoc: Np, markAsRoot: xD, dedentToRoot: _D, dedent: SD, hardlineWithoutBreakParent: Fo, literallineWithoutBreakParent: Ap, label: ND, concat: (e) => e }, Pb = { printDocToString: Ri }, Ob = { willBreak: UD, traverseDoc: Eo, findInDoc: $o, mapDoc: Mi, removeLines: zD, stripTrailingHardline: jp, replaceEndOfLine: KD, canBreak: XD }, Ib = "3.3.3", ud = {};
|
|
8799
|
+
Li(ud, { addDanglingComment: () => On, addLeadingComment: () => fr, addTrailingComment: () => mr, getAlignmentSize: () => To, getIndentSize: () => Wb, getMaxContinuousCount: () => Gb, getNextNonSpaceNonCommentCharacter: () => Kb, getNextNonSpaceNonCommentCharacterIndex: () => rk, getStringWidth: () => Ao, hasNewline: () => vn, hasNewlineInRange: () => Xb, hasSpaces: () => Zb, isNextLineEmpty: () => ok, isNextLineEmptyAfterIndex: () => Io, isPreviousLineEmpty: () => ik, makeString: () => tk, skip: () => xa, skipEverythingButNewLine: () => Rp, skipInlineComment: () => Lo, skipNewline: () => Vn, skipSpaces: () => kn, skipToLineEnd: () => Mp, skipTrailingComment: () => Po, skipWhitespace: () => s0 });
|
|
8772
8800
|
function Mb(e, t) {
|
|
8773
8801
|
if (t === !1) return !1;
|
|
8774
8802
|
if (e.charAt(t) === "/" && e.charAt(t + 1) === "*") {
|
|
@@ -8783,14 +8811,14 @@ function Rb(e, t) {
|
|
|
8783
8811
|
var Po = Rb;
|
|
8784
8812
|
function qb(e, t) {
|
|
8785
8813
|
let n = null, r = t;
|
|
8786
|
-
for (; r !== n; ) n = r, r = kn(e, r), r = Lo(e, r), r = Po(e, r), r =
|
|
8814
|
+
for (; r !== n; ) n = r, r = kn(e, r), r = Lo(e, r), r = Po(e, r), r = Vn(e, r);
|
|
8787
8815
|
return r;
|
|
8788
8816
|
}
|
|
8789
8817
|
var Oo = qb;
|
|
8790
8818
|
function Hb(e, t) {
|
|
8791
8819
|
let n = null, r = t;
|
|
8792
8820
|
for (; r !== n; ) n = r, r = Mp(e, r), r = Lo(e, r), r = kn(e, r);
|
|
8793
|
-
return r = Po(e, r), r =
|
|
8821
|
+
return r = Po(e, r), r = Vn(e, r), r !== !1 && vn(e, r);
|
|
8794
8822
|
}
|
|
8795
8823
|
var Io = Hb;
|
|
8796
8824
|
function Ub(e, t) {
|
|
@@ -8799,15 +8827,15 @@ function Ub(e, t) {
|
|
|
8799
8827
|
return n === -1 ? 0 : To(e.slice(n + 1).match(/^[\t ]*/u)[0], t);
|
|
8800
8828
|
}
|
|
8801
8829
|
var Wb = Ub;
|
|
8802
|
-
function
|
|
8830
|
+
function Vb(e) {
|
|
8803
8831
|
if (typeof e != "string") throw new TypeError("Expected a string");
|
|
8804
8832
|
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
8805
8833
|
}
|
|
8806
|
-
function
|
|
8807
|
-
let n = e.match(new RegExp(`(${
|
|
8834
|
+
function zb(e, t) {
|
|
8835
|
+
let n = e.match(new RegExp(`(${Vb(t)})+`, "gu"));
|
|
8808
8836
|
return n === null ? 0 : n.reduce((r, i) => Math.max(r, i.length / t.length), 0);
|
|
8809
8837
|
}
|
|
8810
|
-
var Gb =
|
|
8838
|
+
var Gb = zb;
|
|
8811
8839
|
function Yb(e, t) {
|
|
8812
8840
|
let n = Oo(e, t);
|
|
8813
8841
|
return n === !1 ? "" : e.charAt(n);
|
|
@@ -8860,7 +8888,7 @@ async function Mo(e, t) {
|
|
|
8860
8888
|
async function lk(e, t) {
|
|
8861
8889
|
return await Mo(e, t) === e;
|
|
8862
8890
|
}
|
|
8863
|
-
var uk = In(
|
|
8891
|
+
var uk = In(zp, 0), ck = { parse: In($b), formatAST: In(Tb), formatDoc: In(Bb), printToDoc: In(Nb), printDocToString: In(jb) }, pd = { exports: {} };
|
|
8864
8892
|
(function(e, t) {
|
|
8865
8893
|
(function(n) {
|
|
8866
8894
|
function r() {
|
|
@@ -8877,10 +8905,10 @@ var uk = In(Vp, 0), ck = { parse: In($b), formatAST: In(Tb), formatDoc: In(Bb),
|
|
|
8877
8905
|
if (s && typeof s == "object" || typeof s == "function") for (let f of i(s)) !o.call(a, f) && f !== l && n(a, f, { get: () => s[f], enumerable: !(p = r(s, f)) || p.enumerable });
|
|
8878
8906
|
return a;
|
|
8879
8907
|
}, h = (a) => d(n({}, "__esModule", { value: !0 }), a), m = (a, s, l) => s.has(a) || u("Cannot " + l), v = (a, s, l) => (m(a, s, "read from private field"), s.get(a)), y = (a, s, l) => s.has(a) ? u("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(a) : s.set(a, l), b = (a, s, l, p) => (m(a, s, "write to private field"), s.set(a, l), l), k = {};
|
|
8880
|
-
c(k, { languages: () => Of, options: () => Mf, parsers: () => Tl, printers: () =>
|
|
8881
|
-
var
|
|
8908
|
+
c(k, { languages: () => Of, options: () => Mf, parsers: () => Tl, printers: () => Vm });
|
|
8909
|
+
var x = (a, s, l, p) => {
|
|
8882
8910
|
if (!(a && s == null)) return s.replaceAll ? s.replaceAll(l, p) : l.global ? s.replace(l, p) : s.split(l).join(p);
|
|
8883
|
-
}, C =
|
|
8911
|
+
}, C = x, T = "string", F = "array", S = "cursor", A = "indent", _ = "align", $ = "trim", L = "group", I = "fill", j = "if-break", W = "indent-if-break", K = "line-suffix", z = "line-suffix-boundary", P = "line", N = "label", q = "break-parent", X = /* @__PURE__ */ new Set([S, A, _, $, L, I, j, W, K, z, P, N, q]);
|
|
8884
8912
|
function de(a) {
|
|
8885
8913
|
if (typeof a == "string") return T;
|
|
8886
8914
|
if (Array.isArray(a)) return F;
|
|
@@ -8912,7 +8940,7 @@ Expected it to be ${p}.`;
|
|
|
8912
8940
|
return { type: A, contents: a };
|
|
8913
8941
|
}
|
|
8914
8942
|
function Ne(a, s) {
|
|
8915
|
-
return { type:
|
|
8943
|
+
return { type: _, contents: s, n: a };
|
|
8916
8944
|
}
|
|
8917
8945
|
function se(a, s = {}) {
|
|
8918
8946
|
return Be(s.expandedStates), { type: L, id: s.id, contents: a, break: !!s.shouldBreak, expandedStates: s.expandedStates };
|
|
@@ -8920,7 +8948,7 @@ Expected it to be ${p}.`;
|
|
|
8920
8948
|
function pt(a) {
|
|
8921
8949
|
return Ne(Number.NEGATIVE_INFINITY, a);
|
|
8922
8950
|
}
|
|
8923
|
-
function
|
|
8951
|
+
function xt(a) {
|
|
8924
8952
|
return Ne({ type: "root" }, a);
|
|
8925
8953
|
}
|
|
8926
8954
|
function yt(a) {
|
|
@@ -8932,7 +8960,7 @@ Expected it to be ${p}.`;
|
|
|
8932
8960
|
function pn(a, s) {
|
|
8933
8961
|
return { type: W, contents: a, groupId: s.groupId, negate: s.negate };
|
|
8934
8962
|
}
|
|
8935
|
-
var bt = { type: q }, J = { type: P, hard: !0 }, Ot = { type: P, hard: !0, literal: !0 }, we = { type: P }, Le = { type: P, soft: !0 },
|
|
8963
|
+
var bt = { type: q }, J = { type: P, hard: !0 }, Ot = { type: P, hard: !0, literal: !0 }, we = { type: P }, Le = { type: P, soft: !0 }, xe = [J, bt], Zn = [Ot, bt];
|
|
8936
8964
|
function dn(a, s) {
|
|
8937
8965
|
let l = [];
|
|
8938
8966
|
for (let p = 0; p < s.length; p++) p !== 0 && l.push(a), l.push(s[p]);
|
|
@@ -8962,7 +8990,7 @@ Expected it to be ${p}.`;
|
|
|
8962
8990
|
let { expandedStates: E, contents: B } = D;
|
|
8963
8991
|
return E ? (E = E.map(p), B = E[0]) : B = p(B), s({ ...D, contents: B, expandedStates: E });
|
|
8964
8992
|
}
|
|
8965
|
-
case
|
|
8993
|
+
case _:
|
|
8966
8994
|
case A:
|
|
8967
8995
|
case W:
|
|
8968
8996
|
case N:
|
|
@@ -8971,7 +8999,7 @@ Expected it to be ${p}.`;
|
|
|
8971
8999
|
case T:
|
|
8972
9000
|
case S:
|
|
8973
9001
|
case $:
|
|
8974
|
-
case
|
|
9002
|
+
case z:
|
|
8975
9003
|
case P:
|
|
8976
9004
|
case q:
|
|
8977
9005
|
return s(D);
|
|
@@ -8980,7 +9008,7 @@ Expected it to be ${p}.`;
|
|
|
8980
9008
|
}
|
|
8981
9009
|
}
|
|
8982
9010
|
}
|
|
8983
|
-
function
|
|
9011
|
+
function Vi(a) {
|
|
8984
9012
|
switch (Q(a)) {
|
|
8985
9013
|
case I:
|
|
8986
9014
|
if (a.parts.every((s) => s === "")) return "";
|
|
@@ -8989,7 +9017,7 @@ Expected it to be ${p}.`;
|
|
|
8989
9017
|
if (!a.contents && !a.id && !a.break && !a.expandedStates) return "";
|
|
8990
9018
|
if (a.contents.type === L && a.contents.id === a.id && a.contents.break === a.break && a.contents.expandedStates === a.expandedStates) return a.contents;
|
|
8991
9019
|
break;
|
|
8992
|
-
case
|
|
9020
|
+
case _:
|
|
8993
9021
|
case A:
|
|
8994
9022
|
case W:
|
|
8995
9023
|
case K:
|
|
@@ -9010,7 +9038,7 @@ Expected it to be ${p}.`;
|
|
|
9010
9038
|
case T:
|
|
9011
9039
|
case S:
|
|
9012
9040
|
case $:
|
|
9013
|
-
case
|
|
9041
|
+
case z:
|
|
9014
9042
|
case P:
|
|
9015
9043
|
case N:
|
|
9016
9044
|
case q:
|
|
@@ -9021,7 +9049,7 @@ Expected it to be ${p}.`;
|
|
|
9021
9049
|
return a;
|
|
9022
9050
|
}
|
|
9023
9051
|
function Aa(a) {
|
|
9024
|
-
return Ar(a, (s) =>
|
|
9052
|
+
return Ar(a, (s) => Vi(s));
|
|
9025
9053
|
}
|
|
9026
9054
|
function dt(a, s = Zn) {
|
|
9027
9055
|
return Ar(a, (l) => typeof l == "string" ? dn(s, l.split(`
|
|
@@ -9038,7 +9066,7 @@ Expected it to be ${p}.`;
|
|
|
9038
9066
|
if (typeof a != "string") throw new TypeError("Expected a string");
|
|
9039
9067
|
return a.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
9040
9068
|
}
|
|
9041
|
-
var kt,
|
|
9069
|
+
var kt, zi = class {
|
|
9042
9070
|
constructor(a) {
|
|
9043
9071
|
y(this, kt), b(this, kt, new Set(a));
|
|
9044
9072
|
}
|
|
@@ -9095,7 +9123,7 @@ Expected it to be ${p}.`;
|
|
|
9095
9123
|
}
|
|
9096
9124
|
};
|
|
9097
9125
|
kt = /* @__PURE__ */ new WeakMap();
|
|
9098
|
-
var Gi =
|
|
9126
|
+
var Gi = zi, Yi = [" ", `
|
|
9099
9127
|
`, "\f", "\r", " "], Ki = new Gi(Yi), St = Ki, Ji = class extends Error {
|
|
9100
9128
|
constructor(s, l, p = "type") {
|
|
9101
9129
|
super(`Unexpected ${l} node ${p}: ${JSON.stringify(s[p])}.`);
|
|
@@ -9118,7 +9146,7 @@ Expected it to be ${p}.`;
|
|
|
9118
9146
|
async function ja(a, s) {
|
|
9119
9147
|
if (a.language === "yaml") {
|
|
9120
9148
|
let l = a.value.trim(), p = l ? await s(l, { parser: "yaml" }) : "";
|
|
9121
|
-
return
|
|
9149
|
+
return xt([a.startDelimiter, a.explicitLanguage, xe, p, p ? xe : "", a.endDelimiter]);
|
|
9122
9150
|
}
|
|
9123
9151
|
}
|
|
9124
9152
|
var Qi = ja;
|
|
@@ -9198,10 +9226,10 @@ Expected it to be ${p}.`;
|
|
|
9198
9226
|
return Bt(a) || a.type === "angularControlFlowBlock" ? !1 : (a.type === "text" || a.type === "interpolation") && a.prev && (a.prev.type === "text" || a.prev.type === "interpolation") ? !0 : !a.parent || a.parent.cssDisplay === "none" ? !1 : tr(a.parent) ? !0 : !(!a.prev && (a.parent.type === "root" || tr(a) && a.parent || Xe(a.parent) || Ra(a.parent, s) || !Zd(a.parent.cssDisplay)) || a.prev && !nh(a.prev.cssDisplay));
|
|
9199
9227
|
}
|
|
9200
9228
|
}
|
|
9201
|
-
function
|
|
9229
|
+
function Vd(a, s) {
|
|
9202
9230
|
return Bt(a) || a.type === "angularControlFlowBlock" ? !1 : (a.type === "text" || a.type === "interpolation") && a.next && (a.next.type === "text" || a.next.type === "interpolation") ? !0 : !a.parent || a.parent.cssDisplay === "none" ? !1 : tr(a.parent) ? !0 : !(!a.next && (a.parent.type === "root" || tr(a) && a.parent || Xe(a.parent) || Ra(a.parent, s) || !eh(a.parent.cssDisplay)) || a.next && !th(a.next.cssDisplay));
|
|
9203
9231
|
}
|
|
9204
|
-
function
|
|
9232
|
+
function zd(a) {
|
|
9205
9233
|
return rh(a.cssDisplay) && !Xe(a);
|
|
9206
9234
|
}
|
|
9207
9235
|
function Ma(a) {
|
|
@@ -9380,7 +9408,7 @@ Expected it to be ${p}.`;
|
|
|
9380
9408
|
return p === "script" && f === "setup" || p === "style" && f === "vars";
|
|
9381
9409
|
}
|
|
9382
9410
|
function hl(a, s = a.value) {
|
|
9383
|
-
return a.parent.isWhitespaceSensitive ? a.parent.isIndentationSensitive ? dt(s) : dt(pl(re(s)),
|
|
9411
|
+
return a.parent.isWhitespaceSensitive ? a.parent.isIndentationSensitive ? dt(s) : dt(pl(re(s)), xe) : dn(we, St.split(s));
|
|
9384
9412
|
}
|
|
9385
9413
|
function fl(a, s) {
|
|
9386
9414
|
return nr(a, s) && a.name === "script";
|
|
@@ -9459,19 +9487,19 @@ Expected it to be ${p}.`;
|
|
|
9459
9487
|
}
|
|
9460
9488
|
}
|
|
9461
9489
|
function fe() {
|
|
9462
|
-
let le = !1, Fe, Ue, Qe, it,
|
|
9490
|
+
let le = !1, Fe, Ue, Qe, it, V = {}, ue, We, Re, lt, sr;
|
|
9463
9491
|
for (it = 0; it < p.length; it++) ue = p[it], We = ue[ue.length - 1], Re = ue.substring(0, ue.length - 1), lt = parseInt(Re, 10), sr = parseFloat(Re), vl.test(Re) && We === "w" ? ((Fe || Ue) && (le = !0), lt === 0 ? le = !0 : Fe = lt) : wh.test(Re) && We === "x" ? ((Fe || Ue || Qe) && (le = !0), sr < 0 ? le = !0 : Ue = sr) : vl.test(Re) && We === "h" ? ((Qe || Ue) && (le = !0), lt === 0 ? le = !0 : Qe = lt) : le = !0;
|
|
9464
|
-
if (!le)
|
|
9492
|
+
if (!le) V.source = { value: l, startOffset: R }, Fe && (V.width = { value: Fe }), Ue && (V.density = { value: Ue }), Qe && (V.height = { value: Qe }), U.push(V);
|
|
9465
9493
|
else throw new Error(`Invalid srcset descriptor found in "${a}" at "${ue}".`);
|
|
9466
9494
|
}
|
|
9467
9495
|
}
|
|
9468
|
-
var
|
|
9469
|
-
function
|
|
9496
|
+
var _h = Ch;
|
|
9497
|
+
function xh(a) {
|
|
9470
9498
|
if (a.node.fullName === "srcset" && (a.parent.fullName === "img" || a.parent.fullName === "source")) return () => Eh(hn(a.node));
|
|
9471
9499
|
}
|
|
9472
9500
|
var yl = { width: "w", height: "h", density: "x" }, Sh = Object.keys(yl);
|
|
9473
9501
|
function Eh(a) {
|
|
9474
|
-
let s =
|
|
9502
|
+
let s = _h(a), l = Sh.filter((U) => s.some((De) => Object.prototype.hasOwnProperty.call(De, U)));
|
|
9475
9503
|
if (l.length > 1) throw new Error("Mixed descriptor in srcset is not supported");
|
|
9476
9504
|
let [p] = l, f = yl[p], D = s.map((U) => U.source.value), E = Math.max(...D.map((U) => U.length)), B = s.map((U) => U[p] ? String(U[p].value) : ""), R = B.map((U) => {
|
|
9477
9505
|
let De = U.indexOf(".");
|
|
@@ -9486,7 +9514,7 @@ Expected it to be ${p}.`;
|
|
|
9486
9514
|
return fe;
|
|
9487
9515
|
})));
|
|
9488
9516
|
}
|
|
9489
|
-
var Fh =
|
|
9517
|
+
var Fh = xh;
|
|
9490
9518
|
function Ah(a, s) {
|
|
9491
9519
|
let { node: l } = a, p = hn(a.node).trim();
|
|
9492
9520
|
if (l.fullName === "style" && !s.parentParser && !p.includes("{{")) return async (f) => Sn(await f(p, { parser: "css", __isHTMLStyleAttribute: !0 }));
|
|
@@ -9575,12 +9603,12 @@ Expected it to be ${p}.`;
|
|
|
9575
9603
|
return [a.isSelfClosing ? "" : Wh(a, s), Or(a, s)];
|
|
9576
9604
|
}
|
|
9577
9605
|
function Wh(a, s) {
|
|
9578
|
-
return a.lastChild && Rr(a.lastChild) ? "" : [
|
|
9606
|
+
return a.lastChild && Rr(a.lastChild) ? "" : [Vh(a, s), ps(a, s)];
|
|
9579
9607
|
}
|
|
9580
9608
|
function Or(a, s) {
|
|
9581
9609
|
return (a.next ? Fn(a.next) : Mr(a.parent)) ? "" : [Ir(a, s), En(a, s)];
|
|
9582
9610
|
}
|
|
9583
|
-
function
|
|
9611
|
+
function Vh(a, s) {
|
|
9584
9612
|
return Mr(a) ? Ir(a.lastChild, s) : "";
|
|
9585
9613
|
}
|
|
9586
9614
|
function En(a, s) {
|
|
@@ -9631,7 +9659,7 @@ Expected it to be ${p}.`;
|
|
|
9631
9659
|
function Ua(a) {
|
|
9632
9660
|
return a.next && !He(a.next) && He(a) && a.isTrailingSpaceSensitive && !a.hasTrailingSpaces;
|
|
9633
9661
|
}
|
|
9634
|
-
function
|
|
9662
|
+
function zh(a) {
|
|
9635
9663
|
let s = a.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);
|
|
9636
9664
|
return s ? s[1] ? s[1].split(/\s+/u) : !0 : !1;
|
|
9637
9665
|
}
|
|
@@ -9642,7 +9670,7 @@ Expected it to be ${p}.`;
|
|
|
9642
9670
|
var p;
|
|
9643
9671
|
let { node: f } = a;
|
|
9644
9672
|
if (!us(f.attrs)) return f.isSelfClosing ? " " : "";
|
|
9645
|
-
let D = ((p = f.prev) == null ? void 0 : p.type) === "comment" &&
|
|
9673
|
+
let D = ((p = f.prev) == null ? void 0 : p.type) === "comment" && zh(f.prev.value), E = typeof D == "boolean" ? () => D : Array.isArray(D) ? (De) => D.includes(De.rawName) : () => !1, B = a.map(({ node: De }) => E(De) ? dt(s.originalText.slice(qa(De), Ha(De))) : l(), "attrs"), R = f.type === "element" && f.fullName === "script" && f.attrs.length === 1 && f.attrs[0].fullName === "src" && f.children.length === 0, G = s.singleAttributePerLine && f.attrs.length > 1 && !nr(f, s) ? xe : we, U = [Ee([R ? " " : we, dn(G, B)])];
|
|
9646
9674
|
return f.firstChild && Wa(f.firstChild) || f.isSelfClosing && Mr(f.parent) || R ? U.push(f.isSelfClosing ? " " : "") : U.push(s.bracketSameLine ? f.isSelfClosing ? " " : "" : f.isSelfClosing ? we : Le), U;
|
|
9647
9675
|
}
|
|
9648
9676
|
function Yh(a) {
|
|
@@ -9704,7 +9732,7 @@ Expected it to be ${p}.`;
|
|
|
9704
9732
|
let p = ul(l, s);
|
|
9705
9733
|
return p ? async (f, D) => {
|
|
9706
9734
|
let E = Cl(l, s), B = /^\s*$/u.test(E), R = "";
|
|
9707
|
-
return B || (R = await f(re(E), { parser: p, __embeddedInHtml: !0 }), B = R === ""), [An(l, s), se(ds(a, s, D)), B ? "" :
|
|
9735
|
+
return B || (R = await f(re(E), { parser: p, __embeddedInHtml: !0 }), B = R === ""), [An(l, s), se(ds(a, s, D)), B ? "" : xe, R, B ? "" : xe, cs(l, s), En(l, s)];
|
|
9708
9736
|
} : void 0;
|
|
9709
9737
|
}
|
|
9710
9738
|
break;
|
|
@@ -9766,54 +9794,54 @@ Expected it to be ${p}.`;
|
|
|
9766
9794
|
` + a;
|
|
9767
9795
|
}
|
|
9768
9796
|
var cf = /* @__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"])]]);
|
|
9769
|
-
function
|
|
9797
|
+
function _l(a) {
|
|
9770
9798
|
let s = Ha(a);
|
|
9771
|
-
return a.type === "element" && !a.endSourceSpan && us(a.children) ? Math.max(s,
|
|
9799
|
+
return a.type === "element" && !a.endSourceSpan && us(a.children) ? Math.max(s, _l(Gt(!1, a.children, -1))) : s;
|
|
9772
9800
|
}
|
|
9773
9801
|
function Wr(a, s, l) {
|
|
9774
9802
|
let p = a.node;
|
|
9775
9803
|
if (Ae(p)) {
|
|
9776
|
-
let f =
|
|
9804
|
+
let f = _l(p);
|
|
9777
9805
|
return [An(p, s), dt(St.trimEnd(s.originalText.slice(qa(p) + (p.prev && Ua(p.prev) ? hs(p).length : 0), f - (p.next && Fn(p.next) ? Ir(p, s).length : 0)))), En(p, s)];
|
|
9778
9806
|
}
|
|
9779
9807
|
return l();
|
|
9780
9808
|
}
|
|
9781
|
-
function
|
|
9782
|
-
return He(a) && He(s) ? a.isTrailingSpaceSensitive ? a.hasTrailingSpaces ? rs(s) ?
|
|
9809
|
+
function Va(a, s) {
|
|
9810
|
+
return He(a) && He(s) ? a.isTrailingSpaceSensitive ? a.hasTrailingSpaces ? rs(s) ? xe : we : "" : rs(s) ? xe : Le : Ua(a) && (Ae(s) || s.firstChild || s.isSelfClosing || s.type === "element" && s.attrs.length > 0) || a.type === "element" && a.isSelfClosing && Fn(s) ? "" : !s.isLeadingSpaceSensitive || rs(s) || Fn(s) && a.lastChild && Rr(a.lastChild) && a.lastChild.lastChild && Rr(a.lastChild.lastChild) ? xe : s.hasLeadingSpaces ? we : Le;
|
|
9783
9811
|
}
|
|
9784
9812
|
function ms(a, s, l) {
|
|
9785
9813
|
let { node: p } = a;
|
|
9786
9814
|
if (rl(p)) return [bt, ...a.map((D) => {
|
|
9787
|
-
let E = D.node, B = E.prev ?
|
|
9788
|
-
return [B ? [B, Ma(E.prev) ?
|
|
9815
|
+
let E = D.node, B = E.prev ? Va(E.prev, E) : "";
|
|
9816
|
+
return [B ? [B, Ma(E.prev) ? xe : ""] : "", Wr(D, s, l)];
|
|
9789
9817
|
}, "children")];
|
|
9790
9818
|
let f = p.children.map(() => Symbol(""));
|
|
9791
9819
|
return a.map((D, E) => {
|
|
9792
9820
|
let B = D.node;
|
|
9793
9821
|
if (He(B)) {
|
|
9794
9822
|
if (B.prev && He(B.prev)) {
|
|
9795
|
-
let Fe =
|
|
9796
|
-
if (Fe) return Ma(B.prev) ? [
|
|
9823
|
+
let Fe = Va(B.prev, B);
|
|
9824
|
+
if (Fe) return Ma(B.prev) ? [xe, xe, Wr(D, s, l)] : [Fe, Wr(D, s, l)];
|
|
9797
9825
|
}
|
|
9798
9826
|
return Wr(D, s, l);
|
|
9799
9827
|
}
|
|
9800
|
-
let R = [], G = [], U = [], De = [], fe = B.prev ?
|
|
9801
|
-
return fe && (Ma(B.prev) ? R.push(
|
|
9828
|
+
let R = [], G = [], U = [], De = [], fe = B.prev ? Va(B.prev, B) : "", le = B.next ? Va(B, B.next) : "";
|
|
9829
|
+
return fe && (Ma(B.prev) ? R.push(xe, xe) : fe === xe ? R.push(xe) : He(B.prev) ? G.push(fe) : G.push(Dt("", Le, { groupId: f[E - 1] }))), le && (Ma(B) ? He(B.next) && De.push(xe, xe) : le === xe ? He(B.next) && De.push(xe) : U.push(le)), [...R, se([...G, se([Wr(D, s, l), ...U], { id: f[E] })]), ...De];
|
|
9802
9830
|
}, "children");
|
|
9803
9831
|
}
|
|
9804
9832
|
function pf(a, s, l) {
|
|
9805
9833
|
let { node: p } = a, f = [];
|
|
9806
9834
|
df(a) && f.push("} "), f.push("@", p.name), p.parameters && f.push(" (", se(l("parameters")), ")"), f.push(" {");
|
|
9807
|
-
let D =
|
|
9808
|
-
return p.children.length > 0 ? (p.firstChild.hasLeadingSpaces = !0, p.lastChild.hasTrailingSpaces = !0, f.push(Ee([
|
|
9835
|
+
let D = xl(p);
|
|
9836
|
+
return p.children.length > 0 ? (p.firstChild.hasLeadingSpaces = !0, p.lastChild.hasTrailingSpaces = !0, f.push(Ee([xe, ms(a, s, l)])), D && f.push(xe, "}")) : D && f.push("}"), se(f, { shouldBreak: !0 });
|
|
9809
9837
|
}
|
|
9810
|
-
function
|
|
9838
|
+
function xl(a) {
|
|
9811
9839
|
var s, l;
|
|
9812
9840
|
return !(((s = a.next) == null ? void 0 : s.type) === "angularControlFlowBlock" && (l = cf.get(a.name)) != null && l.has(a.next.name));
|
|
9813
9841
|
}
|
|
9814
9842
|
function df(a) {
|
|
9815
9843
|
let { previous: s } = a;
|
|
9816
|
-
return (s == null ? void 0 : s.type) === "angularControlFlowBlock" && !Ae(s) && !
|
|
9844
|
+
return (s == null ? void 0 : s.type) === "angularControlFlowBlock" && !Ae(s) && !xl(s);
|
|
9817
9845
|
}
|
|
9818
9846
|
function hf(a, s, l) {
|
|
9819
9847
|
return [Ee([Le, dn([";", we], a.map(l, "children"))]), Le];
|
|
@@ -9832,7 +9860,7 @@ Expected it to be ${p}.`;
|
|
|
9832
9860
|
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, D = Symbol("element-attr-group-id"), E = (U) => se([se(ds(a, s, l), { id: D }), U, cs(p, s)]), B = (U) => f ? pn(U, { groupId: D }) : (Xe(p) || Ra(p, s)) && p.parent.type === "root" && s.parser === "vue" && !s.vueIndentScriptAndStyle ? U : Ee(U), R = () => f ? Dt(Le, "", { groupId: D }) : p.firstChild.hasLeadingSpaces && p.firstChild.isLeadingSpaceSensitive ? we : p.firstChild.type === "text" && p.isWhitespaceSensitive && p.isIndentationSensitive ? pt(Le) : Le, G = () => (p.next ? Fn(p.next) : Mr(p.parent)) ? p.lastChild.hasTrailingSpaces && p.lastChild.isTrailingSpaceSensitive ? " " : "" : f ? Dt(Le, "", { groupId: D }) : p.lastChild.hasTrailingSpaces && p.lastChild.isTrailingSpaceSensitive ? we : (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) ? "" : Le;
|
|
9833
9861
|
return p.children.length === 0 ? E(p.hasDanglingSpaces && p.isDanglingSpaceSensitive ? we : "") : E([Gd(p) ? bt : "", B([R(), ms(a, s, l)]), G()]);
|
|
9834
9862
|
}
|
|
9835
|
-
function
|
|
9863
|
+
function za(a) {
|
|
9836
9864
|
return a >= 9 && a <= 32 || a == 160;
|
|
9837
9865
|
}
|
|
9838
9866
|
function gs(a) {
|
|
@@ -9918,7 +9946,7 @@ Expected it to be ${p}.`;
|
|
|
9918
9946
|
let a = this.span.details ? `, ${this.span.details}` : "";
|
|
9919
9947
|
return `${this.contextualMessage()}: ${this.span.start}${a}`;
|
|
9920
9948
|
}
|
|
9921
|
-
}, bf = [wf, Cf,
|
|
9949
|
+
}, bf = [wf, Cf, xf, Ef, Ff, Tf, Af, $f, Bf, Sf];
|
|
9922
9950
|
function kf(a, s) {
|
|
9923
9951
|
for (let l of bf) l(a, s);
|
|
9924
9952
|
return a;
|
|
@@ -9948,7 +9976,7 @@ Expected it to be ${p}.`;
|
|
|
9948
9976
|
}
|
|
9949
9977
|
});
|
|
9950
9978
|
}
|
|
9951
|
-
function
|
|
9979
|
+
function _f(a, s, l) {
|
|
9952
9980
|
a.walk((p) => {
|
|
9953
9981
|
if (p.children) for (let f = 0; f < p.children.length; f++) {
|
|
9954
9982
|
let D = p.children[f];
|
|
@@ -9959,8 +9987,8 @@ Expected it to be ${p}.`;
|
|
|
9959
9987
|
}
|
|
9960
9988
|
});
|
|
9961
9989
|
}
|
|
9962
|
-
function
|
|
9963
|
-
return
|
|
9990
|
+
function xf(a) {
|
|
9991
|
+
return _f(a, (s) => s.type === "cdata", (s) => `<![CDATA[${s.value}]]>`);
|
|
9964
9992
|
}
|
|
9965
9993
|
function Sf(a) {
|
|
9966
9994
|
let s = (l) => {
|
|
@@ -10032,10 +10060,10 @@ Expected it to be ${p}.`;
|
|
|
10032
10060
|
let { children: p } = l;
|
|
10033
10061
|
if (p) {
|
|
10034
10062
|
if (p.length === 0) {
|
|
10035
|
-
l.isDanglingSpaceSensitive =
|
|
10063
|
+
l.isDanglingSpaceSensitive = zd(l);
|
|
10036
10064
|
return;
|
|
10037
10065
|
}
|
|
10038
|
-
for (let f of p) f.isLeadingSpaceSensitive = ns(f, s), f.isTrailingSpaceSensitive =
|
|
10066
|
+
for (let f of p) f.isLeadingSpaceSensitive = ns(f, s), f.isTrailingSpaceSensitive = Vd(f, s);
|
|
10039
10067
|
for (let f = 0; f < p.length; f++) {
|
|
10040
10068
|
let D = p[f];
|
|
10041
10069
|
D.isLeadingSpaceSensitive = (f === 0 || D.prev.isTrailingSpaceSensitive) && D.isLeadingSpaceSensitive, D.isTrailingSpaceSensitive = (f === p.length - 1 || D.next.isLeadingSpaceSensitive) && D.isTrailingSpaceSensitive;
|
|
@@ -10050,7 +10078,7 @@ Expected it to be ${p}.`;
|
|
|
10050
10078
|
case "front-matter":
|
|
10051
10079
|
return dt(p.raw);
|
|
10052
10080
|
case "root":
|
|
10053
|
-
return s.__onHtmlRoot && s.__onHtmlRoot(p), [se(ms(a, s, l)),
|
|
10081
|
+
return s.__onHtmlRoot && s.__onHtmlRoot(p), [se(ms(a, s, l)), xe];
|
|
10054
10082
|
case "element":
|
|
10055
10083
|
case "ieConditionalComment":
|
|
10056
10084
|
return gf(a, s, l);
|
|
@@ -10076,7 +10104,7 @@ Expected it to be ${p}.`;
|
|
|
10076
10104
|
case "text": {
|
|
10077
10105
|
if (p.parent.type === "interpolation") {
|
|
10078
10106
|
let D = /\n[^\S\n]*$/u, E = D.test(p.value), B = E ? p.value.replace(D, "") : p.value;
|
|
10079
|
-
return [dt(B), E ?
|
|
10107
|
+
return [dt(B), E ? xe : ""];
|
|
10080
10108
|
}
|
|
10081
10109
|
let f = Aa([An(p, s), ...hl(p), En(p, s)]);
|
|
10082
10110
|
return Array.isArray(f) ? yt(f) : f;
|
|
@@ -10150,9 +10178,9 @@ Expected it to be ${p}.`;
|
|
|
10150
10178
|
for (let l of s) Qa[l.toLowerCase()] = a;
|
|
10151
10179
|
}
|
|
10152
10180
|
var Rf = class {
|
|
10153
|
-
}, qf = "boolean", Hf = "number", Uf = "string", Wf = "object", zf = ["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored", "[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy", "abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy", "media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume", ":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex", ":svg:graphics^:svg:|", ":svg:animation^:svg:|*begin,*end,*repeat", ":svg:geometry^:svg:|", ":svg:componentTransferFunction^:svg:|", ":svg:gradient^:svg:|", ":svg:textContent^:svg:graphics|", ":svg:textPositioning^:svg:textContent|", "a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username", "area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username", "audio^media|", "br^[HTMLElement]|clear", "base^[HTMLElement]|href,target", "body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink", "button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value", "canvas^[HTMLElement]|#height,#width", "content^[HTMLElement]|select", "dl^[HTMLElement]|!compact", "data^[HTMLElement]|value", "datalist^[HTMLElement]|", "details^[HTMLElement]|!open", "dialog^[HTMLElement]|!open,returnValue", "dir^[HTMLElement]|!compact", "div^[HTMLElement]|align", "embed^[HTMLElement]|align,height,name,src,type,width", "fieldset^[HTMLElement]|!disabled,name", "font^[HTMLElement]|color,face,size", "form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target", "frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src", "frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows", "hr^[HTMLElement]|align,color,!noShade,size,width", "head^[HTMLElement]|", "h1,h2,h3,h4,h5,h6^[HTMLElement]|align", "html^[HTMLElement]|version", "iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width", "img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width", "input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width", "li^[HTMLElement]|type,#value", "label^[HTMLElement]|htmlFor", "legend^[HTMLElement]|align", "link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type", "map^[HTMLElement]|name", "marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width", "menu^[HTMLElement]|!compact", "meta^[HTMLElement]|content,httpEquiv,media,name,scheme", "meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value", "ins,del^[HTMLElement]|cite,dateTime", "ol^[HTMLElement]|!compact,!reversed,#start,type", "object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width", "optgroup^[HTMLElement]|!disabled,label", "option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value", "output^[HTMLElement]|defaultValue,%htmlFor,name,value", "p^[HTMLElement]|align", "param^[HTMLElement]|name,type,value,valueType", "picture^[HTMLElement]|", "pre^[HTMLElement]|#width", "progress^[HTMLElement]|#max,#value", "q,blockquote,cite^[HTMLElement]|", "script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type", "select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value", "slot^[HTMLElement]|name", "source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width", "span^[HTMLElement]|", "style^[HTMLElement]|!disabled,media,type", "caption^[HTMLElement]|align", "th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width", "col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width", "table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width", "tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign", "tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign", "template^[HTMLElement]|", "textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap", "time^[HTMLElement]|dateTime", "title^[HTMLElement]|text", "track^[HTMLElement]|!default,kind,label,src,srclang", "ul^[HTMLElement]|!compact,type", "unknown^[HTMLElement]|", "video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width", ":svg:a^:svg:graphics|", ":svg:animate^:svg:animation|", ":svg:animateMotion^:svg:animation|", ":svg:animateTransform^:svg:animation|", ":svg:circle^:svg:geometry|", ":svg:clipPath^:svg:graphics|", ":svg:defs^:svg:graphics|", ":svg:desc^:svg:|", ":svg:discard^:svg:|", ":svg:ellipse^:svg:geometry|", ":svg:feBlend^:svg:|", ":svg:feColorMatrix^:svg:|", ":svg:feComponentTransfer^:svg:|", ":svg:feComposite^:svg:|", ":svg:feConvolveMatrix^:svg:|", ":svg:feDiffuseLighting^:svg:|", ":svg:feDisplacementMap^:svg:|", ":svg:feDistantLight^:svg:|", ":svg:feDropShadow^:svg:|", ":svg:feFlood^:svg:|", ":svg:feFuncA^:svg:componentTransferFunction|", ":svg:feFuncB^:svg:componentTransferFunction|", ":svg:feFuncG^:svg:componentTransferFunction|", ":svg:feFuncR^:svg:componentTransferFunction|", ":svg:feGaussianBlur^:svg:|", ":svg:feImage^:svg:|", ":svg:feMerge^:svg:|", ":svg:feMergeNode^:svg:|", ":svg:feMorphology^:svg:|", ":svg:feOffset^:svg:|", ":svg:fePointLight^:svg:|", ":svg:feSpecularLighting^:svg:|", ":svg:feSpotLight^:svg:|", ":svg:feTile^:svg:|", ":svg:feTurbulence^:svg:|", ":svg:filter^:svg:|", ":svg:foreignObject^:svg:graphics|", ":svg:g^:svg:graphics|", ":svg:image^:svg:graphics|decoding", ":svg:line^:svg:geometry|", ":svg:linearGradient^:svg:gradient|", ":svg:mpath^:svg:|", ":svg:marker^:svg:|", ":svg:mask^:svg:|", ":svg:metadata^:svg:|", ":svg:path^:svg:geometry|", ":svg:pattern^:svg:|", ":svg:polygon^:svg:geometry|", ":svg:polyline^:svg:geometry|", ":svg:radialGradient^:svg:gradient|", ":svg:rect^:svg:geometry|", ":svg:svg^:svg:graphics|#currentScale,#zoomAndPan", ":svg:script^:svg:|type", ":svg:set^:svg:animation|", ":svg:stop^:svg:|", ":svg:style^:svg:|!disabled,media,title,type", ":svg:switch^:svg:graphics|", ":svg:symbol^:svg:|", ":svg:tspan^:svg:textPositioning|", ":svg:text^:svg:textPositioning|", ":svg:textPath^:svg:textContent|", ":svg:title^:svg:|", ":svg:use^:svg:graphics|", ":svg:view^:svg:|#zoomAndPan", "data^[HTMLElement]|value", "keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name", "menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default", "summary^[HTMLElement]|", "time^[HTMLElement]|dateTime", ":svg:cursor^:svg:|", ":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex", ":math:math^:math:|", ":math:maction^:math:|", ":math:menclose^:math:|", ":math:merror^:math:|", ":math:mfenced^:math:|", ":math:mfrac^:math:|", ":math:mi^:math:|", ":math:mmultiscripts^:math:|", ":math:mn^:math:|", ":math:mo^:math:|", ":math:mover^:math:|", ":math:mpadded^:math:|", ":math:mphantom^:math:|", ":math:mroot^:math:|", ":math:mrow^:math:|", ":math:ms^:math:|", ":math:mspace^:math:|", ":math:msqrt^:math:|", ":math:mstyle^:math:|", ":math:msub^:math:|", ":math:msubsup^:math:|", ":math:msup^:math:|", ":math:mtable^:math:|", ":math:mtd^:math:|", ":math:mtext^:math:|", ":math:mtr^:math:|", ":math:munder^:math:|", ":math:munderover^:math:|", ":math:semantics^:math:|"], ql = new Map(Object.entries({ class: "className", for: "htmlFor", formaction: "formAction", innerHtml: "innerHTML", readonly: "readOnly", tabindex: "tabIndex" })), Vf = Array.from(ql).reduce((a, [s, l]) => (a.set(s, l), a), /* @__PURE__ */ new Map()), Gf = class extends Rf {
|
|
10181
|
+
}, qf = "boolean", Hf = "number", Uf = "string", Wf = "object", Vf = ["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored", "[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy", "abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy", "media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume", ":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex", ":svg:graphics^:svg:|", ":svg:animation^:svg:|*begin,*end,*repeat", ":svg:geometry^:svg:|", ":svg:componentTransferFunction^:svg:|", ":svg:gradient^:svg:|", ":svg:textContent^:svg:graphics|", ":svg:textPositioning^:svg:textContent|", "a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username", "area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username", "audio^media|", "br^[HTMLElement]|clear", "base^[HTMLElement]|href,target", "body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink", "button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value", "canvas^[HTMLElement]|#height,#width", "content^[HTMLElement]|select", "dl^[HTMLElement]|!compact", "data^[HTMLElement]|value", "datalist^[HTMLElement]|", "details^[HTMLElement]|!open", "dialog^[HTMLElement]|!open,returnValue", "dir^[HTMLElement]|!compact", "div^[HTMLElement]|align", "embed^[HTMLElement]|align,height,name,src,type,width", "fieldset^[HTMLElement]|!disabled,name", "font^[HTMLElement]|color,face,size", "form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target", "frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src", "frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows", "hr^[HTMLElement]|align,color,!noShade,size,width", "head^[HTMLElement]|", "h1,h2,h3,h4,h5,h6^[HTMLElement]|align", "html^[HTMLElement]|version", "iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width", "img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width", "input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width", "li^[HTMLElement]|type,#value", "label^[HTMLElement]|htmlFor", "legend^[HTMLElement]|align", "link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type", "map^[HTMLElement]|name", "marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width", "menu^[HTMLElement]|!compact", "meta^[HTMLElement]|content,httpEquiv,media,name,scheme", "meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value", "ins,del^[HTMLElement]|cite,dateTime", "ol^[HTMLElement]|!compact,!reversed,#start,type", "object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width", "optgroup^[HTMLElement]|!disabled,label", "option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value", "output^[HTMLElement]|defaultValue,%htmlFor,name,value", "p^[HTMLElement]|align", "param^[HTMLElement]|name,type,value,valueType", "picture^[HTMLElement]|", "pre^[HTMLElement]|#width", "progress^[HTMLElement]|#max,#value", "q,blockquote,cite^[HTMLElement]|", "script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type", "select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value", "slot^[HTMLElement]|name", "source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width", "span^[HTMLElement]|", "style^[HTMLElement]|!disabled,media,type", "caption^[HTMLElement]|align", "th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width", "col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width", "table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width", "tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign", "tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign", "template^[HTMLElement]|", "textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap", "time^[HTMLElement]|dateTime", "title^[HTMLElement]|text", "track^[HTMLElement]|!default,kind,label,src,srclang", "ul^[HTMLElement]|!compact,type", "unknown^[HTMLElement]|", "video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width", ":svg:a^:svg:graphics|", ":svg:animate^:svg:animation|", ":svg:animateMotion^:svg:animation|", ":svg:animateTransform^:svg:animation|", ":svg:circle^:svg:geometry|", ":svg:clipPath^:svg:graphics|", ":svg:defs^:svg:graphics|", ":svg:desc^:svg:|", ":svg:discard^:svg:|", ":svg:ellipse^:svg:geometry|", ":svg:feBlend^:svg:|", ":svg:feColorMatrix^:svg:|", ":svg:feComponentTransfer^:svg:|", ":svg:feComposite^:svg:|", ":svg:feConvolveMatrix^:svg:|", ":svg:feDiffuseLighting^:svg:|", ":svg:feDisplacementMap^:svg:|", ":svg:feDistantLight^:svg:|", ":svg:feDropShadow^:svg:|", ":svg:feFlood^:svg:|", ":svg:feFuncA^:svg:componentTransferFunction|", ":svg:feFuncB^:svg:componentTransferFunction|", ":svg:feFuncG^:svg:componentTransferFunction|", ":svg:feFuncR^:svg:componentTransferFunction|", ":svg:feGaussianBlur^:svg:|", ":svg:feImage^:svg:|", ":svg:feMerge^:svg:|", ":svg:feMergeNode^:svg:|", ":svg:feMorphology^:svg:|", ":svg:feOffset^:svg:|", ":svg:fePointLight^:svg:|", ":svg:feSpecularLighting^:svg:|", ":svg:feSpotLight^:svg:|", ":svg:feTile^:svg:|", ":svg:feTurbulence^:svg:|", ":svg:filter^:svg:|", ":svg:foreignObject^:svg:graphics|", ":svg:g^:svg:graphics|", ":svg:image^:svg:graphics|decoding", ":svg:line^:svg:geometry|", ":svg:linearGradient^:svg:gradient|", ":svg:mpath^:svg:|", ":svg:marker^:svg:|", ":svg:mask^:svg:|", ":svg:metadata^:svg:|", ":svg:path^:svg:geometry|", ":svg:pattern^:svg:|", ":svg:polygon^:svg:geometry|", ":svg:polyline^:svg:geometry|", ":svg:radialGradient^:svg:gradient|", ":svg:rect^:svg:geometry|", ":svg:svg^:svg:graphics|#currentScale,#zoomAndPan", ":svg:script^:svg:|type", ":svg:set^:svg:animation|", ":svg:stop^:svg:|", ":svg:style^:svg:|!disabled,media,title,type", ":svg:switch^:svg:graphics|", ":svg:symbol^:svg:|", ":svg:tspan^:svg:textPositioning|", ":svg:text^:svg:textPositioning|", ":svg:textPath^:svg:textContent|", ":svg:title^:svg:|", ":svg:use^:svg:graphics|", ":svg:view^:svg:|#zoomAndPan", "data^[HTMLElement]|value", "keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name", "menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default", "summary^[HTMLElement]|", "time^[HTMLElement]|dateTime", ":svg:cursor^:svg:|", ":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex", ":math:math^:math:|", ":math:maction^:math:|", ":math:menclose^:math:|", ":math:merror^:math:|", ":math:mfenced^:math:|", ":math:mfrac^:math:|", ":math:mi^:math:|", ":math:mmultiscripts^:math:|", ":math:mn^:math:|", ":math:mo^:math:|", ":math:mover^:math:|", ":math:mpadded^:math:|", ":math:mphantom^:math:|", ":math:mroot^:math:|", ":math:mrow^:math:|", ":math:ms^:math:|", ":math:mspace^:math:|", ":math:msqrt^:math:|", ":math:mstyle^:math:|", ":math:msub^:math:|", ":math:msubsup^:math:|", ":math:msup^:math:|", ":math:mtable^:math:|", ":math:mtd^:math:|", ":math:mtext^:math:|", ":math:mtr^:math:|", ":math:munder^:math:|", ":math:munderover^:math:|", ":math:semantics^:math:|"], ql = new Map(Object.entries({ class: "className", for: "htmlFor", formaction: "formAction", innerHtml: "innerHTML", readonly: "readOnly", tabindex: "tabIndex" })), zf = Array.from(ql).reduce((a, [s, l]) => (a.set(s, l), a), /* @__PURE__ */ new Map()), Gf = class extends Rf {
|
|
10154
10182
|
constructor() {
|
|
10155
|
-
super(), this._schema = /* @__PURE__ */ new Map(), this._eventSchema = /* @__PURE__ */ new Map(),
|
|
10183
|
+
super(), this._schema = /* @__PURE__ */ new Map(), this._eventSchema = /* @__PURE__ */ new Map(), Vf.forEach((a) => {
|
|
10156
10184
|
let s = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Set(), [p, f] = a.split("|"), D = f.split(","), [E, B] = p.split("^");
|
|
10157
10185
|
E.split(",").forEach((G) => {
|
|
10158
10186
|
this._schema.set(G.toLowerCase(), s), this._eventSchema.set(G.toLowerCase(), l);
|
|
@@ -10216,7 +10244,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10216
10244
|
}
|
|
10217
10245
|
allKnownAttributesOfElement(a) {
|
|
10218
10246
|
let s = this._schema.get(a.toLowerCase()) || this._schema.get("unknown");
|
|
10219
|
-
return Array.from(s.keys()).map((l) =>
|
|
10247
|
+
return Array.from(s.keys()).map((l) => zf.get(l) ?? l);
|
|
10220
10248
|
}
|
|
10221
10249
|
allKnownEventsOfElement(a) {
|
|
10222
10250
|
return Array.from(this._eventSchema.get(a.toLowerCase()) ?? []);
|
|
@@ -10279,11 +10307,11 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10279
10307
|
getContentType(a) {
|
|
10280
10308
|
return typeof this.contentType == "object" ? (a === void 0 ? void 0 : this.contentType[a]) ?? this.contentType.default : this.contentType;
|
|
10281
10309
|
}
|
|
10282
|
-
}, Hl,
|
|
10310
|
+
}, Hl, Vr;
|
|
10283
10311
|
function bs(a) {
|
|
10284
|
-
return
|
|
10285
|
-
!
|
|
10286
|
-
})),
|
|
10312
|
+
return Vr || (Hl = new te({ canSelfClose: !0 }), Vr = Object.assign(/* @__PURE__ */ Object.create(null), { base: new te({ isVoid: !0 }), meta: new te({ isVoid: !0 }), area: new te({ isVoid: !0 }), embed: new te({ isVoid: !0 }), link: new te({ isVoid: !0 }), img: new te({ isVoid: !0 }), input: new te({ isVoid: !0 }), param: new te({ isVoid: !0 }), hr: new te({ isVoid: !0 }), br: new te({ isVoid: !0 }), source: new te({ isVoid: !0 }), track: new te({ isVoid: !0 }), wbr: new te({ isVoid: !0 }), p: new te({ 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 te({ closedByChildren: ["tbody", "tfoot"] }), tbody: new te({ closedByChildren: ["tbody", "tfoot"], closedByParent: !0 }), tfoot: new te({ closedByChildren: ["tbody"], closedByParent: !0 }), tr: new te({ closedByChildren: ["tr"], closedByParent: !0 }), td: new te({ closedByChildren: ["td", "th"], closedByParent: !0 }), th: new te({ closedByChildren: ["td", "th"], closedByParent: !0 }), col: new te({ isVoid: !0 }), svg: new te({ implicitNamespacePrefix: "svg" }), foreignObject: new te({ implicitNamespacePrefix: "svg", preventNamespaceInheritance: !0 }), math: new te({ implicitNamespacePrefix: "math" }), li: new te({ closedByChildren: ["li"], closedByParent: !0 }), dt: new te({ closedByChildren: ["dt", "dd"] }), dd: new te({ closedByChildren: ["dt", "dd"], closedByParent: !0 }), rb: new te({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: !0 }), rt: new te({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: !0 }), rtc: new te({ closedByChildren: ["rb", "rtc", "rp"], closedByParent: !0 }), rp: new te({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: !0 }), optgroup: new te({ closedByChildren: ["optgroup"], closedByParent: !0 }), option: new te({ closedByChildren: ["option", "optgroup"], closedByParent: !0 }), pre: new te({ ignoreFirstLf: !0 }), listing: new te({ ignoreFirstLf: !0 }), style: new te({ contentType: Nt.RAW_TEXT }), script: new te({ contentType: Nt.RAW_TEXT }), title: new te({ contentType: { default: Nt.ESCAPABLE_RAW_TEXT, svg: Nt.PARSABLE_DATA } }), textarea: new te({ contentType: Nt.ESCAPABLE_RAW_TEXT, ignoreFirstLf: !0 }) }), new Gf().allKnownElementNames().forEach((s) => {
|
|
10313
|
+
!Vr[s] && Ja(s) === null && (Vr[s] = new te({ canSelfClose: !1 }));
|
|
10314
|
+
})), Vr[a] ?? Hl;
|
|
10287
10315
|
}
|
|
10288
10316
|
var rr = class {
|
|
10289
10317
|
constructor(a, s) {
|
|
@@ -10370,7 +10398,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10370
10398
|
return a.visitLetDeclaration(this, s);
|
|
10371
10399
|
}
|
|
10372
10400
|
};
|
|
10373
|
-
function
|
|
10401
|
+
function Vl(a, s, l = null) {
|
|
10374
10402
|
let p = [], f = a.visit ? (D) => a.visit(D, l) || D.visit(a, l) : (D) => D.visit(a, l);
|
|
10375
10403
|
return s.forEach((D) => {
|
|
10376
10404
|
let E = f(D);
|
|
@@ -10414,7 +10442,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10414
10442
|
visitChildren(a, s) {
|
|
10415
10443
|
let l = [], p = this;
|
|
10416
10444
|
function f(D) {
|
|
10417
|
-
D && l.push(
|
|
10445
|
+
D && l.push(Vl(p, D, a));
|
|
10418
10446
|
}
|
|
10419
10447
|
return s(f), Array.prototype.concat.apply([], l);
|
|
10420
10448
|
}
|
|
@@ -10433,12 +10461,12 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10433
10461
|
}
|
|
10434
10462
|
var sm = class hd {
|
|
10435
10463
|
static fromArray(s) {
|
|
10436
|
-
return s ? (im("interpolation", s), new hd(s[0], s[1])) :
|
|
10464
|
+
return s ? (im("interpolation", s), new hd(s[0], s[1])) : zl;
|
|
10437
10465
|
}
|
|
10438
10466
|
constructor(s, l) {
|
|
10439
10467
|
this.start = s, this.end = l;
|
|
10440
10468
|
}
|
|
10441
|
-
},
|
|
10469
|
+
}, zl = new sm("{{", "}}"), ks = class extends Fl {
|
|
10442
10470
|
constructor(a, s, l) {
|
|
10443
10471
|
super(l, a), this.tokenType = s;
|
|
10444
10472
|
}
|
|
@@ -10471,7 +10499,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10471
10499
|
}
|
|
10472
10500
|
}, pm = class {
|
|
10473
10501
|
constructor(a, s, l) {
|
|
10474
|
-
this._getTagContentType = s, this._currentTokenStart = null, this._currentTokenType = null, this._expansionCaseStack = [], this._inInterpolation = !1, this._fullNameStack = [], this.tokens = [], this.errors = [], this.nonNormalizedIcuExpressions = [], this._tokenizeIcu = l.tokenizeExpansionForms || !1, this._interpolationConfig = l.interpolationConfig ||
|
|
10502
|
+
this._getTagContentType = s, this._currentTokenStart = null, this._currentTokenType = null, this._expansionCaseStack = [], this._inInterpolation = !1, this._fullNameStack = [], this.tokens = [], this.errors = [], this.nonNormalizedIcuExpressions = [], this._tokenizeIcu = l.tokenizeExpansionForms || !1, this._interpolationConfig = l.interpolationConfig || zl, this._leadingTriviaCodePoints = l.leadingTriviaChars && l.leadingTriviaChars.map((f) => f.codePointAt(0) || 0), this._canSelfClose = l.canSelfClose || !1, this._allowHtmComponentClosingTags = l.allowHtmComponentClosingTags || !1;
|
|
10475
10503
|
let p = l.range || { endPos: a.content.length, startPos: 0, startLine: 0, startCol: 0 };
|
|
10476
10504
|
this._cursor = l.escapedString ? new ym(a, p) : new Ql(a, p), this._preserveLineEndings = l.preserveLineEndings || !1, this._i18nNormalizeLineEndingsInICUs = l.i18nNormalizeLineEndingsInICUs || !1, this._tokenizeBlocks = l.tokenizeBlocks ?? !0, this._tokenizeLet = l.tokenizeLet ?? !0;
|
|
10477
10505
|
try {
|
|
@@ -10503,7 +10531,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10503
10531
|
}
|
|
10504
10532
|
_getBlockName() {
|
|
10505
10533
|
let a = !1, s = this._cursor.clone();
|
|
10506
|
-
return this._attemptCharCodeUntilFn((l) =>
|
|
10534
|
+
return this._attemptCharCodeUntilFn((l) => za(l) ? !a : Jl(l) ? (a = !0, !1) : !0), this._cursor.getChars(s).trim();
|
|
10507
10535
|
}
|
|
10508
10536
|
_consumeBlockStart(a) {
|
|
10509
10537
|
this._beginToken(25, a);
|
|
@@ -10538,7 +10566,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10538
10566
|
}
|
|
10539
10567
|
}
|
|
10540
10568
|
_consumeLetDeclaration(a) {
|
|
10541
|
-
if (this._beginToken(30, a),
|
|
10569
|
+
if (this._beginToken(30, a), za(this._cursor.peek())) this._attemptCharCodeUntilFn(Me);
|
|
10542
10570
|
else {
|
|
10543
10571
|
let l = this._endToken([this._cursor.getChars(a)]);
|
|
10544
10572
|
l.type = 33;
|
|
@@ -10867,10 +10895,10 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10867
10895
|
}
|
|
10868
10896
|
};
|
|
10869
10897
|
function Me(a) {
|
|
10870
|
-
return !
|
|
10898
|
+
return !za(a) || a === 0;
|
|
10871
10899
|
}
|
|
10872
10900
|
function Yl(a) {
|
|
10873
|
-
return
|
|
10901
|
+
return za(a) || a === 62 || a === 60 || a === 47 || a === 39 || a === 34 || a === 61 || a === 0;
|
|
10874
10902
|
}
|
|
10875
10903
|
function dm(a) {
|
|
10876
10904
|
return (a < 97 || 122 < a) && (a < 65 || 90 < a) && (a < 48 || a > 57);
|
|
@@ -11243,30 +11271,30 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
11243
11271
|
parse(a, s, l, p = !1, f) {
|
|
11244
11272
|
return super.parse(a, s, l, p, f);
|
|
11245
11273
|
}
|
|
11246
|
-
},
|
|
11274
|
+
}, _s = null, Cm = () => (_s || (_s = new wm()), _s);
|
|
11247
11275
|
function tu(a, s = {}) {
|
|
11248
11276
|
let { canSelfClose: l = !1, allowHtmComponentClosingTags: p = !1, isTagNameCaseSensitive: f = !1, getTagContentType: D, tokenizeAngularBlocks: E = !1, tokenizeAngularLetDeclaration: B = !1 } = s;
|
|
11249
11277
|
return Cm().parse(a, "angular-html-parser", { tokenizeExpansionForms: E, interpolationConfig: void 0, canSelfClose: l, allowHtmComponentClosingTags: p, tokenizeBlocks: E, tokenizeLet: B }, f, D);
|
|
11250
11278
|
}
|
|
11251
|
-
function
|
|
11279
|
+
function _m(a, s) {
|
|
11252
11280
|
let l = new SyntaxError(a + " (" + s.loc.start.line + ":" + s.loc.start.column + ")");
|
|
11253
11281
|
return Object.assign(l, s);
|
|
11254
11282
|
}
|
|
11255
|
-
var
|
|
11283
|
+
var xm = _m, zr = 3;
|
|
11256
11284
|
function Sm(a) {
|
|
11257
|
-
let s = a.slice(0,
|
|
11285
|
+
let s = a.slice(0, zr);
|
|
11258
11286
|
if (s !== "---" && s !== "+++") return;
|
|
11259
11287
|
let l = a.indexOf(`
|
|
11260
|
-
`,
|
|
11288
|
+
`, zr);
|
|
11261
11289
|
if (l === -1) return;
|
|
11262
|
-
let p = a.slice(
|
|
11290
|
+
let p = a.slice(zr, l).trim(), f = a.indexOf(`
|
|
11263
11291
|
${s}`, l), D = p;
|
|
11264
11292
|
if (D || (D = s === "+++" ? "toml" : "yaml"), f === -1 && s === "---" && D === "yaml" && (f = a.indexOf(`
|
|
11265
11293
|
...`, l)), f === -1) return;
|
|
11266
|
-
let E = f + 1 +
|
|
11294
|
+
let E = f + 1 + zr, B = a.charAt(E + 1);
|
|
11267
11295
|
if (!/\s?/u.test(B)) return;
|
|
11268
11296
|
let R = a.slice(0, E);
|
|
11269
|
-
return { type: "front-matter", language: D, explicitLanguage: p, value: a.slice(l + 1, f), startDelimiter: s, endDelimiter: R.slice(-
|
|
11297
|
+
return { type: "front-matter", language: D, explicitLanguage: p, value: a.slice(l + 1, f), startDelimiter: s, endDelimiter: R.slice(-zr), raw: R };
|
|
11270
11298
|
}
|
|
11271
11299
|
function Em(a) {
|
|
11272
11300
|
let s = Sm(a);
|
|
@@ -11377,7 +11405,7 @@ ${s}`, l), D = p;
|
|
|
11377
11405
|
function Lm(a) {
|
|
11378
11406
|
return { type: "ieConditionalEndComment", sourceSpan: a.sourceSpan };
|
|
11379
11407
|
}
|
|
11380
|
-
var
|
|
11408
|
+
var xs = /* @__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"])]]), Pm = /* @__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"]);
|
|
11381
11409
|
function Om(a) {
|
|
11382
11410
|
if (a.type === "block") {
|
|
11383
11411
|
if (a.name = C(!1, a.name.toLowerCase(), /\s+/gu, " ").trim(), a.type = "angularControlFlowBlock", !us(a.parameters)) {
|
|
@@ -11395,57 +11423,57 @@ ${s}`, l), D = p;
|
|
|
11395
11423
|
(a.type === "plural" || a.type === "select") && (a.clause = a.type, a.type = "angularIcuExpression"), a.type === "expansionCase" && (a.type = "angularIcuCase");
|
|
11396
11424
|
}
|
|
11397
11425
|
function ru(a, s, l) {
|
|
11398
|
-
let { name: p, canSelfClose: f = !0, normalizeTagName: D = !1, normalizeAttributeName: E = !1, allowHtmComponentClosingTags: B = !1, isTagNameCaseSensitive: R = !1, shouldParseAsRawText: G } = s, { rootNodes: U, errors: De } = tu(a, { canSelfClose: f, allowHtmComponentClosingTags: B, isTagNameCaseSensitive: R, getTagContentType: G ? (...
|
|
11426
|
+
let { name: p, canSelfClose: f = !0, normalizeTagName: D = !1, normalizeAttributeName: E = !1, allowHtmComponentClosingTags: B = !1, isTagNameCaseSensitive: R = !1, shouldParseAsRawText: G } = s, { rootNodes: U, errors: De } = tu(a, { canSelfClose: f, allowHtmComponentClosingTags: B, isTagNameCaseSensitive: R, getTagContentType: G ? (...V) => G(...V) ? Nt.RAW_TEXT : void 0 : void 0, tokenizeAngularBlocks: p === "angular" ? !0 : void 0, tokenizeAngularLetDeclaration: p === "angular" ? !0 : void 0 });
|
|
11399
11427
|
if (p === "vue") {
|
|
11400
11428
|
if (U.some((Re) => Re.type === "docType" && Re.value === "html" || Re.type === "element" && Re.name.toLowerCase() === "html")) return ru(a, su, l);
|
|
11401
|
-
let
|
|
11429
|
+
let V, ue = () => V ?? (V = tu(a, { canSelfClose: f, allowHtmComponentClosingTags: B, isTagNameCaseSensitive: R })), We = (Re) => ue().rootNodes.find(({ startSourceSpan: lt }) => lt && lt.start.offset === Re.startSourceSpan.start.offset) ?? Re;
|
|
11402
11430
|
for (let [Re, lt] of U.entries()) {
|
|
11403
|
-
let { endSourceSpan: sr, startSourceSpan:
|
|
11431
|
+
let { endSourceSpan: sr, startSourceSpan: zm } = lt;
|
|
11404
11432
|
if (sr === null) De = ue().errors, U[Re] = We(lt);
|
|
11405
11433
|
else if (Rm(lt, l)) {
|
|
11406
|
-
let ou = ue().errors.find((lu) => lu.span.start.offset >
|
|
11434
|
+
let ou = ue().errors.find((lu) => lu.span.start.offset > zm.start.offset && lu.span.start.offset < sr.end.offset);
|
|
11407
11435
|
ou && au(ou), U[Re] = We(lt);
|
|
11408
11436
|
}
|
|
11409
11437
|
}
|
|
11410
11438
|
}
|
|
11411
11439
|
De.length > 0 && au(De[0]);
|
|
11412
|
-
let fe = (
|
|
11413
|
-
let ue =
|
|
11414
|
-
|
|
11415
|
-
}, le = (
|
|
11416
|
-
switch (
|
|
11440
|
+
let fe = (V) => {
|
|
11441
|
+
let ue = V.name.startsWith(":") ? V.name.slice(1).split(":")[0] : null, We = V.nameSpan.toString(), Re = ue !== null && We.startsWith(`${ue}:`), lt = Re ? We.slice(ue.length + 1) : We;
|
|
11442
|
+
V.name = lt, V.namespace = ue, V.hasExplicitNamespace = Re;
|
|
11443
|
+
}, le = (V) => {
|
|
11444
|
+
switch (V.type) {
|
|
11417
11445
|
case "element":
|
|
11418
|
-
fe(
|
|
11419
|
-
for (let ue of
|
|
11446
|
+
fe(V);
|
|
11447
|
+
for (let ue of V.attrs) fe(ue), ue.valueSpan ? (ue.value = ue.valueSpan.toString(), /["']/u.test(ue.value[0]) && (ue.value = ue.value.slice(1, -1))) : ue.value = null;
|
|
11420
11448
|
break;
|
|
11421
11449
|
case "comment":
|
|
11422
|
-
|
|
11450
|
+
V.value = V.sourceSpan.toString().slice(4, -3);
|
|
11423
11451
|
break;
|
|
11424
11452
|
case "text":
|
|
11425
|
-
|
|
11453
|
+
V.value = V.sourceSpan.toString();
|
|
11426
11454
|
break;
|
|
11427
11455
|
}
|
|
11428
|
-
}, Fe = (
|
|
11429
|
-
let We =
|
|
11430
|
-
return ue(We) ? We :
|
|
11431
|
-
}, Ue = (
|
|
11432
|
-
if (
|
|
11433
|
-
}, Qe = (
|
|
11434
|
-
|
|
11435
|
-
}, it = (
|
|
11436
|
-
if (
|
|
11437
|
-
let ue = bs(R ?
|
|
11438
|
-
!
|
|
11456
|
+
}, Fe = (V, ue) => {
|
|
11457
|
+
let We = V.toLowerCase();
|
|
11458
|
+
return ue(We) ? We : V;
|
|
11459
|
+
}, Ue = (V) => {
|
|
11460
|
+
if (V.type === "element" && (D && (!V.namespace || V.namespace === V.tagDefinition.implicitNamespacePrefix || me(V)) && (V.name = Fe(V.name, (ue) => Pm.has(ue))), E)) for (let ue of V.attrs) ue.namespace || (ue.name = Fe(ue.name, (We) => xs.has(V.name) && (xs.get("*").has(We) || xs.get(V.name).has(We))));
|
|
11461
|
+
}, Qe = (V) => {
|
|
11462
|
+
V.sourceSpan && V.endSourceSpan && (V.sourceSpan = new ae(V.sourceSpan.start, V.endSourceSpan.end));
|
|
11463
|
+
}, it = (V) => {
|
|
11464
|
+
if (V.type === "element") {
|
|
11465
|
+
let ue = bs(R ? V.name : V.name.toLowerCase());
|
|
11466
|
+
!V.namespace || V.namespace === ue.implicitNamespacePrefix || me(V) ? V.tagDefinition = ue : V.tagDefinition = bs("");
|
|
11439
11467
|
}
|
|
11440
11468
|
};
|
|
11441
|
-
return
|
|
11442
|
-
visitExpansionCase(
|
|
11469
|
+
return Vl(new class extends nm {
|
|
11470
|
+
visitExpansionCase(V, ue) {
|
|
11443
11471
|
p === "angular" && this.visitChildren(ue, (We) => {
|
|
11444
|
-
We(
|
|
11472
|
+
We(V.expression);
|
|
11445
11473
|
});
|
|
11446
11474
|
}
|
|
11447
|
-
visit(
|
|
11448
|
-
le(
|
|
11475
|
+
visit(V) {
|
|
11476
|
+
le(V), it(V), Ue(V), Qe(V);
|
|
11449
11477
|
}
|
|
11450
11478
|
}(), U), U;
|
|
11451
11479
|
}
|
|
@@ -11457,7 +11485,7 @@ ${s}`, l), D = p;
|
|
|
11457
11485
|
}
|
|
11458
11486
|
function au(a) {
|
|
11459
11487
|
let { msg: s, span: { start: l, end: p } } = a;
|
|
11460
|
-
throw
|
|
11488
|
+
throw xm(s, { loc: { start: { line: l.line + 1, column: l.col + 1 }, end: { line: p.line + 1, column: p.col + 1 } }, cause: a });
|
|
11461
11489
|
}
|
|
11462
11490
|
function iu(a, s, l = {}, p = !0) {
|
|
11463
11491
|
let { frontMatter: f, content: D } = p ? Fm(a) : { frontMatter: null, content: a }, E = new El(a, l.filepath), B = new Ds(E, 0, 0, 0), R = B.moveBy(a.length), G = { type: "root", sourceSpan: new ae(B, R), children: ru(D, s, l) };
|
|
@@ -11484,7 +11512,7 @@ ${s}`, l), D = p;
|
|
|
11484
11512
|
}
|
|
11485
11513
|
var su = { name: "html", normalizeTagName: !0, normalizeAttributeName: !0, allowHtmComponentClosingTags: !0 }, qm = ri(su), Hm = ri({ name: "angular" }), Um = ri({ name: "vue", isTagNameCaseSensitive: !0, shouldParseAsRawText(a, s, l, p) {
|
|
11486
11514
|
return a.toLowerCase() !== "html" && !l && (a !== "template" || p.some(({ name: f, value: D }) => f === "lang" && D !== "html" && D !== "" && D !== void 0));
|
|
11487
|
-
} }), Wm = ri({ name: "lwc", canSelfClose: !1 }),
|
|
11515
|
+
} }), Wm = ri({ name: "lwc", canSelfClose: !1 }), Vm = { html: Pf };
|
|
11488
11516
|
return h(k);
|
|
11489
11517
|
});
|
|
11490
11518
|
})(pd);
|
|
@@ -11623,7 +11651,7 @@ function Ck(e) {
|
|
|
11623
11651
|
function wc(e) {
|
|
11624
11652
|
return e.join(" ");
|
|
11625
11653
|
}
|
|
11626
|
-
function
|
|
11654
|
+
function _k(e, t) {
|
|
11627
11655
|
var n = 0;
|
|
11628
11656
|
return function(r) {
|
|
11629
11657
|
return n += 1, r.map(function(i, o) {
|
|
@@ -11641,7 +11669,7 @@ function yd(e) {
|
|
|
11641
11669
|
if (d === "text")
|
|
11642
11670
|
return m;
|
|
11643
11671
|
if (h) {
|
|
11644
|
-
var v =
|
|
11672
|
+
var v = _k(n, o), y;
|
|
11645
11673
|
if (!o)
|
|
11646
11674
|
y = yr(yr({}, c), {}, {
|
|
11647
11675
|
className: wc(c.className)
|
|
@@ -11651,11 +11679,11 @@ function yd(e) {
|
|
|
11651
11679
|
return F.split(".").forEach(function(S) {
|
|
11652
11680
|
T.includes(S) || T.push(S);
|
|
11653
11681
|
}), T;
|
|
11654
|
-
}, []), k = c.className && c.className.includes("token") ? ["token"] : [],
|
|
11682
|
+
}, []), k = c.className && c.className.includes("token") ? ["token"] : [], x = c.className && k.concat(c.className.filter(function(T) {
|
|
11655
11683
|
return !b.includes(T);
|
|
11656
11684
|
}));
|
|
11657
11685
|
y = yr(yr({}, c), {}, {
|
|
11658
|
-
className: wc(
|
|
11686
|
+
className: wc(x) || void 0,
|
|
11659
11687
|
style: Ck(c.className, Object.assign({}, c.style, i), n)
|
|
11660
11688
|
});
|
|
11661
11689
|
}
|
|
@@ -11665,7 +11693,7 @@ function yd(e) {
|
|
|
11665
11693
|
}, y), C);
|
|
11666
11694
|
}
|
|
11667
11695
|
}
|
|
11668
|
-
const
|
|
11696
|
+
const xk = function(e, t) {
|
|
11669
11697
|
var n = e.listLanguages();
|
|
11670
11698
|
return n.indexOf(t) !== -1;
|
|
11671
11699
|
};
|
|
@@ -11752,8 +11780,8 @@ function bd(e, t, n) {
|
|
|
11752
11780
|
function vi(e) {
|
|
11753
11781
|
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, m = e.showLineNumbers, v = e.wrapLongLines, y = e.wrapLines, b = y === void 0 ? !1 : y, k = b ? gn({}, typeof c == "function" ? c(n) : c) : {};
|
|
11754
11782
|
if (k.className = k.className ? [].concat(ho(k.className.trim().split(/\s+/)), ho(h)) : h, n && o) {
|
|
11755
|
-
var
|
|
11756
|
-
t.unshift(Dd(n,
|
|
11783
|
+
var x = bd(r, n, i);
|
|
11784
|
+
t.unshift(Dd(n, x));
|
|
11757
11785
|
}
|
|
11758
11786
|
return v & m && (k.style = gn({
|
|
11759
11787
|
display: "flex"
|
|
@@ -11783,10 +11811,10 @@ function kd(e) {
|
|
|
11783
11811
|
}
|
|
11784
11812
|
function Bk(e, t, n, r, i, o, u, c, d) {
|
|
11785
11813
|
var h, m = kd(e.value), v = [], y = -1, b = 0;
|
|
11786
|
-
function k(
|
|
11814
|
+
function k(_, $) {
|
|
11787
11815
|
var L = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
11788
11816
|
return vi({
|
|
11789
|
-
children:
|
|
11817
|
+
children: _,
|
|
11790
11818
|
lineNumber: $,
|
|
11791
11819
|
lineNumberStyle: c,
|
|
11792
11820
|
largestLineNumber: u,
|
|
@@ -11798,16 +11826,16 @@ function Bk(e, t, n, r, i, o, u, c, d) {
|
|
|
11798
11826
|
wrapLines: t
|
|
11799
11827
|
});
|
|
11800
11828
|
}
|
|
11801
|
-
function _
|
|
11829
|
+
function x(_, $) {
|
|
11802
11830
|
if (r && $ && i) {
|
|
11803
11831
|
var L = bd(c, $, u);
|
|
11804
|
-
|
|
11832
|
+
_.unshift(Dd($, L));
|
|
11805
11833
|
}
|
|
11806
|
-
return
|
|
11834
|
+
return _;
|
|
11807
11835
|
}
|
|
11808
|
-
function C(
|
|
11836
|
+
function C(_, $) {
|
|
11809
11837
|
var L = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
11810
|
-
return t || L.length > 0 ? k(
|
|
11838
|
+
return t || L.length > 0 ? k(_, $, L) : x(_, $);
|
|
11811
11839
|
}
|
|
11812
11840
|
for (var T = function() {
|
|
11813
11841
|
var $ = m[b], L = $.children[0].value, I = Fk(L);
|
|
@@ -11815,7 +11843,7 @@ function Bk(e, t, n, r, i, o, u, c, d) {
|
|
|
11815
11843
|
var j = L.split(`
|
|
11816
11844
|
`);
|
|
11817
11845
|
j.forEach(function(W, K) {
|
|
11818
|
-
var
|
|
11846
|
+
var z = r && v.length + o, P = {
|
|
11819
11847
|
type: "text",
|
|
11820
11848
|
value: "".concat(W, `
|
|
11821
11849
|
`)
|
|
@@ -11824,7 +11852,7 @@ function Bk(e, t, n, r, i, o, u, c, d) {
|
|
|
11824
11852
|
var N = m.slice(y + 1, b).concat(vi({
|
|
11825
11853
|
children: [P],
|
|
11826
11854
|
className: $.properties.className
|
|
11827
|
-
})), q = C(N,
|
|
11855
|
+
})), q = C(N, z);
|
|
11828
11856
|
v.push(q);
|
|
11829
11857
|
} else if (K === j.length - 1) {
|
|
11830
11858
|
var X = m[b + 1] && m[b + 1].children && m[b + 1].children[0], de = {
|
|
@@ -11838,11 +11866,11 @@ function Bk(e, t, n, r, i, o, u, c, d) {
|
|
|
11838
11866
|
});
|
|
11839
11867
|
m.splice(b + 1, 0, Q);
|
|
11840
11868
|
} else {
|
|
11841
|
-
var ie = [de], he = C(ie,
|
|
11869
|
+
var ie = [de], he = C(ie, z, $.properties.className);
|
|
11842
11870
|
v.push(he);
|
|
11843
11871
|
}
|
|
11844
11872
|
} else {
|
|
11845
|
-
var ne = [P], ge = C(ne,
|
|
11873
|
+
var ne = [P], ge = C(ne, z, $.properties.className);
|
|
11846
11874
|
v.push(ge);
|
|
11847
11875
|
}
|
|
11848
11876
|
}), y = b;
|
|
@@ -11876,7 +11904,7 @@ function wd(e) {
|
|
|
11876
11904
|
function jk(e) {
|
|
11877
11905
|
var t = e.astGenerator, n = e.language, r = e.code, i = e.defaultCodeValue;
|
|
11878
11906
|
if (wd(t)) {
|
|
11879
|
-
var o =
|
|
11907
|
+
var o = xk(t, n);
|
|
11880
11908
|
return n === "text" ? {
|
|
11881
11909
|
value: i,
|
|
11882
11910
|
language: "text"
|
|
@@ -11899,9 +11927,9 @@ function Lk(e, t) {
|
|
|
11899
11927
|
var i = r.language, o = r.children, u = r.style, c = u === void 0 ? t : u, d = r.customStyle, h = d === void 0 ? {} : d, m = r.codeTagProps, v = m === void 0 ? {
|
|
11900
11928
|
className: i ? "language-".concat(i) : void 0,
|
|
11901
11929
|
style: gn(gn({}, c['code[class*="language-"]']), c['code[class*="language-'.concat(i, '"]')])
|
|
11902
|
-
} : m, y = r.useInlineStyles, b = y === void 0 ? !0 : y, k = r.showLineNumbers,
|
|
11930
|
+
} : m, y = r.useInlineStyles, b = y === void 0 ? !0 : y, k = r.showLineNumbers, x = k === void 0 ? !1 : k, C = r.showInlineLineNumbers, T = C === void 0 ? !0 : C, F = r.startingLineNumber, S = F === void 0 ? 1 : F, A = r.lineNumberContainerStyle, _ = r.lineNumberStyle, $ = _ === void 0 ? {} : _, L = r.wrapLines, I = r.wrapLongLines, j = I === void 0 ? !1 : I, W = r.lineProps, K = W === void 0 ? {} : W, z = r.renderer, P = r.PreTag, N = P === void 0 ? "pre" : P, q = r.CodeTag, X = q === void 0 ? "code" : q, de = r.code, Q = de === void 0 ? (Array.isArray(o) ? o[0] : o) || "" : de, ie = r.astGenerator, he = fk(r, Sk);
|
|
11903
11931
|
ie = ie || e;
|
|
11904
|
-
var ne =
|
|
11932
|
+
var ne = x ? /* @__PURE__ */ ye.createElement($k, {
|
|
11905
11933
|
containerStyle: A,
|
|
11906
11934
|
codeStyle: v.style || {},
|
|
11907
11935
|
numberStyle: $,
|
|
@@ -11921,7 +11949,7 @@ function Lk(e, t) {
|
|
|
11921
11949
|
whiteSpace: "pre"
|
|
11922
11950
|
}, v.style), !ie)
|
|
11923
11951
|
return /* @__PURE__ */ ye.createElement(N, Be, ne, /* @__PURE__ */ ye.createElement(X, v, Q));
|
|
11924
|
-
(L === void 0 &&
|
|
11952
|
+
(L === void 0 && z || j) && (L = !0), z = z || Nk;
|
|
11925
11953
|
var Ee = [{
|
|
11926
11954
|
type: "text",
|
|
11927
11955
|
value: Q
|
|
@@ -11935,9 +11963,9 @@ function Lk(e, t) {
|
|
|
11935
11963
|
var se = Ne.value.length;
|
|
11936
11964
|
se === 1 && Ne.value[0].type === "text" && (se = Ne.value[0].value.split(`
|
|
11937
11965
|
`).length);
|
|
11938
|
-
var pt = se + S,
|
|
11939
|
-
return /* @__PURE__ */ ye.createElement(N, Be, /* @__PURE__ */ ye.createElement(X, v, !T && ne,
|
|
11940
|
-
rows:
|
|
11966
|
+
var pt = se + S, xt = Bk(Ne, L, K, x, T, S, pt, $, j);
|
|
11967
|
+
return /* @__PURE__ */ ye.createElement(N, Be, /* @__PURE__ */ ye.createElement(X, v, !T && ne, z({
|
|
11968
|
+
rows: xt,
|
|
11941
11969
|
stylesheet: c,
|
|
11942
11970
|
useInlineStyles: b
|
|
11943
11971
|
})));
|
|
@@ -11952,20 +11980,20 @@ function Ik() {
|
|
|
11952
11980
|
}
|
|
11953
11981
|
return e;
|
|
11954
11982
|
}
|
|
11955
|
-
var Cd =
|
|
11983
|
+
var Cd = _d, Ro = _d.prototype;
|
|
11956
11984
|
Ro.space = null;
|
|
11957
11985
|
Ro.normal = {};
|
|
11958
11986
|
Ro.property = {};
|
|
11959
|
-
function
|
|
11987
|
+
function _d(e, t, n) {
|
|
11960
11988
|
this.property = e, this.normal = t, n && (this.space = n);
|
|
11961
11989
|
}
|
|
11962
|
-
var
|
|
11990
|
+
var _c = Pk, Mk = Cd, Rk = qk;
|
|
11963
11991
|
function qk(e) {
|
|
11964
11992
|
for (var t = e.length, n = [], r = [], i = -1, o, u; ++i < t; )
|
|
11965
11993
|
o = e[i], n.push(o.property), r.push(o.normal), u = o.space;
|
|
11966
11994
|
return new Mk(
|
|
11967
|
-
|
|
11968
|
-
|
|
11995
|
+
_c.apply(null, n),
|
|
11996
|
+
_c.apply(null, r),
|
|
11969
11997
|
u
|
|
11970
11998
|
);
|
|
11971
11999
|
}
|
|
@@ -11973,7 +12001,7 @@ var qo = Hk;
|
|
|
11973
12001
|
function Hk(e) {
|
|
11974
12002
|
return e.toLowerCase();
|
|
11975
12003
|
}
|
|
11976
|
-
var
|
|
12004
|
+
var xd = Sd, Tt = Sd.prototype;
|
|
11977
12005
|
Tt.space = null;
|
|
11978
12006
|
Tt.attribute = null;
|
|
11979
12007
|
Tt.property = null;
|
|
@@ -11989,18 +12017,18 @@ Tt.defined = !1;
|
|
|
11989
12017
|
function Sd(e, t) {
|
|
11990
12018
|
this.property = e, this.attribute = t;
|
|
11991
12019
|
}
|
|
11992
|
-
var
|
|
11993
|
-
|
|
11994
|
-
|
|
11995
|
-
|
|
11996
|
-
|
|
11997
|
-
|
|
11998
|
-
|
|
11999
|
-
|
|
12020
|
+
var zt = {}, Uk = 0;
|
|
12021
|
+
zt.boolean = Qn();
|
|
12022
|
+
zt.booleanish = Qn();
|
|
12023
|
+
zt.overloadedBoolean = Qn();
|
|
12024
|
+
zt.number = Qn();
|
|
12025
|
+
zt.spaceSeparated = Qn();
|
|
12026
|
+
zt.commaSeparated = Qn();
|
|
12027
|
+
zt.commaOrSpaceSeparated = Qn();
|
|
12000
12028
|
function Qn() {
|
|
12001
12029
|
return Math.pow(2, ++Uk);
|
|
12002
12030
|
}
|
|
12003
|
-
var Ed =
|
|
12031
|
+
var Ed = xd, xc = zt, Fd = Ho;
|
|
12004
12032
|
Ho.prototype = new Ed();
|
|
12005
12033
|
Ho.prototype.defined = !0;
|
|
12006
12034
|
var Ad = [
|
|
@@ -12015,22 +12043,22 @@ var Ad = [
|
|
|
12015
12043
|
function Ho(e, t, n, r) {
|
|
12016
12044
|
var i = -1, o;
|
|
12017
12045
|
for (Sc(this, "space", r), Ed.call(this, e, t); ++i < Wk; )
|
|
12018
|
-
o = Ad[i], Sc(this, o, (n &
|
|
12046
|
+
o = Ad[i], Sc(this, o, (n & xc[o]) === xc[o]);
|
|
12019
12047
|
}
|
|
12020
12048
|
function Sc(e, t, n) {
|
|
12021
12049
|
n && (e[t] = n);
|
|
12022
12050
|
}
|
|
12023
|
-
var Ec = qo,
|
|
12051
|
+
var Ec = qo, Vk = Cd, zk = Fd, Ea = Gk;
|
|
12024
12052
|
function Gk(e) {
|
|
12025
12053
|
var t = e.space, n = e.mustUseProperty || [], r = e.attributes || {}, i = e.properties, o = e.transform, u = {}, c = {}, d, h;
|
|
12026
12054
|
for (d in i)
|
|
12027
|
-
h = new
|
|
12055
|
+
h = new zk(
|
|
12028
12056
|
d,
|
|
12029
12057
|
o(r, d),
|
|
12030
12058
|
i[d],
|
|
12031
12059
|
t
|
|
12032
12060
|
), n.indexOf(d) !== -1 && (h.mustUseProperty = !0), u[d] = h, c[Ec(d)] = d, c[Ec(h.attribute)] = d;
|
|
12033
|
-
return new
|
|
12061
|
+
return new Vk(u, c, t);
|
|
12034
12062
|
}
|
|
12035
12063
|
var Yk = Ea, Kk = Yk({
|
|
12036
12064
|
space: "xlink",
|
|
@@ -12078,7 +12106,7 @@ var a1 = Ea, i1 = $d, s1 = a1({
|
|
|
12078
12106
|
xmlns: null,
|
|
12079
12107
|
xmlnsXLink: null
|
|
12080
12108
|
}
|
|
12081
|
-
}), Uo =
|
|
12109
|
+
}), Uo = zt, o1 = Ea, ft = Uo.booleanish, Ft = Uo.number, jn = Uo.spaceSeparated, l1 = o1({
|
|
12082
12110
|
transform: u1,
|
|
12083
12111
|
properties: {
|
|
12084
12112
|
ariaActiveDescendant: null,
|
|
@@ -12135,7 +12163,7 @@ var a1 = Ea, i1 = $d, s1 = a1({
|
|
|
12135
12163
|
function u1(e, t) {
|
|
12136
12164
|
return t === "role" ? t : "aria-" + t.slice(4).toLowerCase();
|
|
12137
12165
|
}
|
|
12138
|
-
var Fr =
|
|
12166
|
+
var Fr = zt, c1 = Ea, p1 = $d, oe = Fr.boolean, d1 = Fr.overloadedBoolean, ta = Fr.booleanish, $e = Fr.number, ut = Fr.spaceSeparated, li = Fr.commaSeparated, h1 = c1({
|
|
12139
12167
|
space: "html",
|
|
12140
12168
|
attributes: {
|
|
12141
12169
|
acceptcharset: "accept-charset",
|
|
@@ -12481,10 +12509,10 @@ var Fr = Vt, c1 = Ea, p1 = $d, oe = Fr.boolean, d1 = Fr.overloadedBoolean, ta =
|
|
|
12481
12509
|
security: null,
|
|
12482
12510
|
unselectable: null
|
|
12483
12511
|
}
|
|
12484
|
-
}), f1 = Rk, m1 = Kk, g1 = Qk, v1 = s1, y1 = l1, D1 = h1, b1 = f1([g1, m1, v1, y1, D1]), k1 = qo, w1 = Fd, C1 =
|
|
12512
|
+
}), f1 = Rk, m1 = Kk, g1 = Qk, v1 = s1, y1 = l1, D1 = h1, b1 = f1([g1, m1, v1, y1, D1]), k1 = qo, w1 = Fd, C1 = xd, Wo = "data", _1 = E1, x1 = /^data[-\w.:]+$/i, Td = /-[a-z]/g, S1 = /[A-Z]/g;
|
|
12485
12513
|
function E1(e, t) {
|
|
12486
12514
|
var n = k1(t), r = t, i = C1;
|
|
12487
|
-
return n in e.normal ? e.property[e.normal[n]] : (n.length > 4 && n.slice(0, 4) === Wo &&
|
|
12515
|
+
return n in e.normal ? e.property[e.normal[n]] : (n.length > 4 && n.slice(0, 4) === Wo && x1.test(t) && (t.charAt(4) === "-" ? r = F1(t) : t = A1(t), i = w1), new i(r, t));
|
|
12488
12516
|
}
|
|
12489
12517
|
function F1(e) {
|
|
12490
12518
|
var t = e.slice(5).replace(Td, T1);
|
|
@@ -12506,9 +12534,9 @@ function N1(e, t) {
|
|
|
12506
12534
|
Fc.lastIndex = o, d = Fc.exec(n), u = n.slice(o, d ? d.index : n.length), u && (c ? c === "#" ? i.id = u : i.className ? i.className.push(u) : i.className = [u] : r = u, o += u.length), d && (c = d[0], o++);
|
|
12507
12535
|
return { type: "element", tagName: r, properties: i, children: [] };
|
|
12508
12536
|
}
|
|
12509
|
-
var
|
|
12510
|
-
|
|
12511
|
-
|
|
12537
|
+
var Vo = {};
|
|
12538
|
+
Vo.parse = P1;
|
|
12539
|
+
Vo.stringify = O1;
|
|
12512
12540
|
var Ac = "", j1 = " ", L1 = /[ \t\n\r\f]+/g;
|
|
12513
12541
|
function P1(e) {
|
|
12514
12542
|
var t = String(e || Ac).trim();
|
|
@@ -12517,9 +12545,9 @@ function P1(e) {
|
|
|
12517
12545
|
function O1(e) {
|
|
12518
12546
|
return e.join(j1).trim();
|
|
12519
12547
|
}
|
|
12520
|
-
var
|
|
12521
|
-
|
|
12522
|
-
|
|
12548
|
+
var zo = {};
|
|
12549
|
+
zo.parse = I1;
|
|
12550
|
+
zo.stringify = M1;
|
|
12523
12551
|
var mo = ",", $c = " ", ra = "";
|
|
12524
12552
|
function I1(e) {
|
|
12525
12553
|
for (var t = [], n = String(e || ra), r = n.indexOf(mo), i = 0, o = !1, u; !o; )
|
|
@@ -12530,13 +12558,13 @@ function M1(e, t) {
|
|
|
12530
12558
|
var n = t || {}, r = n.padLeft === !1 ? ra : $c, i = n.padRight ? $c : ra;
|
|
12531
12559
|
return e[e.length - 1] === ra && (e = e.concat(ra)), e.join(i + mo + r).trim();
|
|
12532
12560
|
}
|
|
12533
|
-
var R1 =
|
|
12561
|
+
var R1 = _1, Tc = qo, q1 = B1, Bc = Vo.parse, Nc = zo.parse, H1 = W1, U1 = {}.hasOwnProperty;
|
|
12534
12562
|
function W1(e, t, n) {
|
|
12535
12563
|
var r = n ? K1(n) : null;
|
|
12536
12564
|
return i;
|
|
12537
12565
|
function i(u, c) {
|
|
12538
12566
|
var d = q1(u, t), h = Array.prototype.slice.call(arguments, 2), m = d.tagName.toLowerCase(), v;
|
|
12539
|
-
if (d.tagName = r && U1.call(r, m) ? r[m] : m, c &&
|
|
12567
|
+
if (d.tagName = r && U1.call(r, m) ? r[m] : m, c && V1(c, d) && (h.unshift(c), c = null), c)
|
|
12540
12568
|
for (v in c)
|
|
12541
12569
|
o(d.properties, v, c[v]);
|
|
12542
12570
|
return Bd(d.children, h), d.tagName === "template" && (d.content = { type: "root", children: d.children }, d.children = []), d;
|
|
@@ -12546,10 +12574,10 @@ function W1(e, t, n) {
|
|
|
12546
12574
|
d == null || d !== d || (h = R1(e, c), m = h.property, v = d, typeof v == "string" && (h.spaceSeparated ? v = Bc(v) : h.commaSeparated ? v = Nc(v) : h.commaOrSpaceSeparated && (v = Bc(Nc(v).join(" ")))), m === "style" && typeof d != "string" && (v = Y1(v)), m === "className" && u.className && (v = u.className.concat(v)), u[m] = G1(h, m, v));
|
|
12547
12575
|
}
|
|
12548
12576
|
}
|
|
12549
|
-
function z1(e, t) {
|
|
12550
|
-
return typeof e == "string" || "length" in e || V1(t.tagName, e);
|
|
12551
|
-
}
|
|
12552
12577
|
function V1(e, t) {
|
|
12578
|
+
return typeof e == "string" || "length" in e || z1(t.tagName, e);
|
|
12579
|
+
}
|
|
12580
|
+
function z1(e, t) {
|
|
12553
12581
|
var n = t.type;
|
|
12554
12582
|
return e === "input" || !n || typeof n != "string" ? !1 : typeof t.children == "object" && "length" in t.children ? !0 : (n = n.toLowerCase(), e === "button" ? n !== "menu" && n !== "submit" && n !== "reset" && n !== "button" : "value" in t);
|
|
12555
12583
|
}
|
|
@@ -12594,7 +12622,7 @@ function K1(e) {
|
|
|
12594
12622
|
var J1 = b1, X1 = H1, Nd = X1(J1, "div");
|
|
12595
12623
|
Nd.displayName = "html";
|
|
12596
12624
|
var Q1 = Nd, Z1 = Q1;
|
|
12597
|
-
const ew = "Æ", tw = "&", nw = "Á", rw = "Â", aw = "À", iw = "Å", sw = "Ã", ow = "Ä", lw = "©", uw = "Ç", cw = "Ð", pw = "É", dw = "Ê", hw = "È", fw = "Ë", mw = ">", gw = "Í", vw = "Î", yw = "Ì", Dw = "Ï", bw = "<", kw = "Ñ", ww = "Ó", Cw = "Ô",
|
|
12625
|
+
const ew = "Æ", tw = "&", nw = "Á", rw = "Â", aw = "À", iw = "Å", sw = "Ã", ow = "Ä", lw = "©", uw = "Ç", cw = "Ð", pw = "É", dw = "Ê", hw = "È", fw = "Ë", mw = ">", gw = "Í", vw = "Î", yw = "Ì", Dw = "Ï", bw = "<", kw = "Ñ", ww = "Ó", Cw = "Ô", _w = "Ò", xw = "Ø", Sw = "Õ", Ew = "Ö", Fw = '"', Aw = "®", $w = "Þ", Tw = "Ú", Bw = "Û", Nw = "Ù", jw = "Ü", Lw = "Ý", Pw = "á", Ow = "â", Iw = "´", Mw = "æ", Rw = "à", qw = "&", Hw = "å", Uw = "ã", Ww = "ä", Vw = "¦", zw = "ç", Gw = "¸", Yw = "¢", Kw = "©", Jw = "¤", Xw = "°", Qw = "÷", Zw = "é", eC = "ê", tC = "è", nC = "ð", rC = "ë", aC = "½", iC = "¼", sC = "¾", oC = ">", lC = "í", uC = "î", cC = "¡", pC = "ì", dC = "¿", hC = "ï", fC = "«", mC = "<", gC = "¯", vC = "µ", yC = "·", DC = " ", bC = "¬", kC = "ñ", wC = "ó", CC = "ô", _C = "ò", xC = "ª", SC = "º", EC = "ø", FC = "õ", AC = "ö", $C = "¶", TC = "±", BC = "£", NC = '"', jC = "»", LC = "®", PC = "§", OC = "", IC = "¹", MC = "²", RC = "³", qC = "ß", HC = "þ", UC = "×", WC = "ú", VC = "û", zC = "ù", GC = "¨", YC = "ü", KC = "ý", JC = "¥", XC = "ÿ", QC = {
|
|
12598
12626
|
AElig: ew,
|
|
12599
12627
|
AMP: tw,
|
|
12600
12628
|
Aacute: nw,
|
|
@@ -12619,8 +12647,8 @@ const ew = "Æ", tw = "&", nw = "Á", rw = "Â", aw = "À", iw = "Å", sw = "Ã"
|
|
|
12619
12647
|
Ntilde: kw,
|
|
12620
12648
|
Oacute: ww,
|
|
12621
12649
|
Ocirc: Cw,
|
|
12622
|
-
Ograve:
|
|
12623
|
-
Oslash:
|
|
12650
|
+
Ograve: _w,
|
|
12651
|
+
Oslash: xw,
|
|
12624
12652
|
Otilde: Sw,
|
|
12625
12653
|
Ouml: Ew,
|
|
12626
12654
|
QUOT: Fw,
|
|
@@ -12640,8 +12668,8 @@ const ew = "Æ", tw = "&", nw = "Á", rw = "Â", aw = "À", iw = "Å", sw = "Ã"
|
|
|
12640
12668
|
aring: Hw,
|
|
12641
12669
|
atilde: Uw,
|
|
12642
12670
|
auml: Ww,
|
|
12643
|
-
brvbar:
|
|
12644
|
-
ccedil:
|
|
12671
|
+
brvbar: Vw,
|
|
12672
|
+
ccedil: zw,
|
|
12645
12673
|
cedil: Gw,
|
|
12646
12674
|
cent: Yw,
|
|
12647
12675
|
copy: Kw,
|
|
@@ -12673,8 +12701,8 @@ const ew = "Æ", tw = "&", nw = "Á", rw = "Â", aw = "À", iw = "Å", sw = "Ã"
|
|
|
12673
12701
|
ntilde: kC,
|
|
12674
12702
|
oacute: wC,
|
|
12675
12703
|
ocirc: CC,
|
|
12676
|
-
ograve:
|
|
12677
|
-
ordf:
|
|
12704
|
+
ograve: _C,
|
|
12705
|
+
ordf: xC,
|
|
12678
12706
|
ordm: SC,
|
|
12679
12707
|
oslash: EC,
|
|
12680
12708
|
otilde: FC,
|
|
@@ -12694,8 +12722,8 @@ const ew = "Æ", tw = "&", nw = "Á", rw = "Â", aw = "À", iw = "Å", sw = "Ã"
|
|
|
12694
12722
|
thorn: HC,
|
|
12695
12723
|
times: UC,
|
|
12696
12724
|
uacute: WC,
|
|
12697
|
-
ucirc:
|
|
12698
|
-
ugrave:
|
|
12725
|
+
ucirc: VC,
|
|
12726
|
+
ugrave: zC,
|
|
12699
12727
|
uml: GC,
|
|
12700
12728
|
uuml: YC,
|
|
12701
12729
|
yacute: KC,
|
|
@@ -12731,31 +12759,31 @@ const ew = "Æ", tw = "&", nw = "Á", rw = "Â", aw = "À", iw = "Å", sw = "Ã"
|
|
|
12731
12759
|
158: "ž",
|
|
12732
12760
|
159: "Ÿ"
|
|
12733
12761
|
};
|
|
12734
|
-
var jd =
|
|
12735
|
-
function
|
|
12762
|
+
var jd = e_;
|
|
12763
|
+
function e_(e) {
|
|
12736
12764
|
var t = typeof e == "string" ? e.charCodeAt(0) : e;
|
|
12737
12765
|
return t >= 48 && t <= 57;
|
|
12738
12766
|
}
|
|
12739
|
-
var
|
|
12740
|
-
function
|
|
12767
|
+
var t_ = n_;
|
|
12768
|
+
function n_(e) {
|
|
12741
12769
|
var t = typeof e == "string" ? e.charCodeAt(0) : e;
|
|
12742
12770
|
return t >= 97 && t <= 102 || t >= 65 && t <= 70 || t >= 48 && t <= 57;
|
|
12743
12771
|
}
|
|
12744
|
-
var
|
|
12745
|
-
function
|
|
12772
|
+
var r_ = a_;
|
|
12773
|
+
function a_(e) {
|
|
12746
12774
|
var t = typeof e == "string" ? e.charCodeAt(0) : e;
|
|
12747
12775
|
return t >= 97 && t <= 122 || t >= 65 && t <= 90;
|
|
12748
12776
|
}
|
|
12749
|
-
var
|
|
12750
|
-
function
|
|
12751
|
-
return
|
|
12777
|
+
var i_ = r_, s_ = jd, o_ = l_;
|
|
12778
|
+
function l_(e) {
|
|
12779
|
+
return i_(e) || s_(e);
|
|
12752
12780
|
}
|
|
12753
|
-
var ui,
|
|
12754
|
-
function
|
|
12781
|
+
var ui, u_ = 59, c_ = p_;
|
|
12782
|
+
function p_(e) {
|
|
12755
12783
|
var t = "&" + e + ";", n;
|
|
12756
|
-
return ui = ui || document.createElement("i"), ui.innerHTML = t, n = ui.textContent, n.charCodeAt(n.length - 1) ===
|
|
12784
|
+
return ui = ui || document.createElement("i"), ui.innerHTML = t, n = ui.textContent, n.charCodeAt(n.length - 1) === u_ && e !== "semi" || n === t ? !1 : n;
|
|
12757
12785
|
}
|
|
12758
|
-
var Lc = QC, Pc = ZC,
|
|
12786
|
+
var Lc = QC, Pc = ZC, d_ = jd, h_ = t_, Ld = o_, f_ = c_, m_ = F_, g_ = {}.hasOwnProperty, cr = String.fromCharCode, v_ = Function.prototype, Oc = {
|
|
12759
12787
|
warning: null,
|
|
12760
12788
|
reference: null,
|
|
12761
12789
|
text: null,
|
|
@@ -12766,66 +12794,66 @@ var Lc = QC, Pc = ZC, dx = jd, hx = tx, Ld = ox, fx = cx, mx = Fx, gx = {}.hasOw
|
|
|
12766
12794
|
additional: null,
|
|
12767
12795
|
attribute: !1,
|
|
12768
12796
|
nonTerminated: !0
|
|
12769
|
-
},
|
|
12797
|
+
}, y_ = 9, Ic = 10, D_ = 12, b_ = 32, Mc = 38, k_ = 59, w_ = 60, C_ = 61, __ = 35, x_ = 88, S_ = 120, E_ = 65533, hr = "named", Go = "hexadecimal", Yo = "decimal", Ko = {};
|
|
12770
12798
|
Ko[Go] = 16;
|
|
12771
12799
|
Ko[Yo] = 10;
|
|
12772
12800
|
var Ui = {};
|
|
12773
12801
|
Ui[hr] = Ld;
|
|
12774
|
-
Ui[Yo] =
|
|
12775
|
-
Ui[Go] =
|
|
12776
|
-
var Pd = 1, Od = 2, Id = 3, Md = 4, Rd = 5, go = 6, qd = 7,
|
|
12777
|
-
|
|
12778
|
-
|
|
12779
|
-
|
|
12780
|
-
|
|
12781
|
-
|
|
12782
|
-
|
|
12783
|
-
|
|
12784
|
-
function
|
|
12802
|
+
Ui[Yo] = d_;
|
|
12803
|
+
Ui[Go] = h_;
|
|
12804
|
+
var Pd = 1, Od = 2, Id = 3, Md = 4, Rd = 5, go = 6, qd = 7, xn = {};
|
|
12805
|
+
xn[Pd] = "Named character references must be terminated by a semicolon";
|
|
12806
|
+
xn[Od] = "Numeric character references must be terminated by a semicolon";
|
|
12807
|
+
xn[Id] = "Named character references cannot be empty";
|
|
12808
|
+
xn[Md] = "Numeric character references cannot be empty";
|
|
12809
|
+
xn[Rd] = "Named character references must be known";
|
|
12810
|
+
xn[go] = "Numeric character references cannot be disallowed";
|
|
12811
|
+
xn[qd] = "Numeric character references cannot be outside the permissible Unicode range";
|
|
12812
|
+
function F_(e, t) {
|
|
12785
12813
|
var n = {}, r, i;
|
|
12786
12814
|
t || (t = {});
|
|
12787
12815
|
for (i in Oc)
|
|
12788
12816
|
r = t[i], n[i] = r ?? Oc[i];
|
|
12789
|
-
return (n.position.indent || n.position.start) && (n.indent = n.position.indent || [], n.position = n.position.start),
|
|
12790
|
-
}
|
|
12791
|
-
function
|
|
12792
|
-
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, m = t.position, v = t.indent || [], y = e.length, b = 0, k = -1,
|
|
12793
|
-
for (typeof n == "string" && (n = n.charCodeAt(0)), Q = ge(), W = u ? rt :
|
|
12794
|
-
if (L === Ic && (
|
|
12795
|
-
if (j = e.charCodeAt(b + 1), j ===
|
|
12796
|
-
T += cr(L),
|
|
12817
|
+
return (n.position.indent || n.position.start) && (n.indent = n.position.indent || [], n.position = n.position.start), A_(e, n);
|
|
12818
|
+
}
|
|
12819
|
+
function A_(e, t) {
|
|
12820
|
+
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, m = t.position, v = t.indent || [], y = e.length, b = 0, k = -1, x = m.column || 1, C = m.line || 1, T = "", F = [], S, A, _, $, L, I, j, W, K, z, P, N, q, X, de, Q, ie, he, ne;
|
|
12821
|
+
for (typeof n == "string" && (n = n.charCodeAt(0)), Q = ge(), W = u ? rt : v_, b--, y++; ++b < y; )
|
|
12822
|
+
if (L === Ic && (x = v[k] || 1), L = e.charCodeAt(b), L === Mc) {
|
|
12823
|
+
if (j = e.charCodeAt(b + 1), j === y_ || j === Ic || j === D_ || j === b_ || j === Mc || j === w_ || j !== j || n && j === n) {
|
|
12824
|
+
T += cr(L), x++;
|
|
12797
12825
|
continue;
|
|
12798
12826
|
}
|
|
12799
|
-
for (q = b + 1, N = q, ne = q, j ===
|
|
12800
|
-
$ += cr(j), X === hr &&
|
|
12801
|
-
|
|
12827
|
+
for (q = b + 1, N = q, ne = q, j === __ ? (ne = ++N, j = e.charCodeAt(ne), j === x_ || j === S_ ? (X = Go, ne = ++N) : X = Yo) : X = hr, S = "", P = "", $ = "", de = Ui[X], ne--; ++ne < y && (j = e.charCodeAt(ne), !!de(j)); )
|
|
12828
|
+
$ += cr(j), X === hr && g_.call(Lc, $) && (S = $, P = Lc[$]);
|
|
12829
|
+
_ = e.charCodeAt(ne) === k_, _ && (ne++, A = X === hr ? f_($) : !1, A && (S = $, P = A)), he = 1 + ne - q, !_ && !r || ($ ? X === hr ? (_ && !P ? W(Rd, 1) : (S !== $ && (ne = N + S.length, he = 1 + ne - N, _ = !1), _ || (K = S ? Pd : Id, t.attribute ? (j = e.charCodeAt(ne), j === C_ ? (W(K, he), P = null) : Ld(j) ? P = null : W(K, he)) : W(K, he))), I = P) : (_ || W(Od, he), I = parseInt($, Ko[X]), $_(I) ? (W(qd, he), I = cr(E_)) : I in Pc ? (W(go, he), I = Pc[I]) : (z = "", T_(I) && W(go, he), I > 65535 && (I -= 65536, z += cr(I >>> 10 | 55296), I = 56320 | I & 1023), I = z + cr(I))) : X !== hr && W(Md, he)), I ? (Be(), Q = ge(), b = ne - 1, x += ne - q + 1, F.push(I), ie = ge(), ie.offset++, o && o.call(
|
|
12802
12830
|
d,
|
|
12803
12831
|
I,
|
|
12804
12832
|
{ start: Q, end: ie },
|
|
12805
12833
|
e.slice(q - 1, ne)
|
|
12806
|
-
), Q = ie) : ($ = e.slice(q - 1, ne), T += $,
|
|
12834
|
+
), Q = ie) : ($ = e.slice(q - 1, ne), T += $, x += $.length, b = ne - 1);
|
|
12807
12835
|
} else
|
|
12808
|
-
L === 10 && (C++, k++,
|
|
12836
|
+
L === 10 && (C++, k++, x = 0), L === L ? (T += cr(L), x++) : Be();
|
|
12809
12837
|
return F.join("");
|
|
12810
12838
|
function ge() {
|
|
12811
12839
|
return {
|
|
12812
12840
|
line: C,
|
|
12813
|
-
column:
|
|
12841
|
+
column: x,
|
|
12814
12842
|
offset: b + (m.offset || 0)
|
|
12815
12843
|
};
|
|
12816
12844
|
}
|
|
12817
12845
|
function rt(Ee, Ne) {
|
|
12818
12846
|
var se = ge();
|
|
12819
|
-
se.column += Ne, se.offset += Ne, u.call(h,
|
|
12847
|
+
se.column += Ne, se.offset += Ne, u.call(h, xn[Ee], se, Ee);
|
|
12820
12848
|
}
|
|
12821
12849
|
function Be() {
|
|
12822
12850
|
T && (F.push(T), i && i.call(c, T, { start: Q, end: ge() }), T = "");
|
|
12823
12851
|
}
|
|
12824
12852
|
}
|
|
12825
|
-
function $
|
|
12853
|
+
function $_(e) {
|
|
12826
12854
|
return e >= 55296 && e <= 57343 || e > 1114111;
|
|
12827
12855
|
}
|
|
12828
|
-
function
|
|
12856
|
+
function T_(e) {
|
|
12829
12857
|
return e >= 1 && e <= 8 || e === 11 || e >= 13 && e <= 31 || e >= 127 && e <= 159 || e >= 64976 && e <= 65007 || (e & 65535) === 65535 || (e & 65535) === 65534;
|
|
12830
12858
|
}
|
|
12831
12859
|
var Hd = { exports: {} };
|
|
@@ -12938,26 +12966,26 @@ var Hd = { exports: {} };
|
|
|
12938
12966
|
*/
|
|
12939
12967
|
clone: function F(S, A) {
|
|
12940
12968
|
A = A || {};
|
|
12941
|
-
var
|
|
12969
|
+
var _, $;
|
|
12942
12970
|
switch (c.util.type(S)) {
|
|
12943
12971
|
case "Object":
|
|
12944
12972
|
if ($ = c.util.objId(S), A[$])
|
|
12945
12973
|
return A[$];
|
|
12946
|
-
|
|
12947
|
-
{}, A[$] =
|
|
12974
|
+
_ = /** @type {Record<string, any>} */
|
|
12975
|
+
{}, A[$] = _;
|
|
12948
12976
|
for (var L in S)
|
|
12949
|
-
S.hasOwnProperty(L) && (
|
|
12977
|
+
S.hasOwnProperty(L) && (_[L] = F(S[L], A));
|
|
12950
12978
|
return (
|
|
12951
12979
|
/** @type {any} */
|
|
12952
|
-
|
|
12980
|
+
_
|
|
12953
12981
|
);
|
|
12954
12982
|
case "Array":
|
|
12955
|
-
return $ = c.util.objId(S), A[$] ? A[$] : (
|
|
12983
|
+
return $ = c.util.objId(S), A[$] ? A[$] : (_ = [], A[$] = _, /** @type {Array} */
|
|
12956
12984
|
/** @type {any} */
|
|
12957
12985
|
S.forEach(function(I, j) {
|
|
12958
|
-
|
|
12986
|
+
_[j] = F(I, A);
|
|
12959
12987
|
}), /** @type {any} */
|
|
12960
|
-
|
|
12988
|
+
_);
|
|
12961
12989
|
default:
|
|
12962
12990
|
return S;
|
|
12963
12991
|
}
|
|
@@ -13006,8 +13034,8 @@ var Hd = { exports: {} };
|
|
|
13006
13034
|
);
|
|
13007
13035
|
try {
|
|
13008
13036
|
throw new Error();
|
|
13009
|
-
} catch (
|
|
13010
|
-
var F = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(
|
|
13037
|
+
} catch (_) {
|
|
13038
|
+
var F = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(_.stack) || [])[1];
|
|
13011
13039
|
if (F) {
|
|
13012
13040
|
var S = document.getElementsByTagName("script");
|
|
13013
13041
|
for (var A in S)
|
|
@@ -13037,11 +13065,11 @@ var Hd = { exports: {} };
|
|
|
13037
13065
|
* @returns {boolean}
|
|
13038
13066
|
*/
|
|
13039
13067
|
isActive: function(F, S, A) {
|
|
13040
|
-
for (var
|
|
13068
|
+
for (var _ = "no-" + S; F; ) {
|
|
13041
13069
|
var $ = F.classList;
|
|
13042
13070
|
if ($.contains(S))
|
|
13043
13071
|
return !0;
|
|
13044
|
-
if ($.contains(
|
|
13072
|
+
if ($.contains(_))
|
|
13045
13073
|
return !1;
|
|
13046
13074
|
F = F.parentElement;
|
|
13047
13075
|
}
|
|
@@ -13093,8 +13121,8 @@ var Hd = { exports: {} };
|
|
|
13093
13121
|
*/
|
|
13094
13122
|
extend: function(F, S) {
|
|
13095
13123
|
var A = c.util.clone(c.languages[F]);
|
|
13096
|
-
for (var
|
|
13097
|
-
A[
|
|
13124
|
+
for (var _ in S)
|
|
13125
|
+
A[_] = S[_];
|
|
13098
13126
|
return A;
|
|
13099
13127
|
},
|
|
13100
13128
|
/**
|
|
@@ -13172,10 +13200,10 @@ var Hd = { exports: {} };
|
|
|
13172
13200
|
* @returns {Grammar} The new grammar object.
|
|
13173
13201
|
* @public
|
|
13174
13202
|
*/
|
|
13175
|
-
insertBefore: function(F, S, A,
|
|
13176
|
-
|
|
13203
|
+
insertBefore: function(F, S, A, _) {
|
|
13204
|
+
_ = _ || /** @type {any} */
|
|
13177
13205
|
c.languages;
|
|
13178
|
-
var $ =
|
|
13206
|
+
var $ = _[F], L = {};
|
|
13179
13207
|
for (var I in $)
|
|
13180
13208
|
if ($.hasOwnProperty(I)) {
|
|
13181
13209
|
if (I == S)
|
|
@@ -13183,18 +13211,18 @@ var Hd = { exports: {} };
|
|
|
13183
13211
|
A.hasOwnProperty(j) && (L[j] = A[j]);
|
|
13184
13212
|
A.hasOwnProperty(I) || (L[I] = $[I]);
|
|
13185
13213
|
}
|
|
13186
|
-
var W =
|
|
13187
|
-
return
|
|
13188
|
-
|
|
13214
|
+
var W = _[F];
|
|
13215
|
+
return _[F] = L, c.languages.DFS(c.languages, function(K, z) {
|
|
13216
|
+
z === W && K != F && (this[K] = L);
|
|
13189
13217
|
}), L;
|
|
13190
13218
|
},
|
|
13191
13219
|
// Traverse a language definition with Depth First Search
|
|
13192
|
-
DFS: function F(S, A,
|
|
13220
|
+
DFS: function F(S, A, _, $) {
|
|
13193
13221
|
$ = $ || {};
|
|
13194
13222
|
var L = c.util.objId;
|
|
13195
13223
|
for (var I in S)
|
|
13196
13224
|
if (S.hasOwnProperty(I)) {
|
|
13197
|
-
A.call(S, I, S[I],
|
|
13225
|
+
A.call(S, I, S[I], _ || I);
|
|
13198
13226
|
var j = S[I], W = c.util.type(j);
|
|
13199
13227
|
W === "Object" && !$[L(j)] ? ($[L(j)] = !0, F(j, A, null, $)) : W === "Array" && !$[L(j)] && ($[L(j)] = !0, F(j, A, I, $));
|
|
13200
13228
|
}
|
|
@@ -13232,14 +13260,14 @@ var Hd = { exports: {} };
|
|
|
13232
13260
|
* @public
|
|
13233
13261
|
*/
|
|
13234
13262
|
highlightAllUnder: function(F, S, A) {
|
|
13235
|
-
var
|
|
13263
|
+
var _ = {
|
|
13236
13264
|
callback: A,
|
|
13237
13265
|
container: F,
|
|
13238
13266
|
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
|
|
13239
13267
|
};
|
|
13240
|
-
c.hooks.run("before-highlightall",
|
|
13241
|
-
for (var $ = 0, L; L =
|
|
13242
|
-
c.highlightElement(L, S === !0,
|
|
13268
|
+
c.hooks.run("before-highlightall", _), _.elements = Array.prototype.slice.apply(_.container.querySelectorAll(_.selector)), c.hooks.run("before-all-elements-highlight", _);
|
|
13269
|
+
for (var $ = 0, L; L = _.elements[$++]; )
|
|
13270
|
+
c.highlightElement(L, S === !0, _.callback);
|
|
13243
13271
|
},
|
|
13244
13272
|
/**
|
|
13245
13273
|
* Highlights the code inside a single element.
|
|
@@ -13270,18 +13298,18 @@ var Hd = { exports: {} };
|
|
|
13270
13298
|
* @public
|
|
13271
13299
|
*/
|
|
13272
13300
|
highlightElement: function(F, S, A) {
|
|
13273
|
-
var
|
|
13274
|
-
c.util.setLanguage(F,
|
|
13301
|
+
var _ = c.util.getLanguage(F), $ = c.languages[_];
|
|
13302
|
+
c.util.setLanguage(F, _);
|
|
13275
13303
|
var L = F.parentElement;
|
|
13276
|
-
L && L.nodeName.toLowerCase() === "pre" && c.util.setLanguage(L,
|
|
13304
|
+
L && L.nodeName.toLowerCase() === "pre" && c.util.setLanguage(L, _);
|
|
13277
13305
|
var I = F.textContent, j = {
|
|
13278
13306
|
element: F,
|
|
13279
|
-
language:
|
|
13307
|
+
language: _,
|
|
13280
13308
|
grammar: $,
|
|
13281
13309
|
code: I
|
|
13282
13310
|
};
|
|
13283
|
-
function W(
|
|
13284
|
-
j.highlightedCode =
|
|
13311
|
+
function W(z) {
|
|
13312
|
+
j.highlightedCode = z, c.hooks.run("before-insert", j), j.element.innerHTML = j.highlightedCode, c.hooks.run("after-highlight", j), c.hooks.run("complete", j), A && A.call(j.element);
|
|
13285
13313
|
}
|
|
13286
13314
|
if (c.hooks.run("before-sanity-check", j), L = j.element.parentElement, L && L.nodeName.toLowerCase() === "pre" && !L.hasAttribute("tabindex") && L.setAttribute("tabindex", "0"), !j.code) {
|
|
13287
13315
|
c.hooks.run("complete", j), A && A.call(j.element);
|
|
@@ -13293,8 +13321,8 @@ var Hd = { exports: {} };
|
|
|
13293
13321
|
}
|
|
13294
13322
|
if (S && r.Worker) {
|
|
13295
13323
|
var K = new Worker(c.filename);
|
|
13296
|
-
K.onmessage = function(
|
|
13297
|
-
W(
|
|
13324
|
+
K.onmessage = function(z) {
|
|
13325
|
+
W(z.data);
|
|
13298
13326
|
}, K.postMessage(JSON.stringify({
|
|
13299
13327
|
language: j.language,
|
|
13300
13328
|
code: j.code,
|
|
@@ -13324,14 +13352,14 @@ var Hd = { exports: {} };
|
|
|
13324
13352
|
* Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
|
|
13325
13353
|
*/
|
|
13326
13354
|
highlight: function(F, S, A) {
|
|
13327
|
-
var
|
|
13355
|
+
var _ = {
|
|
13328
13356
|
code: F,
|
|
13329
13357
|
grammar: S,
|
|
13330
13358
|
language: A
|
|
13331
13359
|
};
|
|
13332
|
-
if (c.hooks.run("before-tokenize",
|
|
13333
|
-
throw new Error('The language "' +
|
|
13334
|
-
return
|
|
13360
|
+
if (c.hooks.run("before-tokenize", _), !_.grammar)
|
|
13361
|
+
throw new Error('The language "' + _.language + '" has no grammar.');
|
|
13362
|
+
return _.tokens = c.tokenize(_.code, _.grammar), c.hooks.run("after-tokenize", _), d.stringify(c.util.encode(_.tokens), _.language);
|
|
13335
13363
|
},
|
|
13336
13364
|
/**
|
|
13337
13365
|
* This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
|
|
@@ -13360,8 +13388,8 @@ var Hd = { exports: {} };
|
|
|
13360
13388
|
tokenize: function(F, S) {
|
|
13361
13389
|
var A = S.rest;
|
|
13362
13390
|
if (A) {
|
|
13363
|
-
for (var
|
|
13364
|
-
S[
|
|
13391
|
+
for (var _ in A)
|
|
13392
|
+
S[_] = A[_];
|
|
13365
13393
|
delete S.rest;
|
|
13366
13394
|
}
|
|
13367
13395
|
var $ = new v();
|
|
@@ -13402,24 +13430,24 @@ var Hd = { exports: {} };
|
|
|
13402
13430
|
run: function(F, S) {
|
|
13403
13431
|
var A = c.hooks.all[F];
|
|
13404
13432
|
if (!(!A || !A.length))
|
|
13405
|
-
for (var
|
|
13433
|
+
for (var _ = 0, $; $ = A[_++]; )
|
|
13406
13434
|
$(S);
|
|
13407
13435
|
}
|
|
13408
13436
|
},
|
|
13409
13437
|
Token: d
|
|
13410
13438
|
};
|
|
13411
13439
|
r.Prism = c;
|
|
13412
|
-
function d(F, S, A,
|
|
13413
|
-
this.type = F, this.content = S, this.alias = A, this.length = (
|
|
13440
|
+
function d(F, S, A, _) {
|
|
13441
|
+
this.type = F, this.content = S, this.alias = A, this.length = (_ || "").length | 0;
|
|
13414
13442
|
}
|
|
13415
13443
|
d.stringify = function F(S, A) {
|
|
13416
13444
|
if (typeof S == "string")
|
|
13417
13445
|
return S;
|
|
13418
13446
|
if (Array.isArray(S)) {
|
|
13419
|
-
var
|
|
13447
|
+
var _ = "";
|
|
13420
13448
|
return S.forEach(function(W) {
|
|
13421
|
-
|
|
13422
|
-
}),
|
|
13449
|
+
_ += F(W, A);
|
|
13450
|
+
}), _;
|
|
13423
13451
|
}
|
|
13424
13452
|
var $ = {
|
|
13425
13453
|
type: S.type,
|
|
@@ -13435,16 +13463,16 @@ var Hd = { exports: {} };
|
|
|
13435
13463
|
I += " " + j + '="' + ($.attributes[j] || "").replace(/"/g, """) + '"';
|
|
13436
13464
|
return "<" + $.tag + ' class="' + $.classes.join(" ") + '"' + I + ">" + $.content + "</" + $.tag + ">";
|
|
13437
13465
|
};
|
|
13438
|
-
function h(F, S, A,
|
|
13466
|
+
function h(F, S, A, _) {
|
|
13439
13467
|
F.lastIndex = S;
|
|
13440
13468
|
var $ = F.exec(A);
|
|
13441
|
-
if ($ &&
|
|
13469
|
+
if ($ && _ && $[1]) {
|
|
13442
13470
|
var L = $[1].length;
|
|
13443
13471
|
$.index += L, $[0] = $[0].slice(L);
|
|
13444
13472
|
}
|
|
13445
13473
|
return $;
|
|
13446
13474
|
}
|
|
13447
|
-
function m(F, S, A,
|
|
13475
|
+
function m(F, S, A, _, $, L) {
|
|
13448
13476
|
for (var I in A)
|
|
13449
13477
|
if (!(!A.hasOwnProperty(I) || !A[I])) {
|
|
13450
13478
|
var j = A[I];
|
|
@@ -13452,12 +13480,12 @@ var Hd = { exports: {} };
|
|
|
13452
13480
|
for (var W = 0; W < j.length; ++W) {
|
|
13453
13481
|
if (L && L.cause == I + "," + W)
|
|
13454
13482
|
return;
|
|
13455
|
-
var K = j[W],
|
|
13483
|
+
var K = j[W], z = K.inside, P = !!K.lookbehind, N = !!K.greedy, q = K.alias;
|
|
13456
13484
|
if (N && !K.pattern.global) {
|
|
13457
13485
|
var X = K.pattern.toString().match(/[imsuy]*$/)[0];
|
|
13458
13486
|
K.pattern = RegExp(K.pattern.source, X + "g");
|
|
13459
13487
|
}
|
|
13460
|
-
for (var de = K.pattern || K, Q =
|
|
13488
|
+
for (var de = K.pattern || K, Q = _.next, ie = $; Q !== S.tail && !(L && ie >= L.reach); ie += Q.value.length, Q = Q.next) {
|
|
13461
13489
|
var he = Q.value;
|
|
13462
13490
|
if (S.length > F.length)
|
|
13463
13491
|
return;
|
|
@@ -13476,12 +13504,12 @@ var Hd = { exports: {} };
|
|
|
13476
13504
|
ne--, he = F.slice(ie, Be), ge.index -= ie;
|
|
13477
13505
|
} else if (ge = h(de, 0, he, P), !ge)
|
|
13478
13506
|
continue;
|
|
13479
|
-
var Ne = ge.index, se = ge[0], pt = he.slice(0, Ne),
|
|
13507
|
+
var Ne = ge.index, se = ge[0], pt = he.slice(0, Ne), xt = he.slice(Ne + se.length), yt = ie + he.length;
|
|
13480
13508
|
L && yt > L.reach && (L.reach = yt);
|
|
13481
13509
|
var Dt = Q.prev;
|
|
13482
13510
|
pt && (Dt = y(S, Dt, pt), ie += pt.length), b(S, Dt, ne);
|
|
13483
|
-
var pn = new d(I,
|
|
13484
|
-
if (Q = y(S, Dt, pn),
|
|
13511
|
+
var pn = new d(I, z ? c.tokenize(se, z) : se, q, se);
|
|
13512
|
+
if (Q = y(S, Dt, pn), xt && y(S, Q, xt), ne > 1) {
|
|
13485
13513
|
var bt = {
|
|
13486
13514
|
cause: I + "," + W,
|
|
13487
13515
|
reach: yt
|
|
@@ -13498,13 +13526,13 @@ var Hd = { exports: {} };
|
|
|
13498
13526
|
F.next = S, this.head = F, this.tail = S, this.length = 0;
|
|
13499
13527
|
}
|
|
13500
13528
|
function y(F, S, A) {
|
|
13501
|
-
var
|
|
13502
|
-
return S.next = $,
|
|
13529
|
+
var _ = S.next, $ = { value: A, prev: S, next: _ };
|
|
13530
|
+
return S.next = $, _.prev = $, F.length++, $;
|
|
13503
13531
|
}
|
|
13504
13532
|
function b(F, S, A) {
|
|
13505
|
-
for (var
|
|
13506
|
-
|
|
13507
|
-
S.next =
|
|
13533
|
+
for (var _ = S.next, $ = 0; $ < A && _ !== F.tail; $++)
|
|
13534
|
+
_ = _.next;
|
|
13535
|
+
S.next = _, _.prev = S, F.length -= $;
|
|
13508
13536
|
}
|
|
13509
13537
|
function k(F) {
|
|
13510
13538
|
for (var S = [], A = F.head.next; A !== F.tail; )
|
|
@@ -13513,23 +13541,23 @@ var Hd = { exports: {} };
|
|
|
13513
13541
|
}
|
|
13514
13542
|
if (!r.document)
|
|
13515
13543
|
return r.addEventListener && (c.disableWorkerMessageHandler || r.addEventListener("message", function(F) {
|
|
13516
|
-
var S = JSON.parse(F.data), A = S.language,
|
|
13517
|
-
r.postMessage(c.highlight(
|
|
13544
|
+
var S = JSON.parse(F.data), A = S.language, _ = S.code, $ = S.immediateClose;
|
|
13545
|
+
r.postMessage(c.highlight(_, c.languages[A], A)), $ && r.close();
|
|
13518
13546
|
}, !1)), c;
|
|
13519
|
-
var
|
|
13520
|
-
|
|
13547
|
+
var x = c.util.currentScript();
|
|
13548
|
+
x && (c.filename = x.src, x.hasAttribute("data-manual") && (c.manual = !0));
|
|
13521
13549
|
function C() {
|
|
13522
13550
|
c.manual || c.highlightAll();
|
|
13523
13551
|
}
|
|
13524
13552
|
if (!c.manual) {
|
|
13525
13553
|
var T = document.readyState;
|
|
13526
|
-
T === "loading" || T === "interactive" &&
|
|
13554
|
+
T === "loading" || T === "interactive" && x && x.defer ? document.addEventListener("DOMContentLoaded", C) : window.requestAnimationFrame ? window.requestAnimationFrame(C) : window.setTimeout(C, 16);
|
|
13527
13555
|
}
|
|
13528
13556
|
return c;
|
|
13529
13557
|
}(t);
|
|
13530
13558
|
e.exports && (e.exports = n), typeof yn < "u" && (yn.Prism = n);
|
|
13531
13559
|
})(Hd);
|
|
13532
|
-
var
|
|
13560
|
+
var B_ = Hd.exports, N_ = Jo;
|
|
13533
13561
|
Jo.displayName = "markup";
|
|
13534
13562
|
Jo.aliases = ["html", "mathml", "svg", "xml", "ssml", "atom", "rss"];
|
|
13535
13563
|
function Jo(e) {
|
|
@@ -13698,7 +13726,7 @@ function Jo(e) {
|
|
|
13698
13726
|
}
|
|
13699
13727
|
}), e.languages.html = e.languages.markup, e.languages.mathml = e.languages.markup, e.languages.svg = e.languages.markup, e.languages.xml = e.languages.extend("markup", {}), e.languages.ssml = e.languages.xml, e.languages.atom = e.languages.xml, e.languages.rss = e.languages.xml;
|
|
13700
13728
|
}
|
|
13701
|
-
var
|
|
13729
|
+
var j_ = Xo;
|
|
13702
13730
|
Xo.displayName = "css";
|
|
13703
13731
|
Xo.aliases = [];
|
|
13704
13732
|
function Xo(e) {
|
|
@@ -13763,7 +13791,7 @@ function Xo(e) {
|
|
|
13763
13791
|
r && (r.tag.addInlined("style", "css"), r.tag.addAttribute("style", "css"));
|
|
13764
13792
|
})(e);
|
|
13765
13793
|
}
|
|
13766
|
-
var
|
|
13794
|
+
var L_ = Qo;
|
|
13767
13795
|
Qo.displayName = "clike";
|
|
13768
13796
|
Qo.aliases = [];
|
|
13769
13797
|
function Qo(e) {
|
|
@@ -13799,7 +13827,7 @@ function Qo(e) {
|
|
|
13799
13827
|
punctuation: /[{}[\];(),.:]/
|
|
13800
13828
|
};
|
|
13801
13829
|
}
|
|
13802
|
-
var
|
|
13830
|
+
var P_ = Zo;
|
|
13803
13831
|
Zo.displayName = "javascript";
|
|
13804
13832
|
Zo.aliases = ["js"];
|
|
13805
13833
|
function Zo(e) {
|
|
@@ -13926,39 +13954,39 @@ function Zo(e) {
|
|
|
13926
13954
|
"javascript"
|
|
13927
13955
|
)), e.languages.js = e.languages.javascript;
|
|
13928
13956
|
}
|
|
13929
|
-
var aa = typeof globalThis == "object" ? globalThis : typeof self == "object" ? self : typeof window == "object" ? window : typeof yn == "object" ? yn : {},
|
|
13957
|
+
var aa = typeof globalThis == "object" ? globalThis : typeof self == "object" ? self : typeof window == "object" ? window : typeof yn == "object" ? yn : {}, O_ = Z_();
|
|
13930
13958
|
aa.Prism = { manual: !0, disableWorkerMessageHandler: !0 };
|
|
13931
|
-
var
|
|
13932
|
-
|
|
13959
|
+
var I_ = Z1, M_ = m_, Ud = B_, R_ = N_, q_ = j_, H_ = L_, U_ = P_;
|
|
13960
|
+
O_();
|
|
13933
13961
|
var el = {}.hasOwnProperty;
|
|
13934
13962
|
function Wd() {
|
|
13935
13963
|
}
|
|
13936
13964
|
Wd.prototype = Ud;
|
|
13937
|
-
var qe = new Wd(),
|
|
13938
|
-
qe.highlight =
|
|
13965
|
+
var qe = new Wd(), W_ = qe;
|
|
13966
|
+
qe.highlight = z_;
|
|
13939
13967
|
qe.register = Fa;
|
|
13940
|
-
qe.alias =
|
|
13941
|
-
qe.registered =
|
|
13942
|
-
qe.listLanguages =
|
|
13943
|
-
Fa(
|
|
13944
|
-
Fa(
|
|
13945
|
-
Fa(
|
|
13946
|
-
Fa(
|
|
13947
|
-
qe.util.encode =
|
|
13948
|
-
qe.Token.stringify =
|
|
13968
|
+
qe.alias = V_;
|
|
13969
|
+
qe.registered = G_;
|
|
13970
|
+
qe.listLanguages = Y_;
|
|
13971
|
+
Fa(R_);
|
|
13972
|
+
Fa(q_);
|
|
13973
|
+
Fa(H_);
|
|
13974
|
+
Fa(U_);
|
|
13975
|
+
qe.util.encode = X_;
|
|
13976
|
+
qe.Token.stringify = K_;
|
|
13949
13977
|
function Fa(e) {
|
|
13950
13978
|
if (typeof e != "function" || !e.displayName)
|
|
13951
13979
|
throw new Error("Expected `function` for `grammar`, got `" + e + "`");
|
|
13952
13980
|
qe.languages[e.displayName] === void 0 && e(qe);
|
|
13953
13981
|
}
|
|
13954
|
-
function
|
|
13982
|
+
function V_(e, t) {
|
|
13955
13983
|
var n = qe.languages, r = e, i, o, u, c;
|
|
13956
13984
|
t && (r = {}, r[e] = t);
|
|
13957
13985
|
for (i in r)
|
|
13958
13986
|
for (o = r[i], o = typeof o == "string" ? [o] : o, u = o.length, c = -1; ++c < u; )
|
|
13959
13987
|
n[o[c]] = n[i];
|
|
13960
13988
|
}
|
|
13961
|
-
function
|
|
13989
|
+
function z_(e, t) {
|
|
13962
13990
|
var n = Ud.highlight, r;
|
|
13963
13991
|
if (typeof e != "string")
|
|
13964
13992
|
throw new Error("Expected `string` for `value`, got `" + e + "`");
|
|
@@ -13974,20 +14002,20 @@ function Vx(e, t) {
|
|
|
13974
14002
|
}
|
|
13975
14003
|
return n.call(this, e, r, t);
|
|
13976
14004
|
}
|
|
13977
|
-
function
|
|
14005
|
+
function G_(e) {
|
|
13978
14006
|
if (typeof e != "string")
|
|
13979
14007
|
throw new Error("Expected `string` for `language`, got `" + e + "`");
|
|
13980
14008
|
return el.call(qe.languages, e);
|
|
13981
14009
|
}
|
|
13982
|
-
function
|
|
14010
|
+
function Y_() {
|
|
13983
14011
|
var e = qe.languages, t = [], n;
|
|
13984
14012
|
for (n in e)
|
|
13985
14013
|
el.call(e, n) && typeof e[n] == "object" && t.push(n);
|
|
13986
14014
|
return t;
|
|
13987
14015
|
}
|
|
13988
|
-
function
|
|
14016
|
+
function K_(e, t, n) {
|
|
13989
14017
|
var r;
|
|
13990
|
-
return typeof e == "string" ? { type: "text", value: e } : qe.util.type(e) === "Array" ?
|
|
14018
|
+
return typeof e == "string" ? { type: "text", value: e } : qe.util.type(e) === "Array" ? J_(e, t) : (r = {
|
|
13991
14019
|
type: e.type,
|
|
13992
14020
|
content: qe.Token.stringify(e.content, t, n),
|
|
13993
14021
|
tag: "span",
|
|
@@ -13995,36 +14023,36 @@ function Kx(e, t, n) {
|
|
|
13995
14023
|
attributes: {},
|
|
13996
14024
|
language: t,
|
|
13997
14025
|
parent: n
|
|
13998
|
-
}, e.alias && (r.classes = r.classes.concat(e.alias)), qe.hooks.run("wrap", r),
|
|
14026
|
+
}, e.alias && (r.classes = r.classes.concat(e.alias)), qe.hooks.run("wrap", r), I_(
|
|
13999
14027
|
r.tag + "." + r.classes.join("."),
|
|
14000
|
-
|
|
14028
|
+
Q_(r.attributes),
|
|
14001
14029
|
r.content
|
|
14002
14030
|
));
|
|
14003
14031
|
}
|
|
14004
|
-
function
|
|
14032
|
+
function J_(e, t) {
|
|
14005
14033
|
for (var n = [], r = e.length, i = -1, o; ++i < r; )
|
|
14006
14034
|
o = e[i], o !== "" && o !== null && o !== void 0 && n.push(o);
|
|
14007
14035
|
for (i = -1, r = n.length; ++i < r; )
|
|
14008
14036
|
o = n[i], n[i] = qe.Token.stringify(o, t, n);
|
|
14009
14037
|
return n;
|
|
14010
14038
|
}
|
|
14011
|
-
function
|
|
14039
|
+
function X_(e) {
|
|
14012
14040
|
return e;
|
|
14013
14041
|
}
|
|
14014
|
-
function
|
|
14042
|
+
function Q_(e) {
|
|
14015
14043
|
var t;
|
|
14016
14044
|
for (t in e)
|
|
14017
|
-
e[t] =
|
|
14045
|
+
e[t] = M_(e[t]);
|
|
14018
14046
|
return e;
|
|
14019
14047
|
}
|
|
14020
|
-
function
|
|
14048
|
+
function Z_() {
|
|
14021
14049
|
var e = "Prism" in aa, t = e ? aa.Prism : void 0;
|
|
14022
14050
|
return n;
|
|
14023
14051
|
function n() {
|
|
14024
14052
|
e ? aa.Prism = t : delete aa.Prism, e = void 0, t = void 0;
|
|
14025
14053
|
}
|
|
14026
14054
|
}
|
|
14027
|
-
const tl = /* @__PURE__ */ Fi(
|
|
14055
|
+
const tl = /* @__PURE__ */ Fi(W_);
|
|
14028
14056
|
var va = Lk(tl, {});
|
|
14029
14057
|
va.registerLanguage = function(e, t) {
|
|
14030
14058
|
return tl.register(t);
|
|
@@ -14224,7 +14252,7 @@ const Rc = {
|
|
|
14224
14252
|
fontStyle: "italic"
|
|
14225
14253
|
}
|
|
14226
14254
|
};
|
|
14227
|
-
var
|
|
14255
|
+
var ex = nl;
|
|
14228
14256
|
nl.displayName = "jsx";
|
|
14229
14257
|
nl.aliases = [];
|
|
14230
14258
|
function nl(e) {
|
|
@@ -14295,7 +14323,7 @@ function nl(e) {
|
|
|
14295
14323
|
});
|
|
14296
14324
|
})(e);
|
|
14297
14325
|
}
|
|
14298
|
-
const
|
|
14326
|
+
const tx = /* @__PURE__ */ Fi(ex), qc = je(
|
|
14299
14327
|
({
|
|
14300
14328
|
ariaDescribedby: e,
|
|
14301
14329
|
ariaLabelledby: t,
|
|
@@ -14312,23 +14340,23 @@ const t_ = /* @__PURE__ */ Fi(e_), qc = je(
|
|
|
14312
14340
|
fullwidth: y = !1,
|
|
14313
14341
|
label: b,
|
|
14314
14342
|
name: k,
|
|
14315
|
-
optionalTag:
|
|
14343
|
+
optionalTag: x = !1,
|
|
14316
14344
|
optionalText: C,
|
|
14317
14345
|
requiredTag: T = !1,
|
|
14318
14346
|
requiredText: F,
|
|
14319
14347
|
...S
|
|
14320
14348
|
}, A) => {
|
|
14321
|
-
const
|
|
14349
|
+
const _ = [r, "pkt-select"].join(" ");
|
|
14322
14350
|
return /* @__PURE__ */ g.jsx(
|
|
14323
|
-
|
|
14351
|
+
_a,
|
|
14324
14352
|
{
|
|
14325
|
-
className:
|
|
14353
|
+
className: _,
|
|
14326
14354
|
forId: m,
|
|
14327
14355
|
label: b,
|
|
14328
14356
|
helptext: c,
|
|
14329
14357
|
helptextDropdown: d,
|
|
14330
14358
|
helptextDropdownButton: h,
|
|
14331
|
-
optionalTag:
|
|
14359
|
+
optionalTag: x,
|
|
14332
14360
|
optionalText: C,
|
|
14333
14361
|
requiredTag: T,
|
|
14334
14362
|
requiredText: F,
|
|
@@ -14355,7 +14383,7 @@ const t_ = /* @__PURE__ */ Fi(e_), qc = je(
|
|
|
14355
14383
|
}
|
|
14356
14384
|
);
|
|
14357
14385
|
}
|
|
14358
|
-
),
|
|
14386
|
+
), nx = zn({
|
|
14359
14387
|
tagName: "pkt-tag",
|
|
14360
14388
|
elementClass: Lt,
|
|
14361
14389
|
react: ye,
|
|
@@ -14364,10 +14392,10 @@ const t_ = /* @__PURE__ */ Fi(e_), qc = je(
|
|
|
14364
14392
|
onClose: "close"
|
|
14365
14393
|
}
|
|
14366
14394
|
}), ya = je(
|
|
14367
|
-
({ children: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
14395
|
+
({ children: e, ...t }, n) => /* @__PURE__ */ g.jsx(nx, { ref: n, ...t, children: /* @__PURE__ */ g.jsx("div", { className: "pkt-contents", children: e }) })
|
|
14368
14396
|
);
|
|
14369
14397
|
ya.displayName = "PktTag";
|
|
14370
|
-
const
|
|
14398
|
+
const rx = je(
|
|
14371
14399
|
({ arrowNav: e = !0, tabs: t, onTabSelected: n }, r) => {
|
|
14372
14400
|
const i = Da([]);
|
|
14373
14401
|
yi(() => {
|
|
@@ -14439,20 +14467,20 @@ const r_ = je(
|
|
|
14439
14467
|
helptextDropdownButton: y,
|
|
14440
14468
|
iconNameRight: b,
|
|
14441
14469
|
inline: k = !1,
|
|
14442
|
-
fullwidth:
|
|
14470
|
+
fullwidth: x = !1,
|
|
14443
14471
|
label: C,
|
|
14444
14472
|
name: T,
|
|
14445
14473
|
optionalTag: F = !1,
|
|
14446
14474
|
optionalText: S,
|
|
14447
14475
|
requiredTag: A = !1,
|
|
14448
|
-
requiredText:
|
|
14476
|
+
requiredText: _,
|
|
14449
14477
|
placeholder: $,
|
|
14450
14478
|
prefix: L,
|
|
14451
14479
|
suffix: I,
|
|
14452
14480
|
type: j = "text",
|
|
14453
14481
|
useWrapper: W = !0,
|
|
14454
14482
|
omitSearchIcon: K = !1,
|
|
14455
|
-
value:
|
|
14483
|
+
value: z,
|
|
14456
14484
|
onChange: P,
|
|
14457
14485
|
...N
|
|
14458
14486
|
}, q) => {
|
|
@@ -14464,7 +14492,7 @@ const r_ = je(
|
|
|
14464
14492
|
return P(ge);
|
|
14465
14493
|
};
|
|
14466
14494
|
return /* @__PURE__ */ g.jsx(
|
|
14467
|
-
|
|
14495
|
+
_a,
|
|
14468
14496
|
{
|
|
14469
14497
|
ariaDescribedby: t,
|
|
14470
14498
|
className: X,
|
|
@@ -14480,7 +14508,7 @@ const r_ = je(
|
|
|
14480
14508
|
optionalTag: F,
|
|
14481
14509
|
optionalText: S,
|
|
14482
14510
|
requiredTag: A,
|
|
14483
|
-
requiredText:
|
|
14511
|
+
requiredText: _,
|
|
14484
14512
|
useWrapper: W,
|
|
14485
14513
|
counter: i,
|
|
14486
14514
|
counterCurrent: ie,
|
|
@@ -14491,13 +14519,13 @@ const r_ = je(
|
|
|
14491
14519
|
"input",
|
|
14492
14520
|
{
|
|
14493
14521
|
ref: q,
|
|
14494
|
-
className: `pkt-input ${
|
|
14522
|
+
className: `pkt-input ${x ? "pkt-input--fullwidth" : ""} ${o && ie > o ? "pkt-input--counter-error" : ""}`,
|
|
14495
14523
|
type: j,
|
|
14496
14524
|
name: T || e,
|
|
14497
14525
|
id: e,
|
|
14498
14526
|
placeholder: $,
|
|
14499
14527
|
autoComplete: r,
|
|
14500
|
-
value:
|
|
14528
|
+
value: z,
|
|
14501
14529
|
disabled: c,
|
|
14502
14530
|
"aria-invalid": h,
|
|
14503
14531
|
"aria-errormessage": `${e}-error`,
|
|
@@ -14517,7 +14545,7 @@ const r_ = je(
|
|
|
14517
14545
|
}
|
|
14518
14546
|
);
|
|
14519
14547
|
}
|
|
14520
|
-
),
|
|
14548
|
+
), ax = [
|
|
14521
14549
|
{
|
|
14522
14550
|
id: "24h",
|
|
14523
14551
|
fn: "24h.svg",
|
|
@@ -15472,7 +15500,7 @@ const r_ = je(
|
|
|
15472
15500
|
role: "table",
|
|
15473
15501
|
children: i
|
|
15474
15502
|
}
|
|
15475
|
-
), Ws = ({ className: e, children: t }) => /* @__PURE__ */ g.jsx("thead", { className: tt(e, "pkt-table__header", {}), role: "rowgroup", children: t }),
|
|
15503
|
+
), Ws = ({ className: e, children: t }) => /* @__PURE__ */ g.jsx("thead", { className: tt(e, "pkt-table__header", {}), role: "rowgroup", children: t }), Vs = ({ children: e, className: t }) => /* @__PURE__ */ g.jsx("tbody", { className: tt(t, "pkt-table__body", {}), role: "rowgroup", children: e }), pr = ({ className: e, children: t }) => /* @__PURE__ */ g.jsx("tr", { className: tt(e, "pkt-table__row", {}), role: "row", children: t }), Mt = ({ className: e, children: t }) => /* @__PURE__ */ g.jsx("th", { className: tt(e, "pkt-table__header-cell", {}), role: "columnheader", children: t }), At = ({ children: e, className: t, dataLabel: n }) => /* @__PURE__ */ g.jsx(
|
|
15476
15504
|
"td",
|
|
15477
15505
|
{
|
|
15478
15506
|
className: tt(t, "pkt-table__data-cell", {}),
|
|
@@ -15481,7 +15509,7 @@ const r_ = je(
|
|
|
15481
15509
|
"data-testid": "pkt-table__data-cell",
|
|
15482
15510
|
children: e
|
|
15483
15511
|
}
|
|
15484
|
-
),
|
|
15512
|
+
), ix = ({ specs: e }) => {
|
|
15485
15513
|
const t = (r) => Array.isArray(r) ? r.join(`
|
|
15486
15514
|
`) : r, n = (r) => typeof r == "boolean" ? r ? "true" : "false" : r;
|
|
15487
15515
|
return /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
@@ -15494,7 +15522,7 @@ const r_ = je(
|
|
|
15494
15522
|
/* @__PURE__ */ g.jsx(Mt, { children: "Type" }),
|
|
15495
15523
|
/* @__PURE__ */ g.jsx(Mt, { children: "Standardverdi" })
|
|
15496
15524
|
] }) }),
|
|
15497
|
-
/* @__PURE__ */ g.jsx(
|
|
15525
|
+
/* @__PURE__ */ g.jsx(Vs, { children: Object.entries(e.props || {}).map(([r, i]) => /* @__PURE__ */ g.jsxs(pr, { children: [
|
|
15498
15526
|
/* @__PURE__ */ g.jsx(At, { dataLabel: "Prop", children: /* @__PURE__ */ g.jsx("pre", { children: r }) }),
|
|
15499
15527
|
/* @__PURE__ */ g.jsx(At, { dataLabel: "Navn", children: !Array.isArray(i) && i.name || r }),
|
|
15500
15528
|
Array.isArray(i) ? /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
@@ -15516,7 +15544,7 @@ const r_ = je(
|
|
|
15516
15544
|
/* @__PURE__ */ g.jsx(Mt, { children: "Beskrivelse" }),
|
|
15517
15545
|
/* @__PURE__ */ g.jsx(Mt, { children: "Type" })
|
|
15518
15546
|
] }) }),
|
|
15519
|
-
/* @__PURE__ */ g.jsx(
|
|
15547
|
+
/* @__PURE__ */ g.jsx(Vs, { children: Object.entries(e.events || {}).map(([r, i]) => /* @__PURE__ */ g.jsxs(pr, { children: [
|
|
15520
15548
|
/* @__PURE__ */ g.jsx(At, { dataLabel: "Event", children: /* @__PURE__ */ g.jsx("pre", { children: r }) }),
|
|
15521
15549
|
/* @__PURE__ */ g.jsx(At, { dataLabel: "Beskrivelse", children: /* @__PURE__ */ g.jsx("span", { dangerouslySetInnerHTML: { __html: i.description || "" } }) }),
|
|
15522
15550
|
/* @__PURE__ */ g.jsx(At, { dataLabel: "Type", children: i.type })
|
|
@@ -15530,7 +15558,7 @@ const r_ = je(
|
|
|
15530
15558
|
/* @__PURE__ */ g.jsx(Mt, { children: "Slot" }),
|
|
15531
15559
|
/* @__PURE__ */ g.jsx(Mt, { children: "Beskrivelse" })
|
|
15532
15560
|
] }) }),
|
|
15533
|
-
/* @__PURE__ */ g.jsx(
|
|
15561
|
+
/* @__PURE__ */ g.jsx(Vs, { children: Object.entries(e.slots || {}).map(([r, i]) => /* @__PURE__ */ g.jsxs(pr, { children: [
|
|
15534
15562
|
/* @__PURE__ */ g.jsx(At, { dataLabel: "Slot", children: /* @__PURE__ */ g.jsx("pre", { children: r }) }),
|
|
15535
15563
|
/* @__PURE__ */ g.jsx(At, { dataLabel: "Beskrivelse", children: /* @__PURE__ */ g.jsx("span", { dangerouslySetInnerHTML: { __html: i.description || "" } }) })
|
|
15536
15564
|
] }, r)) })
|
|
@@ -15538,10 +15566,10 @@ const r_ = je(
|
|
|
15538
15566
|
] })
|
|
15539
15567
|
] });
|
|
15540
15568
|
};
|
|
15541
|
-
va.registerLanguage("jsx",
|
|
15542
|
-
const
|
|
15543
|
-
var K,
|
|
15544
|
-
const r = e.props && typeof e.props == "object" && !Array.isArray(e.props) ? Object.entries(e.props).reduce((P, [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), P[N] = q.default), P), {}) : {}, [i, o] = gt(r), [u, c] = gt("light"), [d, h] = gt(""), [m, v] = gt(""), [y, b] = gt(""), [k,
|
|
15569
|
+
va.registerLanguage("jsx", tx);
|
|
15570
|
+
const sx = ({ specs: e, children: t, fullWidth: n }) => {
|
|
15571
|
+
var K, z;
|
|
15572
|
+
const r = e.props && typeof e.props == "object" && !Array.isArray(e.props) ? Object.entries(e.props).reduce((P, [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), P[N] = q.default), P), {}) : {}, [i, o] = gt(r), [u, c] = gt("light"), [d, h] = gt(""), [m, v] = gt(""), [y, b] = gt(""), [k, x] = gt("Rediger innhold"), [C, T] = gt([
|
|
15545
15573
|
{
|
|
15546
15574
|
text: "Rediger",
|
|
15547
15575
|
icon: "adjust",
|
|
@@ -15563,7 +15591,7 @@ const s_ = ({ specs: e, children: t, fullWidth: n }) => {
|
|
|
15563
15591
|
active: !1
|
|
15564
15592
|
}
|
|
15565
15593
|
]), F = (P) => {
|
|
15566
|
-
P === 1 &&
|
|
15594
|
+
P === 1 && _(), P === 2 && (_(), A()), b(""), T(
|
|
15567
15595
|
(N) => N.map((q, X) => ({
|
|
15568
15596
|
...q,
|
|
15569
15597
|
active: X === P
|
|
@@ -15571,7 +15599,7 @@ const s_ = ({ specs: e, children: t, fullWidth: n }) => {
|
|
|
15571
15599
|
);
|
|
15572
15600
|
}, S = Da(null), A = async () => {
|
|
15573
15601
|
if (e.isElement && ia(I))
|
|
15574
|
-
|
|
15602
|
+
_().then(() => {
|
|
15575
15603
|
const P = ia(I) ? I.type.displayName || I.type.name : e.name;
|
|
15576
15604
|
h(
|
|
15577
15605
|
`<!-- Denne koden bør testes grundig før bruk. Spør en Punkt-utvikler om du er usikker. -->
|
|
@@ -15587,7 +15615,7 @@ const s_ = ({ specs: e, children: t, fullWidth: n }) => {
|
|
|
15587
15615
|
});
|
|
15588
15616
|
h(P.replace(/<\!--.*?-->/g, ""));
|
|
15589
15617
|
}
|
|
15590
|
-
},
|
|
15618
|
+
}, _ = async () => {
|
|
15591
15619
|
const P = await Ky(I);
|
|
15592
15620
|
return v(P), Promise.resolve();
|
|
15593
15621
|
}, $ = (P, N) => {
|
|
@@ -15623,7 +15651,7 @@ const s_ = ({ specs: e, children: t, fullWidth: n }) => {
|
|
|
15623
15651
|
}, W = (P, N) => {
|
|
15624
15652
|
if (N.type === "boolean")
|
|
15625
15653
|
return /* @__PURE__ */ g.jsx(
|
|
15626
|
-
|
|
15654
|
+
_a,
|
|
15627
15655
|
{
|
|
15628
15656
|
label: N.name || P,
|
|
15629
15657
|
forId: P,
|
|
@@ -15656,7 +15684,7 @@ const s_ = ({ specs: e, children: t, fullWidth: n }) => {
|
|
|
15656
15684
|
requiredTag: N.required,
|
|
15657
15685
|
children: [
|
|
15658
15686
|
/* @__PURE__ */ g.jsx("option", { value: "" }),
|
|
15659
|
-
|
|
15687
|
+
ax.map((q) => /* @__PURE__ */ g.jsx("option", { value: q.id, children: q.id }, q.id))
|
|
15660
15688
|
]
|
|
15661
15689
|
}
|
|
15662
15690
|
);
|
|
@@ -15725,9 +15753,9 @@ const s_ = ({ specs: e, children: t, fullWidth: n }) => {
|
|
|
15725
15753
|
}
|
|
15726
15754
|
)
|
|
15727
15755
|
] }),
|
|
15728
|
-
/* @__PURE__ */ g.jsx(
|
|
15756
|
+
/* @__PURE__ */ g.jsx(rx, { tabs: C, onTabSelected: F }),
|
|
15729
15757
|
/* @__PURE__ */ g.jsxs("div", { className: `pkt-grid pkt-preview__opts ${C[0].active ? "" : "pkt-hide"}`, children: [
|
|
15730
|
-
((
|
|
15758
|
+
((z = e.slots) == null ? void 0 : z.default) && !t.props.children && /* @__PURE__ */ g.jsxs("div", { className: "pkt-cell pkt-cell--span12 pkt-cell--span6-phablet-up", children: [
|
|
15731
15759
|
/* @__PURE__ */ g.jsx(ya, { size: "small", skin: "blue-light", textStyle: "thin-text", children: "children" }),
|
|
15732
15760
|
/* @__PURE__ */ g.jsx(
|
|
15733
15761
|
Hc,
|
|
@@ -15737,7 +15765,7 @@ const s_ = ({ specs: e, children: t, fullWidth: n }) => {
|
|
|
15737
15765
|
helptext: e.slots.default.description || "Innholdet i slot",
|
|
15738
15766
|
type: "text",
|
|
15739
15767
|
value: k,
|
|
15740
|
-
onChange: (P) =>
|
|
15768
|
+
onChange: (P) => x(P.currentTarget.value)
|
|
15741
15769
|
}
|
|
15742
15770
|
)
|
|
15743
15771
|
] }),
|
|
@@ -15754,34 +15782,34 @@ const s_ = ({ specs: e, children: t, fullWidth: n }) => {
|
|
|
15754
15782
|
/* @__PURE__ */ g.jsx(va, { language: "html", style: Rc, children: d }),
|
|
15755
15783
|
L("html", d)
|
|
15756
15784
|
] }),
|
|
15757
|
-
/* @__PURE__ */ g.jsx("div", { className: `pkt-preview__specs ${C[3].active ? "" : "pkt-hide"}`, children: /* @__PURE__ */ g.jsx(
|
|
15785
|
+
/* @__PURE__ */ g.jsx("div", { className: `pkt-preview__specs ${C[3].active ? "" : "pkt-hide"}`, children: /* @__PURE__ */ g.jsx(ix, { specs: e }) })
|
|
15758
15786
|
] });
|
|
15759
15787
|
};
|
|
15760
|
-
|
|
15788
|
+
sx.displayName = "PktPreview";
|
|
15761
15789
|
var et = [];
|
|
15762
|
-
for (var
|
|
15763
|
-
et.push((
|
|
15764
|
-
function
|
|
15790
|
+
for (var zs = 0; zs < 256; ++zs)
|
|
15791
|
+
et.push((zs + 256).toString(16).slice(1));
|
|
15792
|
+
function ox(e, t = 0) {
|
|
15765
15793
|
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();
|
|
15766
15794
|
}
|
|
15767
|
-
var ci,
|
|
15768
|
-
function
|
|
15795
|
+
var ci, lx = new Uint8Array(16);
|
|
15796
|
+
function ux() {
|
|
15769
15797
|
if (!ci && (ci = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !ci))
|
|
15770
15798
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
15771
|
-
return ci(
|
|
15799
|
+
return ci(lx);
|
|
15772
15800
|
}
|
|
15773
|
-
var
|
|
15801
|
+
var cx = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
15774
15802
|
const Uc = {
|
|
15775
|
-
randomUUID:
|
|
15803
|
+
randomUUID: cx
|
|
15776
15804
|
};
|
|
15777
|
-
function
|
|
15805
|
+
function px(e, t, n) {
|
|
15778
15806
|
if (Uc.randomUUID && !t && !e)
|
|
15779
15807
|
return Uc.randomUUID();
|
|
15780
15808
|
e = e || {};
|
|
15781
|
-
var r = e.random || (e.rng ||
|
|
15782
|
-
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128,
|
|
15809
|
+
var r = e.random || (e.rng || ux)();
|
|
15810
|
+
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, ox(r);
|
|
15783
15811
|
}
|
|
15784
|
-
const
|
|
15812
|
+
const dx = je(
|
|
15785
15813
|
({
|
|
15786
15814
|
valueCurrent: e,
|
|
15787
15815
|
valueMin: t = 0,
|
|
@@ -15798,19 +15826,19 @@ const d_ = je(
|
|
|
15798
15826
|
className: y,
|
|
15799
15827
|
ariaValueText: b,
|
|
15800
15828
|
...k
|
|
15801
|
-
},
|
|
15829
|
+
}, x) => {
|
|
15802
15830
|
const C = Da(null), [T, F] = gt(0), [S, A] = gt(d);
|
|
15803
15831
|
yi(() => {
|
|
15804
|
-
d || A(
|
|
15832
|
+
d || A(px());
|
|
15805
15833
|
}, [d]), yi(() => {
|
|
15806
15834
|
if (C.current) {
|
|
15807
15835
|
const N = C.current;
|
|
15808
15836
|
F(N.getBoundingClientRect().width);
|
|
15809
15837
|
}
|
|
15810
15838
|
});
|
|
15811
|
-
const
|
|
15839
|
+
const _ = n - t, $ = e / _ * 100, L = n !== 100 || t !== 0 ? Math.round($) : e, I = `${e} av ${n}`, j = u !== "none", W = tt("pkt-progressbar__bar", { [`pkt-progressbar__bar--${r}`]: r }), K = tt("pkt-progressbar__title", {
|
|
15812
15840
|
"pkt-progressbar__title-center": o === "center"
|
|
15813
|
-
}),
|
|
15841
|
+
}), z = tt("pkt-progressbar__status", {
|
|
15814
15842
|
"pkt-progressbar__status--center": c === "center"
|
|
15815
15843
|
}), P = tt({
|
|
15816
15844
|
"pkt-progressbar__status-placement--following": c === "following",
|
|
@@ -15821,7 +15849,7 @@ const d_ = je(
|
|
|
15821
15849
|
"div",
|
|
15822
15850
|
{
|
|
15823
15851
|
...k,
|
|
15824
|
-
ref:
|
|
15852
|
+
ref: x,
|
|
15825
15853
|
className: tt("pkt-progressbar__container", y),
|
|
15826
15854
|
id: S,
|
|
15827
15855
|
style: {
|
|
@@ -15844,14 +15872,14 @@ const d_ = je(
|
|
|
15844
15872
|
children: /* @__PURE__ */ g.jsx("div", { className: W })
|
|
15845
15873
|
}
|
|
15846
15874
|
),
|
|
15847
|
-
j && /* @__PURE__ */ g.jsx("div", { className:
|
|
15875
|
+
j && /* @__PURE__ */ g.jsx("div", { className: z, children: /* @__PURE__ */ g.jsx("span", { className: P, ref: C, children: u === "percentage" ? `${L}%` : I }) })
|
|
15848
15876
|
]
|
|
15849
15877
|
}
|
|
15850
15878
|
);
|
|
15851
15879
|
}
|
|
15852
15880
|
);
|
|
15853
|
-
|
|
15854
|
-
const
|
|
15881
|
+
dx.displayName = "PktProgressbar";
|
|
15882
|
+
const hx = je(
|
|
15855
15883
|
({
|
|
15856
15884
|
id: e,
|
|
15857
15885
|
name: t,
|
|
@@ -15890,8 +15918,8 @@ const h_ = je(
|
|
|
15890
15918
|
) });
|
|
15891
15919
|
}
|
|
15892
15920
|
);
|
|
15893
|
-
|
|
15894
|
-
const
|
|
15921
|
+
hx.displayName = "PktRadioButton";
|
|
15922
|
+
const Kx = je(
|
|
15895
15923
|
({
|
|
15896
15924
|
appearance: e = "local",
|
|
15897
15925
|
disabled: t = !1,
|
|
@@ -15908,14 +15936,14 @@ const K_ = je(
|
|
|
15908
15936
|
onSearch: y,
|
|
15909
15937
|
onSuggestionClick: b,
|
|
15910
15938
|
...k
|
|
15911
|
-
},
|
|
15912
|
-
const C = (
|
|
15913
|
-
|
|
15914
|
-
}, T = (
|
|
15915
|
-
d =
|
|
15939
|
+
}, x) => {
|
|
15940
|
+
const C = (_, $) => {
|
|
15941
|
+
_ ? _() : b && b($);
|
|
15942
|
+
}, T = (_) => {
|
|
15943
|
+
d = _.target.value;
|
|
15916
15944
|
}, F = `pkt-searchinput pkt-searchinput--${e} ${n ? "pkt-searchinput--fullwidth" : ""}`, S = i ? "label" : "div";
|
|
15917
15945
|
let A;
|
|
15918
|
-
return h ? A = (
|
|
15946
|
+
return h ? A = (_) => /* @__PURE__ */ g.jsx("form", { role: "search", className: F, action: h, method: m, children: _ }) : A = (_) => /* @__PURE__ */ g.jsx("div", { role: "search", className: F, children: _ }), A(
|
|
15919
15947
|
/* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
15920
15948
|
/* @__PURE__ */ g.jsxs(S, { htmlFor: i ? r : void 0, className: i ? "pkt-inputwrapper__label" : "", children: [
|
|
15921
15949
|
i && /* @__PURE__ */ g.jsx(g.Fragment, { children: i }),
|
|
@@ -15932,7 +15960,7 @@ const K_ = je(
|
|
|
15932
15960
|
disabled: t,
|
|
15933
15961
|
autoComplete: "off",
|
|
15934
15962
|
"aria-autocomplete": "list",
|
|
15935
|
-
ref:
|
|
15963
|
+
ref: x,
|
|
15936
15964
|
"aria-controls": `${r}-suggestions`,
|
|
15937
15965
|
onChange: v || T,
|
|
15938
15966
|
...k
|
|
@@ -15948,35 +15976,35 @@ const K_ = je(
|
|
|
15948
15976
|
color: e === "global" ? "yellow" : void 0,
|
|
15949
15977
|
type: "submit",
|
|
15950
15978
|
disabled: t,
|
|
15951
|
-
onClick: y && ((
|
|
15952
|
-
|
|
15979
|
+
onClick: y && ((_) => {
|
|
15980
|
+
_.preventDefault(), y(d);
|
|
15953
15981
|
}),
|
|
15954
|
-
onKeyUp: y && ((
|
|
15955
|
-
|
|
15982
|
+
onKeyUp: y && ((_) => {
|
|
15983
|
+
_.key === "Enter" && (_.preventDefault(), y(d));
|
|
15956
15984
|
}),
|
|
15957
15985
|
children: i || u
|
|
15958
15986
|
}
|
|
15959
15987
|
)
|
|
15960
15988
|
] })
|
|
15961
15989
|
] }),
|
|
15962
|
-
c && /* @__PURE__ */ g.jsx("ul", { id: `${r}-suggestions`, className: "pkt-searchinput__suggestions", "aria-live": "assertive", children: c.map((
|
|
15963
|
-
|
|
15990
|
+
c && /* @__PURE__ */ g.jsx("ul", { id: `${r}-suggestions`, className: "pkt-searchinput__suggestions", "aria-live": "assertive", children: c.map((_, $) => /* @__PURE__ */ g.jsx("li", { children: ye.createElement(
|
|
15991
|
+
_.href ? "a" : _.onClick ? "button" : "div",
|
|
15964
15992
|
{
|
|
15965
|
-
href:
|
|
15966
|
-
className: `pkt-searchinput__suggestion ${
|
|
15967
|
-
type:
|
|
15968
|
-
onClick: () => C(
|
|
15969
|
-
onKeyUp: () => C(
|
|
15993
|
+
href: _.href,
|
|
15994
|
+
className: `pkt-searchinput__suggestion ${_.onClick ? "pkt-link-button" : ""} ${_.href || _.onClick ? "pkt-searchinput__suggestion--has-hover" : ""}`,
|
|
15995
|
+
type: _.onClick ? "button" : void 0,
|
|
15996
|
+
onClick: () => C(_.onClick, $),
|
|
15997
|
+
onKeyUp: () => C(_.onClick, $)
|
|
15970
15998
|
},
|
|
15971
15999
|
/* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
15972
|
-
|
|
15973
|
-
|
|
16000
|
+
_.title && /* @__PURE__ */ g.jsx("h3", { className: "pkt-searchinput__suggestion-title", children: _.title }),
|
|
16001
|
+
_.text && /* @__PURE__ */ g.jsx("p", { className: "pkt-searchinput__suggestion-text", children: _.text })
|
|
15974
16002
|
] })
|
|
15975
16003
|
) }, `search-suggestion-${$}`)) })
|
|
15976
16004
|
] })
|
|
15977
16005
|
);
|
|
15978
16006
|
}
|
|
15979
|
-
),
|
|
16007
|
+
), Jx = je(
|
|
15980
16008
|
({
|
|
15981
16009
|
activeStep: e,
|
|
15982
16010
|
className: t,
|
|
@@ -15996,22 +16024,22 @@ const K_ = je(
|
|
|
15996
16024
|
}) : h);
|
|
15997
16025
|
return /* @__PURE__ */ g.jsx("ol", { "data-testid": "pkt-stepper", className: c, ref: u, ...o, children: d });
|
|
15998
16026
|
}
|
|
15999
|
-
),
|
|
16027
|
+
), fx = /* @__PURE__ */ g.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", children: /* @__PURE__ */ g.jsx("circle", { cx: "12", cy: "12", r: "7", style: { fill: "var(--pkt-color-grays-grey-200, #CCC)" } }) }), mx = /* @__PURE__ */ g.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", children: [
|
|
16000
16028
|
/* @__PURE__ */ g.jsx("circle", { opacity: ".15", cx: "12", cy: "12", r: "12", fill: "#2A2859" }),
|
|
16001
16029
|
/* @__PURE__ */ g.jsx("circle", { cx: "12", cy: "12", r: "6", fill: "#2A2859" })
|
|
16002
|
-
] }),
|
|
16030
|
+
] }), gx = /* @__PURE__ */ g.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", children: [
|
|
16003
16031
|
/* @__PURE__ */ g.jsx("path", { fill: "#2A2859", d: "M3 3h18v18H3z" }),
|
|
16004
16032
|
/* @__PURE__ */ g.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" })
|
|
16005
|
-
] }),
|
|
16033
|
+
] }), Xx = ({ children: e, className: t, status: n = "incomplete", title: r }) => /* @__PURE__ */ g.jsxs("li", { className: tt("pkt-step", t, `pkt-step--${n}`), "data-testid": "pkt-step", children: [
|
|
16006
16034
|
/* @__PURE__ */ g.jsx("span", { className: "pkt-step__line pkt-step__line--1", "aria-hidden": !0 }),
|
|
16007
16035
|
/* @__PURE__ */ g.jsx("span", { className: "pkt-step__line pkt-step__line--2", "aria-hidden": !0 }),
|
|
16008
|
-
/* @__PURE__ */ g.jsx("span", { className: tt("pkt-step__indicator"), children: n === "current" ?
|
|
16036
|
+
/* @__PURE__ */ g.jsx("span", { className: tt("pkt-step__indicator"), children: n === "current" ? mx : n === "completed" ? gx : fx }),
|
|
16009
16037
|
/* @__PURE__ */ g.jsx("span", { className: "pkt-step__line pkt-step__line--3", "aria-hidden": !0 }),
|
|
16010
16038
|
/* @__PURE__ */ g.jsxs("div", { className: "pkt-step__wrapper", children: [
|
|
16011
16039
|
/* @__PURE__ */ g.jsx("div", { className: "pkt-step__title", children: r }),
|
|
16012
16040
|
/* @__PURE__ */ g.jsx("div", { className: "pkt-step__content", children: e })
|
|
16013
16041
|
] })
|
|
16014
|
-
] }),
|
|
16042
|
+
] }), Qx = je(
|
|
16015
16043
|
({
|
|
16016
16044
|
id: e,
|
|
16017
16045
|
ariaDescribedby: t,
|
|
@@ -16028,27 +16056,27 @@ const K_ = je(
|
|
|
16028
16056
|
inline: y,
|
|
16029
16057
|
fullwidth: b = !1,
|
|
16030
16058
|
label: k,
|
|
16031
|
-
name:
|
|
16059
|
+
name: x,
|
|
16032
16060
|
optionalTag: C = !1,
|
|
16033
16061
|
optionalText: T,
|
|
16034
16062
|
requiredTag: F = !1,
|
|
16035
16063
|
requiredText: S,
|
|
16036
16064
|
placeholder: A,
|
|
16037
|
-
rows:
|
|
16065
|
+
rows: _,
|
|
16038
16066
|
useWrapper: $ = !0,
|
|
16039
16067
|
onChange: L,
|
|
16040
16068
|
...I
|
|
16041
16069
|
}, j) => {
|
|
16042
|
-
const W = [o, "pkt-textinput", "pkt-textarea"].join(" "), K = n || `${e}-label`,
|
|
16070
|
+
const W = [o, "pkt-textinput", "pkt-textarea"].join(" "), K = n || `${e}-label`, z = Da(null), [P, N] = gt(0), q = (X) => {
|
|
16043
16071
|
var de, Q;
|
|
16044
16072
|
if (r && N(((Q = (de = X.currentTarget) == null ? void 0 : de.value) == null ? void 0 : Q.length) || 0), L)
|
|
16045
16073
|
return L(X);
|
|
16046
16074
|
};
|
|
16047
16075
|
return yi(() => {
|
|
16048
16076
|
var X, de;
|
|
16049
|
-
typeof j == "function" && j(
|
|
16077
|
+
typeof j == "function" && j(z.current), r && N(((de = (X = z == null ? void 0 : z.current) == null ? void 0 : X.value) == null ? void 0 : de.length) || 0);
|
|
16050
16078
|
}, [j]), /* @__PURE__ */ g.jsx(
|
|
16051
|
-
|
|
16079
|
+
_a,
|
|
16052
16080
|
{
|
|
16053
16081
|
ariaDescribedby: t,
|
|
16054
16082
|
className: W,
|
|
@@ -16072,13 +16100,13 @@ const K_ = je(
|
|
|
16072
16100
|
children: /* @__PURE__ */ g.jsx(
|
|
16073
16101
|
"textarea",
|
|
16074
16102
|
{
|
|
16075
|
-
ref:
|
|
16103
|
+
ref: z,
|
|
16076
16104
|
className: `pkt-input ${b ? "pkt-input--fullwidth" : ""} ${i && P > i ? "pkt-input--counter-error" : ""}`,
|
|
16077
|
-
name:
|
|
16105
|
+
name: x || e,
|
|
16078
16106
|
id: e,
|
|
16079
16107
|
placeholder: A,
|
|
16080
16108
|
disabled: u,
|
|
16081
|
-
rows:
|
|
16109
|
+
rows: _,
|
|
16082
16110
|
"aria-labelledby": K,
|
|
16083
16111
|
"aria-invalid": d,
|
|
16084
16112
|
"aria-errormessage": `${e}-error`,
|
|
@@ -16091,40 +16119,40 @@ const K_ = je(
|
|
|
16091
16119
|
}
|
|
16092
16120
|
);
|
|
16093
16121
|
export {
|
|
16094
|
-
|
|
16095
|
-
|
|
16122
|
+
bx as PktAccordion,
|
|
16123
|
+
Ux as PktAccordionItem,
|
|
16096
16124
|
pp as PktAlert,
|
|
16097
16125
|
Y2 as PktBackLink,
|
|
16098
|
-
|
|
16126
|
+
Wx as PktBreadcrumbs,
|
|
16099
16127
|
kr as PktButton,
|
|
16100
16128
|
J2 as PktCard,
|
|
16101
16129
|
Js as PktCheckbox,
|
|
16102
16130
|
X2 as PktDatepicker,
|
|
16103
|
-
|
|
16104
|
-
|
|
16105
|
-
|
|
16131
|
+
Vx as PktFooter,
|
|
16132
|
+
zx as PktFooterSimple,
|
|
16133
|
+
Gx as PktHeader,
|
|
16106
16134
|
pe as PktIcon,
|
|
16107
16135
|
Q2 as PktInput,
|
|
16108
|
-
|
|
16136
|
+
_a as PktInputWrapper,
|
|
16109
16137
|
ey as PktLink,
|
|
16110
16138
|
ty as PktLinkCard,
|
|
16111
16139
|
ny as PktLoader,
|
|
16112
16140
|
ay as PktMessagebox,
|
|
16113
|
-
|
|
16114
|
-
|
|
16115
|
-
|
|
16116
|
-
|
|
16141
|
+
sx as PktPreview,
|
|
16142
|
+
dx as PktProgressbar,
|
|
16143
|
+
hx as PktRadioButton,
|
|
16144
|
+
Kx as PktSearchInput,
|
|
16117
16145
|
qc as PktSelect,
|
|
16118
|
-
|
|
16119
|
-
|
|
16146
|
+
Xx as PktStep,
|
|
16147
|
+
Jx as PktStepper,
|
|
16120
16148
|
Us as PktTable,
|
|
16121
|
-
|
|
16149
|
+
Vs as PktTableBody,
|
|
16122
16150
|
At as PktTableDataCell,
|
|
16123
16151
|
Ws as PktTableHeader,
|
|
16124
16152
|
Mt as PktTableHeaderCell,
|
|
16125
16153
|
pr as PktTableRow,
|
|
16126
|
-
|
|
16154
|
+
rx as PktTabs,
|
|
16127
16155
|
ya as PktTag,
|
|
16128
|
-
|
|
16156
|
+
Qx as PktTextarea,
|
|
16129
16157
|
Hc as PktTextinput
|
|
16130
16158
|
};
|