@scalar/api-reference 0.6.16 → 0.6.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/browser/standalone.js +23 -1
- package/dist/index.js +700 -690
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var J5 = Object.defineProperty;
|
|
3
3
|
var e3 = (r, e, t) => e in r ? J5(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
4
4
|
var wc = (r, e, t) => (e3(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
5
|
-
import { cloneVNode as t3, h as Le, Fragment as oe, inject as bt, provide as jt, ref as Y, onMounted as Pe, watchEffect as Xt, computed as V, defineComponent as j, onUnmounted as St, watch as Be, Teleport as r3, reactive as Rr, unref as x, shallowRef as n3, nextTick as ar, toRaw as qt, openBlock as _, createBlock as F, resolveDynamicComponent as
|
|
5
|
+
import { cloneVNode as t3, h as Le, Fragment as oe, inject as bt, provide as jt, ref as Y, onMounted as Pe, watchEffect as Xt, computed as V, defineComponent as j, onUnmounted as St, watch as Be, Teleport as r3, reactive as Rr, unref as x, shallowRef as n3, nextTick as ar, toRaw as qt, openBlock as _, createBlock as F, resolveDynamicComponent as _a, withCtx as W, createTextVNode as Ze, toDisplayString as N, createCommentVNode as ee, getCurrentScope as o3, onScopeDispose as i3, getCurrentInstance as s3, readonly as n0, createElementBlock as Z, createElementVNode as k, createVNode as E, normalizeClass as ue, normalizeStyle as Is, renderSlot as de, renderList as Xe, createStaticVNode as Hs, pushScopeId as Kr, popScopeId as Jr, withDirectives as Qe, withModifiers as l3, vModelSelect as a3, vModelText as pt, vModelCheckbox as Cl, vShow as Br, withKeys as c3, defineAsyncComponent as s2, useCssVars as l2, mergeProps as u3, createSlots as bc, TransitionGroup as h3, toRef as d3 } from "vue";
|
|
6
6
|
import f3 from "rehype-document";
|
|
7
7
|
import O3 from "rehype-format";
|
|
8
8
|
import p3, { defaultSchema as Sc } from "rehype-sanitize";
|
|
@@ -26,20 +26,20 @@ function Ue({ visible: r = !0, features: e = 0, ourProps: t, theirProps: n, ...o
|
|
|
26
26
|
var i;
|
|
27
27
|
let s = c2(n, t), l = Object.assign(o, { props: s });
|
|
28
28
|
if (r || e & 2 && s.static)
|
|
29
|
-
return
|
|
29
|
+
return Zl(l);
|
|
30
30
|
if (e & 1) {
|
|
31
31
|
let a = (i = s.unmount) == null || i ? 0 : 1;
|
|
32
32
|
return He(a, { 0() {
|
|
33
33
|
return null;
|
|
34
34
|
}, 1() {
|
|
35
|
-
return
|
|
35
|
+
return Zl({ ...o, props: { ...s, hidden: !0, style: { display: "none" } } });
|
|
36
36
|
} });
|
|
37
37
|
}
|
|
38
|
-
return
|
|
38
|
+
return Zl(l);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Zl({ props: r, attrs: e, slots: t, slot: n, name: o }) {
|
|
41
41
|
var i, s;
|
|
42
|
-
let { as: l, ...a } =
|
|
42
|
+
let { as: l, ...a } = o0(r, ["unmount", "static"]), c = (i = t.default) == null ? void 0 : i.call(t, n), u = {};
|
|
43
43
|
if (n) {
|
|
44
44
|
let h = !1, d = [];
|
|
45
45
|
for (let [f, O] of Object.entries(n))
|
|
@@ -94,7 +94,7 @@ function x3(r) {
|
|
|
94
94
|
e[t] === void 0 && delete e[t];
|
|
95
95
|
return e;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function o0(r, e = []) {
|
|
98
98
|
let t = Object.assign({}, r);
|
|
99
99
|
for (let n of e)
|
|
100
100
|
n in t && delete t[n];
|
|
@@ -149,7 +149,7 @@ function re(r) {
|
|
|
149
149
|
}
|
|
150
150
|
let u2 = Symbol("Context");
|
|
151
151
|
var Tt = ((r) => (r[r.Open = 1] = "Open", r[r.Closed = 2] = "Closed", r[r.Closing = 4] = "Closing", r[r.Opening = 8] = "Opening", r))(Tt || {});
|
|
152
|
-
function
|
|
152
|
+
function i0() {
|
|
153
153
|
return bt(u2, null);
|
|
154
154
|
}
|
|
155
155
|
function h2(r) {
|
|
@@ -162,7 +162,7 @@ function yc(r, e) {
|
|
|
162
162
|
if (typeof t == "string" && t.toLowerCase() === "button")
|
|
163
163
|
return "button";
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function s0(r, e) {
|
|
166
166
|
let t = Y(yc(r.value.type, r.value.as));
|
|
167
167
|
return Pe(() => {
|
|
168
168
|
t.value = yc(r.value.type, r.value.as);
|
|
@@ -208,20 +208,20 @@ function Tn(r) {
|
|
|
208
208
|
}
|
|
209
209
|
return document;
|
|
210
210
|
}
|
|
211
|
-
let
|
|
211
|
+
let $a = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((r) => `${r}:not([tabindex='-1'])`).join(",");
|
|
212
212
|
var et = ((r) => (r[r.First = 1] = "First", r[r.Previous = 2] = "Previous", r[r.Next = 4] = "Next", r[r.Last = 8] = "Last", r[r.WrapAround = 16] = "WrapAround", r[r.NoScroll = 32] = "NoScroll", r))(et || {}), Vn = ((r) => (r[r.Error = 0] = "Error", r[r.Overflow = 1] = "Overflow", r[r.Success = 2] = "Success", r[r.Underflow = 3] = "Underflow", r))(Vn || {}), R3 = ((r) => (r[r.Previous = -1] = "Previous", r[r.Next = 1] = "Next", r))(R3 || {});
|
|
213
213
|
function A3(r = document.body) {
|
|
214
|
-
return r == null ? [] : Array.from(r.querySelectorAll(
|
|
214
|
+
return r == null ? [] : Array.from(r.querySelectorAll($a)).sort((e, t) => Math.sign((e.tabIndex || Number.MAX_SAFE_INTEGER) - (t.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
215
215
|
}
|
|
216
|
-
var
|
|
216
|
+
var l0 = ((r) => (r[r.Strict = 0] = "Strict", r[r.Loose = 1] = "Loose", r))(l0 || {});
|
|
217
217
|
function d2(r, e = 0) {
|
|
218
218
|
var t;
|
|
219
219
|
return r === ((t = Tn(r)) == null ? void 0 : t.body) ? !1 : He(e, { 0() {
|
|
220
|
-
return r.matches(
|
|
220
|
+
return r.matches($a);
|
|
221
221
|
}, 1() {
|
|
222
222
|
let n = r;
|
|
223
223
|
for (; n !== null; ) {
|
|
224
|
-
if (n.matches(
|
|
224
|
+
if (n.matches($a))
|
|
225
225
|
return !0;
|
|
226
226
|
n = n.parentElement;
|
|
227
227
|
}
|
|
@@ -315,7 +315,7 @@ function O2(r, e, t = V(() => !0)) {
|
|
|
315
315
|
if (u != null && u.contains(l) || i.composed && i.composedPath().includes(u))
|
|
316
316
|
return;
|
|
317
317
|
}
|
|
318
|
-
return !d2(l,
|
|
318
|
+
return !d2(l, l0.Loose) && l.tabIndex !== -1 && i.preventDefault(), e(i, l);
|
|
319
319
|
}
|
|
320
320
|
let o = Y(null);
|
|
321
321
|
Ti("pointerdown", (i) => {
|
|
@@ -376,7 +376,7 @@ function Gs(r) {
|
|
|
376
376
|
throw e;
|
|
377
377
|
}));
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function a0() {
|
|
380
380
|
let r = [], e = { addEventListener(t, n, o, i) {
|
|
381
381
|
return t.addEventListener(n, o, i), e.add(() => t.removeEventListener(n, o, i));
|
|
382
382
|
}, requestAnimationFrame(...t) {
|
|
@@ -402,7 +402,7 @@ function l0() {
|
|
|
402
402
|
Object.assign(t.style, { [n]: i });
|
|
403
403
|
});
|
|
404
404
|
}, group(t) {
|
|
405
|
-
let n =
|
|
405
|
+
let n = a0();
|
|
406
406
|
return t(n), this.add(() => n.dispose());
|
|
407
407
|
}, add(t) {
|
|
408
408
|
return r.push(t), () => {
|
|
@@ -559,7 +559,7 @@ function S2(r, e) {
|
|
|
559
559
|
return !0;
|
|
560
560
|
return !1;
|
|
561
561
|
}
|
|
562
|
-
let
|
|
562
|
+
let Xl = /* @__PURE__ */ new Map(), So = /* @__PURE__ */ new Map();
|
|
563
563
|
function Qc(r, e = Y(!0)) {
|
|
564
564
|
Xt((t) => {
|
|
565
565
|
var n;
|
|
@@ -575,18 +575,18 @@ function Qc(r, e = Y(!0)) {
|
|
|
575
575
|
let l = (s = So.get(o)) != null ? s : 1;
|
|
576
576
|
if (l === 1 ? So.delete(o) : So.set(o, l - 1), l !== 1)
|
|
577
577
|
return;
|
|
578
|
-
let a =
|
|
579
|
-
a && (a["aria-hidden"] === null ? o.removeAttribute("aria-hidden") : o.setAttribute("aria-hidden", a["aria-hidden"]), o.inert = a.inert,
|
|
578
|
+
let a = Xl.get(o);
|
|
579
|
+
a && (a["aria-hidden"] === null ? o.removeAttribute("aria-hidden") : o.setAttribute("aria-hidden", a["aria-hidden"]), o.inert = a.inert, Xl.delete(o));
|
|
580
580
|
});
|
|
581
581
|
let i = (n = So.get(o)) != null ? n : 0;
|
|
582
|
-
So.set(o, i + 1), i === 0 && (
|
|
582
|
+
So.set(o, i + 1), i === 0 && (Xl.set(o, { "aria-hidden": o.getAttribute("aria-hidden"), inert: o.inert }), o.setAttribute("aria-hidden", "true"), o.inert = !0);
|
|
583
583
|
});
|
|
584
584
|
}
|
|
585
585
|
let y2 = Symbol("ForcePortalRootContext");
|
|
586
586
|
function H3() {
|
|
587
587
|
return bt(y2, !1);
|
|
588
588
|
}
|
|
589
|
-
let
|
|
589
|
+
let Pa = j({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: !1 } }, setup(r, { slots: e, attrs: t }) {
|
|
590
590
|
return jt(y2, r.force), () => {
|
|
591
591
|
let { force: n, ...o } = r;
|
|
592
592
|
return Ue({ theirProps: o, ourProps: {}, slot: {}, slots: e, attrs: t, name: "ForcePortalRoot" });
|
|
@@ -610,7 +610,7 @@ let k2 = j({ name: "Portal", props: { as: { type: [Object, String], default: "di
|
|
|
610
610
|
Xt(() => {
|
|
611
611
|
i || s != null && (l.value = s.resolveTarget());
|
|
612
612
|
});
|
|
613
|
-
let a = bt(
|
|
613
|
+
let a = bt(Ta, null);
|
|
614
614
|
return Pe(() => {
|
|
615
615
|
let c = re(n);
|
|
616
616
|
c && a && St(a.register(c));
|
|
@@ -624,9 +624,9 @@ let k2 = j({ name: "Portal", props: { as: { type: [Object, String], default: "di
|
|
|
624
624
|
let c = { ref: n, "data-headlessui-portal": "" };
|
|
625
625
|
return Le(r3, { to: l.value }, Ue({ ourProps: c, theirProps: r, slot: {}, attrs: t, slots: e, name: "Portal" }));
|
|
626
626
|
};
|
|
627
|
-
} }),
|
|
627
|
+
} }), Ta = Symbol("PortalParentContext");
|
|
628
628
|
function G3() {
|
|
629
|
-
let r = bt(
|
|
629
|
+
let r = bt(Ta, null), e = Y([]);
|
|
630
630
|
function t(i) {
|
|
631
631
|
return e.value.push(i), r && r.register(i), () => n(i);
|
|
632
632
|
}
|
|
@@ -636,7 +636,7 @@ function G3() {
|
|
|
636
636
|
}
|
|
637
637
|
let o = { register: t, unregister: n, portals: e };
|
|
638
638
|
return [e, j({ name: "PortalWrapper", setup(i, { slots: s }) {
|
|
639
|
-
return jt(
|
|
639
|
+
return jt(Ta, o), () => {
|
|
640
640
|
var l;
|
|
641
641
|
return (l = s.default) == null ? void 0 : l.call(s);
|
|
642
642
|
};
|
|
@@ -651,7 +651,7 @@ let x2 = Symbol("PortalGroupContext"), F3 = j({ name: "PortalGroup", props: { as
|
|
|
651
651
|
return Ue({ theirProps: i, ourProps: {}, slot: {}, attrs: e, slots: t, name: "PortalGroup" });
|
|
652
652
|
};
|
|
653
653
|
} }), Q2 = Symbol("StackContext");
|
|
654
|
-
var
|
|
654
|
+
var Ca = ((r) => (r[r.Add = 0] = "Add", r[r.Remove = 1] = "Remove", r))(Ca || {});
|
|
655
655
|
function D3() {
|
|
656
656
|
return bt(Q2, () => {
|
|
657
657
|
});
|
|
@@ -732,7 +732,7 @@ function ig() {
|
|
|
732
732
|
return n.containers.flatMap((l) => l()).some((l) => l.contains(s));
|
|
733
733
|
}
|
|
734
734
|
if (window.getComputedStyle(e.documentElement).scrollBehavior !== "auto") {
|
|
735
|
-
let s =
|
|
735
|
+
let s = a0();
|
|
736
736
|
s.style(e.documentElement, "scroll-behavior", "auto"), t.add(() => t.microTask(() => s.dispose()));
|
|
737
737
|
}
|
|
738
738
|
t.style(e.body, "marginTop", `-${r}px`), window.scrollTo(0, 0);
|
|
@@ -767,7 +767,7 @@ function lg(r) {
|
|
|
767
767
|
}
|
|
768
768
|
let dn = ng(() => /* @__PURE__ */ new Map(), { PUSH(r, e) {
|
|
769
769
|
var t;
|
|
770
|
-
let n = (t = this.get(r)) != null ? t : { doc: r, count: 0, d:
|
|
770
|
+
let n = (t = this.get(r)) != null ? t : { doc: r, count: 0, d: a0(), meta: /* @__PURE__ */ new Set() };
|
|
771
771
|
return n.count++, n.meta.add(e), this.set(r, n), this;
|
|
772
772
|
}, POP(r, e) {
|
|
773
773
|
let t = this.get(r);
|
|
@@ -825,9 +825,9 @@ function cg({ defaultContainers: r = [], portals: e, mainTreeNodeRef: t } = {})
|
|
|
825
825
|
} };
|
|
826
826
|
}
|
|
827
827
|
var ug = ((r) => (r[r.Open = 0] = "Open", r[r.Closed = 1] = "Closed", r))(ug || {});
|
|
828
|
-
let
|
|
828
|
+
let Za = Symbol("DialogContext");
|
|
829
829
|
function pi(r) {
|
|
830
|
-
let e = bt(
|
|
830
|
+
let e = bt(Za, null);
|
|
831
831
|
if (e === null) {
|
|
832
832
|
let t = new Error(`<${r} /> is missing a parent <Dialog /> component.`);
|
|
833
833
|
throw Error.captureStackTrace && Error.captureStackTrace(t, pi), t;
|
|
@@ -840,12 +840,12 @@ let Ci = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", hg = j({ name: "Dialog", inheri
|
|
|
840
840
|
Pe(() => {
|
|
841
841
|
s.value = !0;
|
|
842
842
|
});
|
|
843
|
-
let l = Y(0), a =
|
|
843
|
+
let l = Y(0), a = i0(), c = V(() => r.open === Ci && a !== null ? (a.value & Tt.Open) === Tt.Open : r.open), u = Y(null), h = V(() => Tn(u));
|
|
844
844
|
if (o({ el: u, $el: u }), !(r.open !== Ci || a !== null))
|
|
845
845
|
throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
|
|
846
846
|
if (typeof c.value != "boolean")
|
|
847
847
|
throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${c.value === Ci ? void 0 : r.open}`);
|
|
848
|
-
let d = V(() => s.value && c.value ? 0 : 1), f = V(() => d.value === 0), O = V(() => l.value > 1), m = bt(
|
|
848
|
+
let d = V(() => s.value && c.value ? 0 : 1), f = V(() => d.value === 0), O = V(() => l.value > 1), m = bt(Za, null) !== null, [v, b] = G3(), { resolveContainers: Q, mainTreeNodeRef: $, MainTreeNode: P } = cg({ portals: v, defaultContainers: [V(() => {
|
|
849
849
|
var me;
|
|
850
850
|
return (me = H.panelRef.value) != null ? me : u.value;
|
|
851
851
|
})] }), R = V(() => O.value ? "parent" : "leaf"), A = V(() => a !== null ? (a.value & Tt.Closing) === Tt.Closing : !1), L = V(() => m || A.value ? !1 : f.value), D = V(() => {
|
|
@@ -859,14 +859,14 @@ let Ci = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", hg = j({ name: "Dialog", inheri
|
|
|
859
859
|
});
|
|
860
860
|
Qc(U, I), K3({ type: "Dialog", enabled: V(() => d.value === 0), element: u, onUpdate: (me, Se) => {
|
|
861
861
|
if (Se === "Dialog")
|
|
862
|
-
return He(me, { [
|
|
862
|
+
return He(me, { [Ca.Add]: () => l.value += 1, [Ca.Remove]: () => l.value -= 1 });
|
|
863
863
|
} });
|
|
864
864
|
let B = eg({ name: "DialogDescription", slot: V(() => ({ open: c.value })) }), G = Y(null), H = { titleId: G, panelRef: Y(null), dialogState: d, setTitleId(me) {
|
|
865
865
|
G.value !== me && (G.value = me);
|
|
866
866
|
}, close() {
|
|
867
867
|
e("close", !1);
|
|
868
868
|
} };
|
|
869
|
-
jt(
|
|
869
|
+
jt(Za, H);
|
|
870
870
|
let le = V(() => !(!f.value || O.value));
|
|
871
871
|
O2(Q, (me, Se) => {
|
|
872
872
|
H.close(), ar(() => Se == null ? void 0 : Se.focus());
|
|
@@ -894,7 +894,7 @@ let Ci = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", hg = j({ name: "Dialog", inheri
|
|
|
894
894
|
Me.observe(Se), me(() => Me.disconnect());
|
|
895
895
|
}), () => {
|
|
896
896
|
let { id: me, open: Se, initialFocus: Me, ...je } = r, ve = { ...t, ref: u, id: me, role: "dialog", "aria-modal": d.value === 0 ? !0 : void 0, "aria-labelledby": G.value, "aria-describedby": B.value }, ye = { open: d.value === 0 };
|
|
897
|
-
return Le(
|
|
897
|
+
return Le(Pa, { force: !0 }, () => [Le(k2, () => Le(F3, { target: u.value }, () => Le(Pa, { force: !1 }, () => Le(bo, { initialFocus: Me, containers: Q, features: f.value ? He(R.value, { parent: bo.features.RestoreFocus, leaf: bo.features.All & ~bo.features.FocusLock }) : bo.features.None }, () => Le(b, {}, () => Ue({ ourProps: ve, theirProps: { ...je, ...t }, slot: ye, attrs: t, slots: n, visible: d.value === 0, features: Qr.RenderStrategy | Qr.Static, name: "Dialog" })))))), Le(P)]);
|
|
898
898
|
};
|
|
899
899
|
} });
|
|
900
900
|
j({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-overlay-${yt()}` } }, setup(r, { attrs: e, slots: t }) {
|
|
@@ -914,7 +914,7 @@ j({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div
|
|
|
914
914
|
throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
|
|
915
915
|
}), () => {
|
|
916
916
|
let { id: s, ...l } = r, a = { id: s, ref: i, "aria-hidden": !0 };
|
|
917
|
-
return Le(
|
|
917
|
+
return Le(Pa, { force: !0 }, () => Le(k2, () => Ue({ ourProps: a, theirProps: { ...e, ...l }, slot: { open: o.dialogState.value === 0 }, attrs: e, slots: t, name: "DialogBackdrop" })));
|
|
918
918
|
};
|
|
919
919
|
} });
|
|
920
920
|
let dg = j({ name: "DialogPanel", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-panel-${yt()}` } }, setup(r, { attrs: e, slots: t, expose: n }) {
|
|
@@ -938,11 +938,11 @@ let dg = j({ name: "DialogPanel", props: { as: { type: [Object, String], default
|
|
|
938
938
|
} }), Og = tg;
|
|
939
939
|
var pg = ((r) => (r[r.Open = 0] = "Open", r[r.Closed = 1] = "Closed", r))(pg || {});
|
|
940
940
|
let $2 = Symbol("DisclosureContext");
|
|
941
|
-
function
|
|
941
|
+
function c0(r) {
|
|
942
942
|
let e = bt($2, null);
|
|
943
943
|
if (e === null) {
|
|
944
944
|
let t = new Error(`<${r} /> is missing a parent <Disclosure /> component.`);
|
|
945
|
-
throw Error.captureStackTrace && Error.captureStackTrace(t,
|
|
945
|
+
throw Error.captureStackTrace && Error.captureStackTrace(t, c0), t;
|
|
946
946
|
}
|
|
947
947
|
return e;
|
|
948
948
|
}
|
|
@@ -965,7 +965,7 @@ let mg = j({ name: "Disclosure", props: { as: { type: [Object, String], default:
|
|
|
965
965
|
return Ue({ theirProps: a, ourProps: {}, slot: c, slots: e, attrs: t, name: "Disclosure" });
|
|
966
966
|
};
|
|
967
967
|
} }), vg = j({ name: "DisclosureButton", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: !1 }, id: { type: String, default: null } }, setup(r, { attrs: e, slots: t, expose: n }) {
|
|
968
|
-
let o =
|
|
968
|
+
let o = c0("DisclosureButton"), i = gg(), s = V(() => i === null ? !1 : i.value === o.panelId.value);
|
|
969
969
|
Pe(() => {
|
|
970
970
|
s.value || r.id !== null && (o.buttonId.value = r.id);
|
|
971
971
|
}), St(() => {
|
|
@@ -975,7 +975,7 @@ let mg = j({ name: "Disclosure", props: { as: { type: [Object, String], default:
|
|
|
975
975
|
n({ el: l, $el: l }), s.value || Xt(() => {
|
|
976
976
|
o.button.value = l.value;
|
|
977
977
|
});
|
|
978
|
-
let a =
|
|
978
|
+
let a = s0(V(() => ({ as: r.as, type: e.type })), l);
|
|
979
979
|
function c() {
|
|
980
980
|
var d;
|
|
981
981
|
r.disabled || (s.value ? (o.toggleDisclosure(), (d = re(o.button)) == null || d.focus()) : o.toggleDisclosure());
|
|
@@ -1011,13 +1011,13 @@ let mg = j({ name: "Disclosure", props: { as: { type: [Object, String], default:
|
|
|
1011
1011
|
return Ue({ ourProps: v, theirProps: m, slot: f, attrs: e, slots: t, name: "DisclosureButton" });
|
|
1012
1012
|
};
|
|
1013
1013
|
} }), wg = j({ name: "DisclosurePanel", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: null } }, setup(r, { attrs: e, slots: t, expose: n }) {
|
|
1014
|
-
let o =
|
|
1014
|
+
let o = c0("DisclosurePanel");
|
|
1015
1015
|
Pe(() => {
|
|
1016
1016
|
r.id !== null && (o.panelId.value = r.id);
|
|
1017
1017
|
}), St(() => {
|
|
1018
1018
|
o.panelId.value = null;
|
|
1019
1019
|
}), n({ el: o.panel, $el: o.panel }), jt(P2, o.panelId);
|
|
1020
|
-
let i =
|
|
1020
|
+
let i = i0(), s = V(() => i !== null ? (i.value & Tt.Open) === Tt.Open : o.disclosureState.value === 0);
|
|
1021
1021
|
return () => {
|
|
1022
1022
|
var l;
|
|
1023
1023
|
let a = { open: o.disclosureState.value === 0, close: o.close }, { id: c, ...u } = r, h = { id: (l = o.panelId.value) != null ? l : c, ref: o.panel };
|
|
@@ -1132,7 +1132,7 @@ let $g = j({ name: "Listbox", emits: { "update:modelValue": (r) => !0 }, props:
|
|
|
1132
1132
|
} };
|
|
1133
1133
|
O2([s, l], ($, P) => {
|
|
1134
1134
|
var R;
|
|
1135
|
-
b.closeListbox(), d2(P,
|
|
1135
|
+
b.closeListbox(), d2(P, l0.Loose) || ($.preventDefault(), (R = re(s)) == null || R.focus());
|
|
1136
1136
|
}, V(() => o.value === 0)), jt(T2, b), h2(V(() => He(o.value, { 0: Tt.Open, 1: Tt.Closed })));
|
|
1137
1137
|
let Q = V(() => {
|
|
1138
1138
|
var $;
|
|
@@ -1152,7 +1152,7 @@ let $g = j({ name: "Listbox", emits: { "update:modelValue": (r) => !0 }, props:
|
|
|
1152
1152
|
}, { immediate: !0 });
|
|
1153
1153
|
}), () => {
|
|
1154
1154
|
let { name: $, modelValue: P, disabled: R, form: A, ...L } = r, D = { open: o.value === 0, disabled: R, value: v.value };
|
|
1155
|
-
return Le(oe, [...$ != null && v.value != null ? p2({ [$]: v.value }).map(([I, U]) => Le(Kn, x3({ features: Dn.Hidden, key: I, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: A, name: I, value: U }))) : [], Ue({ ourProps: {}, theirProps: { ...t, ...
|
|
1155
|
+
return Le(oe, [...$ != null && v.value != null ? p2({ [$]: v.value }).map(([I, U]) => Le(Kn, x3({ features: Dn.Hidden, key: I, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: A, name: I, value: U }))) : [], Ue({ ourProps: {}, theirProps: { ...t, ...o0(L, ["defaultValue", "onUpdate:modelValue", "horizontal", "multiple", "by"]) }, slot: D, slots: e, attrs: t, name: "Listbox" })]);
|
|
1156
1156
|
};
|
|
1157
1157
|
} });
|
|
1158
1158
|
j({ name: "ListboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: () => `headlessui-listbox-label-${yt()}` } }, setup(r, { attrs: e, slots: t }) {
|
|
@@ -1203,7 +1203,7 @@ let Pg = j({ name: "ListboxButton", props: { as: { type: [Object, String], defau
|
|
|
1203
1203
|
return (u = re(o.optionsRef)) == null ? void 0 : u.focus({ preventScroll: !0 });
|
|
1204
1204
|
})));
|
|
1205
1205
|
}
|
|
1206
|
-
let a =
|
|
1206
|
+
let a = s0(V(() => ({ as: r.as, type: e.type })), o.buttonRef);
|
|
1207
1207
|
return () => {
|
|
1208
1208
|
var c, u;
|
|
1209
1209
|
let h = { open: o.listboxState.value === 0, disabled: o.disabled.value, value: o.value.value }, { id: d, ...f } = r, O = { ref: o.buttonRef, id: d, type: a.value, "aria-haspopup": "listbox", "aria-controls": (c = re(o.optionsRef)) == null ? void 0 : c.id, "aria-expanded": o.listboxState.value === 0, "aria-labelledby": o.labelRef.value ? [(u = re(o.labelRef)) == null ? void 0 : u.id, d].join(" ") : void 0, disabled: o.disabled.value === !0 ? !0 : void 0, onKeydown: i, onKeyup: s, onClick: l };
|
|
@@ -1251,7 +1251,7 @@ let Pg = j({ name: "ListboxButton", props: { as: { type: [Object, String], defau
|
|
|
1251
1251
|
break;
|
|
1252
1252
|
}
|
|
1253
1253
|
}
|
|
1254
|
-
let l =
|
|
1254
|
+
let l = i0(), a = V(() => l !== null ? (l.value & Tt.Open) === Tt.Open : o.listboxState.value === 0);
|
|
1255
1255
|
return () => {
|
|
1256
1256
|
var c, u, h, d;
|
|
1257
1257
|
let f = { open: o.listboxState.value === 0 }, { id: O, ...m } = r, v = { "aria-activedescendant": o.activeOptionIndex.value === null || (c = o.options.value[o.activeOptionIndex.value]) == null ? void 0 : c.id, "aria-multiselectable": o.mode.value === 1 ? !0 : void 0, "aria-labelledby": (d = (u = re(o.labelRef)) == null ? void 0 : u.id) != null ? d : (h = re(o.buttonRef)) == null ? void 0 : h.id, "aria-orientation": o.orientation.value, id: O, onKeydown: s, role: "listbox", tabIndex: 0, ref: o.optionsRef };
|
|
@@ -1338,7 +1338,7 @@ function mi(r) {
|
|
|
1338
1338
|
}
|
|
1339
1339
|
return e;
|
|
1340
1340
|
}
|
|
1341
|
-
let
|
|
1341
|
+
let u0 = Symbol("TabsSSRContext"), Z2 = j({ name: "TabGroup", emits: { change: (r) => !0 }, props: { as: { type: [Object, String], default: "template" }, selectedIndex: { type: [Number], default: null }, defaultIndex: { type: [Number], default: 0 }, vertical: { type: [Boolean], default: !1 }, manual: { type: [Boolean], default: !1 } }, inheritAttrs: !1, setup(r, { slots: e, attrs: t, emit: n }) {
|
|
1342
1342
|
var o;
|
|
1343
1343
|
let i = Y((o = r.selectedIndex) != null ? o : r.defaultIndex), s = Y([]), l = Y([]), a = V(() => r.selectedIndex !== null), c = V(() => a.value ? r.selectedIndex : i.value);
|
|
1344
1344
|
function u(m) {
|
|
@@ -1384,7 +1384,7 @@ let c0 = Symbol("TabsSSRContext"), Z2 = j({ name: "TabGroup", emits: { change: (
|
|
|
1384
1384
|
let d = Y({ tabs: [], panels: [] }), f = Y(!1);
|
|
1385
1385
|
Pe(() => {
|
|
1386
1386
|
f.value = !0;
|
|
1387
|
-
}), jt(
|
|
1387
|
+
}), jt(u0, V(() => f.value ? null : d.value));
|
|
1388
1388
|
let O = V(() => r.selectedIndex);
|
|
1389
1389
|
return Pe(() => {
|
|
1390
1390
|
Be([O], () => {
|
|
@@ -1405,7 +1405,7 @@ let c0 = Symbol("TabsSSRContext"), Z2 = j({ name: "TabGroup", emits: { change: (
|
|
|
1405
1405
|
return b.focus(), !0;
|
|
1406
1406
|
}
|
|
1407
1407
|
return !1;
|
|
1408
|
-
} }), Ue({ theirProps: { ...t, ...
|
|
1408
|
+
} }), Ue({ theirProps: { ...t, ...o0(r, ["selectedIndex", "defaultIndex", "manual", "vertical", "onChange"]) }, ourProps: {}, slot: m, slots: e, attrs: t, name: "TabGroup" })]);
|
|
1409
1409
|
};
|
|
1410
1410
|
} }), X2 = j({ name: "TabList", props: { as: { type: [Object, String], default: "div" } }, setup(r, { attrs: e, slots: t }) {
|
|
1411
1411
|
let n = mi("TabList");
|
|
@@ -1413,10 +1413,10 @@ let c0 = Symbol("TabsSSRContext"), Z2 = j({ name: "TabGroup", emits: { change: (
|
|
|
1413
1413
|
let o = { selectedIndex: n.selectedIndex.value }, i = { role: "tablist", "aria-orientation": n.orientation.value };
|
|
1414
1414
|
return Ue({ ourProps: i, theirProps: r, slot: o, attrs: e, slots: t, name: "TabList" });
|
|
1415
1415
|
};
|
|
1416
|
-
} }),
|
|
1416
|
+
} }), Xa = j({ name: "Tab", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: !1 }, id: { type: String, default: () => `headlessui-tabs-tab-${yt()}` } }, setup(r, { attrs: e, slots: t, expose: n }) {
|
|
1417
1417
|
let o = mi("Tab"), i = Y(null);
|
|
1418
1418
|
n({ el: i, $el: i }), Pe(() => o.registerTab(i)), St(() => o.unregisterTab(i));
|
|
1419
|
-
let s = bt(
|
|
1419
|
+
let s = bt(u0), l = V(() => {
|
|
1420
1420
|
if (s.value) {
|
|
1421
1421
|
let v = s.value.tabs.indexOf(r.id);
|
|
1422
1422
|
return v === -1 ? s.value.tabs.push(r.id) - 1 : v;
|
|
@@ -1466,7 +1466,7 @@ let c0 = Symbol("TabsSSRContext"), Z2 = j({ name: "TabGroup", emits: { change: (
|
|
|
1466
1466
|
function O(v) {
|
|
1467
1467
|
v.preventDefault();
|
|
1468
1468
|
}
|
|
1469
|
-
let m =
|
|
1469
|
+
let m = s0(V(() => ({ as: r.as, type: e.type })), i);
|
|
1470
1470
|
return () => {
|
|
1471
1471
|
var v;
|
|
1472
1472
|
let b = { selected: c.value }, { id: Q, ...$ } = r, P = { ref: i, onKeydown: h, onMousedown: O, onClick: f, id: Q, role: "tab", type: m.value, "aria-controls": (v = re(o.panels.value[a.value])) == null ? void 0 : v.id, "aria-selected": c.value, tabIndex: c.value ? 0 : -1, disabled: r.disabled ? !0 : void 0 };
|
|
@@ -1481,7 +1481,7 @@ let c0 = Symbol("TabsSSRContext"), Z2 = j({ name: "TabGroup", emits: { change: (
|
|
|
1481
1481
|
} }), Pc = j({ name: "TabPanel", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: () => `headlessui-tabs-panel-${yt()}` }, tabIndex: { type: Number, default: 0 } }, setup(r, { attrs: e, slots: t, expose: n }) {
|
|
1482
1482
|
let o = mi("TabPanel"), i = Y(null);
|
|
1483
1483
|
n({ el: i, $el: i }), Pe(() => o.registerPanel(i)), St(() => o.unregisterPanel(i));
|
|
1484
|
-
let s = bt(
|
|
1484
|
+
let s = bt(u0), l = V(() => {
|
|
1485
1485
|
if (s.value) {
|
|
1486
1486
|
let u = s.value.panels.indexOf(r.id);
|
|
1487
1487
|
return u === -1 ? s.value.panels.push(r.id) - 1 : u;
|
|
@@ -1509,7 +1509,7 @@ const A2 = /* @__PURE__ */ j({
|
|
|
1509
1509
|
id: {}
|
|
1510
1510
|
},
|
|
1511
1511
|
setup(r) {
|
|
1512
|
-
return (e, t) => e.id !== "none" ? (_(), F(
|
|
1512
|
+
return (e, t) => e.id !== "none" ? (_(), F(_a("style"), { key: 0 }, {
|
|
1513
1513
|
default: W(() => [
|
|
1514
1514
|
Ze(N(x(jg)(e.id)), 1)
|
|
1515
1515
|
]),
|
|
@@ -1571,9 +1571,9 @@ var zn = {}, q2 = {}, Fs = {};
|
|
|
1571
1571
|
Fs.byteLength = zg;
|
|
1572
1572
|
Fs.toByteArray = Ig;
|
|
1573
1573
|
Fs.fromByteArray = Gg;
|
|
1574
|
-
var rr = [], At = [], Yg = typeof Uint8Array < "u" ? Uint8Array : Array,
|
|
1575
|
-
for (var qn = 0, Lg =
|
|
1576
|
-
rr[qn] =
|
|
1574
|
+
var rr = [], At = [], Yg = typeof Uint8Array < "u" ? Uint8Array : Array, Rl = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
1575
|
+
for (var qn = 0, Lg = Rl.length; qn < Lg; ++qn)
|
|
1576
|
+
rr[qn] = Rl[qn], At[Rl.charCodeAt(qn)] = qn;
|
|
1577
1577
|
At["-".charCodeAt(0)] = 62;
|
|
1578
1578
|
At["_".charCodeAt(0)] = 63;
|
|
1579
1579
|
function M2(r) {
|
|
@@ -1615,9 +1615,9 @@ function Gg(r) {
|
|
|
1615
1615
|
rr[e >> 10] + rr[e >> 4 & 63] + rr[e << 2 & 63] + "="
|
|
1616
1616
|
)), o.join("");
|
|
1617
1617
|
}
|
|
1618
|
-
var
|
|
1618
|
+
var h0 = {};
|
|
1619
1619
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
1620
|
-
|
|
1620
|
+
h0.read = function(r, e, t, n, o) {
|
|
1621
1621
|
var i, s, l = o * 8 - n - 1, a = (1 << l) - 1, c = a >> 1, u = -7, h = t ? o - 1 : 0, d = t ? -1 : 1, f = r[e + h];
|
|
1622
1622
|
for (h += d, i = f & (1 << -u) - 1, f >>= -u, u += l; u > 0; i = i * 256 + r[e + h], h += d, u -= 8)
|
|
1623
1623
|
;
|
|
@@ -1632,7 +1632,7 @@ u0.read = function(r, e, t, n, o) {
|
|
|
1632
1632
|
}
|
|
1633
1633
|
return (f ? -1 : 1) * s * Math.pow(2, i - n);
|
|
1634
1634
|
};
|
|
1635
|
-
|
|
1635
|
+
h0.write = function(r, e, t, n, o, i) {
|
|
1636
1636
|
var s, l, a, c = i * 8 - o - 1, u = (1 << c) - 1, h = u >> 1, d = o === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, f = n ? 0 : i - 1, O = n ? 1 : -1, m = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
|
|
1637
1637
|
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (l = isNaN(e) ? 1 : 0, s = u) : (s = Math.floor(Math.log(e) / Math.LN2), e * (a = Math.pow(2, -s)) < 1 && (s--, a *= 2), s + h >= 1 ? e += d / a : e += d * Math.pow(2, 1 - h), e * a >= 2 && (s++, a /= 2), s + h >= u ? (l = 0, s = u) : s + h >= 1 ? (l = (e * a - 1) * Math.pow(2, o), s = s + h) : (l = e * Math.pow(2, h - 1) * Math.pow(2, o), s = 0)); o >= 8; r[t + f] = l & 255, f += O, l /= 256, o -= 8)
|
|
1638
1638
|
;
|
|
@@ -1647,7 +1647,7 @@ u0.write = function(r, e, t, n, o, i) {
|
|
|
1647
1647
|
* @license MIT
|
|
1648
1648
|
*/
|
|
1649
1649
|
(function(r) {
|
|
1650
|
-
const e = Fs, t =
|
|
1650
|
+
const e = Fs, t = h0, n = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
1651
1651
|
r.Buffer = l, r.SlowBuffer = Q, r.INSPECT_MAX_BYTES = 50;
|
|
1652
1652
|
const o = 2147483647;
|
|
1653
1653
|
r.kMaxLength = o, l.TYPED_ARRAY_SUPPORT = i(), !l.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
@@ -1778,7 +1778,7 @@ u0.write = function(r, e, t, n, o, i) {
|
|
|
1778
1778
|
return g.length === 0 || w.copy(g, 0, 0, p), g;
|
|
1779
1779
|
}
|
|
1780
1780
|
if (w.length !== void 0)
|
|
1781
|
-
return typeof w.length != "number" ||
|
|
1781
|
+
return typeof w.length != "number" || Tl(w.length) ? s(0) : f(w);
|
|
1782
1782
|
if (w.type === "Buffer" && Array.isArray(w.data))
|
|
1783
1783
|
return f(w.data);
|
|
1784
1784
|
}
|
|
@@ -1871,7 +1871,7 @@ u0.write = function(r, e, t, n, o, i) {
|
|
|
1871
1871
|
return g;
|
|
1872
1872
|
case "utf8":
|
|
1873
1873
|
case "utf-8":
|
|
1874
|
-
return
|
|
1874
|
+
return Pl(w).length;
|
|
1875
1875
|
case "ucs2":
|
|
1876
1876
|
case "ucs-2":
|
|
1877
1877
|
case "utf16le":
|
|
@@ -1883,7 +1883,7 @@ u0.write = function(r, e, t, n, o, i) {
|
|
|
1883
1883
|
return vc(w).length;
|
|
1884
1884
|
default:
|
|
1885
1885
|
if (T)
|
|
1886
|
-
return y ? -1 :
|
|
1886
|
+
return y ? -1 : Pl(w).length;
|
|
1887
1887
|
p = ("" + p).toLowerCase(), T = !0;
|
|
1888
1888
|
}
|
|
1889
1889
|
}
|
|
@@ -1981,7 +1981,7 @@ u0.write = function(r, e, t, n, o, i) {
|
|
|
1981
1981
|
function A(w, p, g, y, T) {
|
|
1982
1982
|
if (w.length === 0)
|
|
1983
1983
|
return -1;
|
|
1984
|
-
if (typeof g == "string" ? (y = g, g = 0) : g > 2147483647 ? g = 2147483647 : g < -2147483648 && (g = -2147483648), g = +g,
|
|
1984
|
+
if (typeof g == "string" ? (y = g, g = 0) : g > 2147483647 ? g = 2147483647 : g < -2147483648 && (g = -2147483648), g = +g, Tl(g) && (g = T ? 0 : w.length - 1), g < 0 && (g = w.length + g), g >= w.length) {
|
|
1985
1985
|
if (T)
|
|
1986
1986
|
return -1;
|
|
1987
1987
|
g = w.length - 1;
|
|
@@ -2044,14 +2044,14 @@ u0.write = function(r, e, t, n, o, i) {
|
|
|
2044
2044
|
let q;
|
|
2045
2045
|
for (q = 0; q < y; ++q) {
|
|
2046
2046
|
const he = parseInt(p.substr(q * 2, 2), 16);
|
|
2047
|
-
if (
|
|
2047
|
+
if (Tl(he))
|
|
2048
2048
|
return q;
|
|
2049
2049
|
w[g + q] = he;
|
|
2050
2050
|
}
|
|
2051
2051
|
return q;
|
|
2052
2052
|
}
|
|
2053
2053
|
function I(w, p, g, y) {
|
|
2054
|
-
return Pi(
|
|
2054
|
+
return Pi(Pl(p, w.length - g), w, g, y);
|
|
2055
2055
|
}
|
|
2056
2056
|
function U(w, p, g, y) {
|
|
2057
2057
|
return Pi(G5(p), w, g, y);
|
|
@@ -2431,7 +2431,7 @@ u0.write = function(r, e, t, n, o, i) {
|
|
|
2431
2431
|
return this;
|
|
2432
2432
|
};
|
|
2433
2433
|
const Rn = {};
|
|
2434
|
-
function
|
|
2434
|
+
function $l(w, p, g) {
|
|
2435
2435
|
Rn[w] = class extends g {
|
|
2436
2436
|
constructor() {
|
|
2437
2437
|
super(), Object.defineProperty(this, "message", {
|
|
@@ -2456,19 +2456,19 @@ u0.write = function(r, e, t, n, o, i) {
|
|
|
2456
2456
|
}
|
|
2457
2457
|
};
|
|
2458
2458
|
}
|
|
2459
|
-
|
|
2459
|
+
$l(
|
|
2460
2460
|
"ERR_BUFFER_OUT_OF_BOUNDS",
|
|
2461
2461
|
function(w) {
|
|
2462
2462
|
return w ? `${w} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
|
|
2463
2463
|
},
|
|
2464
2464
|
RangeError
|
|
2465
|
-
),
|
|
2465
|
+
), $l(
|
|
2466
2466
|
"ERR_INVALID_ARG_TYPE",
|
|
2467
2467
|
function(w, p) {
|
|
2468
2468
|
return `The "${w}" argument must be of type number. Received type ${typeof p}`;
|
|
2469
2469
|
},
|
|
2470
2470
|
TypeError
|
|
2471
|
-
),
|
|
2471
|
+
), $l(
|
|
2472
2472
|
"ERR_OUT_OF_RANGE",
|
|
2473
2473
|
function(w, p, g) {
|
|
2474
2474
|
let y = `The value of "${w}" is out of range.`, T = g;
|
|
@@ -2513,7 +2513,7 @@ u0.write = function(r, e, t, n, o, i) {
|
|
|
2513
2513
|
w = w + "=";
|
|
2514
2514
|
return w;
|
|
2515
2515
|
}
|
|
2516
|
-
function
|
|
2516
|
+
function Pl(w, p) {
|
|
2517
2517
|
p = p || 1 / 0;
|
|
2518
2518
|
let g;
|
|
2519
2519
|
const y = w.length;
|
|
@@ -2597,7 +2597,7 @@ u0.write = function(r, e, t, n, o, i) {
|
|
|
2597
2597
|
function Ht(w, p) {
|
|
2598
2598
|
return w instanceof p || w != null && w.constructor != null && w.constructor.name != null && w.constructor.name === p.name;
|
|
2599
2599
|
}
|
|
2600
|
-
function
|
|
2600
|
+
function Tl(w) {
|
|
2601
2601
|
return w !== w;
|
|
2602
2602
|
}
|
|
2603
2603
|
const D5 = function() {
|
|
@@ -2617,28 +2617,28 @@ u0.write = function(r, e, t, n, o, i) {
|
|
|
2617
2617
|
}
|
|
2618
2618
|
})(q2);
|
|
2619
2619
|
var E2 = { exports: {} }, Ne = E2.exports = {}, Kt, Jt;
|
|
2620
|
-
function
|
|
2620
|
+
function Ra() {
|
|
2621
2621
|
throw new Error("setTimeout has not been defined");
|
|
2622
2622
|
}
|
|
2623
|
-
function
|
|
2623
|
+
function Aa() {
|
|
2624
2624
|
throw new Error("clearTimeout has not been defined");
|
|
2625
2625
|
}
|
|
2626
2626
|
(function() {
|
|
2627
2627
|
try {
|
|
2628
|
-
typeof setTimeout == "function" ? Kt = setTimeout : Kt =
|
|
2628
|
+
typeof setTimeout == "function" ? Kt = setTimeout : Kt = Ra;
|
|
2629
2629
|
} catch {
|
|
2630
|
-
Kt =
|
|
2630
|
+
Kt = Ra;
|
|
2631
2631
|
}
|
|
2632
2632
|
try {
|
|
2633
|
-
typeof clearTimeout == "function" ? Jt = clearTimeout : Jt =
|
|
2633
|
+
typeof clearTimeout == "function" ? Jt = clearTimeout : Jt = Aa;
|
|
2634
2634
|
} catch {
|
|
2635
|
-
Jt =
|
|
2635
|
+
Jt = Aa;
|
|
2636
2636
|
}
|
|
2637
2637
|
})();
|
|
2638
2638
|
function U2(r) {
|
|
2639
2639
|
if (Kt === setTimeout)
|
|
2640
2640
|
return setTimeout(r, 0);
|
|
2641
|
-
if ((Kt ===
|
|
2641
|
+
if ((Kt === Ra || !Kt) && setTimeout)
|
|
2642
2642
|
return Kt = setTimeout, setTimeout(r, 0);
|
|
2643
2643
|
try {
|
|
2644
2644
|
return Kt(r, 0);
|
|
@@ -2653,7 +2653,7 @@ function U2(r) {
|
|
|
2653
2653
|
function Fg(r) {
|
|
2654
2654
|
if (Jt === clearTimeout)
|
|
2655
2655
|
return clearTimeout(r);
|
|
2656
|
-
if ((Jt ===
|
|
2656
|
+
if ((Jt === Aa || !Jt) && clearTimeout)
|
|
2657
2657
|
return Jt = clearTimeout, clearTimeout(r);
|
|
2658
2658
|
try {
|
|
2659
2659
|
return Jt(r);
|
|
@@ -2732,48 +2732,48 @@ var Kg = E2.exports;
|
|
|
2732
2732
|
const e = q2, t = Kg, n = (s) => s && s.__esModule ? s : { default: s }, o = n(t), i = globalThis || void 0 || self;
|
|
2733
2733
|
Object.defineProperty(r, "Buffer", { enumerable: !0, get: () => e.Buffer }), Object.defineProperty(r, "process", { enumerable: !0, get: () => o.default }), r.global = i;
|
|
2734
2734
|
})(zn);
|
|
2735
|
-
function
|
|
2735
|
+
function d0(r) {
|
|
2736
2736
|
return o3() ? (i3(r), !0) : !1;
|
|
2737
2737
|
}
|
|
2738
|
-
function
|
|
2738
|
+
function f0(r) {
|
|
2739
2739
|
return typeof r == "function" ? r() : x(r);
|
|
2740
2740
|
}
|
|
2741
|
-
const Jg = typeof window < "u" && typeof document < "u", e4 = (r) => r != null,
|
|
2741
|
+
const Jg = typeof window < "u" && typeof document < "u", e4 = (r) => r != null, Al = () => {
|
|
2742
2742
|
};
|
|
2743
2743
|
function jo(r) {
|
|
2744
2744
|
var e;
|
|
2745
|
-
const t =
|
|
2745
|
+
const t = f0(r);
|
|
2746
2746
|
return (e = t == null ? void 0 : t.$el) != null ? e : t;
|
|
2747
2747
|
}
|
|
2748
|
-
const
|
|
2748
|
+
const O0 = Jg ? window : void 0;
|
|
2749
2749
|
function t4() {
|
|
2750
2750
|
const r = Y(!1);
|
|
2751
2751
|
return s3() && Pe(() => {
|
|
2752
2752
|
r.value = !0;
|
|
2753
2753
|
}), r;
|
|
2754
2754
|
}
|
|
2755
|
-
function
|
|
2755
|
+
function p0(r) {
|
|
2756
2756
|
const e = t4();
|
|
2757
2757
|
return V(() => (e.value, !!r()));
|
|
2758
2758
|
}
|
|
2759
2759
|
function yn(r, e = {}) {
|
|
2760
|
-
const { window: t =
|
|
2760
|
+
const { window: t = O0 } = e, n = p0(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
|
|
2761
2761
|
let o;
|
|
2762
2762
|
const i = Y(!1), s = (c) => {
|
|
2763
2763
|
i.value = c.matches;
|
|
2764
2764
|
}, l = () => {
|
|
2765
2765
|
o && ("removeEventListener" in o ? o.removeEventListener("change", s) : o.removeListener(s));
|
|
2766
2766
|
}, a = Xt(() => {
|
|
2767
|
-
n.value && (l(), o = t.matchMedia(
|
|
2767
|
+
n.value && (l(), o = t.matchMedia(f0(r)), "addEventListener" in o ? o.addEventListener("change", s) : o.addListener(s), i.value = o.matches);
|
|
2768
2768
|
});
|
|
2769
|
-
return
|
|
2769
|
+
return d0(() => {
|
|
2770
2770
|
a(), l(), o = void 0;
|
|
2771
2771
|
}), i;
|
|
2772
2772
|
}
|
|
2773
2773
|
function W2(r, e, t = {}) {
|
|
2774
|
-
const { window: n =
|
|
2774
|
+
const { window: n = O0, ...o } = t;
|
|
2775
2775
|
let i;
|
|
2776
|
-
const s =
|
|
2776
|
+
const s = p0(() => n && "ResizeObserver" in n), l = () => {
|
|
2777
2777
|
i && (i.disconnect(), i = void 0);
|
|
2778
2778
|
}, a = V(
|
|
2779
2779
|
() => Array.isArray(r) ? r.map((h) => jo(h)) : [jo(r)]
|
|
@@ -2790,7 +2790,7 @@ function W2(r, e, t = {}) {
|
|
|
2790
2790
|
), u = () => {
|
|
2791
2791
|
l(), c();
|
|
2792
2792
|
};
|
|
2793
|
-
return
|
|
2793
|
+
return d0(u), {
|
|
2794
2794
|
isSupported: s,
|
|
2795
2795
|
stop: u
|
|
2796
2796
|
};
|
|
@@ -2800,13 +2800,13 @@ function Y2(r, e, t = {}) {
|
|
|
2800
2800
|
root: n,
|
|
2801
2801
|
rootMargin: o = "0px",
|
|
2802
2802
|
threshold: i = 0.1,
|
|
2803
|
-
window: s =
|
|
2803
|
+
window: s = O0,
|
|
2804
2804
|
immediate: l = !0
|
|
2805
|
-
} = t, a =
|
|
2806
|
-
const O =
|
|
2805
|
+
} = t, a = p0(() => s && "IntersectionObserver" in s), c = V(() => {
|
|
2806
|
+
const O = f0(r);
|
|
2807
2807
|
return (Array.isArray(O) ? O : [O]).map(jo).filter(e4);
|
|
2808
2808
|
});
|
|
2809
|
-
let u =
|
|
2809
|
+
let u = Al;
|
|
2810
2810
|
const h = Y(l), d = a.value ? Be(
|
|
2811
2811
|
() => [c.value, jo(n), h.value],
|
|
2812
2812
|
([O, m]) => {
|
|
@@ -2821,14 +2821,14 @@ function Y2(r, e, t = {}) {
|
|
|
2821
2821
|
}
|
|
2822
2822
|
);
|
|
2823
2823
|
O.forEach((b) => b && v.observe(b)), u = () => {
|
|
2824
|
-
v.disconnect(), u =
|
|
2824
|
+
v.disconnect(), u = Al;
|
|
2825
2825
|
};
|
|
2826
2826
|
},
|
|
2827
2827
|
{ immediate: l, flush: "post" }
|
|
2828
|
-
) :
|
|
2828
|
+
) : Al, f = () => {
|
|
2829
2829
|
u(), d(), h.value = !1;
|
|
2830
2830
|
};
|
|
2831
|
-
return
|
|
2831
|
+
return d0(f), {
|
|
2832
2832
|
isSupported: a,
|
|
2833
2833
|
isActive: h,
|
|
2834
2834
|
pause() {
|
|
@@ -2866,7 +2866,7 @@ function l4(r) {
|
|
|
2866
2866
|
vr.activeSidebar = r;
|
|
2867
2867
|
}
|
|
2868
2868
|
const ao = () => ({
|
|
2869
|
-
state:
|
|
2869
|
+
state: n0(vr),
|
|
2870
2870
|
toggleApiClient: n4,
|
|
2871
2871
|
setActiveApiClientEndpointId: i4,
|
|
2872
2872
|
setSnippetType: s4,
|
|
@@ -2908,20 +2908,20 @@ const ao = () => ({
|
|
|
2908
2908
|
password: "",
|
|
2909
2909
|
active: !0
|
|
2910
2910
|
}
|
|
2911
|
-
}), u4 = Rr(c4()), Ds = Rr({}), L2 = Y([]), Io = Y(""),
|
|
2911
|
+
}), u4 = Rr(c4()), Ds = Rr({}), L2 = Y([]), Io = Y(""), g0 = Rr(a4()), h4 = (r) => {
|
|
2912
2912
|
Ds[r.responseId] = r, Io.value = r.responseId, L2.value.unshift(r.responseId);
|
|
2913
2913
|
}, d4 = (r) => {
|
|
2914
2914
|
Io.value = r;
|
|
2915
2915
|
const { request: e } = Ds[r];
|
|
2916
|
-
Object.assign(
|
|
2916
|
+
Object.assign(g0, e);
|
|
2917
2917
|
}, f4 = V(
|
|
2918
2918
|
() => Io.value ? Ds[Io.value].response : null
|
|
2919
2919
|
), O4 = (r) => {
|
|
2920
|
-
Object.assign(
|
|
2920
|
+
Object.assign(g0, r);
|
|
2921
2921
|
}, p4 = Y(!0), hr = () => ({
|
|
2922
2922
|
authState: u4,
|
|
2923
2923
|
readOnly: p4,
|
|
2924
|
-
activeRequest:
|
|
2924
|
+
activeRequest: g0,
|
|
2925
2925
|
activeResponse: f4,
|
|
2926
2926
|
requestHistory: Ds,
|
|
2927
2927
|
requestHistoryOrder: L2,
|
|
@@ -3243,7 +3243,7 @@ class be {
|
|
|
3243
3243
|
[`NodeType.none`](#common.NodeType^none).
|
|
3244
3244
|
*/
|
|
3245
3245
|
balance(e = {}) {
|
|
3246
|
-
return this.children.length <= 8 ? this :
|
|
3246
|
+
return this.children.length <= 8 ? this : w0(ft.none, this.children, this.positions, 0, this.children.length, 0, this.length, (t, n, o) => new be(this.type, t, n, o, this.propValues), e.makeTree || ((t, n, o) => new be(ft.none, t, n, o)));
|
|
3247
3247
|
}
|
|
3248
3248
|
/**
|
|
3249
3249
|
Build a tree from a postfix-ordered buffer of node information,
|
|
@@ -3254,7 +3254,7 @@ class be {
|
|
|
3254
3254
|
}
|
|
3255
3255
|
}
|
|
3256
3256
|
be.empty = new be(ft.none, [], [], 0);
|
|
3257
|
-
class
|
|
3257
|
+
class m0 {
|
|
3258
3258
|
constructor(e, t) {
|
|
3259
3259
|
this.buffer = e, this.index = t;
|
|
3260
3260
|
}
|
|
@@ -3277,7 +3277,7 @@ class g0 {
|
|
|
3277
3277
|
this.index -= 4;
|
|
3278
3278
|
}
|
|
3279
3279
|
fork() {
|
|
3280
|
-
return new
|
|
3280
|
+
return new m0(this.buffer, this.index);
|
|
3281
3281
|
}
|
|
3282
3282
|
}
|
|
3283
3283
|
class Cn {
|
|
@@ -3388,7 +3388,7 @@ class I2 {
|
|
|
3388
3388
|
return No(this, e, t, !0);
|
|
3389
3389
|
}
|
|
3390
3390
|
matchContext(e) {
|
|
3391
|
-
return
|
|
3391
|
+
return qa(this, e);
|
|
3392
3392
|
}
|
|
3393
3393
|
enterUnfinishedNodesBefore(e) {
|
|
3394
3394
|
let t = this.childBefore(e), n = this;
|
|
@@ -3431,7 +3431,7 @@ class vt extends I2 {
|
|
|
3431
3431
|
let d = u.findChild(0, u.buffer.length, t, n - h, o);
|
|
3432
3432
|
if (d > -1)
|
|
3433
3433
|
return new sr(new v4(s, u, e, h), null, d);
|
|
3434
|
-
} else if (i & $e.IncludeAnonymous || !u.type.isAnonymous ||
|
|
3434
|
+
} else if (i & $e.IncludeAnonymous || !u.type.isAnonymous || v0(u)) {
|
|
3435
3435
|
let d;
|
|
3436
3436
|
if (!(i & $e.IgnoreMounts) && (d = Ho.get(u)) && !d.overlay)
|
|
3437
3437
|
return new vt(d.tree, h, e, s);
|
|
@@ -3546,7 +3546,7 @@ function Cc(r, e, t, n) {
|
|
|
3546
3546
|
return n == null ? i : [];
|
|
3547
3547
|
}
|
|
3548
3548
|
}
|
|
3549
|
-
function
|
|
3549
|
+
function qa(r, e, t = e.length - 1) {
|
|
3550
3550
|
for (let n = r.parent; t >= 0; n = n.parent) {
|
|
3551
3551
|
if (!n)
|
|
3552
3552
|
return !1;
|
|
@@ -3865,7 +3865,7 @@ class vs {
|
|
|
3865
3865
|
if (t > -1)
|
|
3866
3866
|
for (let i = t + e, s = e < 0 ? -1 : n._tree.children.length; i != s; i += e) {
|
|
3867
3867
|
let l = n._tree.children[i];
|
|
3868
|
-
if (this.mode & $e.IncludeAnonymous || l instanceof Cn || !l.type.isAnonymous ||
|
|
3868
|
+
if (this.mode & $e.IncludeAnonymous || l instanceof Cn || !l.type.isAnonymous || v0(l))
|
|
3869
3869
|
return !1;
|
|
3870
3870
|
}
|
|
3871
3871
|
return !0;
|
|
@@ -3978,11 +3978,11 @@ class vs {
|
|
|
3978
3978
|
*/
|
|
3979
3979
|
matchContext(e) {
|
|
3980
3980
|
if (!this.buffer)
|
|
3981
|
-
return
|
|
3981
|
+
return qa(this.node, e);
|
|
3982
3982
|
let { buffer: t } = this.buffer, { types: n } = t.set;
|
|
3983
3983
|
for (let o = e.length - 1, i = this.stack.length - 1; o >= 0; i--) {
|
|
3984
3984
|
if (i < 0)
|
|
3985
|
-
return
|
|
3985
|
+
return qa(this.node, e, o);
|
|
3986
3986
|
let s = n[t.buffer[this.stack[i]]];
|
|
3987
3987
|
if (!s.isAnonymous) {
|
|
3988
3988
|
if (e[o] && e[o] != s.name)
|
|
@@ -3993,12 +3993,12 @@ class vs {
|
|
|
3993
3993
|
return !0;
|
|
3994
3994
|
}
|
|
3995
3995
|
}
|
|
3996
|
-
function
|
|
3997
|
-
return r.children.some((e) => e instanceof Cn || !e.type.isAnonymous ||
|
|
3996
|
+
function v0(r) {
|
|
3997
|
+
return r.children.some((e) => e instanceof Cn || !e.type.isAnonymous || v0(e));
|
|
3998
3998
|
}
|
|
3999
3999
|
function S4(r) {
|
|
4000
4000
|
var e;
|
|
4001
|
-
let { buffer: t, nodeSet: n, maxBufferLength: o = z2, reused: i = [], minRepeatType: s = n.types.length } = r, l = Array.isArray(t) ? new
|
|
4001
|
+
let { buffer: t, nodeSet: n, maxBufferLength: o = z2, reused: i = [], minRepeatType: s = n.types.length } = r, l = Array.isArray(t) ? new m0(t, t.length) : t, a = n.types, c = 0, u = 0;
|
|
4002
4002
|
function h(P, R, A, L, D) {
|
|
4003
4003
|
let { id: I, start: U, end: B, size: G } = l, H = u;
|
|
4004
4004
|
for (; G < 0; )
|
|
@@ -4028,7 +4028,7 @@ function S4(r) {
|
|
|
4028
4028
|
ve >= 0 && l.id == ve && l.size >= 0 ? (l.end <= on - o && (f(Me, je, U, ye, l.end, on, ve, H), ye = Me.length, on = l.end), l.next()) : h(U, Se, Me, je, ve);
|
|
4029
4029
|
if (ve >= 0 && ye > 0 && ye < Me.length && f(Me, je, U, ye, U, on, ve, H), Me.reverse(), je.reverse(), ve > -1 && ye > 0) {
|
|
4030
4030
|
let vo = d(le);
|
|
4031
|
-
Te =
|
|
4031
|
+
Te = w0(le, Me, je, 0, Me.length, 0, B - U, vo, vo);
|
|
4032
4032
|
} else
|
|
4033
4033
|
Te = O(le, Me, je, B - U, H - B);
|
|
4034
4034
|
}
|
|
@@ -4127,7 +4127,7 @@ function Ji(r, e) {
|
|
|
4127
4127
|
}
|
|
4128
4128
|
return t;
|
|
4129
4129
|
}
|
|
4130
|
-
function
|
|
4130
|
+
function w0(r, e, t, n, o, i, s, l, a) {
|
|
4131
4131
|
let c = 0;
|
|
4132
4132
|
for (let O = n; O < o; O++)
|
|
4133
4133
|
c += Ji(r, e[O]);
|
|
@@ -4153,14 +4153,14 @@ function v0(r, e, t, n, o, i, s, l, a) {
|
|
|
4153
4153
|
h.push(O[P]);
|
|
4154
4154
|
} else {
|
|
4155
4155
|
let L = m[$ - 1] + O[$ - 1].length - R;
|
|
4156
|
-
h.push(
|
|
4156
|
+
h.push(w0(r, O, m, P, $, R, L, null, a));
|
|
4157
4157
|
}
|
|
4158
4158
|
d.push(R + Q - i);
|
|
4159
4159
|
}
|
|
4160
4160
|
}
|
|
4161
4161
|
return f(e, t, n, o, 0), (l || a)(h, d, s);
|
|
4162
4162
|
}
|
|
4163
|
-
class
|
|
4163
|
+
class b0 {
|
|
4164
4164
|
constructor() {
|
|
4165
4165
|
this.map = /* @__PURE__ */ new WeakMap();
|
|
4166
4166
|
}
|
|
@@ -4267,7 +4267,7 @@ class Sr {
|
|
|
4267
4267
|
return o;
|
|
4268
4268
|
}
|
|
4269
4269
|
}
|
|
4270
|
-
class
|
|
4270
|
+
class S0 {
|
|
4271
4271
|
/**
|
|
4272
4272
|
Start a parse, returning a [partial parse](#common.PartialParse)
|
|
4273
4273
|
object. [`fragments`](#common.TreeFragment) can be passed in to
|
|
@@ -4324,7 +4324,7 @@ class x4 {
|
|
|
4324
4324
|
this.parser = e, this.predicate = t, this.mounts = n, this.index = o, this.start = i, this.target = s, this.prev = l, this.depth = 0, this.ranges = [];
|
|
4325
4325
|
}
|
|
4326
4326
|
}
|
|
4327
|
-
const
|
|
4327
|
+
const Ma = new ge({ perNode: !0 });
|
|
4328
4328
|
class Q4 {
|
|
4329
4329
|
constructor(e, t, n, o, i) {
|
|
4330
4330
|
this.nest = t, this.input = n, this.fragments = o, this.ranges = i, this.inner = [], this.innerDone = 0, this.baseTree = null, this.stoppedAt = null, this.baseParse = e;
|
|
@@ -4340,7 +4340,7 @@ class Q4 {
|
|
|
4340
4340
|
}
|
|
4341
4341
|
if (this.innerDone == this.inner.length) {
|
|
4342
4342
|
let n = this.baseTree;
|
|
4343
|
-
return this.stoppedAt != null && (n = new be(n.type, n.children, n.positions, n.length, n.propValues.concat([[
|
|
4343
|
+
return this.stoppedAt != null && (n = new be(n.type, n.children, n.positions, n.length, n.propValues.concat([[Ma, this.stoppedAt]]))), n;
|
|
4344
4344
|
}
|
|
4345
4345
|
let e = this.inner[this.innerDone], t = e.parse.advance();
|
|
4346
4346
|
if (t) {
|
|
@@ -4473,7 +4473,7 @@ let P4 = class {
|
|
|
4473
4473
|
var t;
|
|
4474
4474
|
if (this.fragments = e, this.curTo = 0, this.fragI = 0, e.length) {
|
|
4475
4475
|
let n = this.curFrag = e[0];
|
|
4476
|
-
this.curTo = (t = n.tree.prop(
|
|
4476
|
+
this.curTo = (t = n.tree.prop(Ma)) !== null && t !== void 0 ? t : n.to, this.inner = new Ac(n.tree, -n.offset);
|
|
4477
4477
|
} else
|
|
4478
4478
|
this.curFrag = this.inner = null;
|
|
4479
4479
|
}
|
|
@@ -4488,7 +4488,7 @@ let P4 = class {
|
|
|
4488
4488
|
this.curFrag = this.inner = null;
|
|
4489
4489
|
else {
|
|
4490
4490
|
let t = this.curFrag = this.fragments[this.fragI];
|
|
4491
|
-
this.curTo = (e = t.tree.prop(
|
|
4491
|
+
this.curTo = (e = t.tree.prop(Ma)) !== null && e !== void 0 ? e : t.to, this.inner = new Ac(t.tree, -t.offset);
|
|
4492
4492
|
}
|
|
4493
4493
|
}
|
|
4494
4494
|
findMounts(e, t) {
|
|
@@ -5223,7 +5223,7 @@ function X4(r, e, t, n) {
|
|
|
5223
5223
|
return o < 0 || Vc(t, n, r) < o;
|
|
5224
5224
|
}
|
|
5225
5225
|
const xt = typeof zn.process < "u" && zn.process.env && /\bparse\b/.test(zn.process.env.LOG);
|
|
5226
|
-
let
|
|
5226
|
+
let ql = null;
|
|
5227
5227
|
function jc(r, e, t) {
|
|
5228
5228
|
let n = r.cursor($e.IncludeAnonymous);
|
|
5229
5229
|
for (n.moveTo(e); ; )
|
|
@@ -5545,8 +5545,8 @@ let q4 = class {
|
|
|
5545
5545
|
});
|
|
5546
5546
|
}
|
|
5547
5547
|
stackID(e) {
|
|
5548
|
-
let t = (
|
|
5549
|
-
return t ||
|
|
5548
|
+
let t = (ql || (ql = /* @__PURE__ */ new WeakMap())).get(e);
|
|
5549
|
+
return t || ql.set(e, t = String.fromCodePoint(this.nextStackID++)), t + e;
|
|
5550
5550
|
}
|
|
5551
5551
|
};
|
|
5552
5552
|
function Wc(r, e) {
|
|
@@ -5567,16 +5567,16 @@ class M4 {
|
|
|
5567
5567
|
return !this.disabled || this.disabled[e] == 0;
|
|
5568
5568
|
}
|
|
5569
5569
|
}
|
|
5570
|
-
const
|
|
5571
|
-
class
|
|
5570
|
+
const Ml = (r) => r;
|
|
5571
|
+
class y0 {
|
|
5572
5572
|
/**
|
|
5573
5573
|
Define a context tracker.
|
|
5574
5574
|
*/
|
|
5575
5575
|
constructor(e) {
|
|
5576
|
-
this.start = e.start, this.shift = e.shift ||
|
|
5576
|
+
this.start = e.start, this.shift = e.shift || Ml, this.reduce = e.reduce || Ml, this.reuse = e.reuse || Ml, this.hash = e.hash || (() => 0), this.strict = e.strict !== !1;
|
|
5577
5577
|
}
|
|
5578
5578
|
}
|
|
5579
|
-
class _r extends
|
|
5579
|
+
class _r extends S0 {
|
|
5580
5580
|
/**
|
|
5581
5581
|
@internal
|
|
5582
5582
|
*/
|
|
@@ -6061,7 +6061,7 @@ function B4(r) {
|
|
|
6061
6061
|
e = e.next;
|
|
6062
6062
|
return e || null;
|
|
6063
6063
|
}
|
|
6064
|
-
const z = tr.define, Xi = z(), Vr = z(), Lc = z(Vr), zc = z(Vr), jr = z(), Ri = z(jr),
|
|
6064
|
+
const z = tr.define, Xi = z(), Vr = z(), Lc = z(Vr), zc = z(Vr), jr = z(), Ri = z(jr), El = z(jr), Dt = z(), sn = z(Dt), Nt = z(), Gt = z(), Ea = z(), yo = z(Ea), Ai = z(), S = {
|
|
6065
6065
|
/**
|
|
6066
6066
|
A comment.
|
|
6067
6067
|
*/
|
|
@@ -6141,15 +6141,15 @@ const z = tr.define, Xi = z(), Vr = z(), Lc = z(Vr), zc = z(Vr), jr = z(), Ri =
|
|
|
6141
6141
|
/**
|
|
6142
6142
|
A number [literal](#highlight.tags.literal).
|
|
6143
6143
|
*/
|
|
6144
|
-
number:
|
|
6144
|
+
number: El,
|
|
6145
6145
|
/**
|
|
6146
6146
|
An integer [number](#highlight.tags.number) literal.
|
|
6147
6147
|
*/
|
|
6148
|
-
integer: z(
|
|
6148
|
+
integer: z(El),
|
|
6149
6149
|
/**
|
|
6150
6150
|
A floating-point [number](#highlight.tags.number) literal.
|
|
6151
6151
|
*/
|
|
6152
|
-
float: z(
|
|
6152
|
+
float: z(El),
|
|
6153
6153
|
/**
|
|
6154
6154
|
A boolean [literal](#highlight.tags.literal).
|
|
6155
6155
|
*/
|
|
@@ -6256,12 +6256,12 @@ const z = tr.define, Xi = z(), Vr = z(), Lc = z(Vr), zc = z(Vr), jr = z(), Ri =
|
|
|
6256
6256
|
/**
|
|
6257
6257
|
Program or markup punctuation.
|
|
6258
6258
|
*/
|
|
6259
|
-
punctuation:
|
|
6259
|
+
punctuation: Ea,
|
|
6260
6260
|
/**
|
|
6261
6261
|
[Punctuation](#highlight.tags.punctuation) that separates
|
|
6262
6262
|
things.
|
|
6263
6263
|
*/
|
|
6264
|
-
separator: z(
|
|
6264
|
+
separator: z(Ea),
|
|
6265
6265
|
/**
|
|
6266
6266
|
Bracket-style [punctuation](#highlight.tags.punctuation).
|
|
6267
6267
|
*/
|
|
@@ -6459,7 +6459,7 @@ F2([
|
|
|
6459
6459
|
{ tag: S.invalid, class: "tok-invalid" },
|
|
6460
6460
|
{ tag: S.punctuation, class: "tok-punctuation" }
|
|
6461
6461
|
]);
|
|
6462
|
-
const I4 = 54, H4 = 1, N4 = 55, G4 = 2, F4 = 56, D4 = 3, Bc = 4, K4 = 5, xs = 6, D2 = 7, K2 = 8, J2 = 9, ef = 10, J4 = 11, em = 12, tm = 13,
|
|
6462
|
+
const I4 = 54, H4 = 1, N4 = 55, G4 = 2, F4 = 56, D4 = 3, Bc = 4, K4 = 5, xs = 6, D2 = 7, K2 = 8, J2 = 9, ef = 10, J4 = 11, em = 12, tm = 13, Ul = 57, rm = 14, Ic = 58, tf = 20, nm = 22, rf = 23, om = 24, Ua = 26, nf = 27, im = 28, sm = 31, lm = 34, am = 36, cm = 37, um = 0, hm = 1, dm = {
|
|
6463
6463
|
area: !0,
|
|
6464
6464
|
base: !0,
|
|
6465
6465
|
br: !0,
|
|
@@ -6542,7 +6542,7 @@ function of(r) {
|
|
|
6542
6542
|
return r == 9 || r == 10 || r == 13 || r == 32;
|
|
6543
6543
|
}
|
|
6544
6544
|
let Nc = null, Gc = null, Fc = 0;
|
|
6545
|
-
function
|
|
6545
|
+
function Va(r, e) {
|
|
6546
6546
|
let t = r.pos + e;
|
|
6547
6547
|
if (Fc == t && Gc == r)
|
|
6548
6548
|
return Nc;
|
|
@@ -6554,23 +6554,23 @@ function Ua(r, e) {
|
|
|
6554
6554
|
o += String.fromCharCode(n), n = r.peek(++e);
|
|
6555
6555
|
return Gc = r, Fc = t, Nc = o ? o.toLowerCase() : n == pm || n == gm ? void 0 : null;
|
|
6556
6556
|
}
|
|
6557
|
-
const sf = 60, Qs = 62,
|
|
6557
|
+
const sf = 60, Qs = 62, k0 = 47, pm = 63, gm = 33, mm = 45;
|
|
6558
6558
|
function Dc(r, e) {
|
|
6559
6559
|
this.name = r, this.parent = e, this.hash = e ? e.hash : 0;
|
|
6560
6560
|
for (let t = 0; t < r.length; t++)
|
|
6561
6561
|
this.hash += (this.hash << 4) + r.charCodeAt(t) + (r.charCodeAt(t) << 8);
|
|
6562
6562
|
}
|
|
6563
|
-
const vm = [xs, ef, D2, K2, J2], wm = new
|
|
6563
|
+
const vm = [xs, ef, D2, K2, J2], wm = new y0({
|
|
6564
6564
|
start: null,
|
|
6565
6565
|
shift(r, e, t, n) {
|
|
6566
|
-
return vm.indexOf(e) > -1 ? new Dc(
|
|
6566
|
+
return vm.indexOf(e) > -1 ? new Dc(Va(n, 1) || "", r) : r;
|
|
6567
6567
|
},
|
|
6568
6568
|
reduce(r, e) {
|
|
6569
6569
|
return e == tf && r ? r.parent : r;
|
|
6570
6570
|
},
|
|
6571
6571
|
reuse(r, e, t, n) {
|
|
6572
6572
|
let o = e.type.id;
|
|
6573
|
-
return o == xs || o == am ? new Dc(
|
|
6573
|
+
return o == xs || o == am ? new Dc(Va(n, 1) || "", r) : r;
|
|
6574
6574
|
},
|
|
6575
6575
|
hash(r) {
|
|
6576
6576
|
return r ? r.hash : 0;
|
|
@@ -6578,13 +6578,13 @@ const vm = [xs, ef, D2, K2, J2], wm = new S0({
|
|
|
6578
6578
|
strict: !1
|
|
6579
6579
|
}), bm = new kt((r, e) => {
|
|
6580
6580
|
if (r.next != sf) {
|
|
6581
|
-
r.next < 0 && e.context && r.acceptToken(
|
|
6581
|
+
r.next < 0 && e.context && r.acceptToken(Ul);
|
|
6582
6582
|
return;
|
|
6583
6583
|
}
|
|
6584
6584
|
r.advance();
|
|
6585
|
-
let t = r.next ==
|
|
6585
|
+
let t = r.next == k0;
|
|
6586
6586
|
t && r.advance();
|
|
6587
|
-
let n =
|
|
6587
|
+
let n = Va(r, 0);
|
|
6588
6588
|
if (n === void 0)
|
|
6589
6589
|
return;
|
|
6590
6590
|
if (!n)
|
|
@@ -6594,7 +6594,7 @@ const vm = [xs, ef, D2, K2, J2], wm = new S0({
|
|
|
6594
6594
|
if (n == o)
|
|
6595
6595
|
return r.acceptToken(J4);
|
|
6596
6596
|
if (o && fm[o])
|
|
6597
|
-
return r.acceptToken(
|
|
6597
|
+
return r.acceptToken(Ul, -2);
|
|
6598
6598
|
if (e.dialectEnabled(um))
|
|
6599
6599
|
return r.acceptToken(em);
|
|
6600
6600
|
for (let i = e.context; i; i = i.parent)
|
|
@@ -6610,7 +6610,7 @@ const vm = [xs, ef, D2, K2, J2], wm = new S0({
|
|
|
6610
6610
|
return r.acceptToken(J2);
|
|
6611
6611
|
if (dm.hasOwnProperty(n))
|
|
6612
6612
|
return r.acceptToken(ef);
|
|
6613
|
-
o && Hc[o] && Hc[o][n] ? r.acceptToken(
|
|
6613
|
+
o && Hc[o] && Hc[o][n] ? r.acceptToken(Ul, -1) : r.acceptToken(xs);
|
|
6614
6614
|
}
|
|
6615
6615
|
}, { contextual: !0 }), Sm = new kt((r) => {
|
|
6616
6616
|
for (let e = 0, t = 0; ; t++) {
|
|
@@ -6635,13 +6635,13 @@ function ym(r) {
|
|
|
6635
6635
|
return !1;
|
|
6636
6636
|
}
|
|
6637
6637
|
const km = new kt((r, e) => {
|
|
6638
|
-
if (r.next ==
|
|
6638
|
+
if (r.next == k0 && r.peek(1) == Qs) {
|
|
6639
6639
|
let t = e.dialectEnabled(hm) || ym(e.context);
|
|
6640
6640
|
r.acceptToken(t ? K4 : Bc, 2);
|
|
6641
6641
|
} else
|
|
6642
6642
|
r.next == Qs && r.acceptToken(Bc, 1);
|
|
6643
6643
|
});
|
|
6644
|
-
function
|
|
6644
|
+
function x0(r, e, t) {
|
|
6645
6645
|
let n = 2 + r.length;
|
|
6646
6646
|
return new kt((o) => {
|
|
6647
6647
|
for (let i = 0, s = 0, l = 0; ; l++) {
|
|
@@ -6649,7 +6649,7 @@ function k0(r, e, t) {
|
|
|
6649
6649
|
l && o.acceptToken(e);
|
|
6650
6650
|
break;
|
|
6651
6651
|
}
|
|
6652
|
-
if (i == 0 && o.next == sf || i == 1 && o.next ==
|
|
6652
|
+
if (i == 0 && o.next == sf || i == 1 && o.next == k0 || i >= 2 && i < n && o.next == r.charCodeAt(i - 2))
|
|
6653
6653
|
i++, s++;
|
|
6654
6654
|
else if ((i == 2 || i == n) && of(o.next))
|
|
6655
6655
|
s++;
|
|
@@ -6665,7 +6665,7 @@ function k0(r, e, t) {
|
|
|
6665
6665
|
}
|
|
6666
6666
|
});
|
|
6667
6667
|
}
|
|
6668
|
-
const xm =
|
|
6668
|
+
const xm = x0("script", I4, H4), Qm = x0("style", N4, G4), _m = x0("textarea", F4, D4), $m = Zn({
|
|
6669
6669
|
"Text RawText": S.content,
|
|
6670
6670
|
"StartTag StartCloseTag SelfClosingEndTag EndTag": S.angleBracket,
|
|
6671
6671
|
TagName: S.tagName,
|
|
@@ -6702,8 +6702,8 @@ const xm = k0("script", I4, H4), Qm = k0("style", N4, G4), _m = k0("textarea", F
|
|
|
6702
6702
|
function lf(r, e) {
|
|
6703
6703
|
let t = /* @__PURE__ */ Object.create(null);
|
|
6704
6704
|
for (let n of r.getChildren(rf)) {
|
|
6705
|
-
let o = n.getChild(om), i = n.getChild(
|
|
6706
|
-
o && (t[e.read(o.from, o.to)] = i ? i.type.id ==
|
|
6705
|
+
let o = n.getChild(om), i = n.getChild(Ua) || n.getChild(nf);
|
|
6706
|
+
o && (t[e.read(o.from, o.to)] = i ? i.type.id == Ua ? e.read(i.from + 1, i.to - 1) : e.read(i.from, i.to) : "");
|
|
6707
6707
|
}
|
|
6708
6708
|
return t;
|
|
6709
6709
|
}
|
|
@@ -6711,7 +6711,7 @@ function Kc(r, e) {
|
|
|
6711
6711
|
let t = r.getChild(nm);
|
|
6712
6712
|
return t ? e.read(t.from, t.to) : " ";
|
|
6713
6713
|
}
|
|
6714
|
-
function
|
|
6714
|
+
function Vl(r, e, t) {
|
|
6715
6715
|
let n;
|
|
6716
6716
|
for (let o of t)
|
|
6717
6717
|
if (!o.attrs || o.attrs(n || (n = lf(r.node.parent.firstChild, e))))
|
|
@@ -6728,11 +6728,11 @@ function af(r = [], e = []) {
|
|
|
6728
6728
|
return k4((l, a) => {
|
|
6729
6729
|
let c = l.type.id;
|
|
6730
6730
|
if (c == im)
|
|
6731
|
-
return
|
|
6731
|
+
return Vl(l, a, t);
|
|
6732
6732
|
if (c == sm)
|
|
6733
|
-
return
|
|
6733
|
+
return Vl(l, a, n);
|
|
6734
6734
|
if (c == lm)
|
|
6735
|
-
return
|
|
6735
|
+
return Vl(l, a, o);
|
|
6736
6736
|
if (c == tf && i.length) {
|
|
6737
6737
|
let u = l.node, h = u.firstChild, d = h && Kc(h, a), f;
|
|
6738
6738
|
if (d) {
|
|
@@ -6752,7 +6752,7 @@ function af(r = [], e = []) {
|
|
|
6752
6752
|
if (f.tagName && f.tagName != Kc(u.parent, a))
|
|
6753
6753
|
continue;
|
|
6754
6754
|
let O = u.lastChild;
|
|
6755
|
-
if (O.type.id ==
|
|
6755
|
+
if (O.type.id == Ua) {
|
|
6756
6756
|
let m = O.from + 1, v = O.lastChild, b = O.to - (v && v.isError ? 0 : 1);
|
|
6757
6757
|
if (b > m)
|
|
6758
6758
|
return { parser: f.parser, overlay: [{ from: m, to: b }] };
|
|
@@ -7285,10 +7285,10 @@ function ff(r, e, t) {
|
|
|
7285
7285
|
return e;
|
|
7286
7286
|
e && Of(r.charCodeAt(e)) && pf(r.charCodeAt(e - 1)) && e--;
|
|
7287
7287
|
let n = ns(r, e);
|
|
7288
|
-
for (e +=
|
|
7288
|
+
for (e += ja(n); e < r.length; ) {
|
|
7289
7289
|
let o = ns(r, e);
|
|
7290
7290
|
if (n == nu || o == nu || t && Gm(o))
|
|
7291
|
-
e +=
|
|
7291
|
+
e += ja(o), n = o;
|
|
7292
7292
|
else if (ru(o)) {
|
|
7293
7293
|
let i = 0, s = e - 2;
|
|
7294
7294
|
for (; s >= 0 && ru(ns(r, s)); )
|
|
@@ -7323,10 +7323,10 @@ function ns(r, e) {
|
|
|
7323
7323
|
let n = r.charCodeAt(e + 1);
|
|
7324
7324
|
return Of(n) ? (t - 55296 << 10) + (n - 56320) + 65536 : t;
|
|
7325
7325
|
}
|
|
7326
|
-
function
|
|
7326
|
+
function ja(r) {
|
|
7327
7327
|
return r < 65536 ? 1 : 2;
|
|
7328
7328
|
}
|
|
7329
|
-
const
|
|
7329
|
+
const Wa = /\r\n?|\n/;
|
|
7330
7330
|
var mt = /* @__PURE__ */ function(r) {
|
|
7331
7331
|
return r[r.Simple = 0] = "Simple", r[r.TrackDel = 1] = "TrackDel", r[r.TrackBefore = 2] = "TrackBefore", r[r.TrackAfter = 3] = "TrackAfter", r;
|
|
7332
7332
|
}(mt || (mt = {}));
|
|
@@ -7392,7 +7392,7 @@ class yr {
|
|
|
7392
7392
|
reported separately.
|
|
7393
7393
|
*/
|
|
7394
7394
|
iterChangedRanges(e, t = !1) {
|
|
7395
|
-
|
|
7395
|
+
Ya(this, e, t);
|
|
7396
7396
|
}
|
|
7397
7397
|
/**
|
|
7398
7398
|
Get a description of the inverted form of these changes.
|
|
@@ -7420,7 +7420,7 @@ class yr {
|
|
|
7420
7420
|
in `other` happened before the ones in `this`.
|
|
7421
7421
|
*/
|
|
7422
7422
|
mapDesc(e, t = !1) {
|
|
7423
|
-
return e.empty ? this :
|
|
7423
|
+
return e.empty ? this : La(this, e, t);
|
|
7424
7424
|
}
|
|
7425
7425
|
mapPos(e, t = -1, n = mt.Simple) {
|
|
7426
7426
|
let o = 0, i = 0;
|
|
@@ -7501,10 +7501,10 @@ class tt extends yr {
|
|
|
7501
7501
|
apply(e) {
|
|
7502
7502
|
if (this.length != e.length)
|
|
7503
7503
|
throw new RangeError("Applying change set to a document with the wrong length");
|
|
7504
|
-
return
|
|
7504
|
+
return Ya(this, (t, n, o, i, s) => e = e.replace(o, o + (n - t), s), !1), e;
|
|
7505
7505
|
}
|
|
7506
7506
|
mapDesc(e, t = !1) {
|
|
7507
|
-
return
|
|
7507
|
+
return La(this, e, t, !0);
|
|
7508
7508
|
}
|
|
7509
7509
|
/**
|
|
7510
7510
|
Given the document as it existed _before_ the changes, return a
|
|
@@ -7550,7 +7550,7 @@ class tt extends yr {
|
|
|
7550
7550
|
and can be used for collaborative editing.
|
|
7551
7551
|
*/
|
|
7552
7552
|
map(e, t = !1) {
|
|
7553
|
-
return e.empty ? this :
|
|
7553
|
+
return e.empty ? this : La(this, e, t, !0);
|
|
7554
7554
|
}
|
|
7555
7555
|
/**
|
|
7556
7556
|
Iterate over the changed ranges in the document, calling `f` for
|
|
@@ -7562,7 +7562,7 @@ class tt extends yr {
|
|
|
7562
7562
|
separately.
|
|
7563
7563
|
*/
|
|
7564
7564
|
iterChanges(e, t = !1) {
|
|
7565
|
-
|
|
7565
|
+
Ya(this, e, t);
|
|
7566
7566
|
}
|
|
7567
7567
|
/**
|
|
7568
7568
|
Get a [change description](https://codemirror.net/6/docs/ref/#state.ChangeDesc) for this change
|
|
@@ -7636,7 +7636,7 @@ class tt extends yr {
|
|
|
7636
7636
|
let { from: h, to: d = h, insert: f } = u;
|
|
7637
7637
|
if (h > d || h < 0 || d > t)
|
|
7638
7638
|
throw new RangeError(`Invalid change range ${h} to ${d} (in doc of length ${t})`);
|
|
7639
|
-
let O = f ? typeof f == "string" ? we.of(f.split(n ||
|
|
7639
|
+
let O = f ? typeof f == "string" ? we.of(f.split(n || Wa)) : f : we.empty, m = O.length;
|
|
7640
7640
|
if (h == d && m == 0)
|
|
7641
7641
|
return;
|
|
7642
7642
|
h < s && a(), h > s && lt(o, h - s, -1), lt(o, d - h, m), Yr(i, o, O), s = d;
|
|
@@ -7701,7 +7701,7 @@ function Yr(r, e, t) {
|
|
|
7701
7701
|
r.push(t);
|
|
7702
7702
|
}
|
|
7703
7703
|
}
|
|
7704
|
-
function
|
|
7704
|
+
function Ya(r, e, t) {
|
|
7705
7705
|
let n = r.inserted;
|
|
7706
7706
|
for (let o = 0, i = 0, s = 0; s < r.sections.length; ) {
|
|
7707
7707
|
let l = r.sections[s++], a = r.sections[s++];
|
|
@@ -7715,7 +7715,7 @@ function Wa(r, e, t) {
|
|
|
7715
7715
|
}
|
|
7716
7716
|
}
|
|
7717
7717
|
}
|
|
7718
|
-
function
|
|
7718
|
+
function La(r, e, t, n = !1) {
|
|
7719
7719
|
let o = [], i = n ? [] : null, s = new Go(r), l = new Go(e);
|
|
7720
7720
|
for (let a = -1; ; )
|
|
7721
7721
|
if (s.ins == -1 && l.ins == -1) {
|
|
@@ -8016,16 +8016,16 @@ function mf(r, e) {
|
|
|
8016
8016
|
if (t.to > e)
|
|
8017
8017
|
throw new RangeError("Selection points outside of document");
|
|
8018
8018
|
}
|
|
8019
|
-
let
|
|
8019
|
+
let Q0 = 0;
|
|
8020
8020
|
class ie {
|
|
8021
8021
|
constructor(e, t, n, o, i) {
|
|
8022
|
-
this.combine = e, this.compareInput = t, this.compare = n, this.isStatic = o, this.id =
|
|
8022
|
+
this.combine = e, this.compareInput = t, this.compare = n, this.isStatic = o, this.id = Q0++, this.default = e([]), this.extensions = typeof i == "function" ? i(this) : i;
|
|
8023
8023
|
}
|
|
8024
8024
|
/**
|
|
8025
8025
|
Define a new facet.
|
|
8026
8026
|
*/
|
|
8027
8027
|
static define(e = {}) {
|
|
8028
|
-
return new ie(e.combine || ((t) => t), e.compareInput || ((t, n) => t === n), e.compare || (e.combine ? (t, n) => t === n :
|
|
8028
|
+
return new ie(e.combine || ((t) => t), e.compareInput || ((t, n) => t === n), e.compare || (e.combine ? (t, n) => t === n : _0), !!e.static, e.enables);
|
|
8029
8029
|
}
|
|
8030
8030
|
/**
|
|
8031
8031
|
Returns an extension that adds the given value to this facet.
|
|
@@ -8060,12 +8060,12 @@ class ie {
|
|
|
8060
8060
|
return t || (t = (n) => n), this.compute([e], (n) => t(n.field(e)));
|
|
8061
8061
|
}
|
|
8062
8062
|
}
|
|
8063
|
-
function
|
|
8063
|
+
function _0(r, e) {
|
|
8064
8064
|
return r == e || r.length == e.length && r.every((t, n) => t === e[n]);
|
|
8065
8065
|
}
|
|
8066
8066
|
class os {
|
|
8067
8067
|
constructor(e, t, n, o) {
|
|
8068
|
-
this.dependencies = e, this.facet = t, this.type = n, this.value = o, this.id =
|
|
8068
|
+
this.dependencies = e, this.facet = t, this.type = n, this.value = o, this.id = Q0++;
|
|
8069
8069
|
}
|
|
8070
8070
|
dynamicSlot(e) {
|
|
8071
8071
|
var t;
|
|
@@ -8077,7 +8077,7 @@ class os {
|
|
|
8077
8077
|
return h.values[s] = n(h), 1;
|
|
8078
8078
|
},
|
|
8079
8079
|
update(h, d) {
|
|
8080
|
-
if (a && d.docChanged || c && (d.docChanged || d.selection) ||
|
|
8080
|
+
if (a && d.docChanged || c && (d.docChanged || d.selection) || za(h, u)) {
|
|
8081
8081
|
let f = n(h);
|
|
8082
8082
|
if (l ? !ou(f, h.values[s], o) : !o(f, h.values[s]))
|
|
8083
8083
|
return h.values[s] = f, 1;
|
|
@@ -8105,7 +8105,7 @@ function ou(r, e, t) {
|
|
|
8105
8105
|
return !1;
|
|
8106
8106
|
return !0;
|
|
8107
8107
|
}
|
|
8108
|
-
function
|
|
8108
|
+
function za(r, e) {
|
|
8109
8109
|
let t = !1;
|
|
8110
8110
|
for (let n of e)
|
|
8111
8111
|
Yo(r, n) & 1 && (t = !0);
|
|
@@ -8132,14 +8132,14 @@ function Dm(r, e, t) {
|
|
|
8132
8132
|
return a.values[s] = l(a), 1;
|
|
8133
8133
|
},
|
|
8134
8134
|
update(a, c) {
|
|
8135
|
-
if (!
|
|
8135
|
+
if (!za(a, i))
|
|
8136
8136
|
return 0;
|
|
8137
8137
|
let u = l(a);
|
|
8138
8138
|
return e.compare(u, a.values[s]) ? 0 : (a.values[s] = u, 1);
|
|
8139
8139
|
},
|
|
8140
8140
|
reconfigure(a, c) {
|
|
8141
|
-
let u =
|
|
8142
|
-
if (h && !u &&
|
|
8141
|
+
let u = za(a, n), h = c.config.facets[e.id], d = c.facet(e);
|
|
8142
|
+
if (h && !u && _0(t, h))
|
|
8143
8143
|
return a.values[s] = d, 0;
|
|
8144
8144
|
let f = l(a);
|
|
8145
8145
|
return e.compare(f, d) ? (a.values[s] = d, 0) : (a.values[s] = f, 1);
|
|
@@ -8155,7 +8155,7 @@ class en {
|
|
|
8155
8155
|
Define a state field.
|
|
8156
8156
|
*/
|
|
8157
8157
|
static define(e) {
|
|
8158
|
-
let t = new en(
|
|
8158
|
+
let t = new en(Q0++, e.create, e.update, e.compare || ((n, o) => n === o), e);
|
|
8159
8159
|
return e.provide && (t.provides = e.provide(t)), t;
|
|
8160
8160
|
}
|
|
8161
8161
|
create(e) {
|
|
@@ -8234,7 +8234,7 @@ class el {
|
|
|
8234
8234
|
configuration](https://codemirror.net/6/docs/ref/#state.EditorStateConfig.extensions).
|
|
8235
8235
|
*/
|
|
8236
8236
|
of(e) {
|
|
8237
|
-
return new
|
|
8237
|
+
return new Ba(this, e);
|
|
8238
8238
|
}
|
|
8239
8239
|
/**
|
|
8240
8240
|
Create an [effect](https://codemirror.net/6/docs/ref/#state.TransactionSpec.effects) that
|
|
@@ -8251,7 +8251,7 @@ class el {
|
|
|
8251
8251
|
return e.config.compartments.get(this);
|
|
8252
8252
|
}
|
|
8253
8253
|
}
|
|
8254
|
-
class
|
|
8254
|
+
class Ba {
|
|
8255
8255
|
constructor(e, t) {
|
|
8256
8256
|
this.compartment = e, this.inner = t;
|
|
8257
8257
|
}
|
|
@@ -8282,7 +8282,7 @@ class $s {
|
|
|
8282
8282
|
(v) => v.type == 0
|
|
8283
8283
|
/* Provider.Static */
|
|
8284
8284
|
))
|
|
8285
|
-
if (l[O.id] = a.length << 1 | 1,
|
|
8285
|
+
if (l[O.id] = a.length << 1 | 1, _0(m, f))
|
|
8286
8286
|
a.push(n.facet(O));
|
|
8287
8287
|
else {
|
|
8288
8288
|
let v = O.combine(f.map((b) => b.value));
|
|
@@ -8306,12 +8306,12 @@ function Km(r, e, t) {
|
|
|
8306
8306
|
if (a <= l)
|
|
8307
8307
|
return;
|
|
8308
8308
|
let c = n[a].indexOf(s);
|
|
8309
|
-
c > -1 && n[a].splice(c, 1), s instanceof
|
|
8309
|
+
c > -1 && n[a].splice(c, 1), s instanceof Ba && t.delete(s.compartment);
|
|
8310
8310
|
}
|
|
8311
8311
|
if (o.set(s, l), Array.isArray(s))
|
|
8312
8312
|
for (let c of s)
|
|
8313
8313
|
i(c, l);
|
|
8314
|
-
else if (s instanceof
|
|
8314
|
+
else if (s instanceof Ba) {
|
|
8315
8315
|
if (t.has(s.compartment))
|
|
8316
8316
|
throw new RangeError("Duplicate use of compartment in extensions");
|
|
8317
8317
|
let c = e.get(s.compartment) || s.inner;
|
|
@@ -8542,7 +8542,7 @@ function _f(r, e, t) {
|
|
|
8542
8542
|
scrollIntoView: r.scrollIntoView || e.scrollIntoView
|
|
8543
8543
|
};
|
|
8544
8544
|
}
|
|
8545
|
-
function
|
|
8545
|
+
function Ia(r, e, t) {
|
|
8546
8546
|
let n = e.selection, o = Nn(e.annotations);
|
|
8547
8547
|
return e.userEvent && (o = o.concat(ut.userEvent.of(e.userEvent))), {
|
|
8548
8548
|
changes: e.changes instanceof tt ? e.changes : tt.of(e.changes || [], t, r.facet(Sf)),
|
|
@@ -8553,12 +8553,12 @@ function Ba(r, e, t) {
|
|
|
8553
8553
|
};
|
|
8554
8554
|
}
|
|
8555
8555
|
function $f(r, e, t) {
|
|
8556
|
-
let n =
|
|
8556
|
+
let n = Ia(r, e.length ? e[0] : {}, r.doc.length);
|
|
8557
8557
|
e.length && e[0].filter === !1 && (t = !1);
|
|
8558
8558
|
for (let i = 1; i < e.length; i++) {
|
|
8559
8559
|
e[i].filter === !1 && (t = !1);
|
|
8560
8560
|
let s = !!e[i].sequential;
|
|
8561
|
-
n = _f(n,
|
|
8561
|
+
n = _f(n, Ia(r, e[i], s ? n.changes.newLength : r.doc.length), s);
|
|
8562
8562
|
}
|
|
8563
8563
|
let o = ut.create(r, n.changes, n.selection, n.effects, n.annotations, n.scrollIntoView);
|
|
8564
8564
|
return n7(t ? r7(o) : o);
|
|
@@ -8594,7 +8594,7 @@ function n7(r) {
|
|
|
8594
8594
|
let e = r.startState, t = e.facet(xf), n = r;
|
|
8595
8595
|
for (let o = t.length - 1; o >= 0; o--) {
|
|
8596
8596
|
let i = t[o](r);
|
|
8597
|
-
i && Object.keys(i).length && (n = _f(n,
|
|
8597
|
+
i && Object.keys(i).length && (n = _f(n, Ia(e, i, r.changes.newLength), !0));
|
|
8598
8598
|
}
|
|
8599
8599
|
return n == r ? r : ut.create(e, r.changes, r.selection, n.effects, n.annotations, n.scrollIntoView);
|
|
8600
8600
|
}
|
|
@@ -8606,14 +8606,14 @@ var br = /* @__PURE__ */ function(r) {
|
|
|
8606
8606
|
return r[r.Word = 0] = "Word", r[r.Space = 1] = "Space", r[r.Other = 2] = "Other", r;
|
|
8607
8607
|
}(br || (br = {}));
|
|
8608
8608
|
const i7 = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;
|
|
8609
|
-
let
|
|
8609
|
+
let Ha;
|
|
8610
8610
|
try {
|
|
8611
|
-
|
|
8611
|
+
Ha = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u");
|
|
8612
8612
|
} catch {
|
|
8613
8613
|
}
|
|
8614
8614
|
function s7(r) {
|
|
8615
|
-
if (
|
|
8616
|
-
return
|
|
8615
|
+
if (Ha)
|
|
8616
|
+
return Ha.test(r);
|
|
8617
8617
|
for (let e = 0; e < r.length; e++) {
|
|
8618
8618
|
let t = r[e];
|
|
8619
8619
|
if (/\w/.test(t) || t > "" && (t.toUpperCase() != t.toLowerCase() || i7.test(t)))
|
|
@@ -8727,7 +8727,7 @@ class ke {
|
|
|
8727
8727
|
[`Text`](https://codemirror.net/6/docs/ref/#state.Text) instance from the given string.
|
|
8728
8728
|
*/
|
|
8729
8729
|
toText(e) {
|
|
8730
|
-
return we.of(e.split(this.facet(ke.lineSeparator) ||
|
|
8730
|
+
return we.of(e.split(this.facet(ke.lineSeparator) || Wa));
|
|
8731
8731
|
}
|
|
8732
8732
|
/**
|
|
8733
8733
|
Return the given range of the document as a string.
|
|
@@ -8789,7 +8789,7 @@ class ke {
|
|
|
8789
8789
|
transactions.
|
|
8790
8790
|
*/
|
|
8791
8791
|
static create(e = {}) {
|
|
8792
|
-
let t = $s.resolve(e.extensions || [], /* @__PURE__ */ new Map()), n = e.doc instanceof we ? e.doc : we.of((e.doc || "").split(t.staticFacet(ke.lineSeparator) ||
|
|
8792
|
+
let t = $s.resolve(e.extensions || [], /* @__PURE__ */ new Map()), n = e.doc instanceof we ? e.doc : we.of((e.doc || "").split(t.staticFacet(ke.lineSeparator) || Wa)), o = e.selection ? e.selection instanceof J ? e.selection : J.single(e.selection.anchor, e.selection.head) : J.single(0);
|
|
8793
8793
|
return mf(o, n.length), t.staticFacet(bf) || (o = o.asSingle()), new ke(t, n, o, t.dynamicSlots.map(() => null), (i, s) => s.create(i), null);
|
|
8794
8794
|
}
|
|
8795
8795
|
/**
|
|
@@ -8963,10 +8963,10 @@ class Fo {
|
|
|
8963
8963
|
return new Fo(e, t, n);
|
|
8964
8964
|
}
|
|
8965
8965
|
}
|
|
8966
|
-
function
|
|
8966
|
+
function Na(r, e) {
|
|
8967
8967
|
return r.from - e.from || r.value.startSide - e.value.startSide;
|
|
8968
8968
|
}
|
|
8969
|
-
class
|
|
8969
|
+
class $0 {
|
|
8970
8970
|
constructor(e, t, n, o) {
|
|
8971
8971
|
this.from = e, this.to = t, this.value = n, this.maxPoint = o;
|
|
8972
8972
|
}
|
|
@@ -9003,7 +9003,7 @@ class _0 {
|
|
|
9003
9003
|
continue;
|
|
9004
9004
|
(f - d || c.endSide - c.startSide) < 0 || (s < 0 && (s = d), c.point && (l = Math.max(l, f - d)), n.push(c), o.push(d - s), i.push(f - s));
|
|
9005
9005
|
}
|
|
9006
|
-
return { mapped: n.length ? new
|
|
9006
|
+
return { mapped: n.length ? new $0(o, i, n, l) : null, pos: s };
|
|
9007
9007
|
}
|
|
9008
9008
|
}
|
|
9009
9009
|
class Ae {
|
|
@@ -9053,7 +9053,7 @@ class Ae {
|
|
|
9053
9053
|
let { add: t = [], sort: n = !1, filterFrom: o = 0, filterTo: i = this.length } = e, s = e.filter;
|
|
9054
9054
|
if (t.length == 0 && !s)
|
|
9055
9055
|
return this;
|
|
9056
|
-
if (n && (t = t.slice().sort(
|
|
9056
|
+
if (n && (t = t.slice().sort(Na)), this.isEmpty)
|
|
9057
9057
|
return t.length ? Ae.of(t) : this;
|
|
9058
9058
|
let l = new Pf(this, null, -1).goto(0), a = 0, c = [], u = new Jn();
|
|
9059
9059
|
for (; l.value || a < t.length; )
|
|
@@ -9140,7 +9140,7 @@ class Ae {
|
|
|
9140
9140
|
return !0;
|
|
9141
9141
|
let l = su(i, s), a = new xo(i, l, 0).goto(n), c = new xo(s, l, 0).goto(n);
|
|
9142
9142
|
for (; ; ) {
|
|
9143
|
-
if (a.to != c.to || !
|
|
9143
|
+
if (a.to != c.to || !Ga(a.active, c.active) || a.point && (!c.point || !a.point.eq(c.point)))
|
|
9144
9144
|
return !1;
|
|
9145
9145
|
if (a.to > o)
|
|
9146
9146
|
return !0;
|
|
@@ -9187,8 +9187,8 @@ function c7(r) {
|
|
|
9187
9187
|
if (r.length > 1)
|
|
9188
9188
|
for (let e = r[0], t = 1; t < r.length; t++) {
|
|
9189
9189
|
let n = r[t];
|
|
9190
|
-
if (
|
|
9191
|
-
return r.slice().sort(
|
|
9190
|
+
if (Na(e, n) > 0)
|
|
9191
|
+
return r.slice().sort(Na);
|
|
9192
9192
|
e = n;
|
|
9193
9193
|
}
|
|
9194
9194
|
return r;
|
|
@@ -9196,7 +9196,7 @@ function c7(r) {
|
|
|
9196
9196
|
Ae.empty.nextLayer = Ae.empty;
|
|
9197
9197
|
class Jn {
|
|
9198
9198
|
finishChunk(e) {
|
|
9199
|
-
this.chunks.push(new
|
|
9199
|
+
this.chunks.push(new $0(this.from, this.to, this.value, this.maxPoint)), this.chunkPos.push(this.chunkStart), this.chunkStart = -1, this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint), this.maxPoint = -1, e && (this.from = [], this.to = [], this.value = []);
|
|
9200
9200
|
}
|
|
9201
9201
|
/**
|
|
9202
9202
|
Create an empty builder.
|
|
@@ -9334,14 +9334,14 @@ class Do {
|
|
|
9334
9334
|
for (let n of this.heap)
|
|
9335
9335
|
n.goto(e, t);
|
|
9336
9336
|
for (let n = this.heap.length >> 1; n >= 0; n--)
|
|
9337
|
-
|
|
9337
|
+
jl(this.heap, n);
|
|
9338
9338
|
return this.next(), this;
|
|
9339
9339
|
}
|
|
9340
9340
|
forward(e, t) {
|
|
9341
9341
|
for (let n of this.heap)
|
|
9342
9342
|
n.forward(e, t);
|
|
9343
9343
|
for (let n = this.heap.length >> 1; n >= 0; n--)
|
|
9344
|
-
|
|
9344
|
+
jl(this.heap, n);
|
|
9345
9345
|
(this.to - e || this.value.endSide - t) < 0 && this.next();
|
|
9346
9346
|
}
|
|
9347
9347
|
next() {
|
|
@@ -9349,11 +9349,11 @@ class Do {
|
|
|
9349
9349
|
this.from = this.to = 1e9, this.value = null, this.rank = -1;
|
|
9350
9350
|
else {
|
|
9351
9351
|
let e = this.heap[0];
|
|
9352
|
-
this.from = e.from, this.to = e.to, this.value = e.value, this.rank = e.rank, e.value && e.next(),
|
|
9352
|
+
this.from = e.from, this.to = e.to, this.value = e.value, this.rank = e.rank, e.value && e.next(), jl(this.heap, 0);
|
|
9353
9353
|
}
|
|
9354
9354
|
}
|
|
9355
9355
|
}
|
|
9356
|
-
function
|
|
9356
|
+
function jl(r, e) {
|
|
9357
9357
|
for (let t = r[e]; ; ) {
|
|
9358
9358
|
let n = (e << 1) + 1;
|
|
9359
9359
|
if (n >= r.length)
|
|
@@ -9445,12 +9445,12 @@ function lu(r, e, t, n, o, i) {
|
|
|
9445
9445
|
let s = n + o, l = n, a = n - e;
|
|
9446
9446
|
for (; ; ) {
|
|
9447
9447
|
let c = r.to + a - t.to || r.endSide - t.endSide, u = c < 0 ? r.to + a : t.to, h = Math.min(u, s);
|
|
9448
|
-
if (r.point || t.point ? r.point && t.point && (r.point == t.point || r.point.eq(t.point)) &&
|
|
9448
|
+
if (r.point || t.point ? r.point && t.point && (r.point == t.point || r.point.eq(t.point)) && Ga(r.activeForPoint(r.to), t.activeForPoint(t.to)) || i.comparePoint(l, h, r.point, t.point) : h > l && !Ga(r.active, t.active) && i.compareRange(l, h, r.active, t.active), u > s)
|
|
9449
9449
|
break;
|
|
9450
9450
|
l = u, c <= 0 && r.next(), c >= 0 && t.next();
|
|
9451
9451
|
}
|
|
9452
9452
|
}
|
|
9453
|
-
function
|
|
9453
|
+
function Ga(r, e) {
|
|
9454
9454
|
if (r.length != e.length)
|
|
9455
9455
|
return !1;
|
|
9456
9456
|
for (let t = 0; t < r.length; t++)
|
|
@@ -9484,7 +9484,7 @@ function u7(r, e, t, n) {
|
|
|
9484
9484
|
}
|
|
9485
9485
|
return n === !0 ? -1 : r.length;
|
|
9486
9486
|
}
|
|
9487
|
-
const
|
|
9487
|
+
const Fa = "ͼ", cu = typeof Symbol > "u" ? "__" + Fa : Symbol.for(Fa), Da = typeof Symbol > "u" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet"), uu = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : {};
|
|
9488
9488
|
class Ir {
|
|
9489
9489
|
// :: (Object<Style>, ?{finish: ?(string) → string})
|
|
9490
9490
|
// Create a style module from the given spec.
|
|
@@ -9531,7 +9531,7 @@ class Ir {
|
|
|
9531
9531
|
// Generate a new unique CSS class name.
|
|
9532
9532
|
static newName() {
|
|
9533
9533
|
let e = uu[cu] || 1;
|
|
9534
|
-
return uu[cu] = e + 1,
|
|
9534
|
+
return uu[cu] = e + 1, Fa + e.toString(36);
|
|
9535
9535
|
}
|
|
9536
9536
|
// :: (union<Document, ShadowRoot>, union<[StyleModule], StyleModule>, ?{nonce: ?string})
|
|
9537
9537
|
//
|
|
@@ -9550,7 +9550,7 @@ class Ir {
|
|
|
9550
9550
|
// If a Content Security Policy nonce is provided, it is added to
|
|
9551
9551
|
// the `<style>` tag generated by the library.
|
|
9552
9552
|
static mount(e, t, n) {
|
|
9553
|
-
let o = e[
|
|
9553
|
+
let o = e[Da], i = n && n.nonce;
|
|
9554
9554
|
o ? i && o.setNonce(i) : o = new h7(e, i), o.mount(Array.isArray(t) ? t : [t]);
|
|
9555
9555
|
}
|
|
9556
9556
|
}
|
|
@@ -9561,14 +9561,14 @@ class h7 {
|
|
|
9561
9561
|
if (!e.head && e.adoptedStyleSheets && o.CSSStyleSheet) {
|
|
9562
9562
|
let i = hu.get(n);
|
|
9563
9563
|
if (i)
|
|
9564
|
-
return e.adoptedStyleSheets = [i.sheet, ...e.adoptedStyleSheets], e[
|
|
9564
|
+
return e.adoptedStyleSheets = [i.sheet, ...e.adoptedStyleSheets], e[Da] = i;
|
|
9565
9565
|
this.sheet = new o.CSSStyleSheet(), e.adoptedStyleSheets = [this.sheet, ...e.adoptedStyleSheets], hu.set(n, this);
|
|
9566
9566
|
} else {
|
|
9567
9567
|
this.styleTag = n.createElement("style"), t && this.styleTag.setAttribute("nonce", t);
|
|
9568
9568
|
let i = e.head || e;
|
|
9569
9569
|
i.insertBefore(this.styleTag, i.firstChild);
|
|
9570
9570
|
}
|
|
9571
|
-
this.modules = [], e[
|
|
9571
|
+
this.modules = [], e[Da] = this;
|
|
9572
9572
|
}
|
|
9573
9573
|
mount(e) {
|
|
9574
9574
|
let t = this.sheet, n = 0, o = 0;
|
|
@@ -9681,8 +9681,8 @@ for (var it = 1; it <= 24; it++)
|
|
|
9681
9681
|
Hr[it + 111] = "F" + it;
|
|
9682
9682
|
for (var it = 65; it <= 90; it++)
|
|
9683
9683
|
Hr[it] = String.fromCharCode(it + 32), Ko[it] = String.fromCharCode(it);
|
|
9684
|
-
for (var
|
|
9685
|
-
Ko.hasOwnProperty(
|
|
9684
|
+
for (var Wl in Hr)
|
|
9685
|
+
Ko.hasOwnProperty(Wl) || (Ko[Wl] = Hr[Wl]);
|
|
9686
9686
|
function O7(r) {
|
|
9687
9687
|
var e = d7 && r.metaKey && r.shiftKey && !r.ctrlKey && !r.altKey || f7 && r.shiftKey && r.key && r.key.length == 1 || r.key == "Unidentified", t = !e && r.key || (r.shiftKey ? Ko : Hr)[r.keyCode] || r.key || "Unidentified";
|
|
9688
9688
|
return t == "Esc" && (t = "Escape"), t == "Del" && (t = "Delete"), t == "Left" && (t = "ArrowLeft"), t == "Up" && (t = "ArrowUp"), t == "Right" && (t = "ArrowRight"), t == "Down" && (t = "ArrowDown"), t;
|
|
@@ -9691,7 +9691,7 @@ function Ts(r) {
|
|
|
9691
9691
|
let e;
|
|
9692
9692
|
return r.nodeType == 11 ? e = r.getSelection ? r : r.ownerDocument : e = r, e.getSelection();
|
|
9693
9693
|
}
|
|
9694
|
-
function
|
|
9694
|
+
function Ka(r, e) {
|
|
9695
9695
|
return e ? r == e || r.contains(e.nodeType != 1 ? e.parentNode : e) : !1;
|
|
9696
9696
|
}
|
|
9697
9697
|
function p7(r) {
|
|
@@ -9704,7 +9704,7 @@ function is(r, e) {
|
|
|
9704
9704
|
if (!e.anchorNode)
|
|
9705
9705
|
return !1;
|
|
9706
9706
|
try {
|
|
9707
|
-
return
|
|
9707
|
+
return Ka(r, e.anchorNode);
|
|
9708
9708
|
} catch {
|
|
9709
9709
|
return !1;
|
|
9710
9710
|
}
|
|
@@ -9742,7 +9742,7 @@ function du(r, e, t, n, o) {
|
|
|
9742
9742
|
function Nr(r) {
|
|
9743
9743
|
return r.nodeType == 3 ? r.nodeValue.length : r.childNodes.length;
|
|
9744
9744
|
}
|
|
9745
|
-
function
|
|
9745
|
+
function P0(r, e) {
|
|
9746
9746
|
let t = e ? r.left : r.right;
|
|
9747
9747
|
return { left: t, right: t, top: r.top, bottom: r.bottom };
|
|
9748
9748
|
}
|
|
@@ -9911,7 +9911,7 @@ class at {
|
|
|
9911
9911
|
return new at(e.parentNode, Zs(e) + 1, t);
|
|
9912
9912
|
}
|
|
9913
9913
|
}
|
|
9914
|
-
const
|
|
9914
|
+
const T0 = [];
|
|
9915
9915
|
class qe {
|
|
9916
9916
|
constructor() {
|
|
9917
9917
|
this.parent = null, this.dom = null, this.flags = 2;
|
|
@@ -10033,7 +10033,7 @@ class qe {
|
|
|
10033
10033
|
e = t;
|
|
10034
10034
|
}
|
|
10035
10035
|
}
|
|
10036
|
-
replaceChildren(e, t, n =
|
|
10036
|
+
replaceChildren(e, t, n = T0) {
|
|
10037
10037
|
this.markDirty();
|
|
10038
10038
|
for (let o = e; o < t; o++) {
|
|
10039
10039
|
let i = this.children[o];
|
|
@@ -10131,24 +10131,24 @@ function Af(r, e, t, n, o, i) {
|
|
|
10131
10131
|
h += d.length;
|
|
10132
10132
|
r.length += h, Rf(r, c, u, l, a, n, 0, o, i);
|
|
10133
10133
|
}
|
|
10134
|
-
let Pt = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" },
|
|
10135
|
-
const
|
|
10134
|
+
let Pt = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, Ja = typeof document < "u" ? document : { documentElement: { style: {} } };
|
|
10135
|
+
const e1 = /* @__PURE__ */ /Edge\/(\d+)/.exec(Pt.userAgent), qf = /* @__PURE__ */ /MSIE \d/.test(Pt.userAgent), t1 = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Pt.userAgent), tl = !!(qf || t1 || e1), pu = !tl && /* @__PURE__ */ /gecko\/(\d+)/i.test(Pt.userAgent), Yl = !tl && /* @__PURE__ */ /Chrome\/(\d+)/.exec(Pt.userAgent), gu = "webkitFontSmoothing" in Ja.documentElement.style, Mf = !tl && /* @__PURE__ */ /Apple Computer/.test(Pt.vendor), mu = Mf && (/* @__PURE__ */ /Mobile\/\w+/.test(Pt.userAgent) || Pt.maxTouchPoints > 2);
|
|
10136
10136
|
var ne = {
|
|
10137
10137
|
mac: mu || /* @__PURE__ */ /Mac/.test(Pt.platform),
|
|
10138
10138
|
windows: /* @__PURE__ */ /Win/.test(Pt.platform),
|
|
10139
10139
|
linux: /* @__PURE__ */ /Linux|X11/.test(Pt.platform),
|
|
10140
10140
|
ie: tl,
|
|
10141
|
-
ie_version: qf ?
|
|
10141
|
+
ie_version: qf ? Ja.documentMode || 6 : t1 ? +t1[1] : e1 ? +e1[1] : 0,
|
|
10142
10142
|
gecko: pu,
|
|
10143
10143
|
gecko_version: pu ? +(/* @__PURE__ */ /Firefox\/(\d+)/.exec(Pt.userAgent) || [0, 0])[1] : 0,
|
|
10144
|
-
chrome: !!
|
|
10145
|
-
chrome_version:
|
|
10144
|
+
chrome: !!Yl,
|
|
10145
|
+
chrome_version: Yl ? +Yl[1] : 0,
|
|
10146
10146
|
ios: mu,
|
|
10147
10147
|
android: /* @__PURE__ */ /Android\b/.test(Pt.userAgent),
|
|
10148
10148
|
webkit: gu,
|
|
10149
10149
|
safari: Mf,
|
|
10150
10150
|
webkit_version: gu ? +(/* @__PURE__ */ /\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0,
|
|
10151
|
-
tabSize:
|
|
10151
|
+
tabSize: Ja.documentElement.style.tabSize != null ? "tab-size" : "-moz-tab-size"
|
|
10152
10152
|
};
|
|
10153
10153
|
const y7 = 256;
|
|
10154
10154
|
class $r extends qe {
|
|
@@ -10236,7 +10236,7 @@ function k7(r, e, t) {
|
|
|
10236
10236
|
if (!l.length)
|
|
10237
10237
|
return null;
|
|
10238
10238
|
let a = l[(s ? s < 0 : t >= 0) ? 0 : l.length - 1];
|
|
10239
|
-
return ne.safari && !s && a.width == 0 && (a = Array.prototype.find.call(l, (c) => c.width) || a), s ?
|
|
10239
|
+
return ne.safari && !s && a.width == 0 && (a = Array.prototype.find.call(l, (c) => c.width) || a), s ? P0(a, s < 0) : a || null;
|
|
10240
10240
|
}
|
|
10241
10241
|
class pn extends qe {
|
|
10242
10242
|
static create(e, t, n) {
|
|
@@ -10292,7 +10292,7 @@ class pn extends qe {
|
|
|
10292
10292
|
let s = this.side ? this.side < 0 : e > 0;
|
|
10293
10293
|
for (let l = s ? o.length - 1 : 0; i = o[l], !(e > 0 ? l == 0 : l == o.length - 1 || i.top < i.bottom); l += s ? -1 : 1)
|
|
10294
10294
|
;
|
|
10295
|
-
return
|
|
10295
|
+
return P0(i, !s);
|
|
10296
10296
|
}
|
|
10297
10297
|
get isEditable() {
|
|
10298
10298
|
return !1;
|
|
@@ -10351,7 +10351,7 @@ class eo extends qe {
|
|
|
10351
10351
|
return !0;
|
|
10352
10352
|
}
|
|
10353
10353
|
}
|
|
10354
|
-
$r.prototype.children = pn.prototype.children = eo.prototype.children =
|
|
10354
|
+
$r.prototype.children = pn.prototype.children = eo.prototype.children = T0;
|
|
10355
10355
|
function Ef(r, e) {
|
|
10356
10356
|
let t = r.dom, { children: n } = r, o = 0;
|
|
10357
10357
|
for (let i = 0; o < n.length; o++) {
|
|
@@ -10399,13 +10399,13 @@ function x7(r) {
|
|
|
10399
10399
|
let t = Jo(e);
|
|
10400
10400
|
return t[t.length - 1] || null;
|
|
10401
10401
|
}
|
|
10402
|
-
function
|
|
10402
|
+
function r1(r, e) {
|
|
10403
10403
|
for (let t in r)
|
|
10404
10404
|
t == "class" && e.class ? e.class += " " + r.class : t == "style" && e.style ? e.style += ";" + r.style : e[t] = r[t];
|
|
10405
10405
|
return e;
|
|
10406
10406
|
}
|
|
10407
10407
|
const vu = /* @__PURE__ */ Object.create(null);
|
|
10408
|
-
function
|
|
10408
|
+
function C0(r, e, t) {
|
|
10409
10409
|
if (r == e)
|
|
10410
10410
|
return !0;
|
|
10411
10411
|
r || (r = vu), e || (e = vu);
|
|
@@ -10417,7 +10417,7 @@ function T0(r, e, t) {
|
|
|
10417
10417
|
return !1;
|
|
10418
10418
|
return !0;
|
|
10419
10419
|
}
|
|
10420
|
-
function
|
|
10420
|
+
function n1(r, e, t) {
|
|
10421
10421
|
let n = !1;
|
|
10422
10422
|
if (e)
|
|
10423
10423
|
for (let o in e)
|
|
@@ -10464,7 +10464,7 @@ class Je extends qe {
|
|
|
10464
10464
|
this.dom && (this.markDirty(), e.setDOM(this.dom), e.prevAttrs = this.prevAttrs === void 0 ? this.attrs : this.prevAttrs, this.prevAttrs = void 0, this.dom = null);
|
|
10465
10465
|
}
|
|
10466
10466
|
setDeco(e) {
|
|
10467
|
-
|
|
10467
|
+
C0(this.attrs, e) || (this.dom && (this.prevAttrs = this.attrs, this.markDirty()), this.attrs = e);
|
|
10468
10468
|
}
|
|
10469
10469
|
append(e, t) {
|
|
10470
10470
|
Uf(this, e, t);
|
|
@@ -10472,7 +10472,7 @@ class Je extends qe {
|
|
|
10472
10472
|
// Only called when building a line view in ContentBuilder
|
|
10473
10473
|
addLineDeco(e) {
|
|
10474
10474
|
let t = e.spec.attributes, n = e.spec.class;
|
|
10475
|
-
t && (this.attrs =
|
|
10475
|
+
t && (this.attrs = r1(t, this.attrs || {})), n && (this.attrs = r1({ class: n }, this.attrs || {}));
|
|
10476
10476
|
}
|
|
10477
10477
|
domAtPos(e) {
|
|
10478
10478
|
return Ef(this, e);
|
|
@@ -10482,7 +10482,7 @@ class Je extends qe {
|
|
|
10482
10482
|
}
|
|
10483
10483
|
sync(e, t) {
|
|
10484
10484
|
var n;
|
|
10485
|
-
this.dom ? this.flags & 4 && (Cf(this.dom), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0) : (this.setDOM(document.createElement("div")), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0), this.prevAttrs !== void 0 && (
|
|
10485
|
+
this.dom ? this.flags & 4 && (Cf(this.dom), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0) : (this.setDOM(document.createElement("div")), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0), this.prevAttrs !== void 0 && (n1(this.dom, this.prevAttrs, this.attrs), this.dom.classList.add("cm-line"), this.prevAttrs = void 0), super.sync(e, t);
|
|
10486
10486
|
let o = this.dom.lastChild;
|
|
10487
10487
|
for (; o && qe.get(o) instanceof Pr; )
|
|
10488
10488
|
o = o.lastChild;
|
|
@@ -10557,7 +10557,7 @@ class vn extends qe {
|
|
|
10557
10557
|
return n.breakAfter = this.breakAfter, n;
|
|
10558
10558
|
}
|
|
10559
10559
|
get children() {
|
|
10560
|
-
return
|
|
10560
|
+
return T0;
|
|
10561
10561
|
}
|
|
10562
10562
|
sync(e) {
|
|
10563
10563
|
(!this.dom || !this.widget.updateDOM(this.dom, e)) && (this.dom && this.prevWidget && this.prevWidget.destroy(this.dom), this.prevWidget = null, this.setDOM(this.widget.toDOM(e)), this.dom.contentEditable = "false");
|
|
@@ -10749,7 +10749,7 @@ class vi extends rt {
|
|
|
10749
10749
|
}
|
|
10750
10750
|
eq(e) {
|
|
10751
10751
|
var t, n;
|
|
10752
|
-
return this == e || e instanceof vi && this.tagName == e.tagName && (this.class || ((t = this.attrs) === null || t === void 0 ? void 0 : t.class)) == (e.class || ((n = e.attrs) === null || n === void 0 ? void 0 : n.class)) &&
|
|
10752
|
+
return this == e || e instanceof vi && this.tagName == e.tagName && (this.class || ((t = this.attrs) === null || t === void 0 ? void 0 : t.class)) == (e.class || ((n = e.attrs) === null || n === void 0 ? void 0 : n.class)) && C0(this.attrs, e.attrs, "class");
|
|
10753
10753
|
}
|
|
10754
10754
|
range(e, t = e) {
|
|
10755
10755
|
if (e >= t)
|
|
@@ -10763,7 +10763,7 @@ class wi extends rt {
|
|
|
10763
10763
|
super(-2e8, -2e8, null, e);
|
|
10764
10764
|
}
|
|
10765
10765
|
eq(e) {
|
|
10766
|
-
return e instanceof wi && this.spec.class == e.spec.class &&
|
|
10766
|
+
return e instanceof wi && this.spec.class == e.spec.class && C0(this.spec.attributes, e.spec.attributes);
|
|
10767
10767
|
}
|
|
10768
10768
|
range(e, t = e) {
|
|
10769
10769
|
if (t != e)
|
|
@@ -10803,7 +10803,7 @@ function jf(r, e = !1) {
|
|
|
10803
10803
|
function _7(r, e) {
|
|
10804
10804
|
return r == e || !!(r && e && r.compare(e));
|
|
10805
10805
|
}
|
|
10806
|
-
function
|
|
10806
|
+
function o1(r, e, t, n = 0) {
|
|
10807
10807
|
let o = t.length - 1;
|
|
10808
10808
|
o >= 0 && t[o] + n >= r ? t[o] = Math.max(t[o], e) : t.push(r, e);
|
|
10809
10809
|
}
|
|
@@ -10899,7 +10899,7 @@ class wu extends rl {
|
|
|
10899
10899
|
return !0;
|
|
10900
10900
|
}
|
|
10901
10901
|
}
|
|
10902
|
-
const Wf = /* @__PURE__ */ ie.define(), Yf = /* @__PURE__ */ ie.define(), Lf = /* @__PURE__ */ ie.define(), zf = /* @__PURE__ */ ie.define(),
|
|
10902
|
+
const Wf = /* @__PURE__ */ ie.define(), Yf = /* @__PURE__ */ ie.define(), Lf = /* @__PURE__ */ ie.define(), zf = /* @__PURE__ */ ie.define(), i1 = /* @__PURE__ */ ie.define(), Bf = /* @__PURE__ */ ie.define(), If = /* @__PURE__ */ ie.define(), Hf = /* @__PURE__ */ ie.define({
|
|
10903
10903
|
combine: (r) => r.some((e) => e)
|
|
10904
10904
|
}), $7 = /* @__PURE__ */ ie.define({
|
|
10905
10905
|
combine: (r) => r.some((e) => e)
|
|
@@ -10946,7 +10946,7 @@ class Tr {
|
|
|
10946
10946
|
return Tr.define((n) => new e(n), t);
|
|
10947
10947
|
}
|
|
10948
10948
|
}
|
|
10949
|
-
class
|
|
10949
|
+
class Ll {
|
|
10950
10950
|
constructor(e) {
|
|
10951
10951
|
this.spec = e, this.mustUpdate = null, this.value = null;
|
|
10952
10952
|
}
|
|
@@ -10987,7 +10987,7 @@ class Yl {
|
|
|
10987
10987
|
this.spec = this.value = null;
|
|
10988
10988
|
}
|
|
10989
10989
|
}
|
|
10990
|
-
const Nf = /* @__PURE__ */ ie.define(),
|
|
10990
|
+
const Nf = /* @__PURE__ */ ie.define(), Z0 = /* @__PURE__ */ ie.define(), ei = /* @__PURE__ */ ie.define(), X0 = /* @__PURE__ */ ie.define(), Gf = /* @__PURE__ */ ie.define();
|
|
10991
10991
|
function Su(r, e, t) {
|
|
10992
10992
|
let n = r.state.facet(Gf);
|
|
10993
10993
|
if (!n.length)
|
|
@@ -11129,10 +11129,10 @@ function Jf(r) {
|
|
|
11129
11129
|
e.push(1 << +r[t]);
|
|
11130
11130
|
return e;
|
|
11131
11131
|
}
|
|
11132
|
-
const T7 = /* @__PURE__ */ Jf("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), C7 = /* @__PURE__ */ Jf("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),
|
|
11132
|
+
const T7 = /* @__PURE__ */ Jf("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), C7 = /* @__PURE__ */ Jf("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), s1 = /* @__PURE__ */ Object.create(null), Ft = [];
|
|
11133
11133
|
for (let r of ["()", "[]", "{}"]) {
|
|
11134
11134
|
let e = /* @__PURE__ */ r.charCodeAt(0), t = /* @__PURE__ */ r.charCodeAt(1);
|
|
11135
|
-
|
|
11135
|
+
s1[e] = t, s1[t] = -e;
|
|
11136
11136
|
}
|
|
11137
11137
|
function Z7(r) {
|
|
11138
11138
|
return r <= 247 ? T7[r] : 1424 <= r && r <= 1524 ? 2 : 1536 <= r && r <= 1785 ? C7[r - 1536] : 1774 <= r && r <= 2220 ? 4 : 8192 <= r && r <= 8203 ? 256 : 64336 <= r && r <= 65023 ? 4 : r == 8204 ? 256 : 1;
|
|
@@ -11216,7 +11216,7 @@ function A7(r, e, t, n, o) {
|
|
|
11216
11216
|
for (let s = 0, l = 0, a = 0; s <= n.length; s++) {
|
|
11217
11217
|
let c = s ? n[s - 1].to : e, u = s < n.length ? n[s].from : t;
|
|
11218
11218
|
for (let h = c, d, f, O; h < u; h++)
|
|
11219
|
-
if (f =
|
|
11219
|
+
if (f = s1[d = r.charCodeAt(h)])
|
|
11220
11220
|
if (f < 0) {
|
|
11221
11221
|
for (let m = l - 3; m >= 0; m -= 3)
|
|
11222
11222
|
if (Ft[m + 1] == -f) {
|
|
@@ -11272,7 +11272,7 @@ function q7(r, e, t, n) {
|
|
|
11272
11272
|
}
|
|
11273
11273
|
}
|
|
11274
11274
|
}
|
|
11275
|
-
function
|
|
11275
|
+
function l1(r, e, t, n, o, i, s) {
|
|
11276
11276
|
let l = n % 2 ? 2 : 1;
|
|
11277
11277
|
if (n % 2 == o % 2)
|
|
11278
11278
|
for (let a = e, c = 0; a < t; ) {
|
|
@@ -11305,7 +11305,7 @@ function s1(r, e, t, n, o, i, s) {
|
|
|
11305
11305
|
else {
|
|
11306
11306
|
m.from > a && s.push(new Lr(a, m.from, f));
|
|
11307
11307
|
let v = m.direction == ti != !(f % 2);
|
|
11308
|
-
|
|
11308
|
+
a1(r, v ? n + 1 : n, o, m.inner, m.from, m.to, s), a = m.to;
|
|
11309
11309
|
}
|
|
11310
11310
|
O = m.to;
|
|
11311
11311
|
} else {
|
|
@@ -11313,7 +11313,7 @@ function s1(r, e, t, n, o, i, s) {
|
|
|
11313
11313
|
break;
|
|
11314
11314
|
O++;
|
|
11315
11315
|
}
|
|
11316
|
-
d ?
|
|
11316
|
+
d ? l1(r, a, O, n + 1, o, d, s) : a < O && s.push(new Lr(a, O, f)), a = O;
|
|
11317
11317
|
}
|
|
11318
11318
|
else
|
|
11319
11319
|
for (let a = t, c = i.length; a > e; ) {
|
|
@@ -11346,7 +11346,7 @@ function s1(r, e, t, n, o, i, s) {
|
|
|
11346
11346
|
else {
|
|
11347
11347
|
m.to < a && s.push(new Lr(m.to, a, f));
|
|
11348
11348
|
let v = m.direction == ti != !(f % 2);
|
|
11349
|
-
|
|
11349
|
+
a1(r, v ? n + 1 : n, o, m.inner, m.from, m.to, s), a = m.from;
|
|
11350
11350
|
}
|
|
11351
11351
|
O = m.from;
|
|
11352
11352
|
} else {
|
|
@@ -11354,12 +11354,12 @@ function s1(r, e, t, n, o, i, s) {
|
|
|
11354
11354
|
break;
|
|
11355
11355
|
O--;
|
|
11356
11356
|
}
|
|
11357
|
-
d ?
|
|
11357
|
+
d ? l1(r, O, a, n + 1, o, d, s) : O < a && s.push(new Lr(O, a, f)), a = O;
|
|
11358
11358
|
}
|
|
11359
11359
|
}
|
|
11360
|
-
function
|
|
11360
|
+
function a1(r, e, t, n, o, i, s) {
|
|
11361
11361
|
let l = e % 2 ? 2 : 1;
|
|
11362
|
-
R7(r, o, i, n, l), A7(r, o, i, n, l), q7(o, i, n, l),
|
|
11362
|
+
R7(r, o, i, n, l), A7(r, o, i, n, l), q7(o, i, n, l), l1(r, o, i, e, t, n, s);
|
|
11363
11363
|
}
|
|
11364
11364
|
function M7(r, e, t) {
|
|
11365
11365
|
if (!r)
|
|
@@ -11370,7 +11370,7 @@ function M7(r, e, t) {
|
|
|
11370
11370
|
for (; r.length > _e.length; )
|
|
11371
11371
|
_e[_e.length] = 256;
|
|
11372
11372
|
let n = [], o = e == ti ? 0 : 1;
|
|
11373
|
-
return
|
|
11373
|
+
return a1(r, o, o, t, 0, r.length, n), n;
|
|
11374
11374
|
}
|
|
11375
11375
|
function tO(r) {
|
|
11376
11376
|
return [new Lr(0, r, 0)];
|
|
@@ -11787,10 +11787,10 @@ let W7 = class {
|
|
|
11787
11787
|
this.changes = [];
|
|
11788
11788
|
}
|
|
11789
11789
|
compareRange(e, t) {
|
|
11790
|
-
|
|
11790
|
+
o1(e, t, this.changes);
|
|
11791
11791
|
}
|
|
11792
11792
|
comparePoint(e, t) {
|
|
11793
|
-
|
|
11793
|
+
o1(e, t, this.changes);
|
|
11794
11794
|
}
|
|
11795
11795
|
};
|
|
11796
11796
|
function Y7(r, e, t) {
|
|
@@ -11837,7 +11837,7 @@ function I7(r, e) {
|
|
|
11837
11837
|
function H7(r, e) {
|
|
11838
11838
|
return e.top > r ? e.top - r : Math.max(0, r - e.bottom);
|
|
11839
11839
|
}
|
|
11840
|
-
function
|
|
11840
|
+
function zl(r, e) {
|
|
11841
11841
|
return r.top < e.bottom - 1 && r.bottom > e.top + 1;
|
|
11842
11842
|
}
|
|
11843
11843
|
function xu(r, e) {
|
|
@@ -11846,22 +11846,22 @@ function xu(r, e) {
|
|
|
11846
11846
|
function Qu(r, e) {
|
|
11847
11847
|
return e > r.bottom ? { top: r.top, left: r.left, right: r.right, bottom: e } : r;
|
|
11848
11848
|
}
|
|
11849
|
-
function
|
|
11849
|
+
function c1(r, e, t) {
|
|
11850
11850
|
let n, o, i, s, l = !1, a, c, u, h;
|
|
11851
11851
|
for (let O = r.firstChild; O; O = O.nextSibling) {
|
|
11852
11852
|
let m = Jo(O);
|
|
11853
11853
|
for (let v = 0; v < m.length; v++) {
|
|
11854
11854
|
let b = m[v];
|
|
11855
|
-
o &&
|
|
11855
|
+
o && zl(o, b) && (b = xu(Qu(b, o.bottom), o.top));
|
|
11856
11856
|
let Q = I7(e, b), $ = H7(t, b);
|
|
11857
11857
|
if (Q == 0 && $ == 0)
|
|
11858
|
-
return O.nodeType == 3 ? _u(O, e, t) :
|
|
11858
|
+
return O.nodeType == 3 ? _u(O, e, t) : c1(O, e, t);
|
|
11859
11859
|
if (!n || s > $ || s == $ && i > Q) {
|
|
11860
11860
|
n = O, o = b, i = Q, s = $;
|
|
11861
11861
|
let P = $ ? t < b.top ? -1 : 1 : Q ? e < b.left ? -1 : 1 : 0;
|
|
11862
11862
|
l = !P || (P > 0 ? v < m.length - 1 : v > 0);
|
|
11863
11863
|
}
|
|
11864
|
-
Q == 0 ? t > b.bottom && (!u || u.bottom < b.bottom) ? (a = O, u = b) : t < b.top && (!h || h.top > b.top) && (c = O, h = b) : u &&
|
|
11864
|
+
Q == 0 ? t > b.bottom && (!u || u.bottom < b.bottom) ? (a = O, u = b) : t < b.top && (!h || h.top > b.top) && (c = O, h = b) : u && zl(u, b) ? u = Qu(u, b.bottom) : h && zl(h, b) && (h = xu(h, b.top));
|
|
11865
11865
|
}
|
|
11866
11866
|
}
|
|
11867
11867
|
if (u && u.bottom >= t ? (n = a, o = u) : h && h.top <= t && (n = c, o = h), !n)
|
|
@@ -11870,7 +11870,7 @@ function a1(r, e, t) {
|
|
|
11870
11870
|
if (n.nodeType == 3)
|
|
11871
11871
|
return _u(n, d, t);
|
|
11872
11872
|
if (l && n.contentEditable != "false")
|
|
11873
|
-
return
|
|
11873
|
+
return c1(n, d, t);
|
|
11874
11874
|
let f = Array.prototype.indexOf.call(r.childNodes, n) + (e >= (o.left + o.right) / 2 ? 1 : 0);
|
|
11875
11875
|
return { node: r, offset: f };
|
|
11876
11876
|
}
|
|
@@ -11929,7 +11929,7 @@ function iO(r, e, t, n = -1) {
|
|
|
11929
11929
|
let P = Je.find(r.docView, f);
|
|
11930
11930
|
if (!P)
|
|
11931
11931
|
return d > a.top + a.height / 2 ? a.to : a.from;
|
|
11932
|
-
({ node: b, offset: Q } =
|
|
11932
|
+
({ node: b, offset: Q } = c1(P.dom, u, h));
|
|
11933
11933
|
}
|
|
11934
11934
|
let $ = r.docView.nearest(b);
|
|
11935
11935
|
if (!$)
|
|
@@ -12055,8 +12055,8 @@ function ss(r, e, t) {
|
|
|
12055
12055
|
return e;
|
|
12056
12056
|
}
|
|
12057
12057
|
}
|
|
12058
|
-
function
|
|
12059
|
-
let n = ss(r.state.facet(
|
|
12058
|
+
function Bl(r, e, t) {
|
|
12059
|
+
let n = ss(r.state.facet(X0).map((o) => o(r)), t.from, e.head > t.from ? -1 : 1);
|
|
12060
12060
|
return n == t.from ? t : J.cursor(n, n < t.from ? 1 : -1);
|
|
12061
12061
|
}
|
|
12062
12062
|
class e6 {
|
|
@@ -12174,7 +12174,7 @@ function n6(r, e) {
|
|
|
12174
12174
|
}
|
|
12175
12175
|
class o6 {
|
|
12176
12176
|
constructor(e, t, n, o) {
|
|
12177
|
-
this.view = e, this.startEvent = t, this.style = n, this.mustSelect = o, this.scrollSpeed = { x: 0, y: 0 }, this.scrolling = -1, this.lastEvent = t, this.scrollParent = v7(e.contentDOM), this.atoms = e.state.facet(
|
|
12177
|
+
this.view = e, this.startEvent = t, this.style = n, this.mustSelect = o, this.scrollSpeed = { x: 0, y: 0 }, this.scrolling = -1, this.lastEvent = t, this.scrollParent = v7(e.contentDOM), this.atoms = e.state.facet(X0).map((s) => s(e));
|
|
12178
12178
|
let i = e.contentDOM.ownerDocument;
|
|
12179
12179
|
i.addEventListener("mousemove", this.move = this.move.bind(this)), i.addEventListener("mouseup", this.up = this.up.bind(this)), this.extend = t.shiftKey, this.multiple = e.state.facet(ke.allowMultipleSelections) && i6(e, t), this.dragging = l6(e, t) && hO(t) == 1 ? null : !1;
|
|
12180
12180
|
}
|
|
@@ -12276,7 +12276,7 @@ function c6(r) {
|
|
|
12276
12276
|
}
|
|
12277
12277
|
function cO(r, e) {
|
|
12278
12278
|
let { state: t } = r, n, o = 1, i = t.toText(e), s = i.lines == t.selection.ranges.length;
|
|
12279
|
-
if (
|
|
12279
|
+
if (u1 != null && t.selection.ranges.every((a) => a.empty) && u1 == i.toString()) {
|
|
12280
12280
|
let a = -1;
|
|
12281
12281
|
n = t.changeByRange((c) => {
|
|
12282
12282
|
let u = t.doc.lineAt(c.from);
|
|
@@ -12458,12 +12458,12 @@ function p6(r) {
|
|
|
12458
12458
|
}
|
|
12459
12459
|
return { text: e.join(r.lineBreak), ranges: t, linewise: n };
|
|
12460
12460
|
}
|
|
12461
|
-
let
|
|
12461
|
+
let u1 = null;
|
|
12462
12462
|
ur.copy = ur.cut = (r, e) => {
|
|
12463
12463
|
let { text: t, ranges: n, linewise: o } = p6(r.state);
|
|
12464
12464
|
if (!t && !o)
|
|
12465
12465
|
return !1;
|
|
12466
|
-
|
|
12466
|
+
u1 = o ? t : null, e.type == "cut" && !r.state.readOnly && r.dispatch({
|
|
12467
12467
|
changes: n,
|
|
12468
12468
|
scrollIntoView: !0,
|
|
12469
12469
|
userEvent: "delete.cut"
|
|
@@ -12655,7 +12655,7 @@ class wt {
|
|
|
12655
12655
|
for (h += f.to - c, c = f.to; l > 0 && d.from <= o[l - 1].toA; )
|
|
12656
12656
|
a = o[l - 1].fromA, u = o[l - 1].fromB, l--, a < d.from && (d = i.lineAt(a, Re.ByPosNoHeight, n, 0, 0));
|
|
12657
12657
|
u += d.from - a, a = d.from;
|
|
12658
|
-
let O =
|
|
12658
|
+
let O = R0.build(n.setDoc(s), e, u, h);
|
|
12659
12659
|
i = i.replace(a, c, O);
|
|
12660
12660
|
}
|
|
12661
12661
|
return i.updateHeight(n, 0);
|
|
@@ -12890,7 +12890,7 @@ function Vu(r, e) {
|
|
|
12890
12890
|
r[e] == null && (t = r[e - 1]) instanceof nt && (n = r[e + 1]) instanceof nt && r.splice(e - 1, 3, new nt(t.length + 1 + n.length));
|
|
12891
12891
|
}
|
|
12892
12892
|
const b6 = 5;
|
|
12893
|
-
class
|
|
12893
|
+
class R0 {
|
|
12894
12894
|
constructor(e, t) {
|
|
12895
12895
|
this.pos = e, this.oracle = t, this.nodes = [], this.lineStart = -1, this.lineEnd = -1, this.covering = null, this.writtenTo = e;
|
|
12896
12896
|
}
|
|
@@ -12955,7 +12955,7 @@ class X0 {
|
|
|
12955
12955
|
// starts or ends in a line break, or has multiple line breaks next
|
|
12956
12956
|
// to each other.
|
|
12957
12957
|
static build(e, t, n, o) {
|
|
12958
|
-
let i = new
|
|
12958
|
+
let i = new R0(n, e);
|
|
12959
12959
|
return Ae.spans(t, n, o, i, 0), i.finish(n);
|
|
12960
12960
|
}
|
|
12961
12961
|
}
|
|
@@ -12970,7 +12970,7 @@ class y6 {
|
|
|
12970
12970
|
compareRange() {
|
|
12971
12971
|
}
|
|
12972
12972
|
comparePoint(e, t, n, o) {
|
|
12973
|
-
(e < t || n && n.heightRelevant || o && o.heightRelevant) &&
|
|
12973
|
+
(e < t || n && n.heightRelevant || o && o.heightRelevant) && o1(e, t, this.changes, 5);
|
|
12974
12974
|
}
|
|
12975
12975
|
}
|
|
12976
12976
|
function k6(r, e) {
|
|
@@ -13003,7 +13003,7 @@ function x6(r, e) {
|
|
|
13003
13003
|
bottom: t.bottom - (t.top + e)
|
|
13004
13004
|
};
|
|
13005
13005
|
}
|
|
13006
|
-
class
|
|
13006
|
+
class Il {
|
|
13007
13007
|
constructor(e, t, n) {
|
|
13008
13008
|
this.from = e, this.to = t, this.size = n;
|
|
13009
13009
|
}
|
|
@@ -13041,7 +13041,7 @@ class Q6 extends rl {
|
|
|
13041
13041
|
class ju {
|
|
13042
13042
|
constructor(e) {
|
|
13043
13043
|
this.state = e, this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 }, this.inView = !0, this.paddingTop = 0, this.paddingBottom = 0, this.contentDOMWidth = 0, this.contentDOMHeight = 0, this.editorHeight = 0, this.editorWidth = 0, this.scrollTop = 0, this.scrolledToBottom = !0, this.scaleX = 1, this.scaleY = 1, this.scrollAnchorPos = 0, this.scrollAnchorHeight = -1, this.scaler = Wu, this.scrollTarget = null, this.printing = !1, this.mustMeasureContent = !0, this.defaultTextDirection = ht.LTR, this.visibleRanges = [], this.mustEnforceCursorAssoc = !1;
|
|
13044
|
-
let t = e.facet(
|
|
13044
|
+
let t = e.facet(Z0).some((n) => typeof n != "function" && n.class == "cm-lineWrapping");
|
|
13045
13045
|
this.heightOracle = new m6(t), this.stateDeco = e.facet(ei).filter((n) => typeof n != "function"), this.heightMap = wt.empty().applyChanges(this.stateDeco, we.empty, this.heightOracle.setDoc(e.doc), [new Ut(0, 0, 0, e.doc.length)]), this.viewport = this.getViewport(0, null), this.updateViewportLines(), this.updateForViewport(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = rt.set(this.lineGaps.map((n) => n.draw(this, !1))), this.computeVisibleRanges();
|
|
13046
13046
|
}
|
|
13047
13047
|
updateForViewport() {
|
|
@@ -13149,7 +13149,7 @@ class ju {
|
|
|
13149
13149
|
return e;
|
|
13150
13150
|
let n = [];
|
|
13151
13151
|
for (let o of e)
|
|
13152
|
-
t.touchesRange(o.from, o.to) || n.push(new
|
|
13152
|
+
t.touchesRange(o.from, o.to) || n.push(new Il(t.mapPos(o.from), t.mapPos(o.to), o.size));
|
|
13153
13153
|
return n;
|
|
13154
13154
|
}
|
|
13155
13155
|
// Computes positions in the viewport where the start or end of a
|
|
@@ -13179,7 +13179,7 @@ class ju {
|
|
|
13179
13179
|
let v = t.moveToLineBoundary(J.cursor(u), !1, !0).head;
|
|
13180
13180
|
v > c && (u = v);
|
|
13181
13181
|
}
|
|
13182
|
-
m = new
|
|
13182
|
+
m = new Il(c, u, this.gapSize(h, c, u, d));
|
|
13183
13183
|
}
|
|
13184
13184
|
l.push(m);
|
|
13185
13185
|
};
|
|
@@ -13216,7 +13216,7 @@ class ju {
|
|
|
13216
13216
|
return this.heightOracle.lineWrapping ? e.height * i : o.total * this.heightOracle.charWidth * i;
|
|
13217
13217
|
}
|
|
13218
13218
|
updateLineGaps(e) {
|
|
13219
|
-
|
|
13219
|
+
Il.same(e, this.lineGaps) || (this.lineGaps = e, this.lineGapDeco = rt.set(e.map((t) => t.draw(this, this.heightOracle.lineWrapping))));
|
|
13220
13220
|
}
|
|
13221
13221
|
computeVisibleRanges() {
|
|
13222
13222
|
let e = this.stateDeco;
|
|
@@ -13342,8 +13342,8 @@ function Mo(r, e) {
|
|
|
13342
13342
|
let t = e.toDOM(r.top), n = e.toDOM(r.bottom);
|
|
13343
13343
|
return new or(r.from, r.length, t, n - t, Array.isArray(r._content) ? r._content.map((o) => Mo(o, e)) : r._content);
|
|
13344
13344
|
}
|
|
13345
|
-
const Li = /* @__PURE__ */ ie.define({ combine: (r) => r.join(" ") }),
|
|
13346
|
-
function
|
|
13345
|
+
const Li = /* @__PURE__ */ ie.define({ combine: (r) => r.join(" ") }), h1 = /* @__PURE__ */ ie.define({ combine: (r) => r.indexOf(!0) > -1 }), d1 = /* @__PURE__ */ Ir.newName(), gO = /* @__PURE__ */ Ir.newName(), mO = /* @__PURE__ */ Ir.newName(), vO = { "&light": "." + gO, "&dark": "." + mO };
|
|
13346
|
+
function f1(r, e, t) {
|
|
13347
13347
|
return new Ir(e, {
|
|
13348
13348
|
finish(n) {
|
|
13349
13349
|
return /&/.test(n) ? n.replace(/&\w*/, (o) => {
|
|
@@ -13356,7 +13356,7 @@ function d1(r, e, t) {
|
|
|
13356
13356
|
}
|
|
13357
13357
|
});
|
|
13358
13358
|
}
|
|
13359
|
-
const T6 = /* @__PURE__ */
|
|
13359
|
+
const T6 = /* @__PURE__ */ f1("." + d1, {
|
|
13360
13360
|
"&": {
|
|
13361
13361
|
position: "relative !important",
|
|
13362
13362
|
boxSizing: "border-box",
|
|
@@ -13669,7 +13669,7 @@ class Z6 {
|
|
|
13669
13669
|
let l = i || s ? [] : A6(e), a = new C6(l, e.state);
|
|
13670
13670
|
a.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = a.text, this.newSel = q6(l, this.bounds.from);
|
|
13671
13671
|
} else {
|
|
13672
|
-
let l = e.observer.selectionRange, a = i && i.node == l.focusNode && i.offset == l.focusOffset || !
|
|
13672
|
+
let l = e.observer.selectionRange, a = i && i.node == l.focusNode && i.offset == l.focusOffset || !Ka(e.contentDOM, l.focusNode) ? e.state.selection.main.head : e.docView.posFromDOM(l.focusNode, l.focusOffset), c = s && s.node == l.anchorNode && s.offset == l.anchorOffset || !Ka(e.contentDOM, l.anchorNode) ? e.state.selection.main.anchor : e.docView.posFromDOM(l.anchorNode, l.anchorOffset);
|
|
13673
13673
|
this.newSel = J.single(c, a);
|
|
13674
13674
|
}
|
|
13675
13675
|
}
|
|
@@ -13788,14 +13788,14 @@ const M6 = {
|
|
|
13788
13788
|
subtree: !0,
|
|
13789
13789
|
attributes: !0,
|
|
13790
13790
|
characterDataOldValue: !0
|
|
13791
|
-
},
|
|
13791
|
+
}, Hl = ne.ie && ne.ie_version <= 11;
|
|
13792
13792
|
class E6 {
|
|
13793
13793
|
constructor(e) {
|
|
13794
13794
|
this.view = e, this.active = !1, this.selectionRange = new w7(), this.selectionChanged = !1, this.delayedFlush = -1, this.resizeTimeout = -1, this.queue = [], this.delayedAndroidKey = null, this.flushingAndroidKey = -1, this.lastChange = 0, this.scrollTargets = [], this.intersection = null, this.resizeScroll = null, this.resizeContent = null, this.intersecting = !1, this.gapIntersection = null, this.gaps = [], this.parentCheck = -1, this.dom = e.contentDOM, this.observer = new MutationObserver((t) => {
|
|
13795
13795
|
for (let n of t)
|
|
13796
13796
|
this.queue.push(n);
|
|
13797
13797
|
(ne.ie && ne.ie_version <= 11 || ne.ios && e.composing) && t.some((n) => n.type == "childList" && n.removedNodes.length || n.type == "characterData" && n.oldValue.length > n.target.nodeValue.length) ? this.flushSoon() : this.flush();
|
|
13798
|
-
}),
|
|
13798
|
+
}), Hl && (this.onCharData = (t) => {
|
|
13799
13799
|
this.queue.push({
|
|
13800
13800
|
target: t.target,
|
|
13801
13801
|
type: "characterData",
|
|
@@ -13889,10 +13889,10 @@ class E6 {
|
|
|
13889
13889
|
}
|
|
13890
13890
|
}
|
|
13891
13891
|
start() {
|
|
13892
|
-
this.active || (this.observer.observe(this.dom, M6),
|
|
13892
|
+
this.active || (this.observer.observe(this.dom, M6), Hl && this.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.active = !0);
|
|
13893
13893
|
}
|
|
13894
13894
|
stop() {
|
|
13895
|
-
this.active && (this.active = !1, this.observer.disconnect(),
|
|
13895
|
+
this.active && (this.active = !1, this.observer.disconnect(), Hl && this.dom.removeEventListener("DOMCharacterDataModified", this.onCharData));
|
|
13896
13896
|
}
|
|
13897
13897
|
// Throw away any pending changes
|
|
13898
13898
|
clear() {
|
|
@@ -14093,7 +14093,7 @@ class ae {
|
|
|
14093
14093
|
constructor(e = {}) {
|
|
14094
14094
|
this.plugins = [], this.pluginMap = /* @__PURE__ */ new Map(), this.editorAttrs = {}, this.contentAttrs = {}, this.bidiCache = [], this.destroyed = !1, this.updateState = 2, this.measureScheduled = -1, this.measureRequests = [], this.contentDOM = document.createElement("div"), this.scrollDOM = document.createElement("div"), this.scrollDOM.tabIndex = -1, this.scrollDOM.className = "cm-scroller", this.scrollDOM.appendChild(this.contentDOM), this.announceDOM = document.createElement("div"), this.announceDOM.style.cssText = "position: fixed; top: -10000px", this.announceDOM.setAttribute("aria-live", "polite"), this.dom = document.createElement("div"), this.dom.appendChild(this.announceDOM), this.dom.appendChild(this.scrollDOM);
|
|
14095
14095
|
let { dispatch: t } = e;
|
|
14096
|
-
this.dispatchTransactions = e.dispatchTransactions || t && ((n) => n.forEach((o) => t(o, this))) || ((n) => this.update(n)), this.dispatch = this.dispatch.bind(this), this._root = e.root || b7(e.parent) || document, this.viewState = new ju(e.state || ke.create(e)), this.plugins = this.state.facet(Ao).map((n) => new
|
|
14096
|
+
this.dispatchTransactions = e.dispatchTransactions || t && ((n) => n.forEach((o) => t(o, this))) || ((n) => this.update(n)), this.dispatch = this.dispatch.bind(this), this._root = e.root || b7(e.parent) || document, this.viewState = new ju(e.state || ke.create(e)), this.plugins = this.state.facet(Ao).map((n) => new Ll(n));
|
|
14097
14097
|
for (let n of this.plugins)
|
|
14098
14098
|
n.update(this);
|
|
14099
14099
|
this.observer = new E6(this), this.inputState = new e6(this), this.inputState.ensureHandlers(this.plugins), this.docView = new yu(this), this.mountStyles(), this.updateAttrs(), this.updateState = 0, this.requestMeasure(), e.parent && e.parent.appendChild(this.dom);
|
|
@@ -14145,7 +14145,7 @@ class ae {
|
|
|
14145
14145
|
this.updateState = 0;
|
|
14146
14146
|
}
|
|
14147
14147
|
if (o.startState.facet(Li) != o.state.facet(Li) && (this.viewState.mustMeasureContent = !0), (t || n || h || this.viewState.mustEnforceCursorAssoc || this.viewState.mustMeasureContent) && this.requestMeasure(), !o.empty)
|
|
14148
|
-
for (let d of this.state.facet(
|
|
14148
|
+
for (let d of this.state.facet(i1))
|
|
14149
14149
|
d(o);
|
|
14150
14150
|
(a || u) && Promise.resolve().then(() => {
|
|
14151
14151
|
a && this.state == a.startState && this.dispatch(a), u && !wO(this, u) && c.force && Gn(this.contentDOM, c.key, c.keyCode);
|
|
@@ -14170,7 +14170,7 @@ class ae {
|
|
|
14170
14170
|
try {
|
|
14171
14171
|
for (let n of this.plugins)
|
|
14172
14172
|
n.destroy(this);
|
|
14173
|
-
this.viewState = new ju(e), this.plugins = e.facet(Ao).map((n) => new
|
|
14173
|
+
this.viewState = new ju(e), this.plugins = e.facet(Ao).map((n) => new Ll(n)), this.pluginMap.clear();
|
|
14174
14174
|
for (let n of this.plugins)
|
|
14175
14175
|
n.update(this);
|
|
14176
14176
|
this.docView = new yu(this), this.inputState.ensureHandlers(this.plugins), this.mountStyles(), this.updateAttrs(), this.bidiCache = [];
|
|
@@ -14186,7 +14186,7 @@ class ae {
|
|
|
14186
14186
|
for (let i of n) {
|
|
14187
14187
|
let s = t.indexOf(i);
|
|
14188
14188
|
if (s < 0)
|
|
14189
|
-
o.push(new
|
|
14189
|
+
o.push(new Ll(i));
|
|
14190
14190
|
else {
|
|
14191
14191
|
let l = this.plugins[s];
|
|
14192
14192
|
l.mustUpdate = e, o.push(l);
|
|
@@ -14268,14 +14268,14 @@ class ae {
|
|
|
14268
14268
|
this.updateState = 0, this.measureScheduled = -1;
|
|
14269
14269
|
}
|
|
14270
14270
|
if (t && !t.empty)
|
|
14271
|
-
for (let l of this.state.facet(
|
|
14271
|
+
for (let l of this.state.facet(i1))
|
|
14272
14272
|
l(t);
|
|
14273
14273
|
}
|
|
14274
14274
|
/**
|
|
14275
14275
|
Get the CSS classes for the currently active editor themes.
|
|
14276
14276
|
*/
|
|
14277
14277
|
get themeClasses() {
|
|
14278
|
-
return
|
|
14278
|
+
return d1 + " " + (this.state.facet(h1) ? mO : gO) + " " + this.state.facet(Li);
|
|
14279
14279
|
}
|
|
14280
14280
|
updateAttrs() {
|
|
14281
14281
|
let e = Iu(this, Nf, {
|
|
@@ -14291,9 +14291,9 @@ class ae {
|
|
|
14291
14291
|
role: "textbox",
|
|
14292
14292
|
"aria-multiline": "true"
|
|
14293
14293
|
};
|
|
14294
|
-
this.state.readOnly && (t["aria-readonly"] = "true"), Iu(this,
|
|
14294
|
+
this.state.readOnly && (t["aria-readonly"] = "true"), Iu(this, Z0, t);
|
|
14295
14295
|
let n = this.observer.ignore(() => {
|
|
14296
|
-
let o =
|
|
14296
|
+
let o = n1(this.contentDOM, this.contentAttrs, t), i = n1(this.dom, this.editorAttrs, e);
|
|
14297
14297
|
return o || i;
|
|
14298
14298
|
});
|
|
14299
14299
|
return this.editorAttrs = e, this.contentAttrs = t, n;
|
|
@@ -14438,7 +14438,7 @@ class ae {
|
|
|
14438
14438
|
whether it should also be moved over.
|
|
14439
14439
|
*/
|
|
14440
14440
|
moveByChar(e, t, n) {
|
|
14441
|
-
return
|
|
14441
|
+
return Bl(this, e, Pu(this, e, t, n));
|
|
14442
14442
|
}
|
|
14443
14443
|
/**
|
|
14444
14444
|
Move a cursor position across the next group of either
|
|
@@ -14446,7 +14446,7 @@ class ae {
|
|
|
14446
14446
|
non-whitespace characters.
|
|
14447
14447
|
*/
|
|
14448
14448
|
moveByGroup(e, t) {
|
|
14449
|
-
return
|
|
14449
|
+
return Bl(this, e, Pu(this, e, t, (n) => K7(this, e.head, n)));
|
|
14450
14450
|
}
|
|
14451
14451
|
/**
|
|
14452
14452
|
Move to the next line boundary in the given direction. If
|
|
@@ -14472,7 +14472,7 @@ class ae {
|
|
|
14472
14472
|
used.
|
|
14473
14473
|
*/
|
|
14474
14474
|
moveVertically(e, t, n) {
|
|
14475
|
-
return
|
|
14475
|
+
return Bl(this, e, J7(this, e, t, n));
|
|
14476
14476
|
}
|
|
14477
14477
|
/**
|
|
14478
14478
|
Find the DOM parent node and offset (child offset if `node` is
|
|
@@ -14511,7 +14511,7 @@ class ae {
|
|
|
14511
14511
|
if (!n || n.left == n.right)
|
|
14512
14512
|
return n;
|
|
14513
14513
|
let o = this.state.doc.lineAt(e), i = this.bidiSpans(o), s = i[Lr.find(i, e - o.from, -1, t)];
|
|
14514
|
-
return
|
|
14514
|
+
return P0(n, s.dir == ht.LTR == t > 0);
|
|
14515
14515
|
}
|
|
14516
14516
|
/**
|
|
14517
14517
|
Return the rectangle around a given character. If `pos` does not
|
|
@@ -14672,8 +14672,8 @@ class ae {
|
|
|
14672
14672
|
`&light` when a light theme is active).
|
|
14673
14673
|
*/
|
|
14674
14674
|
static theme(e, t) {
|
|
14675
|
-
let n = Ir.newName(), o = [Li.of(n), qo.of(
|
|
14676
|
-
return t && t.dark && o.push(
|
|
14675
|
+
let n = Ir.newName(), o = [Li.of(n), qo.of(f1(`.${n}`, e))];
|
|
14676
|
+
return t && t.dark && o.push(h1.of(!0)), o;
|
|
14677
14677
|
}
|
|
14678
14678
|
/**
|
|
14679
14679
|
Create an extension that adds styles to the base theme. Like
|
|
@@ -14683,7 +14683,7 @@ class ae {
|
|
|
14683
14683
|
target editors with a dark or light theme.
|
|
14684
14684
|
*/
|
|
14685
14685
|
static baseTheme(e) {
|
|
14686
|
-
return Js.lowest(qo.of(
|
|
14686
|
+
return Js.lowest(qo.of(f1("." + d1, e, vO)));
|
|
14687
14687
|
}
|
|
14688
14688
|
/**
|
|
14689
14689
|
Retrieve an editor view instance from the view's DOM
|
|
@@ -14700,18 +14700,18 @@ ae.inputHandler = Bf;
|
|
|
14700
14700
|
ae.focusChangeEffect = If;
|
|
14701
14701
|
ae.perLineTextDirection = Hf;
|
|
14702
14702
|
ae.exceptionSink = zf;
|
|
14703
|
-
ae.updateListener =
|
|
14703
|
+
ae.updateListener = i1;
|
|
14704
14704
|
ae.editable = nl;
|
|
14705
14705
|
ae.mouseSelectionStyle = Lf;
|
|
14706
14706
|
ae.dragMovesSelection = Yf;
|
|
14707
14707
|
ae.clickAddsSelectionRange = Wf;
|
|
14708
14708
|
ae.decorations = ei;
|
|
14709
|
-
ae.atomicRanges =
|
|
14709
|
+
ae.atomicRanges = X0;
|
|
14710
14710
|
ae.bidiIsolatedRanges = Gf;
|
|
14711
14711
|
ae.scrollMargins = Ff;
|
|
14712
|
-
ae.darkTheme =
|
|
14712
|
+
ae.darkTheme = h1;
|
|
14713
14713
|
ae.cspNonce = /* @__PURE__ */ ie.define({ combine: (r) => r.length ? r[0] : "" });
|
|
14714
|
-
ae.contentAttributes =
|
|
14714
|
+
ae.contentAttributes = Z0;
|
|
14715
14715
|
ae.editorAttributes = Nf;
|
|
14716
14716
|
ae.lineWrapping = /* @__PURE__ */ ae.contentAttributes.of({ class: "cm-lineWrapping" });
|
|
14717
14717
|
ae.announce = /* @__PURE__ */ ze.define();
|
|
@@ -14734,7 +14734,7 @@ class As {
|
|
|
14734
14734
|
function Iu(r, e, t) {
|
|
14735
14735
|
for (let n = r.state.facet(e), o = n.length - 1; o >= 0; o--) {
|
|
14736
14736
|
let i = n[o], s = typeof i == "function" ? i(r) : i;
|
|
14737
|
-
s &&
|
|
14737
|
+
s && r1(s, t);
|
|
14738
14738
|
}
|
|
14739
14739
|
return t;
|
|
14740
14740
|
}
|
|
@@ -14768,9 +14768,9 @@ const Y6 = /* @__PURE__ */ Js.default(/* @__PURE__ */ ae.domEventHandlers({
|
|
|
14768
14768
|
keydown(r, e) {
|
|
14769
14769
|
return I6(L6(e.state), r, e, "editor");
|
|
14770
14770
|
}
|
|
14771
|
-
})),
|
|
14771
|
+
})), ol = /* @__PURE__ */ ie.define({ enables: Y6 }), Hu = /* @__PURE__ */ new WeakMap();
|
|
14772
14772
|
function L6(r) {
|
|
14773
|
-
let e = r.facet(
|
|
14773
|
+
let e = r.facet(ol), t = Hu.get(e);
|
|
14774
14774
|
return t || Hu.set(e, t = B6(e.reduce((n, o) => n.concat(o), []))), t;
|
|
14775
14775
|
}
|
|
14776
14776
|
let Wr = null;
|
|
@@ -14824,7 +14824,7 @@ function B6(r, e = j6) {
|
|
|
14824
14824
|
return t;
|
|
14825
14825
|
}
|
|
14826
14826
|
function I6(r, e, t, n) {
|
|
14827
|
-
let o = O7(e), i = ns(o, 0), s =
|
|
14827
|
+
let o = O7(e), i = ns(o, 0), s = ja(i) == o.length && o != " ", l = "", a = !1, c = !1, u = !1;
|
|
14828
14828
|
Wr && Wr.view == t && Wr.scope == n && (l = Wr.prefix + " ", lO.indexOf(e.keyCode) < 0 && (c = !0, Wr = null));
|
|
14829
14829
|
let h = /* @__PURE__ */ new Set(), d = (v) => {
|
|
14830
14830
|
if (v) {
|
|
@@ -14958,39 +14958,39 @@ Qn.prototype.toDOM = void 0;
|
|
|
14958
14958
|
Qn.prototype.mapMode = mt.TrackBefore;
|
|
14959
14959
|
Qn.prototype.startSide = Qn.prototype.endSide = -1;
|
|
14960
14960
|
Qn.prototype.point = !0;
|
|
14961
|
-
const
|
|
14961
|
+
const Nl = /* @__PURE__ */ ie.define(), as = /* @__PURE__ */ ie.define(), O1 = /* @__PURE__ */ ie.define({
|
|
14962
14962
|
combine: (r) => r.some((e) => e)
|
|
14963
14963
|
});
|
|
14964
14964
|
function D6(r) {
|
|
14965
14965
|
let e = [
|
|
14966
14966
|
K6
|
|
14967
14967
|
];
|
|
14968
|
-
return r && r.fixed === !1 && e.push(
|
|
14968
|
+
return r && r.fixed === !1 && e.push(O1.of(!0)), e;
|
|
14969
14969
|
}
|
|
14970
14970
|
const K6 = /* @__PURE__ */ Tr.fromClass(class {
|
|
14971
14971
|
constructor(r) {
|
|
14972
14972
|
this.view = r, this.prevViewport = r.viewport, this.dom = document.createElement("div"), this.dom.className = "cm-gutters", this.dom.setAttribute("aria-hidden", "true"), this.dom.style.minHeight = this.view.contentHeight / this.view.scaleY + "px", this.gutters = r.state.facet(as).map((e) => new Fu(r, e));
|
|
14973
14973
|
for (let e of this.gutters)
|
|
14974
14974
|
this.dom.appendChild(e.dom);
|
|
14975
|
-
this.fixed = !r.state.facet(
|
|
14975
|
+
this.fixed = !r.state.facet(O1), this.fixed && (this.dom.style.position = "sticky"), this.syncGutters(!1), r.scrollDOM.insertBefore(this.dom, r.contentDOM);
|
|
14976
14976
|
}
|
|
14977
14977
|
update(r) {
|
|
14978
14978
|
if (this.updateGutters(r)) {
|
|
14979
14979
|
let e = this.prevViewport, t = r.view.viewport, n = Math.min(e.to, t.to) - Math.max(e.from, t.from);
|
|
14980
14980
|
this.syncGutters(n < (t.to - t.from) * 0.8);
|
|
14981
14981
|
}
|
|
14982
|
-
r.geometryChanged && (this.dom.style.minHeight = this.view.contentHeight + "px"), this.view.state.facet(
|
|
14982
|
+
r.geometryChanged && (this.dom.style.minHeight = this.view.contentHeight + "px"), this.view.state.facet(O1) != !this.fixed && (this.fixed = !this.fixed, this.dom.style.position = this.fixed ? "sticky" : ""), this.prevViewport = r.view.viewport;
|
|
14983
14983
|
}
|
|
14984
14984
|
syncGutters(r) {
|
|
14985
14985
|
let e = this.dom.nextSibling;
|
|
14986
14986
|
r && this.dom.remove();
|
|
14987
|
-
let t = Ae.iter(this.view.state.facet(
|
|
14987
|
+
let t = Ae.iter(this.view.state.facet(Nl), this.view.viewport.from), n = [], o = this.gutters.map((i) => new J6(i, this.view.viewport, -this.view.documentPadding.top));
|
|
14988
14988
|
for (let i of this.view.viewportLineBlocks)
|
|
14989
14989
|
if (n.length && (n = []), Array.isArray(i.type)) {
|
|
14990
14990
|
let s = !0;
|
|
14991
14991
|
for (let l of i.type)
|
|
14992
14992
|
if (l.type == zt.Text && s) {
|
|
14993
|
-
|
|
14993
|
+
p1(t, n, l.from);
|
|
14994
14994
|
for (let a of o)
|
|
14995
14995
|
a.line(this.view, l, n);
|
|
14996
14996
|
s = !1;
|
|
@@ -14998,7 +14998,7 @@ const K6 = /* @__PURE__ */ Tr.fromClass(class {
|
|
|
14998
14998
|
for (let a of o)
|
|
14999
14999
|
a.widget(this.view, l);
|
|
15000
15000
|
} else if (i.type == zt.Text) {
|
|
15001
|
-
|
|
15001
|
+
p1(t, n, i.from);
|
|
15002
15002
|
for (let s of o)
|
|
15003
15003
|
s.line(this.view, i, n);
|
|
15004
15004
|
} else if (i.widget)
|
|
@@ -15009,7 +15009,7 @@ const K6 = /* @__PURE__ */ Tr.fromClass(class {
|
|
|
15009
15009
|
r && this.view.scrollDOM.insertBefore(this.dom, e);
|
|
15010
15010
|
}
|
|
15011
15011
|
updateGutters(r) {
|
|
15012
|
-
let e = r.startState.facet(as), t = r.state.facet(as), n = r.docChanged || r.heightChanged || r.viewportChanged || !Ae.eq(r.startState.facet(
|
|
15012
|
+
let e = r.startState.facet(as), t = r.state.facet(as), n = r.docChanged || r.heightChanged || r.viewportChanged || !Ae.eq(r.startState.facet(Nl), r.state.facet(Nl), r.view.viewport.from, r.view.viewport.to);
|
|
15013
15013
|
if (e == t)
|
|
15014
15014
|
for (let o of this.gutters)
|
|
15015
15015
|
o.update(r) && (n = !0);
|
|
@@ -15042,7 +15042,7 @@ const K6 = /* @__PURE__ */ Tr.fromClass(class {
|
|
|
15042
15042
|
function Gu(r) {
|
|
15043
15043
|
return Array.isArray(r) ? r : [r];
|
|
15044
15044
|
}
|
|
15045
|
-
function
|
|
15045
|
+
function p1(r, e, t) {
|
|
15046
15046
|
for (; r.value && r.from <= t; )
|
|
15047
15047
|
r.from == t && e.push(r.value), r.next();
|
|
15048
15048
|
}
|
|
@@ -15061,7 +15061,7 @@ class J6 {
|
|
|
15061
15061
|
}
|
|
15062
15062
|
line(e, t, n) {
|
|
15063
15063
|
let o = [];
|
|
15064
|
-
|
|
15064
|
+
p1(this.cursor, o, t.from), n.length && (o = o.concat(n));
|
|
15065
15065
|
let i = this.gutter.config.lineMarker(e, t, o);
|
|
15066
15066
|
i && o.unshift(i);
|
|
15067
15067
|
let s = this.gutter;
|
|
@@ -15172,7 +15172,7 @@ const t8 = /* @__PURE__ */ ie.define(), jn = /* @__PURE__ */ ie.define({
|
|
|
15172
15172
|
});
|
|
15173
15173
|
}
|
|
15174
15174
|
});
|
|
15175
|
-
class
|
|
15175
|
+
class Gl extends Qn {
|
|
15176
15176
|
constructor(e) {
|
|
15177
15177
|
super(), this.number = e;
|
|
15178
15178
|
}
|
|
@@ -15183,7 +15183,7 @@ class Nl extends Qn {
|
|
|
15183
15183
|
return document.createTextNode(this.number);
|
|
15184
15184
|
}
|
|
15185
15185
|
}
|
|
15186
|
-
function
|
|
15186
|
+
function Fl(r, e) {
|
|
15187
15187
|
return r.state.facet(jn).formatNumber(e, r.state);
|
|
15188
15188
|
}
|
|
15189
15189
|
const r8 = /* @__PURE__ */ as.compute([jn], (r) => ({
|
|
@@ -15193,16 +15193,16 @@ const r8 = /* @__PURE__ */ as.compute([jn], (r) => ({
|
|
|
15193
15193
|
return e.state.facet(t8);
|
|
15194
15194
|
},
|
|
15195
15195
|
lineMarker(e, t, n) {
|
|
15196
|
-
return n.some((o) => o.toDOM) ? null : new
|
|
15196
|
+
return n.some((o) => o.toDOM) ? null : new Gl(Fl(e, e.state.doc.lineAt(t.from).number));
|
|
15197
15197
|
},
|
|
15198
15198
|
widgetMarker: () => null,
|
|
15199
15199
|
lineMarkerChange: (e) => e.startState.facet(jn) != e.state.facet(jn),
|
|
15200
15200
|
initialSpacer(e) {
|
|
15201
|
-
return new
|
|
15201
|
+
return new Gl(Fl(e, Du(e.state.doc.lines)));
|
|
15202
15202
|
},
|
|
15203
15203
|
updateSpacer(e, t) {
|
|
15204
|
-
let n =
|
|
15205
|
-
return n == e.number ? e : new
|
|
15204
|
+
let n = Fl(t.view, Du(t.view.state.doc.lines));
|
|
15205
|
+
return n == e.number ? e : new Gl(n);
|
|
15206
15206
|
},
|
|
15207
15207
|
domEventHandlers: r.facet(jn).domEventHandlers
|
|
15208
15208
|
}));
|
|
@@ -15219,7 +15219,7 @@ function Du(r) {
|
|
|
15219
15219
|
e = e * 10 + 9;
|
|
15220
15220
|
return e;
|
|
15221
15221
|
}
|
|
15222
|
-
var
|
|
15222
|
+
var Dl;
|
|
15223
15223
|
const gn = /* @__PURE__ */ new ge();
|
|
15224
15224
|
function A0(r) {
|
|
15225
15225
|
return ie.define({
|
|
@@ -15484,7 +15484,7 @@ class to {
|
|
|
15484
15484
|
promise resolves.
|
|
15485
15485
|
*/
|
|
15486
15486
|
static getSkippingParser(e) {
|
|
15487
|
-
return new class extends
|
|
15487
|
+
return new class extends S0 {
|
|
15488
15488
|
createParse(t, n, o) {
|
|
15489
15489
|
let i = o[0].from, s = o[o.length - 1].to;
|
|
15490
15490
|
return {
|
|
@@ -15569,7 +15569,7 @@ typeof requestIdleCallback < "u" && (SO = (r) => {
|
|
|
15569
15569
|
);
|
|
15570
15570
|
return () => e < 0 ? clearTimeout(t) : cancelIdleCallback(e);
|
|
15571
15571
|
});
|
|
15572
|
-
const
|
|
15572
|
+
const Kl = typeof navigator < "u" && (!((Dl = navigator.scheduling) === null || Dl === void 0) && Dl.isInputPending) ? () => navigator.scheduling.isInputPending() : null, i8 = /* @__PURE__ */ Tr.fromClass(class {
|
|
15573
15573
|
constructor(e) {
|
|
15574
15574
|
this.view = e, this.working = null, this.workScheduled = 0, this.chunkEnd = -1, this.chunkBudget = -1, this.work = this.work.bind(this), this.scheduleWork();
|
|
15575
15575
|
}
|
|
@@ -15594,7 +15594,7 @@ const Dl = typeof navigator < "u" && (!((Fl = navigator.scheduling) === null ||
|
|
|
15594
15594
|
/* Work.MaxParseAhead */
|
|
15595
15595
|
))
|
|
15596
15596
|
return;
|
|
15597
|
-
let s = Date.now() + Math.min(this.chunkBudget, 100, e && !
|
|
15597
|
+
let s = Date.now() + Math.min(this.chunkBudget, 100, e && !Kl ? Math.max(25, e.timeRemaining() - 5) : 1e9), l = i.context.treeLen < o && n.doc.length > o + 1e3, a = i.context.work(() => Kl && Kl() || Date.now() > s, o + (l ? 0 : 1e5));
|
|
15598
15598
|
this.chunkBudget -= Date.now() - t, (a || this.chunkBudget <= 0) && (i.context.takeTree(), this.view.dispatch({ effects: Et.setState.of(new ro(i.context)) })), this.chunkBudget > 0 && !(a && !l) && this.scheduleWork(), this.checkAsyncSchedule(i.context);
|
|
15599
15599
|
}
|
|
15600
15600
|
checkAsyncSchedule(e) {
|
|
@@ -15641,7 +15641,7 @@ const s8 = /* @__PURE__ */ ie.define(), yO = /* @__PURE__ */ ie.define({
|
|
|
15641
15641
|
return e;
|
|
15642
15642
|
}
|
|
15643
15643
|
});
|
|
15644
|
-
function
|
|
15644
|
+
function g1(r) {
|
|
15645
15645
|
let e = r.facet(yO);
|
|
15646
15646
|
return e.charCodeAt(0) == 9 ? r.tabSize * e.length : e.length;
|
|
15647
15647
|
}
|
|
@@ -15679,7 +15679,7 @@ function bi(r) {
|
|
|
15679
15679
|
let e = r.firstChild, t = r.lastChild;
|
|
15680
15680
|
return e && e.to < t.from ? { from: e.to, to: t.type.isError ? r.to : t.from } : null;
|
|
15681
15681
|
}
|
|
15682
|
-
class
|
|
15682
|
+
class il {
|
|
15683
15683
|
constructor(e, t) {
|
|
15684
15684
|
this.specs = e;
|
|
15685
15685
|
let n;
|
|
@@ -15711,28 +15711,28 @@ class ol {
|
|
|
15711
15711
|
defined earlier.
|
|
15712
15712
|
*/
|
|
15713
15713
|
static define(e, t) {
|
|
15714
|
-
return new
|
|
15714
|
+
return new il(e, t || {});
|
|
15715
15715
|
}
|
|
15716
15716
|
}
|
|
15717
|
-
const
|
|
15717
|
+
const m1 = /* @__PURE__ */ ie.define(), xO = /* @__PURE__ */ ie.define({
|
|
15718
15718
|
combine(r) {
|
|
15719
15719
|
return r.length ? [r[0]] : null;
|
|
15720
15720
|
}
|
|
15721
15721
|
});
|
|
15722
|
-
function
|
|
15723
|
-
let e = r.facet(
|
|
15722
|
+
function Jl(r) {
|
|
15723
|
+
let e = r.facet(m1);
|
|
15724
15724
|
return e.length ? e : r.facet(xO);
|
|
15725
15725
|
}
|
|
15726
15726
|
function c8(r, e) {
|
|
15727
15727
|
let t = [h8], n;
|
|
15728
|
-
return r instanceof
|
|
15728
|
+
return r instanceof il && (r.module && t.push(ae.styleModule.of(r.module)), n = r.themeType), e != null && e.fallback ? t.push(xO.of(r)) : n ? t.push(m1.computeN([ae.darkTheme], (o) => o.facet(ae.darkTheme) == (n == "dark") ? [r] : [])) : t.push(m1.of(r)), t;
|
|
15729
15729
|
}
|
|
15730
15730
|
class u8 {
|
|
15731
15731
|
constructor(e) {
|
|
15732
|
-
this.markCache = /* @__PURE__ */ Object.create(null), this.tree = Zt(e.state), this.decorations = this.buildDeco(e,
|
|
15732
|
+
this.markCache = /* @__PURE__ */ Object.create(null), this.tree = Zt(e.state), this.decorations = this.buildDeco(e, Jl(e.state));
|
|
15733
15733
|
}
|
|
15734
15734
|
update(e) {
|
|
15735
|
-
let t = Zt(e.state), n =
|
|
15735
|
+
let t = Zt(e.state), n = Jl(e.state), o = n != Jl(e.startState);
|
|
15736
15736
|
t.length < e.view.viewport.to && !o && t.type == this.tree.type ? this.decorations = this.decorations.map(e.changes) : (t != this.tree || e.viewportChanged || o) && (this.tree = t, this.decorations = this.buildDeco(e.view, n));
|
|
15737
15737
|
}
|
|
15738
15738
|
buildDeco(e, t) {
|
|
@@ -15906,7 +15906,7 @@ function O8(r) {
|
|
|
15906
15906
|
const th = /* @__PURE__ */ new WeakMap();
|
|
15907
15907
|
class Ot extends Et {
|
|
15908
15908
|
constructor(e) {
|
|
15909
|
-
let t = A0(e.languageData), n = f8(e), o, i = new class extends
|
|
15909
|
+
let t = A0(e.languageData), n = f8(e), o, i = new class extends S0 {
|
|
15910
15910
|
createParse(s, l, a) {
|
|
15911
15911
|
return new g8(o, s, l, a);
|
|
15912
15912
|
}
|
|
@@ -15980,7 +15980,7 @@ function p8(r, e, t, n) {
|
|
|
15980
15980
|
if (l && (a = _O(r, o.tree, t + o.offset, l.pos + o.offset, !1)))
|
|
15981
15981
|
return { state: l.state, tree: a };
|
|
15982
15982
|
}
|
|
15983
|
-
return { state: r.streamParser.startState(n ?
|
|
15983
|
+
return { state: r.streamParser.startState(n ? g1(n) : 4), tree: be.empty };
|
|
15984
15984
|
}
|
|
15985
15985
|
class g8 {
|
|
15986
15986
|
constructor(e, t, n, o) {
|
|
@@ -15989,7 +15989,7 @@ class g8 {
|
|
|
15989
15989
|
this.state = l, this.parsedPos = this.chunkStart = s + a.length;
|
|
15990
15990
|
for (let c = 0; c < a.children.length; c++)
|
|
15991
15991
|
this.chunks.push(a.children[c]), this.chunkPos.push(a.positions[c]);
|
|
15992
|
-
i && this.parsedPos < i.viewport.from - 1e5 && (this.state = this.lang.streamParser.startState(
|
|
15992
|
+
i && this.parsedPos < i.viewport.from - 1e5 && (this.state = this.lang.streamParser.startState(g1(i.state)), i.skipUntilInView(this.parsedPos, i.viewport.from), this.parsedPos = i.viewport.from), this.moveRangeIndex();
|
|
15993
15993
|
}
|
|
15994
15994
|
advance() {
|
|
15995
15995
|
let e = to.get(), t = this.stoppedAt == null ? this.to : Math.min(this.to, this.stoppedAt), n = Math.min(
|
|
@@ -16050,7 +16050,7 @@ class g8 {
|
|
|
16050
16050
|
return this.chunk.push(e, t, n, o), i;
|
|
16051
16051
|
}
|
|
16052
16052
|
parseLine(e) {
|
|
16053
|
-
let { line: t, end: n } = this.nextLine(), o = 0, { streamParser: i } = this.lang, s = new QO(t, e ? e.state.tabSize : 4, e ?
|
|
16053
|
+
let { line: t, end: n } = this.nextLine(), o = 0, { streamParser: i } = this.lang, s = new QO(t, e ? e.state.tabSize : 4, e ? g1(e.state) : 2);
|
|
16054
16054
|
if (s.eol())
|
|
16055
16055
|
i.blankLine(this.state, s.indentUnit);
|
|
16056
16056
|
else
|
|
@@ -16111,14 +16111,14 @@ class TO {
|
|
|
16111
16111
|
}
|
|
16112
16112
|
}
|
|
16113
16113
|
const v8 = /* @__PURE__ */ new TO(E0);
|
|
16114
|
-
function
|
|
16114
|
+
function ea(r, e) {
|
|
16115
16115
|
rh.indexOf(r) > -1 || (rh.push(r), console.warn(e));
|
|
16116
16116
|
}
|
|
16117
16117
|
function CO(r, e) {
|
|
16118
16118
|
let t = null;
|
|
16119
16119
|
for (let i of e.split(".")) {
|
|
16120
16120
|
let s = r[i] || S[i];
|
|
16121
|
-
s ? typeof s == "function" ? t ? t = s(t) :
|
|
16121
|
+
s ? typeof s == "function" ? t ? t = s(t) : ea(i, `Modifier ${i} used at start of tag`) : t ? ea(i, `Tag ${i} used as modifier`) : t = s : ea(i, `Unknown highlighting tag ${i}`);
|
|
16122
16122
|
}
|
|
16123
16123
|
if (!t)
|
|
16124
16124
|
return 0;
|
|
@@ -16133,15 +16133,15 @@ function w8(r) {
|
|
|
16133
16133
|
let e = ft.define({ id: ri.length, name: "Document", props: [gn.add(() => r)], top: !0 });
|
|
16134
16134
|
return ri.push(e), e;
|
|
16135
16135
|
}
|
|
16136
|
-
let
|
|
16137
|
-
function
|
|
16138
|
-
if (!
|
|
16136
|
+
let ta = null;
|
|
16137
|
+
function ra() {
|
|
16138
|
+
if (!ta && typeof document == "object" && document.body) {
|
|
16139
16139
|
let { style: r } = document.body, e = [], t = /* @__PURE__ */ new Set();
|
|
16140
16140
|
for (let n in r)
|
|
16141
16141
|
n != "cssText" && n != "cssFloat" && typeof r[n] == "string" && (/[A-Z]/.test(n) && (n = n.replace(/[A-Z]/g, (o) => "-" + o.toLowerCase())), t.has(n) || (e.push(n), t.add(n)));
|
|
16142
|
-
|
|
16142
|
+
ta = e.sort().map((n) => ({ type: "property", label: n }));
|
|
16143
16143
|
}
|
|
16144
|
-
return
|
|
16144
|
+
return ta || [];
|
|
16145
16145
|
}
|
|
16146
16146
|
const nh = /* @__PURE__ */ [
|
|
16147
16147
|
"active",
|
|
@@ -16857,7 +16857,7 @@ function y8(r, e) {
|
|
|
16857
16857
|
let n = (t = r.parent) === null || t === void 0 ? void 0 : t.firstChild;
|
|
16858
16858
|
return (n == null ? void 0 : n.name) != "Callee" ? !1 : e.sliceString(n.from, n.to) == "var";
|
|
16859
16859
|
}
|
|
16860
|
-
const ih = /* @__PURE__ */ new
|
|
16860
|
+
const ih = /* @__PURE__ */ new b0(), k8 = ["Declaration"];
|
|
16861
16861
|
function x8(r) {
|
|
16862
16862
|
for (let e = r; ; ) {
|
|
16863
16863
|
if (e.type.isTop)
|
|
@@ -16892,7 +16892,7 @@ function ZO(r, e, t) {
|
|
|
16892
16892
|
const Q8 = (r) => (e) => {
|
|
16893
16893
|
let { state: t, pos: n } = e, o = Zt(t).resolveInner(n, -1), i = o.type.isError && o.from == o.to - 1 && t.doc.sliceString(o.from, o.to) == "-";
|
|
16894
16894
|
if (o.name == "PropertyName" || (i || o.name == "TagName") && /^(Block|Styles)$/.test(o.resolve(o.to).name))
|
|
16895
|
-
return { from: o.from, options:
|
|
16895
|
+
return { from: o.from, options: ra(), validFor: Er };
|
|
16896
16896
|
if (o.name == "ValueName")
|
|
16897
16897
|
return { from: o.from, options: oh, validFor: Er };
|
|
16898
16898
|
if (o.name == "PseudoClassName")
|
|
@@ -16906,13 +16906,13 @@ const Q8 = (r) => (e) => {
|
|
|
16906
16906
|
if (o.name == "TagName") {
|
|
16907
16907
|
for (let { parent: a } = o; a; a = a.parent)
|
|
16908
16908
|
if (a.name == "Block")
|
|
16909
|
-
return { from: o.from, options:
|
|
16909
|
+
return { from: o.from, options: ra(), validFor: Er };
|
|
16910
16910
|
return { from: o.from, options: b8, validFor: Er };
|
|
16911
16911
|
}
|
|
16912
16912
|
if (!e.explicit)
|
|
16913
16913
|
return null;
|
|
16914
16914
|
let s = o.resolve(n), l = s.childBefore(n);
|
|
16915
|
-
return l && l.name == ":" && s.name == "PseudoClassSelector" ? { from: n, options: nh, validFor: Er } : l && l.name == ":" && s.name == "Declaration" || s.name == "ArgList" ? { from: n, options: oh, validFor: Er } : s.name == "Block" || s.name == "Styles" ? { from: n, options:
|
|
16915
|
+
return l && l.name == ":" && s.name == "PseudoClassSelector" ? { from: n, options: nh, validFor: Er } : l && l.name == ":" && s.name == "Declaration" || s.name == "ArgList" ? { from: n, options: oh, validFor: Er } : s.name == "Block" || s.name == "Styles" ? { from: n, options: ra(), validFor: Er } : null;
|
|
16916
16916
|
}, _8 = /* @__PURE__ */ Q8((r) => r.name == "VariableName"), qs = /* @__PURE__ */ Cr.define({
|
|
16917
16917
|
name: "css",
|
|
16918
16918
|
parser: /* @__PURE__ */ Im.configure({
|
|
@@ -16960,7 +16960,7 @@ const P8 = 303, sh = 1, T8 = 2, C8 = 304, Z8 = 306, X8 = 307, R8 = 3, A8 = 4, q8
|
|
|
16960
16960
|
8239,
|
|
16961
16961
|
8287,
|
|
16962
16962
|
12288
|
|
16963
|
-
], XO = 125, M8 = 59, lh = 47, E8 = 42, U8 = 43, V8 = 45, j8 = new
|
|
16963
|
+
], XO = 125, M8 = 59, lh = 47, E8 = 42, U8 = 43, V8 = 45, j8 = new y0({
|
|
16964
16964
|
start: !1,
|
|
16965
16965
|
shift(r, e) {
|
|
16966
16966
|
return e == R8 || e == A8 || e == Z8 ? r : e == X8;
|
|
@@ -17356,7 +17356,7 @@ const n9 = ({ state: r, dispatch: e }) => r.field(ni, !1) ? (e(r.update({ effect
|
|
|
17356
17356
|
combine(r) {
|
|
17357
17357
|
return r.length ? r[0] : s9;
|
|
17358
17358
|
}
|
|
17359
|
-
}), l9 = /* @__PURE__ */ Js.highest(/* @__PURE__ */
|
|
17359
|
+
}), l9 = /* @__PURE__ */ Js.highest(/* @__PURE__ */ ol.compute([ch], (r) => r.facet(ch)));
|
|
17360
17360
|
function Ve(r, e) {
|
|
17361
17361
|
return Object.assign(Object.assign({}, e), { apply: r9(r) });
|
|
17362
17362
|
}
|
|
@@ -17459,7 +17459,7 @@ const EO = [
|
|
|
17459
17459
|
detail: "definition",
|
|
17460
17460
|
type: "keyword"
|
|
17461
17461
|
})
|
|
17462
|
-
]), uh = /* @__PURE__ */ new
|
|
17462
|
+
]), uh = /* @__PURE__ */ new b0(), UO = /* @__PURE__ */ new Set([
|
|
17463
17463
|
"Script",
|
|
17464
17464
|
"Block",
|
|
17465
17465
|
"FunctionExpression",
|
|
@@ -17652,7 +17652,7 @@ const p9 = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
17652
17652
|
i,
|
|
17653
17653
|
s.update(l, { userEvent: "input.complete", scrollIntoView: !0 })
|
|
17654
17654
|
]), !0);
|
|
17655
|
-
}), $o = ["_blank", "_self", "_top", "_parent"],
|
|
17655
|
+
}), $o = ["_blank", "_self", "_top", "_parent"], na = ["ascii", "utf-8", "utf-16", "latin1", "latin1"], oa = ["get", "post", "put", "delete"], ia = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], Qt = ["true", "false"], te = {}, m9 = {
|
|
17656
17656
|
a: {
|
|
17657
17657
|
attrs: {
|
|
17658
17658
|
href: null,
|
|
@@ -17706,8 +17706,8 @@ const p9 = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
17706
17706
|
value: null,
|
|
17707
17707
|
autofocus: ["autofocus"],
|
|
17708
17708
|
disabled: ["autofocus"],
|
|
17709
|
-
formenctype:
|
|
17710
|
-
formmethod:
|
|
17709
|
+
formenctype: ia,
|
|
17710
|
+
formmethod: oa,
|
|
17711
17711
|
formnovalidate: ["novalidate"],
|
|
17712
17712
|
formtarget: $o,
|
|
17713
17713
|
type: ["submit", "reset", "button"]
|
|
@@ -17753,10 +17753,10 @@ const p9 = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
17753
17753
|
attrs: {
|
|
17754
17754
|
action: null,
|
|
17755
17755
|
name: null,
|
|
17756
|
-
"accept-charset":
|
|
17756
|
+
"accept-charset": na,
|
|
17757
17757
|
autocomplete: ["on", "off"],
|
|
17758
|
-
enctype:
|
|
17759
|
-
method:
|
|
17758
|
+
enctype: ia,
|
|
17759
|
+
method: oa,
|
|
17760
17760
|
novalidate: ["novalidate"],
|
|
17761
17761
|
target: $o
|
|
17762
17762
|
}
|
|
@@ -17823,8 +17823,8 @@ const p9 = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
17823
17823
|
autofocus: ["autofocus"],
|
|
17824
17824
|
checked: ["checked"],
|
|
17825
17825
|
disabled: ["disabled"],
|
|
17826
|
-
formenctype:
|
|
17827
|
-
formmethod:
|
|
17826
|
+
formenctype: ia,
|
|
17827
|
+
formmethod: oa,
|
|
17828
17828
|
formnovalidate: ["novalidate"],
|
|
17829
17829
|
formtarget: $o,
|
|
17830
17830
|
multiple: ["multiple"],
|
|
@@ -17887,7 +17887,7 @@ const p9 = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
17887
17887
|
meta: {
|
|
17888
17888
|
attrs: {
|
|
17889
17889
|
content: null,
|
|
17890
|
-
charset:
|
|
17890
|
+
charset: na,
|
|
17891
17891
|
name: ["viewport", "application-name", "author", "description", "generator", "keywords"],
|
|
17892
17892
|
"http-equiv": ["content-language", "content-type", "default-style", "refresh"]
|
|
17893
17893
|
}
|
|
@@ -17929,7 +17929,7 @@ const p9 = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
17929
17929
|
src: null,
|
|
17930
17930
|
async: ["async"],
|
|
17931
17931
|
defer: ["defer"],
|
|
17932
|
-
charset:
|
|
17932
|
+
charset: na
|
|
17933
17933
|
}
|
|
17934
17934
|
},
|
|
17935
17935
|
section: te,
|
|
@@ -18441,7 +18441,7 @@ const Z9 = Zn({
|
|
|
18441
18441
|
function A9() {
|
|
18442
18442
|
return new co(R9);
|
|
18443
18443
|
}
|
|
18444
|
-
const q9 = 1, ep = 196, tp = 197, M9 = 198, gh = 199, E9 = 200, U9 = 201, V9 = 202, j9 = 2, W9 = 203, Y9 = 204, L9 = 3, z9 = 205, B9 = 206, I9 = 4, H9 = 207, N9 = 208, G9 = 5, F9 = 209, D9 = 26, K9 = 27, J9 = 51, ev = 52, tv = 57, rv = 58, nv = 59, ov = 61, iv = 62, sv = 63, lv = 64, av = 65, cv = 67, uv = 246, hv = 74, dv = 265, fv = 129, Ov = 150, pv = 151, gv = 154, oi = 10, ii = 13, Y0 = 32,
|
|
18444
|
+
const q9 = 1, ep = 196, tp = 197, M9 = 198, gh = 199, E9 = 200, U9 = 201, V9 = 202, j9 = 2, W9 = 203, Y9 = 204, L9 = 3, z9 = 205, B9 = 206, I9 = 4, H9 = 207, N9 = 208, G9 = 5, F9 = 209, D9 = 26, K9 = 27, J9 = 51, ev = 52, tv = 57, rv = 58, nv = 59, ov = 61, iv = 62, sv = 63, lv = 64, av = 65, cv = 67, uv = 246, hv = 74, dv = 265, fv = 129, Ov = 150, pv = 151, gv = 154, oi = 10, ii = 13, Y0 = 32, sl = 9, L0 = 35, mv = 40, vv = 46, mh = 123, rp = 39, np = 34, wv = 92, bv = /* @__PURE__ */ new Set([
|
|
18445
18445
|
K9,
|
|
18446
18446
|
J9,
|
|
18447
18447
|
ev,
|
|
@@ -18460,7 +18460,7 @@ const q9 = 1, ep = 196, tp = 197, M9 = 198, gh = 199, E9 = 200, U9 = 201, V9 = 2
|
|
|
18460
18460
|
pv,
|
|
18461
18461
|
gv
|
|
18462
18462
|
]);
|
|
18463
|
-
function
|
|
18463
|
+
function sa(r) {
|
|
18464
18464
|
return r == oi || r == ii;
|
|
18465
18465
|
}
|
|
18466
18466
|
const Sv = new kt((r, e) => {
|
|
@@ -18468,14 +18468,14 @@ const Sv = new kt((r, e) => {
|
|
|
18468
18468
|
if (r.next < 0)
|
|
18469
18469
|
r.acceptToken(U9);
|
|
18470
18470
|
else if (e.context.depth < 0)
|
|
18471
|
-
|
|
18472
|
-
else if (((t = r.peek(-1)) < 0 ||
|
|
18471
|
+
sa(r.next) && r.acceptToken(E9, 1);
|
|
18472
|
+
else if (((t = r.peek(-1)) < 0 || sa(t)) && e.canShift(gh)) {
|
|
18473
18473
|
let n = 0;
|
|
18474
|
-
for (; r.next == Y0 || r.next ==
|
|
18474
|
+
for (; r.next == Y0 || r.next == sl; )
|
|
18475
18475
|
r.advance(), n++;
|
|
18476
18476
|
(r.next == oi || r.next == ii || r.next == L0) && r.acceptToken(gh, -n);
|
|
18477
18477
|
} else
|
|
18478
|
-
|
|
18478
|
+
sa(r.next) && r.acceptToken(M9, 1);
|
|
18479
18479
|
}, { contextual: !0 }), yv = new kt((r, e) => {
|
|
18480
18480
|
let t = e.context.depth;
|
|
18481
18481
|
if (t < 0)
|
|
@@ -18486,7 +18486,7 @@ const Sv = new kt((r, e) => {
|
|
|
18486
18486
|
for (; ; ) {
|
|
18487
18487
|
if (r.next == Y0)
|
|
18488
18488
|
o++;
|
|
18489
|
-
else if (r.next ==
|
|
18489
|
+
else if (r.next == sl)
|
|
18490
18490
|
o += 8 - o % 8;
|
|
18491
18491
|
else
|
|
18492
18492
|
break;
|
|
@@ -18495,23 +18495,23 @@ const Sv = new kt((r, e) => {
|
|
|
18495
18495
|
o != t && r.next != oi && r.next != ii && r.next != L0 && (o < t ? r.acceptToken(tp, -i) : r.acceptToken(ep));
|
|
18496
18496
|
}
|
|
18497
18497
|
});
|
|
18498
|
-
function
|
|
18498
|
+
function v1(r, e) {
|
|
18499
18499
|
this.parent = r, this.depth = e, this.hash = (r ? r.hash + r.hash << 8 : 0) + e + (e << 4);
|
|
18500
18500
|
}
|
|
18501
|
-
const kv = new
|
|
18501
|
+
const kv = new v1(null, 0);
|
|
18502
18502
|
function xv(r) {
|
|
18503
18503
|
let e = 0;
|
|
18504
18504
|
for (let t = 0; t < r.length; t++)
|
|
18505
|
-
e += r.charCodeAt(t) ==
|
|
18505
|
+
e += r.charCodeAt(t) == sl ? 8 - e % 8 : 1;
|
|
18506
18506
|
return e;
|
|
18507
18507
|
}
|
|
18508
|
-
const Qv = new
|
|
18508
|
+
const Qv = new y0({
|
|
18509
18509
|
start: kv,
|
|
18510
18510
|
reduce(r, e) {
|
|
18511
18511
|
return r.depth < 0 && bv.has(e) ? r.parent : r;
|
|
18512
18512
|
},
|
|
18513
18513
|
shift(r, e, t, n) {
|
|
18514
|
-
return e == ep ? new
|
|
18514
|
+
return e == ep ? new v1(r, xv(n.read(n.pos, t.pos))) : e == tp ? r.parent : e == D9 || e == tv || e == ov ? new v1(r, -1) : r;
|
|
18515
18515
|
},
|
|
18516
18516
|
hash(r) {
|
|
18517
18517
|
return r.hash;
|
|
@@ -18525,13 +18525,13 @@ const Qv = new S0({
|
|
|
18525
18525
|
if (!/\w/.test(String.fromCharCode(r.next)))
|
|
18526
18526
|
for (let e = 0; ; e++) {
|
|
18527
18527
|
let t = r.peek(e);
|
|
18528
|
-
if (!(t == Y0 || t ==
|
|
18528
|
+
if (!(t == Y0 || t == sl)) {
|
|
18529
18529
|
t != mv && t != vv && t != oi && t != ii && t != L0 && r.acceptToken(q9);
|
|
18530
18530
|
return;
|
|
18531
18531
|
}
|
|
18532
18532
|
}
|
|
18533
18533
|
});
|
|
18534
|
-
function
|
|
18534
|
+
function ll(r, e, t, n, o) {
|
|
18535
18535
|
return new kt((i) => {
|
|
18536
18536
|
let s = i.pos;
|
|
18537
18537
|
for (; !(i.next < 0); )
|
|
@@ -18558,7 +18558,7 @@ function sl(r, e, t, n, o) {
|
|
|
18558
18558
|
i.pos > s && i.acceptToken(t);
|
|
18559
18559
|
});
|
|
18560
18560
|
}
|
|
18561
|
-
const $v =
|
|
18561
|
+
const $v = ll(rp, 1, V9, j9, W9), Pv = ll(np, 1, Y9, L9, z9), Tv = ll(rp, 3, B9, I9, H9), Cv = ll(np, 3, N9, G9, F9), Zv = Zn({
|
|
18562
18562
|
'async "*" "**" FormatConversion FormatSpec': S.modifier,
|
|
18563
18563
|
"for while if elif else try except finally return raise break continue with pass assert await yield match case": S.controlKeyword,
|
|
18564
18564
|
"in not and or is del": S.operatorKeyword,
|
|
@@ -18610,7 +18610,7 @@ const $v = sl(rp, 1, V9, j9, W9), Pv = sl(np, 1, Y9, L9, z9), Tv = sl(rp, 3, B9,
|
|
|
18610
18610
|
topRules: { Script: [0, 7] },
|
|
18611
18611
|
specialized: [{ term: 229, get: (r) => Xv[r] || -1 }],
|
|
18612
18612
|
tokenPrec: 7205
|
|
18613
|
-
}), vh = /* @__PURE__ */ new
|
|
18613
|
+
}), vh = /* @__PURE__ */ new b0(), op = /* @__PURE__ */ new Set([
|
|
18614
18614
|
"Script",
|
|
18615
18615
|
"Body",
|
|
18616
18616
|
"FunctionDefinition",
|
|
@@ -18910,7 +18910,7 @@ function bh(r, e) {
|
|
|
18910
18910
|
let t = r.baseIndentFor(e), n = r.lineAt(r.pos, -1), o = n.from + n.text.length;
|
|
18911
18911
|
return /^\s*($|#)/.test(n.text) && r.node.to < o + 100 && !/\S/.test(r.state.sliceDoc(o, r.node.to)) && r.lineIndent(r.pos, -1) <= t || /^\s*(else:|elif |except |finally:)/.test(r.textAfter) && r.lineIndent(r.pos, -1) > t ? null : t + r.unit;
|
|
18912
18912
|
}
|
|
18913
|
-
const
|
|
18913
|
+
const la = /* @__PURE__ */ Cr.define({
|
|
18914
18914
|
name: "python",
|
|
18915
18915
|
parser: /* @__PURE__ */ Rv.configure({
|
|
18916
18916
|
props: [
|
|
@@ -18972,9 +18972,9 @@ const sa = /* @__PURE__ */ Cr.define({
|
|
|
18972
18972
|
}
|
|
18973
18973
|
});
|
|
18974
18974
|
function Vv() {
|
|
18975
|
-
return new co(
|
|
18976
|
-
|
|
18977
|
-
|
|
18975
|
+
return new co(la, [
|
|
18976
|
+
la.data.of({ autocomplete: qv }),
|
|
18977
|
+
la.data.of({ autocomplete: Uv })
|
|
18978
18978
|
]);
|
|
18979
18979
|
}
|
|
18980
18980
|
function z0(r, e, t, n, o, i) {
|
|
@@ -18992,7 +18992,7 @@ function Sh(r, e, t) {
|
|
|
18992
18992
|
if (e.prevToken == "variable" || e.prevToken == "type" || /\S(?:[^- ]>|[*\]])\s*$|\*$/.test(r.string.slice(0, t)) || e.typeAtEndOfLine && r.column() == r.indentation())
|
|
18993
18993
|
return !0;
|
|
18994
18994
|
}
|
|
18995
|
-
function
|
|
18995
|
+
function aa(r) {
|
|
18996
18996
|
for (; ; ) {
|
|
18997
18997
|
if (!r || r.type == "top")
|
|
18998
18998
|
return !0;
|
|
@@ -19059,7 +19059,7 @@ function Rt(r) {
|
|
|
19059
19059
|
return "comment";
|
|
19060
19060
|
}
|
|
19061
19061
|
function I(U, B) {
|
|
19062
|
-
r.typeFirstDefinitions && U.eol() &&
|
|
19062
|
+
r.typeFirstDefinitions && U.eol() && aa(B.context) && (B.typeAtEndOfLine = Sh(U, B, U.pos));
|
|
19063
19063
|
}
|
|
19064
19064
|
return {
|
|
19065
19065
|
name: r.name,
|
|
@@ -19096,14 +19096,14 @@ function Rt(r) {
|
|
|
19096
19096
|
G = Po(B);
|
|
19097
19097
|
} else
|
|
19098
19098
|
P == G.type ? Po(B) : h && ((G.type == "}" || G.type == "top") && P != ";" || G.type == "statement" && P == "newstatement") && Ii(B, U.column(), "statement", U.current());
|
|
19099
|
-
if (H == "variable" && (B.prevToken == "def" || r.typeFirstDefinitions && Sh(U, B, U.start) &&
|
|
19099
|
+
if (H == "variable" && (B.prevToken == "def" || r.typeFirstDefinitions && Sh(U, B, U.start) && aa(B.context) && U.match(/^\s*\(/, !1)) && (H = "def"), c.token) {
|
|
19100
19100
|
var le = c.token(U, B, H);
|
|
19101
19101
|
le !== void 0 && (H = le);
|
|
19102
19102
|
}
|
|
19103
19103
|
return H == "def" && r.styleDefs === !1 && (H = "variable"), B.startOfLine = !1, B.prevToken = R ? "def" : H || P, I(U, B), H;
|
|
19104
19104
|
},
|
|
19105
19105
|
indent: function(U, B, G) {
|
|
19106
|
-
if (U.tokenize != A && U.tokenize != null || U.typeAtEndOfLine &&
|
|
19106
|
+
if (U.tokenize != A && U.tokenize != null || U.typeAtEndOfLine && aa(U.context))
|
|
19107
19107
|
return null;
|
|
19108
19108
|
var H = U.context, le = B && B.charAt(0), Te = le == H.type;
|
|
19109
19109
|
if (H.type == "statement" && le == "}" && (H = H.prev), r.dontIndentStatements)
|
|
@@ -19145,7 +19145,7 @@ function ki(r) {
|
|
|
19145
19145
|
function up(r) {
|
|
19146
19146
|
return ki(r) || fr(Wv, r);
|
|
19147
19147
|
}
|
|
19148
|
-
var xi = "case do else for if switch while struct enum union",
|
|
19148
|
+
var xi = "case do else for if switch while struct enum union", al = "struct enum union";
|
|
19149
19149
|
function tn(r, e) {
|
|
19150
19150
|
if (!e.startOfLine)
|
|
19151
19151
|
return !1;
|
|
@@ -19159,10 +19159,10 @@ function tn(r, e) {
|
|
|
19159
19159
|
}
|
|
19160
19160
|
return e.tokenize = n, "meta";
|
|
19161
19161
|
}
|
|
19162
|
-
function
|
|
19162
|
+
function cl(r, e) {
|
|
19163
19163
|
return e.prevToken == "type" ? "type" : !1;
|
|
19164
19164
|
}
|
|
19165
|
-
function
|
|
19165
|
+
function ul(r) {
|
|
19166
19166
|
return !r || r.length < 2 || r[0] != "_" ? !1 : r[1] == "_" || r[1] !== r[1].toLowerCase();
|
|
19167
19167
|
}
|
|
19168
19168
|
function Ge(r) {
|
|
@@ -19200,13 +19200,13 @@ const Yv = Rt({
|
|
|
19200
19200
|
keywords: K(yi),
|
|
19201
19201
|
types: ki,
|
|
19202
19202
|
blockKeywords: K(xi),
|
|
19203
|
-
defKeywords: K(
|
|
19203
|
+
defKeywords: K(al),
|
|
19204
19204
|
typeFirstDefinitions: !0,
|
|
19205
19205
|
atoms: K("NULL true false"),
|
|
19206
|
-
isReservedIdentifier:
|
|
19206
|
+
isReservedIdentifier: ul,
|
|
19207
19207
|
hooks: {
|
|
19208
19208
|
"#": tn,
|
|
19209
|
-
"*":
|
|
19209
|
+
"*": cl
|
|
19210
19210
|
}
|
|
19211
19211
|
});
|
|
19212
19212
|
Rt({
|
|
@@ -19214,15 +19214,15 @@ Rt({
|
|
|
19214
19214
|
keywords: K(yi + " " + lp),
|
|
19215
19215
|
types: ki,
|
|
19216
19216
|
blockKeywords: K(xi + " class try catch"),
|
|
19217
|
-
defKeywords: K(
|
|
19217
|
+
defKeywords: K(al + " class namespace"),
|
|
19218
19218
|
typeFirstDefinitions: !0,
|
|
19219
19219
|
atoms: K("true false NULL nullptr"),
|
|
19220
19220
|
dontIndentStatements: /^template$/,
|
|
19221
19221
|
isIdentifierChar: /[\w\$_~\xa1-\uffff]/,
|
|
19222
|
-
isReservedIdentifier:
|
|
19222
|
+
isReservedIdentifier: ul,
|
|
19223
19223
|
hooks: {
|
|
19224
19224
|
"#": tn,
|
|
19225
|
-
"*":
|
|
19225
|
+
"*": cl,
|
|
19226
19226
|
u: zr,
|
|
19227
19227
|
U: zr,
|
|
19228
19228
|
L: zr,
|
|
@@ -19422,14 +19422,14 @@ const Iv = Rt({
|
|
|
19422
19422
|
types: up,
|
|
19423
19423
|
builtin: K(cp),
|
|
19424
19424
|
blockKeywords: K(xi + " @synthesize @try @catch @finally @autoreleasepool @synchronized"),
|
|
19425
|
-
defKeywords: K(
|
|
19425
|
+
defKeywords: K(al + " @interface @implementation @protocol @class"),
|
|
19426
19426
|
dontIndentStatements: /^@.*$/,
|
|
19427
19427
|
typeFirstDefinitions: !0,
|
|
19428
19428
|
atoms: K("YES NO NULL Nil nil true false nullptr"),
|
|
19429
|
-
isReservedIdentifier:
|
|
19429
|
+
isReservedIdentifier: ul,
|
|
19430
19430
|
hooks: {
|
|
19431
19431
|
"#": tn,
|
|
19432
|
-
"*":
|
|
19432
|
+
"*": cl
|
|
19433
19433
|
}
|
|
19434
19434
|
});
|
|
19435
19435
|
Rt({
|
|
@@ -19438,14 +19438,14 @@ Rt({
|
|
|
19438
19438
|
types: up,
|
|
19439
19439
|
builtin: K(cp),
|
|
19440
19440
|
blockKeywords: K(xi + " @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),
|
|
19441
|
-
defKeywords: K(
|
|
19441
|
+
defKeywords: K(al + " @interface @implementation @protocol @class class namespace"),
|
|
19442
19442
|
dontIndentStatements: /^@.*$|^template$/,
|
|
19443
19443
|
typeFirstDefinitions: !0,
|
|
19444
19444
|
atoms: K("YES NO NULL Nil nil true false nullptr"),
|
|
19445
|
-
isReservedIdentifier:
|
|
19445
|
+
isReservedIdentifier: ul,
|
|
19446
19446
|
hooks: {
|
|
19447
19447
|
"#": tn,
|
|
19448
|
-
"*":
|
|
19448
|
+
"*": cl,
|
|
19449
19449
|
u: zr,
|
|
19450
19450
|
U: zr,
|
|
19451
19451
|
L: zr,
|
|
@@ -19544,7 +19544,7 @@ function Op(r) {
|
|
|
19544
19544
|
function Nv(r) {
|
|
19545
19545
|
return r.interpolationStack ? r.interpolationStack.length : 0;
|
|
19546
19546
|
}
|
|
19547
|
-
function
|
|
19547
|
+
function ca(r, e, t, n) {
|
|
19548
19548
|
var o = !1;
|
|
19549
19549
|
if (e.eat(r))
|
|
19550
19550
|
if (e.eat(r))
|
|
@@ -19584,14 +19584,14 @@ Rt({
|
|
|
19584
19584
|
},
|
|
19585
19585
|
// custom string handling to deal with triple-quoted strings and string interpolation
|
|
19586
19586
|
"'": function(r, e) {
|
|
19587
|
-
return
|
|
19587
|
+
return ca("'", r, e, !1);
|
|
19588
19588
|
},
|
|
19589
19589
|
'"': function(r, e) {
|
|
19590
|
-
return
|
|
19590
|
+
return ca('"', r, e, !1);
|
|
19591
19591
|
},
|
|
19592
19592
|
r: function(r, e) {
|
|
19593
19593
|
var t = r.peek();
|
|
19594
|
-
return t == "'" || t == '"' ?
|
|
19594
|
+
return t == "'" || t == '"' ? ca(r.next(), r, e, !0) : !1;
|
|
19595
19595
|
},
|
|
19596
19596
|
"}": function(r, e) {
|
|
19597
19597
|
return Nv(e) > 0 ? (e.tokenize = Op(e), null) : !1;
|
|
@@ -20339,7 +20339,7 @@ var pp = ["false", "nil", "true"], gp = [
|
|
|
20339
20339
|
"with-precision",
|
|
20340
20340
|
"with-redefs",
|
|
20341
20341
|
"with-redefs-fn"
|
|
20342
|
-
], Kv =
|
|
20342
|
+
], Kv = hl(pp), Jv = hl(gp), ew = hl(mp), tw = hl(Dv), rw = /^(?:[\\\[\]\s"(),;@^`{}~]|$)/, nw = /^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/, ow = /^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/, iw = /^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/;
|
|
20343
20343
|
function B0(r, e) {
|
|
20344
20344
|
if (r.eatSpace() || r.eat(","))
|
|
20345
20345
|
return ["space", null];
|
|
@@ -20380,7 +20380,7 @@ function lw(r, e) {
|
|
|
20380
20380
|
}
|
|
20381
20381
|
return ["space", "comment"];
|
|
20382
20382
|
}
|
|
20383
|
-
function
|
|
20383
|
+
function hl(r) {
|
|
20384
20384
|
for (var e = {}, t = 0; t < r.length; ++t)
|
|
20385
20385
|
e[r[t]] = !0;
|
|
20386
20386
|
return e;
|
|
@@ -20529,7 +20529,7 @@ function Qh(r, e) {
|
|
|
20529
20529
|
function vp(r, e, t, n, o) {
|
|
20530
20530
|
this.indented = r, this.column = e, this.type = t, this.align = n, this.prev = o;
|
|
20531
20531
|
}
|
|
20532
|
-
function
|
|
20532
|
+
function ua(r, e, t) {
|
|
20533
20533
|
return r.context = new vp(r.indented, e, t, null, r.context);
|
|
20534
20534
|
}
|
|
20535
20535
|
function _h(r) {
|
|
@@ -20554,7 +20554,7 @@ const dw = {
|
|
|
20554
20554
|
return null;
|
|
20555
20555
|
Or = null;
|
|
20556
20556
|
var n = (e.tokenize || Es)(r, e);
|
|
20557
|
-
return n == "comment" || (t.align == null && (t.align = !0), Or == "{" ?
|
|
20557
|
+
return n == "comment" || (t.align == null && (t.align = !0), Or == "{" ? ua(e, r.column(), "}") : Or == "[" ? ua(e, r.column(), "]") : Or == "(" ? ua(e, r.column(), ")") : Or == "case" ? t.type = "case" : (Or == "}" && t.type == "}" || Or == t.type) && _h(e), e.startOfLine = !1), n;
|
|
20558
20558
|
},
|
|
20559
20559
|
indent: function(r, e, t) {
|
|
20560
20560
|
if (r.tokenize != Es && r.tokenize != null)
|
|
@@ -20571,7 +20571,7 @@ const dw = {
|
|
|
20571
20571
|
}
|
|
20572
20572
|
};
|
|
20573
20573
|
function I0(r, e) {
|
|
20574
|
-
return r.skipToEnd(), e.cur =
|
|
20574
|
+
return r.skipToEnd(), e.cur = dl, "error";
|
|
20575
20575
|
}
|
|
20576
20576
|
function fw(r, e) {
|
|
20577
20577
|
return r.match(/^HTTP\/\d\.\d/) ? (e.cur = Ow, "keyword") : r.match(/^[A-Z]+/) && /[ \t]/.test(r.peek()) ? (e.cur = gw, "keyword") : I0(r, e);
|
|
@@ -20585,15 +20585,15 @@ function Ow(r, e) {
|
|
|
20585
20585
|
return n >= 100 && n < 400 ? "atom" : "error";
|
|
20586
20586
|
}
|
|
20587
20587
|
function pw(r, e) {
|
|
20588
|
-
return r.skipToEnd(), e.cur =
|
|
20588
|
+
return r.skipToEnd(), e.cur = dl, null;
|
|
20589
20589
|
}
|
|
20590
20590
|
function gw(r, e) {
|
|
20591
20591
|
return r.eatWhile(/\S/), e.cur = mw, "string.special";
|
|
20592
20592
|
}
|
|
20593
20593
|
function mw(r, e) {
|
|
20594
|
-
return r.match(/^HTTP\/\d\.\d$/) ? (e.cur =
|
|
20594
|
+
return r.match(/^HTTP\/\d\.\d$/) ? (e.cur = dl, "keyword") : I0(r, e);
|
|
20595
20595
|
}
|
|
20596
|
-
function
|
|
20596
|
+
function dl(r) {
|
|
20597
20597
|
return r.sol() && !r.eat(/[ \t]/) ? r.match(/^.*?:/) ? "atom" : (r.skipToEnd(), "error") : (r.skipToEnd(), "string");
|
|
20598
20598
|
}
|
|
20599
20599
|
function $h(r) {
|
|
@@ -20603,7 +20603,7 @@ const vw = {
|
|
|
20603
20603
|
name: "http",
|
|
20604
20604
|
token: function(r, e) {
|
|
20605
20605
|
var t = e.cur;
|
|
20606
|
-
return t !=
|
|
20606
|
+
return t != dl && t != $h && r.eatSpace() ? null : t(r, e);
|
|
20607
20607
|
},
|
|
20608
20608
|
blankLine: function(r) {
|
|
20609
20609
|
r.cur = $h;
|
|
@@ -20890,7 +20890,7 @@ function Oo(r, e) {
|
|
|
20890
20890
|
r[o] instanceof RegExp ? r[o] = r[o].source : r[o] = r[o].replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
20891
20891
|
return new RegExp(t + "(" + r.join("|") + ")" + n, "i");
|
|
20892
20892
|
}
|
|
20893
|
-
var wp = "(?=[^A-Za-z\\d\\-_]|$)",
|
|
20893
|
+
var wp = "(?=[^A-Za-z\\d\\-_]|$)", w1 = /[\w\-:]/, bw = Oo([
|
|
20894
20894
|
/begin|break|catch|continue|data|default|do|dynamicparam/,
|
|
20895
20895
|
/else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/,
|
|
20896
20896
|
/param|process|return|switch|throw|trap|try|until|where|while/
|
|
@@ -21011,7 +21011,7 @@ function Zr(r, e) {
|
|
|
21011
21011
|
if (o === "'")
|
|
21012
21012
|
return Zw(r, e);
|
|
21013
21013
|
if (o === "$")
|
|
21014
|
-
return
|
|
21014
|
+
return b1(r, e);
|
|
21015
21015
|
if (o === '"')
|
|
21016
21016
|
return bp(r, e);
|
|
21017
21017
|
if (o === "<" && r.eat("#"))
|
|
@@ -21026,8 +21026,8 @@ function Zr(r, e) {
|
|
|
21026
21026
|
return "error";
|
|
21027
21027
|
if (r.peek().match(/[({]/))
|
|
21028
21028
|
return "punctuation";
|
|
21029
|
-
if (r.peek().match(
|
|
21030
|
-
return
|
|
21029
|
+
if (r.peek().match(w1))
|
|
21030
|
+
return b1(r, e);
|
|
21031
21031
|
}
|
|
21032
21032
|
return "error";
|
|
21033
21033
|
}
|
|
@@ -21075,7 +21075,7 @@ function Sp(r, e, t) {
|
|
|
21075
21075
|
return !0;
|
|
21076
21076
|
},
|
|
21077
21077
|
tokenize: t
|
|
21078
|
-
}), e.tokenize =
|
|
21078
|
+
}), e.tokenize = b1, e.tokenize(r, e);
|
|
21079
21079
|
}
|
|
21080
21080
|
function Th(r, e) {
|
|
21081
21081
|
for (var t = !1, n; (n = r.next()) != null; ) {
|
|
@@ -21087,9 +21087,9 @@ function Th(r, e) {
|
|
|
21087
21087
|
}
|
|
21088
21088
|
return "comment";
|
|
21089
21089
|
}
|
|
21090
|
-
function
|
|
21090
|
+
function b1(r, e) {
|
|
21091
21091
|
var t = r.peek();
|
|
21092
|
-
return r.eat("{") ? (e.tokenize = Ch, Ch(r, e)) : t != null && t.match(
|
|
21092
|
+
return r.eat("{") ? (e.tokenize = Ch, Ch(r, e)) : t != null && t.match(w1) ? (r.eatWhile(w1), e.tokenize = Zr, "variable") : (e.tokenize = Zr, "error");
|
|
21093
21093
|
}
|
|
21094
21094
|
function Ch(r, e) {
|
|
21095
21095
|
for (var t; (t = r.next()) != null; )
|
|
@@ -21130,13 +21130,13 @@ const qw = {
|
|
|
21130
21130
|
commentTokens: { line: "#", block: { open: "<#", close: "#>" } }
|
|
21131
21131
|
}
|
|
21132
21132
|
};
|
|
21133
|
-
function
|
|
21133
|
+
function fl(r) {
|
|
21134
21134
|
for (var e = {}, t = 0; t < r.length; ++t)
|
|
21135
21135
|
e[r[t]] = !0;
|
|
21136
21136
|
return e;
|
|
21137
21137
|
}
|
|
21138
|
-
var yp = ["NULL", "NA", "Inf", "NaN", "NA_integer_", "NA_real_", "NA_complex_", "NA_character_", "TRUE", "FALSE"], kp = ["list", "quote", "bquote", "eval", "return", "call", "parse", "deparse"], xp = ["if", "else", "repeat", "while", "function", "for", "in", "next", "break"], Mw = ["if", "else", "repeat", "while", "function", "for"], Ew =
|
|
21139
|
-
function
|
|
21138
|
+
var yp = ["NULL", "NA", "Inf", "NaN", "NA_integer_", "NA_real_", "NA_complex_", "NA_character_", "TRUE", "FALSE"], kp = ["list", "quote", "bquote", "eval", "return", "call", "parse", "deparse"], xp = ["if", "else", "repeat", "while", "function", "for", "in", "next", "break"], Mw = ["if", "else", "repeat", "while", "function", "for"], Ew = fl(yp), Uw = fl(kp), Vw = fl(xp), jw = fl(Mw), Zh = /[+\-*\/^<>=!&|~$:]/, Wt;
|
|
21139
|
+
function S1(r, e) {
|
|
21140
21140
|
Wt = null;
|
|
21141
21141
|
var t = r.next();
|
|
21142
21142
|
if (t == "#")
|
|
@@ -21168,7 +21168,7 @@ function Ww(r) {
|
|
|
21168
21168
|
} else {
|
|
21169
21169
|
for (var o; (o = e.next()) != null; ) {
|
|
21170
21170
|
if (o == r) {
|
|
21171
|
-
t.tokenize =
|
|
21171
|
+
t.tokenize = S1;
|
|
21172
21172
|
break;
|
|
21173
21173
|
}
|
|
21174
21174
|
if (o == "\\") {
|
|
@@ -21180,7 +21180,7 @@ function Ww(r) {
|
|
|
21180
21180
|
}
|
|
21181
21181
|
};
|
|
21182
21182
|
}
|
|
21183
|
-
var Xh = 1,
|
|
21183
|
+
var Xh = 1, ha = 2, da = 4;
|
|
21184
21184
|
function Hi(r, e, t) {
|
|
21185
21185
|
r.ctx = {
|
|
21186
21186
|
type: e,
|
|
@@ -21200,34 +21200,34 @@ function Rh(r, e) {
|
|
|
21200
21200
|
prev: t.prev
|
|
21201
21201
|
};
|
|
21202
21202
|
}
|
|
21203
|
-
function
|
|
21203
|
+
function fa(r) {
|
|
21204
21204
|
r.indent = r.ctx.indent, r.ctx = r.ctx.prev;
|
|
21205
21205
|
}
|
|
21206
21206
|
const Yw = {
|
|
21207
21207
|
name: "r",
|
|
21208
21208
|
startState: function(r) {
|
|
21209
21209
|
return {
|
|
21210
|
-
tokenize:
|
|
21210
|
+
tokenize: S1,
|
|
21211
21211
|
ctx: {
|
|
21212
21212
|
type: "top",
|
|
21213
21213
|
indent: -r,
|
|
21214
|
-
flags:
|
|
21214
|
+
flags: ha
|
|
21215
21215
|
},
|
|
21216
21216
|
indent: 0,
|
|
21217
21217
|
afterIdent: !1
|
|
21218
21218
|
};
|
|
21219
21219
|
},
|
|
21220
21220
|
token: function(r, e) {
|
|
21221
|
-
if (r.sol() && (e.ctx.flags & 3 || (e.ctx.flags |=
|
|
21221
|
+
if (r.sol() && (e.ctx.flags & 3 || (e.ctx.flags |= ha), e.ctx.flags & da && fa(e), e.indent = r.indentation()), r.eatSpace())
|
|
21222
21222
|
return null;
|
|
21223
21223
|
var t = e.tokenize(r, e);
|
|
21224
|
-
return t != "comment" && !(e.ctx.flags &
|
|
21224
|
+
return t != "comment" && !(e.ctx.flags & ha) && Rh(e, Xh), (Wt == ";" || Wt == "{" || Wt == "}") && e.ctx.type == "block" && fa(e), Wt == "{" ? Hi(e, "}", r) : Wt == "(" ? (Hi(e, ")", r), e.afterIdent && (e.ctx.argList = !0)) : Wt == "[" ? Hi(e, "]", r) : Wt == "block" ? Hi(e, "block", r) : Wt == e.ctx.type ? fa(e) : e.ctx.type == "block" && t != "comment" && Rh(e, da), e.afterIdent = t == "variable" || t == "keyword", t;
|
|
21225
21225
|
},
|
|
21226
21226
|
indent: function(r, e, t) {
|
|
21227
|
-
if (r.tokenize !=
|
|
21227
|
+
if (r.tokenize != S1)
|
|
21228
21228
|
return 0;
|
|
21229
21229
|
var n = e && e.charAt(0), o = r.ctx, i = n == o.type;
|
|
21230
|
-
return o.flags &
|
|
21230
|
+
return o.flags & da && (o = o.prev), o.type == "block" ? o.indent + (n == "{" ? 0 : t.unit) : o.flags & Xh ? o.column + (i ? 0 : 1) : o.indent + (i ? 0 : t.unit);
|
|
21231
21231
|
},
|
|
21232
21232
|
languageData: {
|
|
21233
21233
|
wordChars: ".",
|
|
@@ -21385,14 +21385,14 @@ function Hw(r) {
|
|
|
21385
21385
|
}
|
|
21386
21386
|
return r.backUp(r.pos - e), o;
|
|
21387
21387
|
}
|
|
21388
|
-
function
|
|
21388
|
+
function y1(r) {
|
|
21389
21389
|
return r || (r = 1), function(e, t) {
|
|
21390
21390
|
if (e.peek() == "}") {
|
|
21391
21391
|
if (r == 1)
|
|
21392
21392
|
return t.tokenize.pop(), t.tokenize[t.tokenize.length - 1](e, t);
|
|
21393
|
-
t.tokenize[t.tokenize.length - 1] =
|
|
21393
|
+
t.tokenize[t.tokenize.length - 1] = y1(r - 1);
|
|
21394
21394
|
} else
|
|
21395
|
-
e.peek() == "{" && (t.tokenize[t.tokenize.length - 1] =
|
|
21395
|
+
e.peek() == "{" && (t.tokenize[t.tokenize.length - 1] = y1(r + 1));
|
|
21396
21396
|
return Vs(e, t);
|
|
21397
21397
|
};
|
|
21398
21398
|
}
|
|
@@ -21412,7 +21412,7 @@ function To(r, e, t, n) {
|
|
|
21412
21412
|
}
|
|
21413
21413
|
if (t && l == "#" && !s) {
|
|
21414
21414
|
if (o.eat("{")) {
|
|
21415
|
-
r == "}" && (i.context = { prev: i.context, type: "read-quoted-paused" }), i.tokenize.push(
|
|
21415
|
+
r == "}" && (i.context = { prev: i.context, type: "read-quoted-paused" }), i.tokenize.push(y1());
|
|
21416
21416
|
break;
|
|
21417
21417
|
} else if (/[@\$]/.test(o.peek())) {
|
|
21418
21418
|
i.tokenize.push(Nw());
|
|
@@ -21465,10 +21465,10 @@ const Dw = {
|
|
|
21465
21465
|
autocomplete: Qp
|
|
21466
21466
|
}
|
|
21467
21467
|
};
|
|
21468
|
-
var
|
|
21468
|
+
var k1 = {};
|
|
21469
21469
|
function G0(r, e) {
|
|
21470
21470
|
for (var t = 0; t < e.length; t++)
|
|
21471
|
-
|
|
21471
|
+
k1[e[t]] = r;
|
|
21472
21472
|
}
|
|
21473
21473
|
var _p = ["true", "false"], $p = [
|
|
21474
21474
|
"if",
|
|
@@ -21569,7 +21569,7 @@ function Kw(r, e) {
|
|
|
21569
21569
|
if (n === "\\")
|
|
21570
21570
|
return r.next(), null;
|
|
21571
21571
|
if (n === "'" || n === '"' || n === "`")
|
|
21572
|
-
return e.tokens.unshift(
|
|
21572
|
+
return e.tokens.unshift(Ol(n, n === "`" ? "quote" : "string")), so(r, e);
|
|
21573
21573
|
if (n === "#")
|
|
21574
21574
|
return t && r.eat("!") ? (r.skipToEnd(), "meta") : (r.skipToEnd(), "comment");
|
|
21575
21575
|
if (n === "$")
|
|
@@ -21589,9 +21589,9 @@ function Kw(r, e) {
|
|
|
21589
21589
|
return "number";
|
|
21590
21590
|
r.eatWhile(/[\w-]/);
|
|
21591
21591
|
var i = r.current();
|
|
21592
|
-
return r.peek() === "=" && /\w+/.test(i) ? "def" :
|
|
21592
|
+
return r.peek() === "=" && /\w+/.test(i) ? "def" : k1.hasOwnProperty(i) ? k1[i] : null;
|
|
21593
21593
|
}
|
|
21594
|
-
function
|
|
21594
|
+
function Ol(r, e) {
|
|
21595
21595
|
var t = r == "(" ? ")" : r == "{" ? "}" : r;
|
|
21596
21596
|
return function(n, o) {
|
|
21597
21597
|
for (var i, s = !1; (i = n.next()) != null; ) {
|
|
@@ -21603,7 +21603,7 @@ function fl(r, e) {
|
|
|
21603
21603
|
break;
|
|
21604
21604
|
} else {
|
|
21605
21605
|
if (!s && r !== t && i === r)
|
|
21606
|
-
return o.tokens.unshift(
|
|
21606
|
+
return o.tokens.unshift(Ol(r, e)), so(n, o);
|
|
21607
21607
|
if (!s && /['"]/.test(i) && !/['"]/.test(r)) {
|
|
21608
21608
|
o.tokens.unshift(Jw(i, "string")), n.backUp(1);
|
|
21609
21609
|
break;
|
|
@@ -21616,13 +21616,13 @@ function fl(r, e) {
|
|
|
21616
21616
|
}
|
|
21617
21617
|
function Jw(r, e) {
|
|
21618
21618
|
return function(t, n) {
|
|
21619
|
-
return n.tokens[0] =
|
|
21619
|
+
return n.tokens[0] = Ol(r, e), t.next(), so(t, n);
|
|
21620
21620
|
};
|
|
21621
21621
|
}
|
|
21622
21622
|
var Tp = function(r, e) {
|
|
21623
21623
|
e.tokens.length > 1 && r.eat("$");
|
|
21624
21624
|
var t = r.next();
|
|
21625
|
-
return /['"({]/.test(t) ? (e.tokens[0] =
|
|
21625
|
+
return /['"({]/.test(t) ? (e.tokens[0] = Ol(t, t == "(" ? "quote" : t == "{" ? "def" : "string"), so(r, e)) : (/\d/.test(t) || r.eatWhile(/\w/), e.tokens.shift(), "def");
|
|
21626
21626
|
};
|
|
21627
21627
|
function eb(r) {
|
|
21628
21628
|
return function(e, t) {
|
|
@@ -21646,12 +21646,12 @@ const tb = {
|
|
|
21646
21646
|
commentTokens: { line: "#" }
|
|
21647
21647
|
}
|
|
21648
21648
|
};
|
|
21649
|
-
function
|
|
21649
|
+
function pl(r) {
|
|
21650
21650
|
for (var e = {}, t = 0; t < r.length; t++)
|
|
21651
21651
|
e[r[t]] = !0;
|
|
21652
21652
|
return e;
|
|
21653
21653
|
}
|
|
21654
|
-
var rb =
|
|
21654
|
+
var rb = pl([
|
|
21655
21655
|
"_",
|
|
21656
21656
|
"var",
|
|
21657
21657
|
"let",
|
|
@@ -21744,7 +21744,7 @@ var rb = Ol([
|
|
|
21744
21744
|
"__FILE__",
|
|
21745
21745
|
"__FUNCTION__",
|
|
21746
21746
|
"__LINE__"
|
|
21747
|
-
]), nb =
|
|
21747
|
+
]), nb = pl(["var", "let", "actor", "class", "enum", "extension", "import", "protocol", "struct", "func", "typealias", "associatedtype", "for"]), ob = pl(["true", "false", "nil", "self", "super", "_"]), ib = pl([
|
|
21748
21748
|
"Array",
|
|
21749
21749
|
"Bool",
|
|
21750
21750
|
"Character",
|
|
@@ -21774,7 +21774,7 @@ function Cp(r, e, t) {
|
|
|
21774
21774
|
if (r.match("//"))
|
|
21775
21775
|
return r.skipToEnd(), "comment";
|
|
21776
21776
|
if (r.match("/*"))
|
|
21777
|
-
return e.tokenize.push(
|
|
21777
|
+
return e.tokenize.push(x1), x1(r, e);
|
|
21778
21778
|
}
|
|
21779
21779
|
if (r.match(Ob))
|
|
21780
21780
|
return "builtin";
|
|
@@ -21828,10 +21828,10 @@ function mb(r, e, t) {
|
|
|
21828
21828
|
}
|
|
21829
21829
|
return n && t.tokenize.pop(), "string";
|
|
21830
21830
|
}
|
|
21831
|
-
function
|
|
21831
|
+
function x1(r, e) {
|
|
21832
21832
|
for (var t; t = r.next(); )
|
|
21833
21833
|
if (t === "/" && r.eat("*"))
|
|
21834
|
-
e.tokenize.push(
|
|
21834
|
+
e.tokenize.push(x1);
|
|
21835
21835
|
else if (t === "*" && r.eat("/")) {
|
|
21836
21836
|
e.tokenize.pop();
|
|
21837
21837
|
break;
|
|
@@ -21906,7 +21906,7 @@ var Zp = (r) => {
|
|
|
21906
21906
|
});
|
|
21907
21907
|
var l = ae.theme(o, {
|
|
21908
21908
|
dark: e === "dark"
|
|
21909
|
-
}), a =
|
|
21909
|
+
}), a = il.define(n), c = [l, c8(a)];
|
|
21910
21910
|
return c;
|
|
21911
21911
|
};
|
|
21912
21912
|
const qh = Zp({
|
|
@@ -22079,7 +22079,7 @@ const qh = Zp({
|
|
|
22079
22079
|
color: "var(--theme-color-3, var(--default-theme-color-3))"
|
|
22080
22080
|
}
|
|
22081
22081
|
]
|
|
22082
|
-
}),
|
|
22082
|
+
}), Oa = Y(!1), yb = (r) => {
|
|
22083
22083
|
const { extensions: e, content: t, forceDarkMode: n, forceLightMode: o, withoutTheme: i } = r, s = Y(t ?? ""), l = Y(null), a = Y(null);
|
|
22084
22084
|
Be(l, () => {
|
|
22085
22085
|
d(), c(e);
|
|
@@ -22092,21 +22092,31 @@ const qh = Zp({
|
|
|
22092
22092
|
};
|
|
22093
22093
|
t && (b.doc = t), a.value = new ae(b);
|
|
22094
22094
|
}
|
|
22095
|
-
}, u = () => i ? null : n ? Mh : o ? qh :
|
|
22096
|
-
|
|
22097
|
-
|
|
22098
|
-
|
|
22099
|
-
|
|
22095
|
+
}, u = () => i ? null : n ? Mh : o ? qh : Oa.value ? Mh : qh, h = (v = []) => {
|
|
22096
|
+
const b = {
|
|
22097
|
+
key: "Mod-a",
|
|
22098
|
+
run: ($) => ($.dispatch({
|
|
22099
|
+
selection: { anchor: 0, head: $.state.doc.length },
|
|
22100
|
+
scrollIntoView: !1
|
|
22101
|
+
}), !0)
|
|
22102
|
+
};
|
|
22103
|
+
return [...[
|
|
22104
|
+
ae.theme(
|
|
22105
|
+
{
|
|
22106
|
+
".cm-line": {
|
|
22107
|
+
lineHeight: "20px"
|
|
22108
|
+
},
|
|
22109
|
+
".cm-gutterElement": {
|
|
22110
|
+
lineHeight: "20px"
|
|
22111
|
+
}
|
|
22100
22112
|
},
|
|
22101
|
-
|
|
22102
|
-
|
|
22103
|
-
|
|
22104
|
-
|
|
22105
|
-
|
|
22106
|
-
|
|
22107
|
-
|
|
22108
|
-
].filter((Q) => Q !== null), v];
|
|
22109
|
-
Be(fa, () => {
|
|
22113
|
+
{ dark: n ? !1 : Oa.value }
|
|
22114
|
+
),
|
|
22115
|
+
ol.of([b]),
|
|
22116
|
+
u()
|
|
22117
|
+
].filter(($) => $ !== null), v];
|
|
22118
|
+
};
|
|
22119
|
+
Be(Oa, () => {
|
|
22110
22120
|
const { extensions: v } = r;
|
|
22111
22121
|
n || O(v);
|
|
22112
22122
|
});
|
|
@@ -22235,7 +22245,7 @@ const qh = Zp({
|
|
|
22235
22245
|
}), n.readOnly && h.push(ae.editable.of(!1)), n.languages && n.languages.filter((d) => typeof o[d] < "u").forEach((d) => {
|
|
22236
22246
|
h.push(o[d]);
|
|
22237
22247
|
}), n.lineNumbers && h.push(n8()), n.withVariables && h.push(kb()), n.disableEnter && h.push(
|
|
22238
|
-
|
|
22248
|
+
ol.of([
|
|
22239
22249
|
{
|
|
22240
22250
|
key: "Enter",
|
|
22241
22251
|
run: () => !0
|
|
@@ -22349,7 +22359,7 @@ const ce = (r, e) => {
|
|
|
22349
22359
|
this.open = !1;
|
|
22350
22360
|
}
|
|
22351
22361
|
});
|
|
22352
|
-
var Ap = "en", F0 = {},
|
|
22362
|
+
var Ap = "en", F0 = {}, Q1 = {};
|
|
22353
22363
|
function qp() {
|
|
22354
22364
|
return Ap;
|
|
22355
22365
|
}
|
|
@@ -22362,13 +22372,13 @@ function $b(r) {
|
|
|
22362
22372
|
function Pb(r) {
|
|
22363
22373
|
if (!r)
|
|
22364
22374
|
throw new Error("No locale data passed");
|
|
22365
|
-
F0[r.locale] = r,
|
|
22375
|
+
F0[r.locale] = r, Q1[r.locale.toLowerCase()] = r.locale;
|
|
22366
22376
|
}
|
|
22367
22377
|
function Uh(r) {
|
|
22368
22378
|
if (F0[r])
|
|
22369
22379
|
return r;
|
|
22370
|
-
if (
|
|
22371
|
-
return
|
|
22380
|
+
if (Q1[r.toLowerCase()])
|
|
22381
|
+
return Q1[r.toLowerCase()];
|
|
22372
22382
|
}
|
|
22373
22383
|
function Mp(r) {
|
|
22374
22384
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = e.localeMatcher || "lookup";
|
|
@@ -22637,7 +22647,7 @@ function Yh(r, e) {
|
|
|
22637
22647
|
function Xb(r, e, t) {
|
|
22638
22648
|
return e && Yh(r.prototype, e), t && Yh(r, t), Object.defineProperty(r, "prototype", { writable: !1 }), r;
|
|
22639
22649
|
}
|
|
22640
|
-
var
|
|
22650
|
+
var _1 = /* @__PURE__ */ function() {
|
|
22641
22651
|
function r(e, t) {
|
|
22642
22652
|
Zb(this, r);
|
|
22643
22653
|
var n = r.supportedLocalesOf(e);
|
|
@@ -22661,13 +22671,13 @@ var Q1 = /* @__PURE__ */ function() {
|
|
|
22661
22671
|
}
|
|
22662
22672
|
}]), r;
|
|
22663
22673
|
}();
|
|
22664
|
-
function
|
|
22674
|
+
function $1(r) {
|
|
22665
22675
|
"@babel/helpers - typeof";
|
|
22666
|
-
return
|
|
22676
|
+
return $1 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
22667
22677
|
return typeof e;
|
|
22668
22678
|
} : function(e) {
|
|
22669
22679
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
22670
|
-
},
|
|
22680
|
+
}, $1(r);
|
|
22671
22681
|
}
|
|
22672
22682
|
function Lh(r, e) {
|
|
22673
22683
|
var t = Object.keys(r);
|
|
@@ -22778,7 +22788,7 @@ var jb = ["second", "minute", "hour", "day", "week", "month", "quarter", "year"]
|
|
|
22778
22788
|
localeMatcher: this.localeMatcher
|
|
22779
22789
|
})[0], !this.locale)
|
|
22780
22790
|
throw new Error("No supported locale was found");
|
|
22781
|
-
|
|
22791
|
+
_1.supportedLocalesOf(this.locale).length > 0 ? this.pluralRules = new _1(this.locale) : console.warn('"'.concat(this.locale, '" locale is not supported')), typeof Intl < "u" && Intl.NumberFormat ? (this.numberFormat = new Intl.NumberFormat(this.locale), this.numberingSystem = this.numberFormat.resolvedOptions().numberingSystem) : this.numberingSystem = "latn", this.locale = Mp(this.locale, {
|
|
22782
22792
|
localeMatcher: this.localeMatcher
|
|
22783
22793
|
});
|
|
22784
22794
|
}
|
|
@@ -22922,15 +22932,15 @@ Fr.supportedLocalesOf = function(r) {
|
|
|
22922
22932
|
Fr.addLocale = Pb;
|
|
22923
22933
|
Fr.setDefaultLocale = _b;
|
|
22924
22934
|
Fr.getDefaultLocale = qp;
|
|
22925
|
-
Fr.PluralRules =
|
|
22926
|
-
var
|
|
22935
|
+
Fr.PluralRules = _1;
|
|
22936
|
+
var pa = 'Invalid "unit" argument';
|
|
22927
22937
|
function zb(r) {
|
|
22928
|
-
if (
|
|
22929
|
-
throw new TypeError(
|
|
22938
|
+
if ($1(r) === "symbol")
|
|
22939
|
+
throw new TypeError(pa);
|
|
22930
22940
|
if (typeof r != "string")
|
|
22931
|
-
throw new RangeError("".concat(
|
|
22941
|
+
throw new RangeError("".concat(pa, ": ").concat(r));
|
|
22932
22942
|
if (r[r.length - 1] === "s" && (r = r.slice(0, r.length - 1)), jb.indexOf(r) < 0)
|
|
22933
|
-
throw new RangeError("".concat(
|
|
22943
|
+
throw new RangeError("".concat(pa, ": ").concat(r));
|
|
22934
22944
|
return r;
|
|
22935
22945
|
}
|
|
22936
22946
|
var Bb = 'Invalid "number" argument';
|
|
@@ -23001,13 +23011,13 @@ var Fh = /* @__PURE__ */ function() {
|
|
|
23001
23011
|
}
|
|
23002
23012
|
}]), r;
|
|
23003
23013
|
}();
|
|
23004
|
-
function
|
|
23014
|
+
function P1(r) {
|
|
23005
23015
|
"@babel/helpers - typeof";
|
|
23006
|
-
return
|
|
23016
|
+
return P1 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
23007
23017
|
return typeof e;
|
|
23008
23018
|
} : function(e) {
|
|
23009
23019
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
23010
|
-
},
|
|
23020
|
+
}, P1(r);
|
|
23011
23021
|
}
|
|
23012
23022
|
function Db(r, e) {
|
|
23013
23023
|
var t = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -23052,16 +23062,16 @@ function Jb(r, e) {
|
|
|
23052
23062
|
throw new Error("No locale data has been registered for any of the locales: ".concat(r.join(", ")));
|
|
23053
23063
|
}
|
|
23054
23064
|
function eS() {
|
|
23055
|
-
var r = (typeof Intl > "u" ? "undefined" :
|
|
23065
|
+
var r = (typeof Intl > "u" ? "undefined" : P1(Intl)) === "object";
|
|
23056
23066
|
return r && typeof Intl.DateTimeFormat == "function";
|
|
23057
23067
|
}
|
|
23058
|
-
function
|
|
23068
|
+
function T1(r) {
|
|
23059
23069
|
"@babel/helpers - typeof";
|
|
23060
|
-
return
|
|
23070
|
+
return T1 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
23061
23071
|
return typeof e;
|
|
23062
23072
|
} : function(e) {
|
|
23063
23073
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
23064
|
-
},
|
|
23074
|
+
}, T1(r);
|
|
23065
23075
|
}
|
|
23066
23076
|
function tS(r) {
|
|
23067
23077
|
return nS(r) && (Array.isArray(r.steps) || // `gradation` property is deprecated: it has been renamed to `steps`.
|
|
@@ -23072,9 +23082,9 @@ function tS(r) {
|
|
|
23072
23082
|
}
|
|
23073
23083
|
var rS = {}.constructor;
|
|
23074
23084
|
function nS(r) {
|
|
23075
|
-
return
|
|
23085
|
+
return T1(r) !== void 0 && r !== null && r.constructor === rS;
|
|
23076
23086
|
}
|
|
23077
|
-
var gr = 60, Ws = 60 * gr, bn = 24 * Ws,
|
|
23087
|
+
var gr = 60, Ws = 60 * gr, bn = 24 * Ws, C1 = 7 * bn, Z1 = 30.44 * bn, Ep = 146097 / 400 * bn;
|
|
23078
23088
|
function Fn(r) {
|
|
23079
23089
|
switch (r) {
|
|
23080
23090
|
case "second":
|
|
@@ -23086,9 +23096,9 @@ function Fn(r) {
|
|
|
23086
23096
|
case "day":
|
|
23087
23097
|
return bn;
|
|
23088
23098
|
case "week":
|
|
23089
|
-
return T1;
|
|
23090
|
-
case "month":
|
|
23091
23099
|
return C1;
|
|
23100
|
+
case "month":
|
|
23101
|
+
return Z1;
|
|
23092
23102
|
case "year":
|
|
23093
23103
|
return Ep;
|
|
23094
23104
|
}
|
|
@@ -23112,17 +23122,17 @@ function D0(r) {
|
|
|
23112
23122
|
return 0.5;
|
|
23113
23123
|
}
|
|
23114
23124
|
}
|
|
23115
|
-
function
|
|
23125
|
+
function X1(r) {
|
|
23116
23126
|
"@babel/helpers - typeof";
|
|
23117
|
-
return
|
|
23127
|
+
return X1 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
23118
23128
|
return typeof e;
|
|
23119
23129
|
} : function(e) {
|
|
23120
23130
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
23121
|
-
},
|
|
23131
|
+
}, X1(r);
|
|
23122
23132
|
}
|
|
23123
23133
|
function Vp(r, e) {
|
|
23124
23134
|
var t = e.prevStep, n = e.timestamp, o = e.now, i = e.future, s = e.round, l;
|
|
23125
|
-
return t && (t.id || t.unit) && (l = r["threshold_for_".concat(t.id || t.unit)]), l === void 0 && r.threshold !== void 0 && (l = r.threshold, typeof l == "function" && (l = l(o, i))), l === void 0 && (l = r.minTime),
|
|
23135
|
+
return t && (t.id || t.unit) && (l = r["threshold_for_".concat(t.id || t.unit)]), l === void 0 && r.threshold !== void 0 && (l = r.threshold, typeof l == "function" && (l = l(o, i))), l === void 0 && (l = r.minTime), X1(l) === "object" && (t && t.id && l[t.id] !== void 0 ? l = l[t.id] : l = l.default), typeof l == "function" && (l = l(n, {
|
|
23126
23136
|
future: i,
|
|
23127
23137
|
getMinTimeForUnit: function(c, u) {
|
|
23128
23138
|
return Kh(c, u || t && t.formatAs, {
|
|
@@ -23305,7 +23315,7 @@ const gS = [{
|
|
|
23305
23315
|
formatAs: "month"
|
|
23306
23316
|
}, {
|
|
23307
23317
|
formatAs: "year"
|
|
23308
|
-
}],
|
|
23318
|
+
}], R1 = {
|
|
23309
23319
|
steps: gS,
|
|
23310
23320
|
labels: "long"
|
|
23311
23321
|
};
|
|
@@ -23333,9 +23343,9 @@ function td(r) {
|
|
|
23333
23343
|
function mS(r, e, t) {
|
|
23334
23344
|
return e in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
|
|
23335
23345
|
}
|
|
23336
|
-
const
|
|
23346
|
+
const A1 = td(td({}, R1), {}, {
|
|
23337
23347
|
// Skip "seconds".
|
|
23338
|
-
steps:
|
|
23348
|
+
steps: R1.steps.filter(function(r) {
|
|
23339
23349
|
return r.formatAs !== "second";
|
|
23340
23350
|
})
|
|
23341
23351
|
}), zp = [{
|
|
@@ -23409,20 +23419,20 @@ const R1 = td(td({}, X1), {}, {
|
|
|
23409
23419
|
threshold: 5.5 * bn,
|
|
23410
23420
|
// Return the amount of minutes by dividing the amount
|
|
23411
23421
|
// of seconds by the amount of seconds in a week.
|
|
23412
|
-
factor:
|
|
23422
|
+
factor: C1,
|
|
23413
23423
|
// "week" labels are used for formatting the output.
|
|
23414
23424
|
unit: "week"
|
|
23415
23425
|
}, {
|
|
23416
23426
|
// This step is effective starting from 3.5 weeks.
|
|
23417
|
-
threshold: 3.5 *
|
|
23427
|
+
threshold: 3.5 * C1,
|
|
23418
23428
|
// Return the amount of minutes by dividing the amount
|
|
23419
23429
|
// of seconds by the amount of seconds in a month.
|
|
23420
|
-
factor:
|
|
23430
|
+
factor: Z1,
|
|
23421
23431
|
// "month" labels are used for formatting the output.
|
|
23422
23432
|
unit: "month"
|
|
23423
23433
|
}, {
|
|
23424
23434
|
// This step is effective starting from 10.5 months.
|
|
23425
|
-
threshold: 10.5 *
|
|
23435
|
+
threshold: 10.5 * Z1,
|
|
23426
23436
|
// Return the amount of minutes by dividing the amount
|
|
23427
23437
|
// of seconds by the amount of seconds in a year.
|
|
23428
23438
|
factor: Ep,
|
|
@@ -23440,7 +23450,7 @@ const R1 = td(td({}, X1), {}, {
|
|
|
23440
23450
|
function Bp(r) {
|
|
23441
23451
|
return r instanceof Date ? r : new Date(r);
|
|
23442
23452
|
}
|
|
23443
|
-
var
|
|
23453
|
+
var q1 = [{
|
|
23444
23454
|
formatAs: "second"
|
|
23445
23455
|
}, {
|
|
23446
23456
|
formatAs: "minute"
|
|
@@ -23477,7 +23487,7 @@ var A1 = [{
|
|
|
23477
23487
|
})), ir[t].dayMonthYear.format(Bp(e));
|
|
23478
23488
|
}
|
|
23479
23489
|
};
|
|
23480
|
-
eS() ?
|
|
23490
|
+
eS() ? q1.push(wS, bS) : q1.push({
|
|
23481
23491
|
formatAs: "day"
|
|
23482
23492
|
}, {
|
|
23483
23493
|
formatAs: "week"
|
|
@@ -23487,7 +23497,7 @@ eS() ? A1.push(wS, bS) : A1.push({
|
|
|
23487
23497
|
formatAs: "year"
|
|
23488
23498
|
});
|
|
23489
23499
|
const _n = {
|
|
23490
|
-
steps:
|
|
23500
|
+
steps: q1,
|
|
23491
23501
|
labels: [
|
|
23492
23502
|
// "mini" labels are only defined for a few languages.
|
|
23493
23503
|
"mini",
|
|
@@ -23559,7 +23569,7 @@ function sd(r) {
|
|
|
23559
23569
|
function kS(r, e, t) {
|
|
23560
23570
|
return e in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
|
|
23561
23571
|
}
|
|
23562
|
-
const
|
|
23572
|
+
const M1 = sd(sd({}, _n), {}, {
|
|
23563
23573
|
// Skip "seconds".
|
|
23564
23574
|
steps: _n.steps.filter(function(r) {
|
|
23565
23575
|
return r.formatAs !== "second";
|
|
@@ -23589,11 +23599,11 @@ function ad(r) {
|
|
|
23589
23599
|
function xS(r, e, t) {
|
|
23590
23600
|
return e in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
|
|
23591
23601
|
}
|
|
23592
|
-
const QS = ad(ad({},
|
|
23602
|
+
const QS = ad(ad({}, M1), {}, {
|
|
23593
23603
|
// Add "now".
|
|
23594
23604
|
steps: [{
|
|
23595
23605
|
formatAs: "now"
|
|
23596
|
-
}].concat(
|
|
23606
|
+
}].concat(M1.steps)
|
|
23597
23607
|
});
|
|
23598
23608
|
function cd(r, e) {
|
|
23599
23609
|
var t = Object.keys(r);
|
|
@@ -23713,7 +23723,7 @@ function fd(r) {
|
|
|
23713
23723
|
function CS(r, e, t) {
|
|
23714
23724
|
return e in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
|
|
23715
23725
|
}
|
|
23716
|
-
const
|
|
23726
|
+
const E1 = fd(fd({}, ai), {}, {
|
|
23717
23727
|
// Skip "seconds".
|
|
23718
23728
|
steps: ai.steps.filter(function(r) {
|
|
23719
23729
|
return r.formatAs !== "second";
|
|
@@ -23743,19 +23753,19 @@ function pd(r) {
|
|
|
23743
23753
|
function ZS(r, e, t) {
|
|
23744
23754
|
return e in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
|
|
23745
23755
|
}
|
|
23746
|
-
const XS = pd(pd({},
|
|
23756
|
+
const XS = pd(pd({}, E1), {}, {
|
|
23747
23757
|
// Add "now".
|
|
23748
23758
|
steps: [{
|
|
23749
23759
|
formatAs: "now"
|
|
23750
|
-
}].concat(
|
|
23760
|
+
}].concat(E1.steps)
|
|
23751
23761
|
});
|
|
23752
23762
|
function RS(r) {
|
|
23753
23763
|
switch (r) {
|
|
23754
23764
|
case "default":
|
|
23755
23765
|
case "round":
|
|
23756
|
-
return X1;
|
|
23757
|
-
case "round-minute":
|
|
23758
23766
|
return R1;
|
|
23767
|
+
case "round-minute":
|
|
23768
|
+
return A1;
|
|
23759
23769
|
case "approximate":
|
|
23760
23770
|
return rd;
|
|
23761
23771
|
case "time":
|
|
@@ -23766,7 +23776,7 @@ function RS(r) {
|
|
|
23766
23776
|
case "mini-now":
|
|
23767
23777
|
return TS;
|
|
23768
23778
|
case "mini-minute":
|
|
23769
|
-
return
|
|
23779
|
+
return E1;
|
|
23770
23780
|
case "mini-minute-now":
|
|
23771
23781
|
return XS;
|
|
23772
23782
|
case "twitter":
|
|
@@ -23774,7 +23784,7 @@ function RS(r) {
|
|
|
23774
23784
|
case "twitter-now":
|
|
23775
23785
|
return yS;
|
|
23776
23786
|
case "twitter-minute":
|
|
23777
|
-
return
|
|
23787
|
+
return M1;
|
|
23778
23788
|
case "twitter-minute-now":
|
|
23779
23789
|
return QS;
|
|
23780
23790
|
case "twitter-first-minute":
|
|
@@ -23874,7 +23884,7 @@ var Ct = /* @__PURE__ */ function() {
|
|
|
23874
23884
|
return jS(r, [{
|
|
23875
23885
|
key: "format",
|
|
23876
23886
|
value: function(t, n, o) {
|
|
23877
|
-
o || (n && !BS(n) ? (o = n, n = void 0) : o = {}), n || (n =
|
|
23887
|
+
o || (n && !BS(n) ? (o = n, n = void 0) : o = {}), n || (n = A1), typeof n == "string" && (n = RS(n));
|
|
23878
23888
|
var i = WS(t), s = this.getLabels(n.flavour || n.labels), l = s.labels, a = s.labelsType, c;
|
|
23879
23889
|
n.now !== void 0 && (c = n.now), c === void 0 && o.now !== void 0 && (c = o.now), c === void 0 && (c = Date.now());
|
|
23880
23890
|
var u = (c - i) / 1e3, h = o.future || u < 0, d = zS(l, Wn(this.locale).now, Wn(this.locale).long, h);
|
|
@@ -23899,7 +23909,7 @@ var Ct = /* @__PURE__ */ function() {
|
|
|
23899
23909
|
// "gradation" is a legacy name for "steps".
|
|
23900
23910
|
// For historical reasons, "approximate" steps are used by default.
|
|
23901
23911
|
// In the next major version, there'll be no default for `steps`.
|
|
23902
|
-
n.gradation || n.steps ||
|
|
23912
|
+
n.gradation || n.steps || A1.steps,
|
|
23903
23913
|
u,
|
|
23904
23914
|
{
|
|
23905
23915
|
now: c,
|
|
@@ -24400,7 +24410,7 @@ const Np = {
|
|
|
24400
24410
|
const t = r.endsWith("/") ? r : `${r}/`, n = e.startsWith("/") ? e.slice(1) : e;
|
|
24401
24411
|
return [t, n].join("");
|
|
24402
24412
|
};
|
|
24403
|
-
function
|
|
24413
|
+
function ga(r) {
|
|
24404
24414
|
const e = [];
|
|
24405
24415
|
return r.forEach((t) => {
|
|
24406
24416
|
const n = {
|
|
@@ -24417,14 +24427,14 @@ function Gp(r, e, t) {
|
|
|
24417
24427
|
name: r.name,
|
|
24418
24428
|
type: r.httpVerb,
|
|
24419
24429
|
path: r.path,
|
|
24420
|
-
parameters:
|
|
24421
|
-
query:
|
|
24422
|
-
headers:
|
|
24430
|
+
parameters: ga(e.path),
|
|
24431
|
+
query: ga(e.query),
|
|
24432
|
+
headers: ga(e.header),
|
|
24423
24433
|
url: t.url,
|
|
24424
24434
|
body: ""
|
|
24425
24435
|
};
|
|
24426
24436
|
}
|
|
24427
|
-
function
|
|
24437
|
+
function ma(r, e, t) {
|
|
24428
24438
|
const n = {};
|
|
24429
24439
|
return r.forEach((o) => {
|
|
24430
24440
|
n[o[e]] = o[t];
|
|
@@ -24501,10 +24511,10 @@ function Dp(r, e) {
|
|
|
24501
24511
|
return r.apply(e, arguments);
|
|
24502
24512
|
};
|
|
24503
24513
|
}
|
|
24504
|
-
const { toString: JS } = Object.prototype, { getPrototypeOf: K0 } = Object,
|
|
24514
|
+
const { toString: JS } = Object.prototype, { getPrototypeOf: K0 } = Object, gl = ((r) => (e) => {
|
|
24505
24515
|
const t = JS.call(e);
|
|
24506
24516
|
return r[t] || (r[t] = t.slice(8, -1).toLowerCase());
|
|
24507
|
-
})(/* @__PURE__ */ Object.create(null)), dr = (r) => (r = r.toLowerCase(), (e) =>
|
|
24517
|
+
})(/* @__PURE__ */ Object.create(null)), dr = (r) => (r = r.toLowerCase(), (e) => gl(e) === r), ml = (r) => (e) => typeof e === r, { isArray: go } = Array, ci = ml("undefined");
|
|
24508
24518
|
function ey(r) {
|
|
24509
24519
|
return r !== null && !ci(r) && r.constructor !== null && !ci(r.constructor) && Vt(r.constructor.isBuffer) && r.constructor.isBuffer(r);
|
|
24510
24520
|
}
|
|
@@ -24513,14 +24523,14 @@ function ty(r) {
|
|
|
24513
24523
|
let e;
|
|
24514
24524
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(r) : e = r && r.buffer && Kp(r.buffer), e;
|
|
24515
24525
|
}
|
|
24516
|
-
const ry =
|
|
24517
|
-
if (
|
|
24526
|
+
const ry = ml("string"), Vt = ml("function"), Jp = ml("number"), vl = (r) => r !== null && typeof r == "object", ny = (r) => r === !0 || r === !1, ds = (r) => {
|
|
24527
|
+
if (gl(r) !== "object")
|
|
24518
24528
|
return !1;
|
|
24519
24529
|
const e = K0(r);
|
|
24520
24530
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in r) && !(Symbol.iterator in r);
|
|
24521
|
-
}, oy = dr("Date"), iy = dr("File"), sy = dr("Blob"), ly = dr("FileList"), ay = (r) =>
|
|
24531
|
+
}, oy = dr("Date"), iy = dr("File"), sy = dr("Blob"), ly = dr("FileList"), ay = (r) => vl(r) && Vt(r.pipe), cy = (r) => {
|
|
24522
24532
|
let e;
|
|
24523
|
-
return r && (typeof FormData == "function" && r instanceof FormData || Vt(r.append) && ((e =
|
|
24533
|
+
return r && (typeof FormData == "function" && r instanceof FormData || Vt(r.append) && ((e = gl(r)) === "formdata" || // detect form-data instance
|
|
24524
24534
|
e === "object" && Vt(r.toString) && r.toString() === "[object FormData]"));
|
|
24525
24535
|
}, uy = dr("URLSearchParams"), hy = (r) => r.trim ? r.trim() : r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
24526
24536
|
function Qi(r, e, { allOwnKeys: t = !1 } = {}) {
|
|
@@ -24547,10 +24557,10 @@ function e5(r, e) {
|
|
|
24547
24557
|
return null;
|
|
24548
24558
|
}
|
|
24549
24559
|
const t5 = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : zn.global)(), r5 = (r) => !ci(r) && r !== t5;
|
|
24550
|
-
function
|
|
24560
|
+
function U1() {
|
|
24551
24561
|
const { caseless: r } = r5(this) && this || {}, e = {}, t = (n, o) => {
|
|
24552
24562
|
const i = r && e5(e, o) || o;
|
|
24553
|
-
ds(e[i]) && ds(n) ? e[i] =
|
|
24563
|
+
ds(e[i]) && ds(n) ? e[i] = U1(e[i], n) : ds(n) ? e[i] = U1({}, n) : go(n) ? e[i] = n.slice() : e[i] = n;
|
|
24554
24564
|
};
|
|
24555
24565
|
for (let n = 0, o = arguments.length; n < o; n++)
|
|
24556
24566
|
arguments[n] && Qi(arguments[n], t);
|
|
@@ -24636,10 +24646,10 @@ const dy = (r, e, t, { allOwnKeys: n } = {}) => (Qi(e, (o, i) => {
|
|
|
24636
24646
|
};
|
|
24637
24647
|
return go(r) ? n(r) : n(String(r).split(e)), t;
|
|
24638
24648
|
}, _y = () => {
|
|
24639
|
-
}, $y = (r, e) => (r = +r, Number.isFinite(r) ? r : e),
|
|
24649
|
+
}, $y = (r, e) => (r = +r, Number.isFinite(r) ? r : e), va = "abcdefghijklmnopqrstuvwxyz", bd = "0123456789", o5 = {
|
|
24640
24650
|
DIGIT: bd,
|
|
24641
|
-
ALPHA:
|
|
24642
|
-
ALPHA_DIGIT:
|
|
24651
|
+
ALPHA: va,
|
|
24652
|
+
ALPHA_DIGIT: va + va.toUpperCase() + bd
|
|
24643
24653
|
}, Py = (r = 16, e = o5.ALPHA_DIGIT) => {
|
|
24644
24654
|
let t = "";
|
|
24645
24655
|
const { length: n } = e;
|
|
@@ -24652,7 +24662,7 @@ function Ty(r) {
|
|
|
24652
24662
|
}
|
|
24653
24663
|
const Cy = (r) => {
|
|
24654
24664
|
const e = new Array(10), t = (n, o) => {
|
|
24655
|
-
if (
|
|
24665
|
+
if (vl(n)) {
|
|
24656
24666
|
if (e.indexOf(n) >= 0)
|
|
24657
24667
|
return;
|
|
24658
24668
|
if (!("toJSON" in n)) {
|
|
@@ -24667,7 +24677,7 @@ const Cy = (r) => {
|
|
|
24667
24677
|
return n;
|
|
24668
24678
|
};
|
|
24669
24679
|
return t(r, 0);
|
|
24670
|
-
}, Zy = dr("AsyncFunction"), Xy = (r) => r && (
|
|
24680
|
+
}, Zy = dr("AsyncFunction"), Xy = (r) => r && (vl(r) || Vt(r)) && Vt(r.then) && Vt(r.catch), M = {
|
|
24671
24681
|
isArray: go,
|
|
24672
24682
|
isArrayBuffer: Kp,
|
|
24673
24683
|
isBuffer: ey,
|
|
@@ -24676,7 +24686,7 @@ const Cy = (r) => {
|
|
|
24676
24686
|
isString: ry,
|
|
24677
24687
|
isNumber: Jp,
|
|
24678
24688
|
isBoolean: ny,
|
|
24679
|
-
isObject:
|
|
24689
|
+
isObject: vl,
|
|
24680
24690
|
isPlainObject: ds,
|
|
24681
24691
|
isUndefined: ci,
|
|
24682
24692
|
isDate: oy,
|
|
@@ -24689,13 +24699,13 @@ const Cy = (r) => {
|
|
|
24689
24699
|
isTypedArray: vy,
|
|
24690
24700
|
isFileList: ly,
|
|
24691
24701
|
forEach: Qi,
|
|
24692
|
-
merge:
|
|
24702
|
+
merge: U1,
|
|
24693
24703
|
extend: dy,
|
|
24694
24704
|
trim: hy,
|
|
24695
24705
|
stripBOM: fy,
|
|
24696
24706
|
inherits: Oy,
|
|
24697
24707
|
toFlatObject: py,
|
|
24698
|
-
kindOf:
|
|
24708
|
+
kindOf: gl,
|
|
24699
24709
|
kindOfTest: dr,
|
|
24700
24710
|
endsWith: gy,
|
|
24701
24711
|
toArray: my,
|
|
@@ -24772,7 +24782,7 @@ pe.from = (r, e, t, n, o, i) => {
|
|
|
24772
24782
|
}, (l) => l !== "isAxiosError"), pe.call(s, r.message, e, t, n, o), s.cause = r, s.name = r.name, i && Object.assign(s, i), s;
|
|
24773
24783
|
};
|
|
24774
24784
|
const Ry = null;
|
|
24775
|
-
function
|
|
24785
|
+
function V1(r) {
|
|
24776
24786
|
return M.isPlainObject(r) || M.isArray(r);
|
|
24777
24787
|
}
|
|
24778
24788
|
function l5(r) {
|
|
@@ -24784,12 +24794,12 @@ function Sd(r, e, t) {
|
|
|
24784
24794
|
}).join(t ? "." : "") : e;
|
|
24785
24795
|
}
|
|
24786
24796
|
function Ay(r) {
|
|
24787
|
-
return M.isArray(r) && !r.some(
|
|
24797
|
+
return M.isArray(r) && !r.some(V1);
|
|
24788
24798
|
}
|
|
24789
24799
|
const qy = M.toFlatObject(M, {}, null, function(e) {
|
|
24790
24800
|
return /^is[A-Z]/.test(e);
|
|
24791
24801
|
});
|
|
24792
|
-
function
|
|
24802
|
+
function wl(r, e, t) {
|
|
24793
24803
|
if (!M.isObject(r))
|
|
24794
24804
|
throw new TypeError("target must be an object");
|
|
24795
24805
|
e = e || new FormData(), t = M.toFlatObject(t, {
|
|
@@ -24825,12 +24835,12 @@ function vl(r, e, t) {
|
|
|
24825
24835
|
);
|
|
24826
24836
|
}), !1;
|
|
24827
24837
|
}
|
|
24828
|
-
return
|
|
24838
|
+
return V1(O) ? !0 : (e.append(Sd(v, m, i), c(O)), !1);
|
|
24829
24839
|
}
|
|
24830
24840
|
const h = [], d = Object.assign(qy, {
|
|
24831
24841
|
defaultVisitor: u,
|
|
24832
24842
|
convertValue: c,
|
|
24833
|
-
isVisitable:
|
|
24843
|
+
isVisitable: V1
|
|
24834
24844
|
});
|
|
24835
24845
|
function f(O, m) {
|
|
24836
24846
|
if (!M.isUndefined(O)) {
|
|
@@ -24866,7 +24876,7 @@ function yd(r) {
|
|
|
24866
24876
|
});
|
|
24867
24877
|
}
|
|
24868
24878
|
function J0(r, e) {
|
|
24869
|
-
this._pairs = [], r &&
|
|
24879
|
+
this._pairs = [], r && wl(r, this, e);
|
|
24870
24880
|
}
|
|
24871
24881
|
const a5 = J0.prototype;
|
|
24872
24882
|
a5.append = function(e, t) {
|
|
@@ -24968,7 +24978,7 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
|
|
|
24968
24978
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
24969
24979
|
};
|
|
24970
24980
|
function Ly(r, e) {
|
|
24971
|
-
return
|
|
24981
|
+
return wl(r, new Lt.classes.URLSearchParams(), Object.assign({
|
|
24972
24982
|
visitor: function(t, n, o, i) {
|
|
24973
24983
|
return Lt.isNode && M.isBuffer(t) ? (this.append(n, t.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
24974
24984
|
}
|
|
@@ -25029,7 +25039,7 @@ const ec = {
|
|
|
25029
25039
|
return Ly(e, this.formSerializer).toString();
|
|
25030
25040
|
if ((l = M.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
|
|
25031
25041
|
const a = this.env && this.env.FormData;
|
|
25032
|
-
return
|
|
25042
|
+
return wl(
|
|
25033
25043
|
l ? { "files[]": e } : e,
|
|
25034
25044
|
a && new a(),
|
|
25035
25045
|
this.formSerializer
|
|
@@ -25117,7 +25127,7 @@ function Gy(r) {
|
|
|
25117
25127
|
return e;
|
|
25118
25128
|
}
|
|
25119
25129
|
const Fy = (r) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());
|
|
25120
|
-
function
|
|
25130
|
+
function wa(r, e, t, n, o) {
|
|
25121
25131
|
if (M.isFunction(n))
|
|
25122
25132
|
return n.call(this, e, t);
|
|
25123
25133
|
if (o && (e = t), !!M.isString(e)) {
|
|
@@ -25141,7 +25151,7 @@ function Ky(r, e) {
|
|
|
25141
25151
|
});
|
|
25142
25152
|
});
|
|
25143
25153
|
}
|
|
25144
|
-
class
|
|
25154
|
+
class bl {
|
|
25145
25155
|
constructor(e) {
|
|
25146
25156
|
e && this.set(e);
|
|
25147
25157
|
}
|
|
@@ -25177,7 +25187,7 @@ class wl {
|
|
|
25177
25187
|
has(e, t) {
|
|
25178
25188
|
if (e = Co(e), e) {
|
|
25179
25189
|
const n = M.findKey(this, e);
|
|
25180
|
-
return !!(n && this[n] !== void 0 && (!t ||
|
|
25190
|
+
return !!(n && this[n] !== void 0 && (!t || wa(this, this[n], n, t)));
|
|
25181
25191
|
}
|
|
25182
25192
|
return !1;
|
|
25183
25193
|
}
|
|
@@ -25187,7 +25197,7 @@ class wl {
|
|
|
25187
25197
|
function i(s) {
|
|
25188
25198
|
if (s = Co(s), s) {
|
|
25189
25199
|
const l = M.findKey(n, s);
|
|
25190
|
-
l && (!t ||
|
|
25200
|
+
l && (!t || wa(n, n[l], l, t)) && (delete n[l], o = !0);
|
|
25191
25201
|
}
|
|
25192
25202
|
}
|
|
25193
25203
|
return M.isArray(e) ? e.forEach(i) : i(e), o;
|
|
@@ -25197,7 +25207,7 @@ class wl {
|
|
|
25197
25207
|
let n = t.length, o = !1;
|
|
25198
25208
|
for (; n--; ) {
|
|
25199
25209
|
const i = t[n];
|
|
25200
|
-
(!e ||
|
|
25210
|
+
(!e || wa(this, this[i], i, e, !0)) && (delete this[i], o = !0);
|
|
25201
25211
|
}
|
|
25202
25212
|
return o;
|
|
25203
25213
|
}
|
|
@@ -25250,8 +25260,8 @@ class wl {
|
|
|
25250
25260
|
return M.isArray(e) ? e.forEach(i) : i(e), this;
|
|
25251
25261
|
}
|
|
25252
25262
|
}
|
|
25253
|
-
|
|
25254
|
-
M.reduceDescriptors(
|
|
25263
|
+
bl.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
25264
|
+
M.reduceDescriptors(bl.prototype, ({ value: r }, e) => {
|
|
25255
25265
|
let t = e[0].toUpperCase() + e.slice(1);
|
|
25256
25266
|
return {
|
|
25257
25267
|
get: () => r,
|
|
@@ -25260,9 +25270,9 @@ M.reduceDescriptors(wl.prototype, ({ value: r }, e) => {
|
|
|
25260
25270
|
}
|
|
25261
25271
|
};
|
|
25262
25272
|
});
|
|
25263
|
-
M.freezeMethods(
|
|
25264
|
-
const xr =
|
|
25265
|
-
function
|
|
25273
|
+
M.freezeMethods(bl);
|
|
25274
|
+
const xr = bl;
|
|
25275
|
+
function ba(r, e) {
|
|
25266
25276
|
const t = this || tc, n = e || t, o = xr.from(n.headers);
|
|
25267
25277
|
let i = n.data;
|
|
25268
25278
|
return M.forEach(r, function(l) {
|
|
@@ -25497,22 +25507,22 @@ const O5 = {
|
|
|
25497
25507
|
},
|
|
25498
25508
|
adapters: Os
|
|
25499
25509
|
};
|
|
25500
|
-
function
|
|
25510
|
+
function Sa(r) {
|
|
25501
25511
|
if (r.cancelToken && r.cancelToken.throwIfRequested(), r.signal && r.signal.aborted)
|
|
25502
25512
|
throw new _i(null, r);
|
|
25503
25513
|
}
|
|
25504
25514
|
function _d(r) {
|
|
25505
|
-
return
|
|
25515
|
+
return Sa(r), r.headers = xr.from(r.headers), r.data = ba.call(
|
|
25506
25516
|
r,
|
|
25507
25517
|
r.transformRequest
|
|
25508
25518
|
), ["post", "put", "patch"].indexOf(r.method) !== -1 && r.headers.setContentType("application/x-www-form-urlencoded", !1), O5.getAdapter(r.adapter || tc.adapter)(r).then(function(n) {
|
|
25509
|
-
return
|
|
25519
|
+
return Sa(r), n.data = ba.call(
|
|
25510
25520
|
r,
|
|
25511
25521
|
r.transformResponse,
|
|
25512
25522
|
n
|
|
25513
25523
|
), n.headers = xr.from(n.headers), n;
|
|
25514
25524
|
}, function(n) {
|
|
25515
|
-
return d5(n) || (
|
|
25525
|
+
return d5(n) || (Sa(r), n && n.response && (n.response.data = ba.call(
|
|
25516
25526
|
r,
|
|
25517
25527
|
r.transformResponse,
|
|
25518
25528
|
n.response
|
|
@@ -25627,10 +25637,10 @@ function ak(r, e, t) {
|
|
|
25627
25637
|
throw new pe("Unknown option " + i, pe.ERR_BAD_OPTION);
|
|
25628
25638
|
}
|
|
25629
25639
|
}
|
|
25630
|
-
const
|
|
25640
|
+
const j1 = {
|
|
25631
25641
|
assertOptions: ak,
|
|
25632
25642
|
validators: rc
|
|
25633
|
-
}, Ur =
|
|
25643
|
+
}, Ur = j1.validators;
|
|
25634
25644
|
class Ls {
|
|
25635
25645
|
constructor(e) {
|
|
25636
25646
|
this.defaults = e, this.interceptors = {
|
|
@@ -25649,13 +25659,13 @@ class Ls {
|
|
|
25649
25659
|
request(e, t) {
|
|
25650
25660
|
typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = lo(this.defaults, t);
|
|
25651
25661
|
const { transitional: n, paramsSerializer: o, headers: i } = t;
|
|
25652
|
-
n !== void 0 &&
|
|
25662
|
+
n !== void 0 && j1.assertOptions(n, {
|
|
25653
25663
|
silentJSONParsing: Ur.transitional(Ur.boolean),
|
|
25654
25664
|
forcedJSONParsing: Ur.transitional(Ur.boolean),
|
|
25655
25665
|
clarifyTimeoutError: Ur.transitional(Ur.boolean)
|
|
25656
25666
|
}, !1), o != null && (M.isFunction(o) ? t.paramsSerializer = {
|
|
25657
25667
|
serialize: o
|
|
25658
|
-
} :
|
|
25668
|
+
} : j1.assertOptions(o, {
|
|
25659
25669
|
encode: Ur.function,
|
|
25660
25670
|
serialize: Ur.function
|
|
25661
25671
|
}, !0)), t.method = (t.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -25813,7 +25823,7 @@ function uk(r) {
|
|
|
25813
25823
|
function hk(r) {
|
|
25814
25824
|
return M.isObject(r) && r.isAxiosError === !0;
|
|
25815
25825
|
}
|
|
25816
|
-
const
|
|
25826
|
+
const W1 = {
|
|
25817
25827
|
Continue: 100,
|
|
25818
25828
|
SwitchingProtocols: 101,
|
|
25819
25829
|
Processing: 102,
|
|
@@ -25878,10 +25888,10 @@ const j1 = {
|
|
|
25878
25888
|
NotExtended: 510,
|
|
25879
25889
|
NetworkAuthenticationRequired: 511
|
|
25880
25890
|
};
|
|
25881
|
-
Object.entries(
|
|
25882
|
-
|
|
25891
|
+
Object.entries(W1).forEach(([r, e]) => {
|
|
25892
|
+
W1[e] = r;
|
|
25883
25893
|
});
|
|
25884
|
-
const dk =
|
|
25894
|
+
const dk = W1;
|
|
25885
25895
|
function g5(r) {
|
|
25886
25896
|
const e = new ps(r), t = Dp(ps.prototype.request, e);
|
|
25887
25897
|
return M.extend(t, ps.prototype, e, { allOwnKeys: !0 }), M.extend(t, e, null, { allOwnKeys: !0 }), t.create = function(o) {
|
|
@@ -25894,7 +25904,7 @@ De.CanceledError = _i;
|
|
|
25894
25904
|
De.CancelToken = ck;
|
|
25895
25905
|
De.isCancel = d5;
|
|
25896
25906
|
De.VERSION = p5;
|
|
25897
|
-
De.toFormData =
|
|
25907
|
+
De.toFormData = wl;
|
|
25898
25908
|
De.AxiosError = pe;
|
|
25899
25909
|
De.Cancel = De.CanceledError;
|
|
25900
25910
|
De.all = function(e) {
|
|
@@ -25911,15 +25921,15 @@ De.default = De;
|
|
|
25911
25921
|
const fk = De;
|
|
25912
25922
|
let m5 = (r = 21) => crypto.getRandomValues(new Uint8Array(r)).reduce((e, t) => (t &= 63, t < 36 ? e += t.toString(36) : t < 62 ? e += (t - 26).toString(36).toUpperCase() : t > 62 ? e += "-" : e += "_", e), "");
|
|
25913
25923
|
async function Ok(r, e) {
|
|
25914
|
-
const t = NS(r.type), n =
|
|
25924
|
+
const t = NS(r.type), n = ma(
|
|
25915
25925
|
r.headers ?? [],
|
|
25916
25926
|
"name",
|
|
25917
25927
|
"value"
|
|
25918
25928
|
), o = GS(r.url), i = HS(r.path), s = IS(o, i), l = KS(
|
|
25919
25929
|
s,
|
|
25920
|
-
|
|
25930
|
+
ma(r.parameters ?? [], "name", "value")
|
|
25921
25931
|
), a = new URLSearchParams(
|
|
25922
|
-
|
|
25932
|
+
ma(r.query ?? [], "name", "value")
|
|
25923
25933
|
).toString(), c = `${l}${a ? "?" + a : ""}`, u = {
|
|
25924
25934
|
type: "none"
|
|
25925
25935
|
}, h = Date.now(), d = {
|
|
@@ -26503,7 +26513,7 @@ const ex = /* @__PURE__ */ k("svg", {
|
|
|
26503
26513
|
"onUpdate:modelValue": s[4] || (s[4] = (l) => x(t).basic.active = l),
|
|
26504
26514
|
type: "checkbox"
|
|
26505
26515
|
}, null, 512), [
|
|
26506
|
-
[
|
|
26516
|
+
[Cl, x(t).basic.active]
|
|
26507
26517
|
]),
|
|
26508
26518
|
ax,
|
|
26509
26519
|
cx
|
|
@@ -26538,7 +26548,7 @@ const ex = /* @__PURE__ */ k("svg", {
|
|
|
26538
26548
|
"onUpdate:modelValue": s[7] || (s[7] = (l) => x(t).digest.active = l),
|
|
26539
26549
|
type: "checkbox"
|
|
26540
26550
|
}, null, 512), [
|
|
26541
|
-
[
|
|
26551
|
+
[Cl, x(t).digest.active]
|
|
26542
26552
|
]),
|
|
26543
26553
|
px,
|
|
26544
26554
|
gx
|
|
@@ -26647,7 +26657,7 @@ const ex = /* @__PURE__ */ k("svg", {
|
|
|
26647
26657
|
"onUpdate:modelValue": s[16] || (s[16] = (l) => x(t).bearer.active = l),
|
|
26648
26658
|
type: "checkbox"
|
|
26649
26659
|
}, null, 512), [
|
|
26650
|
-
[
|
|
26660
|
+
[Cl, x(t).bearer.active]
|
|
26651
26661
|
]),
|
|
26652
26662
|
qx,
|
|
26653
26663
|
Mx
|
|
@@ -26682,7 +26692,7 @@ const ex = /* @__PURE__ */ k("svg", {
|
|
|
26682
26692
|
/* @__PURE__ */ k("input", { type: "checkbox" }),
|
|
26683
26693
|
/* @__PURE__ */ k("span", { class: "meta-checkmark" })
|
|
26684
26694
|
])
|
|
26685
|
-
], -1),
|
|
26695
|
+
], -1), Sl = /* @__PURE__ */ j({
|
|
26686
26696
|
__name: "Grid",
|
|
26687
26697
|
props: {
|
|
26688
26698
|
items: {}
|
|
@@ -26765,7 +26775,7 @@ const Jx = { class: "navtable simpletable" }, eQ = { class: "navtable-table" },
|
|
|
26765
26775
|
};
|
|
26766
26776
|
return (o, i) => (_(), F(x(rn), { title: "Body" }, {
|
|
26767
26777
|
default: W(() => [
|
|
26768
|
-
o.body && o.body.length === 0 && o.formData && o.formData.length === 0 ? (_(), Z("span", iQ, "No Body")) : o.formData && o.formData.length > 0 ? (_(), F(x(
|
|
26778
|
+
o.body && o.body.length === 0 && o.formData && o.formData.length === 0 ? (_(), Z("span", iQ, "No Body")) : o.formData && o.formData.length > 0 ? (_(), F(x(Sl), {
|
|
26769
26779
|
key: 1,
|
|
26770
26780
|
items: o.formData
|
|
26771
26781
|
}, null, 8, ["items"])) : (_(), F(x(po), {
|
|
@@ -26790,7 +26800,7 @@ const Jx = { class: "navtable simpletable" }, eQ = { class: "navtable-table" },
|
|
|
26790
26800
|
setup(r) {
|
|
26791
26801
|
return (e, t) => (_(), F(x(rn), { title: "Headers" }, {
|
|
26792
26802
|
default: W(() => [
|
|
26793
|
-
!e.headers || e.headers.length === 0 ? (_(), Z("div", lQ, "No Headers")) : (_(), F(x(
|
|
26803
|
+
!e.headers || e.headers.length === 0 ? (_(), Z("div", lQ, "No Headers")) : (_(), F(x(Sl), {
|
|
26794
26804
|
key: 1,
|
|
26795
26805
|
items: e.headers
|
|
26796
26806
|
}, null, 8, ["items"]))
|
|
@@ -26809,7 +26819,7 @@ const Jx = { class: "navtable simpletable" }, eQ = { class: "navtable-table" },
|
|
|
26809
26819
|
setup(r) {
|
|
26810
26820
|
return (e, t) => (_(), F(x(rn), { title: "Query Parameters" }, {
|
|
26811
26821
|
default: W(() => [
|
|
26812
|
-
!e.queries || e.queries.length === 0 ? (_(), Z("div", cQ, "No Query Parameters")) : (_(), F(x(
|
|
26822
|
+
!e.queries || e.queries.length === 0 ? (_(), Z("div", cQ, "No Query Parameters")) : (_(), F(x(Sl), {
|
|
26813
26823
|
key: 1,
|
|
26814
26824
|
items: e.queries
|
|
26815
26825
|
}, null, 8, ["items"]))
|
|
@@ -26828,7 +26838,7 @@ const Jx = { class: "navtable simpletable" }, eQ = { class: "navtable-table" },
|
|
|
26828
26838
|
setup(r) {
|
|
26829
26839
|
return (e, t) => (_(), F(x(rn), { title: "Variables" }, {
|
|
26830
26840
|
default: W(() => [
|
|
26831
|
-
!e.variables || e.variables.length === 0 ? (_(), Z("div", hQ, "No Variables")) : (_(), F(x(
|
|
26841
|
+
!e.variables || e.variables.length === 0 ? (_(), Z("div", hQ, "No Variables")) : (_(), F(x(Sl), {
|
|
26832
26842
|
key: 1,
|
|
26833
26843
|
items: e.variables
|
|
26834
26844
|
}, null, 8, ["items"]))
|
|
@@ -27799,10 +27809,10 @@ const y5 = /* @__PURE__ */ ce(RQ, [["__scopeId", "data-v-5321f21b"]]), AQ = /* @
|
|
|
27799
27809
|
], 2));
|
|
27800
27810
|
}
|
|
27801
27811
|
});
|
|
27802
|
-
const
|
|
27812
|
+
const Y1 = /* @__PURE__ */ ce(AQ, [["__scopeId", "data-v-5910c084"]]), qQ = /* @__PURE__ */ j({
|
|
27803
27813
|
__name: "SimpleHeader",
|
|
27804
27814
|
setup(r) {
|
|
27805
|
-
return (e, t) => (_(), F(
|
|
27815
|
+
return (e, t) => (_(), F(Y1, {
|
|
27806
27816
|
as: "th",
|
|
27807
27817
|
class: "simple-header"
|
|
27808
27818
|
}, {
|
|
@@ -27865,7 +27875,7 @@ const YQ = /* @__PURE__ */ ce(VQ, [["render", WQ], ["__scopeId", "data-v-a872348
|
|
|
27865
27875
|
key: i.name
|
|
27866
27876
|
}, {
|
|
27867
27877
|
default: W(() => [
|
|
27868
|
-
E(x(
|
|
27878
|
+
E(x(Y1), {
|
|
27869
27879
|
href: e(i.name),
|
|
27870
27880
|
strong: !0,
|
|
27871
27881
|
wrap: !1
|
|
@@ -27875,7 +27885,7 @@ const YQ = /* @__PURE__ */ ce(VQ, [["render", WQ], ["__scopeId", "data-v-a872348
|
|
|
27875
27885
|
]),
|
|
27876
27886
|
_: 2
|
|
27877
27887
|
}, 1032, ["href"]),
|
|
27878
|
-
E(x(
|
|
27888
|
+
E(x(Y1), null, {
|
|
27879
27889
|
default: W(() => [
|
|
27880
27890
|
Ze(N(i.value), 1)
|
|
27881
27891
|
]),
|
|
@@ -28051,7 +28061,7 @@ const o_ = { class: "scalar-api-client__main" }, i_ = /* @__PURE__ */ j({
|
|
|
28051
28061
|
default: W(() => [
|
|
28052
28062
|
E(x(X2), { class: "scalar-api-client__mobile-navigation" }, {
|
|
28053
28063
|
default: W(() => [
|
|
28054
|
-
E(x(
|
|
28064
|
+
E(x(Xa), { class: "scalar-api-client__mobile-navigation__toggle" }, {
|
|
28055
28065
|
default: W(({ selected: h }) => [
|
|
28056
28066
|
k("span", {
|
|
28057
28067
|
class: ue({
|
|
@@ -28061,7 +28071,7 @@ const o_ = { class: "scalar-api-client__main" }, i_ = /* @__PURE__ */ j({
|
|
|
28061
28071
|
]),
|
|
28062
28072
|
_: 1
|
|
28063
28073
|
}),
|
|
28064
|
-
E(x(
|
|
28074
|
+
E(x(Xa), { class: "scalar-api-client__mobile-navigation__toggle" }, {
|
|
28065
28075
|
default: W(({ selected: h }) => [
|
|
28066
28076
|
k("span", {
|
|
28067
28077
|
class: ue({
|
|
@@ -28102,7 +28112,7 @@ const o_ = { class: "scalar-api-client__main" }, i_ = /* @__PURE__ */ j({
|
|
|
28102
28112
|
], 64));
|
|
28103
28113
|
}
|
|
28104
28114
|
});
|
|
28105
|
-
function
|
|
28115
|
+
function yl(r) {
|
|
28106
28116
|
return {
|
|
28107
28117
|
parameterMap: V(() => {
|
|
28108
28118
|
const { parameters: t } = r.operation.information, n = {
|
|
@@ -28147,9 +28157,9 @@ const s_ = function() {
|
|
|
28147
28157
|
* Extracted from https://github.com/node-fetch/node-fetch/blob/64c5c296a0250b852010746c76144cb9e14698d9/src/utils/form-data.js
|
|
28148
28158
|
*/
|
|
28149
28159
|
const Bo = `\r
|
|
28150
|
-
`,
|
|
28160
|
+
`, L1 = "-".repeat(2), c_ = Symbol.toStringTag, u_ = (r) => typeof r == "object" && typeof r.arrayBuffer == "function" && typeof r.type == "string" && typeof r.stream == "function" && typeof r.constructor == "function" && /^(Blob|File)$/.test(r[c_]), h_ = (r) => `${L1}${r}${L1}${Bo.repeat(1)}`, d_ = (r, e, t) => {
|
|
28151
28161
|
let n = "";
|
|
28152
|
-
return n += `${
|
|
28162
|
+
return n += `${L1}${r}${Bo}`, n += `Content-Disposition: form-data; name="${e}"`, typeof t != "string" && t.name !== "blob" && (n += `; filename="${t.name}"${Bo}`, n += `Content-Type: ${t.type || "application/octet-stream"}`), `${n}${Bo.repeat(2)}`;
|
|
28153
28163
|
}, f_ = async function* (r, e) {
|
|
28154
28164
|
for (const [t, n] of r)
|
|
28155
28165
|
yield d_(e, t, n), typeof n == "string" ? yield n : yield await n.text(), yield Bo;
|
|
@@ -28158,7 +28168,7 @@ const Bo = `\r
|
|
|
28158
28168
|
const t = ct(r, e);
|
|
28159
28169
|
if (t)
|
|
28160
28170
|
return r[t];
|
|
28161
|
-
},
|
|
28171
|
+
}, kl = (r, e) => !!ct(r, e), O_ = [
|
|
28162
28172
|
"application/json",
|
|
28163
28173
|
"application/x-json",
|
|
28164
28174
|
"text/json",
|
|
@@ -28249,7 +28259,7 @@ const k5 = (r) => r === void 0 ? null : r === null ? "null" : r.constructor.name
|
|
|
28249
28259
|
const t = " ".repeat(r);
|
|
28250
28260
|
return e.replace(/\n/g, `
|
|
28251
28261
|
${t}`);
|
|
28252
|
-
},
|
|
28262
|
+
}, z1 = (r) => {
|
|
28253
28263
|
switch (k5(r)) {
|
|
28254
28264
|
case "string":
|
|
28255
28265
|
return `"${r.replace(/"/g, '\\"')}"`;
|
|
@@ -28263,14 +28273,14 @@ ${t}`);
|
|
|
28263
28273
|
return `#"${r.source}"`;
|
|
28264
28274
|
case "object": {
|
|
28265
28275
|
const e = Object.keys(r).reduce((t, n) => {
|
|
28266
|
-
const o = gs(n.length + 2,
|
|
28276
|
+
const o = gs(n.length + 2, z1(r[n]));
|
|
28267
28277
|
return `${t}:${n} ${o}
|
|
28268
28278
|
`;
|
|
28269
28279
|
}, "").trim();
|
|
28270
28280
|
return `{${gs(1, e)}}`;
|
|
28271
28281
|
}
|
|
28272
28282
|
case "array": {
|
|
28273
|
-
const e = r.reduce((t, n) => `${t} ${
|
|
28283
|
+
const e = r.reduce((t, n) => `${t} ${z1(n)}`, "").trim();
|
|
28274
28284
|
return `[${gs(1, e)}]`;
|
|
28275
28285
|
}
|
|
28276
28286
|
default:
|
|
@@ -28341,7 +28351,7 @@ ${t}`);
|
|
|
28341
28351
|
`), x5(jd(c)))
|
|
28342
28352
|
s(`(client/${e} "${n}")`);
|
|
28343
28353
|
else {
|
|
28344
|
-
const u = 11 + e.length + n.length, h = gs(u,
|
|
28354
|
+
const u = 11 + e.length + n.length, h = gs(u, z1(jd(c)));
|
|
28345
28355
|
s(`(client/${e} "${n}" ${h})`);
|
|
28346
28356
|
}
|
|
28347
28357
|
return l();
|
|
@@ -28774,7 +28784,7 @@ const st = /* @__PURE__ */ Wg(j_), W_ = {
|
|
|
28774
28784
|
break;
|
|
28775
28785
|
if (a("const form = new FormData();"), n.params.forEach((d) => {
|
|
28776
28786
|
a(`form.append('${d.name}', '${d.value || d.fileName || ""}');`);
|
|
28777
|
-
}), u.processData = !1, u.contentType = !1, u.mimeType = "multipart/form-data", u.data = "[form]",
|
|
28787
|
+
}), u.processData = !1, u.contentType = !1, u.mimeType = "multipart/form-data", u.data = "[form]", kl(t, "content-type") && !((i = It(t, "content-type")) === null || i === void 0) && i.includes("boundary")) {
|
|
28778
28788
|
const d = ct(t, "content-type");
|
|
28779
28789
|
d && delete u.headers[d];
|
|
28780
28790
|
}
|
|
@@ -28811,7 +28821,7 @@ const st = /* @__PURE__ */ Wg(j_), W_ = {
|
|
|
28811
28821
|
break;
|
|
28812
28822
|
if (a("const data = new FormData();"), r.params.forEach((u) => {
|
|
28813
28823
|
a(`data.append('${u.name}', '${u.value || u.fileName || ""}');`);
|
|
28814
|
-
}),
|
|
28824
|
+
}), kl(e, "content-type") && !((i = It(e, "content-type")) === null || i === void 0) && i.includes("boundary")) {
|
|
28815
28825
|
const u = ct(e, "content-type");
|
|
28816
28826
|
u && delete e[u];
|
|
28817
28827
|
}
|
|
@@ -29085,21 +29095,21 @@ const st = /* @__PURE__ */ Wg(j_), W_ = {
|
|
|
29085
29095
|
axios: N_,
|
|
29086
29096
|
fetch: G_
|
|
29087
29097
|
}
|
|
29088
|
-
},
|
|
29089
|
-
const o = `${r} *${e} = `, i =
|
|
29098
|
+
}, ya = (r, e, t, n) => {
|
|
29099
|
+
const o = `${r} *${e} = `, i = B1(t, n ? o.length : void 0);
|
|
29090
29100
|
return `${o}${i};`;
|
|
29091
|
-
},
|
|
29101
|
+
}, B1 = (r, e) => {
|
|
29092
29102
|
const t = e === void 0 ? ", " : `,
|
|
29093
29103
|
${" ".repeat(e)}`;
|
|
29094
29104
|
switch (Object.prototype.toString.call(r)) {
|
|
29095
29105
|
case "[object Number]":
|
|
29096
29106
|
return `@${r}`;
|
|
29097
29107
|
case "[object Array]":
|
|
29098
|
-
return `@[ ${r.map((o) =>
|
|
29108
|
+
return `@[ ${r.map((o) => B1(o)).join(t)} ]`;
|
|
29099
29109
|
case "[object Object]": {
|
|
29100
29110
|
const n = [];
|
|
29101
29111
|
for (const o in r)
|
|
29102
|
-
n.push(`@"${o}": ${
|
|
29112
|
+
n.push(`@"${o}": ${B1(r[o])}`);
|
|
29103
29113
|
return `@{ ${n.join(t)} }`;
|
|
29104
29114
|
}
|
|
29105
29115
|
case "[object Boolean]":
|
|
@@ -29125,7 +29135,7 @@ const st = /* @__PURE__ */ Wg(j_), W_ = {
|
|
|
29125
29135
|
hasHeaders: !1,
|
|
29126
29136
|
hasBody: !1
|
|
29127
29137
|
};
|
|
29128
|
-
if (l("#import <Foundation/Foundation.h>"), Object.keys(r).length && (u.hasHeaders = !0, c(), l(
|
|
29138
|
+
if (l("#import <Foundation/Foundation.h>"), Object.keys(r).length && (u.hasHeaders = !0, c(), l(ya("NSDictionary", "headers", r, s.pretty))), e && (e.text || e.jsonObj || e.params))
|
|
29129
29139
|
switch (u.hasBody = !0, e.mimeType) {
|
|
29130
29140
|
case "application/x-www-form-urlencoded":
|
|
29131
29141
|
if (!((i = e.params) === null || i === void 0) && i.length) {
|
|
@@ -29138,10 +29148,10 @@ const st = /* @__PURE__ */ Wg(j_), W_ = {
|
|
|
29138
29148
|
u.hasBody = !1;
|
|
29139
29149
|
break;
|
|
29140
29150
|
case "application/json":
|
|
29141
|
-
e.jsonObj && (l(
|
|
29151
|
+
e.jsonObj && (l(ya("NSDictionary", "parameters", e.jsonObj, s.pretty)), c(), l("NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];"));
|
|
29142
29152
|
break;
|
|
29143
29153
|
case "multipart/form-data":
|
|
29144
|
-
l(
|
|
29154
|
+
l(ya("NSArray", "parameters", e.params || [], s.pretty)), l(`NSString *boundary = @"${e.boundary}";`), c(), l("NSError *error;"), l("NSMutableString *body = [NSMutableString string];"), l("for (NSDictionary *param in parameters) {"), l('[body appendFormat:@"--%@\\r\\n", boundary];', 1), l('if (param[@"fileName"]) {', 1), l('[body appendFormat:@"Content-Disposition:form-data; name=\\"%@\\"; filename=\\"%@\\"\\r\\n", param[@"name"], param[@"fileName"]];', 2), l('[body appendFormat:@"Content-Type: %@\\r\\n\\r\\n", param[@"contentType"]];', 2), l('[body appendFormat:@"%@", [NSString stringWithContentsOfFile:param[@"fileName"] encoding:NSUTF8StringEncoding error:&error]];', 2), l("if (error) {", 2), l('NSLog(@"%@", error);', 3), l("}", 2), l("} else {", 1), l('[body appendFormat:@"Content-Disposition:form-data; name=\\"%@\\"\\r\\n\\r\\n", param[@"name"]];', 2), l('[body appendFormat:@"%@", param[@"value"]];', 2), l("}", 1), l("}"), l('[body appendFormat:@"\\r\\n--%@--\\r\\n", boundary];'), l("NSData *postData = [body dataUsingEncoding:NSUTF8StringEncoding];");
|
|
29145
29155
|
break;
|
|
29146
29156
|
default:
|
|
29147
29157
|
c(), l(`NSData *postData = [[NSData alloc] initWithData:[@"${e.text}" dataUsingEncoding:NSUTF8StringEncoding]];`);
|
|
@@ -29349,7 +29359,7 @@ ${c}${c}`), 1), $.push("],")), m($.join(), 1), m("]);"), v(), m("$response = cur
|
|
|
29349
29359
|
name: b.name,
|
|
29350
29360
|
contents: b.value
|
|
29351
29361
|
});
|
|
29352
|
-
}), v.length && (d(`'multipart' => ${Ce(v, l.indent + l.indent, l.indent)}`, 1),
|
|
29362
|
+
}), v.length && (d(`'multipart' => ${Ce(v, l.indent + l.indent, l.indent)}`, 1), kl(o, "content-type") && !((s = It(o, "content-type")) === null || s === void 0) && s.indexOf("boundary"))) {
|
|
29353
29363
|
const b = ct(o, "content-type");
|
|
29354
29364
|
b && delete o[b];
|
|
29355
29365
|
}
|
|
@@ -29417,7 +29427,7 @@ ${c}${c}`), 1), $.push("],")), m($.join(), 1), m("]);"), v(), m("$response = cur
|
|
|
29417
29427
|
A && (b[P] = A);
|
|
29418
29428
|
});
|
|
29419
29429
|
const Q = Object.keys(b).length ? Ce(b, c) : "null", $ = v.length ? Ce(v, c) : "null";
|
|
29420
|
-
if (d("$body = new http\\Message\\Body;"), d(`$body->addForm(${Q}, ${$});`),
|
|
29430
|
+
if (d("$body = new http\\Message\\Body;"), d(`$body->addForm(${Q}, ${$});`), kl(e, "content-type") && !((l = It(e, "content-type")) === null || l === void 0) && l.indexOf("boundary")) {
|
|
29421
29431
|
const P = ct(e, "content-type");
|
|
29422
29432
|
P && delete e[P];
|
|
29423
29433
|
}
|
|
@@ -29880,19 +29890,19 @@ ${o}` : ", ";
|
|
|
29880
29890
|
return e ? `[
|
|
29881
29891
|
${o}${r.join(s)}
|
|
29882
29892
|
${i}]` : `[${r.join(s)}]`;
|
|
29883
|
-
},
|
|
29893
|
+
}, ka = (r, e, t) => `let ${r} = ${I1(e, t)}`, I1 = (r, e, t) => {
|
|
29884
29894
|
switch (t = t === void 0 ? 1 : t + 1, Object.prototype.toString.call(r)) {
|
|
29885
29895
|
case "[object Number]":
|
|
29886
29896
|
return r;
|
|
29887
29897
|
case "[object Array]": {
|
|
29888
29898
|
let n = !1;
|
|
29889
|
-
const o = r.map((i) => (Object.prototype.toString.call(i) === "[object Object]" && (n = Object.keys(i).length > 1),
|
|
29899
|
+
const o = r.map((i) => (Object.prototype.toString.call(i) === "[object Object]" && (n = Object.keys(i).length > 1), I1(i, e, t)));
|
|
29890
29900
|
return Bd(o, n, e.indent, t);
|
|
29891
29901
|
}
|
|
29892
29902
|
case "[object Object]": {
|
|
29893
29903
|
const n = [];
|
|
29894
29904
|
for (const o in r)
|
|
29895
|
-
n.push(`"${o}": ${
|
|
29905
|
+
n.push(`"${o}": ${I1(r[o], e, t)}`);
|
|
29896
29906
|
return Bd(
|
|
29897
29907
|
n,
|
|
29898
29908
|
// @ts-expect-error needs better types
|
|
@@ -29925,7 +29935,7 @@ ${i}]` : `[${r.join(s)}]`;
|
|
|
29925
29935
|
hasHeaders: !1,
|
|
29926
29936
|
hasBody: !1
|
|
29927
29937
|
};
|
|
29928
|
-
if (l("import Foundation"), Object.keys(r).length && (u.hasHeaders = !0, a(), l(
|
|
29938
|
+
if (l("import Foundation"), Object.keys(r).length && (u.hasHeaders = !0, a(), l(ka("headers", r, s))), e && (e.text || e.jsonObj || e.params))
|
|
29929
29939
|
switch (u.hasBody = !0, e.mimeType) {
|
|
29930
29940
|
case "application/x-www-form-urlencoded":
|
|
29931
29941
|
if (a(), !((i = e.params) === null || i === void 0) && i.length) {
|
|
@@ -29937,10 +29947,10 @@ ${i}]` : `[${r.join(s)}]`;
|
|
|
29937
29947
|
u.hasBody = !1;
|
|
29938
29948
|
break;
|
|
29939
29949
|
case "application/json":
|
|
29940
|
-
e.jsonObj && (l(`${
|
|
29950
|
+
e.jsonObj && (l(`${ka("parameters", e.jsonObj, s)} as [String : Any]`), a(), l("let postData = JSONSerialization.data(withJSONObject: parameters, options: [])"));
|
|
29941
29951
|
break;
|
|
29942
29952
|
case "multipart/form-data":
|
|
29943
|
-
l(
|
|
29953
|
+
l(ka("parameters", e.params, s)), a(), l(`let boundary = "${e.boundary}"`), a(), l('var body = ""'), l("var error: NSError? = nil"), l("for param in parameters {"), l('let paramName = param["name"]!', 1), l('body += "--\\(boundary)\\r\\n"', 1), l('body += "Content-Disposition:form-data; name=\\"\\(paramName)\\""', 1), l('if let filename = param["fileName"] {', 1), l('let contentType = param["content-type"]!', 2), l("let fileContent = String(contentsOfFile: filename, encoding: String.Encoding.utf8)", 2), l("if (error != nil) {", 2), l("print(error as Any)", 3), l("}", 2), l('body += "; filename=\\"\\(filename)\\"\\r\\n"', 2), l('body += "Content-Type: \\(contentType)\\r\\n\\r\\n"', 2), l("body += fileContent", 2), l('} else if let paramValue = param["value"] {', 1), l('body += "\\r\\n\\r\\n\\(paramValue)"', 2), l("}", 1), l("}");
|
|
29944
29954
|
break;
|
|
29945
29955
|
default:
|
|
29946
29956
|
a(), l(`let postData = NSData(data: "${e.text}".data(using: String.Encoding.utf8)!)`);
|
|
@@ -29979,7 +29989,7 @@ ${i}]` : `[${r.join(s)}]`;
|
|
|
29979
29989
|
ruby: w$,
|
|
29980
29990
|
shell: _$,
|
|
29981
29991
|
swift: P$
|
|
29982
|
-
},
|
|
29992
|
+
}, xl = () => Object.keys(Vo).map((r) => ({
|
|
29983
29993
|
...Vo[r].info,
|
|
29984
29994
|
clients: Object.keys(Vo[r].clientsById).map((e) => Vo[r].clientsById[e].info)
|
|
29985
29995
|
}));
|
|
@@ -30134,14 +30144,14 @@ function M$(r, e) {
|
|
|
30134
30144
|
}
|
|
30135
30145
|
function E$(r) {
|
|
30136
30146
|
var e;
|
|
30137
|
-
return ((e =
|
|
30147
|
+
return ((e = xl().find((t) => t.key === r.targetKey)) == null ? void 0 : e.title) ?? r.targetKey;
|
|
30138
30148
|
}
|
|
30139
30149
|
function U$(r) {
|
|
30140
30150
|
var e, t;
|
|
30141
|
-
return ((t = (e =
|
|
30151
|
+
return ((t = (e = xl().find((n) => n.key === r.targetKey)) == null ? void 0 : e.clients.find((n) => n.key === r.clientKey)) == null ? void 0 : t.title) ?? r.clientKey;
|
|
30142
30152
|
}
|
|
30143
30153
|
const qr = () => ({
|
|
30144
|
-
state:
|
|
30154
|
+
state: n0(Sn),
|
|
30145
30155
|
resetState: A$,
|
|
30146
30156
|
setItem: X$(Sn),
|
|
30147
30157
|
toggleItem: R$(Sn),
|
|
@@ -31249,7 +31259,7 @@ const Nd = /* @__PURE__ */ ce(Zq, [["__scopeId", "data-v-dc8a97ce"]]), Gd = /* @
|
|
|
31249
31259
|
de(e.$slots, "default")
|
|
31250
31260
|
], 4));
|
|
31251
31261
|
}
|
|
31252
|
-
}), Xq = { class: "sidebar" }, Rq = { class: "pages custom-scroll custom-scroll-self-contain-overflow" },
|
|
31262
|
+
}), Xq = { class: "sidebar" }, Rq = { class: "pages custom-scroll custom-scroll-self-contain-overflow" }, H1 = /* @__PURE__ */ j({
|
|
31253
31263
|
__name: "Sidebar",
|
|
31254
31264
|
props: {
|
|
31255
31265
|
spec: {}
|
|
@@ -31257,7 +31267,7 @@ const Nd = /* @__PURE__ */ ce(Zq, [["__scopeId", "data-v-dc8a97ce"]]), Gd = /* @
|
|
|
31257
31267
|
setup(r) {
|
|
31258
31268
|
const e = r, { state: t, setActiveSidebar: n, toggleApiClient: o } = ao(), { setActiveRequest: i } = hr();
|
|
31259
31269
|
function s(f) {
|
|
31260
|
-
const { parameterMap: O } =
|
|
31270
|
+
const { parameterMap: O } = yl({ operation: f }), m = Gp(
|
|
31261
31271
|
f,
|
|
31262
31272
|
O.value,
|
|
31263
31273
|
e.spec.servers[0]
|
|
@@ -31360,12 +31370,12 @@ const Aq = {
|
|
|
31360
31370
|
k("div", Eq, [
|
|
31361
31371
|
o.tabMode ? (_(), Z(oe, { key: 0 }, [
|
|
31362
31372
|
o.activeTab === "sidebar" ? (_(), Z("div", Uq, [
|
|
31363
|
-
Qe(E(
|
|
31373
|
+
Qe(E(H1, { spec: o.spec }, null, 8, ["spec"]), [
|
|
31364
31374
|
[Br, !x(n)]
|
|
31365
31375
|
])
|
|
31366
31376
|
])) : de(o.$slots, "active-tab", { key: 1 }, void 0, !0)
|
|
31367
31377
|
], 64)) : (_(), Z("div", Vq, [
|
|
31368
|
-
Qe(E(
|
|
31378
|
+
Qe(E(H1, { spec: o.spec }, null, 8, ["spec"]), [
|
|
31369
31379
|
[Br, !x(n)]
|
|
31370
31380
|
])
|
|
31371
31381
|
])),
|
|
@@ -31394,9 +31404,9 @@ function Yq(r, e) {
|
|
|
31394
31404
|
Pn.push({ id: t, ...r, options: e });
|
|
31395
31405
|
let n;
|
|
31396
31406
|
return e != null && e.timeout && (n = setTimeout(() => {
|
|
31397
|
-
|
|
31407
|
+
N1(t);
|
|
31398
31408
|
}, e.timeout)), { id: t, dismiss: () => {
|
|
31399
|
-
n && clearTimeout(n),
|
|
31409
|
+
n && clearTimeout(n), N1(t);
|
|
31400
31410
|
}, active: () => Pn.some((s) => s.id === t) };
|
|
31401
31411
|
}
|
|
31402
31412
|
function Lq(r, e) {
|
|
@@ -31404,13 +31414,13 @@ function Lq(r, e) {
|
|
|
31404
31414
|
}
|
|
31405
31415
|
function Z5() {
|
|
31406
31416
|
return {
|
|
31407
|
-
toasts:
|
|
31417
|
+
toasts: n0(Pn),
|
|
31408
31418
|
addToast: Lq,
|
|
31409
|
-
removeToast:
|
|
31419
|
+
removeToast: N1,
|
|
31410
31420
|
clearToasts: zq
|
|
31411
31421
|
};
|
|
31412
31422
|
}
|
|
31413
|
-
function
|
|
31423
|
+
function N1(r) {
|
|
31414
31424
|
const e = Pn.findIndex((t) => t.id === r);
|
|
31415
31425
|
e < 0 || Pn.splice(e, 1);
|
|
31416
31426
|
}
|
|
@@ -31486,7 +31496,7 @@ const Jq = /* @__PURE__ */ ce(Kq, [["__scopeId", "data-v-14fb66a9"]]), eM = { cl
|
|
|
31486
31496
|
return (t, n) => {
|
|
31487
31497
|
var o, i;
|
|
31488
31498
|
return _(), Z("div", eM, [
|
|
31489
|
-
e(t.toast) ? (_(), F(
|
|
31499
|
+
e(t.toast) ? (_(), F(_a(t.toast.component), { key: 0 }, bc({ _: 2 }, [
|
|
31490
31500
|
(o = t.toast.options) != null && o.timeout ? {
|
|
31491
31501
|
name: "timeout",
|
|
31492
31502
|
fn: W(() => [
|
|
@@ -31511,7 +31521,7 @@ const Jq = /* @__PURE__ */ ce(Kq, [["__scopeId", "data-v-14fb66a9"]]), eM = { cl
|
|
|
31511
31521
|
fn: W(() => [
|
|
31512
31522
|
typeof t.toast.description == "string" ? (_(), Z(oe, { key: 0 }, [
|
|
31513
31523
|
Ze(N(t.toast.description), 1)
|
|
31514
|
-
], 64)) : (_(), F(
|
|
31524
|
+
], 64)) : (_(), F(_a(t.toast.description), { key: 1 }))
|
|
31515
31525
|
]),
|
|
31516
31526
|
key: "0"
|
|
31517
31527
|
} : void 0,
|
|
@@ -31641,7 +31651,7 @@ const ac = /* @__PURE__ */ ce(pM, [["__scopeId", "data-v-30aa8a4d"]]), gM = /* @
|
|
|
31641
31651
|
const mM = /* @__PURE__ */ ce(gM, [["__scopeId", "data-v-b81067df"]]), vM = /* @__PURE__ */ j({
|
|
31642
31652
|
__name: "CardTab",
|
|
31643
31653
|
setup(r) {
|
|
31644
|
-
return (e, t) => (_(), F(x(
|
|
31654
|
+
return (e, t) => (_(), F(x(Xa), { as: "template" }, {
|
|
31645
31655
|
default: W(({ selected: n }) => [
|
|
31646
31656
|
k("button", {
|
|
31647
31657
|
class: ue({ tab: !0, "tab-selected": n }),
|
|
@@ -31683,7 +31693,7 @@ const wM = /* @__PURE__ */ ce(vM, [["__scopeId", "data-v-e5d124ee"]]), bM = ["in
|
|
|
31683
31693
|
}, null, 8, bM));
|
|
31684
31694
|
}
|
|
31685
31695
|
});
|
|
31686
|
-
const
|
|
31696
|
+
const Ql = /* @__PURE__ */ ce(SM, [["__scopeId", "data-v-8ffd2d89"]]), yM = ["id", "data-section-id"], kM = { class: "copy" }, xM = { class: "editor-heading" }, QM = {
|
|
31687
31697
|
key: 0,
|
|
31688
31698
|
class: "tag-description"
|
|
31689
31699
|
}, _M = {
|
|
@@ -31732,7 +31742,7 @@ const xl = /* @__PURE__ */ ce(SM, [["__scopeId", "data-v-8ffd2d89"]]), yM = ["id
|
|
|
31732
31742
|
}, N(i.tag.name), 513)
|
|
31733
31743
|
]),
|
|
31734
31744
|
i.tag.description ? (_(), Z("div", QM, [
|
|
31735
|
-
E(
|
|
31745
|
+
E(Ql, {
|
|
31736
31746
|
value: i.tag.description
|
|
31737
31747
|
}, null, 8, ["value"])
|
|
31738
31748
|
])) : ee("", !0)
|
|
@@ -31905,7 +31915,7 @@ const AM = /* @__PURE__ */ ce(RM, [["__scopeId", "data-v-ded24335"]]), X5 = (r)
|
|
|
31905
31915
|
value: JSON.stringify(x(e).selectedClient),
|
|
31906
31916
|
onInput: d[0] || (d[0] = (f) => x(t)("selectedClient", JSON.parse(f.target.value)))
|
|
31907
31917
|
}, [
|
|
31908
|
-
(_(!0), Z(oe, null, Xe(x(
|
|
31918
|
+
(_(!0), Z(oe, null, Xe(x(xl)(), (f) => (_(), Z("optgroup", {
|
|
31909
31919
|
key: f.key,
|
|
31910
31920
|
label: f.title
|
|
31911
31921
|
}, [
|
|
@@ -31954,7 +31964,7 @@ const IM = /* @__PURE__ */ ce(BM, [["__scopeId", "data-v-a2301e18"]]), HM = { cl
|
|
|
31954
31964
|
}, N(o.info.title || " "), 3)
|
|
31955
31965
|
]),
|
|
31956
31966
|
k("p", DM, [
|
|
31957
|
-
o.info.description ? (_(), F(
|
|
31967
|
+
o.info.description ? (_(), F(Ql, {
|
|
31958
31968
|
key: 0,
|
|
31959
31969
|
value: o.info.description
|
|
31960
31970
|
}, null, 8, ["value"])) : (_(!0), Z(oe, { key: 1 }, Xe([...Array(8).keys()], (s) => (_(), Z("span", {
|
|
@@ -32036,7 +32046,7 @@ const eE = /* @__PURE__ */ ce(JM, [["__scopeId", "data-v-2fd7c49e"]]), tE = { cl
|
|
|
32036
32046
|
class: ue(["parameter-required", e.parameter.required ? "parameter__required" : ""])
|
|
32037
32047
|
}, N(e.parameter.required ? "required" : "optional"), 3)) : ee("", !0),
|
|
32038
32048
|
(n = e.parameter.schema) != null && n.type ? (_(), Z("span", rE, N((o = e.parameter.schema) == null ? void 0 : o.type), 1)) : ee("", !0),
|
|
32039
|
-
e.parameter.description ? (_(), F(
|
|
32049
|
+
e.parameter.description ? (_(), F(Ql, {
|
|
32040
32050
|
key: 2,
|
|
32041
32051
|
class: "parameter-description",
|
|
32042
32052
|
value: e.parameter.description
|
|
@@ -32195,7 +32205,7 @@ const TE = { class: "copy" }, CE = { class: "editor-heading" }, ZE = { class: "t
|
|
|
32195
32205
|
parentTag: {}
|
|
32196
32206
|
},
|
|
32197
32207
|
setup(r) {
|
|
32198
|
-
const e = r, { setActiveSidebar: t } = ao(), { parameterMap: n } =
|
|
32208
|
+
const e = r, { setActiveSidebar: t } = ao(), { parameterMap: n } = yl(e), { setCollapsedSidebarItem: o } = qr(), i = V(() => {
|
|
32199
32209
|
const { responses: l } = e.operation.information, a = [];
|
|
32200
32210
|
return Object.keys(l).forEach((c) => {
|
|
32201
32211
|
a.push({
|
|
@@ -32233,7 +32243,7 @@ const TE = { class: "copy" }, CE = { class: "editor-heading" }, ZE = { class: "t
|
|
|
32233
32243
|
]),
|
|
32234
32244
|
k("div", null, [
|
|
32235
32245
|
k("p", ZE, [
|
|
32236
|
-
E(
|
|
32246
|
+
E(Ql, {
|
|
32237
32247
|
value: l.operation.description
|
|
32238
32248
|
}, null, 8, ["value"])
|
|
32239
32249
|
])
|
|
@@ -32268,7 +32278,7 @@ const RE = /* @__PURE__ */ ce(XE, [["__scopeId", "data-v-70e246ad"]]), AE = (r)
|
|
|
32268
32278
|
server: {}
|
|
32269
32279
|
},
|
|
32270
32280
|
setup(r) {
|
|
32271
|
-
const e = r, t = Y(""), { copyToClipboard: n } = cc(), { setActiveRequest: o } = hr(), { toggleApiClient: i } = ao(), { state: s, setItem: l, getClientTitle: a, getTargetTitle: c } = qr(), u = V(() => [s.selectedClient.targetKey]), { parameterMap: h } =
|
|
32281
|
+
const e = r, t = Y(""), { copyToClipboard: n } = cc(), { setActiveRequest: o } = hr(), { toggleApiClient: i } = ao(), { state: s, setItem: l, getClientTitle: a, getTargetTitle: c } = qr(), u = V(() => [s.selectedClient.targetKey]), { parameterMap: h } = yl(e), d = async () => {
|
|
32272
32282
|
let v = e.operation.path;
|
|
32273
32283
|
const b = v.match(/{(.*?)}/g);
|
|
32274
32284
|
b && b.forEach((P) => {
|
|
@@ -32328,7 +32338,7 @@ const RE = /* @__PURE__ */ ce(XE, [["__scopeId", "data-v-70e246ad"]]), AE = (r)
|
|
|
32328
32338
|
value: JSON.stringify(x(s).selectedClient),
|
|
32329
32339
|
onInput: b[0] || (b[0] = (Q) => x(l)("selectedClient", JSON.parse(Q.target.value)))
|
|
32330
32340
|
}, [
|
|
32331
|
-
(_(!0), Z(oe, null, Xe(x(
|
|
32341
|
+
(_(!0), Z(oe, null, Xe(x(xl)(), (Q) => (_(), Z("optgroup", {
|
|
32332
32342
|
key: Q.key,
|
|
32333
32343
|
label: Q.title
|
|
32334
32344
|
}, [
|
|
@@ -32399,7 +32409,7 @@ const RE = /* @__PURE__ */ ce(XE, [["__scopeId", "data-v-70e246ad"]]), AE = (r)
|
|
|
32399
32409
|
}));
|
|
32400
32410
|
}
|
|
32401
32411
|
});
|
|
32402
|
-
const LE = /* @__PURE__ */ ce(YE, [["__scopeId", "data-v-b1db1e23"]]),
|
|
32412
|
+
const LE = /* @__PURE__ */ ce(YE, [["__scopeId", "data-v-b1db1e23"]]), G1 = (r) => Object.keys(r).map((e) => ({
|
|
32403
32413
|
key: e,
|
|
32404
32414
|
value: r[e]
|
|
32405
32415
|
}));
|
|
@@ -32516,10 +32526,10 @@ function iU() {
|
|
|
32516
32526
|
arguments[e].forEach(n);
|
|
32517
32527
|
return r;
|
|
32518
32528
|
}
|
|
32519
|
-
function
|
|
32529
|
+
function F1(r) {
|
|
32520
32530
|
return this.extend(r);
|
|
32521
32531
|
}
|
|
32522
|
-
|
|
32532
|
+
F1.prototype.extend = function(e) {
|
|
32523
32533
|
var t = [], n = [];
|
|
32524
32534
|
if (e instanceof dt)
|
|
32525
32535
|
n.push(e);
|
|
@@ -32540,10 +32550,10 @@ G1.prototype.extend = function(e) {
|
|
|
32540
32550
|
if (!(i instanceof dt))
|
|
32541
32551
|
throw new un("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
32542
32552
|
});
|
|
32543
|
-
var o = Object.create(
|
|
32553
|
+
var o = Object.create(F1.prototype);
|
|
32544
32554
|
return o.implicit = (this.implicit || []).concat(t), o.explicit = (this.explicit || []).concat(n), o.compiledImplicit = Kd(o, "implicit"), o.compiledExplicit = Kd(o, "explicit"), o.compiledTypeMap = iU(o.compiledImplicit, o.compiledExplicit), o;
|
|
32545
32555
|
};
|
|
32546
|
-
var sU =
|
|
32556
|
+
var sU = F1, lU = new dt("tag:yaml.org,2002:str", {
|
|
32547
32557
|
kind: "scalar",
|
|
32548
32558
|
construct: function(r) {
|
|
32549
32559
|
return r !== null ? r : "";
|
|
@@ -33010,7 +33020,7 @@ const ms = /* @__PURE__ */ ce(uV, [["__scopeId", "data-v-ba0d976f"]]), hV = /* @
|
|
|
33010
33020
|
}));
|
|
33011
33021
|
}
|
|
33012
33022
|
});
|
|
33013
|
-
const
|
|
33023
|
+
const xa = /* @__PURE__ */ ce(hV, [["__scopeId", "data-v-6bd3700b"]]), dV = {}, fV = { class: "simple-row" };
|
|
33014
33024
|
function OV(r, e) {
|
|
33015
33025
|
return _(), Z("tr", fV, [
|
|
33016
33026
|
de(r.$slots, "default")
|
|
@@ -33035,24 +33045,24 @@ const vV = /* @__PURE__ */ ce(pV, [["render", mV], ["__scopeId", "data-v-0988c0b
|
|
|
33035
33045
|
const e = r, t = (s) => {
|
|
33036
33046
|
var l;
|
|
33037
33047
|
return (l = S5.find((a) => a.name.toLowerCase() === s.toLowerCase())) == null ? void 0 : l.url;
|
|
33038
|
-
}, n = (s) => s.split("-").map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("-"), o = V(() =>
|
|
33048
|
+
}, n = (s) => s.split("-").map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("-"), o = V(() => G1(e.headers).some((l) => l.value.description)), i = V(() => G1(e.headers).some((l) => l.value.schema));
|
|
33039
33049
|
return (s, l) => (_(), F(x(vV), null, {
|
|
33040
33050
|
default: W(() => [
|
|
33041
33051
|
E(x(e2), null, {
|
|
33042
33052
|
default: W(() => [
|
|
33043
|
-
E(x(
|
|
33053
|
+
E(x(xa), null, {
|
|
33044
33054
|
default: W(() => [
|
|
33045
33055
|
Ze("Header")
|
|
33046
33056
|
]),
|
|
33047
33057
|
_: 1
|
|
33048
33058
|
}),
|
|
33049
|
-
o.value ? (_(), F(x(
|
|
33059
|
+
o.value ? (_(), F(x(xa), { key: 0 }, {
|
|
33050
33060
|
default: W(() => [
|
|
33051
33061
|
Ze("Description")
|
|
33052
33062
|
]),
|
|
33053
33063
|
_: 1
|
|
33054
33064
|
})) : ee("", !0),
|
|
33055
|
-
i.value ? (_(), F(x(
|
|
33065
|
+
i.value ? (_(), F(x(xa), { key: 1 }, {
|
|
33056
33066
|
default: W(() => [
|
|
33057
33067
|
Ze("Value")
|
|
33058
33068
|
]),
|
|
@@ -33103,7 +33113,7 @@ const vV = /* @__PURE__ */ ce(pV, [["render", mV], ["__scopeId", "data-v-0988c0b
|
|
|
33103
33113
|
examples: {}
|
|
33104
33114
|
},
|
|
33105
33115
|
setup(r) {
|
|
33106
|
-
const t =
|
|
33116
|
+
const t = G1(r.examples), n = Y(t[0]);
|
|
33107
33117
|
return (o, i) => (_(), Z("div", QV, [
|
|
33108
33118
|
_V,
|
|
33109
33119
|
E(x($g), {
|
|
@@ -33284,7 +33294,7 @@ const AV = /* @__PURE__ */ ce(RV, [["__scopeId", "data-v-6d79948e"]]), qV = ["id
|
|
|
33284
33294
|
], 8, qV));
|
|
33285
33295
|
}
|
|
33286
33296
|
});
|
|
33287
|
-
const UV = {},
|
|
33297
|
+
const UV = {}, _l = (r) => (Kr("data-v-16147dd7"), r = r(), Jr(), r), VV = { class: "scalar-logo-animation scalar-logo-animation-load" }, jV = /* @__PURE__ */ _l(() => /* @__PURE__ */ k("i", { class: "line line-1" }, null, -1)), WV = /* @__PURE__ */ _l(() => /* @__PURE__ */ k("i", { class: "line line-2" }, null, -1)), YV = /* @__PURE__ */ _l(() => /* @__PURE__ */ k("i", { class: "line line-3" }, null, -1)), LV = /* @__PURE__ */ _l(() => /* @__PURE__ */ k("i", { class: "line line-4" }, null, -1)), zV = [
|
|
33288
33298
|
jV,
|
|
33289
33299
|
WV,
|
|
33290
33300
|
YV,
|
|
@@ -33399,7 +33409,7 @@ function rj(r) {
|
|
|
33399
33409
|
function $t(r) {
|
|
33400
33410
|
return r != null;
|
|
33401
33411
|
}
|
|
33402
|
-
function
|
|
33412
|
+
function Qa(r) {
|
|
33403
33413
|
return !r.trim().length;
|
|
33404
33414
|
}
|
|
33405
33415
|
function V5(r) {
|
|
@@ -33430,21 +33440,21 @@ class aj {
|
|
|
33430
33440
|
function j5(r) {
|
|
33431
33441
|
let e = null, t = null, n = null, o = 1, i = null;
|
|
33432
33442
|
if (lr(r) || Xr(r))
|
|
33433
|
-
n = r, e = r2(r), t =
|
|
33443
|
+
n = r, e = r2(r), t = D1(r);
|
|
33434
33444
|
else {
|
|
33435
33445
|
if (!t2.call(r, "name"))
|
|
33436
33446
|
throw new Error(sj("name"));
|
|
33437
33447
|
const s = r.name;
|
|
33438
33448
|
if (n = s, t2.call(r, "weight") && (o = r.weight, o <= 0))
|
|
33439
33449
|
throw new Error(lj(s));
|
|
33440
|
-
e = r2(s), t =
|
|
33450
|
+
e = r2(s), t = D1(s), i = r.getFn;
|
|
33441
33451
|
}
|
|
33442
33452
|
return { path: e, id: t, weight: o, src: n, getFn: i };
|
|
33443
33453
|
}
|
|
33444
33454
|
function r2(r) {
|
|
33445
33455
|
return Xr(r) ? r : r.split(".");
|
|
33446
33456
|
}
|
|
33447
|
-
function
|
|
33457
|
+
function D1(r) {
|
|
33448
33458
|
return Xr(r) ? r.join(".") : r;
|
|
33449
33459
|
}
|
|
33450
33460
|
function cj(r, e) {
|
|
@@ -33586,7 +33596,7 @@ class dc {
|
|
|
33586
33596
|
return this.records.length;
|
|
33587
33597
|
}
|
|
33588
33598
|
_addString(e, t) {
|
|
33589
|
-
if (!$t(e) ||
|
|
33599
|
+
if (!$t(e) || Qa(e))
|
|
33590
33600
|
return;
|
|
33591
33601
|
let n = {
|
|
33592
33602
|
v: e,
|
|
@@ -33606,7 +33616,7 @@ class dc {
|
|
|
33606
33616
|
for (; a.length; ) {
|
|
33607
33617
|
const { nestedArrIndex: c, value: u } = a.pop();
|
|
33608
33618
|
if ($t(u))
|
|
33609
|
-
if (lr(u) && !
|
|
33619
|
+
if (lr(u) && !Qa(u)) {
|
|
33610
33620
|
let h = {
|
|
33611
33621
|
v: u,
|
|
33612
33622
|
i: c,
|
|
@@ -33622,7 +33632,7 @@ class dc {
|
|
|
33622
33632
|
});
|
|
33623
33633
|
}
|
|
33624
33634
|
n.$[i] = l;
|
|
33625
|
-
} else if (lr(s) && !
|
|
33635
|
+
} else if (lr(s) && !Qa(s)) {
|
|
33626
33636
|
let l = {
|
|
33627
33637
|
v: s,
|
|
33628
33638
|
n: this.norm.get(s)
|
|
@@ -34044,7 +34054,7 @@ class z5 extends nn {
|
|
|
34044
34054
|
};
|
|
34045
34055
|
}
|
|
34046
34056
|
}
|
|
34047
|
-
const
|
|
34057
|
+
const K1 = [
|
|
34048
34058
|
bj,
|
|
34049
34059
|
z5,
|
|
34050
34060
|
yj,
|
|
@@ -34053,7 +34063,7 @@ const D1 = [
|
|
|
34053
34063
|
xj,
|
|
34054
34064
|
Sj,
|
|
34055
34065
|
L5
|
|
34056
|
-
], o2 =
|
|
34066
|
+
], o2 = K1.length, _j = / +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/, $j = "|";
|
|
34057
34067
|
function Pj(r, e = {}) {
|
|
34058
34068
|
return r.split($j).map((t) => {
|
|
34059
34069
|
let n = t.trim().split(_j).filter((i) => i && !!i.trim()), o = [];
|
|
@@ -34061,13 +34071,13 @@ function Pj(r, e = {}) {
|
|
|
34061
34071
|
const l = n[i];
|
|
34062
34072
|
let a = !1, c = -1;
|
|
34063
34073
|
for (; !a && ++c < o2; ) {
|
|
34064
|
-
const u =
|
|
34074
|
+
const u = K1[c];
|
|
34065
34075
|
let h = u.isMultiMatch(l);
|
|
34066
34076
|
h && (o.push(new u(h, e)), a = !0);
|
|
34067
34077
|
}
|
|
34068
34078
|
if (!a)
|
|
34069
34079
|
for (c = -1; ++c < o2; ) {
|
|
34070
|
-
const u =
|
|
34080
|
+
const u = K1[c];
|
|
34071
34081
|
let h = u.isSingleMatch(l);
|
|
34072
34082
|
if (h) {
|
|
34073
34083
|
o.push(new u(h, e));
|
|
@@ -34143,13 +34153,13 @@ class Cj {
|
|
|
34143
34153
|
};
|
|
34144
34154
|
}
|
|
34145
34155
|
}
|
|
34146
|
-
const
|
|
34156
|
+
const J1 = [];
|
|
34147
34157
|
function Zj(...r) {
|
|
34148
|
-
|
|
34158
|
+
J1.push(...r);
|
|
34149
34159
|
}
|
|
34150
|
-
function
|
|
34151
|
-
for (let t = 0, n =
|
|
34152
|
-
let o =
|
|
34160
|
+
function e0(r, e) {
|
|
34161
|
+
for (let t = 0, n = J1.length; t < n; t += 1) {
|
|
34162
|
+
let o = J1[t];
|
|
34153
34163
|
if (o.condition(r, e))
|
|
34154
34164
|
return new o(r, e);
|
|
34155
34165
|
}
|
|
@@ -34158,10 +34168,10 @@ function J1(r, e) {
|
|
|
34158
34168
|
const Bs = {
|
|
34159
34169
|
AND: "$and",
|
|
34160
34170
|
OR: "$or"
|
|
34161
|
-
},
|
|
34171
|
+
}, t0 = {
|
|
34162
34172
|
PATH: "$path",
|
|
34163
34173
|
PATTERN: "$val"
|
|
34164
|
-
},
|
|
34174
|
+
}, r0 = (r) => !!(r[Bs.AND] || r[Bs.OR]), Xj = (r) => !!r[t0.PATH], Rj = (r) => !Xr(r) && U5(r) && !r0(r), i2 = (r) => ({
|
|
34165
34175
|
[Bs.AND]: Object.keys(r).map((e) => ({
|
|
34166
34176
|
[e]: r[e]
|
|
34167
34177
|
}))
|
|
@@ -34170,17 +34180,17 @@ function B5(r, e, { auto: t = !0 } = {}) {
|
|
|
34170
34180
|
const n = (o) => {
|
|
34171
34181
|
let i = Object.keys(o);
|
|
34172
34182
|
const s = Xj(o);
|
|
34173
|
-
if (!s && i.length > 1 && !
|
|
34183
|
+
if (!s && i.length > 1 && !r0(o))
|
|
34174
34184
|
return n(i2(o));
|
|
34175
34185
|
if (Rj(o)) {
|
|
34176
|
-
const a = s ? o[
|
|
34186
|
+
const a = s ? o[t0.PATH] : i[0], c = s ? o[t0.PATTERN] : o[a];
|
|
34177
34187
|
if (!lr(c))
|
|
34178
34188
|
throw new Error(oj(a));
|
|
34179
34189
|
const u = {
|
|
34180
|
-
keyId:
|
|
34190
|
+
keyId: D1(a),
|
|
34181
34191
|
pattern: c
|
|
34182
34192
|
};
|
|
34183
|
-
return t && (u.searcher =
|
|
34193
|
+
return t && (u.searcher = e0(c, e)), u;
|
|
34184
34194
|
}
|
|
34185
34195
|
let l = {
|
|
34186
34196
|
children: [],
|
|
@@ -34193,7 +34203,7 @@ function B5(r, e, { auto: t = !0 } = {}) {
|
|
|
34193
34203
|
});
|
|
34194
34204
|
}), l;
|
|
34195
34205
|
};
|
|
34196
|
-
return
|
|
34206
|
+
return r0(r) || (r = i2(r)), n(r);
|
|
34197
34207
|
}
|
|
34198
34208
|
function Aj(r, { ignoreFieldNorm: e = se.ignoreFieldNorm }) {
|
|
34199
34209
|
r.forEach((t) => {
|
|
@@ -34282,7 +34292,7 @@ class mo {
|
|
|
34282
34292
|
});
|
|
34283
34293
|
}
|
|
34284
34294
|
_searchStringList(e) {
|
|
34285
|
-
const t =
|
|
34295
|
+
const t = e0(e, this.options), { records: n } = this._myIndex, o = [];
|
|
34286
34296
|
return n.forEach(({ v: i, i: s, n: l }) => {
|
|
34287
34297
|
if (!$t(i))
|
|
34288
34298
|
return;
|
|
@@ -34330,7 +34340,7 @@ class mo {
|
|
|
34330
34340
|
}), s;
|
|
34331
34341
|
}
|
|
34332
34342
|
_searchObjectList(e) {
|
|
34333
|
-
const t =
|
|
34343
|
+
const t = e0(e, this.options), { keys: n, records: o } = this._myIndex, i = [];
|
|
34334
34344
|
return o.forEach(({ $: s, i: l }) => {
|
|
34335
34345
|
if (!$t(s))
|
|
34336
34346
|
return;
|
|
@@ -34469,7 +34479,7 @@ const Wj = (r) => (Kr("data-v-12788f5a"), r = r(), Jr(), r), Yj = {
|
|
|
34469
34479
|
body: ""
|
|
34470
34480
|
};
|
|
34471
34481
|
o.push(b), v.operations && v.operations.forEach((Q) => {
|
|
34472
|
-
const { parameterMap: $ } =
|
|
34482
|
+
const { parameterMap: $ } = yl({ operation: Q }), P = jj(Q) || $.value;
|
|
34473
34483
|
let R = null;
|
|
34474
34484
|
typeof P != "boolean" && (R = P);
|
|
34475
34485
|
const A = {
|
|
@@ -34676,7 +34686,7 @@ const Fj = /* @__PURE__ */ ce(Gj, [["__scopeId", "data-v-12788f5a"]]), Dj = {
|
|
|
34676
34686
|
}) : ee("", !0),
|
|
34677
34687
|
b.showSidebar && (!x(s) || b.$slots.header) ? (_(), Z("div", Jj, [
|
|
34678
34688
|
x(s) ? de(b.$slots, "header", { key: 0 }) : ee("", !0),
|
|
34679
|
-
E(
|
|
34689
|
+
E(H1, { spec: d }, null, 8, ["spec"])
|
|
34680
34690
|
])) : ee("", !0)
|
|
34681
34691
|
]),
|
|
34682
34692
|
Qe(k("div", eW, [
|
|
@@ -34711,7 +34721,7 @@ export {
|
|
|
34711
34721
|
SW as ApiReference,
|
|
34712
34722
|
aq as DarkModeToggle,
|
|
34713
34723
|
DV as RenderedReference,
|
|
34714
|
-
|
|
34724
|
+
H1 as Sidebar,
|
|
34715
34725
|
ao as useApiClientStore,
|
|
34716
34726
|
V$ as useDarkModeState
|
|
34717
34727
|
};
|