page-agent-sdk 2.12.1 → 2.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/page-agent-sdk.iife.js +29 -29
- package/dist/page-agent-sdk.js +615 -601
- package/dist/page-agent-sdk.umd.cjs +5 -5
- package/package.json +1 -1
- package/types/index.d.ts +7 -1
package/dist/page-agent-sdk.js
CHANGED
|
@@ -79,10 +79,10 @@ function y(e) {
|
|
|
79
79
|
var b = process.env.NODE_ENV === "production" ? {} : Object.freeze({}), x = process.env.NODE_ENV === "production" ? [] : Object.freeze([]), S = () => {}, C = () => !1, w = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), T = (e) => e.startsWith("onUpdate:"), E = Object.assign, D = (e, t) => {
|
|
80
80
|
let n = e.indexOf(t);
|
|
81
81
|
n > -1 && e.splice(n, 1);
|
|
82
|
-
}, O = Object.prototype.hasOwnProperty, k = (e, t) => O.call(e, t), A = Array.isArray,
|
|
82
|
+
}, O = Object.prototype.hasOwnProperty, k = (e, t) => O.call(e, t), A = Array.isArray, j = (e) => ne(e) === "[object Map]", M = (e) => ne(e) === "[object Set]", N = (e) => ne(e) === "[object Date]", P = (e) => typeof e == "function", F = (e) => typeof e == "string", I = (e) => typeof e == "symbol", L = (e) => typeof e == "object" && !!e, ee = (e) => (L(e) || P(e)) && P(e.then) && P(e.catch), te = Object.prototype.toString, ne = (e) => te.call(e), re = (e) => ne(e).slice(8, -1), ie = (e) => ne(e) === "[object Object]", ae = (e) => F(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, oe = /* @__PURE__ */ y(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"), se = /* @__PURE__ */ y("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"), ce = (e) => {
|
|
83
83
|
let t = /* @__PURE__ */ Object.create(null);
|
|
84
84
|
return ((n) => t[n] || (t[n] = e(n)));
|
|
85
|
-
},
|
|
85
|
+
}, le = /-\w/g, ue = ce((e) => e.replace(le, (e) => e.slice(1).toUpperCase())), de = /\B([A-Z])/g, fe = ce((e) => e.replace(de, "-$1").toLowerCase()), pe = ce((e) => e.charAt(0).toUpperCase() + e.slice(1)), me = ce((e) => e ? `on${pe(e)}` : ""), he = (e, t) => !Object.is(e, t), ge = (e, ...t) => {
|
|
86
86
|
for (let n = 0; n < e.length; n++) e[n](...t);
|
|
87
87
|
}, _e = (e, t, n, r = !1) => {
|
|
88
88
|
Object.defineProperty(e, t, {
|
|
@@ -95,18 +95,18 @@ var b = process.env.NODE_ENV === "production" ? {} : Object.freeze({}), x = proc
|
|
|
95
95
|
let t = parseFloat(e);
|
|
96
96
|
return isNaN(t) ? e : t;
|
|
97
97
|
}, ye = (e) => {
|
|
98
|
-
let t =
|
|
98
|
+
let t = F(e) ? Number(e) : NaN;
|
|
99
99
|
return isNaN(t) ? e : t;
|
|
100
100
|
}, be, xe = () => be ||= typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
101
101
|
function Se(e) {
|
|
102
102
|
if (A(e)) {
|
|
103
103
|
let t = {};
|
|
104
104
|
for (let n = 0; n < e.length; n++) {
|
|
105
|
-
let r = e[n], i =
|
|
105
|
+
let r = e[n], i = F(r) ? Ee(r) : Se(r);
|
|
106
106
|
if (i) for (let e in i) t[e] = i[e];
|
|
107
107
|
}
|
|
108
108
|
return t;
|
|
109
|
-
} else if (
|
|
109
|
+
} else if (F(e) || L(e)) return e;
|
|
110
110
|
}
|
|
111
111
|
var Ce = /;(?![^(]*\))/g, we = /:([^]+)/, Te = /\/\*[^]*?\*\//g;
|
|
112
112
|
function Ee(e) {
|
|
@@ -120,12 +120,12 @@ function Ee(e) {
|
|
|
120
120
|
}
|
|
121
121
|
function R(e) {
|
|
122
122
|
let t = "";
|
|
123
|
-
if (
|
|
123
|
+
if (F(e)) t = e;
|
|
124
124
|
else if (A(e)) for (let n = 0; n < e.length; n++) {
|
|
125
125
|
let r = R(e[n]);
|
|
126
126
|
r && (t += r + " ");
|
|
127
127
|
}
|
|
128
|
-
else if (
|
|
128
|
+
else if (L(e)) for (let n in e) e[n] && (t += n + " ");
|
|
129
129
|
return t.trim();
|
|
130
130
|
}
|
|
131
131
|
var De = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot", Oe = "svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view", ke = "annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics", Ae = /* @__PURE__ */ y(De), je = /* @__PURE__ */ y(Oe), Me = /* @__PURE__ */ y(ke), Ne = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly", Pe = /* @__PURE__ */ y(Ne);
|
|
@@ -141,11 +141,11 @@ function Fe(e, t) {
|
|
|
141
141
|
}
|
|
142
142
|
function Ie(e, t) {
|
|
143
143
|
if (e === t) return !0;
|
|
144
|
-
let n =
|
|
144
|
+
let n = N(e), r = N(t);
|
|
145
145
|
if (n || r) return n && r ? e.getTime() === t.getTime() : !1;
|
|
146
|
-
if (n =
|
|
146
|
+
if (n = I(e), r = I(t), n || r) return e === t;
|
|
147
147
|
if (n = A(e), r = A(t), n || r) return n && r ? Fe(e, t) : !1;
|
|
148
|
-
if (n =
|
|
148
|
+
if (n = L(e), r = L(t), n || r) {
|
|
149
149
|
if (!n || !r || Object.keys(e).length !== Object.keys(t).length) return !1;
|
|
150
150
|
for (let n in e) {
|
|
151
151
|
let r = e.hasOwnProperty(n), i = t.hasOwnProperty(n);
|
|
@@ -154,7 +154,7 @@ function Ie(e, t) {
|
|
|
154
154
|
}
|
|
155
155
|
return String(e) === String(t);
|
|
156
156
|
}
|
|
157
|
-
var Le = (e) => !!(e && e.__v_isRef === !0), B = (e) =>
|
|
157
|
+
var Le = (e) => !!(e && e.__v_isRef === !0), B = (e) => F(e) ? e : e == null ? "" : A(e) || L(e) && (e.toString === te || !P(e.toString)) ? Le(e) ? B(e.value) : JSON.stringify(e, Re, 2) : String(e), Re = (e, t) => Le(t) ? Re(e, t.value) : j(t) ? { [`Map(${t.size})`]: [...t.entries()].reduce((e, [t, n], r) => (e[ze(t, r) + " =>"] = n, e), {}) } : M(t) ? { [`Set(${t.size})`]: [...t.values()].map((e) => ze(e)) } : I(t) ? ze(t) : L(t) && !A(t) && !ie(t) ? String(t) : t, ze = (e, t = "") => I(e) ? `Symbol(${e.description ?? t})` : e;
|
|
158
158
|
//#endregion
|
|
159
159
|
//#region node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
|
|
160
160
|
function Be(e, ...t) {
|
|
@@ -442,21 +442,21 @@ function vt(e, t, n, r, i, a) {
|
|
|
442
442
|
};
|
|
443
443
|
if (Xe(), t === "clear") o.forEach(s);
|
|
444
444
|
else {
|
|
445
|
-
let i = A(e), a = i &&
|
|
445
|
+
let i = A(e), a = i && ae(n);
|
|
446
446
|
if (i && n === "length") {
|
|
447
447
|
let e = Number(r);
|
|
448
448
|
o.forEach((t, n) => {
|
|
449
|
-
(n === "length" || n === gt || !
|
|
449
|
+
(n === "length" || n === gt || !I(n) && n >= e) && s(t);
|
|
450
450
|
});
|
|
451
451
|
} else switch ((n !== void 0 || o.has(void 0)) && s(o.get(n)), a && s(o.get(gt)), t) {
|
|
452
452
|
case "add":
|
|
453
|
-
i ? a && s(o.get("length")) : (s(o.get(mt)),
|
|
453
|
+
i ? a && s(o.get("length")) : (s(o.get(mt)), j(e) && s(o.get(ht)));
|
|
454
454
|
break;
|
|
455
455
|
case "delete":
|
|
456
|
-
i || (s(o.get(mt)),
|
|
456
|
+
i || (s(o.get(mt)), j(e) && s(o.get(ht)));
|
|
457
457
|
break;
|
|
458
458
|
case "set":
|
|
459
|
-
|
|
459
|
+
j(e) && s(o.get(mt));
|
|
460
460
|
break;
|
|
461
461
|
}
|
|
462
462
|
}
|
|
@@ -600,9 +600,9 @@ function Ot(e, t, n = []) {
|
|
|
600
600
|
let r = (/* @__PURE__ */ H(e))[t].apply(e, n);
|
|
601
601
|
return Ze(), st(), r;
|
|
602
602
|
}
|
|
603
|
-
var kt = /* @__PURE__ */ y("__proto__,__v_isRef,__isVue"), At = new Set(/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(
|
|
603
|
+
var kt = /* @__PURE__ */ y("__proto__,__v_isRef,__isVue"), At = new Set(/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(I));
|
|
604
604
|
function jt(e) {
|
|
605
|
-
|
|
605
|
+
I(e) || (e = String(e));
|
|
606
606
|
let t = /* @__PURE__ */ H(this);
|
|
607
607
|
return _t(t, "has", e), t.hasOwnProperty(e);
|
|
608
608
|
}
|
|
@@ -624,19 +624,19 @@ var Mt = class {
|
|
|
624
624
|
if (t === "hasOwnProperty") return jt;
|
|
625
625
|
}
|
|
626
626
|
let o = Reflect.get(e, t, /* @__PURE__ */ mn(e) ? e : n);
|
|
627
|
-
if ((
|
|
627
|
+
if ((I(t) ? At.has(t) : kt(t)) || (r || _t(e, "get", t), i)) return o;
|
|
628
628
|
if (/* @__PURE__ */ mn(o)) {
|
|
629
|
-
let e = a &&
|
|
630
|
-
return r &&
|
|
629
|
+
let e = a && ae(t) ? o : o.value;
|
|
630
|
+
return r && L(e) ? /* @__PURE__ */ rn(e) : e;
|
|
631
631
|
}
|
|
632
|
-
return
|
|
632
|
+
return L(o) ? r ? /* @__PURE__ */ rn(o) : /* @__PURE__ */ tn(o) : o;
|
|
633
633
|
}
|
|
634
634
|
}, Nt = class extends Mt {
|
|
635
635
|
constructor(e = !1) {
|
|
636
636
|
super(!1, e);
|
|
637
637
|
}
|
|
638
638
|
set(e, t, n, r) {
|
|
639
|
-
let i = e[t], a = A(e) &&
|
|
639
|
+
let i = e[t], a = A(e) && ae(t);
|
|
640
640
|
if (!this._isShallow) {
|
|
641
641
|
let r = /* @__PURE__ */ cn(i);
|
|
642
642
|
if (!/* @__PURE__ */ ln(n) && !/* @__PURE__ */ cn(n) && (i = /* @__PURE__ */ H(i), n = /* @__PURE__ */ H(n)), !a && /* @__PURE__ */ mn(i) && !/* @__PURE__ */ mn(n)) return r ? (process.env.NODE_ENV !== "production" && Be(`Set operation on key "${String(t)}" failed: target is readonly.`, e[t]), !0) : (i.value = n, !0);
|
|
@@ -650,7 +650,7 @@ var Mt = class {
|
|
|
650
650
|
}
|
|
651
651
|
has(e, t) {
|
|
652
652
|
let n = Reflect.has(e, t);
|
|
653
|
-
return (!
|
|
653
|
+
return (!I(t) || !At.has(t)) && _t(e, "has", t), n;
|
|
654
654
|
}
|
|
655
655
|
ownKeys(e) {
|
|
656
656
|
return _t(e, "iterate", A(e) ? "length" : mt), Reflect.ownKeys(e);
|
|
@@ -668,7 +668,7 @@ var Mt = class {
|
|
|
668
668
|
}, Ft = /* @__PURE__ */ new Nt(), It = /* @__PURE__ */ new Pt(), Lt = /* @__PURE__ */ new Nt(!0), Rt = /* @__PURE__ */ new Pt(!0), zt = (e) => e, Bt = (e) => Reflect.getPrototypeOf(e);
|
|
669
669
|
function Vt(e, t, n) {
|
|
670
670
|
return function(...r) {
|
|
671
|
-
let i = this.__v_raw, a = /* @__PURE__ */ H(i), o =
|
|
671
|
+
let i = this.__v_raw, a = /* @__PURE__ */ H(i), o = j(a), s = e === "entries" || e === Symbol.iterator && o, c = e === "keys" && o, l = i[e](...r), u = n ? zt : t ? pn : fn;
|
|
672
672
|
return !t && _t(a, "iterate", c ? ht : mt), E(Object.create(l), { next() {
|
|
673
673
|
let { value: e, done: t } = l.next();
|
|
674
674
|
return t ? {
|
|
@@ -737,7 +737,7 @@ function Ut(e, t) {
|
|
|
737
737
|
return i && vt(t, "delete", e, void 0, a), o;
|
|
738
738
|
},
|
|
739
739
|
clear() {
|
|
740
|
-
let e = /* @__PURE__ */ H(this), t = e.size !== 0, n = process.env.NODE_ENV === "production" ? void 0 :
|
|
740
|
+
let e = /* @__PURE__ */ H(this), t = e.size !== 0, n = process.env.NODE_ENV === "production" ? void 0 : j(e) ? new Map(e) : new Set(e), r = e.clear();
|
|
741
741
|
return t && vt(e, "clear", void 0, void 0, n), r;
|
|
742
742
|
}
|
|
743
743
|
}), [
|
|
@@ -757,7 +757,7 @@ var Gt = { get: /* @__PURE__ */ Wt(!1, !1) }, Kt = { get: /* @__PURE__ */ Wt(!1,
|
|
|
757
757
|
function Yt(e, t, n) {
|
|
758
758
|
let r = /* @__PURE__ */ H(n);
|
|
759
759
|
if (r !== n && t.call(e, r)) {
|
|
760
|
-
let t =
|
|
760
|
+
let t = re(e);
|
|
761
761
|
Be(`Reactive ${t} contains both the raw and reactive versions of the same object${t === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`);
|
|
762
762
|
}
|
|
763
763
|
}
|
|
@@ -790,11 +790,11 @@ function an(e) {
|
|
|
790
790
|
return on(e, !0, Rt, Jt, $t);
|
|
791
791
|
}
|
|
792
792
|
function on(e, t, n, r, i) {
|
|
793
|
-
if (!
|
|
793
|
+
if (!L(e)) return process.env.NODE_ENV !== "production" && Be(`value cannot be made ${t ? "readonly" : "reactive"}: ${String(e)}`), e;
|
|
794
794
|
if (e.__v_raw && !(t && e.__v_isReactive) || e.__v_skip || !Object.isExtensible(e)) return e;
|
|
795
795
|
let a = i.get(e);
|
|
796
796
|
if (a) return a;
|
|
797
|
-
let o = en(
|
|
797
|
+
let o = en(re(e));
|
|
798
798
|
if (o === 0) return e;
|
|
799
799
|
let s = new Proxy(e, o === 2 ? r : n);
|
|
800
800
|
return i.set(e, s), s;
|
|
@@ -823,7 +823,7 @@ function H(e) {
|
|
|
823
823
|
function dn(e) {
|
|
824
824
|
return !k(e, "__v_skip") && Object.isExtensible(e) && _e(e, "__v_skip", !0), e;
|
|
825
825
|
}
|
|
826
|
-
var fn = (e) =>
|
|
826
|
+
var fn = (e) => L(e) ? /* @__PURE__ */ tn(e) : e, pn = (e) => L(e) ? /* @__PURE__ */ rn(e) : e;
|
|
827
827
|
// @__NO_SIDE_EFFECTS__
|
|
828
828
|
function mn(e) {
|
|
829
829
|
return e ? e.__v_isRef === !0 : !1;
|
|
@@ -905,7 +905,7 @@ var xn = class {
|
|
|
905
905
|
// @__NO_SIDE_EFFECTS__
|
|
906
906
|
function Sn(e, t, n = !1) {
|
|
907
907
|
let r, i;
|
|
908
|
-
|
|
908
|
+
P(e) ? r = e : (r = e.get, i = e.set);
|
|
909
909
|
let a = new xn(r, i, n);
|
|
910
910
|
return process.env.NODE_ENV !== "production" && t && !n && (a.onTrack = t.onTrack, a.onTrigger = t.onTrigger), a;
|
|
911
911
|
}
|
|
@@ -923,9 +923,9 @@ function Dn(e, t, n = b) {
|
|
|
923
923
|
if (/* @__PURE__ */ mn(e) ? (f = () => e.value, h = /* @__PURE__ */ ln(e)) : /* @__PURE__ */ sn(e) ? (f = () => u(e), h = !0) : A(e) ? (g = !0, h = e.some((e) => /* @__PURE__ */ sn(e) || /* @__PURE__ */ ln(e)), f = () => e.map((e) => {
|
|
924
924
|
if (/* @__PURE__ */ mn(e)) return e.value;
|
|
925
925
|
if (/* @__PURE__ */ sn(e)) return u(e);
|
|
926
|
-
if (
|
|
926
|
+
if (P(e)) return c ? c(e, 2) : e();
|
|
927
927
|
process.env.NODE_ENV !== "production" && l(e);
|
|
928
|
-
})) :
|
|
928
|
+
})) : P(e) ? f = t ? c ? () => c(e, 2) : e : () => {
|
|
929
929
|
if (p) {
|
|
930
930
|
ot();
|
|
931
931
|
try {
|
|
@@ -985,13 +985,13 @@ function Dn(e, t, n = b) {
|
|
|
985
985
|
}, process.env.NODE_ENV !== "production" && (d.onTrack = n.onTrack, d.onTrigger = n.onTrigger), t ? r ? x(!0) : y = d.run() : o ? o(x.bind(null, !0), !0) : d.run(), v.pause = d.pause.bind(d), v.resume = d.resume.bind(d), v.stop = v, v;
|
|
986
986
|
}
|
|
987
987
|
function On(e, t = Infinity, n) {
|
|
988
|
-
if (t <= 0 || !
|
|
988
|
+
if (t <= 0 || !L(e) || e.__v_skip || (n ||= /* @__PURE__ */ new Map(), (n.get(e) || 0) >= t)) return e;
|
|
989
989
|
if (n.set(e, t), t--, /* @__PURE__ */ mn(e)) On(e.value, t, n);
|
|
990
990
|
else if (A(e)) for (let r = 0; r < e.length; r++) On(e[r], t, n);
|
|
991
|
-
else if (
|
|
991
|
+
else if (M(e) || j(e)) e.forEach((e) => {
|
|
992
992
|
On(e, t, n);
|
|
993
993
|
});
|
|
994
|
-
else if (
|
|
994
|
+
else if (ie(e)) {
|
|
995
995
|
for (let r in e) On(e[r], t, n);
|
|
996
996
|
for (let r of Object.getOwnPropertySymbols(e)) Object.prototype.propertyIsEnumerable.call(e, r) && On(e[r], t, n);
|
|
997
997
|
}
|
|
@@ -1059,11 +1059,11 @@ function In(e) {
|
|
|
1059
1059
|
}), n.length > 3 && t.push(" ..."), t;
|
|
1060
1060
|
}
|
|
1061
1061
|
function Ln(e, t, n) {
|
|
1062
|
-
return
|
|
1062
|
+
return F(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : /* @__PURE__ */ mn(t) ? (t = Ln(e, /* @__PURE__ */ H(t.value), !0), n ? t : [
|
|
1063
1063
|
`${e}=Ref<`,
|
|
1064
1064
|
t,
|
|
1065
1065
|
">"
|
|
1066
|
-
]) :
|
|
1066
|
+
]) : P(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = /* @__PURE__ */ H(t), n ? t : [`${e}=`, t]);
|
|
1067
1067
|
}
|
|
1068
1068
|
function Rn(e, t) {
|
|
1069
1069
|
process.env.NODE_ENV !== "production" && e !== void 0 && (typeof e == "number" ? isNaN(e) && G(`${t} is NaN - the duration expression might be incorrect.`) : G(`${t} is not a valid number - got ${JSON.stringify(e)}.`));
|
|
@@ -1109,9 +1109,9 @@ function Bn(e, t, n, r) {
|
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
1111
1111
|
function Vn(e, t, n, r) {
|
|
1112
|
-
if (
|
|
1112
|
+
if (P(e)) {
|
|
1113
1113
|
let i = Bn(e, t, n, r);
|
|
1114
|
-
return i &&
|
|
1114
|
+
return i && ee(i) && i.catch((e) => {
|
|
1115
1115
|
Hn(e, t, n);
|
|
1116
1116
|
}), i;
|
|
1117
1117
|
}
|
|
@@ -1353,14 +1353,14 @@ function zr(e, t = Ir, n) {
|
|
|
1353
1353
|
return r._n = !0, r._c = !0, r._d = !0, r;
|
|
1354
1354
|
}
|
|
1355
1355
|
function Br(e) {
|
|
1356
|
-
|
|
1356
|
+
se(e) && G("Do not use built-in directive ids as custom directive id: " + e);
|
|
1357
1357
|
}
|
|
1358
1358
|
function Vr(e, t) {
|
|
1359
1359
|
if (Ir === null) return process.env.NODE_ENV !== "production" && G("withDirectives can only be used inside render functions."), e;
|
|
1360
1360
|
let n = Fs(Ir), r = e.dirs ||= [];
|
|
1361
1361
|
for (let e = 0; e < t.length; e++) {
|
|
1362
1362
|
let [i, a, o, s = b] = t[e];
|
|
1363
|
-
i && (
|
|
1363
|
+
i && (P(i) && (i = {
|
|
1364
1364
|
mounted: i,
|
|
1365
1365
|
updated: i
|
|
1366
1366
|
}), i.deep && On(a), r.push({
|
|
@@ -1399,7 +1399,7 @@ function Wr(e, t, n = !1) {
|
|
|
1399
1399
|
if (r || Da) {
|
|
1400
1400
|
let i = Da ? Da._context.provides : r ? r.parent == null || r.ce ? r.vnode.appContext && r.vnode.appContext.provides : r.parent.provides : void 0;
|
|
1401
1401
|
if (i && e in i) return i[e];
|
|
1402
|
-
if (arguments.length > 1) return n &&
|
|
1402
|
+
if (arguments.length > 1) return n && P(t) ? t.call(r && r.proxy) : t;
|
|
1403
1403
|
process.env.NODE_ENV !== "production" && G(`injection "${String(e)}" not found.`);
|
|
1404
1404
|
} else process.env.NODE_ENV !== "production" && G("inject() can only be used inside setup() or functional components.");
|
|
1405
1405
|
}
|
|
@@ -1410,7 +1410,7 @@ var Gr = /* @__PURE__ */ Symbol.for("v-scx"), Kr = () => {
|
|
|
1410
1410
|
}
|
|
1411
1411
|
};
|
|
1412
1412
|
function qr(e, t, n) {
|
|
1413
|
-
return process.env.NODE_ENV !== "production" && !
|
|
1413
|
+
return process.env.NODE_ENV !== "production" && !P(t) && G("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."), Jr(e, t, n);
|
|
1414
1414
|
}
|
|
1415
1415
|
function Jr(e, t, n = b) {
|
|
1416
1416
|
let { immediate: r, deep: i, flush: a, once: o } = n;
|
|
@@ -1441,8 +1441,8 @@ function Jr(e, t, n = b) {
|
|
|
1441
1441
|
return ws && (l ? l.push(f) : c && f()), f;
|
|
1442
1442
|
}
|
|
1443
1443
|
function Yr(e, t, n) {
|
|
1444
|
-
let r = this.proxy, i =
|
|
1445
|
-
|
|
1444
|
+
let r = this.proxy, i = F(e) ? e.includes(".") ? Xr(r, e) : () => r[e] : e.bind(r, r), a;
|
|
1445
|
+
P(t) ? a = t : (a = t.handler, n = t);
|
|
1446
1446
|
let o = ys(this), s = Jr(i, a.bind(r), n);
|
|
1447
1447
|
return o(), s;
|
|
1448
1448
|
}
|
|
@@ -1456,7 +1456,7 @@ function Xr(e, t) {
|
|
|
1456
1456
|
}
|
|
1457
1457
|
var Zr = /* @__PURE__ */ new WeakMap(), Qr = /* @__PURE__ */ Symbol("_vte"), $r = (e) => e.__isTeleport, ei = (e) => e && (e.disabled || e.disabled === ""), ti = (e) => e && (e.defer || e.defer === ""), ni = (e) => typeof SVGElement < "u" && e instanceof SVGElement, ri = (e) => typeof MathMLElement == "function" && e instanceof MathMLElement, ii = (e, t) => {
|
|
1458
1458
|
let n = e && e.to;
|
|
1459
|
-
if (
|
|
1459
|
+
if (F(n)) if (t) {
|
|
1460
1460
|
let r = t(n);
|
|
1461
1461
|
return process.env.NODE_ENV !== "production" && !r && !ei(e) && G(`Failed to locate Teleport target with selector "${n}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`), r;
|
|
1462
1462
|
} else return process.env.NODE_ENV !== "production" && G("Current renderer does not support string target for Teleports. (missing querySelector renderer option)"), null;
|
|
@@ -1702,7 +1702,7 @@ function Ci(e) {
|
|
|
1702
1702
|
let { shapeFlag: t, children: n } = e;
|
|
1703
1703
|
if (n) {
|
|
1704
1704
|
if (t & 16) return n[0];
|
|
1705
|
-
if (t & 32 &&
|
|
1705
|
+
if (t & 32 && P(n.default)) return n.default();
|
|
1706
1706
|
}
|
|
1707
1707
|
}
|
|
1708
1708
|
function wi(e, t) {
|
|
@@ -1719,7 +1719,7 @@ function Ti(e, t = !1, n) {
|
|
|
1719
1719
|
}
|
|
1720
1720
|
// @__NO_SIDE_EFFECTS__
|
|
1721
1721
|
function Ei(e, t) {
|
|
1722
|
-
return
|
|
1722
|
+
return P(e) ? /* @__PURE__ */ E({ name: e.name }, t, { setup: e }) : e;
|
|
1723
1723
|
}
|
|
1724
1724
|
function Di(e) {
|
|
1725
1725
|
e.ids = [
|
|
@@ -1750,13 +1750,13 @@ function ji(e, t, n, r, i = !1) {
|
|
|
1750
1750
|
}
|
|
1751
1751
|
let l = t && t.r, u = s.refs === b ? s.refs = {} : s.refs, d = s.setupState, f = /* @__PURE__ */ H(d), p = d === b ? C : (e) => process.env.NODE_ENV !== "production" && (k(f, e) && !/* @__PURE__ */ mn(f[e]) && G(`Template ref "${e}" used on a non-ref value. It will not work in the production build.`), Oi.has(f[e])) || ki(u, e) ? !1 : k(f, e), m = (e, t) => !(process.env.NODE_ENV !== "production" && Oi.has(e) || t && ki(u, t));
|
|
1752
1752
|
if (l != null && l !== c) {
|
|
1753
|
-
if (Mi(t),
|
|
1753
|
+
if (Mi(t), F(l)) u[l] = null, p(l) && (d[l] = null);
|
|
1754
1754
|
else if (/* @__PURE__ */ mn(l)) {
|
|
1755
1755
|
let e = t;
|
|
1756
1756
|
m(l, e.k) && (l.value = null), e.k && (u[e.k] = null);
|
|
1757
1757
|
}
|
|
1758
1758
|
}
|
|
1759
|
-
if (
|
|
1759
|
+
if (P(c)) {
|
|
1760
1760
|
ot();
|
|
1761
1761
|
try {
|
|
1762
1762
|
Bn(c, s, 12, [o, u]);
|
|
@@ -1764,7 +1764,7 @@ function ji(e, t, n, r, i = !1) {
|
|
|
1764
1764
|
st();
|
|
1765
1765
|
}
|
|
1766
1766
|
} else {
|
|
1767
|
-
let t =
|
|
1767
|
+
let t = F(c), r = /* @__PURE__ */ mn(c);
|
|
1768
1768
|
if (t || r) {
|
|
1769
1769
|
let s = () => {
|
|
1770
1770
|
if (e.f) {
|
|
@@ -1838,7 +1838,7 @@ function Xi(e, t = hs) {
|
|
|
1838
1838
|
var Zi = /* @__PURE__ */ Symbol.for("v-ndc");
|
|
1839
1839
|
function Qi(e, t, n, r) {
|
|
1840
1840
|
let i, a = n && n[r], o = A(e);
|
|
1841
|
-
if (o ||
|
|
1841
|
+
if (o || F(e)) {
|
|
1842
1842
|
let n = o && /* @__PURE__ */ sn(e), r = !1, s = !1;
|
|
1843
1843
|
n && (r = !/* @__PURE__ */ ln(e), s = /* @__PURE__ */ cn(e), e = bt(e)), i = Array(e.length);
|
|
1844
1844
|
for (let n = 0, o = e.length; n < o; n++) i[n] = t(r ? s ? pn(fn(e[n])) : fn(e[n]) : e[n], n, void 0, a && a[n]);
|
|
@@ -1847,7 +1847,7 @@ function Qi(e, t, n, r) {
|
|
|
1847
1847
|
i = Array(e);
|
|
1848
1848
|
for (let n = 0; n < e; n++) i[n] = t(n + 1, n, void 0, a && a[n]);
|
|
1849
1849
|
}
|
|
1850
|
-
else if (
|
|
1850
|
+
else if (L(e)) if (e[Symbol.iterator]) i = Array.from(e, (e, n) => t(e, n, void 0, a && a[n]));
|
|
1851
1851
|
else {
|
|
1852
1852
|
let n = Object.keys(e);
|
|
1853
1853
|
i = Array(n.length);
|
|
@@ -1901,7 +1901,7 @@ var $i = (e) => e ? Cs(e) ? Fs(e) : $i(e.parent) : null, ea = /* @__PURE__ */ E(
|
|
|
1901
1901
|
if ((u = s.__cssModules) && (u = u[t])) return u;
|
|
1902
1902
|
if (n !== b && k(n, t)) return o[t] = 4, n[t];
|
|
1903
1903
|
if (d = c.config.globalProperties, k(d, t)) return d[t];
|
|
1904
|
-
process.env.NODE_ENV !== "production" && Ir && (!
|
|
1904
|
+
process.env.NODE_ENV !== "production" && Ir && (!F(t) || t.indexOf("__v") !== 0) && (i !== b && ta(t[0]) && k(i, t) ? G(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`) : e === Ir && G(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`));
|
|
1905
1905
|
},
|
|
1906
1906
|
set({ _: e }, t, n) {
|
|
1907
1907
|
let { data: r, setupState: i, ctx: a } = e;
|
|
@@ -1976,25 +1976,25 @@ var la = !0;
|
|
|
1976
1976
|
function ua(e) {
|
|
1977
1977
|
let t = ma(e), n = e.proxy, r = e.ctx;
|
|
1978
1978
|
la = !1, t.beforeCreate && fa(t.beforeCreate, e, "bc");
|
|
1979
|
-
let { data: i, computed: a, methods: o, watch: s, provide: c, inject: l, created: u, beforeMount: d, mounted: f, beforeUpdate: p, updated: m, activated: h, deactivated: g, beforeDestroy: _, beforeUnmount: v, destroyed: y, unmounted: b, render: x, renderTracked: C, renderTriggered: w, errorCaptured: T, serverPrefetch: E, expose: D, inheritAttrs: O, components: k, directives:
|
|
1979
|
+
let { data: i, computed: a, methods: o, watch: s, provide: c, inject: l, created: u, beforeMount: d, mounted: f, beforeUpdate: p, updated: m, activated: h, deactivated: g, beforeDestroy: _, beforeUnmount: v, destroyed: y, unmounted: b, render: x, renderTracked: C, renderTriggered: w, errorCaptured: T, serverPrefetch: E, expose: D, inheritAttrs: O, components: k, directives: j, filters: M } = t, N = process.env.NODE_ENV === "production" ? null : ca();
|
|
1980
1980
|
if (process.env.NODE_ENV !== "production") {
|
|
1981
1981
|
let [t] = e.propsOptions;
|
|
1982
|
-
if (t) for (let e in t)
|
|
1982
|
+
if (t) for (let e in t) N("Props", e);
|
|
1983
1983
|
}
|
|
1984
|
-
if (l && da(l, r,
|
|
1984
|
+
if (l && da(l, r, N), o) for (let e in o) {
|
|
1985
1985
|
let t = o[e];
|
|
1986
|
-
|
|
1986
|
+
P(t) ? (process.env.NODE_ENV === "production" ? r[e] = t.bind(n) : Object.defineProperty(r, e, {
|
|
1987
1987
|
value: t.bind(n),
|
|
1988
1988
|
configurable: !0,
|
|
1989
1989
|
enumerable: !0,
|
|
1990
1990
|
writable: !0
|
|
1991
|
-
}), process.env.NODE_ENV !== "production" &&
|
|
1991
|
+
}), process.env.NODE_ENV !== "production" && N("Methods", e)) : process.env.NODE_ENV !== "production" && G(`Method "${e}" has type "${typeof t}" in the component definition. Did you reference the function correctly?`);
|
|
1992
1992
|
}
|
|
1993
1993
|
if (i) {
|
|
1994
|
-
process.env.NODE_ENV !== "production" && !
|
|
1994
|
+
process.env.NODE_ENV !== "production" && !P(i) && G("The data option must be a function. Plain object usage is no longer supported.");
|
|
1995
1995
|
let t = i.call(n, n);
|
|
1996
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1997
|
-
else if (e.data = /* @__PURE__ */ tn(t), process.env.NODE_ENV !== "production") for (let e in t)
|
|
1996
|
+
if (process.env.NODE_ENV !== "production" && ee(t) && G("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."), !L(t)) process.env.NODE_ENV !== "production" && G("data() should return an object.");
|
|
1997
|
+
else if (e.data = /* @__PURE__ */ tn(t), process.env.NODE_ENV !== "production") for (let e in t) N("Data", e), ta(e[0]) || Object.defineProperty(r, e, {
|
|
1998
1998
|
configurable: !0,
|
|
1999
1999
|
enumerable: !0,
|
|
2000
2000
|
get: () => t[e],
|
|
@@ -2002,11 +2002,11 @@ function ua(e) {
|
|
|
2002
2002
|
});
|
|
2003
2003
|
}
|
|
2004
2004
|
if (la = !0, a) for (let e in a) {
|
|
2005
|
-
let t = a[e], i =
|
|
2005
|
+
let t = a[e], i = P(t) ? t.bind(n, n) : P(t.get) ? t.get.bind(n, n) : S;
|
|
2006
2006
|
process.env.NODE_ENV !== "production" && i === S && G(`Computed property "${e}" has no getter.`);
|
|
2007
2007
|
let o = Vs({
|
|
2008
2008
|
get: i,
|
|
2009
|
-
set: !
|
|
2009
|
+
set: !P(t) && P(t.set) ? t.set.bind(n) : process.env.NODE_ENV === "production" ? S : () => {
|
|
2010
2010
|
G(`Write operation failed: computed property "${e}" is readonly.`);
|
|
2011
2011
|
}
|
|
2012
2012
|
});
|
|
@@ -2015,20 +2015,20 @@ function ua(e) {
|
|
|
2015
2015
|
configurable: !0,
|
|
2016
2016
|
get: () => o.value,
|
|
2017
2017
|
set: (e) => o.value = e
|
|
2018
|
-
}), process.env.NODE_ENV !== "production" &&
|
|
2018
|
+
}), process.env.NODE_ENV !== "production" && N("Computed", e);
|
|
2019
2019
|
}
|
|
2020
2020
|
if (s) for (let e in s) pa(s[e], r, n, e);
|
|
2021
2021
|
if (c) {
|
|
2022
|
-
let e =
|
|
2022
|
+
let e = P(c) ? c.call(n) : c;
|
|
2023
2023
|
Reflect.ownKeys(e).forEach((t) => {
|
|
2024
2024
|
Ur(t, e[t]);
|
|
2025
2025
|
});
|
|
2026
2026
|
}
|
|
2027
2027
|
u && fa(u, e, "c");
|
|
2028
|
-
function
|
|
2028
|
+
function F(e, t) {
|
|
2029
2029
|
A(t) ? t.forEach((t) => e(t.bind(n))) : t && e(t.bind(n));
|
|
2030
2030
|
}
|
|
2031
|
-
if (
|
|
2031
|
+
if (F(Vi, d), F(Hi, f), F(Ui, p), F(Wi, m), F(Fi, h), F(Ii, g), F(Xi, T), F(Yi, C), F(Ji, w), F(Gi, v), F(Ki, b), F(qi, E), A(D)) if (D.length) {
|
|
2032
2032
|
let t = e.exposed ||= {};
|
|
2033
2033
|
D.forEach((e) => {
|
|
2034
2034
|
Object.defineProperty(t, e, {
|
|
@@ -2038,13 +2038,13 @@ function ua(e) {
|
|
|
2038
2038
|
});
|
|
2039
2039
|
});
|
|
2040
2040
|
} else e.exposed ||= {};
|
|
2041
|
-
x && e.render === S && (e.render = x), O != null && (e.inheritAttrs = O), k && (e.components = k),
|
|
2041
|
+
x && e.render === S && (e.render = x), O != null && (e.inheritAttrs = O), k && (e.components = k), j && (e.directives = j), E && Di(e);
|
|
2042
2042
|
}
|
|
2043
2043
|
function da(e, t, n = S) {
|
|
2044
2044
|
A(e) && (e = ya(e));
|
|
2045
2045
|
for (let r in e) {
|
|
2046
2046
|
let i = e[r], a;
|
|
2047
|
-
a =
|
|
2047
|
+
a = L(i) ? "default" in i ? Wr(i.from || r, i.default, !0) : Wr(i.from || r) : Wr(i), /* @__PURE__ */ mn(a) ? Object.defineProperty(t, r, {
|
|
2048
2048
|
enumerable: !0,
|
|
2049
2049
|
configurable: !0,
|
|
2050
2050
|
get: () => a.value,
|
|
@@ -2057,20 +2057,20 @@ function fa(e, t, n) {
|
|
|
2057
2057
|
}
|
|
2058
2058
|
function pa(e, t, n, r) {
|
|
2059
2059
|
let i = r.includes(".") ? Xr(n, r) : () => n[r];
|
|
2060
|
-
if (
|
|
2060
|
+
if (F(e)) {
|
|
2061
2061
|
let n = t[e];
|
|
2062
|
-
|
|
2063
|
-
} else if (
|
|
2064
|
-
else if (
|
|
2062
|
+
P(n) ? qr(i, n) : process.env.NODE_ENV !== "production" && G(`Invalid watch handler specified by key "${e}"`, n);
|
|
2063
|
+
} else if (P(e)) qr(i, e.bind(n));
|
|
2064
|
+
else if (L(e)) if (A(e)) e.forEach((e) => pa(e, t, n, r));
|
|
2065
2065
|
else {
|
|
2066
|
-
let r =
|
|
2067
|
-
|
|
2066
|
+
let r = P(e.handler) ? e.handler.bind(n) : t[e.handler];
|
|
2067
|
+
P(r) ? qr(i, r, e) : process.env.NODE_ENV !== "production" && G(`Invalid watch handler specified by key "${e.handler}"`, r);
|
|
2068
2068
|
}
|
|
2069
2069
|
else process.env.NODE_ENV !== "production" && G(`Invalid watch option: "${r}"`, e);
|
|
2070
2070
|
}
|
|
2071
2071
|
function ma(e) {
|
|
2072
2072
|
let t = e.type, { mixins: n, extends: r } = t, { mixins: i, optionsCache: a, config: { optionMergeStrategies: o } } = e.appContext, s = a.get(t), c;
|
|
2073
|
-
return s ? c = s : !i.length && !n && !r ? c = t : (c = {}, i.length && i.forEach((e) => ha(c, e, o, !0)), ha(c, t, o)),
|
|
2073
|
+
return s ? c = s : !i.length && !n && !r ? c = t : (c = {}, i.length && i.forEach((e) => ha(c, e, o, !0)), ha(c, t, o)), L(t) && a.set(t, c), c;
|
|
2074
2074
|
}
|
|
2075
2075
|
function ha(e, t, n, r = !1) {
|
|
2076
2076
|
let { mixins: i, extends: a } = t;
|
|
@@ -2110,7 +2110,7 @@ var ga = {
|
|
|
2110
2110
|
};
|
|
2111
2111
|
function _a(e, t) {
|
|
2112
2112
|
return t ? e ? function() {
|
|
2113
|
-
return E(
|
|
2113
|
+
return E(P(e) ? e.call(this, this) : e, P(t) ? t.call(this, this) : t);
|
|
2114
2114
|
} : t : e;
|
|
2115
2115
|
}
|
|
2116
2116
|
function va(e, t) {
|
|
@@ -2164,7 +2164,7 @@ function wa() {
|
|
|
2164
2164
|
var Ta = 0;
|
|
2165
2165
|
function Ea(e, t) {
|
|
2166
2166
|
return function(n, r = null) {
|
|
2167
|
-
|
|
2167
|
+
P(n) || (n = E({}, n)), r != null && !L(r) && (process.env.NODE_ENV !== "production" && G("root props passed to app.mount() must be an object."), r = null);
|
|
2168
2168
|
let i = wa(), a = /* @__PURE__ */ new WeakSet(), o = [], s = !1, c = i.app = {
|
|
2169
2169
|
_uid: Ta++,
|
|
2170
2170
|
_component: n,
|
|
@@ -2180,7 +2180,7 @@ function Ea(e, t) {
|
|
|
2180
2180
|
process.env.NODE_ENV !== "production" && G("app.config cannot be replaced. Modify individual options instead.");
|
|
2181
2181
|
},
|
|
2182
2182
|
use(e, ...t) {
|
|
2183
|
-
return a.has(e) ? process.env.NODE_ENV !== "production" && G("Plugin has already been applied to target app.") : e &&
|
|
2183
|
+
return a.has(e) ? process.env.NODE_ENV !== "production" && G("Plugin has already been applied to target app.") : e && P(e.install) ? (a.add(e), e.install(c, ...t)) : P(e) ? (a.add(e), e(c, ...t)) : process.env.NODE_ENV !== "production" && G("A plugin must either be a function or an object with an \"install\" function."), c;
|
|
2184
2184
|
},
|
|
2185
2185
|
mixin(e) {
|
|
2186
2186
|
return i.mixins.includes(e) ? process.env.NODE_ENV !== "production" && G("Mixin has already been applied to target app" + (e.name ? `: ${e.name}` : "")) : i.mixins.push(e), c;
|
|
@@ -2224,24 +2224,24 @@ function Ea(e, t) {
|
|
|
2224
2224
|
return c;
|
|
2225
2225
|
};
|
|
2226
2226
|
}
|
|
2227
|
-
var Da = null, Oa = (e, t) => t === "modelValue" || t === "model-value" ? e.modelModifiers : e[`${t}Modifiers`] || e[`${
|
|
2227
|
+
var Da = null, Oa = (e, t) => t === "modelValue" || t === "model-value" ? e.modelModifiers : e[`${t}Modifiers`] || e[`${ue(t)}Modifiers`] || e[`${fe(t)}Modifiers`];
|
|
2228
2228
|
function ka(e, t, ...n) {
|
|
2229
2229
|
if (e.isUnmounted) return;
|
|
2230
2230
|
let r = e.vnode.props || b;
|
|
2231
2231
|
if (process.env.NODE_ENV !== "production") {
|
|
2232
2232
|
let { emitsOptions: r, propsOptions: [i] } = e;
|
|
2233
|
-
if (r) if (!(t in r)) (!i || !(me(
|
|
2233
|
+
if (r) if (!(t in r)) (!i || !(me(ue(t)) in i)) && G(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${me(ue(t))}" prop.`);
|
|
2234
2234
|
else {
|
|
2235
2235
|
let e = r[t];
|
|
2236
|
-
|
|
2236
|
+
P(e) && (e(...n) || G(`Invalid event arguments: event validation failed for event "${t}".`));
|
|
2237
2237
|
}
|
|
2238
2238
|
}
|
|
2239
2239
|
let i = n, a = t.startsWith("update:"), o = a && Oa(r, t.slice(7));
|
|
2240
|
-
if (o && (o.trim && (i = n.map((e) =>
|
|
2240
|
+
if (o && (o.trim && (i = n.map((e) => F(e) ? e.trim() : e)), o.number && (i = n.map(ve))), process.env.NODE_ENV !== "production" && Fr(e, t, i), process.env.NODE_ENV !== "production") {
|
|
2241
2241
|
let n = t.toLowerCase();
|
|
2242
2242
|
n !== t && r[me(n)] && G(`Event "${n}" is emitted in component ${zs(e, e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${fe(t)}" instead of "${t}".`);
|
|
2243
2243
|
}
|
|
2244
|
-
let s, c = r[s = me(t)] || r[s = me(
|
|
2244
|
+
let s, c = r[s = me(t)] || r[s = me(ue(t))];
|
|
2245
2245
|
!c && a && (c = r[s = me(fe(t))]), c && Vn(c, e, 6, i);
|
|
2246
2246
|
let l = r[s + "Once"];
|
|
2247
2247
|
if (l) {
|
|
@@ -2255,14 +2255,14 @@ function ja(e, t, n = !1) {
|
|
|
2255
2255
|
let r = n ? Aa : t.emitsCache, i = r.get(e);
|
|
2256
2256
|
if (i !== void 0) return i;
|
|
2257
2257
|
let a = e.emits, o = {}, s = !1;
|
|
2258
|
-
if (!
|
|
2258
|
+
if (!P(e)) {
|
|
2259
2259
|
let r = (e) => {
|
|
2260
2260
|
let n = ja(e, t, !0);
|
|
2261
2261
|
n && (s = !0, E(o, n));
|
|
2262
2262
|
};
|
|
2263
2263
|
!n && t.mixins.length && t.mixins.forEach(r), e.extends && r(e.extends), e.mixins && e.mixins.forEach(r);
|
|
2264
2264
|
}
|
|
2265
|
-
return !a && !s ? (
|
|
2265
|
+
return !a && !s ? (L(e) && r.set(e, null), null) : (A(a) ? a.forEach((e) => o[e] = null) : E(o, a), L(e) && r.set(e, o), o);
|
|
2266
2266
|
}
|
|
2267
2267
|
function Ma(e, t) {
|
|
2268
2268
|
return !e || !w(t) ? !1 : (t = t.slice(2), t = t === "Once" ? t : t.replace(/Once$/, ""), k(e, t[0].toLowerCase() + t.slice(1)) || k(e, fe(t)) || k(e, t));
|
|
@@ -2372,7 +2372,7 @@ function Ha(e, t, n) {
|
|
|
2372
2372
|
}
|
|
2373
2373
|
function Ua(e, t, n) {
|
|
2374
2374
|
let r = e[n], i = t[n];
|
|
2375
|
-
return n === "style" &&
|
|
2375
|
+
return n === "style" && L(r) && L(i) ? !Ie(r, i) : r !== i;
|
|
2376
2376
|
}
|
|
2377
2377
|
function Wa({ vnode: e, parent: t, suspense: n }, r) {
|
|
2378
2378
|
for (; t;) {
|
|
@@ -2406,7 +2406,7 @@ function Xa(e, t, n, r) {
|
|
|
2406
2406
|
let u = t[o];
|
|
2407
2407
|
if (c) if (k(a, o)) u !== a[o] && (a[o] = u, l = !0);
|
|
2408
2408
|
else {
|
|
2409
|
-
let t =
|
|
2409
|
+
let t = ue(o);
|
|
2410
2410
|
i[t] = Qa(c, s, t, u, e, !1);
|
|
2411
2411
|
}
|
|
2412
2412
|
else u !== a[o] && (a[o] = u, l = !0);
|
|
@@ -2423,9 +2423,9 @@ function Xa(e, t, n, r) {
|
|
|
2423
2423
|
function Za(e, t, n, r) {
|
|
2424
2424
|
let [i, a] = e.propsOptions, o = !1, s;
|
|
2425
2425
|
if (t) for (let c in t) {
|
|
2426
|
-
if (
|
|
2426
|
+
if (oe(c)) continue;
|
|
2427
2427
|
let l = t[c], u;
|
|
2428
|
-
i && k(i, u =
|
|
2428
|
+
i && k(i, u = ue(c)) ? !a || !a.includes(u) ? n[u] = l : (s ||= {})[u] = l : Ma(e.emitsOptions, c) || (!(c in r) || l !== r[c]) && (r[c] = l, o = !0);
|
|
2429
2429
|
}
|
|
2430
2430
|
if (a) {
|
|
2431
2431
|
let t = /* @__PURE__ */ H(n), r = s || b;
|
|
@@ -2442,7 +2442,7 @@ function Qa(e, t, n, r, i, a) {
|
|
|
2442
2442
|
let e = k(o, "default");
|
|
2443
2443
|
if (e && r === void 0) {
|
|
2444
2444
|
let e = o.default;
|
|
2445
|
-
if (o.type !== Function && !o.skipFactory &&
|
|
2445
|
+
if (o.type !== Function && !o.skipFactory && P(e)) {
|
|
2446
2446
|
let { propsDefaults: a } = i;
|
|
2447
2447
|
if (n in a) r = a[n];
|
|
2448
2448
|
else {
|
|
@@ -2461,7 +2461,7 @@ function eo(e, t, n = !1) {
|
|
|
2461
2461
|
let r = n ? $a : t.propsCache, i = r.get(e);
|
|
2462
2462
|
if (i) return i;
|
|
2463
2463
|
let a = e.props, o = {}, s = [], c = !1;
|
|
2464
|
-
if (!
|
|
2464
|
+
if (!P(e)) {
|
|
2465
2465
|
let r = (e) => {
|
|
2466
2466
|
c = !0;
|
|
2467
2467
|
let [n, r] = eo(e, t, !0);
|
|
@@ -2469,41 +2469,41 @@ function eo(e, t, n = !1) {
|
|
|
2469
2469
|
};
|
|
2470
2470
|
!n && t.mixins.length && t.mixins.forEach(r), e.extends && r(e.extends), e.mixins && e.mixins.forEach(r);
|
|
2471
2471
|
}
|
|
2472
|
-
if (!a && !c) return
|
|
2472
|
+
if (!a && !c) return L(e) && r.set(e, x), x;
|
|
2473
2473
|
if (A(a)) for (let e = 0; e < a.length; e++) {
|
|
2474
|
-
process.env.NODE_ENV !== "production" && !
|
|
2475
|
-
let t =
|
|
2474
|
+
process.env.NODE_ENV !== "production" && !F(a[e]) && G("props must be strings when using array syntax.", a[e]);
|
|
2475
|
+
let t = ue(a[e]);
|
|
2476
2476
|
to(t) && (o[t] = b);
|
|
2477
2477
|
}
|
|
2478
2478
|
else if (a) {
|
|
2479
|
-
process.env.NODE_ENV !== "production" && !
|
|
2479
|
+
process.env.NODE_ENV !== "production" && !L(a) && G("invalid props options", a);
|
|
2480
2480
|
for (let e in a) {
|
|
2481
|
-
let t =
|
|
2481
|
+
let t = ue(e);
|
|
2482
2482
|
if (to(t)) {
|
|
2483
|
-
let n = a[e], r = o[t] = A(n) ||
|
|
2483
|
+
let n = a[e], r = o[t] = A(n) || P(n) ? { type: n } : E({}, n), i = r.type, c = !1, l = !0;
|
|
2484
2484
|
if (A(i)) for (let e = 0; e < i.length; ++e) {
|
|
2485
|
-
let t = i[e], n =
|
|
2485
|
+
let t = i[e], n = P(t) && t.name;
|
|
2486
2486
|
if (n === "Boolean") {
|
|
2487
2487
|
c = !0;
|
|
2488
2488
|
break;
|
|
2489
2489
|
} else n === "String" && (l = !1);
|
|
2490
2490
|
}
|
|
2491
|
-
else c =
|
|
2491
|
+
else c = P(i) && i.name === "Boolean";
|
|
2492
2492
|
r[0] = c, r[1] = l, (c || k(r, "default")) && s.push(t);
|
|
2493
2493
|
}
|
|
2494
2494
|
}
|
|
2495
2495
|
}
|
|
2496
2496
|
let l = [o, s];
|
|
2497
|
-
return
|
|
2497
|
+
return L(e) && r.set(e, l), l;
|
|
2498
2498
|
}
|
|
2499
2499
|
function to(e) {
|
|
2500
|
-
return e[0] !== "$" && !
|
|
2500
|
+
return e[0] !== "$" && !oe(e) ? !0 : (process.env.NODE_ENV !== "production" && G(`Invalid prop name: "${e}" is a reserved property.`), !1);
|
|
2501
2501
|
}
|
|
2502
2502
|
function no(e) {
|
|
2503
2503
|
return e === null ? "null" : typeof e == "function" ? e.name || "" : typeof e == "object" && e.constructor && e.constructor.name || "";
|
|
2504
2504
|
}
|
|
2505
2505
|
function ro(e, t, n) {
|
|
2506
|
-
let r = /* @__PURE__ */ H(t), i = n.propsOptions[0], a = Object.keys(e).map((e) =>
|
|
2506
|
+
let r = /* @__PURE__ */ H(t), i = n.propsOptions[0], a = Object.keys(e).map((e) => ue(e));
|
|
2507
2507
|
for (let e in i) {
|
|
2508
2508
|
let t = i[e];
|
|
2509
2509
|
t != null && io(e, r[e], t, process.env.NODE_ENV === "production" ? r : /* @__PURE__ */ an(r), !a.includes(e));
|
|
@@ -2537,7 +2537,7 @@ function oo(e, t) {
|
|
|
2537
2537
|
else if (ao(r)) {
|
|
2538
2538
|
let i = typeof e;
|
|
2539
2539
|
n = i === r.toLowerCase(), !n && i === "object" && (n = e instanceof t);
|
|
2540
|
-
} else n = r === "Object" ?
|
|
2540
|
+
} else n = r === "Object" ? L(e) : r === "Array" ? A(e) : e instanceof t;
|
|
2541
2541
|
return {
|
|
2542
2542
|
valid: n,
|
|
2543
2543
|
expectedType: r
|
|
@@ -2545,11 +2545,11 @@ function oo(e, t) {
|
|
|
2545
2545
|
}
|
|
2546
2546
|
function so(e, t, n) {
|
|
2547
2547
|
if (n.length === 0) return `Prop type [] for prop "${e}" won't match anything. Did you mean to use type Array instead?`;
|
|
2548
|
-
let r = `Invalid prop: type check failed for prop "${e}". Expected ${n.map(pe).join(" | ")}`, i = n[0], a =
|
|
2548
|
+
let r = `Invalid prop: type check failed for prop "${e}". Expected ${n.map(pe).join(" | ")}`, i = n[0], a = re(t), o = co(t, i), s = co(t, a);
|
|
2549
2549
|
return n.length === 1 && lo(i) && uo(i, a) && (r += ` with value ${o}`), r += `, got ${a} `, lo(a) && (r += `with value ${s}.`), r;
|
|
2550
2550
|
}
|
|
2551
2551
|
function co(e, t) {
|
|
2552
|
-
return
|
|
2552
|
+
return I(e) ? e.toString() : t === "String" ? `"${e}"` : t === "Number" ? `${Number(e)}` : `${e}`;
|
|
2553
2553
|
}
|
|
2554
2554
|
function lo(e) {
|
|
2555
2555
|
return [
|
|
@@ -2573,7 +2573,7 @@ var fo = (e) => e === "_" || e === "_ctx" || e === "$stable", po = (e) => A(e) ?
|
|
|
2573
2573
|
for (let n in e) {
|
|
2574
2574
|
if (fo(n)) continue;
|
|
2575
2575
|
let i = e[n];
|
|
2576
|
-
if (
|
|
2576
|
+
if (P(i)) t[n] = mo(n, i, r);
|
|
2577
2577
|
else if (i != null) {
|
|
2578
2578
|
process.env.NODE_ENV !== "production" && G(`Non-function value encountered for slot "${n}". Prefer function slots for better performance.`);
|
|
2579
2579
|
let e = po(i);
|
|
@@ -2632,7 +2632,7 @@ function Oo(e, t) {
|
|
|
2632
2632
|
n.__VUE__ = !0, process.env.NODE_ENV !== "production" && wr(n.__VUE_DEVTOOLS_GLOBAL_HOOK__, n);
|
|
2633
2633
|
let { insert: r, remove: i, patchProp: a, createElement: o, createText: s, createComment: c, setText: l, setElementText: u, parentNode: d, nextSibling: f, setScopeId: p = S, insertStaticContent: m } = e, h = (e, t, n, r = null, i = null, a = null, o = void 0, s = null, c = process.env.NODE_ENV !== "production" && cr ? !1 : !!t.dynamicChildren) => {
|
|
2634
2634
|
if (e === t) return;
|
|
2635
|
-
e && !Xo(e, t) && (r =
|
|
2635
|
+
e && !Xo(e, t) && (r = ue(e), ie(e, i, a, !0), e = null), t.patchFlag === -2 && (c = !1, t.dynamicChildren = null);
|
|
2636
2636
|
let { type: l, ref: u, shapeFlag: d } = t;
|
|
2637
2637
|
switch (l) {
|
|
2638
2638
|
case zo:
|
|
@@ -2645,9 +2645,9 @@ function Oo(e, t) {
|
|
|
2645
2645
|
e == null ? v(t, n, r, o) : process.env.NODE_ENV !== "production" && y(e, t, n, o);
|
|
2646
2646
|
break;
|
|
2647
2647
|
case K:
|
|
2648
|
-
|
|
2648
|
+
M(e, t, n, r, i, a, o, s, c);
|
|
2649
2649
|
break;
|
|
2650
|
-
default: d & 1 ? T(e, t, n, r, i, a, o, s, c) : d & 6 ?
|
|
2650
|
+
default: d & 1 ? T(e, t, n, r, i, a, o, s, c) : d & 6 ? N(e, t, n, r, i, a, o, s, c) : d & 64 || d & 128 ? l.process(e, t, n, r, i, a, o, s, c, pe) : process.env.NODE_ENV !== "production" && G("Invalid VNode type:", l, `(${typeof l})`);
|
|
2651
2651
|
}
|
|
2652
2652
|
u != null && i ? ji(u, e && e.ref, a, t || e, !t) : u == null && e && e.ref != null && ji(e.ref, null, a, e, !0);
|
|
2653
2653
|
}, g = (e, t, n, i) => {
|
|
@@ -2686,7 +2686,7 @@ function Oo(e, t) {
|
|
|
2686
2686
|
}, E = (e, t, n, i, s, c, l, d) => {
|
|
2687
2687
|
let f, p, { props: m, shapeFlag: h, transition: g, dirs: _ } = e;
|
|
2688
2688
|
if (f = e.el = o(e.type, c, m && m.is, m), h & 8 ? u(f, e.children) : h & 16 && O(e.children, f, null, i, s, ko(e, c), l, d), _ && Hr(e, null, i, "created"), D(f, e, e.scopeId, l, i), m) {
|
|
2689
|
-
for (let e in m) e !== "value" && !
|
|
2689
|
+
for (let e in m) e !== "value" && !oe(e) && a(f, e, null, m[e], c, i);
|
|
2690
2690
|
"value" in m && a(f, "value", null, m.value, c), (p = m.onVnodeBeforeMount) && ds(p, i, e);
|
|
2691
2691
|
}
|
|
2692
2692
|
process.env.NODE_ENV !== "production" && (_e(f, "__vnode", e, !0), _e(f, "__vueParentComponent", i, !0)), _ && Hr(e, null, i, "beforeMount");
|
|
@@ -2723,8 +2723,8 @@ function Oo(e, t) {
|
|
|
2723
2723
|
let { patchFlag: l, dynamicChildren: d, dirs: f } = t;
|
|
2724
2724
|
l |= e.patchFlag & 16;
|
|
2725
2725
|
let p = e.props || b, m = t.props || b, h;
|
|
2726
|
-
if (n && Ao(n, !1), (h = m.onVnodeBeforeUpdate) && ds(h, n, t, e), f && Hr(t, e, n, "beforeUpdate"), n && Ao(n, !0), (process.env.NODE_ENV !== "production" && cr || d && (!e.dynamicChildren || e.dynamicChildren.length !== d.length)) && (l = 0, s = !1, d = null), (p.innerHTML && m.innerHTML == null || p.textContent && m.textContent == null) && u(c, ""), d ? (A(e.dynamicChildren, d, c, n, r, ko(t, i), o), process.env.NODE_ENV !== "production" && Mo(e, t)) : s ||
|
|
2727
|
-
if (l & 16)
|
|
2726
|
+
if (n && Ao(n, !1), (h = m.onVnodeBeforeUpdate) && ds(h, n, t, e), f && Hr(t, e, n, "beforeUpdate"), n && Ao(n, !0), (process.env.NODE_ENV !== "production" && cr || d && (!e.dynamicChildren || e.dynamicChildren.length !== d.length)) && (l = 0, s = !1, d = null), (p.innerHTML && m.innerHTML == null || p.textContent && m.textContent == null) && u(c, ""), d ? (A(e.dynamicChildren, d, c, n, r, ko(t, i), o), process.env.NODE_ENV !== "production" && Mo(e, t)) : s || ee(e, t, c, null, n, r, ko(t, i), o, !1), l > 0) {
|
|
2727
|
+
if (l & 16) j(c, p, m, n, i);
|
|
2728
2728
|
else if (l & 2 && p.class !== m.class && a(c, "class", null, m.class, i), l & 4 && a(c, "style", p.style, m.style, i), l & 8) {
|
|
2729
2729
|
let e = t.dynamicProps;
|
|
2730
2730
|
for (let t = 0; t < e.length; t++) {
|
|
@@ -2733,7 +2733,7 @@ function Oo(e, t) {
|
|
|
2733
2733
|
}
|
|
2734
2734
|
}
|
|
2735
2735
|
l & 1 && e.children !== t.children && u(c, t.children);
|
|
2736
|
-
} else !s && d == null &&
|
|
2736
|
+
} else !s && d == null && j(c, p, m, n, i);
|
|
2737
2737
|
((h = m.onVnodeUpdated) || f) && Eo(() => {
|
|
2738
2738
|
h && ds(h, n, t, e), f && Hr(t, e, n, "updated");
|
|
2739
2739
|
}, r);
|
|
@@ -2742,45 +2742,45 @@ function Oo(e, t) {
|
|
|
2742
2742
|
let c = e[s], l = t[s], u = c.el && (c.type === K || !Xo(c, l) || c.shapeFlag & 198) ? d(c.el) : n;
|
|
2743
2743
|
h(c, l, u, null, r, i, a, o, !0);
|
|
2744
2744
|
}
|
|
2745
|
-
},
|
|
2745
|
+
}, j = (e, t, n, r, i) => {
|
|
2746
2746
|
if (t !== n) {
|
|
2747
|
-
if (t !== b) for (let o in t) !
|
|
2747
|
+
if (t !== b) for (let o in t) !oe(o) && !(o in n) && a(e, o, t[o], null, i, r);
|
|
2748
2748
|
for (let o in n) {
|
|
2749
|
-
if (
|
|
2749
|
+
if (oe(o)) continue;
|
|
2750
2750
|
let s = n[o], c = t[o];
|
|
2751
2751
|
s !== c && o !== "value" && a(e, o, c, s, i, r);
|
|
2752
2752
|
}
|
|
2753
2753
|
"value" in n && a(e, "value", t.value, n.value, i);
|
|
2754
2754
|
}
|
|
2755
|
-
},
|
|
2755
|
+
}, M = (e, t, n, i, a, o, c, l, u) => {
|
|
2756
2756
|
let d = t.el = e ? e.el : s(""), f = t.anchor = e ? e.anchor : s(""), { patchFlag: p, dynamicChildren: m, slotScopeIds: h } = t;
|
|
2757
|
-
process.env.NODE_ENV !== "production" && (cr || p & 2048) && (p = 0, u = !1, m = null), h && (l = l ? l.concat(h) : h), e == null ? (r(d, n, i), r(f, n, i), O(t.children || [], n, f, a, o, c, l, u)) : p > 0 && p & 64 && m && e.dynamicChildren && e.dynamicChildren.length === m.length ? (A(e.dynamicChildren, m, n, a, o, c, l), process.env.NODE_ENV === "production" ? (t.key != null || a && t === a.subTree) && Mo(e, t, !0) : Mo(e, t)) :
|
|
2758
|
-
},
|
|
2759
|
-
t.slotScopeIds = s, e == null ? t.shapeFlag & 512 ? i.ctx.activate(t, n, r, o, c) :
|
|
2760
|
-
},
|
|
2757
|
+
process.env.NODE_ENV !== "production" && (cr || p & 2048) && (p = 0, u = !1, m = null), h && (l = l ? l.concat(h) : h), e == null ? (r(d, n, i), r(f, n, i), O(t.children || [], n, f, a, o, c, l, u)) : p > 0 && p & 64 && m && e.dynamicChildren && e.dynamicChildren.length === m.length ? (A(e.dynamicChildren, m, n, a, o, c, l), process.env.NODE_ENV === "production" ? (t.key != null || a && t === a.subTree) && Mo(e, t, !0) : Mo(e, t)) : ee(e, t, n, f, a, o, c, l, u);
|
|
2758
|
+
}, N = (e, t, n, r, i, a, o, s, c) => {
|
|
2759
|
+
t.slotScopeIds = s, e == null ? t.shapeFlag & 512 ? i.ctx.activate(t, n, r, o, c) : P(t, n, r, i, a, o, c) : F(e, t, c);
|
|
2760
|
+
}, P = (e, t, n, r, i, a, o) => {
|
|
2761
2761
|
let s = e.component = ms(e, r, i);
|
|
2762
2762
|
if (process.env.NODE_ENV !== "production" && s.type.__hmrId && fr(s), process.env.NODE_ENV !== "production" && (An(e), So(s, "mount")), Pi(e) && (s.ctx.renderer = pe), process.env.NODE_ENV !== "production" && So(s, "init"), Ts(s, !1, o), process.env.NODE_ENV !== "production" && Co(s, "init"), process.env.NODE_ENV !== "production" && cr && (e.el = null), s.asyncDep) {
|
|
2763
|
-
if (i && i.registerDep(s,
|
|
2763
|
+
if (i && i.registerDep(s, I, o), !e.el) {
|
|
2764
2764
|
let r = s.subTree = ts(Bo);
|
|
2765
2765
|
_(null, r, t, n), e.placeholder = r.el;
|
|
2766
2766
|
}
|
|
2767
|
-
} else
|
|
2767
|
+
} else I(s, e, t, n, i, a, o);
|
|
2768
2768
|
process.env.NODE_ENV !== "production" && (jn(), Co(s, "mount"));
|
|
2769
|
-
},
|
|
2769
|
+
}, F = (e, t, n) => {
|
|
2770
2770
|
let r = t.component = e.component;
|
|
2771
2771
|
if (Va(e, t, n)) if (r.asyncDep && !r.asyncResolved) {
|
|
2772
|
-
process.env.NODE_ENV !== "production" && An(t),
|
|
2772
|
+
process.env.NODE_ENV !== "production" && An(t), L(r, t, n), process.env.NODE_ENV !== "production" && jn();
|
|
2773
2773
|
return;
|
|
2774
2774
|
} else r.next = t, r.update();
|
|
2775
2775
|
else t.el = e.el, r.vnode = t;
|
|
2776
|
-
},
|
|
2776
|
+
}, I = (e, t, n, r, i, a, o) => {
|
|
2777
2777
|
let s = () => {
|
|
2778
2778
|
if (e.isMounted) {
|
|
2779
2779
|
let { next: t, bu: n, u: r, parent: s, vnode: c } = e;
|
|
2780
2780
|
{
|
|
2781
2781
|
let n = Po(e);
|
|
2782
2782
|
if (n) {
|
|
2783
|
-
t && (t.el = c.el,
|
|
2783
|
+
t && (t.el = c.el, L(e, t, o)), n.asyncDep.then(() => {
|
|
2784
2784
|
Eo(() => {
|
|
2785
2785
|
e.isUnmounted || l();
|
|
2786
2786
|
}, i);
|
|
@@ -2789,11 +2789,11 @@ function Oo(e, t) {
|
|
|
2789
2789
|
}
|
|
2790
2790
|
}
|
|
2791
2791
|
let u = t, f;
|
|
2792
|
-
process.env.NODE_ENV !== "production" && An(t || e.vnode), Ao(e, !1), t ? (t.el = c.el,
|
|
2792
|
+
process.env.NODE_ENV !== "production" && An(t || e.vnode), Ao(e, !1), t ? (t.el = c.el, L(e, t, o)) : t = c, n && ge(n), (f = t.props && t.props.onVnodeBeforeUpdate) && ds(f, s, t, c), Ao(e, !0), process.env.NODE_ENV !== "production" && So(e, "render");
|
|
2793
2793
|
let p = Fa(e);
|
|
2794
2794
|
process.env.NODE_ENV !== "production" && Co(e, "render");
|
|
2795
2795
|
let m = e.subTree;
|
|
2796
|
-
e.subTree = p, process.env.NODE_ENV !== "production" && So(e, "patch"), h(m, p, d(m.el),
|
|
2796
|
+
e.subTree = p, process.env.NODE_ENV !== "production" && So(e, "patch"), h(m, p, d(m.el), ue(m), e, i, a), process.env.NODE_ENV !== "production" && Co(e, "patch"), t.el = p.el, u === null && Wa(e, p.el), r && Eo(r, i), (f = t.props && t.props.onVnodeUpdated) && Eo(() => ds(f, s, t, c), i), process.env.NODE_ENV !== "production" && Or(e), process.env.NODE_ENV !== "production" && jn();
|
|
2797
2797
|
} else {
|
|
2798
2798
|
let o, { el: s, props: c } = t, { bm: l, m: u, parent: d, root: f, type: p } = e, m = Ni(t);
|
|
2799
2799
|
if (Ao(e, !1), l && ge(l), !m && (o = c && c.onVnodeBeforeMount) && ds(o, d, t), Ao(e, !0), s && he) {
|
|
@@ -2818,31 +2818,31 @@ function Oo(e, t) {
|
|
|
2818
2818
|
e.scope.off();
|
|
2819
2819
|
let l = e.update = c.run.bind(c), u = e.job = c.runIfDirty.bind(c);
|
|
2820
2820
|
u.i = e, u.id = e.uid, c.scheduler = () => er(u), Ao(e, !0), process.env.NODE_ENV !== "production" && (c.onTrack = e.rtc ? (t) => ge(e.rtc, t) : void 0, c.onTrigger = e.rtg ? (t) => ge(e.rtg, t) : void 0), l();
|
|
2821
|
-
},
|
|
2821
|
+
}, L = (e, t, n) => {
|
|
2822
2822
|
t.component = e;
|
|
2823
2823
|
let r = e.vnode.props;
|
|
2824
2824
|
e.vnode = t, e.next = null, Xa(e, t.props, r, n), yo(e, t.children, n), ot(), rr(e), st();
|
|
2825
|
-
},
|
|
2825
|
+
}, ee = (e, t, n, r, i, a, o, s, c = !1) => {
|
|
2826
2826
|
let l = e && e.children, d = e ? e.shapeFlag : 0, f = t.children, { patchFlag: p, shapeFlag: m } = t;
|
|
2827
2827
|
if (p > 0) {
|
|
2828
2828
|
if (p & 128) {
|
|
2829
|
-
|
|
2829
|
+
ne(l, f, n, r, i, a, o, s, c);
|
|
2830
2830
|
return;
|
|
2831
2831
|
} else if (p & 256) {
|
|
2832
|
-
|
|
2832
|
+
te(l, f, n, r, i, a, o, s, c);
|
|
2833
2833
|
return;
|
|
2834
2834
|
}
|
|
2835
2835
|
}
|
|
2836
|
-
m & 8 ? (d & 16 &&
|
|
2837
|
-
},
|
|
2836
|
+
m & 8 ? (d & 16 && le(l, i, a), f !== l && u(n, f)) : d & 16 ? m & 16 ? ne(l, f, n, r, i, a, o, s, c) : le(l, i, a, !0) : (d & 8 && u(n, ""), m & 16 && O(f, n, r, i, a, o, s, c));
|
|
2837
|
+
}, te = (e, t, n, r, i, a, o, s, c) => {
|
|
2838
2838
|
e ||= x, t ||= x;
|
|
2839
2839
|
let l = e.length, u = t.length, d = Math.min(l, u), f;
|
|
2840
2840
|
for (f = 0; f < d; f++) {
|
|
2841
2841
|
let r = t[f] = c ? cs(t[f]) : ss(t[f]);
|
|
2842
2842
|
h(e[f], r, n, null, i, a, o, s, c);
|
|
2843
2843
|
}
|
|
2844
|
-
l > u ?
|
|
2845
|
-
},
|
|
2844
|
+
l > u ? le(e, i, a, !0, !1, d) : O(t, n, r, i, a, o, s, c, d);
|
|
2845
|
+
}, ne = (e, t, n, r, i, a, o, s, c) => {
|
|
2846
2846
|
let l = 0, u = t.length, d = e.length - 1, f = u - 1;
|
|
2847
2847
|
for (; l <= d && l <= f;) {
|
|
2848
2848
|
let r = e[l], u = t[l] = c ? cs(t[l]) : ss(t[l]);
|
|
@@ -2861,7 +2861,7 @@ function Oo(e, t) {
|
|
|
2861
2861
|
let e = f + 1, d = e < u ? t[e].el : r;
|
|
2862
2862
|
for (; l <= f;) h(null, t[l] = c ? cs(t[l]) : ss(t[l]), n, d, i, a, o, s, c), l++;
|
|
2863
2863
|
}
|
|
2864
|
-
} else if (l > f) for (; l <= d;)
|
|
2864
|
+
} else if (l > f) for (; l <= d;) ie(e[l], i, a, !0), l++;
|
|
2865
2865
|
else {
|
|
2866
2866
|
let p = l, m = l, g = /* @__PURE__ */ new Map();
|
|
2867
2867
|
for (l = m; l <= f; l++) {
|
|
@@ -2873,7 +2873,7 @@ function Oo(e, t) {
|
|
|
2873
2873
|
for (l = p; l <= d; l++) {
|
|
2874
2874
|
let r = e[l];
|
|
2875
2875
|
if (v >= y) {
|
|
2876
|
-
|
|
2876
|
+
ie(r, i, a, !0);
|
|
2877
2877
|
continue;
|
|
2878
2878
|
}
|
|
2879
2879
|
let u;
|
|
@@ -2882,18 +2882,18 @@ function Oo(e, t) {
|
|
|
2882
2882
|
u = _;
|
|
2883
2883
|
break;
|
|
2884
2884
|
}
|
|
2885
|
-
u === void 0 ?
|
|
2885
|
+
u === void 0 ? ie(r, i, a, !0) : (C[u - m] = l + 1, u >= S ? S = u : b = !0, h(r, t[u], n, null, i, a, o, s, c), v++);
|
|
2886
2886
|
}
|
|
2887
2887
|
let w = b ? No(C) : x;
|
|
2888
2888
|
for (_ = w.length - 1, l = y - 1; l >= 0; l--) {
|
|
2889
2889
|
let e = m + l, d = t[e], f = t[e + 1], p = e + 1 < u ? f.el || Io(f) : r;
|
|
2890
|
-
C[l] === 0 ? h(null, d, n, p, i, a, o, s, c) : b && (_ < 0 || l !== w[_] ?
|
|
2890
|
+
C[l] === 0 ? h(null, d, n, p, i, a, o, s, c) : b && (_ < 0 || l !== w[_] ? re(d, n, p, 2) : _--);
|
|
2891
2891
|
}
|
|
2892
2892
|
}
|
|
2893
|
-
},
|
|
2893
|
+
}, re = (e, t, n, a, o = null) => {
|
|
2894
2894
|
let { el: s, type: c, transition: l, children: u, shapeFlag: d } = e;
|
|
2895
2895
|
if (d & 6) {
|
|
2896
|
-
|
|
2896
|
+
re(e.component.subTree, t, n, a);
|
|
2897
2897
|
return;
|
|
2898
2898
|
}
|
|
2899
2899
|
if (d & 128) {
|
|
@@ -2906,7 +2906,7 @@ function Oo(e, t) {
|
|
|
2906
2906
|
}
|
|
2907
2907
|
if (c === K) {
|
|
2908
2908
|
r(s, t, n);
|
|
2909
|
-
for (let e = 0; e < u.length; e++)
|
|
2909
|
+
for (let e = 0; e < u.length; e++) re(u[e], t, n, a);
|
|
2910
2910
|
r(e.anchor, t, n);
|
|
2911
2911
|
return;
|
|
2912
2912
|
}
|
|
@@ -2927,31 +2927,31 @@ function Oo(e, t) {
|
|
|
2927
2927
|
o ? o(s, u, d) : d();
|
|
2928
2928
|
}
|
|
2929
2929
|
else r(s, t, n);
|
|
2930
|
-
},
|
|
2930
|
+
}, ie = (e, t, n, r = !1, i = !1) => {
|
|
2931
2931
|
let { type: a, props: o, ref: s, children: c, dynamicChildren: l, shapeFlag: u, patchFlag: d, dirs: f, cacheIndex: p, memo: m } = e;
|
|
2932
2932
|
if (d === -2 && (i = !1), s != null && (ot(), ji(s, null, n, e, !0), st()), p != null && (t.renderCache[p] = void 0), u & 256) {
|
|
2933
2933
|
t.ctx.deactivate(e);
|
|
2934
2934
|
return;
|
|
2935
2935
|
}
|
|
2936
2936
|
let h = u & 1 && f, g = !Ni(e), _;
|
|
2937
|
-
if (g && (_ = o && o.onVnodeBeforeUnmount) && ds(_, t, e), u & 6)
|
|
2937
|
+
if (g && (_ = o && o.onVnodeBeforeUnmount) && ds(_, t, e), u & 6) ce(e.component, n, r);
|
|
2938
2938
|
else {
|
|
2939
2939
|
if (u & 128) {
|
|
2940
2940
|
e.suspense.unmount(n, r);
|
|
2941
2941
|
return;
|
|
2942
2942
|
}
|
|
2943
|
-
h && Hr(e, null, t, "beforeUnmount"), u & 64 ? e.type.remove(e, t, n, pe, r) : l && !l.hasOnce && (a !== K || d > 0 && d & 64) ?
|
|
2943
|
+
h && Hr(e, null, t, "beforeUnmount"), u & 64 ? e.type.remove(e, t, n, pe, r) : l && !l.hasOnce && (a !== K || d > 0 && d & 64) ? le(l, t, n, !1, !0) : (a === K && d & 384 || !i && u & 16) && le(c, t, n), r && ae(e);
|
|
2944
2944
|
}
|
|
2945
2945
|
let v = m != null && p == null;
|
|
2946
2946
|
(g && (_ = o && o.onVnodeUnmounted) || h || v) && Eo(() => {
|
|
2947
2947
|
_ && ds(_, t, e), h && Hr(e, null, t, "unmounted"), v && (e.el = null);
|
|
2948
2948
|
}, n);
|
|
2949
|
-
},
|
|
2949
|
+
}, ae = (e) => {
|
|
2950
2950
|
let { type: t, el: n, anchor: r, transition: a } = e;
|
|
2951
2951
|
if (t === K) {
|
|
2952
2952
|
process.env.NODE_ENV !== "production" && e.patchFlag > 0 && e.patchFlag & 2048 && a && !a.persisted ? e.children.forEach((e) => {
|
|
2953
|
-
e.type === Bo ? i(e.el) :
|
|
2954
|
-
}) :
|
|
2953
|
+
e.type === Bo ? i(e.el) : ae(e);
|
|
2954
|
+
}) : se(n, r);
|
|
2955
2955
|
return;
|
|
2956
2956
|
}
|
|
2957
2957
|
if (t === Vo) {
|
|
@@ -2965,36 +2965,36 @@ function Oo(e, t) {
|
|
|
2965
2965
|
let { leave: t, delayLeave: r } = a, i = () => t(n, o);
|
|
2966
2966
|
r ? r(e.el, o, i) : i();
|
|
2967
2967
|
} else o();
|
|
2968
|
-
},
|
|
2968
|
+
}, se = (e, t) => {
|
|
2969
2969
|
let n;
|
|
2970
2970
|
for (; e !== t;) n = f(e), i(e), e = n;
|
|
2971
2971
|
i(t);
|
|
2972
|
-
},
|
|
2972
|
+
}, ce = (e, t, n) => {
|
|
2973
2973
|
process.env.NODE_ENV !== "production" && e.type.__hmrId && pr(e);
|
|
2974
2974
|
let { bum: r, scope: i, job: a, subTree: o, um: s, m: c, a: l } = e;
|
|
2975
|
-
Fo(c), Fo(l), r && ge(r), i.stop(), a && (a.flags |= 8,
|
|
2975
|
+
Fo(c), Fo(l), r && ge(r), i.stop(), a && (a.flags |= 8, ie(o, e, t, n)), s && Eo(s, t), Eo(() => {
|
|
2976
2976
|
e.isUnmounted = !0;
|
|
2977
2977
|
}, t), process.env.NODE_ENV !== "production" && Ar(e);
|
|
2978
|
-
},
|
|
2979
|
-
for (let o = a; o < e.length; o++)
|
|
2980
|
-
},
|
|
2981
|
-
if (e.shapeFlag & 6) return
|
|
2978
|
+
}, le = (e, t, n, r = !1, i = !1, a = 0) => {
|
|
2979
|
+
for (let o = a; o < e.length; o++) ie(e[o], t, n, r, i);
|
|
2980
|
+
}, ue = (e) => {
|
|
2981
|
+
if (e.shapeFlag & 6) return ue(e.component.subTree);
|
|
2982
2982
|
if (e.shapeFlag & 128) return e.suspense.next();
|
|
2983
2983
|
let t = f(e.anchor || e.el), n = t && t[Qr];
|
|
2984
2984
|
return n ? f(n) : t;
|
|
2985
2985
|
}, de = !1, fe = (e, t, n) => {
|
|
2986
2986
|
let r;
|
|
2987
|
-
e == null ? t._vnode && (
|
|
2987
|
+
e == null ? t._vnode && (ie(t._vnode, null, null, !0), r = t._vnode.component) : h(t._vnode || null, e, t, null, null, null, n), t._vnode = e, de ||= (de = !0, rr(r), ir(), !1);
|
|
2988
2988
|
}, pe = {
|
|
2989
2989
|
p: h,
|
|
2990
|
-
um:
|
|
2991
|
-
m:
|
|
2992
|
-
r:
|
|
2993
|
-
mt:
|
|
2990
|
+
um: ie,
|
|
2991
|
+
m: re,
|
|
2992
|
+
r: ae,
|
|
2993
|
+
mt: P,
|
|
2994
2994
|
mc: O,
|
|
2995
|
-
pc:
|
|
2995
|
+
pc: ee,
|
|
2996
2996
|
pbc: A,
|
|
2997
|
-
n:
|
|
2997
|
+
n: ue,
|
|
2998
2998
|
o: e
|
|
2999
2999
|
}, me, he;
|
|
3000
3000
|
return t && ([me, he] = t(pe)), {
|
|
@@ -3081,7 +3081,7 @@ function Xo(e, t) {
|
|
|
3081
3081
|
}
|
|
3082
3082
|
return e.type === t.type && e.key === t.key;
|
|
3083
3083
|
}
|
|
3084
|
-
var Zo, Qo = (...e) => ns(...Zo ? Zo(e, Ir) : e), $o = ({ key: e }) => e ?? null, es = ({ ref: e, ref_key: t, ref_for: n }) => (typeof e == "number" && (e = "" + e), e == null ? null :
|
|
3084
|
+
var Zo, Qo = (...e) => ns(...Zo ? Zo(e, Ir) : e), $o = ({ key: e }) => e ?? null, es = ({ ref: e, ref_key: t, ref_for: n }) => (typeof e == "number" && (e = "" + e), e == null ? null : F(e) || /* @__PURE__ */ mn(e) || P(e) ? {
|
|
3085
3085
|
i: Ir,
|
|
3086
3086
|
r: e,
|
|
3087
3087
|
k: t,
|
|
@@ -3117,7 +3117,7 @@ function Y(e, t = null, n = null, r = 0, i = null, a = e === K ? 0 : 1, o = !1,
|
|
|
3117
3117
|
appContext: null,
|
|
3118
3118
|
ctx: Ir
|
|
3119
3119
|
};
|
|
3120
|
-
return s ? (ls(c, n), a & 128 && e.normalize(c)) : n && (c.shapeFlag |=
|
|
3120
|
+
return s ? (ls(c, n), a & 128 && e.normalize(c)) : n && (c.shapeFlag |= F(n) ? 8 : 16), process.env.NODE_ENV !== "production" && c.key !== c.key && G("VNode created with invalid key (NaN). VNode type:", c.type), Go > 0 && !o && Uo && (c.patchFlag > 0 || a & 6) && c.patchFlag !== 32 && Uo.push(c), c;
|
|
3121
3121
|
}
|
|
3122
3122
|
var ts = process.env.NODE_ENV === "production" ? ns : Qo;
|
|
3123
3123
|
function ns(e, t = null, n = null, r = 0, i = null, a = !1) {
|
|
@@ -3128,9 +3128,9 @@ function ns(e, t = null, n = null, r = 0, i = null, a = !1) {
|
|
|
3128
3128
|
if (Bs(e) && (e = e.__vccOpts), t) {
|
|
3129
3129
|
t = rs(t);
|
|
3130
3130
|
let { class: e, style: n } = t;
|
|
3131
|
-
e && !
|
|
3131
|
+
e && !F(e) && (t.class = R(e)), L(n) && (/* @__PURE__ */ un(n) && !A(n) && (n = E({}, n)), t.style = Se(n));
|
|
3132
3132
|
}
|
|
3133
|
-
let o =
|
|
3133
|
+
let o = F(e) ? 1 : Lo(e) ? 128 : $r(e) ? 64 : L(e) ? 4 : P(e) ? 2 : 0;
|
|
3134
3134
|
return process.env.NODE_ENV !== "production" && o & 4 && /* @__PURE__ */ un(e) && (e = /* @__PURE__ */ H(e), G("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.", "\nComponent that was made reactive: ", e)), Y(e, t, n, r, i, o, a, !0);
|
|
3135
3135
|
}
|
|
3136
3136
|
function rs(e) {
|
|
@@ -3199,7 +3199,7 @@ function ls(e, t) {
|
|
|
3199
3199
|
let r = t._;
|
|
3200
3200
|
!r && !qa(t) ? t._ctx = Ir : r === 3 && Ir && (Ir.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
|
|
3201
3201
|
}
|
|
3202
|
-
else if (
|
|
3202
|
+
else if (P(t)) {
|
|
3203
3203
|
if (r & 65) {
|
|
3204
3204
|
ls(e, { default: t });
|
|
3205
3205
|
return;
|
|
@@ -3344,7 +3344,7 @@ function Es(e, t) {
|
|
|
3344
3344
|
let { setup: r } = n;
|
|
3345
3345
|
if (r) {
|
|
3346
3346
|
ot();
|
|
3347
|
-
let i = e.setupContext = r.length > 1 ? Ps(e) : null, a = ys(e), o = Bn(r, e, 0, [process.env.NODE_ENV === "production" ? e.props : /* @__PURE__ */ an(e.props), i]), s =
|
|
3347
|
+
let i = e.setupContext = r.length > 1 ? Ps(e) : null, a = ys(e), o = Bn(r, e, 0, [process.env.NODE_ENV === "production" ? e.props : /* @__PURE__ */ an(e.props), i]), s = ee(o);
|
|
3348
3348
|
if (st(), a(), (s || e.sp) && !Ni(e) && Di(e), s) {
|
|
3349
3349
|
if (o.then(bs, bs), t) return o.then((n) => {
|
|
3350
3350
|
Ds(e, n, t);
|
|
@@ -3356,7 +3356,7 @@ function Es(e, t) {
|
|
|
3356
3356
|
} else js(e, t);
|
|
3357
3357
|
}
|
|
3358
3358
|
function Ds(e, t, n) {
|
|
3359
|
-
|
|
3359
|
+
P(t) ? e.type.__ssrInlineRender ? e.ssrRender = t : e.render = t : L(t) ? (process.env.NODE_ENV !== "production" && Yo(t) && G("setup() should not return VNodes directly - return a render function instead."), process.env.NODE_ENV !== "production" && (e.devtoolsRawSetupState = t), e.setupState = bn(t), process.env.NODE_ENV !== "production" && oa(e)) : process.env.NODE_ENV !== "production" && t !== void 0 && G(`setup() should return an object. Received: ${t === null ? "null" : typeof t}`), js(e, n);
|
|
3360
3360
|
}
|
|
3361
3361
|
var Os, ks, As = () => !Os;
|
|
3362
3362
|
function js(e, t, n) {
|
|
@@ -3446,7 +3446,7 @@ function Fs(e) {
|
|
|
3446
3446
|
}
|
|
3447
3447
|
var Is = /(?:^|[-_])\w/g, Ls = (e) => e.replace(Is, (e) => e.toUpperCase()).replace(/[-_]/g, "");
|
|
3448
3448
|
function Rs(e, t = !0) {
|
|
3449
|
-
return
|
|
3449
|
+
return P(e) ? e.displayName || e.name : e.name || t && e.__name;
|
|
3450
3450
|
}
|
|
3451
3451
|
function zs(e, t, n = !1) {
|
|
3452
3452
|
let r = Rs(t);
|
|
@@ -3463,7 +3463,7 @@ function zs(e, t, n = !1) {
|
|
|
3463
3463
|
return r ? Ls(r) : n ? "App" : "Anonymous";
|
|
3464
3464
|
}
|
|
3465
3465
|
function Bs(e) {
|
|
3466
|
-
return
|
|
3466
|
+
return P(e) && "__vccOpts" in e;
|
|
3467
3467
|
}
|
|
3468
3468
|
var Vs = (e, t) => {
|
|
3469
3469
|
let n = /* @__PURE__ */ Sn(e, t, ws);
|
|
@@ -3477,7 +3477,7 @@ function Hs(e, t, n) {
|
|
|
3477
3477
|
try {
|
|
3478
3478
|
Ko(-1);
|
|
3479
3479
|
let r = arguments.length;
|
|
3480
|
-
return r === 2 ?
|
|
3480
|
+
return r === 2 ? L(t) && !A(t) ? Yo(t) ? ts(e, null, [t]) : ts(e, t) : ts(e, null, t) : (r > 3 ? n = Array.prototype.slice.call(arguments, 2) : r === 3 && Yo(n) && (n = [n]), ts(e, t, n));
|
|
3481
3481
|
} finally {
|
|
3482
3482
|
Ko(1);
|
|
3483
3483
|
}
|
|
@@ -3487,7 +3487,7 @@ function Us() {
|
|
|
3487
3487
|
let e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, r = { style: "color:#eb2f96" }, i = {
|
|
3488
3488
|
__vue_custom_formatter: !0,
|
|
3489
3489
|
header(t) {
|
|
3490
|
-
if (!
|
|
3490
|
+
if (!L(t)) return null;
|
|
3491
3491
|
if (t.__isVue) return [
|
|
3492
3492
|
"div",
|
|
3493
3493
|
e,
|
|
@@ -3600,7 +3600,7 @@ function Us() {
|
|
|
3600
3600
|
"span",
|
|
3601
3601
|
r,
|
|
3602
3602
|
e
|
|
3603
|
-
] :
|
|
3603
|
+
] : L(e) ? ["object", { object: i ? /* @__PURE__ */ H(e) : e }] : [
|
|
3604
3604
|
"span",
|
|
3605
3605
|
n,
|
|
3606
3606
|
String(e)
|
|
@@ -3608,14 +3608,14 @@ function Us() {
|
|
|
3608
3608
|
}
|
|
3609
3609
|
function c(e, t) {
|
|
3610
3610
|
let n = e.type;
|
|
3611
|
-
if (
|
|
3611
|
+
if (P(n)) return;
|
|
3612
3612
|
let r = {};
|
|
3613
3613
|
for (let i in e.ctx) l(n, i, t) && (r[i] = e.ctx[i]);
|
|
3614
3614
|
return r;
|
|
3615
3615
|
}
|
|
3616
3616
|
function l(e, t, n) {
|
|
3617
3617
|
let r = e[n];
|
|
3618
|
-
if (A(r) && r.includes(t) ||
|
|
3618
|
+
if (A(r) && r.includes(t) || L(r) && t in r || e.extends && l(e.extends, t, n) || e.mixins && e.mixins.some((e) => l(e, t, n))) return !0;
|
|
3619
3619
|
}
|
|
3620
3620
|
function u(e) {
|
|
3621
3621
|
return /* @__PURE__ */ ln(e) ? "ShallowRef" : e.effect ? "ComputedRef" : "Ref";
|
|
@@ -3740,7 +3740,7 @@ function cc(e) {
|
|
|
3740
3740
|
}
|
|
3741
3741
|
function lc(e) {
|
|
3742
3742
|
if (e == null) return null;
|
|
3743
|
-
if (
|
|
3743
|
+
if (L(e)) return [uc(e.enter), uc(e.leave)];
|
|
3744
3744
|
{
|
|
3745
3745
|
let t = uc(e);
|
|
3746
3746
|
return [t, t];
|
|
@@ -3827,9 +3827,9 @@ function wc(e, t) {
|
|
|
3827
3827
|
}
|
|
3828
3828
|
var Tc = /* @__PURE__ */ Symbol(process.env.NODE_ENV === "production" ? "" : "CSS_VAR_TEXT"), Ec = /(?:^|;)\s*display\s*:/;
|
|
3829
3829
|
function Dc(e, t, n) {
|
|
3830
|
-
let r = e.style, i =
|
|
3830
|
+
let r = e.style, i = F(n), a = !1;
|
|
3831
3831
|
if (n && !i) {
|
|
3832
|
-
if (t) if (
|
|
3832
|
+
if (t) if (F(t)) for (let e of t.split(";")) {
|
|
3833
3833
|
let t = e.slice(0, e.indexOf(":")).trim();
|
|
3834
3834
|
n[t] ?? Ac(r, t, "");
|
|
3835
3835
|
}
|
|
@@ -3837,7 +3837,7 @@ function Dc(e, t, n) {
|
|
|
3837
3837
|
for (let i in n) {
|
|
3838
3838
|
i === "display" && (a = !0);
|
|
3839
3839
|
let o = n[i];
|
|
3840
|
-
o == null ? Ac(r, i, "") : Pc(e, i, !
|
|
3840
|
+
o == null ? Ac(r, i, "") : Pc(e, i, !F(t) && t ? t[i] : void 0, o) || Ac(r, i, o);
|
|
3841
3841
|
}
|
|
3842
3842
|
} else if (i) {
|
|
3843
3843
|
if (t !== n) {
|
|
@@ -3864,7 +3864,7 @@ var jc = [
|
|
|
3864
3864
|
function Nc(e, t) {
|
|
3865
3865
|
let n = Mc[t];
|
|
3866
3866
|
if (n) return n;
|
|
3867
|
-
let r =
|
|
3867
|
+
let r = ue(t);
|
|
3868
3868
|
if (r !== "filter" && r in e) return Mc[t] = r;
|
|
3869
3869
|
r = pe(r);
|
|
3870
3870
|
for (let n = 0; n < jc.length; n++) {
|
|
@@ -3874,11 +3874,11 @@ function Nc(e, t) {
|
|
|
3874
3874
|
return t;
|
|
3875
3875
|
}
|
|
3876
3876
|
function Pc(e, t, n, r) {
|
|
3877
|
-
return e.tagName === "TEXTAREA" && (t === "width" || t === "height") &&
|
|
3877
|
+
return e.tagName === "TEXTAREA" && (t === "width" || t === "height") && F(r) && n === r;
|
|
3878
3878
|
}
|
|
3879
3879
|
var Fc = "http://www.w3.org/1999/xlink";
|
|
3880
3880
|
function Ic(e, t, n, r, i, a = Pe(t)) {
|
|
3881
|
-
r && t.startsWith("xlink:") ? n == null ? e.removeAttributeNS(Fc, t.slice(6, t.length)) : e.setAttributeNS(Fc, t, n) : n == null || a && !z(n) ? e.removeAttribute(t) : e.setAttribute(t, a ? "" :
|
|
3881
|
+
r && t.startsWith("xlink:") ? n == null ? e.removeAttributeNS(Fc, t.slice(6, t.length)) : e.setAttributeNS(Fc, t, n) : n == null || a && !z(n) ? e.removeAttribute(t) : e.setAttribute(t, a ? "" : I(n) ? String(n) : n);
|
|
3882
3882
|
}
|
|
3883
3883
|
function Lc(e, t, n, r, i) {
|
|
3884
3884
|
if (t === "innerHTML" || t === "textContent") {
|
|
@@ -3945,27 +3945,27 @@ function Jc(e, t) {
|
|
|
3945
3945
|
return n.value = e, n.attached = qc(), n;
|
|
3946
3946
|
}
|
|
3947
3947
|
function Yc(e, t) {
|
|
3948
|
-
return
|
|
3948
|
+
return P(e) || A(e) ? e : (Gs(`Wrong type passed as event handler to ${t} - did you forget @ or : in front of your prop?
|
|
3949
3949
|
Expected function or array of functions, received type ${typeof e}.`), S);
|
|
3950
3950
|
}
|
|
3951
3951
|
var Xc = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) > 96 && e.charCodeAt(2) < 123, Zc = (e, t, n, r, i, a) => {
|
|
3952
3952
|
let o = i === "svg";
|
|
3953
|
-
t === "class" ? bc(e, r, o) : t === "style" ? Dc(e, n, r) : w(t) ? T(t) || Vc(e, t, n, r, a) : (t[0] === "." ? (t = t.slice(1), !0) : t[0] === "^" ? (t = t.slice(1), !1) : Qc(e, t, r, o)) ? (Lc(e, t, r), !e.tagName.includes("-") && (t === "value" || t === "checked" || t === "selected") && Ic(e, t, r, o, a, t !== "value")) : e._isVueCE && ($c(e, t) || e._def.__asyncLoader && (/[A-Z]/.test(t) || !
|
|
3953
|
+
t === "class" ? bc(e, r, o) : t === "style" ? Dc(e, n, r) : w(t) ? T(t) || Vc(e, t, n, r, a) : (t[0] === "." ? (t = t.slice(1), !0) : t[0] === "^" ? (t = t.slice(1), !1) : Qc(e, t, r, o)) ? (Lc(e, t, r), !e.tagName.includes("-") && (t === "value" || t === "checked" || t === "selected") && Ic(e, t, r, o, a, t !== "value")) : e._isVueCE && ($c(e, t) || e._def.__asyncLoader && (/[A-Z]/.test(t) || !F(r))) ? Lc(e, ue(t), r, a, t) : (t === "true-value" ? e._trueValue = r : t === "false-value" && (e._falseValue = r), Ic(e, t, r, o));
|
|
3954
3954
|
};
|
|
3955
3955
|
function Qc(e, t, n, r) {
|
|
3956
|
-
if (r) return !!(t === "innerHTML" || t === "textContent" || t in e && Xc(t) &&
|
|
3956
|
+
if (r) return !!(t === "innerHTML" || t === "textContent" || t in e && Xc(t) && P(n));
|
|
3957
3957
|
if (t === "spellcheck" || t === "draggable" || t === "translate" || t === "autocorrect" || t === "sandbox" && e.tagName === "IFRAME" || t === "form" || t === "list" && e.tagName === "INPUT" || t === "type" && e.tagName === "TEXTAREA") return !1;
|
|
3958
3958
|
if (t === "width" || t === "height") {
|
|
3959
3959
|
let t = e.tagName;
|
|
3960
3960
|
if (t === "IMG" || t === "VIDEO" || t === "CANVAS" || t === "SOURCE") return !1;
|
|
3961
3961
|
}
|
|
3962
|
-
return Xc(t) &&
|
|
3962
|
+
return Xc(t) && F(n) ? !1 : t in e;
|
|
3963
3963
|
}
|
|
3964
3964
|
function $c(e, t) {
|
|
3965
3965
|
let n = e._def.props;
|
|
3966
3966
|
if (!n) return !1;
|
|
3967
|
-
let r =
|
|
3968
|
-
return Array.isArray(n) ? n.some((e) =>
|
|
3967
|
+
let r = ue(t);
|
|
3968
|
+
return Array.isArray(n) ? n.some((e) => ue(e) === r) : Object.keys(n).some((e) => ue(e) === r);
|
|
3969
3969
|
}
|
|
3970
3970
|
var el = (e) => {
|
|
3971
3971
|
let t = e.props["onUpdate:modelValue"] || !1;
|
|
@@ -4041,7 +4041,7 @@ var fl = ((...e) => {
|
|
|
4041
4041
|
let r = gl(e);
|
|
4042
4042
|
if (!r) return;
|
|
4043
4043
|
let i = t._component;
|
|
4044
|
-
!
|
|
4044
|
+
!P(i) && !i.render && !i.template && (i.template = r.innerHTML), r.nodeType === 1 && (r.textContent = "");
|
|
4045
4045
|
let a = n(r, !1, pl(r));
|
|
4046
4046
|
return r instanceof Element && (r.removeAttribute("v-cloak"), r.setAttribute("data-v-app", "")), a;
|
|
4047
4047
|
}, t;
|
|
@@ -4079,7 +4079,7 @@ function hl(e) {
|
|
|
4079
4079
|
}
|
|
4080
4080
|
}
|
|
4081
4081
|
function gl(e) {
|
|
4082
|
-
if (
|
|
4082
|
+
if (F(e)) {
|
|
4083
4083
|
let t = document.querySelector(e);
|
|
4084
4084
|
return process.env.NODE_ENV !== "production" && !t && Gs(`Failed to mount app: mount target selector "${e}" returned null.`), t;
|
|
4085
4085
|
}
|
|
@@ -5930,7 +5930,7 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
5930
5930
|
return i;
|
|
5931
5931
|
}).map((e) => `(${e})`).join(t);
|
|
5932
5932
|
}
|
|
5933
|
-
var w = /\b\B/, T = "[a-zA-Z]\\w*", E = "[a-zA-Z_]\\w*", D = "\\b\\d+(\\.\\d+)?", O = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", k = "\\b(0b[01]+)", A = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",
|
|
5933
|
+
var w = /\b\B/, T = "[a-zA-Z]\\w*", E = "[a-zA-Z_]\\w*", D = "\\b\\d+(\\.\\d+)?", O = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", k = "\\b(0b[01]+)", A = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", j = (e = {}) => {
|
|
5934
5934
|
let t = /^#![ ]*\//;
|
|
5935
5935
|
return e.binary && (e.begin = _(t, /.*\b/, e.binary, /\b.*/)), a({
|
|
5936
5936
|
scope: "meta",
|
|
@@ -5941,22 +5941,22 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
5941
5941
|
e.index !== 0 && t.ignoreMatch();
|
|
5942
5942
|
}
|
|
5943
5943
|
}, e);
|
|
5944
|
-
},
|
|
5944
|
+
}, M = {
|
|
5945
5945
|
begin: "\\\\[\\s\\S]",
|
|
5946
5946
|
relevance: 0
|
|
5947
|
-
},
|
|
5947
|
+
}, N = {
|
|
5948
5948
|
scope: "string",
|
|
5949
5949
|
begin: "'",
|
|
5950
5950
|
end: "'",
|
|
5951
5951
|
illegal: "\\n",
|
|
5952
|
-
contains: [
|
|
5953
|
-
},
|
|
5952
|
+
contains: [M]
|
|
5953
|
+
}, P = {
|
|
5954
5954
|
scope: "string",
|
|
5955
5955
|
begin: "\"",
|
|
5956
5956
|
end: "\"",
|
|
5957
5957
|
illegal: "\\n",
|
|
5958
|
-
contains: [
|
|
5959
|
-
},
|
|
5958
|
+
contains: [M]
|
|
5959
|
+
}, F = { begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/ }, I = function(e, t, n = {}) {
|
|
5960
5960
|
let r = a({
|
|
5961
5961
|
scope: "comment",
|
|
5962
5962
|
begin: e,
|
|
@@ -5972,19 +5972,19 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
5972
5972
|
});
|
|
5973
5973
|
let i = y("I", "a", "is", "so", "us", "to", "at", "if", "in", "it", "on", /[A-Za-z]+['](d|ve|re|ll|t|s|n)/, /[A-Za-z]+[-][a-z]+/, /[A-Za-z][a-z]{2,}/);
|
|
5974
5974
|
return r.contains.push({ begin: _(/[ ]+/, "(", i, /[.]?[:]?([.][ ]|[ ])/, "){3}") }), r;
|
|
5975
|
-
},
|
|
5975
|
+
}, L = I("//", "$"), ee = I("/\\*", "\\*/"), te = I("#", "$"), ne = /*#__PURE__*/ Object.freeze({
|
|
5976
5976
|
__proto__: null,
|
|
5977
|
-
APOS_STRING_MODE:
|
|
5978
|
-
BACKSLASH_ESCAPE:
|
|
5977
|
+
APOS_STRING_MODE: N,
|
|
5978
|
+
BACKSLASH_ESCAPE: M,
|
|
5979
5979
|
BINARY_NUMBER_MODE: {
|
|
5980
5980
|
scope: "number",
|
|
5981
5981
|
begin: k,
|
|
5982
5982
|
relevance: 0
|
|
5983
5983
|
},
|
|
5984
5984
|
BINARY_NUMBER_RE: k,
|
|
5985
|
-
COMMENT:
|
|
5986
|
-
C_BLOCK_COMMENT_MODE:
|
|
5987
|
-
C_LINE_COMMENT_MODE:
|
|
5985
|
+
COMMENT: I,
|
|
5986
|
+
C_BLOCK_COMMENT_MODE: ee,
|
|
5987
|
+
C_LINE_COMMENT_MODE: L,
|
|
5988
5988
|
C_NUMBER_MODE: {
|
|
5989
5989
|
scope: "number",
|
|
5990
5990
|
begin: O,
|
|
@@ -6001,7 +6001,7 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
6001
6001
|
}
|
|
6002
6002
|
});
|
|
6003
6003
|
},
|
|
6004
|
-
HASH_COMMENT_MODE:
|
|
6004
|
+
HASH_COMMENT_MODE: te,
|
|
6005
6005
|
IDENT_RE: T,
|
|
6006
6006
|
MATCH_NOTHING_RE: w,
|
|
6007
6007
|
METHOD_GUARD: {
|
|
@@ -6014,21 +6014,21 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
6014
6014
|
relevance: 0
|
|
6015
6015
|
},
|
|
6016
6016
|
NUMBER_RE: D,
|
|
6017
|
-
PHRASAL_WORDS_MODE:
|
|
6018
|
-
QUOTE_STRING_MODE:
|
|
6017
|
+
PHRASAL_WORDS_MODE: F,
|
|
6018
|
+
QUOTE_STRING_MODE: P,
|
|
6019
6019
|
REGEXP_MODE: {
|
|
6020
6020
|
scope: "regexp",
|
|
6021
6021
|
begin: /\/(?=[^/\n]*\/)/,
|
|
6022
6022
|
end: /\/[gimuy]*/,
|
|
6023
|
-
contains: [
|
|
6023
|
+
contains: [M, {
|
|
6024
6024
|
begin: /\[/,
|
|
6025
6025
|
end: /\]/,
|
|
6026
6026
|
relevance: 0,
|
|
6027
|
-
contains: [
|
|
6027
|
+
contains: [M]
|
|
6028
6028
|
}]
|
|
6029
6029
|
},
|
|
6030
6030
|
RE_STARTERS_RE: A,
|
|
6031
|
-
SHEBANG:
|
|
6031
|
+
SHEBANG: j,
|
|
6032
6032
|
TITLE_MODE: {
|
|
6033
6033
|
scope: "title",
|
|
6034
6034
|
begin: T,
|
|
@@ -6041,28 +6041,28 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
6041
6041
|
relevance: 0
|
|
6042
6042
|
}
|
|
6043
6043
|
});
|
|
6044
|
-
function
|
|
6044
|
+
function re(e, t) {
|
|
6045
6045
|
e.input[e.index - 1] === "." && t.ignoreMatch();
|
|
6046
6046
|
}
|
|
6047
|
-
function
|
|
6047
|
+
function ie(e, t) {
|
|
6048
6048
|
e.className !== void 0 && (e.scope = e.className, delete e.className);
|
|
6049
6049
|
}
|
|
6050
|
-
function
|
|
6051
|
-
t && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin =
|
|
6050
|
+
function ae(e, t) {
|
|
6051
|
+
t && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = re, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
|
|
6052
6052
|
}
|
|
6053
|
-
function
|
|
6053
|
+
function oe(e, t) {
|
|
6054
6054
|
Array.isArray(e.illegal) && (e.illegal = y(...e.illegal));
|
|
6055
6055
|
}
|
|
6056
|
-
function
|
|
6056
|
+
function se(e, t) {
|
|
6057
6057
|
if (e.match) {
|
|
6058
6058
|
if (e.begin || e.end) throw Error("begin & end are not supported with match");
|
|
6059
6059
|
e.begin = e.match, delete e.match;
|
|
6060
6060
|
}
|
|
6061
6061
|
}
|
|
6062
|
-
function
|
|
6062
|
+
function ce(e, t) {
|
|
6063
6063
|
e.relevance === void 0 && (e.relevance = 1);
|
|
6064
6064
|
}
|
|
6065
|
-
var
|
|
6065
|
+
var le = (e, t) => {
|
|
6066
6066
|
if (!e.beforeMatch) return;
|
|
6067
6067
|
if (e.starts) throw Error("beforeMatch cannot be used with starts");
|
|
6068
6068
|
let n = Object.assign({}, e);
|
|
@@ -6072,7 +6072,7 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
6072
6072
|
relevance: 0,
|
|
6073
6073
|
contains: [Object.assign(n, { endsParent: !0 })]
|
|
6074
6074
|
}, e.relevance = 0, delete n.beforeMatch;
|
|
6075
|
-
},
|
|
6075
|
+
}, ue = [
|
|
6076
6076
|
"of",
|
|
6077
6077
|
"and",
|
|
6078
6078
|
"for",
|
|
@@ -6101,7 +6101,7 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
6101
6101
|
return t ? Number(t) : +!me(e);
|
|
6102
6102
|
}
|
|
6103
6103
|
function me(e) {
|
|
6104
|
-
return
|
|
6104
|
+
return ue.includes(e.toLowerCase());
|
|
6105
6105
|
}
|
|
6106
6106
|
var he = {}, ge = (e) => {
|
|
6107
6107
|
console.error(e);
|
|
@@ -6199,14 +6199,14 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
6199
6199
|
let a = n;
|
|
6200
6200
|
if (n.isCompiled) return a;
|
|
6201
6201
|
[
|
|
6202
|
-
|
|
6203
|
-
|
|
6202
|
+
ie,
|
|
6203
|
+
se,
|
|
6204
6204
|
we,
|
|
6205
|
-
|
|
6205
|
+
le
|
|
6206
6206
|
].forEach((e) => e(n, r)), e.compilerExtensions.forEach((e) => e(n, r)), n.__beforeBegin = null, [
|
|
6207
|
+
ae,
|
|
6207
6208
|
oe,
|
|
6208
|
-
|
|
6209
|
-
le
|
|
6209
|
+
ce
|
|
6210
6210
|
].forEach((e) => e(n, r)), n.isCompiled = !0;
|
|
6211
6211
|
let s = null;
|
|
6212
6212
|
return typeof n.keywords == "object" && n.keywords.$pattern && (n.keywords = Object.assign({}, n.keywords), s = n.keywords.$pattern, delete n.keywords.$pattern), s ||= /\w+/, n.keywords &&= fe(n.keywords, e.case_insensitive), a.keywordPatternRe = t(s, !0), r && (n.begin ||= /\B|\b/, a.beginRe = t(a.begin), !n.end && !n.endsWithParent && (n.end = /\B|\b/), n.end && (a.endRe = t(a.end)), a.terminatorEnd = p(a.end) || "", n.endsWithParent && r.terminatorEnd && (a.terminatorEnd += (n.end ? "|" : "") + r.terminatorEnd)), n.illegal && (a.illegalRe = t(n.illegal)), n.contains ||= [], n.contains = [].concat(...n.contains.map(function(e) {
|
|
@@ -6253,10 +6253,10 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
6253
6253
|
t += e.parentNode ? e.parentNode.className : "";
|
|
6254
6254
|
let n = l.languageDetectRe.exec(t);
|
|
6255
6255
|
if (n) {
|
|
6256
|
-
let t =
|
|
6256
|
+
let t = N(n[1]);
|
|
6257
6257
|
return t || (_e(s.replace("{}", n[1])), _e("Falling back to no-highlight mode for this block.", e)), t ? n[1] : "no-highlight";
|
|
6258
6258
|
}
|
|
6259
|
-
return t.split(/\s+/).find((e) => u(e) ||
|
|
6259
|
+
return t.split(/\s+/).find((e) => u(e) || N(e));
|
|
6260
6260
|
}
|
|
6261
6261
|
function p(e, t, n) {
|
|
6262
6262
|
let r = "", i = "";
|
|
@@ -6265,9 +6265,9 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
6265
6265
|
code: r,
|
|
6266
6266
|
language: i
|
|
6267
6267
|
};
|
|
6268
|
-
|
|
6268
|
+
te("before:highlight", a);
|
|
6269
6269
|
let o = a.result ? a.result : v(a.language, a.code, n);
|
|
6270
|
-
return o.code = a.code,
|
|
6270
|
+
return o.code = a.code, te("after:highlight", o), o;
|
|
6271
6271
|
}
|
|
6272
6272
|
function v(e, n, i, a) {
|
|
6273
6273
|
let c = Object.create(null);
|
|
@@ -6276,44 +6276,44 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
6276
6276
|
}
|
|
6277
6277
|
function d() {
|
|
6278
6278
|
if (!A.keywords) {
|
|
6279
|
-
|
|
6279
|
+
M.addText(P);
|
|
6280
6280
|
return;
|
|
6281
6281
|
}
|
|
6282
6282
|
let e = 0;
|
|
6283
6283
|
A.keywordPatternRe.lastIndex = 0;
|
|
6284
|
-
let t = A.keywordPatternRe.exec(
|
|
6284
|
+
let t = A.keywordPatternRe.exec(P), n = "";
|
|
6285
6285
|
for (; t;) {
|
|
6286
|
-
n +=
|
|
6286
|
+
n += P.substring(e, t.index);
|
|
6287
6287
|
let r = D.case_insensitive ? t[0].toLowerCase() : t[0], i = u(A, r);
|
|
6288
6288
|
if (i) {
|
|
6289
6289
|
let [e, a] = i;
|
|
6290
|
-
if (
|
|
6290
|
+
if (M.addText(n), n = "", c[r] = (c[r] || 0) + 1, c[r] <= Me && (F += a), e.startsWith("_")) n += t[0];
|
|
6291
6291
|
else {
|
|
6292
6292
|
let n = D.classNameAliases[e] || e;
|
|
6293
6293
|
m(t[0], n);
|
|
6294
6294
|
}
|
|
6295
6295
|
} else n += t[0];
|
|
6296
|
-
e = A.keywordPatternRe.lastIndex, t = A.keywordPatternRe.exec(
|
|
6296
|
+
e = A.keywordPatternRe.lastIndex, t = A.keywordPatternRe.exec(P);
|
|
6297
6297
|
}
|
|
6298
|
-
n +=
|
|
6298
|
+
n += P.substring(e), M.addText(n);
|
|
6299
6299
|
}
|
|
6300
6300
|
function f() {
|
|
6301
|
-
if (
|
|
6301
|
+
if (P === "") return;
|
|
6302
6302
|
let e = null;
|
|
6303
6303
|
if (typeof A.subLanguage == "string") {
|
|
6304
6304
|
if (!t[A.subLanguage]) {
|
|
6305
|
-
|
|
6305
|
+
M.addText(P);
|
|
6306
6306
|
return;
|
|
6307
6307
|
}
|
|
6308
|
-
e = v(A.subLanguage,
|
|
6309
|
-
} else e = S(
|
|
6310
|
-
A.relevance > 0 && (
|
|
6308
|
+
e = v(A.subLanguage, P, !0, j[A.subLanguage]), j[A.subLanguage] = e._top;
|
|
6309
|
+
} else e = S(P, A.subLanguage.length ? A.subLanguage : null);
|
|
6310
|
+
A.relevance > 0 && (F += e.relevance), M.__addSublanguage(e._emitter, e.language);
|
|
6311
6311
|
}
|
|
6312
6312
|
function p() {
|
|
6313
|
-
A.subLanguage == null ? d() : f(),
|
|
6313
|
+
A.subLanguage == null ? d() : f(), P = "";
|
|
6314
6314
|
}
|
|
6315
6315
|
function m(e, t) {
|
|
6316
|
-
e !== "" && (
|
|
6316
|
+
e !== "" && (M.startScope(t), M.addText(e), M.endScope());
|
|
6317
6317
|
}
|
|
6318
6318
|
function h(e, t) {
|
|
6319
6319
|
let n = 1, r = t.length - 1;
|
|
@@ -6323,11 +6323,11 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
6323
6323
|
continue;
|
|
6324
6324
|
}
|
|
6325
6325
|
let r = D.classNameAliases[e[n]] || e[n], i = t[n];
|
|
6326
|
-
r ? m(i, r) : (
|
|
6326
|
+
r ? m(i, r) : (P = i, d(), P = ""), n++;
|
|
6327
6327
|
}
|
|
6328
6328
|
}
|
|
6329
6329
|
function g(e, t) {
|
|
6330
|
-
return e.scope && typeof e.scope == "string" &&
|
|
6330
|
+
return e.scope && typeof e.scope == "string" && M.openNode(D.classNameAliases[e.scope] || e.scope), e.beginScope && (e.beginScope._wrap ? (m(P, D.classNameAliases[e.beginScope._wrap] || e.beginScope._wrap), P = "") : e.beginScope._multi && (h(e.beginScope, t), P = "")), A = Object.create(e, { parent: { value: A } }), A;
|
|
6331
6331
|
}
|
|
6332
6332
|
function _(e, t, n) {
|
|
6333
6333
|
let i = x(e.endRe, n);
|
|
@@ -6344,34 +6344,34 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
6344
6344
|
if (e.endsWithParent) return _(e.parent, t, n);
|
|
6345
6345
|
}
|
|
6346
6346
|
function y(e) {
|
|
6347
|
-
return A.matcher.regexIndex === 0 ? (
|
|
6347
|
+
return A.matcher.regexIndex === 0 ? (P += e[0], 1) : (ee = !0, 0);
|
|
6348
6348
|
}
|
|
6349
6349
|
function b(e) {
|
|
6350
6350
|
let t = e[0], n = e.rule, i = new r(n), a = [n.__beforeBegin, n["on:begin"]];
|
|
6351
6351
|
for (let n of a) if (n && (n(e, i), i.isMatchIgnored)) return y(t);
|
|
6352
|
-
return n.skip ?
|
|
6352
|
+
return n.skip ? P += t : (n.excludeBegin && (P += t), p(), !n.returnBegin && !n.excludeBegin && (P = t)), g(n, e), n.returnBegin ? 0 : t.length;
|
|
6353
6353
|
}
|
|
6354
6354
|
function C(e) {
|
|
6355
6355
|
let t = e[0], r = n.substring(e.index), i = _(A, e, r);
|
|
6356
6356
|
if (!i) return je;
|
|
6357
6357
|
let a = A;
|
|
6358
|
-
A.endScope && A.endScope._wrap ? (p(), m(t, A.endScope._wrap)) : A.endScope && A.endScope._multi ? (p(), h(A.endScope, e)) : a.skip ?
|
|
6358
|
+
A.endScope && A.endScope._wrap ? (p(), m(t, A.endScope._wrap)) : A.endScope && A.endScope._multi ? (p(), h(A.endScope, e)) : a.skip ? P += t : (a.returnEnd || a.excludeEnd || (P += t), p(), a.excludeEnd && (P = t));
|
|
6359
6359
|
do
|
|
6360
|
-
A.scope &&
|
|
6360
|
+
A.scope && M.closeNode(), !A.skip && !A.subLanguage && (F += A.relevance), A = A.parent;
|
|
6361
6361
|
while (A !== i.parent);
|
|
6362
6362
|
return i.starts && g(i.starts, e), a.returnEnd ? 0 : t.length;
|
|
6363
6363
|
}
|
|
6364
6364
|
function w() {
|
|
6365
6365
|
let e = [];
|
|
6366
6366
|
for (let t = A; t !== D; t = t.parent) t.scope && e.unshift(t.scope);
|
|
6367
|
-
e.forEach((e) =>
|
|
6367
|
+
e.forEach((e) => M.openNode(e));
|
|
6368
6368
|
}
|
|
6369
6369
|
let T = {};
|
|
6370
6370
|
function E(t, r) {
|
|
6371
6371
|
let a = r && r[0];
|
|
6372
|
-
if (
|
|
6372
|
+
if (P += t, a == null) return p(), 0;
|
|
6373
6373
|
if (T.type === "begin" && r.type === "end" && T.index === r.index && a === "") {
|
|
6374
|
-
if (
|
|
6374
|
+
if (P += n.slice(r.index, r.index + 1), !o) {
|
|
6375
6375
|
let t = /* @__PURE__ */ Error(`0 width match regex (${e})`);
|
|
6376
6376
|
throw t.languageName = e, t.badRule = T.rule, t;
|
|
6377
6377
|
}
|
|
@@ -6385,33 +6385,33 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
6385
6385
|
let e = C(r);
|
|
6386
6386
|
if (e !== je) return e;
|
|
6387
6387
|
}
|
|
6388
|
-
if (r.type === "illegal" && a === "") return
|
|
6389
|
-
if (
|
|
6390
|
-
return
|
|
6388
|
+
if (r.type === "illegal" && a === "") return P += "\n", 1;
|
|
6389
|
+
if (L > 1e5 && L > r.index * 3) throw /* @__PURE__ */ Error("potential infinite loop, way more iterations than matches");
|
|
6390
|
+
return P += a, a.length;
|
|
6391
6391
|
}
|
|
6392
|
-
let D =
|
|
6392
|
+
let D = N(e);
|
|
6393
6393
|
if (!D) throw ge(s.replace("{}", e)), Error("Unknown language: \"" + e + "\"");
|
|
6394
|
-
let O = Te(D), k = "", A = a || O,
|
|
6394
|
+
let O = Te(D), k = "", A = a || O, j = {}, M = new l.__emitter(l);
|
|
6395
6395
|
w();
|
|
6396
|
-
let
|
|
6396
|
+
let P = "", F = 0, I = 0, L = 0, ee = !1;
|
|
6397
6397
|
try {
|
|
6398
|
-
if (D.__emitTokens) D.__emitTokens(n,
|
|
6398
|
+
if (D.__emitTokens) D.__emitTokens(n, M);
|
|
6399
6399
|
else {
|
|
6400
6400
|
for (A.matcher.considerAll();;) {
|
|
6401
|
-
|
|
6401
|
+
L++, ee ? ee = !1 : A.matcher.considerAll(), A.matcher.lastIndex = I;
|
|
6402
6402
|
let e = A.matcher.exec(n);
|
|
6403
6403
|
if (!e) break;
|
|
6404
|
-
let t = E(n.substring(
|
|
6405
|
-
|
|
6404
|
+
let t = E(n.substring(I, e.index), e);
|
|
6405
|
+
I = e.index + t;
|
|
6406
6406
|
}
|
|
6407
|
-
E(n.substring(
|
|
6407
|
+
E(n.substring(I));
|
|
6408
6408
|
}
|
|
6409
|
-
return
|
|
6409
|
+
return M.finalize(), k = M.toHTML(), {
|
|
6410
6410
|
language: e,
|
|
6411
6411
|
value: k,
|
|
6412
|
-
relevance:
|
|
6412
|
+
relevance: F,
|
|
6413
6413
|
illegal: !1,
|
|
6414
|
-
_emitter:
|
|
6414
|
+
_emitter: M,
|
|
6415
6415
|
_top: A
|
|
6416
6416
|
};
|
|
6417
6417
|
} catch (t) {
|
|
@@ -6422,12 +6422,12 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
6422
6422
|
relevance: 0,
|
|
6423
6423
|
_illegalBy: {
|
|
6424
6424
|
message: t.message,
|
|
6425
|
-
index:
|
|
6426
|
-
context: n.slice(
|
|
6425
|
+
index: I,
|
|
6426
|
+
context: n.slice(I - 100, I + 100),
|
|
6427
6427
|
mode: t.mode,
|
|
6428
6428
|
resultSoFar: k
|
|
6429
6429
|
},
|
|
6430
|
-
_emitter:
|
|
6430
|
+
_emitter: M
|
|
6431
6431
|
};
|
|
6432
6432
|
if (o) return {
|
|
6433
6433
|
language: e,
|
|
@@ -6435,7 +6435,7 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
6435
6435
|
illegal: !1,
|
|
6436
6436
|
relevance: 0,
|
|
6437
6437
|
errorRaised: t,
|
|
6438
|
-
_emitter:
|
|
6438
|
+
_emitter: M,
|
|
6439
6439
|
_top: A
|
|
6440
6440
|
};
|
|
6441
6441
|
throw t;
|
|
@@ -6453,13 +6453,13 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
6453
6453
|
}
|
|
6454
6454
|
function S(e, n) {
|
|
6455
6455
|
n = n || l.languages || Object.keys(t);
|
|
6456
|
-
let r = b(e), i = n.filter(
|
|
6456
|
+
let r = b(e), i = n.filter(N).filter(F).map((t) => v(t, e, !1));
|
|
6457
6457
|
i.unshift(r);
|
|
6458
6458
|
let [a, o] = i.sort((e, t) => {
|
|
6459
6459
|
if (e.relevance !== t.relevance) return t.relevance - e.relevance;
|
|
6460
6460
|
if (e.language && t.language) {
|
|
6461
|
-
if (
|
|
6462
|
-
if (
|
|
6461
|
+
if (N(e.language).supersetOf === t.language) return 1;
|
|
6462
|
+
if (N(t.language).supersetOf === e.language) return -1;
|
|
6463
6463
|
}
|
|
6464
6464
|
return 0;
|
|
6465
6465
|
}), s = a;
|
|
@@ -6472,7 +6472,7 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
6472
6472
|
function w(e) {
|
|
6473
6473
|
let t = null, n = d(e);
|
|
6474
6474
|
if (u(n)) return;
|
|
6475
|
-
if (
|
|
6475
|
+
if (te("before:highlightElement", {
|
|
6476
6476
|
el: e,
|
|
6477
6477
|
language: n
|
|
6478
6478
|
}), e.dataset.highlighted) {
|
|
@@ -6492,7 +6492,7 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
6492
6492
|
}, i.secondBest && (e.secondBest = {
|
|
6493
6493
|
language: i.secondBest.language,
|
|
6494
6494
|
relevance: i.secondBest.relevance
|
|
6495
|
-
}),
|
|
6495
|
+
}), te("after:highlightElement", {
|
|
6496
6496
|
el: e,
|
|
6497
6497
|
result: i,
|
|
6498
6498
|
text: r
|
|
@@ -6527,48 +6527,48 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
6527
6527
|
else throw e;
|
|
6528
6528
|
i = c;
|
|
6529
6529
|
}
|
|
6530
|
-
i.name ||= n, t[n] = i, i.rawDefinition = r.bind(null, e), i.aliases &&
|
|
6530
|
+
i.name ||= n, t[n] = i, i.rawDefinition = r.bind(null, e), i.aliases && P(i.aliases, { languageName: n });
|
|
6531
6531
|
}
|
|
6532
|
-
function
|
|
6532
|
+
function j(e) {
|
|
6533
6533
|
delete t[e];
|
|
6534
6534
|
for (let t of Object.keys(i)) i[t] === e && delete i[t];
|
|
6535
6535
|
}
|
|
6536
|
-
function
|
|
6536
|
+
function M() {
|
|
6537
6537
|
return Object.keys(t);
|
|
6538
6538
|
}
|
|
6539
|
-
function
|
|
6539
|
+
function N(e) {
|
|
6540
6540
|
return e = (e || "").toLowerCase(), t[e] || t[i[e]];
|
|
6541
6541
|
}
|
|
6542
|
-
function
|
|
6542
|
+
function P(e, { languageName: t }) {
|
|
6543
6543
|
typeof e == "string" && (e = [e]), e.forEach((e) => {
|
|
6544
6544
|
i[e.toLowerCase()] = t;
|
|
6545
6545
|
});
|
|
6546
6546
|
}
|
|
6547
|
-
function
|
|
6548
|
-
let t =
|
|
6547
|
+
function F(e) {
|
|
6548
|
+
let t = N(e);
|
|
6549
6549
|
return t && !t.disableAutodetect;
|
|
6550
6550
|
}
|
|
6551
|
-
function
|
|
6551
|
+
function I(e) {
|
|
6552
6552
|
e["before:highlightBlock"] && !e["before:highlightElement"] && (e["before:highlightElement"] = (t) => {
|
|
6553
6553
|
e["before:highlightBlock"](Object.assign({ block: t.el }, t));
|
|
6554
6554
|
}), e["after:highlightBlock"] && !e["after:highlightElement"] && (e["after:highlightElement"] = (t) => {
|
|
6555
6555
|
e["after:highlightBlock"](Object.assign({ block: t.el }, t));
|
|
6556
6556
|
});
|
|
6557
6557
|
}
|
|
6558
|
-
function
|
|
6559
|
-
|
|
6558
|
+
function L(e) {
|
|
6559
|
+
I(e), a.push(e);
|
|
6560
6560
|
}
|
|
6561
|
-
function
|
|
6561
|
+
function ee(e) {
|
|
6562
6562
|
let t = a.indexOf(e);
|
|
6563
6563
|
t !== -1 && a.splice(t, 1);
|
|
6564
6564
|
}
|
|
6565
|
-
function
|
|
6565
|
+
function te(e, t) {
|
|
6566
6566
|
let n = e;
|
|
6567
6567
|
a.forEach(function(e) {
|
|
6568
6568
|
e[n] && e[n](t);
|
|
6569
6569
|
});
|
|
6570
6570
|
}
|
|
6571
|
-
function
|
|
6571
|
+
function re(e) {
|
|
6572
6572
|
return ve("10.7.0", "highlightBlock will be removed entirely in v12.0"), ve("10.7.0", "Please use highlightElement now."), w(e);
|
|
6573
6573
|
}
|
|
6574
6574
|
Object.assign(e, {
|
|
@@ -6576,19 +6576,19 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
6576
6576
|
highlightAuto: S,
|
|
6577
6577
|
highlightAll: k,
|
|
6578
6578
|
highlightElement: w,
|
|
6579
|
-
highlightBlock:
|
|
6579
|
+
highlightBlock: re,
|
|
6580
6580
|
configure: T,
|
|
6581
6581
|
initHighlighting: E,
|
|
6582
6582
|
initHighlightingOnLoad: D,
|
|
6583
6583
|
registerLanguage: A,
|
|
6584
|
-
unregisterLanguage:
|
|
6585
|
-
listLanguages:
|
|
6586
|
-
getLanguage:
|
|
6587
|
-
registerAliases:
|
|
6588
|
-
autoDetection:
|
|
6584
|
+
unregisterLanguage: j,
|
|
6585
|
+
listLanguages: M,
|
|
6586
|
+
getLanguage: N,
|
|
6587
|
+
registerAliases: P,
|
|
6588
|
+
autoDetection: F,
|
|
6589
6589
|
inherit: Ae,
|
|
6590
|
-
addPlugin:
|
|
6591
|
-
removePlugin:
|
|
6590
|
+
addPlugin: L,
|
|
6591
|
+
removePlugin: ee
|
|
6592
6592
|
}), e.debugMode = function() {
|
|
6593
6593
|
o = !1;
|
|
6594
6594
|
}, e.safeMode = function() {
|
|
@@ -6600,8 +6600,8 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
6600
6600
|
optional: g,
|
|
6601
6601
|
anyNumberOfTimes: h
|
|
6602
6602
|
};
|
|
6603
|
-
for (let e in
|
|
6604
|
-
return Object.assign(e,
|
|
6603
|
+
for (let e in ne) typeof ne[e] == "object" && n(ne[e]);
|
|
6604
|
+
return Object.assign(e, ne), e;
|
|
6605
6605
|
}, Pe = Ne({});
|
|
6606
6606
|
Pe.newInstance = () => Ne({}), t.exports = Pe, Pe.HighlightJS = Pe, Pe.default = Pe;
|
|
6607
6607
|
})), id = /* @__PURE__ */ m(((e, t) => {
|
|
@@ -8895,17 +8895,17 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
8895
8895
|
1: "keyword",
|
|
8896
8896
|
3: "title.class"
|
|
8897
8897
|
}
|
|
8898
|
-
}] },
|
|
8898
|
+
}] }, j = {
|
|
8899
8899
|
relevance: 0,
|
|
8900
8900
|
match: t.either(/\bJSON/, /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),
|
|
8901
8901
|
className: "title.class",
|
|
8902
8902
|
keywords: { _: [...a, ...o] }
|
|
8903
|
-
},
|
|
8903
|
+
}, M = {
|
|
8904
8904
|
label: "use_strict",
|
|
8905
8905
|
className: "meta",
|
|
8906
8906
|
relevance: 10,
|
|
8907
8907
|
begin: /^\s*['"]use (strict|asm)['"]/
|
|
8908
|
-
},
|
|
8908
|
+
}, N = {
|
|
8909
8909
|
variants: [{ match: [
|
|
8910
8910
|
/function/,
|
|
8911
8911
|
/\s+/,
|
|
@@ -8919,30 +8919,30 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
8919
8919
|
label: "func.def",
|
|
8920
8920
|
contains: [k],
|
|
8921
8921
|
illegal: /%/
|
|
8922
|
-
},
|
|
8922
|
+
}, P = {
|
|
8923
8923
|
relevance: 0,
|
|
8924
8924
|
match: /\b[A-Z][A-Z_0-9]+\b/,
|
|
8925
8925
|
className: "variable.constant"
|
|
8926
8926
|
};
|
|
8927
|
-
function
|
|
8927
|
+
function F(e) {
|
|
8928
8928
|
return t.concat("(?!", e.join("|"), ")");
|
|
8929
8929
|
}
|
|
8930
|
-
let
|
|
8931
|
-
match: t.concat(/\b/,
|
|
8930
|
+
let I = {
|
|
8931
|
+
match: t.concat(/\b/, F([
|
|
8932
8932
|
...s,
|
|
8933
8933
|
"super",
|
|
8934
8934
|
"import"
|
|
8935
8935
|
].map((e) => `${e}\\s*\\(`)), d, t.lookahead(/\s*\(/)),
|
|
8936
8936
|
className: "title.function",
|
|
8937
8937
|
relevance: 0
|
|
8938
|
-
},
|
|
8938
|
+
}, L = {
|
|
8939
8939
|
begin: t.concat(/\./, t.lookahead(t.concat(d, /(?![0-9A-Za-z$_(])/))),
|
|
8940
8940
|
end: d,
|
|
8941
8941
|
excludeBegin: !0,
|
|
8942
8942
|
keywords: "prototype",
|
|
8943
8943
|
className: "property",
|
|
8944
8944
|
relevance: 0
|
|
8945
|
-
},
|
|
8945
|
+
}, ee = {
|
|
8946
8946
|
match: [
|
|
8947
8947
|
/get|set/,
|
|
8948
8948
|
/\s+/,
|
|
@@ -8954,7 +8954,7 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
8954
8954
|
3: "title.function"
|
|
8955
8955
|
},
|
|
8956
8956
|
contains: [{ begin: /\(\)/ }, k]
|
|
8957
|
-
},
|
|
8957
|
+
}, te = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", ne = {
|
|
8958
8958
|
match: [
|
|
8959
8959
|
/const|var|let/,
|
|
8960
8960
|
/\s+/,
|
|
@@ -8962,7 +8962,7 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
8962
8962
|
/\s*/,
|
|
8963
8963
|
/=\s*/,
|
|
8964
8964
|
/(async\s*)?/,
|
|
8965
|
-
t.lookahead(
|
|
8965
|
+
t.lookahead(te)
|
|
8966
8966
|
],
|
|
8967
8967
|
keywords: "async",
|
|
8968
8968
|
className: {
|
|
@@ -8982,7 +8982,7 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
8982
8982
|
keywords: h,
|
|
8983
8983
|
exports: {
|
|
8984
8984
|
PARAMS_CONTAINS: O,
|
|
8985
|
-
CLASS_REFERENCE:
|
|
8985
|
+
CLASS_REFERENCE: j
|
|
8986
8986
|
},
|
|
8987
8987
|
illegal: /#(?![$_A-z])/,
|
|
8988
8988
|
contains: [
|
|
@@ -8991,7 +8991,7 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
8991
8991
|
binary: "node",
|
|
8992
8992
|
relevance: 5
|
|
8993
8993
|
}),
|
|
8994
|
-
|
|
8994
|
+
M,
|
|
8995
8995
|
e.APOS_STRING_MODE,
|
|
8996
8996
|
e.QUOTE_STRING_MODE,
|
|
8997
8997
|
x,
|
|
@@ -9001,13 +9001,13 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
9001
9001
|
T,
|
|
9002
9002
|
{ match: /\$\d+/ },
|
|
9003
9003
|
y,
|
|
9004
|
-
|
|
9004
|
+
j,
|
|
9005
9005
|
{
|
|
9006
9006
|
scope: "attr",
|
|
9007
9007
|
match: d + t.lookahead(":"),
|
|
9008
9008
|
relevance: 0
|
|
9009
9009
|
},
|
|
9010
|
-
|
|
9010
|
+
ne,
|
|
9011
9011
|
{
|
|
9012
9012
|
begin: "(" + e.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
|
|
9013
9013
|
keywords: "return throw case",
|
|
@@ -9017,7 +9017,7 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
9017
9017
|
e.REGEXP_MODE,
|
|
9018
9018
|
{
|
|
9019
9019
|
className: "function",
|
|
9020
|
-
begin:
|
|
9020
|
+
begin: te,
|
|
9021
9021
|
returnBegin: !0,
|
|
9022
9022
|
end: "\\s*=>",
|
|
9023
9023
|
contains: [{
|
|
@@ -9074,7 +9074,7 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
9074
9074
|
}
|
|
9075
9075
|
]
|
|
9076
9076
|
},
|
|
9077
|
-
|
|
9077
|
+
N,
|
|
9078
9078
|
{ beginKeywords: "while if switch catch for" },
|
|
9079
9079
|
{
|
|
9080
9080
|
begin: "\\b(?!function)" + e.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",
|
|
@@ -9089,7 +9089,7 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
9089
9089
|
match: /\.\.\./,
|
|
9090
9090
|
relevance: 0
|
|
9091
9091
|
},
|
|
9092
|
-
|
|
9092
|
+
L,
|
|
9093
9093
|
{
|
|
9094
9094
|
match: "\\$[A-Za-z$_][0-9A-Za-z$_]*",
|
|
9095
9095
|
relevance: 0
|
|
@@ -9099,10 +9099,10 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
9099
9099
|
className: { 1: "title.function" },
|
|
9100
9100
|
contains: [k]
|
|
9101
9101
|
},
|
|
9102
|
-
|
|
9103
|
-
|
|
9102
|
+
I,
|
|
9103
|
+
P,
|
|
9104
9104
|
A,
|
|
9105
|
-
|
|
9105
|
+
ee,
|
|
9106
9106
|
{ match: /\$[(.]/ }
|
|
9107
9107
|
]
|
|
9108
9108
|
};
|
|
@@ -11352,84 +11352,84 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
11352
11352
|
}], A = {
|
|
11353
11353
|
match: /->/,
|
|
11354
11354
|
relevance: 0
|
|
11355
|
-
},
|
|
11355
|
+
}, j = [A, {
|
|
11356
11356
|
className: "operator",
|
|
11357
11357
|
relevance: 0,
|
|
11358
11358
|
variants: [{ match: v }, { match: `\\.(\\.|${_})+` }]
|
|
11359
|
-
}],
|
|
11359
|
+
}], M = "([0-9]_*)+", N = "([0-9a-fA-F]_*)+", P = {
|
|
11360
11360
|
className: "number",
|
|
11361
11361
|
relevance: 0,
|
|
11362
11362
|
variants: [
|
|
11363
|
-
{ match: `\\b(${
|
|
11364
|
-
{ match: `\\b0x(${
|
|
11363
|
+
{ match: `\\b(${M})(\\.(${M}))?([eE][+-]?(${M}))?\\b` },
|
|
11364
|
+
{ match: `\\b0x(${N})(\\.(${N}))?([pP][+-]?(${M}))?\\b` },
|
|
11365
11365
|
{ match: /\b0o([0-7]_*)+\b/ },
|
|
11366
11366
|
{ match: /\b0b([01]_*)+\b/ }
|
|
11367
11367
|
]
|
|
11368
|
-
},
|
|
11368
|
+
}, F = (e = "") => ({
|
|
11369
11369
|
className: "subst",
|
|
11370
11370
|
variants: [{ match: i(/\\/, e, /[0\\tnr"']/) }, { match: i(/\\/, e, /u\{[0-9a-fA-F]{1,8}\}/) }]
|
|
11371
|
-
}),
|
|
11371
|
+
}), I = (e = "") => ({
|
|
11372
11372
|
className: "subst",
|
|
11373
11373
|
match: i(/\\/, e, /[\t ]*(?:[\r\n]|\r\n)/)
|
|
11374
|
-
}),
|
|
11374
|
+
}), L = (e = "") => ({
|
|
11375
11375
|
className: "subst",
|
|
11376
11376
|
label: "interpol",
|
|
11377
11377
|
begin: i(/\\/, e, /\(/),
|
|
11378
11378
|
end: /\)/
|
|
11379
|
-
}),
|
|
11379
|
+
}), ee = (e = "") => ({
|
|
11380
11380
|
begin: i(e, /"""/),
|
|
11381
11381
|
end: i(/"""/, e),
|
|
11382
11382
|
contains: [
|
|
11383
|
-
P(e),
|
|
11384
11383
|
F(e),
|
|
11385
|
-
I(e)
|
|
11384
|
+
I(e),
|
|
11385
|
+
L(e)
|
|
11386
11386
|
]
|
|
11387
|
-
}),
|
|
11387
|
+
}), te = (e = "") => ({
|
|
11388
11388
|
begin: i(e, /"/),
|
|
11389
11389
|
end: i(/"/, e),
|
|
11390
|
-
contains: [
|
|
11391
|
-
}),
|
|
11390
|
+
contains: [F(e), L(e)]
|
|
11391
|
+
}), ne = {
|
|
11392
11392
|
className: "string",
|
|
11393
11393
|
variants: [
|
|
11394
|
+
ee(),
|
|
11395
|
+
ee("#"),
|
|
11396
|
+
ee("##"),
|
|
11397
|
+
ee("###"),
|
|
11394
11398
|
te(),
|
|
11395
11399
|
te("#"),
|
|
11396
11400
|
te("##"),
|
|
11397
|
-
te("###")
|
|
11398
|
-
ne(),
|
|
11399
|
-
ne("#"),
|
|
11400
|
-
ne("##"),
|
|
11401
|
-
ne("###")
|
|
11401
|
+
te("###")
|
|
11402
11402
|
]
|
|
11403
|
-
},
|
|
11403
|
+
}, re = [e.BACKSLASH_ESCAPE, {
|
|
11404
11404
|
begin: /\[/,
|
|
11405
11405
|
end: /\]/,
|
|
11406
11406
|
relevance: 0,
|
|
11407
11407
|
contains: [e.BACKSLASH_ESCAPE]
|
|
11408
|
-
}],
|
|
11408
|
+
}], ie = {
|
|
11409
11409
|
begin: /\/[^\s](?=[^/\n]*\/)/,
|
|
11410
11410
|
end: /\//,
|
|
11411
|
-
contains:
|
|
11412
|
-
},
|
|
11411
|
+
contains: re
|
|
11412
|
+
}, ae = (e) => {
|
|
11413
11413
|
let t = i(e, /\//), n = i(/\//, e);
|
|
11414
11414
|
return {
|
|
11415
11415
|
begin: t,
|
|
11416
11416
|
end: n,
|
|
11417
|
-
contains: [...
|
|
11417
|
+
contains: [...re, {
|
|
11418
11418
|
scope: "comment",
|
|
11419
11419
|
begin: `#(?!.*${n})`,
|
|
11420
11420
|
end: /$/
|
|
11421
11421
|
}]
|
|
11422
11422
|
};
|
|
11423
|
-
},
|
|
11423
|
+
}, oe = {
|
|
11424
11424
|
scope: "regexp",
|
|
11425
11425
|
variants: [
|
|
11426
|
-
|
|
11427
|
-
|
|
11428
|
-
|
|
11429
|
-
|
|
11426
|
+
ae("###"),
|
|
11427
|
+
ae("##"),
|
|
11428
|
+
ae("#"),
|
|
11429
|
+
ie
|
|
11430
11430
|
]
|
|
11431
|
-
},
|
|
11432
|
-
|
|
11431
|
+
}, se = { match: i(/`/, x, /`/) }, ce = [
|
|
11432
|
+
se,
|
|
11433
11433
|
{
|
|
11434
11434
|
className: "variable",
|
|
11435
11435
|
match: /\$\d+/
|
|
@@ -11438,7 +11438,7 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
11438
11438
|
className: "variable",
|
|
11439
11439
|
match: `\\$${b}+`
|
|
11440
11440
|
}
|
|
11441
|
-
],
|
|
11441
|
+
], le = [
|
|
11442
11442
|
{
|
|
11443
11443
|
match: /(@|#(un)?)available/,
|
|
11444
11444
|
scope: "keyword",
|
|
@@ -11447,9 +11447,9 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
11447
11447
|
end: /\)/,
|
|
11448
11448
|
keywords: w,
|
|
11449
11449
|
contains: [
|
|
11450
|
-
...
|
|
11451
|
-
|
|
11452
|
-
|
|
11450
|
+
...j,
|
|
11451
|
+
P,
|
|
11452
|
+
ne
|
|
11453
11453
|
]
|
|
11454
11454
|
}] }
|
|
11455
11455
|
},
|
|
@@ -11461,7 +11461,7 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
11461
11461
|
scope: "meta",
|
|
11462
11462
|
match: i(/@/, x)
|
|
11463
11463
|
}
|
|
11464
|
-
],
|
|
11464
|
+
], ue = {
|
|
11465
11465
|
match: r(/\b[A-Z]/),
|
|
11466
11466
|
relevance: 0,
|
|
11467
11467
|
contains: [
|
|
@@ -11494,12 +11494,12 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
11494
11494
|
contains: [
|
|
11495
11495
|
...a,
|
|
11496
11496
|
...O,
|
|
11497
|
-
...
|
|
11497
|
+
...le,
|
|
11498
11498
|
A,
|
|
11499
|
-
|
|
11499
|
+
ue
|
|
11500
11500
|
]
|
|
11501
11501
|
};
|
|
11502
|
-
|
|
11502
|
+
ue.contains.push(de);
|
|
11503
11503
|
let fe = {
|
|
11504
11504
|
begin: /\(/,
|
|
11505
11505
|
end: /\)/,
|
|
@@ -11513,21 +11513,21 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
11513
11513
|
relevance: 0
|
|
11514
11514
|
},
|
|
11515
11515
|
...a,
|
|
11516
|
-
|
|
11516
|
+
oe,
|
|
11517
11517
|
...O,
|
|
11518
11518
|
...k,
|
|
11519
|
-
...
|
|
11520
|
-
|
|
11521
|
-
|
|
11519
|
+
...j,
|
|
11520
|
+
P,
|
|
11521
|
+
ne,
|
|
11522
|
+
...ce,
|
|
11522
11523
|
...le,
|
|
11523
|
-
|
|
11524
|
-
L
|
|
11524
|
+
ue
|
|
11525
11525
|
]
|
|
11526
11526
|
}, pe = {
|
|
11527
11527
|
begin: /</,
|
|
11528
11528
|
end: />/,
|
|
11529
11529
|
keywords: "repeat each",
|
|
11530
|
-
contains: [...a,
|
|
11530
|
+
contains: [...a, ue]
|
|
11531
11531
|
}, me = {
|
|
11532
11532
|
begin: /\(/,
|
|
11533
11533
|
end: /\)/,
|
|
@@ -11547,11 +11547,11 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
11547
11547
|
},
|
|
11548
11548
|
...a,
|
|
11549
11549
|
...O,
|
|
11550
|
-
...
|
|
11551
|
-
|
|
11552
|
-
|
|
11553
|
-
...
|
|
11554
|
-
|
|
11550
|
+
...j,
|
|
11551
|
+
P,
|
|
11552
|
+
ne,
|
|
11553
|
+
...le,
|
|
11554
|
+
ue,
|
|
11555
11555
|
fe
|
|
11556
11556
|
],
|
|
11557
11557
|
endsParent: !0,
|
|
@@ -11560,7 +11560,7 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
11560
11560
|
match: [
|
|
11561
11561
|
/(func|macro)/,
|
|
11562
11562
|
/\s+/,
|
|
11563
|
-
o(
|
|
11563
|
+
o(se.match, x, v)
|
|
11564
11564
|
],
|
|
11565
11565
|
className: {
|
|
11566
11566
|
1: "keyword",
|
|
@@ -11601,7 +11601,7 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
11601
11601
|
1: "keyword",
|
|
11602
11602
|
3: "title"
|
|
11603
11603
|
},
|
|
11604
|
-
contains: [
|
|
11604
|
+
contains: [ue],
|
|
11605
11605
|
keywords: [...p, ...f],
|
|
11606
11606
|
end: /}/
|
|
11607
11607
|
}, ye = {
|
|
@@ -11654,16 +11654,16 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
11654
11654
|
}
|
|
11655
11655
|
]
|
|
11656
11656
|
};
|
|
11657
|
-
for (let e of
|
|
11657
|
+
for (let e of ne.variants) {
|
|
11658
11658
|
let t = e.contains.find((e) => e.label === "interpol");
|
|
11659
11659
|
t.keywords = D;
|
|
11660
11660
|
let n = [
|
|
11661
11661
|
...O,
|
|
11662
11662
|
...k,
|
|
11663
|
-
...
|
|
11664
|
-
|
|
11665
|
-
|
|
11666
|
-
...
|
|
11663
|
+
...j,
|
|
11664
|
+
P,
|
|
11665
|
+
ne,
|
|
11666
|
+
...ce
|
|
11667
11667
|
];
|
|
11668
11668
|
t.contains = [...n, {
|
|
11669
11669
|
begin: /\(/,
|
|
@@ -11689,15 +11689,15 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
11689
11689
|
contains: [...a],
|
|
11690
11690
|
relevance: 0
|
|
11691
11691
|
},
|
|
11692
|
-
|
|
11692
|
+
oe,
|
|
11693
11693
|
...O,
|
|
11694
11694
|
...k,
|
|
11695
|
-
...
|
|
11696
|
-
|
|
11697
|
-
|
|
11695
|
+
...j,
|
|
11696
|
+
P,
|
|
11697
|
+
ne,
|
|
11698
|
+
...ce,
|
|
11698
11699
|
...le,
|
|
11699
|
-
|
|
11700
|
-
L,
|
|
11700
|
+
ue,
|
|
11701
11701
|
fe
|
|
11702
11702
|
]
|
|
11703
11703
|
};
|
|
@@ -12068,17 +12068,17 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
12068
12068
|
1: "keyword",
|
|
12069
12069
|
3: "title.class"
|
|
12070
12070
|
}
|
|
12071
|
-
}] },
|
|
12071
|
+
}] }, j = {
|
|
12072
12072
|
relevance: 0,
|
|
12073
12073
|
match: t.either(/\bJSON/, /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),
|
|
12074
12074
|
className: "title.class",
|
|
12075
12075
|
keywords: { _: [...a, ...o] }
|
|
12076
|
-
},
|
|
12076
|
+
}, M = {
|
|
12077
12077
|
label: "use_strict",
|
|
12078
12078
|
className: "meta",
|
|
12079
12079
|
relevance: 10,
|
|
12080
12080
|
begin: /^\s*['"]use (strict|asm)['"]/
|
|
12081
|
-
},
|
|
12081
|
+
}, N = {
|
|
12082
12082
|
variants: [{ match: [
|
|
12083
12083
|
/function/,
|
|
12084
12084
|
/\s+/,
|
|
@@ -12092,30 +12092,30 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
12092
12092
|
label: "func.def",
|
|
12093
12093
|
contains: [k],
|
|
12094
12094
|
illegal: /%/
|
|
12095
|
-
},
|
|
12095
|
+
}, P = {
|
|
12096
12096
|
relevance: 0,
|
|
12097
12097
|
match: /\b[A-Z][A-Z_0-9]+\b/,
|
|
12098
12098
|
className: "variable.constant"
|
|
12099
12099
|
};
|
|
12100
|
-
function
|
|
12100
|
+
function F(e) {
|
|
12101
12101
|
return t.concat("(?!", e.join("|"), ")");
|
|
12102
12102
|
}
|
|
12103
|
-
let
|
|
12104
|
-
match: t.concat(/\b/,
|
|
12103
|
+
let I = {
|
|
12104
|
+
match: t.concat(/\b/, F([
|
|
12105
12105
|
...s,
|
|
12106
12106
|
"super",
|
|
12107
12107
|
"import"
|
|
12108
12108
|
].map((e) => `${e}\\s*\\(`)), d, t.lookahead(/\s*\(/)),
|
|
12109
12109
|
className: "title.function",
|
|
12110
12110
|
relevance: 0
|
|
12111
|
-
},
|
|
12111
|
+
}, L = {
|
|
12112
12112
|
begin: t.concat(/\./, t.lookahead(t.concat(d, /(?![0-9A-Za-z$_(])/))),
|
|
12113
12113
|
end: d,
|
|
12114
12114
|
excludeBegin: !0,
|
|
12115
12115
|
keywords: "prototype",
|
|
12116
12116
|
className: "property",
|
|
12117
12117
|
relevance: 0
|
|
12118
|
-
},
|
|
12118
|
+
}, ee = {
|
|
12119
12119
|
match: [
|
|
12120
12120
|
/get|set/,
|
|
12121
12121
|
/\s+/,
|
|
@@ -12127,7 +12127,7 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
12127
12127
|
3: "title.function"
|
|
12128
12128
|
},
|
|
12129
12129
|
contains: [{ begin: /\(\)/ }, k]
|
|
12130
|
-
},
|
|
12130
|
+
}, te = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", ne = {
|
|
12131
12131
|
match: [
|
|
12132
12132
|
/const|var|let/,
|
|
12133
12133
|
/\s+/,
|
|
@@ -12135,7 +12135,7 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
12135
12135
|
/\s*/,
|
|
12136
12136
|
/=\s*/,
|
|
12137
12137
|
/(async\s*)?/,
|
|
12138
|
-
t.lookahead(
|
|
12138
|
+
t.lookahead(te)
|
|
12139
12139
|
],
|
|
12140
12140
|
keywords: "async",
|
|
12141
12141
|
className: {
|
|
@@ -12155,7 +12155,7 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
12155
12155
|
keywords: h,
|
|
12156
12156
|
exports: {
|
|
12157
12157
|
PARAMS_CONTAINS: O,
|
|
12158
|
-
CLASS_REFERENCE:
|
|
12158
|
+
CLASS_REFERENCE: j
|
|
12159
12159
|
},
|
|
12160
12160
|
illegal: /#(?![$_A-z])/,
|
|
12161
12161
|
contains: [
|
|
@@ -12164,7 +12164,7 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
12164
12164
|
binary: "node",
|
|
12165
12165
|
relevance: 5
|
|
12166
12166
|
}),
|
|
12167
|
-
|
|
12167
|
+
M,
|
|
12168
12168
|
e.APOS_STRING_MODE,
|
|
12169
12169
|
e.QUOTE_STRING_MODE,
|
|
12170
12170
|
x,
|
|
@@ -12174,13 +12174,13 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
12174
12174
|
T,
|
|
12175
12175
|
{ match: /\$\d+/ },
|
|
12176
12176
|
y,
|
|
12177
|
-
|
|
12177
|
+
j,
|
|
12178
12178
|
{
|
|
12179
12179
|
scope: "attr",
|
|
12180
12180
|
match: d + t.lookahead(":"),
|
|
12181
12181
|
relevance: 0
|
|
12182
12182
|
},
|
|
12183
|
-
|
|
12183
|
+
ne,
|
|
12184
12184
|
{
|
|
12185
12185
|
begin: "(" + e.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
|
|
12186
12186
|
keywords: "return throw case",
|
|
@@ -12190,7 +12190,7 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
12190
12190
|
e.REGEXP_MODE,
|
|
12191
12191
|
{
|
|
12192
12192
|
className: "function",
|
|
12193
|
-
begin:
|
|
12193
|
+
begin: te,
|
|
12194
12194
|
returnBegin: !0,
|
|
12195
12195
|
end: "\\s*=>",
|
|
12196
12196
|
contains: [{
|
|
@@ -12247,7 +12247,7 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
12247
12247
|
}
|
|
12248
12248
|
]
|
|
12249
12249
|
},
|
|
12250
|
-
|
|
12250
|
+
N,
|
|
12251
12251
|
{ beginKeywords: "while if switch catch for" },
|
|
12252
12252
|
{
|
|
12253
12253
|
begin: "\\b(?!function)" + e.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",
|
|
@@ -12262,7 +12262,7 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
12262
12262
|
match: /\.\.\./,
|
|
12263
12263
|
relevance: 0
|
|
12264
12264
|
},
|
|
12265
|
-
|
|
12265
|
+
L,
|
|
12266
12266
|
{
|
|
12267
12267
|
match: "\\$[A-Za-z$_][0-9A-Za-z$_]*",
|
|
12268
12268
|
relevance: 0
|
|
@@ -12272,10 +12272,10 @@ var rd = /* @__PURE__ */ m(((e, t) => {
|
|
|
12272
12272
|
className: { 1: "title.function" },
|
|
12273
12273
|
contains: [k]
|
|
12274
12274
|
},
|
|
12275
|
-
|
|
12276
|
-
|
|
12275
|
+
I,
|
|
12276
|
+
P,
|
|
12277
12277
|
A,
|
|
12278
|
-
|
|
12278
|
+
ee,
|
|
12279
12279
|
{ match: /\$[(.]/ }
|
|
12280
12280
|
]
|
|
12281
12281
|
};
|
|
@@ -13558,17 +13558,17 @@ app.mount('#app');
|
|
|
13558
13558
|
function C() {
|
|
13559
13559
|
n.onUndo?.() && (i.error = null);
|
|
13560
13560
|
}
|
|
13561
|
-
let w = /* @__PURE__ */ U(""), T = /* @__PURE__ */ U(!0), E = /* @__PURE__ */ U(!1), D = /* @__PURE__ */ U(!1), O = /* @__PURE__ */ U({}), k = Vs(() => i.messages.length > 0), A = Vs(() => i.messages.some((e) => e.role === "user")),
|
|
13562
|
-
function j(e) {
|
|
13563
|
-
return O.value[e] !== !1;
|
|
13564
|
-
}
|
|
13561
|
+
let w = /* @__PURE__ */ U(""), T = /* @__PURE__ */ U(!0), E = /* @__PURE__ */ U(!1), D = /* @__PURE__ */ U(!1), O = /* @__PURE__ */ U({}), k = Vs(() => i.messages.length > 0), A = Vs(() => i.messages.some((e) => e.role === "user")), j = Vs(() => (n.debugLogs?.length ?? 0) > 0);
|
|
13565
13562
|
function M(e) {
|
|
13566
|
-
O.value[e]
|
|
13563
|
+
return O.value[e] !== !1;
|
|
13567
13564
|
}
|
|
13568
13565
|
function N(e) {
|
|
13569
|
-
|
|
13566
|
+
O.value[e] = !M(e);
|
|
13570
13567
|
}
|
|
13571
13568
|
function P(e) {
|
|
13569
|
+
return e.status === "running" ? "⏳" : e.status === "error" ? "❌" : "✅";
|
|
13570
|
+
}
|
|
13571
|
+
function F(e) {
|
|
13572
13572
|
let t = [];
|
|
13573
13573
|
for (let n of e) {
|
|
13574
13574
|
let e = t.length ? t[t.length - 1] : null;
|
|
@@ -13587,38 +13587,38 @@ app.mount('#app');
|
|
|
13587
13587
|
children: e.children
|
|
13588
13588
|
}));
|
|
13589
13589
|
}
|
|
13590
|
-
function
|
|
13590
|
+
function I(e) {
|
|
13591
13591
|
return e === "running" ? "⏳" : e === "error" ? "❌" : "✅";
|
|
13592
13592
|
}
|
|
13593
|
-
function
|
|
13593
|
+
function L(e) {
|
|
13594
13594
|
let t = i.messages[e];
|
|
13595
13595
|
return !!t && t.role === "assistant" && i.loading && e === i.messages.length - 1 && !t.content && !t.reasoning;
|
|
13596
13596
|
}
|
|
13597
|
-
function
|
|
13597
|
+
function ee() {
|
|
13598
13598
|
w.value.trim() && (s(w.value), w.value = "");
|
|
13599
13599
|
}
|
|
13600
|
-
function
|
|
13601
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(),
|
|
13600
|
+
function te(e) {
|
|
13601
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), ee());
|
|
13602
13602
|
}
|
|
13603
|
-
function
|
|
13603
|
+
function ne(e) {
|
|
13604
13604
|
return new Date(e).toLocaleTimeString("zh-CN", {
|
|
13605
13605
|
hour: "2-digit",
|
|
13606
13606
|
minute: "2-digit"
|
|
13607
13607
|
});
|
|
13608
13608
|
}
|
|
13609
|
-
let
|
|
13609
|
+
let re = Vs(() => {
|
|
13610
13610
|
let e = n.getInfo?.();
|
|
13611
13611
|
return {
|
|
13612
13612
|
mcp: e?.mcp?.servers?.length ?? 0,
|
|
13613
13613
|
tools: e?.tools?.length ?? 0
|
|
13614
13614
|
};
|
|
13615
13615
|
});
|
|
13616
|
-
function
|
|
13616
|
+
function ie(e) {
|
|
13617
13617
|
wl(e).then((e) => {
|
|
13618
|
-
e && (
|
|
13618
|
+
e && (ae.value = !0, setTimeout(() => ae.value = !1, 1500));
|
|
13619
13619
|
});
|
|
13620
13620
|
}
|
|
13621
|
-
let
|
|
13621
|
+
let ae = /* @__PURE__ */ U(!1), oe = Vs(() => {
|
|
13622
13622
|
if (!n.drawer || n.drawerWidth == null) return null;
|
|
13623
13623
|
let e = n.drawerWidth;
|
|
13624
13624
|
return typeof e == "number" ? `${e}px` : e;
|
|
@@ -13632,9 +13632,9 @@ app.mount('#app');
|
|
|
13632
13632
|
collapsed: !T.value && !e.drawer,
|
|
13633
13633
|
drawer: e.drawer
|
|
13634
13634
|
}]),
|
|
13635
|
-
style: Se(
|
|
13636
|
-
width:
|
|
13637
|
-
maxWidth:
|
|
13635
|
+
style: Se(oe.value ? {
|
|
13636
|
+
width: oe.value,
|
|
13637
|
+
maxWidth: oe.value
|
|
13638
13638
|
} : null)
|
|
13639
13639
|
}, [
|
|
13640
13640
|
Y("div", ch, [Y("div", lh, [
|
|
@@ -13657,7 +13657,7 @@ app.mount('#app');
|
|
|
13657
13657
|
Y("path", { d: "M9 2v8l-3 3v2h12v-2l-3-3V2" }),
|
|
13658
13658
|
Y("path", { d: "M9 2h6" }),
|
|
13659
13659
|
Y("path", { d: "M9 18h6" })
|
|
13660
|
-
], -1),
|
|
13660
|
+
], -1), j.value ? (q(), J("span", ph, B(e.debugLogs?.length), 1)) : X("", !0)], 2),
|
|
13661
13661
|
n.onAddSkill ? (q(), J("button", {
|
|
13662
13662
|
key: 0,
|
|
13663
13663
|
class: R(["action-btn", { active: D.value }]),
|
|
@@ -13718,20 +13718,20 @@ app.mount('#app');
|
|
|
13718
13718
|
}, [e.showAvatar ? (q(), J("div", bh, B(t.role === "user" ? "👤" : "🤖"), 1)) : X("", !0), Y("div", xh, [
|
|
13719
13719
|
t.role === "assistant" && t.reasoning ? (q(), J("div", {
|
|
13720
13720
|
key: 0,
|
|
13721
|
-
class: R(["reasoning-block", { expanded:
|
|
13721
|
+
class: R(["reasoning-block", { expanded: M(n) }])
|
|
13722
13722
|
}, [Y("div", {
|
|
13723
13723
|
class: "reasoning-header",
|
|
13724
|
-
onClick: (e) =>
|
|
13724
|
+
onClick: (e) => N(n)
|
|
13725
13725
|
}, [
|
|
13726
13726
|
s[29] ||= Y("span", { class: "reasoning-icon" }, "🧠", -1),
|
|
13727
13727
|
s[30] ||= Y("span", { class: "reasoning-title" }, "思考过程", -1),
|
|
13728
|
-
Y("span", Ch, B(
|
|
13729
|
-
], 8, Sh),
|
|
13730
|
-
t.role === "assistant" && t.steps && t.steps.length ? (q(), J("div", Th, [(q(!0), J(K, null, Qi(
|
|
13728
|
+
Y("span", Ch, B(M(n) ? "▾" : "▸"), 1)
|
|
13729
|
+
], 8, Sh), M(n) ? (q(), J("div", wh, B(t.reasoning), 1)) : X("", !0)], 2)) : X("", !0),
|
|
13730
|
+
t.role === "assistant" && t.steps && t.steps.length ? (q(), J("div", Th, [(q(!0), J(K, null, Qi(F(t.steps), (e, t) => (q(), J("div", {
|
|
13731
13731
|
key: t,
|
|
13732
13732
|
class: "step-item"
|
|
13733
13733
|
}, [Y("div", Eh, [
|
|
13734
|
-
Y("span", Dh, B(
|
|
13734
|
+
Y("span", Dh, B(I(e.status)), 1),
|
|
13735
13735
|
Y("span", Oh, B(e.name), 1),
|
|
13736
13736
|
e.count > 1 ? (q(), J("span", kh, "×" + B(e.count), 1)) : X("", !0),
|
|
13737
13737
|
e.status === "running" ? (q(), J("span", Ah, "执行中…")) : X("", !0)
|
|
@@ -13739,11 +13739,11 @@ app.mount('#app');
|
|
|
13739
13739
|
key: t,
|
|
13740
13740
|
class: "step-child"
|
|
13741
13741
|
}, [
|
|
13742
|
-
Y("span", Mh, B(
|
|
13742
|
+
Y("span", Mh, B(P(e)), 1),
|
|
13743
13743
|
Y("span", Nh, B(e.name), 1),
|
|
13744
13744
|
e.status === "running" ? (q(), J("span", Ph, "…")) : X("", !0)
|
|
13745
13745
|
]))), 128))])) : X("", !0)]))), 128))])) : X("", !0),
|
|
13746
|
-
Y("div", { class: R(["message-bubble", { typing:
|
|
13746
|
+
Y("div", { class: R(["message-bubble", { typing: L(n) }]) }, [L(n) ? (q(), J(K, { key: 0 }, [e.showTyping ? (q(), J(K, { key: 0 }, [
|
|
13747
13747
|
s[32] ||= Y("span", { class: "dot" }, null, -1),
|
|
13748
13748
|
s[33] ||= Y("span", { class: "dot" }, null, -1),
|
|
13749
13749
|
s[34] ||= Y("span", { class: "dot" }, null, -1)
|
|
@@ -13752,12 +13752,12 @@ app.mount('#app');
|
|
|
13752
13752
|
content: t.content
|
|
13753
13753
|
}, null, 8, ["content"])) : (q(), J(K, { key: 1 }, [os(B(t.content), 1)], 64))], 64))], 2),
|
|
13754
13754
|
t.role === "assistant" && W(i).loading && n === W(i).messages.length - 1 && t.content ? (q(), J("span", Ih)) : X("", !0),
|
|
13755
|
-
Y("div", Lh, B(
|
|
13755
|
+
Y("div", Lh, B(ne(t.timestamp)), 1),
|
|
13756
13756
|
t.role === "assistant" && t.content && !W(i).loading && n === W(i).messages.length - 1 ? (q(), J("div", Rh, [Y("button", {
|
|
13757
13757
|
class: "msg-action-btn",
|
|
13758
|
-
title:
|
|
13759
|
-
onClick: (e) =>
|
|
13760
|
-
}, B(
|
|
13758
|
+
title: ae.value ? "已复制" : "复制",
|
|
13759
|
+
onClick: (e) => ie(t.content)
|
|
13760
|
+
}, B(ae.value ? "✓ 已复制" : "📋 复制"), 9, zh), Y("button", {
|
|
13761
13761
|
class: "msg-action-btn",
|
|
13762
13762
|
title: "重新生成",
|
|
13763
13763
|
onClick: s[6] ||= (...e) => W(d) && W(d)(...e)
|
|
@@ -13853,7 +13853,7 @@ app.mount('#app');
|
|
|
13853
13853
|
])) : X("", !0),
|
|
13854
13854
|
ts(ac, { name: "cs-slide" }, {
|
|
13855
13855
|
default: zr(() => [Vr(Y("div", pg, [
|
|
13856
|
-
n.getInfo ? (q(), J("span", mg, " 🔌" + B(
|
|
13856
|
+
n.getInfo ? (q(), J("span", mg, " 🔌" + B(re.value.mcp) + " · 🔧" + B(re.value.tools), 1)) : X("", !0),
|
|
13857
13857
|
S.value ? (q(), J("button", {
|
|
13858
13858
|
key: 1,
|
|
13859
13859
|
class: "undo-foot-btn",
|
|
@@ -13865,13 +13865,13 @@ app.mount('#app');
|
|
|
13865
13865
|
class: "chat-input",
|
|
13866
13866
|
placeholder: e.placeholder,
|
|
13867
13867
|
rows: n.inputRows,
|
|
13868
|
-
onKeydown:
|
|
13868
|
+
onKeydown: te
|
|
13869
13869
|
}, null, 40, hg), [[al, w.value]]),
|
|
13870
13870
|
Y("button", {
|
|
13871
13871
|
class: R(["send-btn", { "stop-btn": W(i).loading }]),
|
|
13872
13872
|
disabled: !W(i).loading && !w.value.trim(),
|
|
13873
13873
|
title: W(i).loading ? "停止生成" : "发送",
|
|
13874
|
-
onClick: s[20] ||= (e) => W(i).loading ? W(l)() :
|
|
13874
|
+
onClick: s[20] ||= (e) => W(i).loading ? W(l)() : ee()
|
|
13875
13875
|
}, [W(i).loading ? (q(), J("svg", _g, [...s[46] ||= [Y("rect", {
|
|
13876
13876
|
x: "6",
|
|
13877
13877
|
y: "6",
|
|
@@ -14236,51 +14236,55 @@ function Ug(e, t) {
|
|
|
14236
14236
|
});
|
|
14237
14237
|
}
|
|
14238
14238
|
function Wg(e) {
|
|
14239
|
-
let { apiKey: t, baseUrl: r, model: c = "gpt-3.5-turbo", temperature: l = .7, maxTokens: u,
|
|
14239
|
+
let { apiKey: t, baseUrl: r, model: c = "gpt-3.5-turbo", temperature: l = .7, maxTokens: u, extraBody: d, extraConfig: f, systemPrompt: p, tools: m = [], middleware: h = [], maxToolRounds: g = Bg, maxRetries: _ = 2, retryDelayMs: v = 500, maxParallelTools: y = 1, maxVerifyAttempts: b = 0, onLog: x, onLlmChange: S, debug: C = !1 } = e, w = Eg({
|
|
14240
14240
|
model: c,
|
|
14241
14241
|
contextWindow: e.contextWindow,
|
|
14242
14242
|
maxOutputTokens: e.maxOutputTokens
|
|
14243
|
-
}),
|
|
14244
|
-
function
|
|
14243
|
+
}), T = u ?? w.maxOutputTokens, E = Og(w.contextWindow), D = kg(w.contextWindow), O = /* @__PURE__ */ hn([]);
|
|
14244
|
+
function k(e, t) {
|
|
14245
14245
|
let n = {
|
|
14246
14246
|
timestamp: Date.now(),
|
|
14247
14247
|
type: e,
|
|
14248
14248
|
data: t
|
|
14249
14249
|
};
|
|
14250
|
-
|
|
14250
|
+
O.value.push(n), O.value.length > Vg && O.value.splice(0, O.value.length - Vg), vn(O), x?.(n), C && console.log(`%c[Agent] ${e}`, "color:#667eea;font-weight:bold", t);
|
|
14251
14251
|
}
|
|
14252
|
-
let
|
|
14253
|
-
|
|
14254
|
-
},
|
|
14252
|
+
let A = (e) => {
|
|
14253
|
+
O.value.push(e), O.value.length > Vg && O.value.splice(0, O.value.length - Vg), vn(O);
|
|
14254
|
+
}, j = [...h.flatMap((e) => e.tools || []), ...m], M = e.llm ?? new n({
|
|
14255
14255
|
apiKey: t,
|
|
14256
14256
|
model: c,
|
|
14257
14257
|
temperature: l,
|
|
14258
|
-
maxTokens:
|
|
14259
|
-
configuration:
|
|
14260
|
-
|
|
14261
|
-
|
|
14262
|
-
|
|
14263
|
-
|
|
14264
|
-
|
|
14265
|
-
function
|
|
14266
|
-
|
|
14267
|
-
|
|
14268
|
-
|
|
14258
|
+
maxTokens: T,
|
|
14259
|
+
configuration: {
|
|
14260
|
+
...r ? { baseURL: r } : {},
|
|
14261
|
+
...f
|
|
14262
|
+
},
|
|
14263
|
+
...d ? { modelKwargs: d } : {}
|
|
14264
|
+
}), N = j.length > 0 ? M.bindTools?.(j) ?? M : M;
|
|
14265
|
+
function P() {
|
|
14266
|
+
N = j.length > 0 ? M.bindTools?.(j) ?? M : M;
|
|
14267
|
+
}
|
|
14268
|
+
let F = Ag();
|
|
14269
|
+
function I() {
|
|
14270
|
+
let e = [p || "你是一个智能助手。"];
|
|
14271
|
+
for (let t of h) if (t.augmentPrompt) {
|
|
14272
|
+
let n = t.augmentPrompt(F);
|
|
14269
14273
|
n && e.push(n);
|
|
14270
14274
|
}
|
|
14271
14275
|
return e.join("\n\n");
|
|
14272
14276
|
}
|
|
14273
|
-
function
|
|
14274
|
-
let t = [new o(
|
|
14277
|
+
function L(e) {
|
|
14278
|
+
let t = [new o(I())];
|
|
14275
14279
|
for (let n of e) n.role === "user" ? t.push(new a(n.content)) : n.role === "assistant" ? t.push(new i(n.content)) : n.role === "system" && t.push(new o(n.content));
|
|
14276
14280
|
return t;
|
|
14277
14281
|
}
|
|
14278
|
-
function
|
|
14279
|
-
let t = e.filter((e) =>
|
|
14280
|
-
return [new o(
|
|
14282
|
+
function ee(e) {
|
|
14283
|
+
let t = e.filter((e) => re(e) !== "system");
|
|
14284
|
+
return [new o(I()), ...t];
|
|
14281
14285
|
}
|
|
14282
|
-
async function
|
|
14283
|
-
let a = r ??
|
|
14286
|
+
async function te(e, t, n, r) {
|
|
14287
|
+
let a = r ?? N;
|
|
14284
14288
|
return Sl(async () => {
|
|
14285
14289
|
let r = null, o = "";
|
|
14286
14290
|
try {
|
|
@@ -14315,21 +14319,21 @@ function Wg(e) {
|
|
|
14315
14319
|
};
|
|
14316
14320
|
}, {
|
|
14317
14321
|
signal: n,
|
|
14318
|
-
maxRetries:
|
|
14319
|
-
baseDelayMs:
|
|
14322
|
+
maxRetries: _,
|
|
14323
|
+
baseDelayMs: v,
|
|
14320
14324
|
onRetry: ({ attempt: e, error: t, waitMs: n }) => {
|
|
14321
14325
|
let r = t?.message ?? String(t);
|
|
14322
|
-
|
|
14326
|
+
k("error", {
|
|
14323
14327
|
stage: "model_retry",
|
|
14324
14328
|
attempt: e,
|
|
14325
14329
|
waitMs: n,
|
|
14326
14330
|
error: r
|
|
14327
|
-
}), console.warn(`[Agent] 模型调用失败,第 ${e}/${
|
|
14331
|
+
}), console.warn(`[Agent] 模型调用失败,第 ${e}/${_} 次重试(等 ${n}ms):${r}`);
|
|
14328
14332
|
}
|
|
14329
14333
|
});
|
|
14330
14334
|
}
|
|
14331
|
-
async function
|
|
14332
|
-
let t =
|
|
14335
|
+
async function ne(e) {
|
|
14336
|
+
let t = j.find((t) => t.name === e.name);
|
|
14333
14337
|
if (!t) return {
|
|
14334
14338
|
content: `工具 "${e.name}" 不存在`,
|
|
14335
14339
|
status: "error"
|
|
@@ -14338,10 +14342,10 @@ function Wg(e) {
|
|
|
14338
14342
|
let n = await t.invoke(e.args), r = typeof n == "string" ? n : JSON.stringify(n);
|
|
14339
14343
|
return r = Sg(r, {
|
|
14340
14344
|
files: e.state.files,
|
|
14341
|
-
vfsAvailable:
|
|
14345
|
+
vfsAvailable: j.some((e) => e.name === "vfs_read"),
|
|
14342
14346
|
toolName: e.name,
|
|
14343
|
-
threshold:
|
|
14344
|
-
passThroughChars:
|
|
14347
|
+
threshold: E,
|
|
14348
|
+
passThroughChars: D
|
|
14345
14349
|
}), {
|
|
14346
14350
|
content: r,
|
|
14347
14351
|
status: "done"
|
|
@@ -14353,15 +14357,15 @@ function Wg(e) {
|
|
|
14353
14357
|
};
|
|
14354
14358
|
}
|
|
14355
14359
|
}
|
|
14356
|
-
function
|
|
14360
|
+
function re(e) {
|
|
14357
14361
|
return e instanceof a ? "human" : e instanceof i ? "ai" : e instanceof o ? "system" : e instanceof s ? "tool" : "unknown";
|
|
14358
14362
|
}
|
|
14359
|
-
function
|
|
14363
|
+
function ie(e, t) {
|
|
14360
14364
|
return Ug(e, t);
|
|
14361
14365
|
}
|
|
14362
|
-
function
|
|
14366
|
+
function ae(e) {
|
|
14363
14367
|
return e.map((e) => {
|
|
14364
|
-
let t =
|
|
14368
|
+
let t = re(e), n = { role: t === "human" ? "user" : t === "ai" ? "assistant" : t }, r = typeof e.content == "string" ? e.content : JSON.stringify(e.content);
|
|
14365
14369
|
r && (n.content = r.length > Hg ? r.slice(0, Hg) + `…(截断 ${r.length - Hg} 字符)` : r);
|
|
14366
14370
|
let i = e.tool_calls;
|
|
14367
14371
|
Array.isArray(i) && i.length && (n.tool_calls = i.map((e) => ({
|
|
@@ -14376,69 +14380,69 @@ function Wg(e) {
|
|
|
14376
14380
|
return a && (n.tool_call_id = a), n;
|
|
14377
14381
|
});
|
|
14378
14382
|
}
|
|
14379
|
-
async function
|
|
14380
|
-
|
|
14383
|
+
async function oe(e, t, n) {
|
|
14384
|
+
O.value = [], F = Ag(), F.messages = e, F = await Mg(h, F);
|
|
14381
14385
|
let r = e;
|
|
14382
|
-
for (let e of
|
|
14386
|
+
for (let e of h) if (e.compressInput) {
|
|
14383
14387
|
let t = await e.compressInput(r);
|
|
14384
|
-
r = Array.isArray(t) ? t : t.messages, t && !Array.isArray(t) && t.stats && (
|
|
14385
|
-
...
|
|
14388
|
+
r = Array.isArray(t) ? t : t.messages, t && !Array.isArray(t) && t.stats && (F = {
|
|
14389
|
+
...F,
|
|
14386
14390
|
lastCompression: t.stats
|
|
14387
14391
|
});
|
|
14388
14392
|
}
|
|
14389
|
-
let i =
|
|
14390
|
-
|
|
14393
|
+
let i = L(r);
|
|
14394
|
+
k("context", {
|
|
14391
14395
|
model: c,
|
|
14392
|
-
tools:
|
|
14393
|
-
middleware:
|
|
14396
|
+
tools: j.map((e) => e.name),
|
|
14397
|
+
middleware: h.map((e) => e.name)
|
|
14394
14398
|
});
|
|
14395
|
-
let l = Lg(
|
|
14399
|
+
let l = Lg(h, (e) => te(e, t, n)), u = Rg(h, ne), d = 0, f = null, p = 0;
|
|
14396
14400
|
try {
|
|
14397
|
-
for (; d <
|
|
14401
|
+
for (; d < g && !n?.aborted;) {
|
|
14398
14402
|
t({
|
|
14399
14403
|
type: "round_start",
|
|
14400
14404
|
round: d + 1
|
|
14401
|
-
}),
|
|
14405
|
+
}), F = Ng(h, {
|
|
14402
14406
|
messages: i,
|
|
14403
|
-
state:
|
|
14404
|
-
}), i =
|
|
14407
|
+
state: F
|
|
14408
|
+
}), i = ee(i), i = ie(i, D), k("llm_request", {
|
|
14405
14409
|
round: d + 1,
|
|
14406
14410
|
model: c,
|
|
14407
|
-
tools:
|
|
14408
|
-
messages:
|
|
14411
|
+
tools: j.map((e) => e.name),
|
|
14412
|
+
messages: ae(i)
|
|
14409
14413
|
});
|
|
14410
14414
|
let e = await l({
|
|
14411
14415
|
messages: i,
|
|
14412
|
-
state:
|
|
14416
|
+
state: F
|
|
14413
14417
|
});
|
|
14414
|
-
if (i.push(e.message),
|
|
14418
|
+
if (i.push(e.message), k("llm_response", {
|
|
14415
14419
|
round: d + 1,
|
|
14416
14420
|
content: e.content,
|
|
14417
14421
|
toolCalls: e.toolCalls
|
|
14418
|
-
}),
|
|
14422
|
+
}), F = Pg(h, e, F), e.aborted) return t({
|
|
14419
14423
|
type: "done",
|
|
14420
14424
|
content: e.content
|
|
14421
14425
|
}), e.content;
|
|
14422
14426
|
if (!e.toolCalls.length) {
|
|
14423
|
-
if (
|
|
14424
|
-
|
|
14427
|
+
if (p < 2 && zg(e.content)) {
|
|
14428
|
+
p += 1, k("middleware", {
|
|
14425
14429
|
stage: "format_retry",
|
|
14426
|
-
attempt:
|
|
14430
|
+
attempt: p,
|
|
14427
14431
|
content: e.content.slice(0, 200)
|
|
14428
14432
|
}), i.push(new a("⚠️ 你刚才把工具调用写成了文本(伪 XML/标签,如 <|tool_calls|>、<invoke name=...>),未被系统识别为工具调用,因此未执行,页面无变化。请直接用标准 function calling(工具调用)格式重新发起工具调用,不要在回复正文里输出这些标签或 JSON 文本。")), d += 1;
|
|
14429
14433
|
continue;
|
|
14430
14434
|
}
|
|
14431
|
-
if (
|
|
14432
|
-
let t = await Ig(
|
|
14435
|
+
if (b > 0 && F.verifyAttempts < b) {
|
|
14436
|
+
let t = await Ig(h, {
|
|
14433
14437
|
messages: i,
|
|
14434
|
-
state:
|
|
14438
|
+
state: F,
|
|
14435
14439
|
response: e,
|
|
14436
|
-
log: (e, t) =>
|
|
14440
|
+
log: (e, t) => k(e, t)
|
|
14437
14441
|
});
|
|
14438
14442
|
if (t) {
|
|
14439
|
-
f = e.content,
|
|
14443
|
+
f = e.content, F.verifyAttempts += 1, i.push(new a(`⚠️ 验证未通过,请修正:${t}`)), k("middleware", {
|
|
14440
14444
|
stage: "verify_retry",
|
|
14441
|
-
attempt:
|
|
14445
|
+
attempt: F.verifyAttempts,
|
|
14442
14446
|
feedback: t
|
|
14443
14447
|
}), d += 1;
|
|
14444
14448
|
continue;
|
|
@@ -14458,19 +14462,19 @@ function Wg(e) {
|
|
|
14458
14462
|
id: r,
|
|
14459
14463
|
name: e.name,
|
|
14460
14464
|
args: e.args,
|
|
14461
|
-
state:
|
|
14465
|
+
state: F,
|
|
14462
14466
|
signal: n,
|
|
14463
14467
|
emit: t,
|
|
14464
|
-
logSink:
|
|
14468
|
+
logSink: A
|
|
14465
14469
|
}
|
|
14466
14470
|
};
|
|
14467
|
-
}), o = await Cg(r,
|
|
14471
|
+
}), o = await Cg(r, y, async (e) => {
|
|
14468
14472
|
if (n?.aborted) return;
|
|
14469
14473
|
t({
|
|
14470
14474
|
type: "tool_call",
|
|
14471
14475
|
name: e.call.name,
|
|
14472
14476
|
args: e.call.args
|
|
14473
|
-
}),
|
|
14477
|
+
}), k("tool_call", {
|
|
14474
14478
|
round: d + 1,
|
|
14475
14479
|
name: e.call.name,
|
|
14476
14480
|
args: e.call.args,
|
|
@@ -14482,7 +14486,7 @@ function Wg(e) {
|
|
|
14482
14486
|
name: e.call.name,
|
|
14483
14487
|
result: r.content,
|
|
14484
14488
|
status: r.status
|
|
14485
|
-
}),
|
|
14489
|
+
}), k("tool_result", {
|
|
14486
14490
|
round: d + 1,
|
|
14487
14491
|
name: e.call.name,
|
|
14488
14492
|
result: r.content,
|
|
@@ -14508,19 +14512,19 @@ function Wg(e) {
|
|
|
14508
14512
|
content: f
|
|
14509
14513
|
}), f;
|
|
14510
14514
|
let e = i[i.length - 1];
|
|
14511
|
-
if (e &&
|
|
14512
|
-
let e = i.filter((e) =>
|
|
14513
|
-
|
|
14515
|
+
if (e && re(e) === "tool") {
|
|
14516
|
+
let e = i.filter((e) => re(e) !== "system"), r = [new o(I() + "\n\n工具调用次数已达上限,请基于已有工具结果直接给出最终回答,不要再调用工具。"), ...e];
|
|
14517
|
+
k("llm_request", {
|
|
14514
14518
|
round: "wrap_up",
|
|
14515
14519
|
model: c,
|
|
14516
14520
|
tools: [],
|
|
14517
|
-
messages:
|
|
14521
|
+
messages: ae(r)
|
|
14518
14522
|
});
|
|
14519
|
-
let a = await
|
|
14523
|
+
let a = await te({
|
|
14520
14524
|
messages: r,
|
|
14521
|
-
state:
|
|
14522
|
-
}, t, n,
|
|
14523
|
-
if (
|
|
14525
|
+
state: F
|
|
14526
|
+
}, t, n, M);
|
|
14527
|
+
if (k("llm_response", {
|
|
14524
14528
|
round: "wrap_up",
|
|
14525
14529
|
content: a.content
|
|
14526
14530
|
}), a.aborted || a.content) return t({
|
|
@@ -14535,34 +14539,34 @@ function Wg(e) {
|
|
|
14535
14539
|
}), r;
|
|
14536
14540
|
} finally {
|
|
14537
14541
|
try {
|
|
14538
|
-
await Fg(
|
|
14542
|
+
await Fg(h, F);
|
|
14539
14543
|
} catch (e) {
|
|
14540
14544
|
console.warn("[Agent] afterAgent 清理出错(已忽略):", e);
|
|
14541
14545
|
}
|
|
14542
14546
|
}
|
|
14543
14547
|
}
|
|
14544
|
-
async function
|
|
14548
|
+
async function se(e, t) {
|
|
14545
14549
|
let n = "";
|
|
14546
|
-
return await
|
|
14550
|
+
return await oe(e, (e) => {
|
|
14547
14551
|
e.type === "done" && (n = e.content);
|
|
14548
14552
|
}, t), n;
|
|
14549
14553
|
}
|
|
14550
|
-
function se(e) {
|
|
14551
|
-
k = [...p.flatMap((e) => e.tools || []), ...e], j();
|
|
14552
|
-
}
|
|
14553
14554
|
function ce(e) {
|
|
14554
|
-
|
|
14555
|
+
j = [...h.flatMap((e) => e.tools || []), ...e], P();
|
|
14556
|
+
}
|
|
14557
|
+
function le(e) {
|
|
14558
|
+
M = e, P(), S?.(e);
|
|
14555
14559
|
}
|
|
14556
14560
|
return {
|
|
14557
|
-
invoke:
|
|
14558
|
-
stream:
|
|
14559
|
-
getState: () =>
|
|
14561
|
+
invoke: se,
|
|
14562
|
+
stream: oe,
|
|
14563
|
+
getState: () => F,
|
|
14560
14564
|
get allTools() {
|
|
14561
|
-
return
|
|
14565
|
+
return j;
|
|
14562
14566
|
},
|
|
14563
|
-
setTools:
|
|
14564
|
-
setLlm:
|
|
14565
|
-
debugLogs:
|
|
14567
|
+
setTools: ce,
|
|
14568
|
+
setLlm: le,
|
|
14569
|
+
debugLogs: O
|
|
14566
14570
|
};
|
|
14567
14571
|
}
|
|
14568
14572
|
//#endregion
|
|
@@ -17623,7 +17627,11 @@ function tb(e) {
|
|
|
17623
17627
|
model: a.model,
|
|
17624
17628
|
temperature: r,
|
|
17625
17629
|
maxTokens: i,
|
|
17626
|
-
configuration:
|
|
17630
|
+
configuration: {
|
|
17631
|
+
...a.baseUrl ? { baseURL: a.baseUrl } : {},
|
|
17632
|
+
...a.extraConfig
|
|
17633
|
+
},
|
|
17634
|
+
...a.extraBody ? { modelKwargs: a.extraBody } : {}
|
|
17627
17635
|
});
|
|
17628
17636
|
}
|
|
17629
17637
|
return async (e) => {
|
|
@@ -17722,7 +17730,7 @@ function ib(e, i) {
|
|
|
17722
17730
|
...e.data,
|
|
17723
17731
|
description: e.data.description ?? "主数据对象"
|
|
17724
17732
|
} : void 0, S = e.checkpoint, C = S !== void 0 && S !== !1, w = C ? __({
|
|
17725
|
-
getData: () =>
|
|
17733
|
+
getData: () => N()?.bind,
|
|
17726
17734
|
slotPaths: x ? [""] : [],
|
|
17727
17735
|
vfsStore: _,
|
|
17728
17736
|
todosMw: v,
|
|
@@ -17735,13 +17743,13 @@ function ib(e, i) {
|
|
|
17735
17743
|
onConflict: l,
|
|
17736
17744
|
autoLock: e.autoLock,
|
|
17737
17745
|
interceptors: e.interceptors
|
|
17738
|
-
}) : [],
|
|
17739
|
-
|
|
17740
|
-
let
|
|
17741
|
-
|
|
17742
|
-
let
|
|
17743
|
-
|
|
17744
|
-
let
|
|
17746
|
+
}) : [], j = D ? cy(A, e.toolMode) : [], M = D && x ? A.controller ?? null : null, N = () => M?.get() ?? x, P = /* @__PURE__ */ new Map(), F = my(E, j, dy);
|
|
17747
|
+
F.forEach((e) => P.set(e.name, "builtin"));
|
|
17748
|
+
let I = [...e.tools || []];
|
|
17749
|
+
I.forEach((e) => P.set(e.name, "user"));
|
|
17750
|
+
let L = [], ee = e.humanConfirm !== !1 && (!e.approval || e.approval.humanConfirmTool !== !1), te = ee ? l_() : null;
|
|
17751
|
+
te && P.set(s_, "builtin");
|
|
17752
|
+
let ne = C && w ? [r(async () => {
|
|
17745
17753
|
let e = w.list();
|
|
17746
17754
|
return e.length ? w.restore() ? `已回退到最近一次正常状态(checkpoint #${e[e.length - 1].id})。对话历史、主数据、vfs、todos 已整体还原。请基于回退后的状态重新判断并继续。` : "回退失败:无可用 checkpoint。" : "无可用 checkpoint,无法回退。";
|
|
17747
17755
|
}, {
|
|
@@ -17756,27 +17764,27 @@ function ib(e, i) {
|
|
|
17756
17764
|
description: "列出可用会话 checkpoint(回退点)。",
|
|
17757
17765
|
schema: t.object({}).optional()
|
|
17758
17766
|
})] : [];
|
|
17759
|
-
|
|
17760
|
-
let
|
|
17761
|
-
...P,
|
|
17767
|
+
ne.forEach((e) => P.set(e.name, "builtin"));
|
|
17768
|
+
let re = [
|
|
17762
17769
|
...F,
|
|
17763
|
-
...
|
|
17764
|
-
...
|
|
17770
|
+
...I,
|
|
17771
|
+
...te ? [te] : [],
|
|
17772
|
+
...ne
|
|
17765
17773
|
];
|
|
17766
|
-
function
|
|
17774
|
+
function ie() {
|
|
17767
17775
|
return [
|
|
17768
|
-
...P,
|
|
17769
17776
|
...F,
|
|
17770
|
-
...
|
|
17771
|
-
...
|
|
17772
|
-
...
|
|
17777
|
+
...I,
|
|
17778
|
+
...te ? [te] : [],
|
|
17779
|
+
...ne,
|
|
17780
|
+
...L
|
|
17773
17781
|
];
|
|
17774
17782
|
}
|
|
17775
|
-
let
|
|
17783
|
+
let ae = E?.planning !== !1, oe = E?.skills !== !1, se = E?.vfs !== !1, ce = E?.summarization !== !1, le = E?.memory !== !1, ue = E?.subagent !== !1, de = e.verify?.maxAttempts ?? 2, fe = E?.verify === !0 && e.verify?.enabled !== !1 && de > 0;
|
|
17776
17784
|
e.verify?.check && E?.verify !== !0 && console.warn("[page-agent-sdk][verify] 检测到 verify.check 但 capabilities.verify 未开启,verify 未装载");
|
|
17777
|
-
let pe = e.subagent, me = pe?.allowedTools ?? [], he = !
|
|
17785
|
+
let pe = e.subagent, me = pe?.allowedTools ?? [], he = !ue || pe?.enabled === !1 ? void 0 : E_({
|
|
17778
17786
|
llm: pe?.llm ?? e.llm,
|
|
17779
|
-
allTools:
|
|
17787
|
+
allTools: re,
|
|
17780
17788
|
allowedTools: me.length ? me : void 0,
|
|
17781
17789
|
systemPrompt: pe?.systemPrompt,
|
|
17782
17790
|
temperature: pe?.temperature,
|
|
@@ -17785,19 +17793,19 @@ function ib(e, i) {
|
|
|
17785
17793
|
maxDepth: pe?.maxDepth,
|
|
17786
17794
|
maxParallel: pe?.maxParallel,
|
|
17787
17795
|
debug: e.debug
|
|
17788
|
-
}), ge =
|
|
17796
|
+
}), ge = ue && e.subagents !== void 0 ? k_(e.subagents, {
|
|
17789
17797
|
llm: e.llm,
|
|
17790
|
-
allTools:
|
|
17798
|
+
allTools: re,
|
|
17791
17799
|
debug: e.debug
|
|
17792
17800
|
}) : void 0, _e = ge ? ge.controller : null, ve = [
|
|
17793
17801
|
"get_data",
|
|
17794
17802
|
"describe_data",
|
|
17795
17803
|
"read",
|
|
17796
17804
|
"fetch_document"
|
|
17797
|
-
], ye =
|
|
17805
|
+
], ye = re.filter((e) => ve.includes(e.name)), be = fe ? A_({
|
|
17798
17806
|
check: e.verify.check ?? I_({
|
|
17799
|
-
schemas: () =>
|
|
17800
|
-
root: () =>
|
|
17807
|
+
schemas: () => N() ? { "": N().schema } : {},
|
|
17808
|
+
root: () => N()?.bind
|
|
17801
17809
|
}),
|
|
17802
17810
|
adversarial: e.verify?.adversarial ? {
|
|
17803
17811
|
llm: e.llm,
|
|
@@ -17805,7 +17813,7 @@ function ib(e, i) {
|
|
|
17805
17813
|
} : void 0
|
|
17806
17814
|
}) : void 0, xe = gy({
|
|
17807
17815
|
...E,
|
|
17808
|
-
humanConfirm:
|
|
17816
|
+
humanConfirm: ee,
|
|
17809
17817
|
subagents: e.subagents?.map((e) => ({
|
|
17810
17818
|
id: e.id,
|
|
17811
17819
|
description: e.description,
|
|
@@ -17813,14 +17821,14 @@ function ib(e, i) {
|
|
|
17813
17821
|
}))
|
|
17814
17822
|
}, D && !!x, e.toolMode), Se = x ? {
|
|
17815
17823
|
name: "dataHint",
|
|
17816
|
-
augmentPrompt: () => Jy(
|
|
17824
|
+
augmentPrompt: () => Jy(N()) || void 0
|
|
17817
17825
|
} : null, Ce = e.augmentSystem ? {
|
|
17818
17826
|
name: "augmentSystem",
|
|
17819
17827
|
augmentPrompt: (t) => {
|
|
17820
17828
|
try {
|
|
17821
17829
|
return e.augmentSystem({
|
|
17822
17830
|
state: t,
|
|
17823
|
-
data:
|
|
17831
|
+
data: N()
|
|
17824
17832
|
});
|
|
17825
17833
|
} catch (t) {
|
|
17826
17834
|
e.debug && console.log("[page-agent-sdk][augmentSystem] 回调抛错,降级跳过:", t.message);
|
|
@@ -17870,26 +17878,26 @@ function ib(e, i) {
|
|
|
17870
17878
|
}, Ne = [
|
|
17871
17879
|
...Se ? [Se] : [],
|
|
17872
17880
|
xe,
|
|
17873
|
-
...
|
|
17874
|
-
...
|
|
17875
|
-
...
|
|
17876
|
-
...
|
|
17881
|
+
...ae ? [v] : [],
|
|
17882
|
+
...oe ? [R = $g(e.skills || [], { readVfs: se ? (e) => _.files[e]?.content : void 0 })] : [],
|
|
17883
|
+
...se ? [Sv(_)] : [],
|
|
17884
|
+
...ce ? [av({
|
|
17877
17885
|
...uv(e, p.contextWindow),
|
|
17878
17886
|
llmInvoke: h,
|
|
17879
|
-
getRegisteredData: () =>
|
|
17887
|
+
getRegisteredData: () => N() ? [{ description: N().description ?? "主数据对象" }] : [],
|
|
17880
17888
|
preserveLastToolResults: (e.contextOptions && e.contextOptions.preserveLastToolResults) ?? ["describe_data", "read"]
|
|
17881
17889
|
})] : [],
|
|
17882
|
-
...
|
|
17890
|
+
...le ? [y] : [],
|
|
17883
17891
|
...e.permissions?.length ? [a_(e.permissions)] : [],
|
|
17884
17892
|
...C && T && w ? [v_(w)] : [],
|
|
17885
|
-
...
|
|
17893
|
+
...ee ? [u_()] : [],
|
|
17886
17894
|
...e.approval && (e.approval.tools !== void 0 || e.approval.confirm) ? [o_(e.approval)] : [],
|
|
17887
17895
|
...be ? [be] : [],
|
|
17888
17896
|
...he ? [he] : [],
|
|
17889
17897
|
...ge ? [ge] : [],
|
|
17890
17898
|
...Ce ? [Ce] : [],
|
|
17891
17899
|
...e.middleware || [],
|
|
17892
|
-
rb(Ee, g,
|
|
17900
|
+
rb(Ee, g, N, a)
|
|
17893
17901
|
], Pe = e.maxMemoryRounds ?? Yy, z = {
|
|
17894
17902
|
agentId: i,
|
|
17895
17903
|
store: d,
|
|
@@ -17905,11 +17913,11 @@ function ib(e, i) {
|
|
|
17905
17913
|
mcpClosers: [],
|
|
17906
17914
|
mcpServers: [],
|
|
17907
17915
|
checkpoint: w,
|
|
17908
|
-
dataOpsController:
|
|
17916
|
+
dataOpsController: M,
|
|
17909
17917
|
skillsController: R ? R.controller : null,
|
|
17910
17918
|
infoTick: s,
|
|
17911
17919
|
pendingConflict: o,
|
|
17912
|
-
liveData:
|
|
17920
|
+
liveData: N,
|
|
17913
17921
|
usage: a,
|
|
17914
17922
|
emit: Ee,
|
|
17915
17923
|
applySnapshot(t) {
|
|
@@ -17997,16 +18005,16 @@ function ib(e, i) {
|
|
|
17997
18005
|
},
|
|
17998
18006
|
resolveConflict: u,
|
|
17999
18007
|
setTools(e) {
|
|
18000
|
-
|
|
18001
|
-
|
|
18002
|
-
}),
|
|
18008
|
+
I.length = 0, e.forEach((e) => {
|
|
18009
|
+
I.push(e), P.set(e.name, "user");
|
|
18010
|
+
}), re = ie(), z.agent && z.agent.setTools(re), z.infoTick.value++;
|
|
18003
18011
|
},
|
|
18004
18012
|
addTool(e) {
|
|
18005
|
-
|
|
18013
|
+
I.some((t) => t.name === e.name) || (I.push(e), P.set(e.name, "user"), re = ie(), z.agent && z.agent.setTools(re), z.infoTick.value++);
|
|
18006
18014
|
},
|
|
18007
18015
|
removeTool(e) {
|
|
18008
|
-
let t =
|
|
18009
|
-
return t < 0 ? !1 : (
|
|
18016
|
+
let t = I.findIndex((t) => t.name === e);
|
|
18017
|
+
return t < 0 ? !1 : (I.splice(t, 1), re = ie(), z.agent && z.agent.setTools(re), z.infoTick.value++, !0);
|
|
18010
18018
|
},
|
|
18011
18019
|
setLlm(t) {
|
|
18012
18020
|
let r = Qy(t) ? t : new n({
|
|
@@ -18014,7 +18022,11 @@ function ib(e, i) {
|
|
|
18014
18022
|
model: t.model,
|
|
18015
18023
|
temperature: t.temperature,
|
|
18016
18024
|
maxTokens: t.maxTokens,
|
|
18017
|
-
configuration:
|
|
18025
|
+
configuration: {
|
|
18026
|
+
...t.baseUrl ? { baseURL: t.baseUrl } : {},
|
|
18027
|
+
...t.extraConfig
|
|
18028
|
+
},
|
|
18029
|
+
...t.extraBody ? { modelKwargs: t.extraBody } : {}
|
|
18018
18030
|
});
|
|
18019
18031
|
typeof r.bindTools != "function" && e.debug && console.warn("[page-agent-sdk][setLlm] 新模型不支持 bindTools(tool calling 会失效)"), m = t, z.agent && z.agent.setLlm(r), z.infoTick.value++;
|
|
18020
18032
|
},
|
|
@@ -18044,20 +18056,20 @@ function ib(e, i) {
|
|
|
18044
18056
|
return {
|
|
18045
18057
|
id: i,
|
|
18046
18058
|
model: Qy(m) ? m.model ?? m.modelName : m.model,
|
|
18047
|
-
systemPrompt: k + Jy(
|
|
18048
|
-
tools: (z.agent?.allTools ??
|
|
18059
|
+
systemPrompt: k + Jy(N()) + (Ce && Ce.augmentPrompt(z.agent?.getState?.() ?? Ag()) || ""),
|
|
18060
|
+
tools: (z.agent?.allTools ?? re).map((e) => ({
|
|
18049
18061
|
name: e.name,
|
|
18050
18062
|
description: e.description,
|
|
18051
18063
|
schema: e.schema,
|
|
18052
|
-
source:
|
|
18064
|
+
source: P.get(e.name) || "user"
|
|
18053
18065
|
})),
|
|
18054
18066
|
skills: (R ? R.controller.get() : e.skills ?? []).map((e) => ({
|
|
18055
18067
|
name: e.name,
|
|
18056
18068
|
description: e.description
|
|
18057
18069
|
})),
|
|
18058
|
-
data:
|
|
18059
|
-
description:
|
|
18060
|
-
schema:
|
|
18070
|
+
data: N() ? {
|
|
18071
|
+
description: N().description,
|
|
18072
|
+
schema: N().schema
|
|
18061
18073
|
} : void 0,
|
|
18062
18074
|
memory: y.get(),
|
|
18063
18075
|
middleware: Ne.map((e) => e.name),
|
|
@@ -18138,8 +18150,8 @@ function ib(e, i) {
|
|
|
18138
18150
|
name: a,
|
|
18139
18151
|
url: i.url,
|
|
18140
18152
|
toolCount: t.value.tools.length
|
|
18141
|
-
}), t.value.tools.forEach((e) =>
|
|
18142
|
-
}),
|
|
18153
|
+
}), t.value.tools.forEach((e) => P.set(e.name, `mcp:${a}`)), n.push(...t.value.tools)) : console.warn(`[page-agent-sdk][mcp] server ${a} 连接失败:`, t.reason);
|
|
18154
|
+
}), re = ie(), e.debug && console.log(`[page-agent-sdk][mcp] 注入 ${n.length} 个工具,${z.mcpServers.length} 个 server`);
|
|
18143
18155
|
}
|
|
18144
18156
|
z.agent = Wg({
|
|
18145
18157
|
...Qy(e.llm) ? { llm: e.llm } : {
|
|
@@ -18147,10 +18159,12 @@ function ib(e, i) {
|
|
|
18147
18159
|
baseUrl: e.llm.baseUrl,
|
|
18148
18160
|
model: e.llm.model,
|
|
18149
18161
|
temperature: e.llm.temperature,
|
|
18150
|
-
maxTokens: e.llm.maxTokens
|
|
18162
|
+
maxTokens: e.llm.maxTokens,
|
|
18163
|
+
extraBody: e.llm.extraBody,
|
|
18164
|
+
extraConfig: e.llm.extraConfig
|
|
18151
18165
|
},
|
|
18152
18166
|
systemPrompt: k,
|
|
18153
|
-
tools:
|
|
18167
|
+
tools: re,
|
|
18154
18168
|
middleware: Ne,
|
|
18155
18169
|
maxToolRounds: e.maxToolRounds,
|
|
18156
18170
|
maxRetries: e.maxRetries,
|
|
@@ -18168,7 +18182,7 @@ function ib(e, i) {
|
|
|
18168
18182
|
},
|
|
18169
18183
|
debug: e.debug
|
|
18170
18184
|
}), b.current = z.agent, ge && ge.setReconfigureHook && ge.setReconfigureHook(() => {
|
|
18171
|
-
z.agent && z.agent.setTools(
|
|
18185
|
+
z.agent && z.agent.setTools(ie());
|
|
18172
18186
|
});
|
|
18173
18187
|
})(), z;
|
|
18174
18188
|
}
|
|
@@ -18178,12 +18192,12 @@ function ab(e) {
|
|
|
18178
18192
|
let n = e.streaming ?? !0, r = e.ui ?? "default", i, a = e.shareContext ? $y.get(t) : void 0;
|
|
18179
18193
|
a ? i = a : (i = ib(e, t), e.shareContext && $y.set(t, i)), i.refCount++;
|
|
18180
18194
|
let o = null, s = null, c = Zy(e), l = null, u = null;
|
|
18181
|
-
async function d() {
|
|
18195
|
+
async function d(t) {
|
|
18182
18196
|
if (await i.initDone, o) {
|
|
18183
18197
|
m();
|
|
18184
18198
|
return;
|
|
18185
18199
|
}
|
|
18186
|
-
if (r === !1) {
|
|
18200
|
+
if (t !== void 0 && (e.container = t), r === !1) {
|
|
18187
18201
|
i.store && (l = () => {
|
|
18188
18202
|
i.vfsStore.flush?.(), i.store.flush();
|
|
18189
18203
|
}, u = () => {
|
|
@@ -18191,10 +18205,10 @@ function ab(e) {
|
|
|
18191
18205
|
}, typeof window < "u" && window.addEventListener("pagehide", l), typeof document < "u" && document.addEventListener("visibilitychange", u));
|
|
18192
18206
|
return;
|
|
18193
18207
|
}
|
|
18194
|
-
let
|
|
18195
|
-
if (!
|
|
18196
|
-
s =
|
|
18197
|
-
let
|
|
18208
|
+
let a = typeof e.container == "string" ? document.querySelector(e.container) : e.container;
|
|
18209
|
+
if (!a) throw Error(`createChatSdk: 挂载点未找到(${e.container})`);
|
|
18210
|
+
s = a;
|
|
18211
|
+
let d = i.agent.debugLogs;
|
|
18198
18212
|
o = fl(/* @__PURE__ */ Ei({ setup() {
|
|
18199
18213
|
return () => Hs(yg, {
|
|
18200
18214
|
fetchStream: n ? i.agent.stream : void 0,
|
|
@@ -18207,7 +18221,7 @@ function ab(e) {
|
|
|
18207
18221
|
},
|
|
18208
18222
|
title: c.title,
|
|
18209
18223
|
placeholder: c.placeholder,
|
|
18210
|
-
debugLogs:
|
|
18224
|
+
debugLogs: d.value,
|
|
18211
18225
|
initialMessages: i.messages,
|
|
18212
18226
|
getInfo: () => i.getInfo(),
|
|
18213
18227
|
onUndo: i.checkpoint ? () => i.checkpoint.restore() : void 0,
|
|
@@ -18232,7 +18246,7 @@ function ab(e) {
|
|
|
18232
18246
|
inputRows: c.inputRows,
|
|
18233
18247
|
onClose: c.onClose ?? (c.drawer === !0 ? () => p() : () => f())
|
|
18234
18248
|
});
|
|
18235
|
-
} })), o.mount(
|
|
18249
|
+
} })), o.mount(a), c.drawer === !0 && c.drawerHidden === !0 && p(), i.store && (l = () => {
|
|
18236
18250
|
i.vfsStore.flush?.(), i.store.flush();
|
|
18237
18251
|
}, u = () => {
|
|
18238
18252
|
document.visibilityState === "hidden" && i.store.flush();
|