@oiij/naive-ui 0.0.39 → 0.0.40
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/components/preset-picker/index.d.ts +2 -0
- package/dist/components.cjs +8 -8
- package/dist/components.js +793 -787
- package/dist/components.umd.cjs +8 -8
- package/package.json +3 -3
package/dist/components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject as Tr, onBeforeMount as Mo, defineComponent as ke, createBlock as $, openBlock as R, Transition as Lo, mergeProps as Y, unref as _, withCtx as O, renderSlot as B, ref as j, toValue as Be, isRef as Qt, isReactive as No, watchEffect as Re, watch as Ze, computed as ee, nextTick as Pr, normalizeClass as Ou, createElementVNode as Ye, normalizeStyle as rn, createVNode as Z, createCommentVNode as te, resolveDynamicComponent as le, Teleport as $o, normalizeProps as fe, guardReactiveProps as We, createSlots as Rr, onMounted as Io, createElementBlock as re, createTextVNode as vu, toDisplayString as nu, onScopeDispose as on, onUnmounted as zo, reactive as gu, toRefs as Bo, h as ge, useTemplateRef as mt, Fragment as Ce, renderList as eu, toRaw as we, toRef as Uo, withModifiers as qo, mergeModels as jo, useModel as Ho } from "vue";
|
|
2
|
-
import { NEl as an, NAvatar as Go, NFlex as $e, NSpin as Or, cM as qn, NConfigProvider as Vo, NLoadingBarProvider as Wo, NDialogProvider as Zo, NModalProvider as Yo, NNotificationProvider as Xo, NMessageProvider as Qo, NGlobalStyle as Jo, useDialog as Ko, useLoadingBar as ei, useMessage as ui, useModal as ti, useNotification as ni, NTooltip as ln, NButton as ru, NFormItem as ri, NInputGroup as oi, NInput as
|
|
2
|
+
import { NEl as an, NAvatar as Go, NFlex as $e, NSpin as Or, cM as qn, NConfigProvider as Vo, NLoadingBarProvider as Wo, NDialogProvider as Zo, NModalProvider as Yo, NNotificationProvider as Xo, NMessageProvider as Qo, NGlobalStyle as Jo, useDialog as Ko, useLoadingBar as ei, useMessage as ui, useModal as ti, useNotification as ni, NTooltip as ln, NButton as ru, NFormItem as ri, NInputGroup as oi, NInput as sn, NTimePicker as ii, NSwitch as ai, NSlider as li, NSelect as Mr, NRate as si, NRadioGroup as ci, NInputNumber as fi, NDynamicTags as di, NDatePicker as pi, NDivider as cn, NCheckboxGroup as hi, NColorPicker as bi, NCheckbox as mi, NRadio as gi, NGrid as st, NGi as ct, NCollapseTransition as Lr, NDataTable as ki, NPagination as Nr, NForm as xi, NBadge as vi, NButtonGroup as _i, NModal as yi } from "naive-ui";
|
|
3
3
|
import { createEventHook as rt, useClipboard as Ei, useTimeoutFn as Ai, useDebounceFn as $r } from "@vueuse/core";
|
|
4
4
|
function wi(e) {
|
|
5
5
|
let u = ".", t = "__", n = "--", r;
|
|
@@ -46,9 +46,9 @@ function wi(e) {
|
|
|
46
46
|
return {
|
|
47
47
|
$({ context: E, props: A }) {
|
|
48
48
|
d = typeof d == "string" ? d : d({ context: E, props: A });
|
|
49
|
-
const v = d.split(",").map((
|
|
50
|
-
function p(
|
|
51
|
-
return v.map((
|
|
49
|
+
const v = d.split(",").map((m) => m.trim());
|
|
50
|
+
function p(m) {
|
|
51
|
+
return v.map((b) => `&${A?.bPrefix || u}${E.bem.b}${m !== void 0 ? `${t}${m}` : ""}${n}${b}`).join(", ");
|
|
52
52
|
}
|
|
53
53
|
const k = E.bem.els;
|
|
54
54
|
if (k !== null) {
|
|
@@ -60,7 +60,7 @@ function wi(e) {
|
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function s(d) {
|
|
64
64
|
return {
|
|
65
65
|
$({ context: E, props: A }) {
|
|
66
66
|
d = typeof d == "string" ? d : d({ context: E, props: A });
|
|
@@ -75,7 +75,7 @@ function wi(e) {
|
|
|
75
75
|
cB: (...d) => r(a(d[0]), d[1], d[2]),
|
|
76
76
|
cE: (...d) => r(i(d[0]), d[1], d[2]),
|
|
77
77
|
cM: (...d) => r(l(d[0]), d[1], d[2]),
|
|
78
|
-
cNotM: (...d) => r(
|
|
78
|
+
cNotM: (...d) => r(s(d[0]), d[1], d[2])
|
|
79
79
|
}), o;
|
|
80
80
|
}
|
|
81
81
|
function Ci(e) {
|
|
@@ -211,30 +211,30 @@ function Br(e, u, t, n, r) {
|
|
|
211
211
|
if (!o || typeof o == "string")
|
|
212
212
|
Zu(o) ? a = o : u.push(o);
|
|
213
213
|
else if (typeof o == "function") {
|
|
214
|
-
const
|
|
214
|
+
const s = o({
|
|
215
215
|
context: n.context,
|
|
216
216
|
props: r
|
|
217
217
|
});
|
|
218
|
-
Zu(
|
|
218
|
+
Zu(s) ? a = s : u.push(s);
|
|
219
219
|
} else if (o.before && o.before(n.context), !o.$ || typeof o.$ == "string")
|
|
220
220
|
Zu(o.$) ? a = o.$ : u.push(o.$);
|
|
221
221
|
else if (o.$) {
|
|
222
|
-
const
|
|
222
|
+
const s = o.$({
|
|
223
223
|
context: n.context,
|
|
224
224
|
props: r
|
|
225
225
|
});
|
|
226
|
-
Zu(
|
|
226
|
+
Zu(s) ? a = s : u.push(s);
|
|
227
227
|
}
|
|
228
228
|
const i = Ti(u), l = Hn(i, e.props, n, r);
|
|
229
229
|
a ? t.push(`${a} {`) : l.length && t.push(l), e.children && Jt(e.children, {
|
|
230
230
|
context: n.context,
|
|
231
231
|
props: r
|
|
232
|
-
}, (
|
|
233
|
-
if (typeof
|
|
234
|
-
const
|
|
235
|
-
t.push(
|
|
232
|
+
}, (s) => {
|
|
233
|
+
if (typeof s == "string") {
|
|
234
|
+
const c = Hn(i, { raw: s }, n, r);
|
|
235
|
+
t.push(c);
|
|
236
236
|
} else
|
|
237
|
-
Br(
|
|
237
|
+
Br(s, u, t, n, r);
|
|
238
238
|
}), u.pop(), a && t.push("}"), o && o.after && o.after(n.context);
|
|
239
239
|
}
|
|
240
240
|
function Li(e, u, t) {
|
|
@@ -276,18 +276,18 @@ function Gn(e, u) {
|
|
|
276
276
|
e.push(u);
|
|
277
277
|
}
|
|
278
278
|
function Ii(e, u, t, n, r, o, a, i, l) {
|
|
279
|
-
let
|
|
280
|
-
if (t === void 0 && (
|
|
281
|
-
l.adapter(t,
|
|
279
|
+
let s;
|
|
280
|
+
if (t === void 0 && (s = u.render(n), t = Ni(s)), l) {
|
|
281
|
+
l.adapter(t, s ?? u.render(n));
|
|
282
282
|
return;
|
|
283
283
|
}
|
|
284
284
|
i === void 0 && (i = document.head);
|
|
285
|
-
const
|
|
286
|
-
if (
|
|
287
|
-
return
|
|
288
|
-
const f =
|
|
289
|
-
if (
|
|
290
|
-
return
|
|
285
|
+
const c = fn(t, i);
|
|
286
|
+
if (c !== null && !o)
|
|
287
|
+
return c;
|
|
288
|
+
const f = c ?? Pi(t);
|
|
289
|
+
if (s === void 0 && (s = u.render(n)), f.textContent = s, c !== null)
|
|
290
|
+
return c;
|
|
291
291
|
if (a) {
|
|
292
292
|
const y = i.querySelector(`meta[name="${a}"]`);
|
|
293
293
|
if (y)
|
|
@@ -511,7 +511,7 @@ function Fu(e, u) {
|
|
|
511
511
|
}
|
|
512
512
|
return t;
|
|
513
513
|
}
|
|
514
|
-
const Yn = ve(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Mt = ve(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Lt = ve(["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"]),
|
|
514
|
+
const Yn = ve(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Mt = ve(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Lt = ve(["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"]), sa = ve(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Nt = ve(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), ca = ve(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Xn = ve(["#text"]), Qn = ve(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), $t = ve(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Jn = ve(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Ju = ve(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), fa = Se(/\{\{[\w\W]*|[\w\W]*\}\}/gm), da = Se(/<%[\w\W]*|[\w\W]*%>/gm), pa = Se(/\$\{[\w\W]*/gm), ha = Se(/^data-[\-\w.\u00B7-\uFFFF]+$/), ba = Se(/^aria-[\-\w]+$/), Hr = Se(
|
|
515
515
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
516
516
|
// eslint-disable-line no-useless-escape
|
|
517
517
|
), ma = Se(/^(?:\w+script|data):/i), ga = Se(
|
|
@@ -585,8 +585,8 @@ function Vr() {
|
|
|
585
585
|
HTMLTemplateElement: a,
|
|
586
586
|
Node: i,
|
|
587
587
|
Element: l,
|
|
588
|
-
NodeFilter:
|
|
589
|
-
NamedNodeMap:
|
|
588
|
+
NodeFilter: s,
|
|
589
|
+
NamedNodeMap: c = e.NamedNodeMap || e.MozNamedAttrMap,
|
|
590
590
|
HTMLFormElement: f,
|
|
591
591
|
DOMParser: y,
|
|
592
592
|
trustedTypes: x
|
|
@@ -595,7 +595,7 @@ function Vr() {
|
|
|
595
595
|
const N = t.createElement("template");
|
|
596
596
|
N.content && N.content.ownerDocument && (t = N.content.ownerDocument);
|
|
597
597
|
}
|
|
598
|
-
let
|
|
598
|
+
let m, b = "";
|
|
599
599
|
const {
|
|
600
600
|
implementation: h,
|
|
601
601
|
createNodeIterator: C,
|
|
@@ -614,7 +614,7 @@ function Vr() {
|
|
|
614
614
|
ARIA_ATTR: de,
|
|
615
615
|
IS_SCRIPT_OR_DATA: K,
|
|
616
616
|
ATTR_WHITESPACE: W,
|
|
617
|
-
CUSTOM_ELEMENT:
|
|
617
|
+
CUSTOM_ELEMENT: ce
|
|
618
618
|
} = Kn;
|
|
619
619
|
let {
|
|
620
620
|
IS_ALLOWED_URI: pe
|
|
@@ -641,9 +641,9 @@ function Vr() {
|
|
|
641
641
|
enumerable: !0,
|
|
642
642
|
value: !1
|
|
643
643
|
}
|
|
644
|
-
})), ue = null, oe = null, ye = !0, Me = !0, Le = !1, iu = !0, Xe = !1, Qe = !0, au = !1, At = !1, wt = !1,
|
|
644
|
+
})), ue = null, oe = null, ye = !0, Me = !0, Le = !1, iu = !0, Xe = !1, Qe = !0, au = !1, At = !1, wt = !1, su = !1, qu = !1, ju = !1, An = !0, wn = !1;
|
|
645
645
|
const Co = "user-content-";
|
|
646
|
-
let Ct = !0, yu = !1,
|
|
646
|
+
let Ct = !0, yu = !1, cu = {}, fu = null;
|
|
647
647
|
const Cn = q({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
648
648
|
let Dn = null;
|
|
649
649
|
const Fn = q({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
@@ -662,17 +662,17 @@ function Vr() {
|
|
|
662
662
|
let g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
663
663
|
if (!(pu && pu === g)) {
|
|
664
664
|
if ((!g || typeof g != "object") && (g = {}), g = Ve(g), Eu = // eslint-disable-next-line unicorn/prefer-includes
|
|
665
|
-
So.indexOf(g.PARSER_MEDIA_TYPE) === -1 ? To : g.PARSER_MEDIA_TYPE, ie = Eu === "application/xhtml+xml" ? Ot : ot, w = Pe(g, "ALLOWED_TAGS") ? q({}, g.ALLOWED_TAGS, ie) : z, F = Pe(g, "ALLOWED_ATTR") ? q({}, g.ALLOWED_ATTR, ie) : H, St = Pe(g, "ALLOWED_NAMESPACES") ? q({}, g.ALLOWED_NAMESPACES, Ot) : Do, Dt = Pe(g, "ADD_URI_SAFE_ATTR") ? q(Ve(Sn), g.ADD_URI_SAFE_ATTR, ie) : Sn, Dn = Pe(g, "ADD_DATA_URI_TAGS") ? q(Ve(Fn), g.ADD_DATA_URI_TAGS, ie) : Fn, fu = Pe(g, "FORBID_CONTENTS") ? q({}, g.FORBID_CONTENTS, ie) : Cn, ue = Pe(g, "FORBID_TAGS") ? q({}, g.FORBID_TAGS, ie) : Ve({}), oe = Pe(g, "FORBID_ATTR") ? q({}, g.FORBID_ATTR, ie) : Ve({}),
|
|
665
|
+
So.indexOf(g.PARSER_MEDIA_TYPE) === -1 ? To : g.PARSER_MEDIA_TYPE, ie = Eu === "application/xhtml+xml" ? Ot : ot, w = Pe(g, "ALLOWED_TAGS") ? q({}, g.ALLOWED_TAGS, ie) : z, F = Pe(g, "ALLOWED_ATTR") ? q({}, g.ALLOWED_ATTR, ie) : H, St = Pe(g, "ALLOWED_NAMESPACES") ? q({}, g.ALLOWED_NAMESPACES, Ot) : Do, Dt = Pe(g, "ADD_URI_SAFE_ATTR") ? q(Ve(Sn), g.ADD_URI_SAFE_ATTR, ie) : Sn, Dn = Pe(g, "ADD_DATA_URI_TAGS") ? q(Ve(Fn), g.ADD_DATA_URI_TAGS, ie) : Fn, fu = Pe(g, "FORBID_CONTENTS") ? q({}, g.FORBID_CONTENTS, ie) : Cn, ue = Pe(g, "FORBID_TAGS") ? q({}, g.FORBID_TAGS, ie) : Ve({}), oe = Pe(g, "FORBID_ATTR") ? q({}, g.FORBID_ATTR, ie) : Ve({}), cu = Pe(g, "USE_PROFILES") ? g.USE_PROFILES : !1, ye = g.ALLOW_ARIA_ATTR !== !1, Me = g.ALLOW_DATA_ATTR !== !1, Le = g.ALLOW_UNKNOWN_PROTOCOLS || !1, iu = g.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Xe = g.SAFE_FOR_TEMPLATES || !1, Qe = g.SAFE_FOR_XML !== !1, au = g.WHOLE_DOCUMENT || !1, su = g.RETURN_DOM || !1, qu = g.RETURN_DOM_FRAGMENT || !1, ju = g.RETURN_TRUSTED_TYPE || !1, wt = g.FORCE_BODY || !1, An = g.SANITIZE_DOM !== !1, wn = g.SANITIZE_NAMED_PROPS || !1, Ct = g.KEEP_CONTENT !== !1, yu = g.IN_PLACE || !1, pe = g.ALLOWED_URI_REGEXP || Hr, du = g.NAMESPACE || je, Vu = g.MATHML_TEXT_INTEGRATION_POINTS || Vu, Wu = g.HTML_INTEGRATION_POINTS || Wu, U = g.CUSTOM_ELEMENT_HANDLING || {}, g.CUSTOM_ELEMENT_HANDLING && Tn(g.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (U.tagNameCheck = g.CUSTOM_ELEMENT_HANDLING.tagNameCheck), g.CUSTOM_ELEMENT_HANDLING && Tn(g.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (U.attributeNameCheck = g.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), g.CUSTOM_ELEMENT_HANDLING && typeof g.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (U.allowCustomizedBuiltInElements = g.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Xe && (Me = !1), qu && (su = !0), cu && (w = q({}, Xn), F = [], cu.html === !0 && (q(w, Yn), q(F, Qn)), cu.svg === !0 && (q(w, Mt), q(F, $t), q(F, Ju)), cu.svgFilters === !0 && (q(w, Lt), q(F, $t), q(F, Ju)), cu.mathMl === !0 && (q(w, Nt), q(F, Jn), q(F, Ju))), g.ADD_TAGS && (w === z && (w = Ve(w)), q(w, g.ADD_TAGS, ie)), g.ADD_ATTR && (F === H && (F = Ve(F)), q(F, g.ADD_ATTR, ie)), g.ADD_URI_SAFE_ATTR && q(Dt, g.ADD_URI_SAFE_ATTR, ie), g.FORBID_CONTENTS && (fu === Cn && (fu = Ve(fu)), q(fu, g.FORBID_CONTENTS, ie)), Ct && (w["#text"] = !0), au && q(w, ["html", "head", "body"]), w.table && (q(w, ["tbody"]), delete ue.tbody), g.TRUSTED_TYPES_POLICY) {
|
|
666
666
|
if (typeof g.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
667
667
|
throw Du('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
668
668
|
if (typeof g.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
669
669
|
throw Du('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
670
|
-
|
|
670
|
+
m = g.TRUSTED_TYPES_POLICY, b = m.createHTML("");
|
|
671
671
|
} else
|
|
672
|
-
|
|
672
|
+
m === void 0 && (m = va(x, r)), m !== null && typeof b == "string" && (b = m.createHTML(""));
|
|
673
673
|
ve && ve(g), pu = g;
|
|
674
674
|
}
|
|
675
|
-
}, Pn = q({}, [...Mt, ...Lt, ...
|
|
675
|
+
}, Pn = q({}, [...Mt, ...Lt, ...sa]), Rn = q({}, [...Nt, ...ca]), Ro = function(g) {
|
|
676
676
|
let S = k(g);
|
|
677
677
|
(!S || !S.tagName) && (S = {
|
|
678
678
|
namespaceURI: du,
|
|
@@ -702,7 +702,7 @@ function Vr() {
|
|
|
702
702
|
});
|
|
703
703
|
}
|
|
704
704
|
if (S.removeAttribute(g), g === "is")
|
|
705
|
-
if (
|
|
705
|
+
if (su || qu)
|
|
706
706
|
try {
|
|
707
707
|
Ne(S);
|
|
708
708
|
} catch {
|
|
@@ -721,7 +721,7 @@ function Vr() {
|
|
|
721
721
|
M = ne && ne[0];
|
|
722
722
|
}
|
|
723
723
|
Eu === "application/xhtml+xml" && du === je && (g = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + g + "</body></html>");
|
|
724
|
-
const J =
|
|
724
|
+
const J = m ? m.createHTML(g) : g;
|
|
725
725
|
if (du === je)
|
|
726
726
|
try {
|
|
727
727
|
S = new y().parseFromString(J, Eu);
|
|
@@ -730,7 +730,7 @@ function Vr() {
|
|
|
730
730
|
if (!S || !S.documentElement) {
|
|
731
731
|
S = h.createDocument(du, "template", null);
|
|
732
732
|
try {
|
|
733
|
-
S.documentElement.innerHTML = Ft ?
|
|
733
|
+
S.documentElement.innerHTML = Ft ? b : J;
|
|
734
734
|
} catch {
|
|
735
735
|
}
|
|
736
736
|
}
|
|
@@ -741,11 +741,11 @@ function Vr() {
|
|
|
741
741
|
g.ownerDocument || g,
|
|
742
742
|
g,
|
|
743
743
|
// eslint-disable-next-line no-bitwise
|
|
744
|
-
|
|
744
|
+
s.SHOW_ELEMENT | s.SHOW_COMMENT | s.SHOW_TEXT | s.SHOW_PROCESSING_INSTRUCTION | s.SHOW_CDATA_SECTION,
|
|
745
745
|
null
|
|
746
746
|
);
|
|
747
747
|
}, Pt = function(g) {
|
|
748
|
-
return g instanceof f && (typeof g.nodeName != "string" || typeof g.textContent != "string" || typeof g.removeChild != "function" || !(g.attributes instanceof
|
|
748
|
+
return g instanceof f && (typeof g.nodeName != "string" || typeof g.textContent != "string" || typeof g.removeChild != "function" || !(g.attributes instanceof c) || typeof g.removeAttribute != "function" || typeof g.setAttribute != "function" || typeof g.namespaceURI != "string" || typeof g.insertBefore != "function" || typeof g.hasChildNodes != "function");
|
|
749
749
|
}, Ln = function(g) {
|
|
750
750
|
return typeof i == "function" && g instanceof i;
|
|
751
751
|
};
|
|
@@ -812,7 +812,7 @@ function Vr() {
|
|
|
812
812
|
}
|
|
813
813
|
return !0;
|
|
814
814
|
}, In = function(g) {
|
|
815
|
-
return g !== "annotation-xml" && Zn(g,
|
|
815
|
+
return g !== "annotation-xml" && Zn(g, ce);
|
|
816
816
|
}, zn = function(g) {
|
|
817
817
|
He(L.beforeSanitizeAttributes, g, null);
|
|
818
818
|
const {
|
|
@@ -857,14 +857,14 @@ function Vr() {
|
|
|
857
857
|
hu(ne, g);
|
|
858
858
|
continue;
|
|
859
859
|
}
|
|
860
|
-
if (
|
|
860
|
+
if (m && typeof x == "object" && typeof x.getAttributeType == "function" && !Ee)
|
|
861
861
|
switch (x.getAttributeType(Bn, Au)) {
|
|
862
862
|
case "TrustedHTML": {
|
|
863
|
-
be =
|
|
863
|
+
be = m.createHTML(be);
|
|
864
864
|
break;
|
|
865
865
|
}
|
|
866
866
|
case "TrustedScriptURL": {
|
|
867
|
-
be =
|
|
867
|
+
be = m.createScriptURL(be);
|
|
868
868
|
break;
|
|
869
869
|
}
|
|
870
870
|
}
|
|
@@ -902,11 +902,11 @@ function Vr() {
|
|
|
902
902
|
} else if (N instanceof i)
|
|
903
903
|
S = On("<!---->"), M = S.ownerDocument.importNode(N, !0), M.nodeType === Su.element && M.nodeName === "BODY" || M.nodeName === "HTML" ? S = M : S.appendChild(M);
|
|
904
904
|
else {
|
|
905
|
-
if (!
|
|
905
|
+
if (!su && !Xe && !au && // eslint-disable-next-line unicorn/prefer-includes
|
|
906
906
|
N.indexOf("<") === -1)
|
|
907
|
-
return
|
|
907
|
+
return m && ju ? m.createHTML(N) : N;
|
|
908
908
|
if (S = On(N), !S)
|
|
909
|
-
return
|
|
909
|
+
return su ? null : ju ? b : "";
|
|
910
910
|
}
|
|
911
911
|
S && wt && Ne(S.firstChild);
|
|
912
912
|
const ne = Mn(yu ? N : S);
|
|
@@ -914,7 +914,7 @@ function Vr() {
|
|
|
914
914
|
Nn(J), zn(J), J.content instanceof o && Oo(J.content);
|
|
915
915
|
if (yu)
|
|
916
916
|
return N;
|
|
917
|
-
if (
|
|
917
|
+
if (su) {
|
|
918
918
|
if (qu)
|
|
919
919
|
for (he = P.call(S.ownerDocument); S.firstChild; )
|
|
920
920
|
he.appendChild(S.firstChild);
|
|
@@ -926,7 +926,7 @@ function Vr() {
|
|
|
926
926
|
return au && w["!doctype"] && S.ownerDocument && S.ownerDocument.doctype && S.ownerDocument.doctype.name && xe(Gr, S.ownerDocument.doctype.name) && (Ee = "<!DOCTYPE " + S.ownerDocument.doctype.name + `>
|
|
927
927
|
` + Ee), Xe && Qu([G, X, T], (Ge) => {
|
|
928
928
|
Ee = Cu(Ee, Ge, " ");
|
|
929
|
-
}),
|
|
929
|
+
}), m && ju ? m.createHTML(Ee) : Ee;
|
|
930
930
|
}, u.setConfig = function() {
|
|
931
931
|
let N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
932
932
|
Tt(N), At = !0;
|
|
@@ -981,23 +981,23 @@ function ku(e, u) {
|
|
|
981
981
|
if ((i & 224) === 192 && o + 3 < a) {
|
|
982
982
|
const l = parseInt(n.slice(o + 4, o + 6), 16);
|
|
983
983
|
if ((l & 192) === 128) {
|
|
984
|
-
const
|
|
985
|
-
|
|
984
|
+
const s = i << 6 & 1984 | l & 63;
|
|
985
|
+
s < 128 ? r += "��" : r += String.fromCharCode(s), o += 3;
|
|
986
986
|
continue;
|
|
987
987
|
}
|
|
988
988
|
}
|
|
989
989
|
if ((i & 240) === 224 && o + 6 < a) {
|
|
990
|
-
const l = parseInt(n.slice(o + 4, o + 6), 16),
|
|
991
|
-
if ((l & 192) === 128 && (
|
|
992
|
-
const
|
|
993
|
-
|
|
990
|
+
const l = parseInt(n.slice(o + 4, o + 6), 16), s = parseInt(n.slice(o + 7, o + 9), 16);
|
|
991
|
+
if ((l & 192) === 128 && (s & 192) === 128) {
|
|
992
|
+
const c = i << 12 & 61440 | l << 6 & 4032 | s & 63;
|
|
993
|
+
c < 2048 || c >= 55296 && c <= 57343 ? r += "���" : r += String.fromCharCode(c), o += 6;
|
|
994
994
|
continue;
|
|
995
995
|
}
|
|
996
996
|
}
|
|
997
997
|
if ((i & 248) === 240 && o + 9 < a) {
|
|
998
|
-
const l = parseInt(n.slice(o + 4, o + 6), 16),
|
|
999
|
-
if ((l & 192) === 128 && (
|
|
1000
|
-
let f = i << 18 & 1835008 | l << 12 & 258048 |
|
|
998
|
+
const l = parseInt(n.slice(o + 4, o + 6), 16), s = parseInt(n.slice(o + 7, o + 9), 16), c = parseInt(n.slice(o + 10, o + 12), 16);
|
|
999
|
+
if ((l & 192) === 128 && (s & 192) === 128 && (c & 192) === 128) {
|
|
1000
|
+
let f = i << 18 & 1835008 | l << 12 & 258048 | s << 6 & 4032 | c & 63;
|
|
1001
1001
|
f < 65536 || f > 1114111 ? r += "����" : (f -= 65536, r += String.fromCharCode(55296 + (f >> 10), 56320 + (f & 1023))), o += 9;
|
|
1002
1002
|
continue;
|
|
1003
1003
|
}
|
|
@@ -1085,22 +1085,22 @@ function pn(e, u) {
|
|
|
1085
1085
|
ft.prototype.parse = function(e, u) {
|
|
1086
1086
|
let t, n, r, o = e;
|
|
1087
1087
|
if (o = o.trim(), !u && e.split("#").length === 1) {
|
|
1088
|
-
const
|
|
1089
|
-
if (
|
|
1090
|
-
return this.pathname =
|
|
1088
|
+
const s = Ca.exec(o);
|
|
1089
|
+
if (s)
|
|
1090
|
+
return this.pathname = s[1], s[2] && (this.search = s[2]), this;
|
|
1091
1091
|
}
|
|
1092
1092
|
let a = Aa.exec(o);
|
|
1093
1093
|
if (a && (a = a[0], t = a.toLowerCase(), this.protocol = a, o = o.substr(a.length)), (u || a || o.match(/^\/\/[^@\/]+@[^@\/]+/)) && (r = o.substr(0, 2) === "//", r && !(a && ir[a]) && (o = o.substr(2), this.slashes = !0)), !ir[a] && (r || a && !ar[a])) {
|
|
1094
|
-
let
|
|
1094
|
+
let s = -1;
|
|
1095
1095
|
for (let d = 0; d < rr.length; d++)
|
|
1096
|
-
n = o.indexOf(rr[d]), n !== -1 && (
|
|
1097
|
-
let
|
|
1098
|
-
|
|
1096
|
+
n = o.indexOf(rr[d]), n !== -1 && (s === -1 || n < s) && (s = n);
|
|
1097
|
+
let c, f;
|
|
1098
|
+
s === -1 ? f = o.lastIndexOf("@") : f = o.lastIndexOf("@", s), f !== -1 && (c = o.slice(0, f), o = o.slice(f + 1), this.auth = c), s = -1;
|
|
1099
1099
|
for (let d = 0; d < nr.length; d++)
|
|
1100
|
-
n = o.indexOf(nr[d]), n !== -1 && (
|
|
1101
|
-
|
|
1102
|
-
const y = o.slice(0,
|
|
1103
|
-
o = o.slice(
|
|
1100
|
+
n = o.indexOf(nr[d]), n !== -1 && (s === -1 || n < s) && (s = n);
|
|
1101
|
+
s === -1 && (s = o.length), o[s - 1] === ":" && s--;
|
|
1102
|
+
const y = o.slice(0, s);
|
|
1103
|
+
o = o.slice(s), this.parseHost(y), this.hostname = this.hostname || "";
|
|
1104
1104
|
const x = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
1105
1105
|
if (!x) {
|
|
1106
1106
|
const d = this.hostname.split(/\./);
|
|
@@ -1108,11 +1108,11 @@ ft.prototype.parse = function(e, u) {
|
|
|
1108
1108
|
const v = d[E];
|
|
1109
1109
|
if (v && !v.match(or)) {
|
|
1110
1110
|
let p = "";
|
|
1111
|
-
for (let k = 0,
|
|
1111
|
+
for (let k = 0, m = v.length; k < m; k++)
|
|
1112
1112
|
v.charCodeAt(k) > 127 ? p += "x" : p += v[k];
|
|
1113
1113
|
if (!p.match(or)) {
|
|
1114
|
-
const k = d.slice(0, E),
|
|
1115
|
-
|
|
1114
|
+
const k = d.slice(0, E), m = d.slice(E + 1), b = v.match(Pa);
|
|
1115
|
+
b && (k.push(b[1]), m.unshift(b[2])), m.length && (o = m.join(".") + o), this.hostname = k.join(".");
|
|
1116
1116
|
break;
|
|
1117
1117
|
}
|
|
1118
1118
|
}
|
|
@@ -1192,26 +1192,26 @@ function za(e) {
|
|
|
1192
1192
|
var u;
|
|
1193
1193
|
return e >= 55296 && e <= 57343 || e > 1114111 ? 65533 : (u = $a.get(e)) !== null && u !== void 0 ? u : e;
|
|
1194
1194
|
}
|
|
1195
|
-
var
|
|
1195
|
+
var se;
|
|
1196
1196
|
(function(e) {
|
|
1197
1197
|
e[e.NUM = 35] = "NUM", e[e.SEMI = 59] = "SEMI", e[e.EQUALS = 61] = "EQUALS", e[e.ZERO = 48] = "ZERO", e[e.NINE = 57] = "NINE", e[e.LOWER_A = 97] = "LOWER_A", e[e.LOWER_F = 102] = "LOWER_F", e[e.LOWER_X = 120] = "LOWER_X", e[e.LOWER_Z = 122] = "LOWER_Z", e[e.UPPER_A = 65] = "UPPER_A", e[e.UPPER_F = 70] = "UPPER_F", e[e.UPPER_Z = 90] = "UPPER_Z";
|
|
1198
|
-
})(
|
|
1198
|
+
})(se || (se = {}));
|
|
1199
1199
|
const Ba = 32;
|
|
1200
1200
|
var uu;
|
|
1201
1201
|
(function(e) {
|
|
1202
1202
|
e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
1203
1203
|
})(uu || (uu = {}));
|
|
1204
1204
|
function un(e) {
|
|
1205
|
-
return e >=
|
|
1205
|
+
return e >= se.ZERO && e <= se.NINE;
|
|
1206
1206
|
}
|
|
1207
1207
|
function Ua(e) {
|
|
1208
|
-
return e >=
|
|
1208
|
+
return e >= se.UPPER_A && e <= se.UPPER_F || e >= se.LOWER_A && e <= se.LOWER_F;
|
|
1209
1209
|
}
|
|
1210
1210
|
function qa(e) {
|
|
1211
|
-
return e >=
|
|
1211
|
+
return e >= se.UPPER_A && e <= se.UPPER_Z || e >= se.LOWER_A && e <= se.LOWER_Z || un(e);
|
|
1212
1212
|
}
|
|
1213
1213
|
function ja(e) {
|
|
1214
|
-
return e ===
|
|
1214
|
+
return e === se.EQUALS || qa(e);
|
|
1215
1215
|
}
|
|
1216
1216
|
var ae;
|
|
1217
1217
|
(function(e) {
|
|
@@ -1243,7 +1243,7 @@ class Ha {
|
|
|
1243
1243
|
write(u, t) {
|
|
1244
1244
|
switch (this.state) {
|
|
1245
1245
|
case ae.EntityStart:
|
|
1246
|
-
return u.charCodeAt(t) ===
|
|
1246
|
+
return u.charCodeAt(t) === se.NUM ? (this.state = ae.NumericStart, this.consumed += 1, this.stateNumericStart(u, t + 1)) : (this.state = ae.NamedEntity, this.stateNamedEntity(u, t));
|
|
1247
1247
|
case ae.NumericStart:
|
|
1248
1248
|
return this.stateNumericStart(u, t);
|
|
1249
1249
|
case ae.NumericDecimal:
|
|
@@ -1264,7 +1264,7 @@ class Ha {
|
|
|
1264
1264
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
1265
1265
|
*/
|
|
1266
1266
|
stateNumericStart(u, t) {
|
|
1267
|
-
return t >= u.length ? -1 : (u.charCodeAt(t) | Ba) ===
|
|
1267
|
+
return t >= u.length ? -1 : (u.charCodeAt(t) | Ba) === se.LOWER_X ? (this.state = ae.NumericHex, this.consumed += 1, this.stateNumericHex(u, t + 1)) : (this.state = ae.NumericDecimal, this.stateNumericDecimal(u, t));
|
|
1268
1268
|
}
|
|
1269
1269
|
addToNumericResult(u, t, n, r) {
|
|
1270
1270
|
if (t !== n) {
|
|
@@ -1329,11 +1329,11 @@ class Ha {
|
|
|
1329
1329
|
var n;
|
|
1330
1330
|
if (this.consumed <= t)
|
|
1331
1331
|
return (n = this.errors) === null || n === void 0 || n.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
1332
|
-
if (u ===
|
|
1332
|
+
if (u === se.SEMI)
|
|
1333
1333
|
this.consumed += 1;
|
|
1334
1334
|
else if (this.decodeMode === Ke.Strict)
|
|
1335
1335
|
return 0;
|
|
1336
|
-
return this.emitCodePoint(za(this.result), this.consumed), this.errors && (u !==
|
|
1336
|
+
return this.emitCodePoint(za(this.result), this.consumed), this.errors && (u !== se.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
1337
1337
|
}
|
|
1338
1338
|
/**
|
|
1339
1339
|
* Parses a named entity.
|
|
@@ -1355,7 +1355,7 @@ class Ha {
|
|
|
1355
1355
|
(o === 0 || // And there should be no invalid characters.
|
|
1356
1356
|
ja(a)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
1357
1357
|
if (r = n[this.treeIndex], o = (r & uu.VALUE_LENGTH) >> 14, o !== 0) {
|
|
1358
|
-
if (a ===
|
|
1358
|
+
if (a === se.SEMI)
|
|
1359
1359
|
return this.emitNamedEntityData(this.treeIndex, o, this.consumed + this.excess);
|
|
1360
1360
|
this.decodeMode !== Ke.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
1361
1361
|
}
|
|
@@ -1416,16 +1416,16 @@ function Qr(e) {
|
|
|
1416
1416
|
let a = 0, i = 0;
|
|
1417
1417
|
for (; (i = r.indexOf("&", i)) >= 0; ) {
|
|
1418
1418
|
u += r.slice(a, i), t.startEntity(o);
|
|
1419
|
-
const
|
|
1419
|
+
const s = t.write(
|
|
1420
1420
|
r,
|
|
1421
1421
|
// Skip the "&"
|
|
1422
1422
|
i + 1
|
|
1423
1423
|
);
|
|
1424
|
-
if (
|
|
1424
|
+
if (s < 0) {
|
|
1425
1425
|
a = i + t.end();
|
|
1426
1426
|
break;
|
|
1427
1427
|
}
|
|
1428
|
-
a = i +
|
|
1428
|
+
a = i + s, i = s === 0 ? a + 1 : a;
|
|
1429
1429
|
}
|
|
1430
1430
|
const l = u + r.slice(a);
|
|
1431
1431
|
return u = "", l;
|
|
@@ -1441,10 +1441,10 @@ function Ga(e, u, t, n) {
|
|
|
1441
1441
|
}
|
|
1442
1442
|
let a = t, i = a + r - 1;
|
|
1443
1443
|
for (; a <= i; ) {
|
|
1444
|
-
const l = a + i >>> 1,
|
|
1445
|
-
if (
|
|
1444
|
+
const l = a + i >>> 1, s = e[l];
|
|
1445
|
+
if (s < n)
|
|
1446
1446
|
a = l + 1;
|
|
1447
|
-
else if (
|
|
1447
|
+
else if (s > n)
|
|
1448
1448
|
i = l - 1;
|
|
1449
1449
|
else
|
|
1450
1450
|
return e[l + r];
|
|
@@ -1620,7 +1620,7 @@ const a0 = { mdurl: Ra, ucmicro: Ma }, l0 = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
1620
1620
|
unescapeAll: xu,
|
|
1621
1621
|
unescapeMd: e0
|
|
1622
1622
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1623
|
-
function
|
|
1623
|
+
function s0(e, u, t) {
|
|
1624
1624
|
let n, r, o, a;
|
|
1625
1625
|
const i = e.posMax, l = e.pos;
|
|
1626
1626
|
for (e.pos = u + 1, n = 1; e.pos < i; ) {
|
|
@@ -1635,10 +1635,10 @@ function c0(e, u, t) {
|
|
|
1635
1635
|
return e.pos = l, -1;
|
|
1636
1636
|
}
|
|
1637
1637
|
}
|
|
1638
|
-
let
|
|
1639
|
-
return r && (
|
|
1638
|
+
let s = -1;
|
|
1639
|
+
return r && (s = e.pos), e.pos = l, s;
|
|
1640
1640
|
}
|
|
1641
|
-
function
|
|
1641
|
+
function c0(e, u, t) {
|
|
1642
1642
|
let n, r = u;
|
|
1643
1643
|
const o = {
|
|
1644
1644
|
ok: !1,
|
|
@@ -1713,8 +1713,8 @@ function f0(e, u, t, n) {
|
|
|
1713
1713
|
}
|
|
1714
1714
|
const d0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1715
1715
|
__proto__: null,
|
|
1716
|
-
parseLinkDestination:
|
|
1717
|
-
parseLinkLabel:
|
|
1716
|
+
parseLinkDestination: c0,
|
|
1717
|
+
parseLinkLabel: s0,
|
|
1718
1718
|
parseLinkTitle: f0
|
|
1719
1719
|
}, Symbol.toStringTag, { value: "Module" })), Ue = {};
|
|
1720
1720
|
Ue.code_inline = function(e, u, t, n, r) {
|
|
@@ -1730,23 +1730,23 @@ Ue.fence = function(e, u, t, n, r) {
|
|
|
1730
1730
|
const o = e[u], a = o.info ? xu(o.info).trim() : "";
|
|
1731
1731
|
let i = "", l = "";
|
|
1732
1732
|
if (a) {
|
|
1733
|
-
const
|
|
1734
|
-
i =
|
|
1733
|
+
const c = a.split(/(\s+)/g);
|
|
1734
|
+
i = c[0], l = c.slice(2).join("");
|
|
1735
1735
|
}
|
|
1736
|
-
let
|
|
1737
|
-
if (t.highlight ?
|
|
1738
|
-
return
|
|
1736
|
+
let s;
|
|
1737
|
+
if (t.highlight ? s = t.highlight(o.content, i, l) || ou(o.content) : s = ou(o.content), s.indexOf("<pre") === 0)
|
|
1738
|
+
return s + `
|
|
1739
1739
|
`;
|
|
1740
1740
|
if (a) {
|
|
1741
|
-
const
|
|
1742
|
-
|
|
1741
|
+
const c = o.attrIndex("class"), f = o.attrs ? o.attrs.slice() : [];
|
|
1742
|
+
c < 0 ? f.push(["class", t.langPrefix + i]) : (f[c] = f[c].slice(), f[c][1] += " " + t.langPrefix + i);
|
|
1743
1743
|
const y = {
|
|
1744
1744
|
attrs: f
|
|
1745
1745
|
};
|
|
1746
|
-
return `<pre><code${r.renderAttrs(y)}>${
|
|
1746
|
+
return `<pre><code${r.renderAttrs(y)}>${s}</code></pre>
|
|
1747
1747
|
`;
|
|
1748
1748
|
}
|
|
1749
|
-
return `<pre><code${r.renderAttrs(o)}>${
|
|
1749
|
+
return `<pre><code${r.renderAttrs(o)}>${s}</code></pre>
|
|
1750
1750
|
`;
|
|
1751
1751
|
};
|
|
1752
1752
|
Ue.image = function(e, u, t, n, r) {
|
|
@@ -2002,33 +2002,33 @@ function v0(e) {
|
|
|
2002
2002
|
}
|
|
2003
2003
|
if (i.type === "html_inline" && (k0(i.content) && o > 0 && o--, x0(i.content) && o++), !(o > 0) && i.type === "text" && e.md.linkify.test(i.content)) {
|
|
2004
2004
|
const l = i.content;
|
|
2005
|
-
let
|
|
2006
|
-
const
|
|
2005
|
+
let s = e.md.linkify.match(l);
|
|
2006
|
+
const c = [];
|
|
2007
2007
|
let f = i.level, y = 0;
|
|
2008
|
-
|
|
2009
|
-
for (let x = 0; x <
|
|
2010
|
-
const d =
|
|
2008
|
+
s.length > 0 && s[0].index === 0 && a > 0 && r[a - 1].type === "text_special" && (s = s.slice(1));
|
|
2009
|
+
for (let x = 0; x < s.length; x++) {
|
|
2010
|
+
const d = s[x].url, E = e.md.normalizeLink(d);
|
|
2011
2011
|
if (!e.md.validateLink(E))
|
|
2012
2012
|
continue;
|
|
2013
|
-
let A =
|
|
2014
|
-
|
|
2015
|
-
const v =
|
|
2013
|
+
let A = s[x].text;
|
|
2014
|
+
s[x].schema ? s[x].schema === "mailto:" && !/^mailto:/i.test(A) ? A = e.md.normalizeLinkText("mailto:" + A).replace(/^mailto:/, "") : A = e.md.normalizeLinkText(A) : A = e.md.normalizeLinkText("http://" + A).replace(/^http:\/\//, "");
|
|
2015
|
+
const v = s[x].index;
|
|
2016
2016
|
if (v > y) {
|
|
2017
|
-
const
|
|
2018
|
-
|
|
2017
|
+
const b = new e.Token("text", "", 0);
|
|
2018
|
+
b.content = l.slice(y, v), b.level = f, c.push(b);
|
|
2019
2019
|
}
|
|
2020
2020
|
const p = new e.Token("link_open", "a", 1);
|
|
2021
|
-
p.attrs = [["href", E]], p.level = f++, p.markup = "linkify", p.info = "auto",
|
|
2021
|
+
p.attrs = [["href", E]], p.level = f++, p.markup = "linkify", p.info = "auto", c.push(p);
|
|
2022
2022
|
const k = new e.Token("text", "", 0);
|
|
2023
|
-
k.content = A, k.level = f,
|
|
2024
|
-
const
|
|
2025
|
-
|
|
2023
|
+
k.content = A, k.level = f, c.push(k);
|
|
2024
|
+
const m = new e.Token("link_close", "a", -1);
|
|
2025
|
+
m.level = --f, m.markup = "linkify", m.info = "auto", c.push(m), y = s[x].lastIndex;
|
|
2026
2026
|
}
|
|
2027
2027
|
if (y < l.length) {
|
|
2028
2028
|
const x = new e.Token("text", "", 0);
|
|
2029
|
-
x.content = l.slice(y), x.level = f,
|
|
2029
|
+
x.content = l.slice(y), x.level = f, c.push(x);
|
|
2030
2030
|
}
|
|
2031
|
-
u[t].children = r = Kr(r, a,
|
|
2031
|
+
u[t].children = r = Kr(r, a, c);
|
|
2032
2032
|
}
|
|
2033
2033
|
}
|
|
2034
2034
|
}
|
|
@@ -2061,7 +2061,7 @@ function D0(e) {
|
|
|
2061
2061
|
for (u = e.tokens.length - 1; u >= 0; u--)
|
|
2062
2062
|
e.tokens[u].type === "inline" && (_0.test(e.tokens[u].content) && w0(e.tokens[u].children), to.test(e.tokens[u].content) && C0(e.tokens[u].children));
|
|
2063
2063
|
}
|
|
2064
|
-
const F0 = /['"]/, lr = /['"]/g,
|
|
2064
|
+
const F0 = /['"]/, lr = /['"]/g, sr = "’";
|
|
2065
2065
|
function Ku(e, u, t) {
|
|
2066
2066
|
return e.slice(0, u) + t + e.slice(u + 1);
|
|
2067
2067
|
}
|
|
@@ -2074,19 +2074,19 @@ function S0(e, u) {
|
|
|
2074
2074
|
;
|
|
2075
2075
|
if (n.length = t + 1, o.type !== "text")
|
|
2076
2076
|
continue;
|
|
2077
|
-
let i = o.content, l = 0,
|
|
2077
|
+
let i = o.content, l = 0, s = i.length;
|
|
2078
2078
|
e:
|
|
2079
|
-
for (; l <
|
|
2079
|
+
for (; l < s; ) {
|
|
2080
2080
|
lr.lastIndex = l;
|
|
2081
|
-
const
|
|
2082
|
-
if (!
|
|
2081
|
+
const c = lr.exec(i);
|
|
2082
|
+
if (!c)
|
|
2083
2083
|
break;
|
|
2084
2084
|
let f = !0, y = !0;
|
|
2085
|
-
l =
|
|
2086
|
-
const x =
|
|
2085
|
+
l = c.index + 1;
|
|
2086
|
+
const x = c[0] === "'";
|
|
2087
2087
|
let d = 32;
|
|
2088
|
-
if (
|
|
2089
|
-
d = i.charCodeAt(
|
|
2088
|
+
if (c.index - 1 >= 0)
|
|
2089
|
+
d = i.charCodeAt(c.index - 1);
|
|
2090
2090
|
else
|
|
2091
2091
|
for (t = r - 1; t >= 0 && !(e[t].type === "softbreak" || e[t].type === "hardbreak"); t--)
|
|
2092
2092
|
if (e[t].content) {
|
|
@@ -2094,7 +2094,7 @@ function S0(e, u) {
|
|
|
2094
2094
|
break;
|
|
2095
2095
|
}
|
|
2096
2096
|
let E = 32;
|
|
2097
|
-
if (l <
|
|
2097
|
+
if (l < s)
|
|
2098
2098
|
E = i.charCodeAt(l);
|
|
2099
2099
|
else
|
|
2100
2100
|
for (t = r + 1; t < e.length && !(e[t].type === "softbreak" || e[t].type === "hardbreak"); t++)
|
|
@@ -2103,32 +2103,32 @@ function S0(e, u) {
|
|
|
2103
2103
|
break;
|
|
2104
2104
|
}
|
|
2105
2105
|
const A = Nu(d) || Lu(String.fromCharCode(d)), v = Nu(E) || Lu(String.fromCharCode(E)), p = Mu(d), k = Mu(E);
|
|
2106
|
-
if (k ? f = !1 : v && (p || A || (f = !1)), p ? y = !1 : A && (k || v || (y = !1)), E === 34 &&
|
|
2107
|
-
x && (o.content = Ku(o.content,
|
|
2106
|
+
if (k ? f = !1 : v && (p || A || (f = !1)), p ? y = !1 : A && (k || v || (y = !1)), E === 34 && c[0] === '"' && d >= 48 && d <= 57 && (y = f = !1), f && y && (f = A, y = v), !f && !y) {
|
|
2107
|
+
x && (o.content = Ku(o.content, c.index, sr));
|
|
2108
2108
|
continue;
|
|
2109
2109
|
}
|
|
2110
2110
|
if (y)
|
|
2111
2111
|
for (t = n.length - 1; t >= 0; t--) {
|
|
2112
|
-
let
|
|
2112
|
+
let m = n[t];
|
|
2113
2113
|
if (n[t].level < a)
|
|
2114
2114
|
break;
|
|
2115
|
-
if (
|
|
2116
|
-
|
|
2117
|
-
let
|
|
2118
|
-
x ? (
|
|
2119
|
-
e[
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
), l += h.length - 1,
|
|
2115
|
+
if (m.single === x && n[t].level === a) {
|
|
2116
|
+
m = n[t];
|
|
2117
|
+
let b, h;
|
|
2118
|
+
x ? (b = u.md.options.quotes[2], h = u.md.options.quotes[3]) : (b = u.md.options.quotes[0], h = u.md.options.quotes[1]), o.content = Ku(o.content, c.index, h), e[m.token].content = Ku(
|
|
2119
|
+
e[m.token].content,
|
|
2120
|
+
m.pos,
|
|
2121
|
+
b
|
|
2122
|
+
), l += h.length - 1, m.token === r && (l += b.length - 1), i = o.content, s = i.length, n.length = t;
|
|
2123
2123
|
continue e;
|
|
2124
2124
|
}
|
|
2125
2125
|
}
|
|
2126
2126
|
f ? n.push({
|
|
2127
2127
|
token: r,
|
|
2128
|
-
pos:
|
|
2128
|
+
pos: c.index,
|
|
2129
2129
|
single: x,
|
|
2130
2130
|
level: a
|
|
2131
|
-
}) : y && x && (o.content = Ku(o.content,
|
|
2131
|
+
}) : y && x && (o.content = Ku(o.content, c.index, sr));
|
|
2132
2132
|
}
|
|
2133
2133
|
}
|
|
2134
2134
|
}
|
|
@@ -2175,15 +2175,15 @@ gn.prototype.State = uo;
|
|
|
2175
2175
|
function qe(e, u, t, n) {
|
|
2176
2176
|
this.src = e, this.md = u, this.env = t, this.tokens = n, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0;
|
|
2177
2177
|
const r = this.src;
|
|
2178
|
-
for (let o = 0, a = 0, i = 0, l = 0,
|
|
2178
|
+
for (let o = 0, a = 0, i = 0, l = 0, s = r.length, c = !1; a < s; a++) {
|
|
2179
2179
|
const f = r.charCodeAt(a);
|
|
2180
|
-
if (!
|
|
2180
|
+
if (!c)
|
|
2181
2181
|
if (Q(f)) {
|
|
2182
2182
|
i++, f === 9 ? l += 4 - l % 4 : l++;
|
|
2183
2183
|
continue;
|
|
2184
2184
|
} else
|
|
2185
|
-
|
|
2186
|
-
(f === 10 || a ===
|
|
2185
|
+
c = !0;
|
|
2186
|
+
(f === 10 || a === s - 1) && (f !== 10 && a++, this.bMarks.push(o), this.eMarks.push(a), this.tShift.push(i), this.sCount.push(l), this.bsCount.push(0), c = !1, i = 0, l = 0, o = a + 1);
|
|
2187
2187
|
}
|
|
2188
2188
|
this.bMarks.push(r.length), this.eMarks.push(r.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
|
|
2189
2189
|
}
|
|
@@ -2234,19 +2234,19 @@ qe.prototype.getLines = function(u, t, n, r) {
|
|
|
2234
2234
|
const o = new Array(t - u);
|
|
2235
2235
|
for (let a = 0, i = u; i < t; i++, a++) {
|
|
2236
2236
|
let l = 0;
|
|
2237
|
-
const
|
|
2238
|
-
let
|
|
2239
|
-
for (i + 1 < t || r ? f = this.eMarks[i] + 1 : f = this.eMarks[i];
|
|
2240
|
-
const y = this.src.charCodeAt(
|
|
2237
|
+
const s = this.bMarks[i];
|
|
2238
|
+
let c = s, f;
|
|
2239
|
+
for (i + 1 < t || r ? f = this.eMarks[i] + 1 : f = this.eMarks[i]; c < f && l < n; ) {
|
|
2240
|
+
const y = this.src.charCodeAt(c);
|
|
2241
2241
|
if (Q(y))
|
|
2242
2242
|
y === 9 ? l += 4 - (l + this.bsCount[i]) % 4 : l++;
|
|
2243
|
-
else if (
|
|
2243
|
+
else if (c - s < this.tShift[i])
|
|
2244
2244
|
l++;
|
|
2245
2245
|
else
|
|
2246
2246
|
break;
|
|
2247
|
-
|
|
2247
|
+
c++;
|
|
2248
2248
|
}
|
|
2249
|
-
l > n ? o[a] = new Array(l - n + 1).join(" ") + this.src.slice(
|
|
2249
|
+
l > n ? o[a] = new Array(l - n + 1).join(" ") + this.src.slice(c, f) : o[a] = this.src.slice(c, f);
|
|
2250
2250
|
}
|
|
2251
2251
|
return o.join("");
|
|
2252
2252
|
};
|
|
@@ -2256,7 +2256,7 @@ function Bt(e, u) {
|
|
|
2256
2256
|
const t = e.bMarks[u] + e.tShift[u], n = e.eMarks[u];
|
|
2257
2257
|
return e.src.slice(t, n);
|
|
2258
2258
|
}
|
|
2259
|
-
function
|
|
2259
|
+
function cr(e) {
|
|
2260
2260
|
const u = [], t = e.length;
|
|
2261
2261
|
let n = 0, r = e.charCodeAt(n), o = !1, a = 0, i = "";
|
|
2262
2262
|
for (; n < t; )
|
|
@@ -2279,29 +2279,29 @@ function O0(e, u, t, n) {
|
|
|
2279
2279
|
if (i !== 124 && i !== 45 && i !== 58 && !Q(i) || a === 45 && Q(i))
|
|
2280
2280
|
return !1;
|
|
2281
2281
|
for (; o < e.eMarks[r]; ) {
|
|
2282
|
-
const
|
|
2283
|
-
if (
|
|
2282
|
+
const m = e.src.charCodeAt(o);
|
|
2283
|
+
if (m !== 124 && m !== 45 && m !== 58 && !Q(m))
|
|
2284
2284
|
return !1;
|
|
2285
2285
|
o++;
|
|
2286
2286
|
}
|
|
2287
|
-
let l = Bt(e, u + 1),
|
|
2288
|
-
const
|
|
2289
|
-
for (let
|
|
2290
|
-
const
|
|
2291
|
-
if (!
|
|
2292
|
-
if (
|
|
2287
|
+
let l = Bt(e, u + 1), s = l.split("|");
|
|
2288
|
+
const c = [];
|
|
2289
|
+
for (let m = 0; m < s.length; m++) {
|
|
2290
|
+
const b = s[m].trim();
|
|
2291
|
+
if (!b) {
|
|
2292
|
+
if (m === 0 || m === s.length - 1)
|
|
2293
2293
|
continue;
|
|
2294
2294
|
return !1;
|
|
2295
2295
|
}
|
|
2296
|
-
if (!/^:?-+:?$/.test(
|
|
2296
|
+
if (!/^:?-+:?$/.test(b))
|
|
2297
2297
|
return !1;
|
|
2298
|
-
|
|
2298
|
+
b.charCodeAt(b.length - 1) === 58 ? c.push(b.charCodeAt(0) === 58 ? "center" : "right") : b.charCodeAt(0) === 58 ? c.push("left") : c.push("");
|
|
2299
2299
|
}
|
|
2300
2300
|
if (l = Bt(e, u).trim(), l.indexOf("|") === -1 || e.sCount[u] - e.blkIndent >= 4)
|
|
2301
2301
|
return !1;
|
|
2302
|
-
|
|
2303
|
-
const f =
|
|
2304
|
-
if (f === 0 || f !==
|
|
2302
|
+
s = cr(l), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop();
|
|
2303
|
+
const f = s.length;
|
|
2304
|
+
if (f === 0 || f !== c.length)
|
|
2305
2305
|
return !1;
|
|
2306
2306
|
if (n)
|
|
2307
2307
|
return !0;
|
|
@@ -2313,34 +2313,34 @@ function O0(e, u, t, n) {
|
|
|
2313
2313
|
A.map = [u, u + 1];
|
|
2314
2314
|
const v = e.push("tr_open", "tr", 1);
|
|
2315
2315
|
v.map = [u, u + 1];
|
|
2316
|
-
for (let
|
|
2317
|
-
const
|
|
2318
|
-
|
|
2316
|
+
for (let m = 0; m < s.length; m++) {
|
|
2317
|
+
const b = e.push("th_open", "th", 1);
|
|
2318
|
+
c[m] && (b.attrs = [["style", "text-align:" + c[m]]]);
|
|
2319
2319
|
const h = e.push("inline", "", 0);
|
|
2320
|
-
h.content =
|
|
2320
|
+
h.content = s[m].trim(), h.children = [], e.push("th_close", "th", -1);
|
|
2321
2321
|
}
|
|
2322
2322
|
e.push("tr_close", "tr", -1), e.push("thead_close", "thead", -1);
|
|
2323
2323
|
let p, k = 0;
|
|
2324
2324
|
for (r = u + 2; r < t && !(e.sCount[r] < e.blkIndent); r++) {
|
|
2325
|
-
let
|
|
2325
|
+
let m = !1;
|
|
2326
2326
|
for (let h = 0, C = x.length; h < C; h++)
|
|
2327
2327
|
if (x[h](e, r, t, !0)) {
|
|
2328
|
-
|
|
2328
|
+
m = !0;
|
|
2329
2329
|
break;
|
|
2330
2330
|
}
|
|
2331
|
-
if (
|
|
2331
|
+
if (m || (l = Bt(e, r).trim(), !l) || e.sCount[r] - e.blkIndent >= 4 || (s = cr(l), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), k += f - s.length, k > R0))
|
|
2332
2332
|
break;
|
|
2333
2333
|
if (r === u + 2) {
|
|
2334
2334
|
const h = e.push("tbody_open", "tbody", 1);
|
|
2335
2335
|
h.map = p = [u + 2, 0];
|
|
2336
2336
|
}
|
|
2337
|
-
const
|
|
2338
|
-
|
|
2337
|
+
const b = e.push("tr_open", "tr", 1);
|
|
2338
|
+
b.map = [r, r + 1];
|
|
2339
2339
|
for (let h = 0; h < f; h++) {
|
|
2340
2340
|
const C = e.push("td_open", "td", 1);
|
|
2341
|
-
|
|
2341
|
+
c[h] && (C.attrs = [["style", "text-align:" + c[h]]]);
|
|
2342
2342
|
const P = e.push("inline", "", 0);
|
|
2343
|
-
P.content =
|
|
2343
|
+
P.content = s[h] ? s[h].trim() : "", P.children = [], e.push("td_close", "td", -1);
|
|
2344
2344
|
}
|
|
2345
2345
|
e.push("tr_close", "tr", -1);
|
|
2346
2346
|
}
|
|
@@ -2378,8 +2378,8 @@ function L0(e, u, t, n) {
|
|
|
2378
2378
|
let l = r - i;
|
|
2379
2379
|
if (l < 3)
|
|
2380
2380
|
return !1;
|
|
2381
|
-
const
|
|
2382
|
-
if (a === 96 &&
|
|
2381
|
+
const s = e.src.slice(i, r), c = e.src.slice(r, o);
|
|
2382
|
+
if (a === 96 && c.indexOf(String.fromCharCode(a)) >= 0)
|
|
2383
2383
|
return !1;
|
|
2384
2384
|
if (n)
|
|
2385
2385
|
return !0;
|
|
@@ -2391,7 +2391,7 @@ function L0(e, u, t, n) {
|
|
|
2391
2391
|
}
|
|
2392
2392
|
l = e.sCount[u], e.line = f + (y ? 1 : 0);
|
|
2393
2393
|
const x = e.push("fence", "code", 0);
|
|
2394
|
-
return x.info =
|
|
2394
|
+
return x.info = c, x.content = e.getLines(u + 1, f, l, !0), x.markup = s, x.map = [u, e.line], !0;
|
|
2395
2395
|
}
|
|
2396
2396
|
function N0(e, u, t, n) {
|
|
2397
2397
|
let r = e.bMarks[u] + e.tShift[u], o = e.eMarks[u];
|
|
@@ -2400,7 +2400,7 @@ function N0(e, u, t, n) {
|
|
|
2400
2400
|
return !1;
|
|
2401
2401
|
if (n)
|
|
2402
2402
|
return !0;
|
|
2403
|
-
const i = [], l = [],
|
|
2403
|
+
const i = [], l = [], s = [], c = [], f = e.md.block.ruler.getRules("blockquote"), y = e.parentType;
|
|
2404
2404
|
e.parentType = "blockquote";
|
|
2405
2405
|
let x = !1, d;
|
|
2406
2406
|
for (d = u; d < t; d++) {
|
|
@@ -2408,9 +2408,9 @@ function N0(e, u, t, n) {
|
|
|
2408
2408
|
if (r = e.bMarks[d] + e.tShift[d], o = e.eMarks[d], r >= o)
|
|
2409
2409
|
break;
|
|
2410
2410
|
if (e.src.charCodeAt(r++) === 62 && !k) {
|
|
2411
|
-
let
|
|
2412
|
-
e.src.charCodeAt(r) === 32 ? (r++,
|
|
2413
|
-
let P =
|
|
2411
|
+
let b = e.sCount[d] + 1, h, C;
|
|
2412
|
+
e.src.charCodeAt(r) === 32 ? (r++, b++, C = !1, h = !0) : e.src.charCodeAt(r) === 9 ? (h = !0, (e.bsCount[d] + b) % 4 === 3 ? (r++, b++, C = !1) : C = !0) : h = !1;
|
|
2413
|
+
let P = b;
|
|
2414
2414
|
for (i.push(e.bMarks[d]), e.bMarks[d] = r; r < o; ) {
|
|
2415
2415
|
const D = e.src.charCodeAt(r);
|
|
2416
2416
|
if (Q(D))
|
|
@@ -2419,22 +2419,22 @@ function N0(e, u, t, n) {
|
|
|
2419
2419
|
break;
|
|
2420
2420
|
r++;
|
|
2421
2421
|
}
|
|
2422
|
-
x = r >= o, l.push(e.bsCount[d]), e.bsCount[d] = e.sCount[d] + 1 + (h ? 1 : 0),
|
|
2422
|
+
x = r >= o, l.push(e.bsCount[d]), e.bsCount[d] = e.sCount[d] + 1 + (h ? 1 : 0), s.push(e.sCount[d]), e.sCount[d] = P - b, c.push(e.tShift[d]), e.tShift[d] = r - e.bMarks[d];
|
|
2423
2423
|
continue;
|
|
2424
2424
|
}
|
|
2425
2425
|
if (x)
|
|
2426
2426
|
break;
|
|
2427
|
-
let
|
|
2428
|
-
for (let
|
|
2429
|
-
if (f[
|
|
2430
|
-
|
|
2427
|
+
let m = !1;
|
|
2428
|
+
for (let b = 0, h = f.length; b < h; b++)
|
|
2429
|
+
if (f[b](e, d, t, !0)) {
|
|
2430
|
+
m = !0;
|
|
2431
2431
|
break;
|
|
2432
2432
|
}
|
|
2433
|
-
if (
|
|
2434
|
-
e.lineMax = d, e.blkIndent !== 0 && (i.push(e.bMarks[d]), l.push(e.bsCount[d]),
|
|
2433
|
+
if (m) {
|
|
2434
|
+
e.lineMax = d, e.blkIndent !== 0 && (i.push(e.bMarks[d]), l.push(e.bsCount[d]), c.push(e.tShift[d]), s.push(e.sCount[d]), e.sCount[d] -= e.blkIndent);
|
|
2435
2435
|
break;
|
|
2436
2436
|
}
|
|
2437
|
-
i.push(e.bMarks[d]), l.push(e.bsCount[d]),
|
|
2437
|
+
i.push(e.bMarks[d]), l.push(e.bsCount[d]), c.push(e.tShift[d]), s.push(e.sCount[d]), e.sCount[d] = -1;
|
|
2438
2438
|
}
|
|
2439
2439
|
const E = e.blkIndent;
|
|
2440
2440
|
e.blkIndent = 0;
|
|
@@ -2444,8 +2444,8 @@ function N0(e, u, t, n) {
|
|
|
2444
2444
|
A.map = v, e.md.block.tokenize(e, u, d);
|
|
2445
2445
|
const p = e.push("blockquote_close", "blockquote", -1);
|
|
2446
2446
|
p.markup = ">", e.lineMax = a, e.parentType = y, v[1] = e.line;
|
|
2447
|
-
for (let k = 0; k <
|
|
2448
|
-
e.bMarks[k + u] = i[k], e.tShift[k + u] =
|
|
2447
|
+
for (let k = 0; k < c.length; k++)
|
|
2448
|
+
e.bMarks[k + u] = i[k], e.tShift[k + u] = c[k], e.sCount[k + u] = s[k], e.bsCount[k + u] = l[k];
|
|
2449
2449
|
return e.blkIndent = E, !0;
|
|
2450
2450
|
}
|
|
2451
2451
|
function $0(e, u, t, n) {
|
|
@@ -2458,10 +2458,10 @@ function $0(e, u, t, n) {
|
|
|
2458
2458
|
return !1;
|
|
2459
2459
|
let i = 1;
|
|
2460
2460
|
for (; o < r; ) {
|
|
2461
|
-
const
|
|
2462
|
-
if (
|
|
2461
|
+
const s = e.src.charCodeAt(o++);
|
|
2462
|
+
if (s !== a && !Q(s))
|
|
2463
2463
|
return !1;
|
|
2464
|
-
|
|
2464
|
+
s === a && i++;
|
|
2465
2465
|
}
|
|
2466
2466
|
if (i < 3)
|
|
2467
2467
|
return !1;
|
|
@@ -2512,19 +2512,19 @@ function I0(e, u) {
|
|
|
2512
2512
|
e.tokens[n].level === t && e.tokens[n].type === "paragraph_open" && (e.tokens[n + 2].hidden = !0, e.tokens[n].hidden = !0, n += 2);
|
|
2513
2513
|
}
|
|
2514
2514
|
function z0(e, u, t, n) {
|
|
2515
|
-
let r, o, a, i, l = u,
|
|
2515
|
+
let r, o, a, i, l = u, s = !0;
|
|
2516
2516
|
if (e.sCount[l] - e.blkIndent >= 4 || e.listIndent >= 0 && e.sCount[l] - e.listIndent >= 4 && e.sCount[l] < e.blkIndent)
|
|
2517
2517
|
return !1;
|
|
2518
|
-
let
|
|
2519
|
-
n && e.parentType === "paragraph" && e.sCount[l] >= e.blkIndent && (
|
|
2518
|
+
let c = !1;
|
|
2519
|
+
n && e.parentType === "paragraph" && e.sCount[l] >= e.blkIndent && (c = !0);
|
|
2520
2520
|
let f, y, x;
|
|
2521
2521
|
if ((x = dr(e, l)) >= 0) {
|
|
2522
|
-
if (f = !0, a = e.bMarks[l] + e.tShift[l], y = Number(e.src.slice(a, x - 1)),
|
|
2522
|
+
if (f = !0, a = e.bMarks[l] + e.tShift[l], y = Number(e.src.slice(a, x - 1)), c && y !== 1) return !1;
|
|
2523
2523
|
} else if ((x = fr(e, l)) >= 0)
|
|
2524
2524
|
f = !1;
|
|
2525
2525
|
else
|
|
2526
2526
|
return !1;
|
|
2527
|
-
if (
|
|
2527
|
+
if (c && e.skipSpaces(x) >= e.eMarks[l])
|
|
2528
2528
|
return !1;
|
|
2529
2529
|
if (n)
|
|
2530
2530
|
return !0;
|
|
@@ -2536,27 +2536,27 @@ function z0(e, u, t, n) {
|
|
|
2536
2536
|
const p = e.md.block.ruler.getRules("list"), k = e.parentType;
|
|
2537
2537
|
for (e.parentType = "list"; l < t; ) {
|
|
2538
2538
|
o = x, r = e.eMarks[l];
|
|
2539
|
-
const
|
|
2540
|
-
let
|
|
2539
|
+
const m = e.sCount[l] + x - (e.bMarks[l] + e.tShift[l]);
|
|
2540
|
+
let b = m;
|
|
2541
2541
|
for (; o < r; ) {
|
|
2542
2542
|
const V = e.src.charCodeAt(o);
|
|
2543
2543
|
if (V === 9)
|
|
2544
|
-
|
|
2544
|
+
b += 4 - (b + e.bsCount[l]) % 4;
|
|
2545
2545
|
else if (V === 32)
|
|
2546
|
-
|
|
2546
|
+
b++;
|
|
2547
2547
|
else
|
|
2548
2548
|
break;
|
|
2549
2549
|
o++;
|
|
2550
2550
|
}
|
|
2551
2551
|
const h = o;
|
|
2552
2552
|
let C;
|
|
2553
|
-
h >= r ? C = 1 : C =
|
|
2554
|
-
const P =
|
|
2553
|
+
h >= r ? C = 1 : C = b - m, C > 4 && (C = 1);
|
|
2554
|
+
const P = m + C;
|
|
2555
2555
|
i = e.push("list_item_open", "li", 1), i.markup = String.fromCharCode(d);
|
|
2556
2556
|
const D = [l, 0];
|
|
2557
2557
|
i.map = D, f && (i.info = e.src.slice(a, x - 1));
|
|
2558
2558
|
const I = e.tight, L = e.tShift[l], G = e.sCount[l], X = e.listIndent;
|
|
2559
|
-
if (e.listIndent = e.blkIndent, e.blkIndent = P, e.tight = !0, e.tShift[l] = h - e.bMarks[l], e.sCount[l] =
|
|
2559
|
+
if (e.listIndent = e.blkIndent, e.blkIndent = P, e.tight = !0, e.tShift[l] = h - e.bMarks[l], e.sCount[l] = b, h >= r && e.isEmpty(l + 1) ? e.line = Math.min(e.line + 2, t) : e.md.block.tokenize(e, l, t, !0), (!e.tight || v) && (s = !1), v = e.line - l > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = X, e.tShift[l] = L, e.sCount[l] = G, e.tight = I, i = e.push("list_item_close", "li", -1), i.markup = String.fromCharCode(d), l = e.line, D[1] = l, l >= t || e.sCount[l] < e.blkIndent || e.sCount[l] - e.blkIndent >= 4)
|
|
2560
2560
|
break;
|
|
2561
2561
|
let T = !1;
|
|
2562
2562
|
for (let V = 0, de = p.length; V < de; V++)
|
|
@@ -2575,7 +2575,7 @@ function z0(e, u, t, n) {
|
|
|
2575
2575
|
if (d !== e.src.charCodeAt(x - 1))
|
|
2576
2576
|
break;
|
|
2577
2577
|
}
|
|
2578
|
-
return f ? i = e.push("ordered_list_close", "ol", -1) : i = e.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(d), A[1] = l, e.line = l, e.parentType = k,
|
|
2578
|
+
return f ? i = e.push("ordered_list_close", "ol", -1) : i = e.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(d), A[1] = l, e.line = l, e.parentType = k, s && I0(e, E), !0;
|
|
2579
2579
|
}
|
|
2580
2580
|
function B0(e, u, t, n) {
|
|
2581
2581
|
let r = e.bMarks[u] + e.tShift[u], o = e.eMarks[u], a = u + 1;
|
|
@@ -2585,8 +2585,8 @@ function B0(e, u, t, n) {
|
|
|
2585
2585
|
const k = e.lineMax;
|
|
2586
2586
|
if (p >= k || e.isEmpty(p))
|
|
2587
2587
|
return null;
|
|
2588
|
-
let
|
|
2589
|
-
if (e.sCount[p] - e.blkIndent > 3 && (
|
|
2588
|
+
let m = !1;
|
|
2589
|
+
if (e.sCount[p] - e.blkIndent > 3 && (m = !0), e.sCount[p] < 0 && (m = !0), !m) {
|
|
2590
2590
|
const C = e.md.block.ruler.getRules("reference"), P = e.parentType;
|
|
2591
2591
|
e.parentType = "reference";
|
|
2592
2592
|
let D = !1;
|
|
@@ -2598,18 +2598,18 @@ function B0(e, u, t, n) {
|
|
|
2598
2598
|
if (e.parentType = P, D)
|
|
2599
2599
|
return null;
|
|
2600
2600
|
}
|
|
2601
|
-
const
|
|
2602
|
-
return e.src.slice(
|
|
2601
|
+
const b = e.bMarks[p] + e.tShift[p], h = e.eMarks[p];
|
|
2602
|
+
return e.src.slice(b, h + 1);
|
|
2603
2603
|
}
|
|
2604
2604
|
let l = e.src.slice(r, o + 1);
|
|
2605
2605
|
o = l.length;
|
|
2606
|
-
let
|
|
2606
|
+
let s = -1;
|
|
2607
2607
|
for (r = 1; r < o; r++) {
|
|
2608
2608
|
const p = l.charCodeAt(r);
|
|
2609
2609
|
if (p === 91)
|
|
2610
2610
|
return !1;
|
|
2611
2611
|
if (p === 93) {
|
|
2612
|
-
|
|
2612
|
+
s = r;
|
|
2613
2613
|
break;
|
|
2614
2614
|
} else if (p === 10) {
|
|
2615
2615
|
const k = i(a);
|
|
@@ -2619,22 +2619,22 @@ function B0(e, u, t, n) {
|
|
|
2619
2619
|
k !== null && (l += k, o = l.length, a++);
|
|
2620
2620
|
}
|
|
2621
2621
|
}
|
|
2622
|
-
if (
|
|
2622
|
+
if (s < 0 || l.charCodeAt(s + 1) !== 58)
|
|
2623
2623
|
return !1;
|
|
2624
|
-
for (r =
|
|
2624
|
+
for (r = s + 2; r < o; r++) {
|
|
2625
2625
|
const p = l.charCodeAt(r);
|
|
2626
2626
|
if (p === 10) {
|
|
2627
2627
|
const k = i(a);
|
|
2628
2628
|
k !== null && (l += k, o = l.length, a++);
|
|
2629
2629
|
} else if (!Q(p)) break;
|
|
2630
2630
|
}
|
|
2631
|
-
const
|
|
2632
|
-
if (!
|
|
2631
|
+
const c = e.md.helpers.parseLinkDestination(l, r, o);
|
|
2632
|
+
if (!c.ok)
|
|
2633
2633
|
return !1;
|
|
2634
|
-
const f = e.md.normalizeLink(
|
|
2634
|
+
const f = e.md.normalizeLink(c.str);
|
|
2635
2635
|
if (!e.md.validateLink(f))
|
|
2636
2636
|
return !1;
|
|
2637
|
-
r =
|
|
2637
|
+
r = c.pos;
|
|
2638
2638
|
const y = r, x = a, d = r;
|
|
2639
2639
|
for (; r < o; r++) {
|
|
2640
2640
|
const p = l.charCodeAt(r);
|
|
@@ -2665,7 +2665,7 @@ function B0(e, u, t, n) {
|
|
|
2665
2665
|
}
|
|
2666
2666
|
if (r < o && l.charCodeAt(r) !== 10)
|
|
2667
2667
|
return !1;
|
|
2668
|
-
const v = _t(l.slice(1,
|
|
2668
|
+
const v = _t(l.slice(1, s));
|
|
2669
2669
|
return v ? (n || (typeof e.env.references > "u" && (e.env.references = {}), typeof e.env.references[v] > "u" && (e.env.references[v] = { title: A, href: f }), e.line = a), !0) : !1;
|
|
2670
2670
|
}
|
|
2671
2671
|
const U0 = [
|
|
@@ -2760,8 +2760,8 @@ function el(e, u, t, n) {
|
|
|
2760
2760
|
}
|
|
2761
2761
|
}
|
|
2762
2762
|
e.line = l;
|
|
2763
|
-
const
|
|
2764
|
-
return
|
|
2763
|
+
const s = e.push("html_block", "", 0);
|
|
2764
|
+
return s.map = [u, l], s.content = e.getLines(u, l, e.blkIndent, !0), !0;
|
|
2765
2765
|
}
|
|
2766
2766
|
function ul(e, u, t, n) {
|
|
2767
2767
|
let r = e.bMarks[u] + e.tShift[u], o = e.eMarks[u];
|
|
@@ -2780,10 +2780,10 @@ function ul(e, u, t, n) {
|
|
|
2780
2780
|
o = e.skipSpacesBack(o, r);
|
|
2781
2781
|
const l = e.skipCharsBack(o, 35, r);
|
|
2782
2782
|
l > r && Q(e.src.charCodeAt(l - 1)) && (o = l), e.line = u + 1;
|
|
2783
|
-
const
|
|
2784
|
-
|
|
2785
|
-
const
|
|
2786
|
-
|
|
2783
|
+
const s = e.push("heading_open", "h" + String(i), 1);
|
|
2784
|
+
s.markup = "########".slice(0, i), s.map = [u, e.line];
|
|
2785
|
+
const c = e.push("inline", "", 0);
|
|
2786
|
+
c.content = e.src.slice(r, o).trim(), c.map = [u, e.line], c.children = [];
|
|
2787
2787
|
const f = e.push("heading_close", "h" + String(i), -1);
|
|
2788
2788
|
return f.markup = "########".slice(0, i), !0;
|
|
2789
2789
|
}
|
|
@@ -2820,10 +2820,10 @@ function tl(e, u, t) {
|
|
|
2820
2820
|
return !1;
|
|
2821
2821
|
const l = e.getLines(u, i, e.blkIndent, !1).trim();
|
|
2822
2822
|
e.line = i + 1;
|
|
2823
|
-
const
|
|
2824
|
-
|
|
2825
|
-
const
|
|
2826
|
-
|
|
2823
|
+
const s = e.push("heading_open", "h" + String(o), 1);
|
|
2824
|
+
s.markup = String.fromCharCode(a), s.map = [u, e.line];
|
|
2825
|
+
const c = e.push("inline", "", 0);
|
|
2826
|
+
c.content = l, c.map = [u, e.line - 1], c.children = [];
|
|
2827
2827
|
const f = e.push("heading_close", "h" + String(o), -1);
|
|
2828
2828
|
return f.markup = String.fromCharCode(a), e.parentType = r, !0;
|
|
2829
2829
|
}
|
|
@@ -2833,13 +2833,13 @@ function nl(e, u, t) {
|
|
|
2833
2833
|
for (e.parentType = "paragraph"; o < t && !e.isEmpty(o); o++) {
|
|
2834
2834
|
if (e.sCount[o] - e.blkIndent > 3 || e.sCount[o] < 0)
|
|
2835
2835
|
continue;
|
|
2836
|
-
let
|
|
2837
|
-
for (let
|
|
2838
|
-
if (n[
|
|
2839
|
-
|
|
2836
|
+
let s = !1;
|
|
2837
|
+
for (let c = 0, f = n.length; c < f; c++)
|
|
2838
|
+
if (n[c](e, o, t, !0)) {
|
|
2839
|
+
s = !0;
|
|
2840
2840
|
break;
|
|
2841
2841
|
}
|
|
2842
|
-
if (
|
|
2842
|
+
if (s)
|
|
2843
2843
|
break;
|
|
2844
2844
|
}
|
|
2845
2845
|
const a = e.getLines(u, o, e.blkIndent, !1).trim();
|
|
@@ -2878,14 +2878,14 @@ yt.prototype.tokenize = function(e, u, t) {
|
|
|
2878
2878
|
break;
|
|
2879
2879
|
}
|
|
2880
2880
|
const l = e.line;
|
|
2881
|
-
let
|
|
2882
|
-
for (let
|
|
2883
|
-
if (
|
|
2881
|
+
let s = !1;
|
|
2882
|
+
for (let c = 0; c < r; c++)
|
|
2883
|
+
if (s = n[c](e, a, t, !1), s) {
|
|
2884
2884
|
if (l >= e.line)
|
|
2885
2885
|
throw new Error("block rule didn't increment state.line");
|
|
2886
2886
|
break;
|
|
2887
2887
|
}
|
|
2888
|
-
if (!
|
|
2888
|
+
if (!s) throw new Error("none of the block rules matched");
|
|
2889
2889
|
e.tight = !i, e.isEmpty(e.line - 1) && (i = !0), a = e.line, a < t && e.isEmpty(a) && (i = !0, a++, e.line = a);
|
|
2890
2890
|
}
|
|
2891
2891
|
};
|
|
@@ -2914,8 +2914,8 @@ Bu.prototype.scanDelims = function(e, u) {
|
|
|
2914
2914
|
let o = e;
|
|
2915
2915
|
for (; o < t && this.src.charCodeAt(o) === n; )
|
|
2916
2916
|
o++;
|
|
2917
|
-
const a = o - e, i = o < t ? this.src.charCodeAt(o) : 32, l = Nu(r) || Lu(String.fromCharCode(r)),
|
|
2918
|
-
return { can_open: y && (u || !x || l), can_close: x && (u || !y ||
|
|
2917
|
+
const a = o - e, i = o < t ? this.src.charCodeAt(o) : 32, l = Nu(r) || Lu(String.fromCharCode(r)), s = Nu(i) || Lu(String.fromCharCode(i)), c = Mu(r), f = Mu(i), y = !f && (!s || c || l), x = !c && (!l || f || s);
|
|
2918
|
+
return { can_open: y && (u || !x || l), can_close: x && (u || !y || s), length: a };
|
|
2919
2919
|
};
|
|
2920
2920
|
Bu.prototype.Token = Oe;
|
|
2921
2921
|
function rl(e) {
|
|
@@ -2970,10 +2970,10 @@ function al(e, u) {
|
|
|
2970
2970
|
if (!e.md.validateLink(l)) return !1;
|
|
2971
2971
|
if (!u) {
|
|
2972
2972
|
e.pending = e.pending.slice(0, -o.length);
|
|
2973
|
-
const
|
|
2974
|
-
|
|
2975
|
-
const
|
|
2976
|
-
|
|
2973
|
+
const s = e.push("link_open", "a", 1);
|
|
2974
|
+
s.attrs = [["href", l]], s.markup = "linkify", s.info = "auto";
|
|
2975
|
+
const c = e.push("text", "", 0);
|
|
2976
|
+
c.content = e.md.normalizeLinkText(i);
|
|
2977
2977
|
const f = e.push("link_close", "a", -1);
|
|
2978
2978
|
f.markup = "linkify", f.info = "auto";
|
|
2979
2979
|
}
|
|
@@ -3004,7 +3004,7 @@ for (let e = 0; e < 256; e++)
|
|
|
3004
3004
|
"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e) {
|
|
3005
3005
|
kn[e.charCodeAt(0)] = 1;
|
|
3006
3006
|
});
|
|
3007
|
-
function
|
|
3007
|
+
function sl(e, u) {
|
|
3008
3008
|
let t = e.pos;
|
|
3009
3009
|
const n = e.posMax;
|
|
3010
3010
|
if (e.src.charCodeAt(t) !== 92 || (t++, t >= n)) return !1;
|
|
@@ -3026,7 +3026,7 @@ function cl(e, u) {
|
|
|
3026
3026
|
}
|
|
3027
3027
|
return e.pos = t + 1, !0;
|
|
3028
3028
|
}
|
|
3029
|
-
function
|
|
3029
|
+
function cl(e, u) {
|
|
3030
3030
|
let t = e.pos;
|
|
3031
3031
|
if (e.src.charCodeAt(t) !== 96)
|
|
3032
3032
|
return !1;
|
|
@@ -3038,19 +3038,19 @@ function sl(e, u) {
|
|
|
3038
3038
|
const a = e.src.slice(r, t), i = a.length;
|
|
3039
3039
|
if (e.backticksScanned && (e.backticks[i] || 0) <= r)
|
|
3040
3040
|
return u || (e.pending += a), e.pos += i, !0;
|
|
3041
|
-
let l = t,
|
|
3042
|
-
for (; (
|
|
3043
|
-
for (l =
|
|
3041
|
+
let l = t, s;
|
|
3042
|
+
for (; (s = e.src.indexOf("`", l)) !== -1; ) {
|
|
3043
|
+
for (l = s + 1; l < o && e.src.charCodeAt(l) === 96; )
|
|
3044
3044
|
l++;
|
|
3045
|
-
const
|
|
3046
|
-
if (
|
|
3045
|
+
const c = l - s;
|
|
3046
|
+
if (c === i) {
|
|
3047
3047
|
if (!u) {
|
|
3048
3048
|
const f = e.push("code_inline", "code", 0);
|
|
3049
|
-
f.markup = a, f.content = e.src.slice(t,
|
|
3049
|
+
f.markup = a, f.content = e.src.slice(t, s).replace(/\n/g, " ").replace(/^ (.+) $/, "$1");
|
|
3050
3050
|
}
|
|
3051
3051
|
return e.pos = l, !0;
|
|
3052
3052
|
}
|
|
3053
|
-
e.backticks[
|
|
3053
|
+
e.backticks[c] = s;
|
|
3054
3054
|
}
|
|
3055
3055
|
return e.backticksScanned = !0, u || (e.pending += a), e.pos += i, !0;
|
|
3056
3056
|
}
|
|
@@ -3145,8 +3145,8 @@ function hr(e, u) {
|
|
|
3145
3145
|
u[n - 1].marker === r.marker && u[n - 1].token === r.token - 1 && // check that last two markers are adjacent (we can safely assume they match)
|
|
3146
3146
|
u[r.end + 1].token === o.token + 1, i = String.fromCharCode(r.marker), l = e.tokens[r.token];
|
|
3147
3147
|
l.type = a ? "strong_open" : "em_open", l.tag = a ? "strong" : "em", l.nesting = 1, l.markup = a ? i + i : i, l.content = "";
|
|
3148
|
-
const
|
|
3149
|
-
|
|
3148
|
+
const s = e.tokens[o.token];
|
|
3149
|
+
s.type = a ? "strong_close" : "em_close", s.tag = a ? "strong" : "em", s.nesting = -1, s.markup = a ? i + i : i, s.content = "", a && (e.tokens[u[n - 1].token].content = "", e.tokens[u[r.end + 1].token].content = "", n--);
|
|
3150
3150
|
}
|
|
3151
3151
|
}
|
|
3152
3152
|
function hl(e) {
|
|
@@ -3160,15 +3160,15 @@ const io = {
|
|
|
3160
3160
|
postProcess: hl
|
|
3161
3161
|
};
|
|
3162
3162
|
function bl(e, u) {
|
|
3163
|
-
let t, n, r, o, a = "", i = "", l = e.pos,
|
|
3163
|
+
let t, n, r, o, a = "", i = "", l = e.pos, s = !0;
|
|
3164
3164
|
if (e.src.charCodeAt(e.pos) !== 91)
|
|
3165
3165
|
return !1;
|
|
3166
|
-
const
|
|
3166
|
+
const c = e.pos, f = e.posMax, y = e.pos + 1, x = e.md.helpers.parseLinkLabel(e, e.pos, !0);
|
|
3167
3167
|
if (x < 0)
|
|
3168
3168
|
return !1;
|
|
3169
3169
|
let d = x + 1;
|
|
3170
3170
|
if (d < f && e.src.charCodeAt(d) === 40) {
|
|
3171
|
-
for (
|
|
3171
|
+
for (s = !1, d++; d < f && (t = e.src.charCodeAt(d), !(!Q(t) && t !== 10)); d++)
|
|
3172
3172
|
;
|
|
3173
3173
|
if (d >= f)
|
|
3174
3174
|
return !1;
|
|
@@ -3179,13 +3179,13 @@ function bl(e, u) {
|
|
|
3179
3179
|
for (i = r.str, d = r.pos; d < f && (t = e.src.charCodeAt(d), !(!Q(t) && t !== 10)); d++)
|
|
3180
3180
|
;
|
|
3181
3181
|
}
|
|
3182
|
-
(d >= f || e.src.charCodeAt(d) !== 41) && (
|
|
3182
|
+
(d >= f || e.src.charCodeAt(d) !== 41) && (s = !0), d++;
|
|
3183
3183
|
}
|
|
3184
|
-
if (
|
|
3184
|
+
if (s) {
|
|
3185
3185
|
if (typeof e.env.references > "u")
|
|
3186
3186
|
return !1;
|
|
3187
3187
|
if (d < f && e.src.charCodeAt(d) === 91 ? (l = d + 1, d = e.md.helpers.parseLinkLabel(e, d), d >= 0 ? n = e.src.slice(l, d++) : d = x + 1) : d = x + 1, n || (n = e.src.slice(y, x)), o = e.env.references[_t(n)], !o)
|
|
3188
|
-
return e.pos =
|
|
3188
|
+
return e.pos = c, !1;
|
|
3189
3189
|
a = o.href, i = o.title;
|
|
3190
3190
|
}
|
|
3191
3191
|
if (!u) {
|
|
@@ -3196,7 +3196,7 @@ function bl(e, u) {
|
|
|
3196
3196
|
return e.pos = d, e.posMax = f, !0;
|
|
3197
3197
|
}
|
|
3198
3198
|
function ml(e, u) {
|
|
3199
|
-
let t, n, r, o, a, i, l,
|
|
3199
|
+
let t, n, r, o, a, i, l, s, c = "";
|
|
3200
3200
|
const f = e.pos, y = e.posMax;
|
|
3201
3201
|
if (e.src.charCodeAt(e.pos) !== 33 || e.src.charCodeAt(e.pos + 1) !== 91)
|
|
3202
3202
|
return !1;
|
|
@@ -3208,9 +3208,9 @@ function ml(e, u) {
|
|
|
3208
3208
|
;
|
|
3209
3209
|
if (o >= y)
|
|
3210
3210
|
return !1;
|
|
3211
|
-
for (
|
|
3211
|
+
for (s = o, i = e.md.helpers.parseLinkDestination(e.src, o, e.posMax), i.ok && (c = e.md.normalizeLink(i.str), e.md.validateLink(c) ? o = i.pos : c = ""), s = o; o < y && (t = e.src.charCodeAt(o), !(!Q(t) && t !== 10)); o++)
|
|
3212
3212
|
;
|
|
3213
|
-
if (i = e.md.helpers.parseLinkTitle(e.src, o, e.posMax), o < y &&
|
|
3213
|
+
if (i = e.md.helpers.parseLinkTitle(e.src, o, e.posMax), o < y && s !== o && i.ok)
|
|
3214
3214
|
for (l = i.str, o = i.pos; o < y && (t = e.src.charCodeAt(o), !(!Q(t) && t !== 10)); o++)
|
|
3215
3215
|
;
|
|
3216
3216
|
else
|
|
@@ -3221,9 +3221,9 @@ function ml(e, u) {
|
|
|
3221
3221
|
} else {
|
|
3222
3222
|
if (typeof e.env.references > "u")
|
|
3223
3223
|
return !1;
|
|
3224
|
-
if (o < y && e.src.charCodeAt(o) === 91 ? (
|
|
3224
|
+
if (o < y && e.src.charCodeAt(o) === 91 ? (s = o + 1, o = e.md.helpers.parseLinkLabel(e, o), o >= 0 ? r = e.src.slice(s, o++) : o = d + 1) : o = d + 1, r || (r = e.src.slice(x, d)), a = e.env.references[_t(r)], !a)
|
|
3225
3225
|
return e.pos = f, !1;
|
|
3226
|
-
|
|
3226
|
+
c = a.href, l = a.title;
|
|
3227
3227
|
}
|
|
3228
3228
|
if (!u) {
|
|
3229
3229
|
n = e.src.slice(x, d);
|
|
@@ -3234,7 +3234,7 @@ function ml(e, u) {
|
|
|
3234
3234
|
e.env,
|
|
3235
3235
|
E
|
|
3236
3236
|
);
|
|
3237
|
-
const A = e.push("image", "img", 0), v = [["src",
|
|
3237
|
+
const A = e.push("image", "img", 0), v = [["src", c], ["alt", ""]];
|
|
3238
3238
|
A.attrs = v, A.children = E, A.content = n, l && v.push(["title", l]);
|
|
3239
3239
|
}
|
|
3240
3240
|
return e.pos = o, e.posMax = y, !0;
|
|
@@ -3261,8 +3261,8 @@ function xl(e, u) {
|
|
|
3261
3261
|
i.attrs = [["href", a]], i.markup = "autolink", i.info = "auto";
|
|
3262
3262
|
const l = e.push("text", "", 0);
|
|
3263
3263
|
l.content = e.md.normalizeLinkText(o);
|
|
3264
|
-
const
|
|
3265
|
-
|
|
3264
|
+
const s = e.push("link_close", "a", -1);
|
|
3265
|
+
s.markup = "autolink", s.info = "auto";
|
|
3266
3266
|
}
|
|
3267
3267
|
return e.pos += o.length + 2, !0;
|
|
3268
3268
|
}
|
|
@@ -3275,8 +3275,8 @@ function xl(e, u) {
|
|
|
3275
3275
|
i.attrs = [["href", a]], i.markup = "autolink", i.info = "auto";
|
|
3276
3276
|
const l = e.push("text", "", 0);
|
|
3277
3277
|
l.content = e.md.normalizeLinkText(o);
|
|
3278
|
-
const
|
|
3279
|
-
|
|
3278
|
+
const s = e.push("link_close", "a", -1);
|
|
3279
|
+
s.markup = "autolink", s.info = "auto";
|
|
3280
3280
|
}
|
|
3281
3281
|
return e.pos += o.length + 2, !0;
|
|
3282
3282
|
}
|
|
@@ -3348,19 +3348,19 @@ function br(e) {
|
|
|
3348
3348
|
if (o.push(0), (e[n].marker !== i.marker || r !== i.token - 1) && (n = a), r = i.token, i.length = i.length || 0, !i.close) continue;
|
|
3349
3349
|
u.hasOwnProperty(i.marker) || (u[i.marker] = [-1, -1, -1, -1, -1, -1]);
|
|
3350
3350
|
const l = u[i.marker][(i.open ? 3 : 0) + i.length % 3];
|
|
3351
|
-
let
|
|
3352
|
-
for (;
|
|
3353
|
-
const f = e[
|
|
3351
|
+
let s = n - o[n] - 1, c = s;
|
|
3352
|
+
for (; s > l; s -= o[s] + 1) {
|
|
3353
|
+
const f = e[s];
|
|
3354
3354
|
if (f.marker === i.marker && f.open && f.end < 0) {
|
|
3355
3355
|
let y = !1;
|
|
3356
3356
|
if ((f.close || i.open) && (f.length + i.length) % 3 === 0 && (f.length % 3 !== 0 || i.length % 3 !== 0) && (y = !0), !y) {
|
|
3357
|
-
const x =
|
|
3358
|
-
o[a] = a -
|
|
3357
|
+
const x = s > 0 && !e[s - 1].open ? o[s - 1] + 1 : 0;
|
|
3358
|
+
o[a] = a - s + x, o[s] = x, i.open = !1, f.end = a, f.close = !1, c = -1, r = -2;
|
|
3359
3359
|
break;
|
|
3360
3360
|
}
|
|
3361
3361
|
}
|
|
3362
3362
|
}
|
|
3363
|
-
|
|
3363
|
+
c !== -1 && (u[i.marker][(i.open ? 3 : 0) + (i.length || 0) % 3] = c);
|
|
3364
3364
|
}
|
|
3365
3365
|
}
|
|
3366
3366
|
function Dl(e) {
|
|
@@ -3380,8 +3380,8 @@ const Ut = [
|
|
|
3380
3380
|
["text", ol],
|
|
3381
3381
|
["linkify", al],
|
|
3382
3382
|
["newline", ll],
|
|
3383
|
-
["escape",
|
|
3384
|
-
["backticks",
|
|
3383
|
+
["escape", sl],
|
|
3384
|
+
["backticks", cl],
|
|
3385
3385
|
["strikethrough", oo.tokenize],
|
|
3386
3386
|
["emphasis", io.tokenize],
|
|
3387
3387
|
["link", bl],
|
|
@@ -3563,9 +3563,9 @@ function pt(e) {
|
|
|
3563
3563
|
const l = e.__schemas__[i];
|
|
3564
3564
|
if (l === null)
|
|
3565
3565
|
return;
|
|
3566
|
-
const
|
|
3567
|
-
if (e.__compiled__[i] =
|
|
3568
|
-
Rl(l.validate) ?
|
|
3566
|
+
const s = { validate: null, link: null };
|
|
3567
|
+
if (e.__compiled__[i] = s, Pl(l)) {
|
|
3568
|
+
Rl(l.validate) ? s.validate = zl(l.validate) : mr(l.validate) ? s.validate = l.validate : o(i, l), mr(l.normalize) ? s.normalize = l.normalize : l.normalize ? o(i, l) : s.normalize = gr();
|
|
3569
3569
|
return;
|
|
3570
3570
|
}
|
|
3571
3571
|
if (Tl(l)) {
|
|
@@ -3606,7 +3606,7 @@ Fe.prototype.set = function(u) {
|
|
|
3606
3606
|
Fe.prototype.test = function(u) {
|
|
3607
3607
|
if (this.__text_cache__ = u, this.__index__ = -1, !u.length)
|
|
3608
3608
|
return !1;
|
|
3609
|
-
let t, n, r, o, a, i, l,
|
|
3609
|
+
let t, n, r, o, a, i, l, s, c;
|
|
3610
3610
|
if (this.re.schema_test.test(u)) {
|
|
3611
3611
|
for (l = this.re.schema_search, l.lastIndex = 0; (t = l.exec(u)) !== null; )
|
|
3612
3612
|
if (o = this.testSchemaAt(u, t[2], l.lastIndex), o) {
|
|
@@ -3614,7 +3614,7 @@ Fe.prototype.test = function(u) {
|
|
|
3614
3614
|
break;
|
|
3615
3615
|
}
|
|
3616
3616
|
}
|
|
3617
|
-
return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (
|
|
3617
|
+
return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (s = u.search(this.re.host_fuzzy_test), s >= 0 && (this.__index__ < 0 || s < this.__index__) && (n = u.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (a = n.index + n[1].length, (this.__index__ < 0 || a < this.__index__) && (this.__schema__ = "", this.__index__ = a, this.__last_index__ = n.index + n[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (c = u.indexOf("@"), c >= 0 && (r = u.match(this.re.email_fuzzy)) !== null && (a = r.index + r[1].length, i = r.index + r[0].length, (this.__index__ < 0 || a < this.__index__ || a === this.__index__ && i > this.__last_index__) && (this.__schema__ = "mailto:", this.__index__ = a, this.__last_index__ = i))), this.__index__ >= 0;
|
|
3618
3618
|
};
|
|
3619
3619
|
Fe.prototype.pretest = function(u) {
|
|
3620
3620
|
return this.re.pretest.test(u);
|
|
@@ -3648,7 +3648,7 @@ Fe.prototype.normalize = function(u) {
|
|
|
3648
3648
|
};
|
|
3649
3649
|
Fe.prototype.onCompile = function() {
|
|
3650
3650
|
};
|
|
3651
|
-
const mu = 2147483647, Ie = 36, xn = 1, $u = 26, Ul = 38, ql = 700, lo = 72,
|
|
3651
|
+
const mu = 2147483647, Ie = 36, xn = 1, $u = 26, Ul = 38, ql = 700, lo = 72, so = 128, co = "-", jl = /^xn--/, Hl = /[^\0-\x7F]/, Gl = /[\x2E\u3002\uFF0E\uFF61]/g, Vl = {
|
|
3652
3652
|
overflow: "Overflow: input needs wider integers to process",
|
|
3653
3653
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
3654
3654
|
"invalid-input": "Invalid input"
|
|
@@ -3695,43 +3695,43 @@ const Zl = (e) => String.fromCodePoint(...e), Yl = function(e) {
|
|
|
3695
3695
|
return ze(n + (jt + 1) * e / (e + Ul));
|
|
3696
3696
|
}, bo = function(e) {
|
|
3697
3697
|
const u = [], t = e.length;
|
|
3698
|
-
let n = 0, r =
|
|
3698
|
+
let n = 0, r = so, o = lo, a = e.lastIndexOf(co);
|
|
3699
3699
|
a < 0 && (a = 0);
|
|
3700
3700
|
for (let i = 0; i < a; ++i)
|
|
3701
3701
|
e.charCodeAt(i) >= 128 && Je("not-basic"), u.push(e.charCodeAt(i));
|
|
3702
3702
|
for (let i = a > 0 ? a + 1 : 0; i < t; ) {
|
|
3703
3703
|
const l = n;
|
|
3704
|
-
for (let
|
|
3704
|
+
for (let c = 1, f = Ie; ; f += Ie) {
|
|
3705
3705
|
i >= t && Je("invalid-input");
|
|
3706
3706
|
const y = Yl(e.charCodeAt(i++));
|
|
3707
|
-
y >= Ie && Je("invalid-input"), y > ze((mu - n) /
|
|
3707
|
+
y >= Ie && Je("invalid-input"), y > ze((mu - n) / c) && Je("overflow"), n += y * c;
|
|
3708
3708
|
const x = f <= o ? xn : f >= o + $u ? $u : f - o;
|
|
3709
3709
|
if (y < x)
|
|
3710
3710
|
break;
|
|
3711
3711
|
const d = Ie - x;
|
|
3712
|
-
|
|
3712
|
+
c > ze(mu / d) && Je("overflow"), c *= d;
|
|
3713
3713
|
}
|
|
3714
|
-
const
|
|
3715
|
-
o = ho(n - l,
|
|
3714
|
+
const s = u.length + 1;
|
|
3715
|
+
o = ho(n - l, s, l == 0), ze(n / s) > mu - r && Je("overflow"), r += ze(n / s), n %= s, u.splice(n++, 0, r);
|
|
3716
3716
|
}
|
|
3717
3717
|
return String.fromCodePoint(...u);
|
|
3718
3718
|
}, mo = function(e) {
|
|
3719
3719
|
const u = [];
|
|
3720
3720
|
e = po(e);
|
|
3721
3721
|
const t = e.length;
|
|
3722
|
-
let n =
|
|
3722
|
+
let n = so, r = 0, o = lo;
|
|
3723
3723
|
for (const l of e)
|
|
3724
3724
|
l < 128 && u.push(Ht(l));
|
|
3725
3725
|
const a = u.length;
|
|
3726
3726
|
let i = a;
|
|
3727
|
-
for (a && u.push(
|
|
3727
|
+
for (a && u.push(co); i < t; ) {
|
|
3728
3728
|
let l = mu;
|
|
3729
|
-
for (const
|
|
3730
|
-
|
|
3731
|
-
const
|
|
3732
|
-
l - n > ze((mu - r) /
|
|
3733
|
-
for (const
|
|
3734
|
-
if (
|
|
3729
|
+
for (const c of e)
|
|
3730
|
+
c >= n && c < l && (l = c);
|
|
3731
|
+
const s = i + 1;
|
|
3732
|
+
l - n > ze((mu - r) / s) && Je("overflow"), r += (l - n) * s, n = l;
|
|
3733
|
+
for (const c of e)
|
|
3734
|
+
if (c < n && ++r > mu && Je("overflow"), c === n) {
|
|
3735
3735
|
let f = r;
|
|
3736
3736
|
for (let y = Ie; ; y += Ie) {
|
|
3737
3737
|
const x = y <= o ? xn : y >= o + $u ? $u : y - o;
|
|
@@ -3742,7 +3742,7 @@ const Zl = (e) => String.fromCodePoint(...e), Yl = function(e) {
|
|
|
3742
3742
|
Ht(kr(x + d % E, 0))
|
|
3743
3743
|
), f = ze(d / E);
|
|
3744
3744
|
}
|
|
3745
|
-
u.push(Ht(kr(f, 0))), o = ho(r,
|
|
3745
|
+
u.push(Ht(kr(f, 0))), o = ho(r, s, i === a), r = 0, ++i;
|
|
3746
3746
|
}
|
|
3747
3747
|
++r, ++n;
|
|
3748
3748
|
}
|
|
@@ -3868,7 +3868,7 @@ const Zl = (e) => String.fromCodePoint(...e), Yl = function(e) {
|
|
|
3868
3868
|
]
|
|
3869
3869
|
}
|
|
3870
3870
|
}
|
|
3871
|
-
},
|
|
3871
|
+
}, es = {
|
|
3872
3872
|
options: {
|
|
3873
3873
|
// Enable HTML tags in source
|
|
3874
3874
|
html: !0,
|
|
@@ -3942,17 +3942,17 @@ const Zl = (e) => String.fromCodePoint(...e), Yl = function(e) {
|
|
|
3942
3942
|
]
|
|
3943
3943
|
}
|
|
3944
3944
|
}
|
|
3945
|
-
},
|
|
3945
|
+
}, us = {
|
|
3946
3946
|
default: Jl,
|
|
3947
3947
|
zero: Kl,
|
|
3948
|
-
commonmark:
|
|
3949
|
-
},
|
|
3950
|
-
function
|
|
3948
|
+
commonmark: es
|
|
3949
|
+
}, ts = /^(vbscript|javascript|file|data):/, ns = /^data:image\/(gif|png|jpeg|webp);/;
|
|
3950
|
+
function rs(e) {
|
|
3951
3951
|
const u = e.trim().toLowerCase();
|
|
3952
|
-
return
|
|
3952
|
+
return ts.test(u) ? ns.test(u) : !0;
|
|
3953
3953
|
}
|
|
3954
3954
|
const ko = ["http:", "https:", "mailto:"];
|
|
3955
|
-
function
|
|
3955
|
+
function os(e) {
|
|
3956
3956
|
const u = pn(e, !0);
|
|
3957
3957
|
if (u.hostname && (!u.protocol || ko.indexOf(u.protocol) >= 0))
|
|
3958
3958
|
try {
|
|
@@ -3961,7 +3961,7 @@ function oc(e) {
|
|
|
3961
3961
|
}
|
|
3962
3962
|
return zu(dn(u));
|
|
3963
3963
|
}
|
|
3964
|
-
function
|
|
3964
|
+
function is(e) {
|
|
3965
3965
|
const u = pn(e, !0);
|
|
3966
3966
|
if (u.hostname && (!u.protocol || ko.indexOf(u.protocol) >= 0))
|
|
3967
3967
|
try {
|
|
@@ -3973,7 +3973,7 @@ function ic(e) {
|
|
|
3973
3973
|
function Te(e, u) {
|
|
3974
3974
|
if (!(this instanceof Te))
|
|
3975
3975
|
return new Te(e, u);
|
|
3976
|
-
u || bn(e) || (u = e || {}, e = "default"), this.inline = new Uu(), this.block = new yt(), this.core = new gn(), this.renderer = new _u(), this.linkify = new Fe(), this.validateLink =
|
|
3976
|
+
u || bn(e) || (u = e || {}, e = "default"), this.inline = new Uu(), this.block = new yt(), this.core = new gn(), this.renderer = new _u(), this.linkify = new Fe(), this.validateLink = rs, this.normalizeLink = os, this.normalizeLinkText = is, this.utils = l0, this.helpers = vt({}, d0), this.options = {}, this.configure(e), u && this.set(u);
|
|
3977
3977
|
}
|
|
3978
3978
|
Te.prototype.set = function(e) {
|
|
3979
3979
|
return vt(this.options, e), this;
|
|
@@ -3982,7 +3982,7 @@ Te.prototype.configure = function(e) {
|
|
|
3982
3982
|
const u = this;
|
|
3983
3983
|
if (bn(e)) {
|
|
3984
3984
|
const t = e;
|
|
3985
|
-
if (e =
|
|
3985
|
+
if (e = us[t], !e)
|
|
3986
3986
|
throw new Error('Wrong `markdown-it` preset "' + t + '", check name');
|
|
3987
3987
|
}
|
|
3988
3988
|
if (!e)
|
|
@@ -4035,14 +4035,14 @@ Te.prototype.parseInline = function(e, u) {
|
|
|
4035
4035
|
Te.prototype.renderInline = function(e, u) {
|
|
4036
4036
|
return u = u || {}, this.renderer.render(this.parseInline(e, u), this.options, u);
|
|
4037
4037
|
};
|
|
4038
|
-
function
|
|
4038
|
+
function as(e, u) {
|
|
4039
4039
|
const { manual: t = !1, domPurify: n = !0, ...r } = u ?? {}, o = j(Qt(e) ? Be(e.value) : No(e) ? Be(e) : e);
|
|
4040
4040
|
Qt(e) && Re(() => {
|
|
4041
4041
|
o.value = Be(e.value);
|
|
4042
4042
|
});
|
|
4043
4043
|
const a = j(""), i = j(), l = Te({ ...r });
|
|
4044
|
-
function c
|
|
4045
|
-
const f = l.render(
|
|
4044
|
+
function s(c) {
|
|
4045
|
+
const f = l.render(c);
|
|
4046
4046
|
if (a.value = n ? _a.sanitize(f) : f, i.value) i.value.innerHTML = a.value;
|
|
4047
4047
|
else {
|
|
4048
4048
|
const y = Ze(i, (x) => {
|
|
@@ -4051,44 +4051,44 @@ function ac(e, u) {
|
|
|
4051
4051
|
}
|
|
4052
4052
|
return a.value;
|
|
4053
4053
|
}
|
|
4054
|
-
return t || (
|
|
4055
|
-
c
|
|
4054
|
+
return t || (s(o.value ?? ""), Ze(o, (c) => {
|
|
4055
|
+
s(c ?? "");
|
|
4056
4056
|
})), {
|
|
4057
4057
|
value: o,
|
|
4058
4058
|
html: a,
|
|
4059
4059
|
domRef: i,
|
|
4060
4060
|
md: l,
|
|
4061
|
-
render:
|
|
4061
|
+
render: s
|
|
4062
4062
|
};
|
|
4063
4063
|
}
|
|
4064
|
-
function
|
|
4065
|
-
const { step: t = 1, interval: n = 50, enabled: r = !0 } = u ?? {}, o = j(0), a = j(!1), i = j(!1), l = j(!1),
|
|
4064
|
+
function ls(e, u) {
|
|
4065
|
+
const { step: t = 1, interval: n = 50, enabled: r = !0 } = u ?? {}, o = j(0), a = j(!1), i = j(!1), l = j(!1), s = ee(() => r ? e.value.slice(0, o.value) : e.value), c = ee(() => Number(Math.min(o.value / e.value.length * 100, 100).toFixed(2)));
|
|
4066
4066
|
let f = null;
|
|
4067
4067
|
const y = rt(), x = rt(), d = rt();
|
|
4068
|
-
Ze(e, (
|
|
4068
|
+
Ze(e, (b, h) => {
|
|
4069
4069
|
if (!h) {
|
|
4070
4070
|
o.value = 0, E();
|
|
4071
4071
|
return;
|
|
4072
4072
|
}
|
|
4073
|
-
|
|
4073
|
+
b.startsWith(h) || (o.value = 0), E();
|
|
4074
4074
|
}, { immediate: !0 });
|
|
4075
4075
|
function E() {
|
|
4076
4076
|
if (f && clearTimeout(f), !r) {
|
|
4077
|
-
o.value = e.value.length, i.value = !0, l.value = !1, a.value = !1, x.trigger(
|
|
4077
|
+
o.value = e.value.length, i.value = !0, l.value = !1, a.value = !1, x.trigger(s.value);
|
|
4078
4078
|
return;
|
|
4079
4079
|
}
|
|
4080
4080
|
l.value = !0, a.value = !1, i.value = !1, y.trigger();
|
|
4081
|
-
function
|
|
4081
|
+
function b() {
|
|
4082
4082
|
if (o.value += t, d.trigger({
|
|
4083
4083
|
index: o.value,
|
|
4084
|
-
value:
|
|
4084
|
+
value: s.value
|
|
4085
4085
|
}), o.value >= e.value.length) {
|
|
4086
|
-
o.value = e.value.length, i.value = !0, l.value = !1, x.trigger(
|
|
4086
|
+
o.value = e.value.length, i.value = !0, l.value = !1, x.trigger(s.value);
|
|
4087
4087
|
return;
|
|
4088
4088
|
}
|
|
4089
|
-
f = setTimeout(
|
|
4089
|
+
f = setTimeout(b, n);
|
|
4090
4090
|
}
|
|
4091
|
-
f = setTimeout(
|
|
4091
|
+
f = setTimeout(b, n);
|
|
4092
4092
|
}
|
|
4093
4093
|
function A() {
|
|
4094
4094
|
f && clearTimeout(f), a.value = !0, l.value = !1, i.value = !1;
|
|
@@ -4102,9 +4102,9 @@ function lc(e, u) {
|
|
|
4102
4102
|
});
|
|
4103
4103
|
}
|
|
4104
4104
|
function k() {
|
|
4105
|
-
f && clearTimeout(f), l.value = !1, a.value = !1, i.value = !0, o.value = e.value.length, x.trigger(
|
|
4105
|
+
f && clearTimeout(f), l.value = !1, a.value = !1, i.value = !0, o.value = e.value.length, x.trigger(s.value);
|
|
4106
4106
|
}
|
|
4107
|
-
function
|
|
4107
|
+
function m() {
|
|
4108
4108
|
f && clearTimeout(f), f = null, l.value = !1, a.value = !1, i.value = !1, o.value = 0;
|
|
4109
4109
|
}
|
|
4110
4110
|
return {
|
|
@@ -4112,25 +4112,25 @@ function lc(e, u) {
|
|
|
4112
4112
|
paused: a,
|
|
4113
4113
|
ended: i,
|
|
4114
4114
|
isTyping: l,
|
|
4115
|
-
typedValue:
|
|
4116
|
-
progress:
|
|
4115
|
+
typedValue: s,
|
|
4116
|
+
progress: c,
|
|
4117
4117
|
start: E,
|
|
4118
4118
|
pause: A,
|
|
4119
4119
|
resume: v,
|
|
4120
4120
|
restart: p,
|
|
4121
4121
|
stop: k,
|
|
4122
|
-
destroy:
|
|
4122
|
+
destroy: m,
|
|
4123
4123
|
onStat: y.on,
|
|
4124
4124
|
onStop: x.on,
|
|
4125
4125
|
onUpdate: d.on
|
|
4126
4126
|
};
|
|
4127
4127
|
}
|
|
4128
4128
|
var xr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4129
|
-
function
|
|
4129
|
+
function ss(e) {
|
|
4130
4130
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4131
4131
|
}
|
|
4132
4132
|
var Gt = { exports: {} }, vr;
|
|
4133
|
-
function
|
|
4133
|
+
function cs() {
|
|
4134
4134
|
return vr || (vr = 1, function(e) {
|
|
4135
4135
|
var u = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
|
|
4136
4136
|
/**
|
|
@@ -4238,28 +4238,28 @@ function sc() {
|
|
|
4238
4238
|
* @returns {T}
|
|
4239
4239
|
* @template T
|
|
4240
4240
|
*/
|
|
4241
|
-
clone: function p(k,
|
|
4242
|
-
|
|
4243
|
-
var
|
|
4241
|
+
clone: function p(k, m) {
|
|
4242
|
+
m = m || {};
|
|
4243
|
+
var b, h;
|
|
4244
4244
|
switch (i.util.type(k)) {
|
|
4245
4245
|
case "Object":
|
|
4246
|
-
if (h = i.util.objId(k),
|
|
4247
|
-
return
|
|
4248
|
-
|
|
4249
|
-
{},
|
|
4246
|
+
if (h = i.util.objId(k), m[h])
|
|
4247
|
+
return m[h];
|
|
4248
|
+
b = /** @type {Record<string, any>} */
|
|
4249
|
+
{}, m[h] = b;
|
|
4250
4250
|
for (var C in k)
|
|
4251
|
-
k.hasOwnProperty(C) && (
|
|
4251
|
+
k.hasOwnProperty(C) && (b[C] = p(k[C], m));
|
|
4252
4252
|
return (
|
|
4253
4253
|
/** @type {any} */
|
|
4254
|
-
|
|
4254
|
+
b
|
|
4255
4255
|
);
|
|
4256
4256
|
case "Array":
|
|
4257
|
-
return h = i.util.objId(k),
|
|
4257
|
+
return h = i.util.objId(k), m[h] ? m[h] : (b = [], m[h] = b, /** @type {Array} */
|
|
4258
4258
|
/** @type {any} */
|
|
4259
4259
|
k.forEach(function(P, D) {
|
|
4260
|
-
|
|
4260
|
+
b[D] = p(P, m);
|
|
4261
4261
|
}), /** @type {any} */
|
|
4262
|
-
|
|
4262
|
+
b);
|
|
4263
4263
|
default:
|
|
4264
4264
|
return k;
|
|
4265
4265
|
}
|
|
@@ -4308,13 +4308,13 @@ function sc() {
|
|
|
4308
4308
|
);
|
|
4309
4309
|
try {
|
|
4310
4310
|
throw new Error();
|
|
4311
|
-
} catch (
|
|
4312
|
-
var p = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(
|
|
4311
|
+
} catch (b) {
|
|
4312
|
+
var p = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack) || [])[1];
|
|
4313
4313
|
if (p) {
|
|
4314
4314
|
var k = document.getElementsByTagName("script");
|
|
4315
|
-
for (var
|
|
4316
|
-
if (k[
|
|
4317
|
-
return k[
|
|
4315
|
+
for (var m in k)
|
|
4316
|
+
if (k[m].src == p)
|
|
4317
|
+
return k[m];
|
|
4318
4318
|
}
|
|
4319
4319
|
return null;
|
|
4320
4320
|
}
|
|
@@ -4338,16 +4338,16 @@ function sc() {
|
|
|
4338
4338
|
* @param {boolean} [defaultActivation=false]
|
|
4339
4339
|
* @returns {boolean}
|
|
4340
4340
|
*/
|
|
4341
|
-
isActive: function(p, k,
|
|
4342
|
-
for (var
|
|
4341
|
+
isActive: function(p, k, m) {
|
|
4342
|
+
for (var b = "no-" + k; p; ) {
|
|
4343
4343
|
var h = p.classList;
|
|
4344
4344
|
if (h.contains(k))
|
|
4345
4345
|
return !0;
|
|
4346
|
-
if (h.contains(
|
|
4346
|
+
if (h.contains(b))
|
|
4347
4347
|
return !1;
|
|
4348
4348
|
p = p.parentElement;
|
|
4349
4349
|
}
|
|
4350
|
-
return !!
|
|
4350
|
+
return !!m;
|
|
4351
4351
|
}
|
|
4352
4352
|
},
|
|
4353
4353
|
/**
|
|
@@ -4394,10 +4394,10 @@ function sc() {
|
|
|
4394
4394
|
* });
|
|
4395
4395
|
*/
|
|
4396
4396
|
extend: function(p, k) {
|
|
4397
|
-
var
|
|
4398
|
-
for (var
|
|
4399
|
-
b
|
|
4400
|
-
return
|
|
4397
|
+
var m = i.util.clone(i.languages[p]);
|
|
4398
|
+
for (var b in k)
|
|
4399
|
+
m[b] = k[b];
|
|
4400
|
+
return m;
|
|
4401
4401
|
},
|
|
4402
4402
|
/**
|
|
4403
4403
|
* Inserts tokens _before_ another token in a language definition or any other grammar.
|
|
@@ -4474,31 +4474,31 @@ function sc() {
|
|
|
4474
4474
|
* @returns {Grammar} The new grammar object.
|
|
4475
4475
|
* @public
|
|
4476
4476
|
*/
|
|
4477
|
-
insertBefore: function(p, k,
|
|
4478
|
-
|
|
4477
|
+
insertBefore: function(p, k, m, b) {
|
|
4478
|
+
b = b || /** @type {any} */
|
|
4479
4479
|
i.languages;
|
|
4480
|
-
var h =
|
|
4480
|
+
var h = b[p], C = {};
|
|
4481
4481
|
for (var P in h)
|
|
4482
4482
|
if (h.hasOwnProperty(P)) {
|
|
4483
4483
|
if (P == k)
|
|
4484
|
-
for (var D in
|
|
4485
|
-
|
|
4486
|
-
|
|
4484
|
+
for (var D in m)
|
|
4485
|
+
m.hasOwnProperty(D) && (C[D] = m[D]);
|
|
4486
|
+
m.hasOwnProperty(P) || (C[P] = h[P]);
|
|
4487
4487
|
}
|
|
4488
|
-
var I =
|
|
4489
|
-
return
|
|
4488
|
+
var I = b[p];
|
|
4489
|
+
return b[p] = C, i.languages.DFS(i.languages, function(L, G) {
|
|
4490
4490
|
G === I && L != p && (this[L] = C);
|
|
4491
4491
|
}), C;
|
|
4492
4492
|
},
|
|
4493
4493
|
// Traverse a language definition with Depth First Search
|
|
4494
|
-
DFS: function p(k,
|
|
4494
|
+
DFS: function p(k, m, b, h) {
|
|
4495
4495
|
h = h || {};
|
|
4496
4496
|
var C = i.util.objId;
|
|
4497
4497
|
for (var P in k)
|
|
4498
4498
|
if (k.hasOwnProperty(P)) {
|
|
4499
|
-
|
|
4499
|
+
m.call(k, P, k[P], b || P);
|
|
4500
4500
|
var D = k[P], I = i.util.type(D);
|
|
4501
|
-
I === "Object" && !h[C(D)] ? (h[C(D)] = !0, p(D,
|
|
4501
|
+
I === "Object" && !h[C(D)] ? (h[C(D)] = !0, p(D, m, null, h)) : I === "Array" && !h[C(D)] && (h[C(D)] = !0, p(D, m, P, h));
|
|
4502
4502
|
}
|
|
4503
4503
|
}
|
|
4504
4504
|
},
|
|
@@ -4533,15 +4533,15 @@ function sc() {
|
|
|
4533
4533
|
* @memberof Prism
|
|
4534
4534
|
* @public
|
|
4535
4535
|
*/
|
|
4536
|
-
highlightAllUnder: function(p, k,
|
|
4537
|
-
var
|
|
4538
|
-
callback:
|
|
4536
|
+
highlightAllUnder: function(p, k, m) {
|
|
4537
|
+
var b = {
|
|
4538
|
+
callback: m,
|
|
4539
4539
|
container: p,
|
|
4540
4540
|
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
|
|
4541
4541
|
};
|
|
4542
|
-
i.hooks.run("before-highlightall",
|
|
4543
|
-
for (var h = 0, C; C =
|
|
4544
|
-
i.highlightElement(C, k === !0,
|
|
4542
|
+
i.hooks.run("before-highlightall", b), b.elements = Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)), i.hooks.run("before-all-elements-highlight", b);
|
|
4543
|
+
for (var h = 0, C; C = b.elements[h++]; )
|
|
4544
|
+
i.highlightElement(C, k === !0, b.callback);
|
|
4545
4545
|
},
|
|
4546
4546
|
/**
|
|
4547
4547
|
* Highlights the code inside a single element.
|
|
@@ -4571,22 +4571,22 @@ function sc() {
|
|
|
4571
4571
|
* @memberof Prism
|
|
4572
4572
|
* @public
|
|
4573
4573
|
*/
|
|
4574
|
-
highlightElement: function(p, k,
|
|
4575
|
-
var
|
|
4576
|
-
i.util.setLanguage(p,
|
|
4574
|
+
highlightElement: function(p, k, m) {
|
|
4575
|
+
var b = i.util.getLanguage(p), h = i.languages[b];
|
|
4576
|
+
i.util.setLanguage(p, b);
|
|
4577
4577
|
var C = p.parentElement;
|
|
4578
|
-
C && C.nodeName.toLowerCase() === "pre" && i.util.setLanguage(C,
|
|
4578
|
+
C && C.nodeName.toLowerCase() === "pre" && i.util.setLanguage(C, b);
|
|
4579
4579
|
var P = p.textContent, D = {
|
|
4580
4580
|
element: p,
|
|
4581
|
-
language:
|
|
4581
|
+
language: b,
|
|
4582
4582
|
grammar: h,
|
|
4583
4583
|
code: P
|
|
4584
4584
|
};
|
|
4585
4585
|
function I(G) {
|
|
4586
|
-
D.highlightedCode = G, i.hooks.run("before-insert", D), D.element.innerHTML = D.highlightedCode, i.hooks.run("after-highlight", D), i.hooks.run("complete", D),
|
|
4586
|
+
D.highlightedCode = G, i.hooks.run("before-insert", D), D.element.innerHTML = D.highlightedCode, i.hooks.run("after-highlight", D), i.hooks.run("complete", D), m && m.call(D.element);
|
|
4587
4587
|
}
|
|
4588
4588
|
if (i.hooks.run("before-sanity-check", D), C = D.element.parentElement, C && C.nodeName.toLowerCase() === "pre" && !C.hasAttribute("tabindex") && C.setAttribute("tabindex", "0"), !D.code) {
|
|
4589
|
-
i.hooks.run("complete", D),
|
|
4589
|
+
i.hooks.run("complete", D), m && m.call(D.element);
|
|
4590
4590
|
return;
|
|
4591
4591
|
}
|
|
4592
4592
|
if (i.hooks.run("before-highlight", D), !D.grammar) {
|
|
@@ -4625,15 +4625,15 @@ function sc() {
|
|
|
4625
4625
|
* @example
|
|
4626
4626
|
* Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
|
|
4627
4627
|
*/
|
|
4628
|
-
highlight: function(p, k,
|
|
4629
|
-
var
|
|
4628
|
+
highlight: function(p, k, m) {
|
|
4629
|
+
var b = {
|
|
4630
4630
|
code: p,
|
|
4631
4631
|
grammar: k,
|
|
4632
|
-
language:
|
|
4632
|
+
language: m
|
|
4633
4633
|
};
|
|
4634
|
-
if (i.hooks.run("before-tokenize",
|
|
4635
|
-
throw new Error('The language "' +
|
|
4636
|
-
return
|
|
4634
|
+
if (i.hooks.run("before-tokenize", b), !b.grammar)
|
|
4635
|
+
throw new Error('The language "' + b.language + '" has no grammar.');
|
|
4636
|
+
return b.tokens = i.tokenize(b.code, b.grammar), i.hooks.run("after-tokenize", b), l.stringify(i.util.encode(b.tokens), b.language);
|
|
4637
4637
|
},
|
|
4638
4638
|
/**
|
|
4639
4639
|
* This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
|
|
@@ -4660,14 +4660,14 @@ function sc() {
|
|
|
4660
4660
|
* });
|
|
4661
4661
|
*/
|
|
4662
4662
|
tokenize: function(p, k) {
|
|
4663
|
-
var
|
|
4664
|
-
if (
|
|
4665
|
-
for (var
|
|
4666
|
-
k[
|
|
4663
|
+
var m = k.rest;
|
|
4664
|
+
if (m) {
|
|
4665
|
+
for (var b in m)
|
|
4666
|
+
k[b] = m[b];
|
|
4667
4667
|
delete k.rest;
|
|
4668
4668
|
}
|
|
4669
4669
|
var h = new f();
|
|
4670
|
-
return y(h, h.head, p),
|
|
4670
|
+
return y(h, h.head, p), c(p, h, k, h.head, 0), d(h);
|
|
4671
4671
|
},
|
|
4672
4672
|
/**
|
|
4673
4673
|
* @namespace
|
|
@@ -4689,8 +4689,8 @@ function sc() {
|
|
|
4689
4689
|
* @public
|
|
4690
4690
|
*/
|
|
4691
4691
|
add: function(p, k) {
|
|
4692
|
-
var
|
|
4693
|
-
|
|
4692
|
+
var m = i.hooks.all;
|
|
4693
|
+
m[p] = m[p] || [], m[p].push(k);
|
|
4694
4694
|
},
|
|
4695
4695
|
/**
|
|
4696
4696
|
* Runs a hook invoking all registered callbacks with the given environment variables.
|
|
@@ -4702,34 +4702,34 @@ function sc() {
|
|
|
4702
4702
|
* @public
|
|
4703
4703
|
*/
|
|
4704
4704
|
run: function(p, k) {
|
|
4705
|
-
var
|
|
4706
|
-
if (!(!
|
|
4707
|
-
for (var
|
|
4705
|
+
var m = i.hooks.all[p];
|
|
4706
|
+
if (!(!m || !m.length))
|
|
4707
|
+
for (var b = 0, h; h = m[b++]; )
|
|
4708
4708
|
h(k);
|
|
4709
4709
|
}
|
|
4710
4710
|
},
|
|
4711
4711
|
Token: l
|
|
4712
4712
|
};
|
|
4713
4713
|
n.Prism = i;
|
|
4714
|
-
function l(p, k,
|
|
4715
|
-
this.type = p, this.content = k, this.alias =
|
|
4714
|
+
function l(p, k, m, b) {
|
|
4715
|
+
this.type = p, this.content = k, this.alias = m, this.length = (b || "").length | 0;
|
|
4716
4716
|
}
|
|
4717
|
-
l.stringify = function p(k,
|
|
4717
|
+
l.stringify = function p(k, m) {
|
|
4718
4718
|
if (typeof k == "string")
|
|
4719
4719
|
return k;
|
|
4720
4720
|
if (Array.isArray(k)) {
|
|
4721
|
-
var
|
|
4721
|
+
var b = "";
|
|
4722
4722
|
return k.forEach(function(I) {
|
|
4723
|
-
|
|
4724
|
-
}),
|
|
4723
|
+
b += p(I, m);
|
|
4724
|
+
}), b;
|
|
4725
4725
|
}
|
|
4726
4726
|
var h = {
|
|
4727
4727
|
type: k.type,
|
|
4728
|
-
content: p(k.content,
|
|
4728
|
+
content: p(k.content, m),
|
|
4729
4729
|
tag: "span",
|
|
4730
4730
|
classes: ["token", k.type],
|
|
4731
4731
|
attributes: {},
|
|
4732
|
-
language:
|
|
4732
|
+
language: m
|
|
4733
4733
|
}, C = k.alias;
|
|
4734
4734
|
C && (Array.isArray(C) ? Array.prototype.push.apply(h.classes, C) : h.classes.push(C)), i.hooks.run("wrap", h);
|
|
4735
4735
|
var P = "";
|
|
@@ -4737,19 +4737,19 @@ function sc() {
|
|
|
4737
4737
|
P += " " + D + '="' + (h.attributes[D] || "").replace(/"/g, """) + '"';
|
|
4738
4738
|
return "<" + h.tag + ' class="' + h.classes.join(" ") + '"' + P + ">" + h.content + "</" + h.tag + ">";
|
|
4739
4739
|
};
|
|
4740
|
-
function
|
|
4740
|
+
function s(p, k, m, b) {
|
|
4741
4741
|
p.lastIndex = k;
|
|
4742
|
-
var h = p.exec(
|
|
4743
|
-
if (h &&
|
|
4742
|
+
var h = p.exec(m);
|
|
4743
|
+
if (h && b && h[1]) {
|
|
4744
4744
|
var C = h[1].length;
|
|
4745
4745
|
h.index += C, h[0] = h[0].slice(C);
|
|
4746
4746
|
}
|
|
4747
4747
|
return h;
|
|
4748
4748
|
}
|
|
4749
|
-
function
|
|
4750
|
-
for (var P in
|
|
4751
|
-
if (!(!
|
|
4752
|
-
var D =
|
|
4749
|
+
function c(p, k, m, b, h, C) {
|
|
4750
|
+
for (var P in m)
|
|
4751
|
+
if (!(!m.hasOwnProperty(P) || !m[P])) {
|
|
4752
|
+
var D = m[P];
|
|
4753
4753
|
D = Array.isArray(D) ? D : [D];
|
|
4754
4754
|
for (var I = 0; I < D.length; ++I) {
|
|
4755
4755
|
if (C && C.cause == P + "," + I)
|
|
@@ -4759,36 +4759,36 @@ function sc() {
|
|
|
4759
4759
|
var de = L.pattern.toString().match(/[imsuy]*$/)[0];
|
|
4760
4760
|
L.pattern = RegExp(L.pattern.source, de + "g");
|
|
4761
4761
|
}
|
|
4762
|
-
for (var K = L.pattern || L, W =
|
|
4762
|
+
for (var K = L.pattern || L, W = b.next, ce = h; W !== k.tail && !(C && ce >= C.reach); ce += W.value.length, W = W.next) {
|
|
4763
4763
|
var pe = W.value;
|
|
4764
4764
|
if (k.length > p.length)
|
|
4765
4765
|
return;
|
|
4766
4766
|
if (!(pe instanceof l)) {
|
|
4767
4767
|
var w = 1, z;
|
|
4768
4768
|
if (T) {
|
|
4769
|
-
if (z =
|
|
4769
|
+
if (z = s(K, ce, p, X), !z || z.index >= p.length)
|
|
4770
4770
|
break;
|
|
4771
|
-
var ue = z.index, F = z.index + z[0].length, H =
|
|
4771
|
+
var ue = z.index, F = z.index + z[0].length, H = ce;
|
|
4772
4772
|
for (H += W.value.length; ue >= H; )
|
|
4773
4773
|
W = W.next, H += W.value.length;
|
|
4774
|
-
if (H -= W.value.length,
|
|
4774
|
+
if (H -= W.value.length, ce = H, W.value instanceof l)
|
|
4775
4775
|
continue;
|
|
4776
4776
|
for (var U = W; U !== k.tail && (H < F || typeof U.value == "string"); U = U.next)
|
|
4777
4777
|
w++, H += U.value.length;
|
|
4778
|
-
w--, pe = p.slice(
|
|
4779
|
-
} else if (z =
|
|
4778
|
+
w--, pe = p.slice(ce, H), z.index -= ce;
|
|
4779
|
+
} else if (z = s(K, 0, pe, X), !z)
|
|
4780
4780
|
continue;
|
|
4781
|
-
var ue = z.index, oe = z[0], ye = pe.slice(0, ue), Me = pe.slice(ue + oe.length), Le =
|
|
4781
|
+
var ue = z.index, oe = z[0], ye = pe.slice(0, ue), Me = pe.slice(ue + oe.length), Le = ce + pe.length;
|
|
4782
4782
|
C && Le > C.reach && (C.reach = Le);
|
|
4783
4783
|
var iu = W.prev;
|
|
4784
|
-
ye && (iu = y(k, iu, ye),
|
|
4784
|
+
ye && (iu = y(k, iu, ye), ce += ye.length), x(k, iu, w);
|
|
4785
4785
|
var Xe = new l(P, G ? i.tokenize(oe, G) : oe, V, oe);
|
|
4786
4786
|
if (W = y(k, iu, Xe), Me && y(k, W, Me), w > 1) {
|
|
4787
4787
|
var Qe = {
|
|
4788
4788
|
cause: P + "," + I,
|
|
4789
4789
|
reach: Le
|
|
4790
4790
|
};
|
|
4791
|
-
|
|
4791
|
+
c(p, k, m, W.prev, ce, Qe), C && Qe.reach > C.reach && (C.reach = Qe.reach);
|
|
4792
4792
|
}
|
|
4793
4793
|
}
|
|
4794
4794
|
}
|
|
@@ -4799,24 +4799,24 @@ function sc() {
|
|
|
4799
4799
|
var p = { value: null, prev: null, next: null }, k = { value: null, prev: p, next: null };
|
|
4800
4800
|
p.next = k, this.head = p, this.tail = k, this.length = 0;
|
|
4801
4801
|
}
|
|
4802
|
-
function y(p, k,
|
|
4803
|
-
var
|
|
4804
|
-
return k.next = h,
|
|
4802
|
+
function y(p, k, m) {
|
|
4803
|
+
var b = k.next, h = { value: m, prev: k, next: b };
|
|
4804
|
+
return k.next = h, b.prev = h, p.length++, h;
|
|
4805
4805
|
}
|
|
4806
|
-
function x(p, k,
|
|
4807
|
-
for (var
|
|
4808
|
-
|
|
4809
|
-
k.next =
|
|
4806
|
+
function x(p, k, m) {
|
|
4807
|
+
for (var b = k.next, h = 0; h < m && b !== p.tail; h++)
|
|
4808
|
+
b = b.next;
|
|
4809
|
+
k.next = b, b.prev = k, p.length -= h;
|
|
4810
4810
|
}
|
|
4811
4811
|
function d(p) {
|
|
4812
|
-
for (var k = [],
|
|
4813
|
-
k.push(
|
|
4812
|
+
for (var k = [], m = p.head.next; m !== p.tail; )
|
|
4813
|
+
k.push(m.value), m = m.next;
|
|
4814
4814
|
return k;
|
|
4815
4815
|
}
|
|
4816
4816
|
if (!n.document)
|
|
4817
4817
|
return n.addEventListener && (i.disableWorkerMessageHandler || n.addEventListener("message", function(p) {
|
|
4818
|
-
var k = JSON.parse(p.data),
|
|
4819
|
-
n.postMessage(i.highlight(
|
|
4818
|
+
var k = JSON.parse(p.data), m = k.language, b = k.code, h = k.immediateClose;
|
|
4819
|
+
n.postMessage(i.highlight(b, i.languages[m], m)), h && n.close();
|
|
4820
4820
|
}, !1)), i;
|
|
4821
4821
|
var E = i.util.currentScript();
|
|
4822
4822
|
E && (i.filename = E.src, E.hasAttribute("data-manual") && (i.manual = !0));
|
|
@@ -5219,7 +5219,7 @@ function sc() {
|
|
|
5219
5219
|
bat: "batch",
|
|
5220
5220
|
h: "c",
|
|
5221
5221
|
tex: "latex"
|
|
5222
|
-
}, i = "data-src-status", l = "loading",
|
|
5222
|
+
}, i = "data-src-status", l = "loading", s = "loaded", c = "failed", f = "pre[data-src]:not([" + i + '="' + s + '"]):not([' + i + '="' + l + '"])';
|
|
5223
5223
|
function y(E, A, v) {
|
|
5224
5224
|
var p = new XMLHttpRequest();
|
|
5225
5225
|
p.open("GET", E, !0), p.onreadystatechange = function() {
|
|
@@ -5246,15 +5246,15 @@ function sc() {
|
|
|
5246
5246
|
v.textContent = n;
|
|
5247
5247
|
var p = A.getAttribute("data-src"), k = E.language;
|
|
5248
5248
|
if (k === "none") {
|
|
5249
|
-
var
|
|
5250
|
-
k = a[
|
|
5249
|
+
var m = (/\.(\w+)$/.exec(p) || [, "none"])[1];
|
|
5250
|
+
k = a[m] || m;
|
|
5251
5251
|
}
|
|
5252
5252
|
t.util.setLanguage(v, k), t.util.setLanguage(A, k);
|
|
5253
|
-
var
|
|
5254
|
-
|
|
5253
|
+
var b = t.plugins.autoloader;
|
|
5254
|
+
b && b.loadLanguages(k), y(
|
|
5255
5255
|
p,
|
|
5256
5256
|
function(h) {
|
|
5257
|
-
A.setAttribute(i,
|
|
5257
|
+
A.setAttribute(i, s);
|
|
5258
5258
|
var C = x(A.getAttribute("data-range"));
|
|
5259
5259
|
if (C) {
|
|
5260
5260
|
var P = h.split(/\r\n?|\n/g), D = C[0], I = C[1] == null ? P.length : C[1];
|
|
@@ -5264,7 +5264,7 @@ function sc() {
|
|
|
5264
5264
|
v.textContent = h, t.highlightElement(v);
|
|
5265
5265
|
},
|
|
5266
5266
|
function(h) {
|
|
5267
|
-
A.setAttribute(i,
|
|
5267
|
+
A.setAttribute(i, c), v.textContent = h;
|
|
5268
5268
|
}
|
|
5269
5269
|
);
|
|
5270
5270
|
}
|
|
@@ -5288,10 +5288,10 @@ function sc() {
|
|
|
5288
5288
|
}();
|
|
5289
5289
|
}(Gt)), Gt.exports;
|
|
5290
5290
|
}
|
|
5291
|
-
var
|
|
5292
|
-
const it = /* @__PURE__ */
|
|
5291
|
+
var fs = cs();
|
|
5292
|
+
const it = /* @__PURE__ */ ss(fs);
|
|
5293
5293
|
typeof document < "u" && it.highlightAll();
|
|
5294
|
-
function
|
|
5294
|
+
function ds(e, u) {
|
|
5295
5295
|
try {
|
|
5296
5296
|
const t = it.languages[u];
|
|
5297
5297
|
if (t) {
|
|
@@ -5303,12 +5303,12 @@ function dc(e, u) {
|
|
|
5303
5303
|
return e;
|
|
5304
5304
|
}
|
|
5305
5305
|
}
|
|
5306
|
-
const
|
|
5306
|
+
const ps = `
|
|
5307
5307
|
code[class*=language-],pre[class*=language-]{background:#282c34;color:#abb2bf;text-shadow:0 1px rgba(0,0,0,.3);font-family:"Fira Code","Fira Mono",Menlo,Consolas,"DejaVu Sans Mono",monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:1.5;-moz-tab-size:2;-o-tab-size:2;tab-size:2;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection,pre[class*=language-] ::-moz-selection{background:#3e4451;color:inherit;text-shadow:none}code[class*=language-]::selection,code[class*=language-] ::selection,pre[class*=language-] ::selection{background:#3e4451;color:inherit;text-shadow:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}:not(pre)>code[class*=language-]{padding:.2em .3em;border-radius:.3em;white-space:normal}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}.token.comment,.token.prolog,.token.cdata{color:#5c6370}.token.doctype,.token.punctuation,.token.entity{color:#abb2bf}.token.attr-name,.token.class-name,.token.boolean,.token.constant,.token.number,.token.atrule{color:#d19a66}.token.keyword{color:#c678dd}.token.property,.token.tag,.token.symbol,.token.deleted,.token.important{color:#e06c75}.token.selector,.token.string,.token.char,.token.builtin,.token.inserted,.token.regex,.token.attr-value,.token.attr-value>.token.punctuation{color:#98c379}.token.variable,.token.operator,.token.function{color:#61afef}.token.url{color:#56b6c2}.token.attr-value>.token.punctuation.attr-equals,.token.special-attr>.token.attr-value>.token.value.css{color:#abb2bf}.language-css .token.selector{color:#e06c75}.language-css .token.property{color:#abb2bf}.language-css .token.function,.language-css .token.url>.token.function{color:#56b6c2}.language-css .token.url>.token.string.url{color:#98c379}.language-css .token.important,.language-css .token.atrule .token.rule{color:#c678dd}.language-javascript .token.operator{color:#c678dd}.language-javascript .token.template-string>.token.interpolation>.token.interpolation-punctuation.punctuation{color:#be5046}.language-json .token.operator{color:#abb2bf}.language-json .token.null.keyword{color:#d19a66}.language-markdown .token.url,.language-markdown .token.url>.token.operator,.language-markdown .token.url-reference.url>.token.string{color:#abb2bf}.language-markdown .token.url>.token.content{color:#61afef}.language-markdown .token.url>.token.url,.language-markdown .token.url-reference.url{color:#56b6c2}.language-markdown .token.blockquote.punctuation,.language-markdown .token.hr.punctuation{color:#5c6370;font-style:italic}.language-markdown .token.code-snippet{color:#98c379}.language-markdown .token.bold .token.content{color:#d19a66}.language-markdown .token.italic .token.content{color:#c678dd}.language-markdown .token.strike .token.content,.language-markdown .token.strike .token.punctuation,.language-markdown .token.list.punctuation,.language-markdown .token.title.important>.token.punctuation{color:#e06c75}.token.bold{font-weight:700}.token.comment,.token.italic{font-style:italic}.token.entity{cursor:help}.token.namespace{opacity:.8}.token.token.tab:not(:empty):before,.token.token.cr:before,.token.token.lf:before,.token.token.space:before{color:rgba(171,178,191,.15);text-shadow:none}div.code-toolbar>.toolbar.toolbar>.toolbar-item{margin-right:.4em}div.code-toolbar>.toolbar.toolbar>.toolbar-item>button,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span{background:#3a3f4b;color:#828997;padding:.1em .4em;border-radius:.3em}div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:focus,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:focus,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:focus{background:#3e4451;color:#abb2bf}.line-highlight.line-highlight{background:rgba(153,187,255,.04)}.line-highlight.line-highlight:before,.line-highlight.line-highlight[data-end]:after{background:#3a3f4b;color:#abb2bf;padding:.1em .6em;border-radius:.3em;box-shadow:0 2px 0 0 rgba(0,0,0,.2)}pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows>span:hover:before{background-color:rgba(153,187,255,.04)}.line-numbers.line-numbers .line-numbers-rows,.command-line .command-line-prompt{border-right-color:rgba(171,178,191,.15)}.line-numbers .line-numbers-rows>span:before,.command-line .command-line-prompt>span:before{color:#636d83}.rainbow-braces .token.token.punctuation.brace-level-1,.rainbow-braces .token.token.punctuation.brace-level-5,.rainbow-braces .token.token.punctuation.brace-level-9{color:#e06c75}.rainbow-braces .token.token.punctuation.brace-level-2,.rainbow-braces .token.token.punctuation.brace-level-6,.rainbow-braces .token.token.punctuation.brace-level-10{color:#98c379}.rainbow-braces .token.token.punctuation.brace-level-3,.rainbow-braces .token.token.punctuation.brace-level-7,.rainbow-braces .token.token.punctuation.brace-level-11{color:#61afef}.rainbow-braces .token.token.punctuation.brace-level-4,.rainbow-braces .token.token.punctuation.brace-level-8,.rainbow-braces .token.token.punctuation.brace-level-12{color:#c678dd}pre.diff-highlight>code .token.token.deleted:not(.prefix),pre>code.diff-highlight .token.token.deleted:not(.prefix){background-color:rgba(255,82,102,.15)}pre.diff-highlight>code .token.token.deleted:not(.prefix)::-moz-selection,pre.diff-highlight>code .token.token.deleted:not(.prefix) ::-moz-selection,pre>code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection,pre>code.diff-highlight .token.token.deleted:not(.prefix) ::-moz-selection{background-color:rgba(251,86,105,.25)}pre.diff-highlight>code .token.token.deleted:not(.prefix)::selection,pre.diff-highlight>code .token.token.deleted:not(.prefix) ::selection,pre>code.diff-highlight .token.token.deleted:not(.prefix)::selection,pre>code.diff-highlight .token.token.deleted:not(.prefix) ::selection{background-color:rgba(251,86,105,.25)}pre.diff-highlight>code .token.token.inserted:not(.prefix),pre>code.diff-highlight .token.token.inserted:not(.prefix){background-color:rgba(26,255,91,.15)}pre.diff-highlight>code .token.token.inserted:not(.prefix)::-moz-selection,pre.diff-highlight>code .token.token.inserted:not(.prefix) ::-moz-selection,pre>code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection,pre>code.diff-highlight .token.token.inserted:not(.prefix) ::-moz-selection{background-color:rgba(56,224,98,.25)}pre.diff-highlight>code .token.token.inserted:not(.prefix)::selection,pre.diff-highlight>code .token.token.inserted:not(.prefix) ::selection,pre>code.diff-highlight .token.token.inserted:not(.prefix)::selection,pre>code.diff-highlight .token.token.inserted:not(.prefix) ::selection{background-color:rgba(56,224,98,.25)}.prism-previewer.prism-previewer:before,.prism-previewer-gradient.prism-previewer-gradient div{border-color:#262931}.prism-previewer-color.prism-previewer-color:before,.prism-previewer-gradient.prism-previewer-gradient div,.prism-previewer-easing.prism-previewer-easing:before{border-radius:.3em}.prism-previewer.prism-previewer:after{border-top-color:#262931}.prism-previewer-flipped.prism-previewer-flipped.after{border-bottom-color:#262931}.prism-previewer-angle.prism-previewer-angle:before,.prism-previewer-time.prism-previewer-time:before,.prism-previewer-easing.prism-previewer-easing{background:#31363f}.prism-previewer-angle.prism-previewer-angle circle,.prism-previewer-time.prism-previewer-time circle{stroke:#abb2bf;stroke-opacity:1}.prism-previewer-easing.prism-previewer-easing circle,.prism-previewer-easing.prism-previewer-easing path,.prism-previewer-easing.prism-previewer-easing line{stroke:#abb2bf}.prism-previewer-easing.prism-previewer-easing circle{fill:transparent}
|
|
5308
|
-
`,
|
|
5308
|
+
`, hs = `
|
|
5309
5309
|
code[class*=language-],pre[class*=language-]{background:#fafafa;color:#383a42;font-family:"Fira Code","Fira Mono",Menlo,Consolas,"DejaVu Sans Mono",monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:1.5;-moz-tab-size:2;-o-tab-size:2;tab-size:2;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection,pre[class*=language-] ::-moz-selection{background:#e5e5e6;color:inherit}code[class*=language-]::selection,code[class*=language-] ::selection,pre[class*=language-] ::selection{background:#e5e5e6;color:inherit}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}:not(pre)>code[class*=language-]{padding:.2em .3em;border-radius:.3em;white-space:normal}.token.comment,.token.prolog,.token.cdata{color:#a0a1a7}.token.doctype,.token.punctuation,.token.entity{color:#383a42}.token.attr-name,.token.class-name,.token.boolean,.token.constant,.token.number,.token.atrule{color:#b76b01}.token.keyword{color:#a626a4}.token.property,.token.tag,.token.symbol,.token.deleted,.token.important{color:#e45649}.token.selector,.token.string,.token.char,.token.builtin,.token.inserted,.token.regex,.token.attr-value,.token.attr-value>.token.punctuation{color:#50a14f}.token.variable,.token.operator,.token.function{color:#4078f2}.token.url{color:#0184bc}.token.attr-value>.token.punctuation.attr-equals,.token.special-attr>.token.attr-value>.token.value.css{color:#383a42}.language-css .token.selector{color:#e45649}.language-css .token.property{color:#383a42}.language-css .token.function,.language-css .token.url>.token.function{color:#0184bc}.language-css .token.url>.token.string.url{color:#50a14f}.language-css .token.important,.language-css .token.atrule .token.rule{color:#a626a4}.language-javascript .token.operator{color:#a626a4}.language-javascript .token.template-string>.token.interpolation>.token.interpolation-punctuation.punctuation{color:#ca1243}.language-json .token.operator{color:#383a42}.language-json .token.null.keyword{color:#b76b01}.language-markdown .token.url,.language-markdown .token.url>.token.operator,.language-markdown .token.url-reference.url>.token.string{color:#383a42}.language-markdown .token.url>.token.content{color:#4078f2}.language-markdown .token.url>.token.url,.language-markdown .token.url-reference.url{color:#0184bc}.language-markdown .token.blockquote.punctuation,.language-markdown .token.hr.punctuation{color:#a0a1a7;font-style:italic}.language-markdown .token.code-snippet{color:#50a14f}.language-markdown .token.bold .token.content{color:#b76b01}.language-markdown .token.italic .token.content{color:#a626a4}.language-markdown .token.strike .token.content,.language-markdown .token.strike .token.punctuation,.language-markdown .token.list.punctuation,.language-markdown .token.title.important>.token.punctuation{color:#e45649}.token.bold{font-weight:700}.token.comment,.token.italic{font-style:italic}.token.entity{cursor:help}.token.namespace{opacity:.8}.token.token.tab:not(:empty):before,.token.token.cr:before,.token.token.lf:before,.token.token.space:before{color:rgba(56,58,66,.2)}div.code-toolbar>.toolbar.toolbar>.toolbar-item{margin-right:.4em}div.code-toolbar>.toolbar.toolbar>.toolbar-item>button,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span{background:#e5e5e6;color:#696c77;padding:.1em .4em;border-radius:.3em}div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:focus,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:focus,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:focus{background:#c6c7c7;color:#383a42}.line-highlight.line-highlight{background:rgba(56,58,66,.05)}.line-highlight.line-highlight:before,.line-highlight.line-highlight[data-end]:after{background:#e5e5e6;color:#383a42;padding:.1em .6em;border-radius:.3em;box-shadow:0 2px 0 0 rgba(0,0,0,.2)}pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows>span:hover:before{background-color:rgba(56,58,66,.05)}.line-numbers.line-numbers .line-numbers-rows,.command-line .command-line-prompt{border-right-color:rgba(56,58,66,.2)}.line-numbers .line-numbers-rows>span:before,.command-line .command-line-prompt>span:before{color:#9d9d9f}.rainbow-braces .token.token.punctuation.brace-level-1,.rainbow-braces .token.token.punctuation.brace-level-5,.rainbow-braces .token.token.punctuation.brace-level-9{color:#e45649}.rainbow-braces .token.token.punctuation.brace-level-2,.rainbow-braces .token.token.punctuation.brace-level-6,.rainbow-braces .token.token.punctuation.brace-level-10{color:#50a14f}.rainbow-braces .token.token.punctuation.brace-level-3,.rainbow-braces .token.token.punctuation.brace-level-7,.rainbow-braces .token.token.punctuation.brace-level-11{color:#4078f2}.rainbow-braces .token.token.punctuation.brace-level-4,.rainbow-braces .token.token.punctuation.brace-level-8,.rainbow-braces .token.token.punctuation.brace-level-12{color:#a626a4}pre.diff-highlight>code .token.token.deleted:not(.prefix),pre>code.diff-highlight .token.token.deleted:not(.prefix){background-color:rgba(255,82,102,.15)}pre.diff-highlight>code .token.token.deleted:not(.prefix)::-moz-selection,pre.diff-highlight>code .token.token.deleted:not(.prefix) ::-moz-selection,pre>code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection,pre>code.diff-highlight .token.token.deleted:not(.prefix) ::-moz-selection{background-color:rgba(251,86,105,.25)}pre.diff-highlight>code .token.token.deleted:not(.prefix)::selection,pre.diff-highlight>code .token.token.deleted:not(.prefix) ::selection,pre>code.diff-highlight .token.token.deleted:not(.prefix)::selection,pre>code.diff-highlight .token.token.deleted:not(.prefix) ::selection{background-color:rgba(251,86,105,.25)}pre.diff-highlight>code .token.token.inserted:not(.prefix),pre>code.diff-highlight .token.token.inserted:not(.prefix){background-color:rgba(26,255,91,.15)}pre.diff-highlight>code .token.token.inserted:not(.prefix)::-moz-selection,pre.diff-highlight>code .token.token.inserted:not(.prefix) ::-moz-selection,pre>code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection,pre>code.diff-highlight .token.token.inserted:not(.prefix) ::-moz-selection{background-color:rgba(56,224,98,.25)}pre.diff-highlight>code .token.token.inserted:not(.prefix)::selection,pre.diff-highlight>code .token.token.inserted:not(.prefix) ::selection,pre>code.diff-highlight .token.token.inserted:not(.prefix)::selection,pre>code.diff-highlight .token.token.inserted:not(.prefix) ::selection{background-color:rgba(56,224,98,.25)}.prism-previewer.prism-previewer:before,.prism-previewer-gradient.prism-previewer-gradient div{border-color:hsl(0,0,95%)}.prism-previewer-color.prism-previewer-color:before,.prism-previewer-gradient.prism-previewer-gradient div,.prism-previewer-easing.prism-previewer-easing:before{border-radius:.3em}.prism-previewer.prism-previewer:after{border-top-color:hsl(0,0,95%)}.prism-previewer-flipped.prism-previewer-flipped.after{border-bottom-color:hsl(0,0,95%)}.prism-previewer-angle.prism-previewer-angle:before,.prism-previewer-time.prism-previewer-time:before,.prism-previewer-easing.prism-previewer-easing{background:#fff}.prism-previewer-angle.prism-previewer-angle circle,.prism-previewer-time.prism-previewer-time circle{stroke:#383a42;stroke-opacity:1}.prism-previewer-easing.prism-previewer-easing circle,.prism-previewer-easing.prism-previewer-easing path,.prism-previewer-easing.prism-previewer-easing line{stroke:#383a42}.prism-previewer-easing.prism-previewer-easing circle{fill:transparent}
|
|
5310
5310
|
`, { c: Vt, cB: _r, cE: Wt } = { ...kt, ...xt }, ut = `${Iu}-type-writer`;
|
|
5311
|
-
function
|
|
5311
|
+
function bs() {
|
|
5312
5312
|
return Vt([
|
|
5313
5313
|
_r("type-writer", {
|
|
5314
5314
|
overflowX: "auto"
|
|
@@ -5318,7 +5318,7 @@ function bc() {
|
|
|
5318
5318
|
marginLeft: "2px",
|
|
5319
5319
|
display: "inline-block"
|
|
5320
5320
|
}),
|
|
5321
|
-
Wt("markdown", `${
|
|
5321
|
+
Wt("markdown", `${hs}`, [
|
|
5322
5322
|
Vt("pre", {
|
|
5323
5323
|
backgroundColor: "var(--tag-color)",
|
|
5324
5324
|
borderRadius: "var(--border-radius)"
|
|
@@ -5327,12 +5327,12 @@ function bc() {
|
|
|
5327
5327
|
]),
|
|
5328
5328
|
Vt(".dark", [
|
|
5329
5329
|
_r("type-writer", [
|
|
5330
|
-
Wt("markdown", `${
|
|
5330
|
+
Wt("markdown", `${ps}`)
|
|
5331
5331
|
])
|
|
5332
5332
|
])
|
|
5333
5333
|
]);
|
|
5334
5334
|
}
|
|
5335
|
-
const
|
|
5335
|
+
const ms = ["innerHTML"], gs = /* @__PURE__ */ ke({
|
|
5336
5336
|
__name: "TypeWriter",
|
|
5337
5337
|
props: {
|
|
5338
5338
|
value: {},
|
|
@@ -5345,52 +5345,52 @@ const mc = ["innerHTML"], gc = /* @__PURE__ */ ke({
|
|
|
5345
5345
|
emits: ["start", "update", "stop"],
|
|
5346
5346
|
setup(e, { emit: u }) {
|
|
5347
5347
|
const t = u;
|
|
5348
|
-
gt(ut,
|
|
5349
|
-
const { typedValue: n, isTyping: r, onStat: o, onUpdate: a, onStop: i } =
|
|
5348
|
+
gt(ut, bs());
|
|
5349
|
+
const { typedValue: n, isTyping: r, onStat: o, onUpdate: a, onStop: i } = ls(ee(() => e.value ?? ""), {
|
|
5350
5350
|
step: e.step,
|
|
5351
5351
|
interval: e.interval,
|
|
5352
5352
|
enabled: e.typing
|
|
5353
5353
|
});
|
|
5354
5354
|
o(() => {
|
|
5355
5355
|
t("start");
|
|
5356
|
-
}), a((
|
|
5357
|
-
t("update",
|
|
5358
|
-
}), i((
|
|
5359
|
-
t("stop",
|
|
5356
|
+
}), a((c) => {
|
|
5357
|
+
t("update", c);
|
|
5358
|
+
}), i((c) => {
|
|
5359
|
+
t("stop", c);
|
|
5360
5360
|
});
|
|
5361
|
-
const { html: l } =
|
|
5361
|
+
const { html: l } = as(n, {
|
|
5362
5362
|
html: !0,
|
|
5363
5363
|
linkify: !0,
|
|
5364
5364
|
typographer: !0,
|
|
5365
5365
|
breaks: !0,
|
|
5366
|
-
highlight:
|
|
5367
|
-
}),
|
|
5368
|
-
return (
|
|
5366
|
+
highlight: ds
|
|
5367
|
+
}), s = ee(() => e.markdown ? l.value : n.value);
|
|
5368
|
+
return (c, f) => (R(), $(_(an), {
|
|
5369
5369
|
tag: "div",
|
|
5370
5370
|
class: Ou([_(ut)])
|
|
5371
5371
|
}, {
|
|
5372
5372
|
default: O(() => [
|
|
5373
5373
|
Ye("div", {
|
|
5374
|
-
class: Ou([_(r) && !
|
|
5375
|
-
style: rn([
|
|
5376
|
-
innerHTML:
|
|
5377
|
-
}, null, 14,
|
|
5374
|
+
class: Ou([_(r) && !c.markdown ? `${_(ut)}__cursor` : void 0, c.markdown ? `${_(ut)}__markdown` : void 0]),
|
|
5375
|
+
style: rn([c.markdown ? void 0 : { "--cursor-content": `'${c.suffix}'` }]),
|
|
5376
|
+
innerHTML: s.value
|
|
5377
|
+
}, null, 14, ms)
|
|
5378
5378
|
]),
|
|
5379
5379
|
_: 1
|
|
5380
5380
|
}, 8, ["class"]));
|
|
5381
5381
|
}
|
|
5382
|
-
}), { c:
|
|
5383
|
-
function
|
|
5384
|
-
return
|
|
5385
|
-
|
|
5382
|
+
}), { c: ks, cB: xs, cE: vs, cM: _s } = { ...kt, ...xt }, Zt = `${Iu}-bubble`;
|
|
5383
|
+
function ys() {
|
|
5384
|
+
return ks([
|
|
5385
|
+
xs("bubble", {
|
|
5386
5386
|
display: "flex",
|
|
5387
5387
|
gap: "10px",
|
|
5388
5388
|
fontSize: "var(--n-font-size);"
|
|
5389
5389
|
}, [
|
|
5390
|
-
|
|
5390
|
+
_s("reverse", {
|
|
5391
5391
|
flexDirection: "row-reverse"
|
|
5392
5392
|
}),
|
|
5393
|
-
|
|
5393
|
+
vs("content", {
|
|
5394
5394
|
backgroundColor: "var(--tag-color)",
|
|
5395
5395
|
padding: "10px",
|
|
5396
5396
|
borderRadius: "var(--border-radius)",
|
|
@@ -5399,7 +5399,7 @@ function yc() {
|
|
|
5399
5399
|
])
|
|
5400
5400
|
]);
|
|
5401
5401
|
}
|
|
5402
|
-
const
|
|
5402
|
+
const Kc = /* @__PURE__ */ ke({
|
|
5403
5403
|
__name: "Bubble",
|
|
5404
5404
|
props: {
|
|
5405
5405
|
avatar: {},
|
|
@@ -5414,7 +5414,7 @@ const Ks = /* @__PURE__ */ ke({
|
|
|
5414
5414
|
emits: ["typingComplete"],
|
|
5415
5415
|
setup(e, { emit: u }) {
|
|
5416
5416
|
const t = u;
|
|
5417
|
-
return gt("n-bubble",
|
|
5417
|
+
return gt("n-bubble", ys()), (n, r) => (R(), $(_(an), {
|
|
5418
5418
|
tag: "div",
|
|
5419
5419
|
class: Ou([_(Zt), n.placement === "end" ? `${_(Zt)}--reverse` : ""])
|
|
5420
5420
|
}, {
|
|
@@ -5442,7 +5442,7 @@ const Ks = /* @__PURE__ */ ke({
|
|
|
5442
5442
|
class: Ou([`${_(Zt)}__content`, n.contentClass]),
|
|
5443
5443
|
style: rn(n.contentStyle)
|
|
5444
5444
|
}, [
|
|
5445
|
-
Z(_(
|
|
5445
|
+
Z(_(gs), {
|
|
5446
5446
|
typing: n.typing,
|
|
5447
5447
|
markdown: n.markdown,
|
|
5448
5448
|
value: n.content,
|
|
@@ -5461,10 +5461,10 @@ const Ks = /* @__PURE__ */ ke({
|
|
|
5461
5461
|
_: 3
|
|
5462
5462
|
}, 8, ["class"]));
|
|
5463
5463
|
}
|
|
5464
|
-
}), { c:
|
|
5465
|
-
function
|
|
5466
|
-
return
|
|
5467
|
-
|
|
5464
|
+
}), { c: Es, cB: As } = { ...kt, ...xt }, tt = `${Iu}-full-loading`;
|
|
5465
|
+
function ws() {
|
|
5466
|
+
return Es([
|
|
5467
|
+
As("full-loading", {
|
|
5468
5468
|
position: "fixed",
|
|
5469
5469
|
inset: 0,
|
|
5470
5470
|
zIndex: 99,
|
|
@@ -5481,7 +5481,7 @@ function wc() {
|
|
|
5481
5481
|
])
|
|
5482
5482
|
]);
|
|
5483
5483
|
}
|
|
5484
|
-
const
|
|
5484
|
+
const Cs = /* @__PURE__ */ ke({
|
|
5485
5485
|
__name: "FullLoading",
|
|
5486
5486
|
props: {
|
|
5487
5487
|
show: { type: Boolean },
|
|
@@ -5493,7 +5493,7 @@ const Cc = /* @__PURE__ */ ke({
|
|
|
5493
5493
|
spinProps: {}
|
|
5494
5494
|
},
|
|
5495
5495
|
setup(e) {
|
|
5496
|
-
gt(tt,
|
|
5496
|
+
gt(tt, ws());
|
|
5497
5497
|
const u = j("auto");
|
|
5498
5498
|
return Re(() => {
|
|
5499
5499
|
if (e.disableScroll) {
|
|
@@ -5597,7 +5597,7 @@ const Cc = /* @__PURE__ */ ke({
|
|
|
5597
5597
|
_: 3
|
|
5598
5598
|
}, 16),
|
|
5599
5599
|
r.globalStyle ? (R(), $(_(Jo), { key: 0 })) : te("", !0),
|
|
5600
|
-
Z(_(
|
|
5600
|
+
Z(_(Cs), Y({ show: u.value }, r.fullLoadingProps), null, 16, ["show"])
|
|
5601
5601
|
]),
|
|
5602
5602
|
_: 3
|
|
5603
5603
|
}, 16));
|
|
@@ -5607,23 +5607,23 @@ const Cc = /* @__PURE__ */ ke({
|
|
|
5607
5607
|
for (const [n, r] of u)
|
|
5608
5608
|
t[n] = r;
|
|
5609
5609
|
return t;
|
|
5610
|
-
},
|
|
5610
|
+
}, Ds = {
|
|
5611
5611
|
name: "MageCopyFill"
|
|
5612
|
-
},
|
|
5612
|
+
}, Fs = {
|
|
5613
5613
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5614
5614
|
width: "1em",
|
|
5615
5615
|
height: "1em",
|
|
5616
5616
|
viewBox: "0 0 24 24"
|
|
5617
5617
|
};
|
|
5618
|
-
function
|
|
5619
|
-
return R(), re("svg",
|
|
5618
|
+
function Ss(e, u, t, n, r, o) {
|
|
5619
|
+
return R(), re("svg", Fs, u[0] || (u[0] = [
|
|
5620
5620
|
Ye("path", {
|
|
5621
5621
|
fill: "currentColor",
|
|
5622
5622
|
d: "M18.355 6.54h-1.94V4.69a2.69 2.69 0 0 0-1.646-2.484A2.7 2.7 0 0 0 13.745 2h-8.05a2.68 2.68 0 0 0-2.67 2.69v10.09a2.68 2.68 0 0 0 2.67 2.69h1.94v1.85a2.68 2.68 0 0 0 2.67 2.68h8a2.68 2.68 0 0 0 2.67-2.68V9.23a2.69 2.69 0 0 0-2.62-2.69M7.635 9.23v6.74h-1.94a1.18 1.18 0 0 1-1.17-1.19V4.69a1.18 1.18 0 0 1 1.17-1.19h8.05a1.18 1.18 0 0 1 1.17 1.19v1.85h-4.61a2.69 2.69 0 0 0-2.67 2.69"
|
|
5623
5623
|
}, null, -1)
|
|
5624
5624
|
]));
|
|
5625
5625
|
}
|
|
5626
|
-
const
|
|
5626
|
+
const Ts = /* @__PURE__ */ vn(Ds, [["render", Ss]]), uf = /* @__PURE__ */ ke({
|
|
5627
5627
|
__name: "CopyButton",
|
|
5628
5628
|
props: {
|
|
5629
5629
|
value: {},
|
|
@@ -5656,7 +5656,7 @@ const Tc = /* @__PURE__ */ vn(Dc, [["render", Sc]]), uf = /* @__PURE__ */ ke({
|
|
|
5656
5656
|
}, a.buttonProps), {
|
|
5657
5657
|
icon: O(() => [
|
|
5658
5658
|
B(a.$slots, "icon", {}, () => [
|
|
5659
|
-
Z(
|
|
5659
|
+
Z(Ts)
|
|
5660
5660
|
])
|
|
5661
5661
|
]),
|
|
5662
5662
|
_: 3
|
|
@@ -5700,7 +5700,7 @@ const Tc = /* @__PURE__ */ vn(Dc, [["render", Sc]]), uf = /* @__PURE__ */ ke({
|
|
|
5700
5700
|
xo.onInit = ({ ready: e = !0, manual: u }) => ({
|
|
5701
5701
|
loading: !u && _(e)
|
|
5702
5702
|
});
|
|
5703
|
-
const at = /* @__PURE__ */ new Map(),
|
|
5703
|
+
const at = /* @__PURE__ */ new Map(), Ps = (e, u, t) => {
|
|
5704
5704
|
const n = at.get(e);
|
|
5705
5705
|
n?.timer && clearTimeout(n.timer);
|
|
5706
5706
|
let r;
|
|
@@ -5710,42 +5710,42 @@ const at = /* @__PURE__ */ new Map(), Pc = (e, u, t) => {
|
|
|
5710
5710
|
...t,
|
|
5711
5711
|
timer: r
|
|
5712
5712
|
});
|
|
5713
|
-
},
|
|
5713
|
+
}, Rs = (e) => at.get(e), lt = /* @__PURE__ */ new Map(), Os = (e) => lt.get(e), Ms = (e, u) => {
|
|
5714
5714
|
lt.set(e, u), u.then((t) => (lt.delete(e), t)).catch((t) => {
|
|
5715
5715
|
throw lt.delete(e), t;
|
|
5716
5716
|
});
|
|
5717
|
-
}, lu = {},
|
|
5718
|
-
lu[e] && (lu[e].forEach((t) => t(u)),
|
|
5717
|
+
}, lu = {}, Ls = [], Ns = (e, u) => {
|
|
5718
|
+
lu[e] && (lu[e].forEach((t) => t(u)), Ls.forEach((t) => t({
|
|
5719
5719
|
type: e,
|
|
5720
5720
|
data: u
|
|
5721
5721
|
})));
|
|
5722
5722
|
}, Yt = (e, u) => (lu[e] || (lu[e] = []), lu[e].push(u), function() {
|
|
5723
5723
|
const n = lu[e].indexOf(u);
|
|
5724
5724
|
lu[e].splice(n, 1);
|
|
5725
|
-
}), $
|
|
5725
|
+
}), $s = (e, {
|
|
5726
5726
|
cacheKey: u,
|
|
5727
5727
|
cacheTime: t = 300 * 1e3,
|
|
5728
5728
|
staleTime: n = 0,
|
|
5729
5729
|
setCache: r,
|
|
5730
5730
|
getCache: o
|
|
5731
5731
|
}) => {
|
|
5732
|
-
const a = j(), i = j(), l = (
|
|
5733
|
-
r ? r(f) :
|
|
5734
|
-
},
|
|
5732
|
+
const a = j(), i = j(), l = (c, f) => {
|
|
5733
|
+
r ? r(f) : Ps(c, t, f), Ns(c, f.data);
|
|
5734
|
+
}, s = (c, f = []) => o ? o(f) : Rs(c);
|
|
5735
5735
|
return Re(() => {
|
|
5736
5736
|
if (!u)
|
|
5737
5737
|
return;
|
|
5738
|
-
const
|
|
5739
|
-
|
|
5738
|
+
const c = s(u);
|
|
5739
|
+
c && Object.hasOwnProperty.call(c, "data") && (e.state.data = c.data, e.state.params = c.params, (n === -1 || (/* @__PURE__ */ new Date()).getTime() - c.time <= n) && (e.state.loading = !1)), a.value = Yt(u, (f) => {
|
|
5740
5740
|
e.setState({ data: f });
|
|
5741
5741
|
});
|
|
5742
5742
|
}), on(() => {
|
|
5743
|
-
var
|
|
5744
|
-
(
|
|
5743
|
+
var c;
|
|
5744
|
+
(c = a.value) == null || c.call(a);
|
|
5745
5745
|
}), u ? {
|
|
5746
5746
|
name: "cachePlugin",
|
|
5747
|
-
onBefore: (
|
|
5748
|
-
const f =
|
|
5747
|
+
onBefore: (c) => {
|
|
5748
|
+
const f = s(u, c);
|
|
5749
5749
|
return !f || !Object.hasOwnProperty.call(f, "data") ? {} : n === -1 || (/* @__PURE__ */ new Date()).getTime() - f.time <= n ? {
|
|
5750
5750
|
loading: !1,
|
|
5751
5751
|
data: f?.data,
|
|
@@ -5754,24 +5754,24 @@ const at = /* @__PURE__ */ new Map(), Pc = (e, u, t) => {
|
|
|
5754
5754
|
data: f?.data
|
|
5755
5755
|
};
|
|
5756
5756
|
},
|
|
5757
|
-
onRequest: (
|
|
5758
|
-
let y =
|
|
5759
|
-
return y && y !== i.value ? { servicePromise: y } : (y =
|
|
5757
|
+
onRequest: (c, f) => {
|
|
5758
|
+
let y = Os(u);
|
|
5759
|
+
return y && y !== i.value ? { servicePromise: y } : (y = c(...f), i.value = y, Ms(u, y), { servicePromise: y });
|
|
5760
5760
|
},
|
|
5761
|
-
onSuccess: (
|
|
5761
|
+
onSuccess: (c, f) => {
|
|
5762
5762
|
var y;
|
|
5763
5763
|
u && ((y = a.value) == null || y.call(a), l(u, {
|
|
5764
|
-
data:
|
|
5764
|
+
data: c,
|
|
5765
5765
|
params: f,
|
|
5766
5766
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
5767
5767
|
}), a.value = Yt(u, (x) => {
|
|
5768
5768
|
e.setState({ data: x });
|
|
5769
5769
|
}));
|
|
5770
5770
|
},
|
|
5771
|
-
onMutate: (
|
|
5771
|
+
onMutate: (c) => {
|
|
5772
5772
|
var f;
|
|
5773
5773
|
u && ((f = a.value) == null || f.call(a), l(u, {
|
|
5774
|
-
data:
|
|
5774
|
+
data: c,
|
|
5775
5775
|
params: e.state.params,
|
|
5776
5776
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
5777
5777
|
}), a.value = Yt(u, (y) => {
|
|
@@ -5784,49 +5784,49 @@ function ht(e) {
|
|
|
5784
5784
|
var u = typeof e;
|
|
5785
5785
|
return e != null && (u == "object" || u == "function");
|
|
5786
5786
|
}
|
|
5787
|
-
var
|
|
5787
|
+
var Is = typeof global == "object" && global && global.Object === Object && global, zs = typeof self == "object" && self && self.Object === Object && self, vo = Is || zs || Function("return this")(), Xt = function() {
|
|
5788
5788
|
return vo.Date.now();
|
|
5789
|
-
},
|
|
5790
|
-
function
|
|
5791
|
-
for (var u = e.length; u-- &&
|
|
5789
|
+
}, Bs = /\s/;
|
|
5790
|
+
function Us(e) {
|
|
5791
|
+
for (var u = e.length; u-- && Bs.test(e.charAt(u)); )
|
|
5792
5792
|
;
|
|
5793
5793
|
return u;
|
|
5794
5794
|
}
|
|
5795
|
-
var
|
|
5796
|
-
function
|
|
5797
|
-
return e && e.slice(0,
|
|
5795
|
+
var qs = /^\s+/;
|
|
5796
|
+
function js(e) {
|
|
5797
|
+
return e && e.slice(0, Us(e) + 1).replace(qs, "");
|
|
5798
5798
|
}
|
|
5799
|
-
var bt = vo.Symbol, _o = Object.prototype,
|
|
5800
|
-
function
|
|
5801
|
-
var u =
|
|
5799
|
+
var bt = vo.Symbol, _o = Object.prototype, Hs = _o.hasOwnProperty, Gs = _o.toString, Tu = bt ? bt.toStringTag : void 0;
|
|
5800
|
+
function Vs(e) {
|
|
5801
|
+
var u = Hs.call(e, Tu), t = e[Tu];
|
|
5802
5802
|
try {
|
|
5803
5803
|
e[Tu] = void 0;
|
|
5804
5804
|
var n = !0;
|
|
5805
5805
|
} catch {
|
|
5806
5806
|
}
|
|
5807
|
-
var r =
|
|
5807
|
+
var r = Gs.call(e);
|
|
5808
5808
|
return n && (u ? e[Tu] = t : delete e[Tu]), r;
|
|
5809
5809
|
}
|
|
5810
|
-
var
|
|
5811
|
-
function
|
|
5812
|
-
return
|
|
5810
|
+
var Ws = Object.prototype, Zs = Ws.toString;
|
|
5811
|
+
function Ys(e) {
|
|
5812
|
+
return Zs.call(e);
|
|
5813
5813
|
}
|
|
5814
|
-
var
|
|
5815
|
-
function
|
|
5816
|
-
return e == null ? e === void 0 ?
|
|
5814
|
+
var Xs = "[object Null]", Qs = "[object Undefined]", yr = bt ? bt.toStringTag : void 0;
|
|
5815
|
+
function Js(e) {
|
|
5816
|
+
return e == null ? e === void 0 ? Qs : Xs : yr && yr in Object(e) ? Vs(e) : Ys(e);
|
|
5817
5817
|
}
|
|
5818
|
-
function
|
|
5818
|
+
function Ks(e) {
|
|
5819
5819
|
return e != null && typeof e == "object";
|
|
5820
5820
|
}
|
|
5821
|
-
var
|
|
5822
|
-
function
|
|
5823
|
-
return typeof e == "symbol" ||
|
|
5821
|
+
var ec = "[object Symbol]";
|
|
5822
|
+
function uc(e) {
|
|
5823
|
+
return typeof e == "symbol" || Ks(e) && Js(e) == ec;
|
|
5824
5824
|
}
|
|
5825
|
-
var Er = NaN,
|
|
5825
|
+
var Er = NaN, tc = /^[-+]0x[0-9a-f]+$/i, nc = /^0b[01]+$/i, rc = /^0o[0-7]+$/i, oc = parseInt;
|
|
5826
5826
|
function Ar(e) {
|
|
5827
5827
|
if (typeof e == "number")
|
|
5828
5828
|
return e;
|
|
5829
|
-
if (
|
|
5829
|
+
if (uc(e))
|
|
5830
5830
|
return Er;
|
|
5831
5831
|
if (ht(e)) {
|
|
5832
5832
|
var u = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
@@ -5834,29 +5834,29 @@ function Ar(e) {
|
|
|
5834
5834
|
}
|
|
5835
5835
|
if (typeof e != "string")
|
|
5836
5836
|
return e === 0 ? e : +e;
|
|
5837
|
-
e =
|
|
5838
|
-
var t =
|
|
5839
|
-
return t ||
|
|
5837
|
+
e = js(e);
|
|
5838
|
+
var t = nc.test(e);
|
|
5839
|
+
return t || rc.test(e) ? oc(e.slice(2), t ? 2 : 8) : tc.test(e) ? Er : +e;
|
|
5840
5840
|
}
|
|
5841
|
-
var
|
|
5841
|
+
var ic = "Expected a function", ac = Math.max, lc = Math.min;
|
|
5842
5842
|
function yo(e, u, t) {
|
|
5843
|
-
var n, r, o, a, i, l,
|
|
5843
|
+
var n, r, o, a, i, l, s = 0, c = !1, f = !1, y = !0;
|
|
5844
5844
|
if (typeof e != "function")
|
|
5845
|
-
throw new TypeError(
|
|
5846
|
-
u = Ar(u) || 0, ht(t) && (
|
|
5845
|
+
throw new TypeError(ic);
|
|
5846
|
+
u = Ar(u) || 0, ht(t) && (c = !!t.leading, f = "maxWait" in t, o = f ? ac(Ar(t.maxWait) || 0, u) : o, y = "trailing" in t ? !!t.trailing : y);
|
|
5847
5847
|
function x(h) {
|
|
5848
5848
|
var C = n, P = r;
|
|
5849
|
-
return n = r = void 0,
|
|
5849
|
+
return n = r = void 0, s = h, a = e.apply(P, C), a;
|
|
5850
5850
|
}
|
|
5851
5851
|
function d(h) {
|
|
5852
|
-
return
|
|
5852
|
+
return s = h, i = setTimeout(v, u), c ? x(h) : a;
|
|
5853
5853
|
}
|
|
5854
5854
|
function E(h) {
|
|
5855
|
-
var C = h - l, P = h -
|
|
5856
|
-
return f ?
|
|
5855
|
+
var C = h - l, P = h - s, D = u - C;
|
|
5856
|
+
return f ? lc(D, o - P) : D;
|
|
5857
5857
|
}
|
|
5858
5858
|
function A(h) {
|
|
5859
|
-
var C = h - l, P = h -
|
|
5859
|
+
var C = h - l, P = h - s;
|
|
5860
5860
|
return l === void 0 || C >= u || C < 0 || f && P >= o;
|
|
5861
5861
|
}
|
|
5862
5862
|
function v() {
|
|
@@ -5869,12 +5869,12 @@ function yo(e, u, t) {
|
|
|
5869
5869
|
return i = void 0, y && n ? x(h) : (n = r = void 0, a);
|
|
5870
5870
|
}
|
|
5871
5871
|
function k() {
|
|
5872
|
-
i !== void 0 && clearTimeout(i),
|
|
5872
|
+
i !== void 0 && clearTimeout(i), s = 0, n = l = r = i = void 0;
|
|
5873
5873
|
}
|
|
5874
|
-
function
|
|
5874
|
+
function m() {
|
|
5875
5875
|
return i === void 0 ? a : p(Xt());
|
|
5876
5876
|
}
|
|
5877
|
-
function
|
|
5877
|
+
function b() {
|
|
5878
5878
|
var h = Xt(), C = A(h);
|
|
5879
5879
|
if (n = arguments, r = this, l = h, C) {
|
|
5880
5880
|
if (i === void 0)
|
|
@@ -5884,30 +5884,30 @@ function yo(e, u, t) {
|
|
|
5884
5884
|
}
|
|
5885
5885
|
return i === void 0 && (i = setTimeout(v, u)), a;
|
|
5886
5886
|
}
|
|
5887
|
-
return
|
|
5887
|
+
return b.cancel = k, b.flush = m, b;
|
|
5888
5888
|
}
|
|
5889
|
-
const
|
|
5889
|
+
const sc = (e, { debounceWait: u, debounceLeading: t, debounceTrailing: n, debounceMaxWait: r }) => {
|
|
5890
5890
|
const o = j(), a = ee(() => {
|
|
5891
|
-
const i = {}, l = _(t),
|
|
5892
|
-
return l !== void 0 && (i.leading = l),
|
|
5891
|
+
const i = {}, l = _(t), s = _(n), c = _(r);
|
|
5892
|
+
return l !== void 0 && (i.leading = l), s !== void 0 && (i.trailing = s), c !== void 0 && (i.maxWait = c), i;
|
|
5893
5893
|
});
|
|
5894
5894
|
return Re((i) => {
|
|
5895
5895
|
if (_(u)) {
|
|
5896
5896
|
const l = e.runAsync.bind(e);
|
|
5897
5897
|
o.value = yo(
|
|
5898
|
-
(
|
|
5899
|
-
|
|
5898
|
+
(s) => {
|
|
5899
|
+
s();
|
|
5900
5900
|
},
|
|
5901
5901
|
_(u),
|
|
5902
5902
|
a.value
|
|
5903
|
-
), e.runAsync = (...
|
|
5903
|
+
), e.runAsync = (...s) => new Promise((c, f) => {
|
|
5904
5904
|
var y;
|
|
5905
5905
|
(y = o.value) == null || y.call(o, () => {
|
|
5906
|
-
l(...
|
|
5906
|
+
l(...s).then(c).catch(f);
|
|
5907
5907
|
});
|
|
5908
5908
|
}), i(() => {
|
|
5909
|
-
var
|
|
5910
|
-
(
|
|
5909
|
+
var s;
|
|
5910
|
+
(s = o.value) == null || s.cancel(), e.runAsync = l;
|
|
5911
5911
|
});
|
|
5912
5912
|
}
|
|
5913
5913
|
}), _(u) ? {
|
|
@@ -5918,8 +5918,8 @@ const cs = (e, { debounceWait: u, debounceLeading: t, debounceTrailing: n, debou
|
|
|
5918
5918
|
}
|
|
5919
5919
|
} : {};
|
|
5920
5920
|
};
|
|
5921
|
-
var
|
|
5922
|
-
class
|
|
5921
|
+
var cc = Object.defineProperty, fc = (e, u, t) => u in e ? cc(e, u, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[u] = t, wr = (e, u, t) => (fc(e, typeof u != "symbol" ? u + "" : u, t), t);
|
|
5922
|
+
class dc {
|
|
5923
5923
|
constructor() {
|
|
5924
5924
|
wr(this, "table", {}), wr(this, "hashTable", {});
|
|
5925
5925
|
}
|
|
@@ -5931,17 +5931,17 @@ class ds {
|
|
|
5931
5931
|
return this.hashTable[u];
|
|
5932
5932
|
}
|
|
5933
5933
|
}
|
|
5934
|
-
new
|
|
5935
|
-
function
|
|
5934
|
+
new dc();
|
|
5935
|
+
function pc(e) {
|
|
5936
5936
|
const t = e.toString().match(/^function\s+([^\s(]+)/);
|
|
5937
5937
|
return t ? t[1] : "";
|
|
5938
5938
|
}
|
|
5939
|
-
function
|
|
5939
|
+
function hc(e) {
|
|
5940
5940
|
const u = e.toString(), t = /([a-zA-Z$_][a-zA-Z0-9$_]*)\s*\(/, n = u.match(t);
|
|
5941
5941
|
return n ? n[1].trim() : "";
|
|
5942
5942
|
}
|
|
5943
|
-
var
|
|
5944
|
-
class
|
|
5943
|
+
var bc = Object.defineProperty, mc = (e, u, t) => u in e ? bc(e, u, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[u] = t, Cr = (e, u, t) => (mc(e, typeof u != "symbol" ? u + "" : u, t), t);
|
|
5944
|
+
class gc {
|
|
5945
5945
|
constructor() {
|
|
5946
5946
|
Cr(this, "requestInstances", /* @__PURE__ */ new Map()), Cr(this, "listeners", []);
|
|
5947
5947
|
}
|
|
@@ -5977,10 +5977,10 @@ class gs {
|
|
|
5977
5977
|
return this.requestInstances;
|
|
5978
5978
|
}
|
|
5979
5979
|
}
|
|
5980
|
-
const Ae = new
|
|
5980
|
+
const Ae = new gc(), kc = (e, { ready: u = !0, debugKey: t, ...n }) => {
|
|
5981
5981
|
const r = () => {
|
|
5982
5982
|
if (t && !Ae.has(t)) {
|
|
5983
|
-
const a = e.serviceRef.value.toString().includes("function") ?
|
|
5983
|
+
const a = e.serviceRef.value.toString().includes("function") ? pc(e.serviceRef.value.toString()) : hc(e.serviceRef.value.toString());
|
|
5984
5984
|
Ae.insert(t, {
|
|
5985
5985
|
instance: e,
|
|
5986
5986
|
requestName: a,
|
|
@@ -6051,7 +6051,7 @@ const Ae = new gs(), ks = (e, { ready: u = !0, debugKey: t, ...n }) => {
|
|
|
6051
6051
|
});
|
|
6052
6052
|
}
|
|
6053
6053
|
};
|
|
6054
|
-
},
|
|
6054
|
+
}, xc = (e, { loadingDelay: u }) => {
|
|
6055
6055
|
const t = j(), n = () => {
|
|
6056
6056
|
t.value && (clearTimeout(_(t.value)), t.value = void 0);
|
|
6057
6057
|
};
|
|
@@ -6076,12 +6076,12 @@ const Ae = new gs(), ks = (e, { ready: u = !0, debugKey: t, ...n }) => {
|
|
|
6076
6076
|
function _n() {
|
|
6077
6077
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
6078
6078
|
}
|
|
6079
|
-
const
|
|
6079
|
+
const vc = !!(typeof window < "u" && window.document && window.document.createElement);
|
|
6080
6080
|
function yn() {
|
|
6081
6081
|
return _n() ? document.visibilityState !== "hidden" : !0;
|
|
6082
6082
|
}
|
|
6083
6083
|
const Pu = [];
|
|
6084
|
-
function
|
|
6084
|
+
function _c(e) {
|
|
6085
6085
|
return Pu.push(e), function() {
|
|
6086
6086
|
const t = Pu.indexOf(e);
|
|
6087
6087
|
Pu.splice(t, 1);
|
|
@@ -6097,7 +6097,7 @@ if (_n()) {
|
|
|
6097
6097
|
};
|
|
6098
6098
|
window.addEventListener("visibilitychange", e, !1);
|
|
6099
6099
|
}
|
|
6100
|
-
const
|
|
6100
|
+
const yc = (e, { pollingInterval: u, pollingWhenHidden: t = !0, pollingErrorRetryCount: n = -1 }) => {
|
|
6101
6101
|
let r;
|
|
6102
6102
|
const o = j(), a = j(0), i = () => {
|
|
6103
6103
|
var l;
|
|
@@ -6118,7 +6118,7 @@ const ys = (e, { pollingInterval: u, pollingWhenHidden: t = !0, pollingErrorRetr
|
|
|
6118
6118
|
},
|
|
6119
6119
|
onFinally: () => {
|
|
6120
6120
|
n === -1 || n !== -1 && a.value <= n ? r = setTimeout(() => {
|
|
6121
|
-
!t && !yn() ? o.value =
|
|
6121
|
+
!t && !yn() ? o.value = _c(() => {
|
|
6122
6122
|
e.refresh();
|
|
6123
6123
|
}) : e.refresh();
|
|
6124
6124
|
}, _(u)) : a.value = 0;
|
|
@@ -6128,7 +6128,7 @@ const ys = (e, { pollingInterval: u, pollingWhenHidden: t = !0, pollingErrorRetr
|
|
|
6128
6128
|
}
|
|
6129
6129
|
} : {};
|
|
6130
6130
|
};
|
|
6131
|
-
function
|
|
6131
|
+
function Ec(e, u) {
|
|
6132
6132
|
let t = !1;
|
|
6133
6133
|
return (...n) => {
|
|
6134
6134
|
t || (t = !0, e(...n), setTimeout(() => {
|
|
@@ -6136,19 +6136,19 @@ function Es(e, u) {
|
|
|
6136
6136
|
}, u));
|
|
6137
6137
|
};
|
|
6138
6138
|
}
|
|
6139
|
-
function
|
|
6139
|
+
function Ac() {
|
|
6140
6140
|
return _n() && typeof navigator.onLine < "u" ? navigator.onLine : !0;
|
|
6141
6141
|
}
|
|
6142
6142
|
const Ru = [];
|
|
6143
|
-
function
|
|
6143
|
+
function wc(e) {
|
|
6144
6144
|
return Ru.push(e), function() {
|
|
6145
6145
|
const t = Ru.indexOf(e);
|
|
6146
6146
|
t > -1 && Ru.splice(t, 1);
|
|
6147
6147
|
};
|
|
6148
6148
|
}
|
|
6149
|
-
if (
|
|
6149
|
+
if (vc) {
|
|
6150
6150
|
const e = () => {
|
|
6151
|
-
if (!(!yn() || !
|
|
6151
|
+
if (!(!yn() || !Ac()))
|
|
6152
6152
|
for (let u = 0; u < Ru.length; u++) {
|
|
6153
6153
|
const t = Ru[u];
|
|
6154
6154
|
t();
|
|
@@ -6156,18 +6156,18 @@ if (vs) {
|
|
|
6156
6156
|
};
|
|
6157
6157
|
window.addEventListener("visibilitychange", e, !1), window.addEventListener("focus", e, !1);
|
|
6158
6158
|
}
|
|
6159
|
-
const
|
|
6159
|
+
const Cc = (e, { refreshOnWindowFocus: u, focusTimespan: t = 5e3 }) => {
|
|
6160
6160
|
const n = j(), r = () => {
|
|
6161
6161
|
var o;
|
|
6162
6162
|
(o = n.value) == null || o.call(n);
|
|
6163
6163
|
};
|
|
6164
6164
|
return Re((o) => {
|
|
6165
6165
|
if (_(u)) {
|
|
6166
|
-
const a =
|
|
6166
|
+
const a = Ec(
|
|
6167
6167
|
e.refresh.bind(e),
|
|
6168
6168
|
_(t)
|
|
6169
6169
|
);
|
|
6170
|
-
n.value =
|
|
6170
|
+
n.value = wc(() => {
|
|
6171
6171
|
a();
|
|
6172
6172
|
});
|
|
6173
6173
|
}
|
|
@@ -6179,7 +6179,7 @@ const Cs = (e, { refreshOnWindowFocus: u, focusTimespan: t = 5e3 }) => {
|
|
|
6179
6179
|
}), {
|
|
6180
6180
|
name: "refreshOnWindowFocusPlugin"
|
|
6181
6181
|
};
|
|
6182
|
-
},
|
|
6182
|
+
}, Dc = (e, { retryInterval: u, retryCount: t }) => {
|
|
6183
6183
|
const n = j(), r = j(0), o = j(!1);
|
|
6184
6184
|
return t ? {
|
|
6185
6185
|
name: "retryPlugin",
|
|
@@ -6203,30 +6203,30 @@ const Cs = (e, { refreshOnWindowFocus: u, focusTimespan: t = 5e3 }) => {
|
|
|
6203
6203
|
}
|
|
6204
6204
|
} : {};
|
|
6205
6205
|
};
|
|
6206
|
-
var
|
|
6207
|
-
function
|
|
6206
|
+
var Fc = "Expected a function";
|
|
6207
|
+
function Sc(e, u, t) {
|
|
6208
6208
|
var n = !0, r = !0;
|
|
6209
6209
|
if (typeof e != "function")
|
|
6210
|
-
throw new TypeError(
|
|
6210
|
+
throw new TypeError(Fc);
|
|
6211
6211
|
return ht(t) && (n = "leading" in t ? !!t.leading : n, r = "trailing" in t ? !!t.trailing : r), yo(e, u, {
|
|
6212
6212
|
leading: n,
|
|
6213
6213
|
maxWait: u,
|
|
6214
6214
|
trailing: r
|
|
6215
6215
|
});
|
|
6216
6216
|
}
|
|
6217
|
-
const
|
|
6217
|
+
const Tc = (e, { throttleWait: u, throttleLeading: t, throttleTrailing: n }) => {
|
|
6218
6218
|
let r = null;
|
|
6219
6219
|
const o = ee(() => {
|
|
6220
|
-
const
|
|
6221
|
-
return _(t) !== void 0 && (
|
|
6220
|
+
const s = {};
|
|
6221
|
+
return _(t) !== void 0 && (s.leading = _(t)), _(n) !== void 0 && (s.trailing = _(n)), s;
|
|
6222
6222
|
}), a = e.runAsync.bind(e), i = j(), l = ee(() => _(u));
|
|
6223
|
-
return Ze([l, o], (
|
|
6223
|
+
return Ze([l, o], (s) => {
|
|
6224
6224
|
r && (r.cancel(), e.runAsync = a);
|
|
6225
|
-
const [
|
|
6225
|
+
const [c, f] = s, y = Sc(
|
|
6226
6226
|
(x) => {
|
|
6227
6227
|
x();
|
|
6228
6228
|
},
|
|
6229
|
-
_(
|
|
6229
|
+
_(c),
|
|
6230
6230
|
f
|
|
6231
6231
|
);
|
|
6232
6232
|
r = y, i.value = y, e.runAsync = (...x) => new Promise((d, E) => {
|
|
@@ -6238,18 +6238,18 @@ const Ts = (e, { throttleWait: u, throttleLeading: t, throttleTrailing: n }) =>
|
|
|
6238
6238
|
}, {
|
|
6239
6239
|
immediate: !0
|
|
6240
6240
|
}), _(u) ? (zo(() => {
|
|
6241
|
-
var
|
|
6242
|
-
(
|
|
6241
|
+
var s;
|
|
6242
|
+
(s = i.value) == null || s.cancel();
|
|
6243
6243
|
}), {
|
|
6244
6244
|
name: "throttlePlugin",
|
|
6245
6245
|
onCancel: () => {
|
|
6246
|
-
var
|
|
6247
|
-
(
|
|
6246
|
+
var s;
|
|
6247
|
+
(s = i.value) == null || s.cancel();
|
|
6248
6248
|
}
|
|
6249
6249
|
}) : {};
|
|
6250
|
-
}, Dr = (e) => typeof e == "function",
|
|
6251
|
-
var
|
|
6252
|
-
class
|
|
6250
|
+
}, Dr = (e) => typeof e == "function", Pc = (e) => typeof e == "boolean";
|
|
6251
|
+
var Rc = Object.defineProperty, Oc = (e, u, t) => u in e ? Rc(e, u, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[u] = t, nt = (e, u, t) => (Oc(e, typeof u != "symbol" ? u + "" : u, t), t);
|
|
6252
|
+
class Mc {
|
|
6253
6253
|
constructor(u, t, n, r = {}) {
|
|
6254
6254
|
nt(this, "pluginImpls"), nt(this, "count", 0), nt(this, "state", {
|
|
6255
6255
|
loading: !1,
|
|
@@ -6287,7 +6287,7 @@ class Ms {
|
|
|
6287
6287
|
return Object.assign({}, ...a);
|
|
6288
6288
|
}
|
|
6289
6289
|
async runAsync(...u) {
|
|
6290
|
-
var t, n, r, o, a, i, l,
|
|
6290
|
+
var t, n, r, o, a, i, l, s, c, f, y;
|
|
6291
6291
|
this.count += 1;
|
|
6292
6292
|
const x = this.count, { stopNow: d = !1, returnNow: E = !1, ...A } = this.runPluginHandler(
|
|
6293
6293
|
"onBefore",
|
|
@@ -6313,19 +6313,19 @@ class Ms {
|
|
|
6313
6313
|
}
|
|
6314
6314
|
try {
|
|
6315
6315
|
let { servicePromise: v } = this.runPluginHandler("onRequest", this.serviceRef.value, u);
|
|
6316
|
-
const p = (
|
|
6317
|
-
var
|
|
6316
|
+
const p = (m) => {
|
|
6317
|
+
var b, h, C, P;
|
|
6318
6318
|
if (!this.options.concurrent && x !== this.count)
|
|
6319
6319
|
return new Promise(() => {
|
|
6320
6320
|
});
|
|
6321
|
-
const D = this.options.formatResult ? this.options.formatResult(
|
|
6322
|
-
data:
|
|
6321
|
+
const D = this.options.formatResult ? this.options.formatResult(m) : m, I = {
|
|
6322
|
+
data: m
|
|
6323
6323
|
};
|
|
6324
6324
|
return this.setState({
|
|
6325
6325
|
data: D,
|
|
6326
6326
|
error: void 0,
|
|
6327
6327
|
loading: !1
|
|
6328
|
-
}), (h = (
|
|
6328
|
+
}), (h = (b = this.options).onSuccess) == null || h.call(b, D, u), this.runPluginHandler("onSuccess", D, u, I), this.previousValidData = D, (P = (C = this.options).onFinally) == null || P.call(C, u, D, void 0), (this.options.concurrent || x === this.count) && this.runPluginHandler("onFinally", u, D, void 0), D;
|
|
6329
6329
|
};
|
|
6330
6330
|
v || (v = this.serviceRef.value(...u));
|
|
6331
6331
|
const k = await v;
|
|
@@ -6337,7 +6337,7 @@ class Ms {
|
|
|
6337
6337
|
throw this.setState({
|
|
6338
6338
|
error: v,
|
|
6339
6339
|
loading: !1
|
|
6340
|
-
}), (i = (a = this.options).onError) == null || i.call(a, v, u), this.runPluginHandler("onError", v, u), (Dr((l = this.options) == null ? void 0 : l.rollbackOnError) && ((
|
|
6340
|
+
}), (i = (a = this.options).onError) == null || i.call(a, v, u), this.runPluginHandler("onError", v, u), (Dr((l = this.options) == null ? void 0 : l.rollbackOnError) && ((s = this.options) != null && s.rollbackOnError(u)) || Pc((c = this.options) == null ? void 0 : c.rollbackOnError) && this.options.rollbackOnError) && this.setState({
|
|
6341
6341
|
data: this.previousValidData
|
|
6342
6342
|
}), (y = (f = this.options).onFinally) == null || y.call(f, u, void 0, v), (this.options.concurrent || x === this.count) && this.runPluginHandler("onFinally", u, void 0, v), v;
|
|
6343
6343
|
}
|
|
@@ -6365,15 +6365,15 @@ class Ms {
|
|
|
6365
6365
|
});
|
|
6366
6366
|
}
|
|
6367
6367
|
}
|
|
6368
|
-
const
|
|
6368
|
+
const Lc = Symbol(
|
|
6369
6369
|
"USEREQUEST_GLOBAL_OPTIONS_PROVIDE_KEY"
|
|
6370
6370
|
);
|
|
6371
|
-
function
|
|
6371
|
+
function Nc(e) {
|
|
6372
6372
|
return Object.keys(e).filter((t) => ["data", "loading", "params", "error"].includes(t)).length === 4;
|
|
6373
6373
|
}
|
|
6374
|
-
function $
|
|
6374
|
+
function $c(e, u = {}, t = []) {
|
|
6375
6375
|
const n = Tr(
|
|
6376
|
-
|
|
6376
|
+
Lc,
|
|
6377
6377
|
{}
|
|
6378
6378
|
), { initialData: r = void 0, manual: o = !1, ready: a = !0, ...i } = {
|
|
6379
6379
|
...n ?? {},
|
|
@@ -6383,28 +6383,28 @@ function $s(e, u = {}, t = []) {
|
|
|
6383
6383
|
ready: a,
|
|
6384
6384
|
initialData: r,
|
|
6385
6385
|
...i
|
|
6386
|
-
},
|
|
6386
|
+
}, s = j(e), c = gu({
|
|
6387
6387
|
data: r,
|
|
6388
6388
|
loading: !1,
|
|
6389
6389
|
params: void 0,
|
|
6390
6390
|
error: void 0
|
|
6391
6391
|
}), f = (E, A) => {
|
|
6392
|
-
A ?
|
|
6392
|
+
A ? c[A] = E : Nc(E) && (c.data = E.data, c.loading = E.loading, c.error = E.error, c.params = E.params);
|
|
6393
6393
|
}, y = t.map((E) => {
|
|
6394
6394
|
var A;
|
|
6395
6395
|
return (A = E?.onInit) == null ? void 0 : A.call(E, l);
|
|
6396
|
-
}).filter(Boolean), x = new
|
|
6397
|
-
|
|
6396
|
+
}).filter(Boolean), x = new Mc(
|
|
6397
|
+
s,
|
|
6398
6398
|
l,
|
|
6399
6399
|
f,
|
|
6400
|
-
Object.assign({}, ...y,
|
|
6400
|
+
Object.assign({}, ...y, c)
|
|
6401
6401
|
);
|
|
6402
6402
|
x.options = l, x.pluginImpls = t.map((E) => E(x, l));
|
|
6403
6403
|
const d = ee(() => Qt(a) ? a.value : a);
|
|
6404
6404
|
if (Re(() => {
|
|
6405
6405
|
if (!o) {
|
|
6406
6406
|
const E = x.state.params || u.defaultParams || [];
|
|
6407
|
-
d.value && x.options.refreshDeps === !0 &&
|
|
6407
|
+
d.value && x.options.refreshDeps === !0 && s.value && x.run(...E);
|
|
6408
6408
|
}
|
|
6409
6409
|
}), !o && x.options.refreshDeps !== !0) {
|
|
6410
6410
|
const E = x.state.params || u.defaultParams || [];
|
|
@@ -6413,7 +6413,7 @@ function $s(e, u = {}, t = []) {
|
|
|
6413
6413
|
return on(() => {
|
|
6414
6414
|
x.cancel();
|
|
6415
6415
|
}), {
|
|
6416
|
-
...Bo(
|
|
6416
|
+
...Bo(c),
|
|
6417
6417
|
cancel: x.cancel.bind(x),
|
|
6418
6418
|
refresh: x.refresh.bind(x),
|
|
6419
6419
|
refreshAsync: x.refreshAsync.bind(x),
|
|
@@ -6422,7 +6422,7 @@ function $s(e, u = {}, t = []) {
|
|
|
6422
6422
|
mutate: x.mutate.bind(x)
|
|
6423
6423
|
};
|
|
6424
6424
|
}
|
|
6425
|
-
const
|
|
6425
|
+
const Ic = (e, u) => function(n, r = {}, o = []) {
|
|
6426
6426
|
let a = e;
|
|
6427
6427
|
const i = u || [];
|
|
6428
6428
|
for (let l = i.length; l--; )
|
|
@@ -6432,17 +6432,17 @@ const Is = (e, u) => function(n, r = {}, o = []) {
|
|
|
6432
6432
|
function En(e, u, t) {
|
|
6433
6433
|
var n;
|
|
6434
6434
|
const r = (n = [
|
|
6435
|
-
process.env.NODE_ENV === "development" ?
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6435
|
+
process.env.NODE_ENV === "development" ? kc : null,
|
|
6436
|
+
sc,
|
|
6437
|
+
xc,
|
|
6438
|
+
yc,
|
|
6439
|
+
Cc,
|
|
6440
|
+
Tc,
|
|
6441
6441
|
xo,
|
|
6442
|
-
$
|
|
6443
|
-
|
|
6442
|
+
$s,
|
|
6443
|
+
Dc
|
|
6444
6444
|
]) == null ? void 0 : n.filter(Boolean);
|
|
6445
|
-
return
|
|
6445
|
+
return Ic($c, u?.use)(
|
|
6446
6446
|
e,
|
|
6447
6447
|
u,
|
|
6448
6448
|
[...t || [], ...r]
|
|
@@ -6456,16 +6456,16 @@ function me(e, u, t) {
|
|
|
6456
6456
|
default: () => e
|
|
6457
6457
|
}) : e;
|
|
6458
6458
|
}
|
|
6459
|
-
const
|
|
6459
|
+
const zc = {
|
|
6460
6460
|
name: "MageSearch"
|
|
6461
|
-
},
|
|
6461
|
+
}, Bc = {
|
|
6462
6462
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6463
6463
|
width: "1em",
|
|
6464
6464
|
height: "1em",
|
|
6465
6465
|
viewBox: "0 0 24 24"
|
|
6466
6466
|
};
|
|
6467
|
-
function
|
|
6468
|
-
return R(), re("svg",
|
|
6467
|
+
function Uc(e, u, t, n, r, o) {
|
|
6468
|
+
return R(), re("svg", Bc, u[0] || (u[0] = [
|
|
6469
6469
|
Ye("path", {
|
|
6470
6470
|
fill: "none",
|
|
6471
6471
|
stroke: "currentColor",
|
|
@@ -6476,7 +6476,7 @@ function Us(e, u, t, n, r, o) {
|
|
|
6476
6476
|
}, null, -1)
|
|
6477
6477
|
]));
|
|
6478
6478
|
}
|
|
6479
|
-
const Fr = /* @__PURE__ */ vn(
|
|
6479
|
+
const Fr = /* @__PURE__ */ vn(zc, [["render", Uc]]), Eo = /* @__PURE__ */ ke({
|
|
6480
6480
|
__name: "SearchInput",
|
|
6481
6481
|
props: {
|
|
6482
6482
|
value: {},
|
|
@@ -6504,39 +6504,39 @@ const Fr = /* @__PURE__ */ vn(zs, [["render", Us]]), Eo = /* @__PURE__ */ ke({
|
|
|
6504
6504
|
function l() {
|
|
6505
6505
|
t("update:value", r.value);
|
|
6506
6506
|
}
|
|
6507
|
-
function c
|
|
6508
|
-
|
|
6507
|
+
function s(c) {
|
|
6508
|
+
c.key === "Enter" && l();
|
|
6509
6509
|
}
|
|
6510
6510
|
return Re(() => {
|
|
6511
6511
|
!e.loading && r.value && n.value?.focus();
|
|
6512
|
-
}), (
|
|
6512
|
+
}), (c, f) => (R(), $(_(oi), null, {
|
|
6513
6513
|
default: O(() => [
|
|
6514
|
-
Z(_(
|
|
6514
|
+
Z(_(sn), Y({
|
|
6515
6515
|
ref: "input-ref",
|
|
6516
6516
|
value: r.value,
|
|
6517
6517
|
"onUpdate:value": f[0] || (f[0] = (y) => r.value = y),
|
|
6518
6518
|
clearable: "",
|
|
6519
|
-
loading:
|
|
6520
|
-
placeholder:
|
|
6521
|
-
},
|
|
6519
|
+
loading: c.loading,
|
|
6520
|
+
placeholder: c.placeholder
|
|
6521
|
+
}, c.inputProps, { onKeydown: s }), {
|
|
6522
6522
|
prefix: O(() => [
|
|
6523
|
-
B(
|
|
6524
|
-
B(
|
|
6523
|
+
B(c.$slots, "prefix", {}, () => [
|
|
6524
|
+
B(c.$slots, "prefix-icon", {}, () => [
|
|
6525
6525
|
Z(Fr, { style: { width: "18px", height: "18px" } })
|
|
6526
6526
|
])
|
|
6527
6527
|
])
|
|
6528
6528
|
]),
|
|
6529
6529
|
_: 3
|
|
6530
6530
|
}, 16, ["value", "loading", "placeholder"]),
|
|
6531
|
-
B(
|
|
6532
|
-
value:
|
|
6533
|
-
loading:
|
|
6531
|
+
B(c.$slots, "button", {
|
|
6532
|
+
value: c.value,
|
|
6533
|
+
loading: c.loading
|
|
6534
6534
|
}, () => [
|
|
6535
6535
|
o.value ? (R(), $(_(ru), Y({
|
|
6536
6536
|
key: 0,
|
|
6537
|
-
type:
|
|
6538
|
-
loading:
|
|
6539
|
-
},
|
|
6537
|
+
type: c.type,
|
|
6538
|
+
loading: c.loading
|
|
6539
|
+
}, c.buttonProps, { onClick: l }), Rr({
|
|
6540
6540
|
default: O(() => [
|
|
6541
6541
|
o.value === "text" ? (R(), re(Ce, { key: 0 }, [
|
|
6542
6542
|
vu(" 搜索 ")
|
|
@@ -6547,7 +6547,7 @@ const Fr = /* @__PURE__ */ vn(zs, [["render", Us]]), Eo = /* @__PURE__ */ ke({
|
|
|
6547
6547
|
o.value === "icon" ? {
|
|
6548
6548
|
name: "icon",
|
|
6549
6549
|
fn: O(() => [
|
|
6550
|
-
B(
|
|
6550
|
+
B(c.$slots, "button-icon", {}, () => [
|
|
6551
6551
|
Z(Fr)
|
|
6552
6552
|
])
|
|
6553
6553
|
]),
|
|
@@ -6571,14 +6571,14 @@ const Fr = /* @__PURE__ */ vn(zs, [["render", Us]]), Eo = /* @__PURE__ */ ke({
|
|
|
6571
6571
|
button: ru,
|
|
6572
6572
|
"color-picker": bi,
|
|
6573
6573
|
checkbox: hi,
|
|
6574
|
-
divider:
|
|
6574
|
+
divider: cn,
|
|
6575
6575
|
"date-picker": pi,
|
|
6576
6576
|
"dynamic-tags": di,
|
|
6577
|
-
input:
|
|
6577
|
+
input: sn,
|
|
6578
6578
|
"input-number": fi,
|
|
6579
6579
|
search: Eo,
|
|
6580
|
-
radio:
|
|
6581
|
-
rate:
|
|
6580
|
+
radio: ci,
|
|
6581
|
+
rate: si,
|
|
6582
6582
|
select: Mr,
|
|
6583
6583
|
slider: li,
|
|
6584
6584
|
switch: ai,
|
|
@@ -6598,12 +6598,12 @@ const Fr = /* @__PURE__ */ vn(zs, [["render", Us]]), Eo = /* @__PURE__ */ ke({
|
|
|
6598
6598
|
const { options: i, ...l } = a ?? {};
|
|
6599
6599
|
return ge(n[o], {
|
|
6600
6600
|
value: e.value,
|
|
6601
|
-
"onUpdate:value": (
|
|
6602
|
-
t("update:value",
|
|
6601
|
+
"onUpdate:value": (s) => {
|
|
6602
|
+
t("update:value", s);
|
|
6603
6603
|
},
|
|
6604
6604
|
...l
|
|
6605
6605
|
}, {
|
|
6606
|
-
default: () => i?.map((
|
|
6606
|
+
default: () => i?.map((s) => ge(mi, { ...s }))
|
|
6607
6607
|
});
|
|
6608
6608
|
}
|
|
6609
6609
|
if (o === "divider") {
|
|
@@ -6616,12 +6616,12 @@ const Fr = /* @__PURE__ */ vn(zs, [["render", Us]]), Eo = /* @__PURE__ */ ke({
|
|
|
6616
6616
|
const { options: i, ...l } = a ?? {};
|
|
6617
6617
|
return ge(n[o], {
|
|
6618
6618
|
value: e.value,
|
|
6619
|
-
"onUpdate:value": (
|
|
6620
|
-
t("update:value",
|
|
6619
|
+
"onUpdate:value": (s) => {
|
|
6620
|
+
t("update:value", s);
|
|
6621
6621
|
},
|
|
6622
6622
|
...l
|
|
6623
6623
|
}, {
|
|
6624
|
-
default: () => i?.map((
|
|
6624
|
+
default: () => i?.map((s) => ge(gi, { ...s }))
|
|
6625
6625
|
});
|
|
6626
6626
|
}
|
|
6627
6627
|
if (o && n[o])
|
|
@@ -6635,7 +6635,7 @@ const Fr = /* @__PURE__ */ vn(zs, [["render", Us]]), Eo = /* @__PURE__ */ ke({
|
|
|
6635
6635
|
}
|
|
6636
6636
|
return (o, a) => (R(), $(le(r())));
|
|
6637
6637
|
}
|
|
6638
|
-
}),
|
|
6638
|
+
}), qc = { style: { height: "100%", display: "flex", "align-items": "center" } }, jc = {
|
|
6639
6639
|
key: 0,
|
|
6640
6640
|
style: { "font-size": "16px" }
|
|
6641
6641
|
}, tf = /* @__PURE__ */ ke({
|
|
@@ -6674,22 +6674,22 @@ const Fr = /* @__PURE__ */ vn(zs, [["render", Us]]), Eo = /* @__PURE__ */ ke({
|
|
|
6674
6674
|
};
|
|
6675
6675
|
}), o = gu(e.columns ?? []), a = mt("data-table-ref"), i = { page: "page", pageSize: "pageSize", filter: "filter", sorter: "sorter", list: "list", count: "count", rowKey: "id", search: "search", children: "children", ...e.fields }, l = {
|
|
6676
6676
|
...e.search && typeof e.search == "boolean" ? {} : e.search
|
|
6677
|
-
},
|
|
6677
|
+
}, s = gu({
|
|
6678
6678
|
showSizePicker: !0,
|
|
6679
6679
|
pageSizes: [10, 20, 30],
|
|
6680
6680
|
pageSlot: 5,
|
|
6681
6681
|
prefix: (w) => `共${w.itemCount}条数据`,
|
|
6682
6682
|
...e.pagination && typeof e.pagination == "boolean" ? {} : e.pagination
|
|
6683
|
-
}),
|
|
6683
|
+
}), c = j({
|
|
6684
6684
|
page: 1,
|
|
6685
6685
|
pageSize: 10,
|
|
6686
6686
|
itemCount: 0
|
|
6687
6687
|
}), f = j(), y = j(), x = {
|
|
6688
|
-
[i.page]:
|
|
6689
|
-
[i.pageSize]:
|
|
6688
|
+
[i.page]: c.value.page,
|
|
6689
|
+
[i.pageSize]: c.value.pageSize,
|
|
6690
6690
|
[i.search]: null,
|
|
6691
6691
|
...e.defaultParams
|
|
6692
|
-
}, { loading: d, data: E, error: A, params: v, run: p, runAsync: k, refresh:
|
|
6692
|
+
}, { loading: d, data: E, error: A, params: v, run: p, runAsync: k, refresh: m, refreshAsync: b, cancel: h, mutate: C } = En(e.api, {
|
|
6693
6693
|
defaultParams: [
|
|
6694
6694
|
x
|
|
6695
6695
|
],
|
|
@@ -6711,7 +6711,7 @@ const Fr = /* @__PURE__ */ vn(zs, [["render", Us]]), Eo = /* @__PURE__ */ ke({
|
|
|
6711
6711
|
function L(w, z) {
|
|
6712
6712
|
if (w[i.list]?.forEach((F) => {
|
|
6713
6713
|
P.some((H) => H[i.rowKey] === F[i.rowKey]) || P.push(F);
|
|
6714
|
-
}),
|
|
6714
|
+
}), c.value.page = i.page in z[0] ? Number(z[0][i.page]) : 1, c.value.pageSize = i.pageSize in z[0] ? Number(z[0][i.pageSize]) : 10, c.value.itemCount = i.count in w ? Number(w[i.count]) : 0, o) {
|
|
6715
6715
|
for (const F of o)
|
|
6716
6716
|
if ("key" in F) {
|
|
6717
6717
|
if (f.value && F.key in f.value) {
|
|
@@ -6793,7 +6793,7 @@ const Fr = /* @__PURE__ */ vn(zs, [["render", Us]]), Eo = /* @__PURE__ */ ke({
|
|
|
6793
6793
|
data: E,
|
|
6794
6794
|
error: A,
|
|
6795
6795
|
params: v,
|
|
6796
|
-
pagination:
|
|
6796
|
+
pagination: c,
|
|
6797
6797
|
filters: f,
|
|
6798
6798
|
sorters: y,
|
|
6799
6799
|
rawList: D,
|
|
@@ -6801,8 +6801,8 @@ const Fr = /* @__PURE__ */ vn(zs, [["render", Us]]), Eo = /* @__PURE__ */ ke({
|
|
|
6801
6801
|
}, W = {
|
|
6802
6802
|
run: p,
|
|
6803
6803
|
runAsync: k,
|
|
6804
|
-
refresh:
|
|
6805
|
-
refreshAsync:
|
|
6804
|
+
refresh: m,
|
|
6805
|
+
refreshAsync: b,
|
|
6806
6806
|
cancel: h,
|
|
6807
6807
|
mutate: C,
|
|
6808
6808
|
setParams: (w) => {
|
|
@@ -6810,7 +6810,7 @@ const Fr = /* @__PURE__ */ vn(zs, [["render", Us]]), Eo = /* @__PURE__ */ ke({
|
|
|
6810
6810
|
},
|
|
6811
6811
|
runParams: (w) => p(Object.assign(v.value[0], w)),
|
|
6812
6812
|
runParamsAsync: async (w) => k(Object.assign(v.value[0], w))
|
|
6813
|
-
},
|
|
6813
|
+
}, ce = ee(() => e.filterOptions?.filter((w) => typeof w.hidden == "function" ? !w.hidden(K) : !w.hidden).filter((w) => !w.collapsed)), pe = ee(() => e.filterOptions?.filter((w) => typeof w.hidden == "function" ? !w.hidden(K) : !w.hidden).filter((w) => w.collapsed));
|
|
6814
6814
|
return u({
|
|
6815
6815
|
refs: K,
|
|
6816
6816
|
actions: W
|
|
@@ -6823,8 +6823,8 @@ const Fr = /* @__PURE__ */ vn(zs, [["render", Us]]), Eo = /* @__PURE__ */ ke({
|
|
|
6823
6823
|
Z(_($e), null, {
|
|
6824
6824
|
default: O(() => [
|
|
6825
6825
|
B(w.$slots, "title", {}, () => [
|
|
6826
|
-
Ye("div",
|
|
6827
|
-
w.title ? (R(), re("span",
|
|
6826
|
+
Ye("div", qc, [
|
|
6827
|
+
w.title ? (R(), re("span", jc, nu(w.title), 1)) : te("", !0)
|
|
6828
6828
|
])
|
|
6829
6829
|
]),
|
|
6830
6830
|
w.search ? (R(), $(_(Eo), Y({
|
|
@@ -6849,9 +6849,9 @@ const Fr = /* @__PURE__ */ vn(zs, [["render", Us]]), Eo = /* @__PURE__ */ ke({
|
|
|
6849
6849
|
}, () => [
|
|
6850
6850
|
Z(_($e), { vertical: "" }, {
|
|
6851
6851
|
default: O(() => [
|
|
6852
|
-
r.value.grid &&
|
|
6852
|
+
r.value.grid && ce.value && ce.value.length > 0 ? (R(), $(_(st), fe(Y({ key: 0 }, w.filterGridProps)), {
|
|
6853
6853
|
default: O(() => [
|
|
6854
|
-
(R(!0), re(Ce, null, eu(w.filterOptions?.filter((F) => !F.collapsed), ({ key: F, gridSpan: H, gridItemProps: U, render: ue, label: oe, ...ye }, Me) => (R(), $(_(
|
|
6854
|
+
(R(!0), re(Ce, null, eu(w.filterOptions?.filter((F) => !F.collapsed), ({ key: F, gridSpan: H, gridItemProps: U, render: ue, label: oe, ...ye }, Me) => (R(), $(_(ct), Y({
|
|
6855
6855
|
key: Me,
|
|
6856
6856
|
span: H
|
|
6857
6857
|
}, { ref_for: !0 }, U), {
|
|
@@ -6871,7 +6871,7 @@ const Fr = /* @__PURE__ */ vn(zs, [["render", Us]]), Eo = /* @__PURE__ */ ke({
|
|
|
6871
6871
|
]),
|
|
6872
6872
|
_: 1
|
|
6873
6873
|
}, 16)) : te("", !0),
|
|
6874
|
-
r.value.flex &&
|
|
6874
|
+
r.value.flex && ce.value && ce.value.length > 0 ? (R(), $(_($e), fe(Y({ key: 1 }, w.filterFlexProps)), {
|
|
6875
6875
|
default: O(() => [
|
|
6876
6876
|
(R(!0), re(Ce, null, eu(w.filterOptions?.filter((F) => !F.collapsed), ({ key: F, render: H, label: U, ...ue }, oe) => (R(), re(Ce, { key: oe }, [
|
|
6877
6877
|
H ? (R(), $(le(_(me)(H(K, W), U, { path: F, labelPlacement: "left" })), { key: 0 })) : (R(), $(le(_(me)(
|
|
@@ -6887,7 +6887,7 @@ const Fr = /* @__PURE__ */ vn(zs, [["render", Us]]), Eo = /* @__PURE__ */ ke({
|
|
|
6887
6887
|
]),
|
|
6888
6888
|
_: 1
|
|
6889
6889
|
}, 16)) : te("", !0),
|
|
6890
|
-
pe.value && pe.value.length > 0 ? (R(), $(_(
|
|
6890
|
+
pe.value && pe.value.length > 0 ? (R(), $(_(cn), {
|
|
6891
6891
|
key: 2,
|
|
6892
6892
|
style: { margin: "5px 0" }
|
|
6893
6893
|
}, {
|
|
@@ -6906,9 +6906,9 @@ const Fr = /* @__PURE__ */ vn(zs, [["render", Us]]), Eo = /* @__PURE__ */ ke({
|
|
|
6906
6906
|
})) : te("", !0),
|
|
6907
6907
|
Z(_(Lr), { show: V.value }, {
|
|
6908
6908
|
default: O(() => [
|
|
6909
|
-
r.value.collapsedGrid && pe.value && pe.value.length > 0 ? (R(), $(_(
|
|
6909
|
+
r.value.collapsedGrid && pe.value && pe.value.length > 0 ? (R(), $(_(st), fe(Y({ key: 0 }, w.filterGridProps)), {
|
|
6910
6910
|
default: O(() => [
|
|
6911
|
-
(R(!0), re(Ce, null, eu(w.filterOptions?.filter((F) => F.collapsed), ({ key: F, gridSpan: H, gridItemProps: U, render: ue, label: oe, ...ye }, Me) => (R(), $(_(
|
|
6911
|
+
(R(!0), re(Ce, null, eu(w.filterOptions?.filter((F) => F.collapsed), ({ key: F, gridSpan: H, gridItemProps: U, render: ue, label: oe, ...ye }, Me) => (R(), $(_(ct), Y({
|
|
6912
6912
|
key: Me,
|
|
6913
6913
|
span: H
|
|
6914
6914
|
}, { ref_for: !0 }, U), {
|
|
@@ -7001,7 +7001,7 @@ const Fr = /* @__PURE__ */ vn(zs, [["render", Us]]), Eo = /* @__PURE__ */ ke({
|
|
|
7001
7001
|
key: 0,
|
|
7002
7002
|
style: { "margin-left": "auto" },
|
|
7003
7003
|
disabled: _(d)
|
|
7004
|
-
}, { ...
|
|
7004
|
+
}, { ...s, ...c.value }, {
|
|
7005
7005
|
"onUpdate:page": X.onUpdatePage,
|
|
7006
7006
|
"onUpdate:pageSize": X.onUpdatePageSize
|
|
7007
7007
|
}), null, 16, ["disabled", "onUpdate:page", "onUpdate:pageSize"])) : te("", !0)
|
|
@@ -7036,17 +7036,17 @@ function wo(e = {}, u = {}) {
|
|
|
7036
7036
|
}
|
|
7037
7037
|
return e;
|
|
7038
7038
|
}
|
|
7039
|
-
function
|
|
7039
|
+
function Hc(e, u) {
|
|
7040
7040
|
const { rules: t, clearRules: n } = u ?? {}, r = structuredClone(we(Be(e))), o = j(Be(e ?? {})), a = t, i = j(), l = {
|
|
7041
7041
|
ref: i,
|
|
7042
7042
|
model: o,
|
|
7043
7043
|
rules: a
|
|
7044
|
-
},
|
|
7045
|
-
function
|
|
7044
|
+
}, s = rt();
|
|
7045
|
+
function c() {
|
|
7046
7046
|
return new Promise((E, A) => {
|
|
7047
7047
|
if (!i.value)
|
|
7048
7048
|
return A(new Error("useNaiveForm: formRef is not found."));
|
|
7049
|
-
i.value.validate().then((v) => (
|
|
7049
|
+
i.value.validate().then((v) => (s.trigger(we(Be(o))), E(v))).catch(A);
|
|
7050
7050
|
});
|
|
7051
7051
|
}
|
|
7052
7052
|
function f() {
|
|
@@ -7068,15 +7068,15 @@ function Hs(e, u) {
|
|
|
7068
7068
|
formValue: Uo(o),
|
|
7069
7069
|
formRules: a,
|
|
7070
7070
|
formProps: l,
|
|
7071
|
-
validate:
|
|
7071
|
+
validate: c,
|
|
7072
7072
|
resetValidation: f,
|
|
7073
7073
|
resetForm: x,
|
|
7074
7074
|
reset: d,
|
|
7075
7075
|
clear: y,
|
|
7076
|
-
onValidated:
|
|
7076
|
+
onValidated: s.on
|
|
7077
7077
|
};
|
|
7078
7078
|
}
|
|
7079
|
-
function
|
|
7079
|
+
function Gc(e) {
|
|
7080
7080
|
if (!e)
|
|
7081
7081
|
return;
|
|
7082
7082
|
const u = {};
|
|
@@ -7103,22 +7103,22 @@ const nf = /* @__PURE__ */ ke({
|
|
|
7103
7103
|
emits: ["validated"],
|
|
7104
7104
|
setup(e, { expose: u, emit: t }) {
|
|
7105
7105
|
const n = t, r = ee(() => {
|
|
7106
|
-
const
|
|
7106
|
+
const m = typeof e.layout == "string" ? [e.layout, e.layout] : e.layout;
|
|
7107
7107
|
return {
|
|
7108
|
-
grid:
|
|
7109
|
-
flex:
|
|
7110
|
-
collapsedGrid:
|
|
7111
|
-
collapsedFlex:
|
|
7108
|
+
grid: m[0] === "grid",
|
|
7109
|
+
flex: m[0] === "flex",
|
|
7110
|
+
collapsedGrid: m[1] === "grid",
|
|
7111
|
+
collapsedFlex: m[1] === "flex"
|
|
7112
7112
|
};
|
|
7113
|
-
}), { formValue: o, formRules: a, formRef: i, validate: l, resetValidation:
|
|
7113
|
+
}), { formValue: o, formRules: a, formRef: i, validate: l, resetValidation: s, resetForm: c, reset: f, clear: y, onValidated: x } = Hc(e.values, {
|
|
7114
7114
|
rules: {
|
|
7115
7115
|
...e.rules,
|
|
7116
|
-
...
|
|
7116
|
+
...Gc(e.options)
|
|
7117
7117
|
},
|
|
7118
7118
|
clearRules: e.clearRules
|
|
7119
7119
|
});
|
|
7120
|
-
x((
|
|
7121
|
-
n("validated",
|
|
7120
|
+
x((m) => {
|
|
7121
|
+
n("validated", m);
|
|
7122
7122
|
});
|
|
7123
7123
|
const d = j(!1), E = {
|
|
7124
7124
|
formRef: i,
|
|
@@ -7126,40 +7126,40 @@ const nf = /* @__PURE__ */ ke({
|
|
|
7126
7126
|
formRules: a
|
|
7127
7127
|
}, A = {
|
|
7128
7128
|
validate: l,
|
|
7129
|
-
resetValidation:
|
|
7130
|
-
resetForm:
|
|
7129
|
+
resetValidation: s,
|
|
7130
|
+
resetForm: c,
|
|
7131
7131
|
reset: f,
|
|
7132
7132
|
clear: y,
|
|
7133
7133
|
onValidated: x,
|
|
7134
|
-
setValues: (
|
|
7135
|
-
Object.assign(o.value,
|
|
7134
|
+
setValues: (m) => {
|
|
7135
|
+
Object.assign(o.value, m);
|
|
7136
7136
|
}
|
|
7137
|
-
}, v = ee(() => e.options?.filter((
|
|
7137
|
+
}, v = ee(() => e.options?.filter((m) => typeof m.hidden == "function" ? !m.hidden(E) : !m.hidden).filter((m) => !m.collapsed)), p = ee(() => e.options?.filter((m) => typeof m.hidden == "function" ? !m.hidden(E) : !m.hidden).filter((m) => m.collapsed));
|
|
7138
7138
|
u({
|
|
7139
7139
|
refs: E,
|
|
7140
7140
|
actions: A
|
|
7141
7141
|
});
|
|
7142
|
-
function k(
|
|
7143
|
-
|
|
7142
|
+
function k(m, b) {
|
|
7143
|
+
b && A.setValues({ [b]: m });
|
|
7144
7144
|
}
|
|
7145
|
-
return (
|
|
7145
|
+
return (m, b) => (R(), $(_(xi), Y({
|
|
7146
7146
|
ref_key: "formRef",
|
|
7147
7147
|
ref: i,
|
|
7148
7148
|
model: _(o),
|
|
7149
7149
|
rules: _(a)
|
|
7150
7150
|
}, e.formProps), {
|
|
7151
7151
|
default: O(() => [
|
|
7152
|
-
B(
|
|
7152
|
+
B(m.$slots, "header", {
|
|
7153
7153
|
refs: E,
|
|
7154
7154
|
actions: A
|
|
7155
7155
|
}),
|
|
7156
|
-
B(
|
|
7156
|
+
B(m.$slots, "default", {
|
|
7157
7157
|
refs: E,
|
|
7158
7158
|
actions: A
|
|
7159
7159
|
}, () => [
|
|
7160
|
-
r.value.grid && v.value && v.value.length > 0 ? (R(), $(_(
|
|
7160
|
+
r.value.grid && v.value && v.value.length > 0 ? (R(), $(_(st), fe(Y({ key: 0 }, m.gridProps)), {
|
|
7161
7161
|
default: O(() => [
|
|
7162
|
-
(R(!0), re(Ce, null, eu(v.value, ({ key: h, gridSpan: C, gridItemProps: P, render: D, label: I, ...L }, G) => (R(), $(_(
|
|
7162
|
+
(R(!0), re(Ce, null, eu(v.value, ({ key: h, gridSpan: C, gridItemProps: P, render: D, label: I, ...L }, G) => (R(), $(_(ct), Y({
|
|
7163
7163
|
key: G,
|
|
7164
7164
|
span: C
|
|
7165
7165
|
}, { ref_for: !0 }, P), {
|
|
@@ -7179,7 +7179,7 @@ const nf = /* @__PURE__ */ ke({
|
|
|
7179
7179
|
]),
|
|
7180
7180
|
_: 1
|
|
7181
7181
|
}, 16)) : te("", !0),
|
|
7182
|
-
r.value.flex && v.value && v.value.length > 0 ? (R(), $(_($e), fe(Y({ key: 1 },
|
|
7182
|
+
r.value.flex && v.value && v.value.length > 0 ? (R(), $(_($e), fe(Y({ key: 1 }, m.flexProps)), {
|
|
7183
7183
|
default: O(() => [
|
|
7184
7184
|
(R(!0), re(Ce, null, eu(v.value, ({ key: h, render: C, label: P, ...D }, I) => (R(), re(Ce, { key: I }, [
|
|
7185
7185
|
C ? (R(), $(le(_(me)(C(E, A), P, { path: h })), { key: 0 })) : (R(), $(le(_(me)(
|
|
@@ -7195,14 +7195,14 @@ const nf = /* @__PURE__ */ ke({
|
|
|
7195
7195
|
]),
|
|
7196
7196
|
_: 1
|
|
7197
7197
|
}, 16)) : te("", !0),
|
|
7198
|
-
p.value && p.value.length > 0 ? (R(), $(_(
|
|
7198
|
+
p.value && p.value.length > 0 ? (R(), $(_(cn), {
|
|
7199
7199
|
key: 2,
|
|
7200
7200
|
style: { margin: "5px 0" }
|
|
7201
7201
|
}, {
|
|
7202
7202
|
default: O(() => [
|
|
7203
7203
|
Z(_(ru), {
|
|
7204
7204
|
size: "tiny",
|
|
7205
|
-
onClick:
|
|
7205
|
+
onClick: b[0] || (b[0] = (h) => d.value = !d.value)
|
|
7206
7206
|
}, {
|
|
7207
7207
|
default: O(() => [
|
|
7208
7208
|
vu(nu(d.value ? "折叠" : "展开"), 1)
|
|
@@ -7214,9 +7214,9 @@ const nf = /* @__PURE__ */ ke({
|
|
|
7214
7214
|
})) : te("", !0),
|
|
7215
7215
|
Z(_(Lr), { show: d.value }, {
|
|
7216
7216
|
default: O(() => [
|
|
7217
|
-
r.value.collapsedGrid && p.value && p.value.length > 0 ? (R(), $(_(
|
|
7217
|
+
r.value.collapsedGrid && p.value && p.value.length > 0 ? (R(), $(_(st), fe(Y({ key: 0 }, m.gridProps)), {
|
|
7218
7218
|
default: O(() => [
|
|
7219
|
-
(R(!0), re(Ce, null, eu(p.value, ({ key: h, gridSpan: C, gridItemProps: P, render: D, label: I, ...L }, G) => (R(), $(_(
|
|
7219
|
+
(R(!0), re(Ce, null, eu(p.value, ({ key: h, gridSpan: C, gridItemProps: P, render: D, label: I, ...L }, G) => (R(), $(_(ct), Y({
|
|
7220
7220
|
key: G,
|
|
7221
7221
|
span: C
|
|
7222
7222
|
}, { ref_for: !0 }, P), {
|
|
@@ -7236,7 +7236,7 @@ const nf = /* @__PURE__ */ ke({
|
|
|
7236
7236
|
]),
|
|
7237
7237
|
_: 1
|
|
7238
7238
|
}, 16)) : te("", !0),
|
|
7239
|
-
r.value.collapsedFlex && p.value && p.value.length > 0 ? (R(), $(_($e), fe(Y({ key: 1 },
|
|
7239
|
+
r.value.collapsedFlex && p.value && p.value.length > 0 ? (R(), $(_($e), fe(Y({ key: 1 }, m.flexProps)), {
|
|
7240
7240
|
default: O(() => [
|
|
7241
7241
|
(R(!0), re(Ce, null, eu(p.value, ({ key: h, render: C, label: P, ...D }, I) => (R(), re(Ce, { key: I }, [
|
|
7242
7242
|
C ? (R(), $(le(_(me)(C(E, A), P, { path: h })), { key: 0 })) : (R(), $(le(_(me)(
|
|
@@ -7256,7 +7256,7 @@ const nf = /* @__PURE__ */ ke({
|
|
|
7256
7256
|
_: 1
|
|
7257
7257
|
}, 8, ["show"])
|
|
7258
7258
|
]),
|
|
7259
|
-
B(
|
|
7259
|
+
B(m.$slots, "footer", {
|
|
7260
7260
|
refs: E,
|
|
7261
7261
|
actions: A
|
|
7262
7262
|
})
|
|
@@ -7264,23 +7264,23 @@ const nf = /* @__PURE__ */ ke({
|
|
|
7264
7264
|
_: 3
|
|
7265
7265
|
}, 16, ["model", "rules"]));
|
|
7266
7266
|
}
|
|
7267
|
-
}),
|
|
7267
|
+
}), Vc = {
|
|
7268
7268
|
name: "MageMultiplyCircleFill"
|
|
7269
|
-
},
|
|
7269
|
+
}, Wc = {
|
|
7270
7270
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7271
7271
|
width: "1em",
|
|
7272
7272
|
height: "1em",
|
|
7273
7273
|
viewBox: "0 0 24 24"
|
|
7274
7274
|
};
|
|
7275
|
-
function
|
|
7276
|
-
return R(), re("svg",
|
|
7275
|
+
function Zc(e, u, t, n, r, o) {
|
|
7276
|
+
return R(), re("svg", Wc, u[0] || (u[0] = [
|
|
7277
7277
|
Ye("path", {
|
|
7278
7278
|
fill: "currentColor",
|
|
7279
7279
|
d: "M12 1.75A10.25 10.25 0 1 0 22.25 12A10.26 10.26 0 0 0 12 1.75m4.67 13.5a1 1 0 0 1 0 1.42a1 1 0 0 1-1.42 0L12 13.42l-3.25 3.25a1 1 0 0 1-1.41-1.42L10.59 12L7.34 8.75a1 1 0 1 1 1.41-1.41L12 10.59l3.25-3.25a1 1 0 1 1 1.42 1.41L13.42 12z"
|
|
7280
7280
|
}, null, -1)
|
|
7281
7281
|
]));
|
|
7282
7282
|
}
|
|
7283
|
-
const
|
|
7283
|
+
const Yc = /* @__PURE__ */ vn(Vc, [["render", Zc]]), rf = /* @__PURE__ */ ke({
|
|
7284
7284
|
__name: "PresetPicker",
|
|
7285
7285
|
props: {
|
|
7286
7286
|
value: {},
|
|
@@ -7313,16 +7313,16 @@ const Ys = /* @__PURE__ */ vn(Vs, [["render", Zs]]), rf = /* @__PURE__ */ ke({
|
|
|
7313
7313
|
const l = gu([
|
|
7314
7314
|
i,
|
|
7315
7315
|
...e.columns ?? []
|
|
7316
|
-
]),
|
|
7317
|
-
function
|
|
7318
|
-
o.value = structuredClone(Array.isArray(e.value) ? we(e.value) : e.value ? [e.value] : []),
|
|
7316
|
+
]), s = j(!1);
|
|
7317
|
+
function c() {
|
|
7318
|
+
o.value = structuredClone(Array.isArray(e.value) ? we(e.value) : e.value ? [e.value] : []), s.value = !0;
|
|
7319
7319
|
}
|
|
7320
|
-
function f(
|
|
7321
|
-
e.multiple ? o.value.includes(
|
|
7320
|
+
function f(b) {
|
|
7321
|
+
e.multiple ? o.value.includes(b?.[r.value]) ? (o.value = o.value.filter((h) => h !== b?.[r.value]), a.value = a.value.filter((h) => h?.[r.value] !== b?.[r.value])) : (o.value.push(b?.[r.value]), a.value.push(b)) : (o.value = [b?.[r.value]], a.value = [b]);
|
|
7322
7322
|
}
|
|
7323
|
-
function y(
|
|
7323
|
+
function y(b, h, C, P) {
|
|
7324
7324
|
if (C.action === "checkAll") {
|
|
7325
|
-
const D =
|
|
7325
|
+
const D = b.filter((L) => !o.value.includes(L));
|
|
7326
7326
|
o.value.push(...D);
|
|
7327
7327
|
const I = h.filter((L) => !a.value.some((G) => G?.[r.value] === L?.[r.value]));
|
|
7328
7328
|
a.value.push(...I);
|
|
@@ -7336,75 +7336,81 @@ const Ys = /* @__PURE__ */ vn(Vs, [["render", Zs]]), rf = /* @__PURE__ */ ke({
|
|
|
7336
7336
|
}
|
|
7337
7337
|
}
|
|
7338
7338
|
function x() {
|
|
7339
|
-
n("negativeClick"),
|
|
7339
|
+
n("negativeClick"), s.value = !1;
|
|
7340
7340
|
}
|
|
7341
7341
|
function d() {
|
|
7342
7342
|
if (n("positiveClick"), e.multiple) {
|
|
7343
|
-
const
|
|
7344
|
-
n("update:value",
|
|
7343
|
+
const b = we(Be(o)), h = b.map((C) => we(Be(a.value.find((P) => P?.[r.value] === C))));
|
|
7344
|
+
n("update:value", b, h);
|
|
7345
7345
|
} else {
|
|
7346
|
-
const
|
|
7347
|
-
n("update:value",
|
|
7346
|
+
const b = o.value[0] ?? null, h = we(Be(a.value.find((C) => C?.[r.value] === b)));
|
|
7347
|
+
n("update:value", b, h);
|
|
7348
7348
|
}
|
|
7349
|
-
|
|
7349
|
+
s.value = !1;
|
|
7350
7350
|
}
|
|
7351
7351
|
function E() {
|
|
7352
7352
|
n("update:value", null, null);
|
|
7353
7353
|
}
|
|
7354
7354
|
const A = ee(() => {
|
|
7355
7355
|
if (Array.isArray(e.value) && e.value.length > 0)
|
|
7356
|
-
return typeof e.fallbackLabel == "string" ? e.fallbackLabel : e.value.map((
|
|
7357
|
-
const h = a.value.find((C) => C?.[r.value] ===
|
|
7358
|
-
return h && h?.[r.label] ? h[r.label] : typeof e.fallbackLabel == "function" ? e.fallbackLabel(
|
|
7356
|
+
return typeof e.fallbackLabel == "string" ? e.fallbackLabel : e.value.map((b) => {
|
|
7357
|
+
const h = a.value.find((C) => C?.[r.value] === b);
|
|
7358
|
+
return h && h?.[r.label] ? h[r.label] : typeof e.fallbackLabel == "function" ? e.fallbackLabel(b) : b;
|
|
7359
7359
|
}).join(",");
|
|
7360
7360
|
if (e.value && !Array.isArray(e.value)) {
|
|
7361
|
-
const
|
|
7362
|
-
return
|
|
7361
|
+
const b = a.value.find((h) => h?.[r.value] === e.value);
|
|
7362
|
+
return b && b?.[r.label] ? b[r.label] : typeof e.fallbackLabel == "function" ? e.fallbackLabel(e.value) : e.fallbackLabel ?? e.value;
|
|
7363
7363
|
}
|
|
7364
7364
|
return e.placeholder;
|
|
7365
7365
|
}), v = ee(() => e.clearable && (Array.isArray(e.value) ? e.value.length > 0 : !!e.value)), p = ee(() => Array.isArray(e.value) ? e.value.length : void 0), k = {
|
|
7366
|
-
showModalFlag:
|
|
7366
|
+
showModalFlag: s,
|
|
7367
7367
|
checkedRowKeys: o,
|
|
7368
7368
|
checkedRows: a,
|
|
7369
7369
|
columns: l
|
|
7370
|
-
},
|
|
7371
|
-
showModal:
|
|
7370
|
+
}, m = {
|
|
7371
|
+
showModal: c,
|
|
7372
7372
|
updateCheckedRowKeysEffect: y,
|
|
7373
7373
|
clickRowEffect: f,
|
|
7374
|
-
clearValue: E
|
|
7374
|
+
clearValue: E,
|
|
7375
|
+
setCheckedRowKeys: (b) => {
|
|
7376
|
+
o.value = b;
|
|
7377
|
+
},
|
|
7378
|
+
setCheckedRows: (b) => {
|
|
7379
|
+
a.value = b;
|
|
7380
|
+
}
|
|
7375
7381
|
};
|
|
7376
7382
|
return u({
|
|
7377
7383
|
refs: k,
|
|
7378
|
-
actions:
|
|
7379
|
-
}), (
|
|
7380
|
-
show: Array.isArray(
|
|
7381
|
-
trigger: Array.isArray(
|
|
7384
|
+
actions: m
|
|
7385
|
+
}), (b, h) => (R(), $(_(ln), {
|
|
7386
|
+
show: Array.isArray(b.value) ? void 0 : !1,
|
|
7387
|
+
trigger: Array.isArray(b.value) ? "hover" : "manual"
|
|
7382
7388
|
}, {
|
|
7383
7389
|
trigger: O(() => [
|
|
7384
|
-
Z(_(vi), Y({ value: p.value },
|
|
7390
|
+
Z(_(vi), Y({ value: p.value }, b.badgeProps), {
|
|
7385
7391
|
default: O(() => [
|
|
7386
7392
|
Z(_(_i), null, {
|
|
7387
7393
|
default: O(() => [
|
|
7388
7394
|
Z(_(ru), Y({
|
|
7389
|
-
type:
|
|
7390
|
-
disabled:
|
|
7391
|
-
},
|
|
7395
|
+
type: b.type,
|
|
7396
|
+
disabled: b.disabled
|
|
7397
|
+
}, b.buttonProps, { onClick: c }), {
|
|
7392
7398
|
icon: O(() => [
|
|
7393
|
-
B(
|
|
7399
|
+
B(b.$slots, "button-icon")
|
|
7394
7400
|
]),
|
|
7395
7401
|
default: O(() => [
|
|
7396
|
-
B(
|
|
7397
|
-
Ye("span", null, nu(Array.isArray(
|
|
7402
|
+
B(b.$slots, "button", {}, () => [
|
|
7403
|
+
Ye("span", null, nu(Array.isArray(b.value) ? "已选择" : A.value), 1)
|
|
7398
7404
|
]),
|
|
7399
7405
|
Z(_(yi), Y({
|
|
7400
|
-
show:
|
|
7401
|
-
"onUpdate:show": h[0] || (h[0] = (C) =>
|
|
7406
|
+
show: s.value,
|
|
7407
|
+
"onUpdate:show": h[0] || (h[0] = (C) => s.value = C),
|
|
7402
7408
|
style: { width: "auto" },
|
|
7403
7409
|
preset: "dialog",
|
|
7404
|
-
title:
|
|
7410
|
+
title: b.placeholder,
|
|
7405
7411
|
"positive-text": "确认",
|
|
7406
7412
|
"negative-text": "取消"
|
|
7407
|
-
},
|
|
7413
|
+
}, b.modalProps, {
|
|
7408
7414
|
onPositiveClick: d,
|
|
7409
7415
|
onNegativeClick: x,
|
|
7410
7416
|
onClose: h[1] || (h[1] = (C) => n("close")),
|
|
@@ -7415,21 +7421,21 @@ const Ys = /* @__PURE__ */ vn(Vs, [["render", Zs]]), rf = /* @__PURE__ */ ke({
|
|
|
7415
7421
|
"onUpdate:show": h[6] || (h[6] = (C) => n("update:show", C))
|
|
7416
7422
|
}), {
|
|
7417
7423
|
action: O(() => [
|
|
7418
|
-
B(
|
|
7424
|
+
B(b.$slots, "modal-action")
|
|
7419
7425
|
]),
|
|
7420
7426
|
header: O(() => [
|
|
7421
|
-
B(
|
|
7427
|
+
B(b.$slots, "modal-header")
|
|
7422
7428
|
]),
|
|
7423
7429
|
icon: O(() => [
|
|
7424
|
-
B(
|
|
7430
|
+
B(b.$slots, "modal-icon")
|
|
7425
7431
|
]),
|
|
7426
7432
|
close: O(() => [
|
|
7427
|
-
B(
|
|
7433
|
+
B(b.$slots, "modal-close")
|
|
7428
7434
|
]),
|
|
7429
7435
|
default: O(() => [
|
|
7430
|
-
B(
|
|
7436
|
+
B(b.$slots, "default", {
|
|
7431
7437
|
refs: k,
|
|
7432
|
-
actions:
|
|
7438
|
+
actions: m
|
|
7433
7439
|
})
|
|
7434
7440
|
]),
|
|
7435
7441
|
_: 3
|
|
@@ -7437,17 +7443,17 @@ const Ys = /* @__PURE__ */ vn(Vs, [["render", Zs]]), rf = /* @__PURE__ */ ke({
|
|
|
7437
7443
|
]),
|
|
7438
7444
|
_: 3
|
|
7439
7445
|
}, 16, ["type", "disabled"]),
|
|
7440
|
-
B(
|
|
7446
|
+
B(b.$slots, "clear-button", {}, () => [
|
|
7441
7447
|
v.value ? (R(), $(_(ru), Y({
|
|
7442
7448
|
key: 0,
|
|
7443
7449
|
circle: "",
|
|
7444
|
-
type:
|
|
7445
|
-
},
|
|
7450
|
+
type: b.type
|
|
7451
|
+
}, b.clearButtonProps, {
|
|
7446
7452
|
onClick: qo(E, ["stop"])
|
|
7447
7453
|
}), {
|
|
7448
7454
|
icon: O(() => [
|
|
7449
|
-
B(
|
|
7450
|
-
Z(
|
|
7455
|
+
B(b.$slots, "clear-icon", {}, () => [
|
|
7456
|
+
Z(Yc)
|
|
7451
7457
|
])
|
|
7452
7458
|
]),
|
|
7453
7459
|
_: 3
|
|
@@ -7461,7 +7467,7 @@ const Ys = /* @__PURE__ */ vn(Vs, [["render", Zs]]), rf = /* @__PURE__ */ ke({
|
|
|
7461
7467
|
}, 16, ["value"])
|
|
7462
7468
|
]),
|
|
7463
7469
|
default: O(() => [
|
|
7464
|
-
Ye("div", null, nu(Array.isArray(
|
|
7470
|
+
Ye("div", null, nu(Array.isArray(b.value) ? A.value : ""), 1)
|
|
7465
7471
|
]),
|
|
7466
7472
|
_: 3
|
|
7467
7473
|
}, 8, ["show", "trigger"]));
|
|
@@ -7502,7 +7508,7 @@ const Ys = /* @__PURE__ */ vn(Vs, [["render", Zs]]), rf = /* @__PURE__ */ ke({
|
|
|
7502
7508
|
[o.pageSize]: i.value.pageSize,
|
|
7503
7509
|
[o.search]: "",
|
|
7504
7510
|
...e.defaultParams
|
|
7505
|
-
}, { data:
|
|
7511
|
+
}, { data: s, error: c, loading: f, params: y, run: x, runAsync: d, refresh: E, refreshAsync: A, cancel: v, mutate: p } = En(e.api, {
|
|
7506
7512
|
defaultParams: [
|
|
7507
7513
|
l
|
|
7508
7514
|
],
|
|
@@ -7512,7 +7518,7 @@ const Ys = /* @__PURE__ */ vn(Vs, [["render", Zs]]), rf = /* @__PURE__ */ ke({
|
|
|
7512
7518
|
e.requestOptions?.onBefore?.(T), n("before", T);
|
|
7513
7519
|
},
|
|
7514
7520
|
onSuccess: (T, V) => {
|
|
7515
|
-
e.requestOptions?.onSuccess?.(T, V), n("success", T, V),
|
|
7521
|
+
e.requestOptions?.onSuccess?.(T, V), n("success", T, V), b(T, V);
|
|
7516
7522
|
},
|
|
7517
7523
|
onError: (T, V) => {
|
|
7518
7524
|
e.requestOptions?.onError?.(T, V), n("error", T, V);
|
|
@@ -7520,12 +7526,12 @@ const Ys = /* @__PURE__ */ vn(Vs, [["render", Zs]]), rf = /* @__PURE__ */ ke({
|
|
|
7520
7526
|
onFinally: (T, V, de) => {
|
|
7521
7527
|
e.requestOptions?.onFinally?.(T, V, de), n("finally", T, V, de);
|
|
7522
7528
|
}
|
|
7523
|
-
}, e.requestPlugins), k = ee(() =>
|
|
7529
|
+
}, e.requestPlugins), k = ee(() => s.value ? Array.isArray(s.value[o.list]) ? s.value[o.list] : (console.warn(`DataTablePlus: data[${o.list}] must be an array`), []) : []), m = ee(() => typeof e.optionFormat == "function" ? k.value.map((T) => e.optionFormat(T)).filter((T) => !!T) : k.value.map((T) => ({
|
|
7524
7530
|
[o.label]: T[o.label],
|
|
7525
7531
|
[o.value]: T[o.value],
|
|
7526
7532
|
[o.children]: T[o.children]
|
|
7527
7533
|
})));
|
|
7528
|
-
function
|
|
7534
|
+
function b(T, V) {
|
|
7529
7535
|
i.value.page = V[0] && o.page in V[0] ? Number(V[0][o.page]) : 1, i.value.pageSize = V[0] && o.pageSize in V[0] ? Number(V[0][o.pageSize]) : 10, i.value.itemCount = o.count in T ? Number(T[o.count]) : 0;
|
|
7530
7536
|
}
|
|
7531
7537
|
function h(T) {
|
|
@@ -7564,7 +7570,7 @@ const Ys = /* @__PURE__ */ vn(Vs, [["render", Zs]]), rf = /* @__PURE__ */ ke({
|
|
|
7564
7570
|
}));
|
|
7565
7571
|
},
|
|
7566
7572
|
onUpdateShow: (T) => {
|
|
7567
|
-
T && (
|
|
7573
|
+
T && (s.value || e.manual && x(l));
|
|
7568
7574
|
}
|
|
7569
7575
|
}, I = {
|
|
7570
7576
|
onUpdatePage: (T) => {
|
|
@@ -7586,8 +7592,8 @@ const Ys = /* @__PURE__ */ vn(Vs, [["render", Zs]]), rf = /* @__PURE__ */ ke({
|
|
|
7586
7592
|
}
|
|
7587
7593
|
const G = {
|
|
7588
7594
|
loading: f,
|
|
7589
|
-
data:
|
|
7590
|
-
error:
|
|
7595
|
+
data: s,
|
|
7596
|
+
error: c,
|
|
7591
7597
|
params: y,
|
|
7592
7598
|
pagination: i,
|
|
7593
7599
|
rawList: k,
|
|
@@ -7615,7 +7621,7 @@ const Ys = /* @__PURE__ */ vn(Vs, [["render", Zs]]), rf = /* @__PURE__ */ ke({
|
|
|
7615
7621
|
multiple: T.multiple,
|
|
7616
7622
|
disabled: T.disabled,
|
|
7617
7623
|
clearable: T.clearable,
|
|
7618
|
-
options:
|
|
7624
|
+
options: m.value,
|
|
7619
7625
|
"label-field": o.label,
|
|
7620
7626
|
"value-field": o.value,
|
|
7621
7627
|
"children-field": o.children,
|
|
@@ -7684,7 +7690,7 @@ const Ys = /* @__PURE__ */ vn(Vs, [["render", Zs]]), rf = /* @__PURE__ */ ke({
|
|
|
7684
7690
|
},
|
|
7685
7691
|
emits: ["before", "success", "error", "finally"],
|
|
7686
7692
|
setup(e, { expose: u, emit: t }) {
|
|
7687
|
-
const n = t, r = { page: "page", pageSize: "pageSize", search: "search", ...e.fields }, { loading: o, data: a, error: i, params: l, run:
|
|
7693
|
+
const n = t, r = { page: "page", pageSize: "pageSize", search: "search", ...e.fields }, { loading: o, data: a, error: i, params: l, run: s, runAsync: c, refresh: f, refreshAsync: y, cancel: x, mutate: d } = En(e.api, {
|
|
7688
7694
|
defaultParams: [
|
|
7689
7695
|
{
|
|
7690
7696
|
[r.page]: 1,
|
|
@@ -7713,8 +7719,8 @@ const Ys = /* @__PURE__ */ vn(Vs, [["render", Zs]]), rf = /* @__PURE__ */ ke({
|
|
|
7713
7719
|
error: i,
|
|
7714
7720
|
params: l
|
|
7715
7721
|
}, A = {
|
|
7716
|
-
run:
|
|
7717
|
-
runAsync:
|
|
7722
|
+
run: s,
|
|
7723
|
+
runAsync: c,
|
|
7718
7724
|
refresh: f,
|
|
7719
7725
|
refreshAsync: y,
|
|
7720
7726
|
cancel: x,
|
|
@@ -7722,8 +7728,8 @@ const Ys = /* @__PURE__ */ vn(Vs, [["render", Zs]]), rf = /* @__PURE__ */ ke({
|
|
|
7722
7728
|
setParam: (v) => {
|
|
7723
7729
|
Object.assign(l.value[0], v);
|
|
7724
7730
|
},
|
|
7725
|
-
runParam: (v) =>
|
|
7726
|
-
runParamAsync: async (v) =>
|
|
7731
|
+
runParam: (v) => s(Object.assign(l.value[0], v)),
|
|
7732
|
+
runParamAsync: async (v) => c(Object.assign(l.value[0], v))
|
|
7727
7733
|
};
|
|
7728
7734
|
return u({ refs: E, actions: A }), (v, p) => B(v.$slots, "default", {
|
|
7729
7735
|
refs: E,
|
|
@@ -7750,13 +7756,13 @@ const Ys = /* @__PURE__ */ vn(Vs, [["render", Zs]]), rf = /* @__PURE__ */ ke({
|
|
|
7750
7756
|
t.value = !1, u.value = r.value;
|
|
7751
7757
|
}
|
|
7752
7758
|
return (i, l) => (R(), re("div", { onClick: o }, [
|
|
7753
|
-
t.value ? (R(), $(_(
|
|
7759
|
+
t.value ? (R(), $(_(sn), Y({
|
|
7754
7760
|
key: 0,
|
|
7755
7761
|
ref_key: "inputRef",
|
|
7756
7762
|
ref: n,
|
|
7757
7763
|
value: r.value
|
|
7758
7764
|
}, i.inputProps, {
|
|
7759
|
-
"onUpdate:value": l[0] || (l[0] = (
|
|
7765
|
+
"onUpdate:value": l[0] || (l[0] = (s) => r.value = s),
|
|
7760
7766
|
onChange: a,
|
|
7761
7767
|
onBlur: a
|
|
7762
7768
|
}), null, 16, ["value"])) : (R(), re(Ce, { key: 1 }, [
|
|
@@ -7764,7 +7770,7 @@ const Ys = /* @__PURE__ */ vn(Vs, [["render", Zs]]), rf = /* @__PURE__ */ ke({
|
|
|
7764
7770
|
], 64))
|
|
7765
7771
|
]));
|
|
7766
7772
|
}
|
|
7767
|
-
}),
|
|
7773
|
+
}), sf = /* @__PURE__ */ ke({
|
|
7768
7774
|
__name: "TooltipButton",
|
|
7769
7775
|
props: {
|
|
7770
7776
|
value: {},
|
|
@@ -7798,11 +7804,11 @@ const Ys = /* @__PURE__ */ vn(Vs, [["render", Zs]]), rf = /* @__PURE__ */ ke({
|
|
|
7798
7804
|
}
|
|
7799
7805
|
});
|
|
7800
7806
|
export {
|
|
7801
|
-
|
|
7807
|
+
Kc as NBubble,
|
|
7802
7808
|
ef as NConfigProviders,
|
|
7803
7809
|
uf as NCopyButton,
|
|
7804
7810
|
tf as NDataTablePlus,
|
|
7805
|
-
|
|
7811
|
+
Cs as NFullLoading,
|
|
7806
7812
|
nf as NPresetForm,
|
|
7807
7813
|
tu as NPresetInput,
|
|
7808
7814
|
rf as NPresetPicker,
|
|
@@ -7810,7 +7816,7 @@ export {
|
|
|
7810
7816
|
af as NRemoteRequest,
|
|
7811
7817
|
Eo as NSearchInput,
|
|
7812
7818
|
lf as NToggleEditor,
|
|
7813
|
-
|
|
7819
|
+
sf as NTooltipButton,
|
|
7814
7820
|
Ur as NTransition,
|
|
7815
|
-
|
|
7821
|
+
gs as NTypeWriter
|
|
7816
7822
|
};
|