@oiij/naive-ui 0.0.23 → 0.0.25
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.cjs +8 -8
- package/dist/components.js +382 -382
- package/dist/components.umd.cjs +9 -9
- package/dist/composables/useNaiveForm.d.cts +4 -4
- package/dist/composables/useNaiveForm.d.ts +4 -4
- package/dist/composables/useNaiveTheme.d.cts +2 -2
- package/dist/composables/useNaiveTheme.d.ts +2 -2
- package/package.json +3 -3
package/dist/components.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { inject as Sr, onBeforeMount as To, defineComponent as xe, createBlock as N, openBlock as R, Transition as Po, mergeProps as Q, unref as v, withCtx as M, renderSlot as H, ref as G, toValue as
|
|
2
|
-
import { NEl as cn, NAvatar as qo, NFlex as qe, NSpin as Tr, cM as qn, NConfigProvider as jo, NLoadingBarProvider as Ho, NDialogProvider as Go, NModalProvider as Wo, NNotificationProvider as Vo, NMessageProvider as Zo, NGlobalStyle as Yo, useDialog as Xo, useLoadingBar as Qo, useMessage as Jo, useModal as Ko, useNotification as ei, NTooltip as Pr, NButton as
|
|
3
|
-
import { createEventHook as
|
|
1
|
+
import { inject as Sr, onBeforeMount as To, defineComponent as xe, createBlock as N, openBlock as R, Transition as Po, mergeProps as Q, unref as v, withCtx as M, renderSlot as H, ref as G, toValue as du, isRef as Qt, isReactive as Ro, watchEffect as Me, watch as je, computed as ge, nextTick as rn, normalizeClass as Su, createElementVNode as Lu, normalizeStyle as on, createVNode as Y, createCommentVNode as ie, resolveDynamicComponent as oe, Teleport as Oo, normalizeProps as ce, guardReactiveProps as Ue, createSlots as Mo, onMounted as Lo, createElementBlock as se, createTextVNode as Nu, toDisplayString as Iu, onScopeDispose as an, onUnmounted as No, reactive as Tu, toRefs as Io, h as he, createStaticVNode as zo, useTemplateRef as mt, Fragment as Ae, renderList as Ye, toRaw as Ve, toRef as $o, mergeModels as Bo, useModel as Uo } from "vue";
|
|
2
|
+
import { NEl as cn, NAvatar as qo, NFlex as qe, NSpin as Tr, cM as qn, NConfigProvider as jo, NLoadingBarProvider as Ho, NDialogProvider as Go, NModalProvider as Wo, NNotificationProvider as Vo, NMessageProvider as Zo, NGlobalStyle as Yo, useDialog as Xo, useLoadingBar as Qo, useMessage as Jo, useModal as Ko, useNotification as ei, NTooltip as Pr, NButton as mu, NFormItem as ui, NInputGroup as ti, NInput as sn, NTimePicker as ni, NSwitch as ri, NSlider as oi, NSelect as Rr, NRate as ii, NRadioGroup as ai, NInputNumber as ci, NDynamicTags as si, NDatePicker as li, NDivider as ln, NCheckboxGroup as fi, NColorPicker as di, NCheckbox as pi, NRadio as hi, NGrid as st, NGi as lt, NCollapseTransition as Or, NDataTable as bi, NPagination as Mr, NDropdown as mi, NForm as gi } from "naive-ui";
|
|
3
|
+
import { createEventHook as rt, useClipboard as xi, useTimeoutFn as ki, useDebounceFn as Lr } from "@vueuse/core";
|
|
4
4
|
function _i(e) {
|
|
5
5
|
let u = ".", t = "__", n = "--", r;
|
|
6
6
|
if (e) {
|
|
@@ -147,7 +147,7 @@ function Ci(e) {
|
|
|
147
147
|
const u = document.createElement("style");
|
|
148
148
|
return u.setAttribute("cssr-id", e), u;
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Zu(e) {
|
|
151
151
|
return e ? /^\s*@(s|m)/.test(e) : !1;
|
|
152
152
|
}
|
|
153
153
|
const Di = /[A-Z]/g;
|
|
@@ -209,21 +209,21 @@ function zr(e, u, t, n, r) {
|
|
|
209
209
|
const o = e.$;
|
|
210
210
|
let a = "";
|
|
211
211
|
if (!o || typeof o == "string")
|
|
212
|
-
|
|
212
|
+
Zu(o) ? a = o : u.push(o);
|
|
213
213
|
else if (typeof o == "function") {
|
|
214
214
|
const s = o({
|
|
215
215
|
context: n.context,
|
|
216
216
|
props: r
|
|
217
217
|
});
|
|
218
|
-
|
|
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
222
|
const s = o.$({
|
|
223
223
|
context: n.context,
|
|
224
224
|
props: r
|
|
225
225
|
});
|
|
226
|
-
|
|
226
|
+
Zu(s) ? a = s : u.push(s);
|
|
227
227
|
}
|
|
228
228
|
const i = wi(u), c = Hn(i, e.props, n, r);
|
|
229
229
|
a ? t.push(`${a} {`) : c.length && t.push(c), e.children && Jt(e.children, {
|
|
@@ -306,7 +306,7 @@ function Ni(e = {}) {
|
|
|
306
306
|
const { id: u, parent: t } = e;
|
|
307
307
|
Ri(this.instance, this, u, t);
|
|
308
308
|
}
|
|
309
|
-
const
|
|
309
|
+
const Yu = function(e, u, t, n) {
|
|
310
310
|
return {
|
|
311
311
|
instance: e,
|
|
312
312
|
$: u,
|
|
@@ -318,7 +318,7 @@ const Zu = function(e, u, t, n) {
|
|
|
318
318
|
unmount: Ni
|
|
319
319
|
};
|
|
320
320
|
}, Ii = function(e, u, t, n) {
|
|
321
|
-
return Array.isArray(u) ?
|
|
321
|
+
return Array.isArray(u) ? Yu(e, { $: null }, null, u) : Array.isArray(t) ? Yu(e, u, null, t) : Array.isArray(n) ? Yu(e, u, t, n) : Yu(e, u, t, null);
|
|
322
322
|
};
|
|
323
323
|
function zi(e = {}) {
|
|
324
324
|
const u = {
|
|
@@ -366,7 +366,7 @@ function Hi() {
|
|
|
366
366
|
context: e
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function gt(e, u) {
|
|
370
370
|
const t = Hi();
|
|
371
371
|
function n() {
|
|
372
372
|
u.mount({
|
|
@@ -379,7 +379,7 @@ function mt(e, u) {
|
|
|
379
379
|
n();
|
|
380
380
|
});
|
|
381
381
|
}
|
|
382
|
-
const { cssr:
|
|
382
|
+
const { cssr: xt, plugin: kt, namespace: zu } = $i(), { c: Gi } = xt, { cB: Xu } = kt, Wi = `${zu}-transition`;
|
|
383
383
|
function Vi({
|
|
384
384
|
name: e = "fade",
|
|
385
385
|
enterDuration: u = ".3s",
|
|
@@ -388,16 +388,16 @@ function Vi({
|
|
|
388
388
|
leaveCubicBezier: r = "cubic-bezier(.4, 0, .2, 1)"
|
|
389
389
|
} = {}) {
|
|
390
390
|
return [
|
|
391
|
-
|
|
391
|
+
Xu(`${e}-enter-active`, {
|
|
392
392
|
transition: `all ${u} ${n}!important`
|
|
393
393
|
}),
|
|
394
|
-
|
|
394
|
+
Xu(`${e}-leave-active`, {
|
|
395
395
|
transition: `all ${t} ${r}!important`
|
|
396
396
|
}),
|
|
397
|
-
|
|
397
|
+
Xu(`${e}-enter-from`, {
|
|
398
398
|
opacity: 0
|
|
399
399
|
}),
|
|
400
|
-
|
|
400
|
+
Xu(`${e}-leave-to`, {
|
|
401
401
|
opacity: 0
|
|
402
402
|
})
|
|
403
403
|
];
|
|
@@ -414,8 +414,8 @@ const $r = /* @__PURE__ */ xe({
|
|
|
414
414
|
transitionProps: {}
|
|
415
415
|
},
|
|
416
416
|
setup(e) {
|
|
417
|
-
return
|
|
418
|
-
name: `${v(
|
|
417
|
+
return gt(Wi, Zi()), (u, t) => (R(), N(Po, Q({
|
|
418
|
+
name: `${v(zu)}-${u.name}`,
|
|
419
419
|
appear: "",
|
|
420
420
|
mode: "out-in"
|
|
421
421
|
}, u.transitionProps), {
|
|
@@ -454,7 +454,7 @@ Kt || (Kt = function(u, t, n) {
|
|
|
454
454
|
en || (en = function(u, t) {
|
|
455
455
|
return new u(...t);
|
|
456
456
|
});
|
|
457
|
-
const
|
|
457
|
+
const Qu = _e(Array.prototype.forEach), Ji = _e(Array.prototype.lastIndexOf), Vn = _e(Array.prototype.pop), vu = _e(Array.prototype.push), Ki = _e(Array.prototype.splice), ot = _e(String.prototype.toLowerCase), Ot = _e(String.prototype.toString), Zn = _e(String.prototype.match), yu = _e(String.prototype.replace), ea = _e(String.prototype.indexOf), ua = _e(String.prototype.trim), Se = _e(Object.prototype.hasOwnProperty), me = _e(RegExp.prototype.test), Eu = ta(TypeError);
|
|
458
458
|
function _e(e) {
|
|
459
459
|
return function(u) {
|
|
460
460
|
u instanceof RegExp && (u.lastIndex = 0);
|
|
@@ -471,7 +471,7 @@ function ta(e) {
|
|
|
471
471
|
};
|
|
472
472
|
}
|
|
473
473
|
function U(e, u) {
|
|
474
|
-
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
474
|
+
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ot;
|
|
475
475
|
Wn && Wn(e, null);
|
|
476
476
|
let n = u.length;
|
|
477
477
|
for (; n--; ) {
|
|
@@ -495,7 +495,7 @@ function Be(e) {
|
|
|
495
495
|
Se(e, t) && (Array.isArray(n) ? u[t] = na(n) : n && typeof n == "object" && n.constructor === Object ? u[t] = Be(n) : u[t] = n);
|
|
496
496
|
return u;
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function Au(e, u) {
|
|
499
499
|
for (; e !== null; ) {
|
|
500
500
|
const n = Qi(e, u);
|
|
501
501
|
if (n) {
|
|
@@ -511,7 +511,7 @@ function Eu(e, u) {
|
|
|
511
511
|
}
|
|
512
512
|
return t;
|
|
513
513
|
}
|
|
514
|
-
const Yn = ke(["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"]),
|
|
514
|
+
const Yn = ke(["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 = ke(["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 = ke(["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"]), ra = ke(["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 = ke(["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"]), oa = ke(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Xn = ke(["#text"]), Qn = ke(["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"]), It = ke(["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 = ke(["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 = ke(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), ia = De(/\{\{[\w\W]*|[\w\W]*\}\}/gm), aa = De(/<%[\w\W]*|[\w\W]*%>/gm), ca = De(/\$\{[\w\W]*/gm), sa = De(/^data-[\-\w.\u00B7-\uFFFF]+$/), la = De(/^aria-[\-\w]+$/), qr = De(
|
|
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
|
), fa = De(/^(?:\w+script|data):/i), da = De(
|
|
@@ -531,7 +531,7 @@ var Kn = /* @__PURE__ */ Object.freeze({
|
|
|
531
531
|
MUSTACHE_EXPR: ia,
|
|
532
532
|
TMPLIT_EXPR: ca
|
|
533
533
|
});
|
|
534
|
-
const
|
|
534
|
+
const wu = {
|
|
535
535
|
element: 1,
|
|
536
536
|
text: 3,
|
|
537
537
|
// Deprecated
|
|
@@ -575,7 +575,7 @@ const Au = {
|
|
|
575
575
|
function Hr() {
|
|
576
576
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ha();
|
|
577
577
|
const u = (L) => Hr(L);
|
|
578
|
-
if (u.version = "3.2.6", u.removed = [], !e || !e.document || e.document.nodeType !==
|
|
578
|
+
if (u.version = "3.2.6", u.removed = [], !e || !e.document || e.document.nodeType !== wu.document || !e.Element)
|
|
579
579
|
return u.isSupported = !1, u;
|
|
580
580
|
let {
|
|
581
581
|
document: t
|
|
@@ -590,7 +590,7 @@ function Hr() {
|
|
|
590
590
|
HTMLFormElement: f,
|
|
591
591
|
DOMParser: _,
|
|
592
592
|
trustedTypes: x
|
|
593
|
-
} = e, d = c.prototype, E =
|
|
593
|
+
} = e, d = c.prototype, E = Au(d, "cloneNode"), A = Au(d, "remove"), y = Au(d, "nextSibling"), h = Au(d, "childNodes"), p = Au(d, "parentNode");
|
|
594
594
|
if (typeof a == "function") {
|
|
595
595
|
const L = t.createElement("template");
|
|
596
596
|
L.content && L.content.ownerDocument && (t = L.content.ownerDocument);
|
|
@@ -619,9 +619,9 @@ function Hr() {
|
|
|
619
619
|
let {
|
|
620
620
|
IS_ALLOWED_URI: z
|
|
621
621
|
} = Kn, T = null;
|
|
622
|
-
const V = U({}, [...Yn, ...
|
|
622
|
+
const V = U({}, [...Yn, ...Mt, ...Lt, ...Nt, ...Xn]);
|
|
623
623
|
let $ = null;
|
|
624
|
-
const Z = U({}, [...Qn, ...
|
|
624
|
+
const Z = U({}, [...Qn, ...It, ...Jn, ...Ju]);
|
|
625
625
|
let j = Object.seal(Ur(null, {
|
|
626
626
|
tagNameCheck: {
|
|
627
627
|
writable: !0,
|
|
@@ -641,47 +641,47 @@ function Hr() {
|
|
|
641
641
|
enumerable: !0,
|
|
642
642
|
value: !1
|
|
643
643
|
}
|
|
644
|
-
})), te = null, Ce = null,
|
|
644
|
+
})), te = null, Ce = null, tu = !0, nu = !0, ru = !1, Ke = !0, He = !1, Ge = !0, eu = !1, At = !1, wt = !1, ou = !1, qu = !1, ju = !1, An = !0, wn = !1;
|
|
645
645
|
const yo = "user-content-";
|
|
646
|
-
let
|
|
646
|
+
let Ct = !0, xu = !1, iu = {}, au = null;
|
|
647
647
|
const Cn = U({}, ["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 = U({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
650
|
-
let
|
|
651
|
-
const Sn = U({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]),
|
|
652
|
-
let
|
|
653
|
-
const Eo = U({}, [
|
|
654
|
-
let
|
|
650
|
+
let Dt = null;
|
|
651
|
+
const Sn = U({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Hu = "http://www.w3.org/1998/Math/MathML", Gu = "http://www.w3.org/2000/svg", Ie = "http://www.w3.org/1999/xhtml";
|
|
652
|
+
let cu = Ie, Ft = !1, St = null;
|
|
653
|
+
const Eo = U({}, [Hu, Gu, Ie], Ot);
|
|
654
|
+
let Wu = U({}, ["mi", "mo", "mn", "ms", "mtext"]), Vu = U({}, ["annotation-xml"]);
|
|
655
655
|
const Ao = U({}, ["title", "style", "font", "a", "script"]);
|
|
656
|
-
let
|
|
656
|
+
let ku = null;
|
|
657
657
|
const wo = ["application/xhtml+xml", "text/html"], Co = "text/html";
|
|
658
|
-
let ne = null,
|
|
658
|
+
let ne = null, su = null;
|
|
659
659
|
const Do = t.createElement("form"), Tn = function(b) {
|
|
660
660
|
return b instanceof RegExp || b instanceof Function;
|
|
661
|
-
},
|
|
661
|
+
}, Tt = function() {
|
|
662
662
|
let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
663
|
-
if (!(
|
|
664
|
-
if ((!b || typeof b != "object") && (b = {}), b = Be(b),
|
|
665
|
-
wo.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? Co : b.PARSER_MEDIA_TYPE, ne =
|
|
663
|
+
if (!(su && su === b)) {
|
|
664
|
+
if ((!b || typeof b != "object") && (b = {}), b = Be(b), ku = // eslint-disable-next-line unicorn/prefer-includes
|
|
665
|
+
wo.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? Co : b.PARSER_MEDIA_TYPE, ne = ku === "application/xhtml+xml" ? Ot : ot, T = Se(b, "ALLOWED_TAGS") ? U({}, b.ALLOWED_TAGS, ne) : V, $ = Se(b, "ALLOWED_ATTR") ? U({}, b.ALLOWED_ATTR, ne) : Z, St = Se(b, "ALLOWED_NAMESPACES") ? U({}, b.ALLOWED_NAMESPACES, Ot) : Eo, Dt = Se(b, "ADD_URI_SAFE_ATTR") ? U(Be(Sn), b.ADD_URI_SAFE_ATTR, ne) : Sn, Dn = Se(b, "ADD_DATA_URI_TAGS") ? U(Be(Fn), b.ADD_DATA_URI_TAGS, ne) : Fn, au = Se(b, "FORBID_CONTENTS") ? U({}, b.FORBID_CONTENTS, ne) : Cn, te = Se(b, "FORBID_TAGS") ? U({}, b.FORBID_TAGS, ne) : Be({}), Ce = Se(b, "FORBID_ATTR") ? U({}, b.FORBID_ATTR, ne) : Be({}), iu = Se(b, "USE_PROFILES") ? b.USE_PROFILES : !1, tu = b.ALLOW_ARIA_ATTR !== !1, nu = b.ALLOW_DATA_ATTR !== !1, ru = b.ALLOW_UNKNOWN_PROTOCOLS || !1, Ke = b.ALLOW_SELF_CLOSE_IN_ATTR !== !1, He = b.SAFE_FOR_TEMPLATES || !1, Ge = b.SAFE_FOR_XML !== !1, eu = b.WHOLE_DOCUMENT || !1, ou = b.RETURN_DOM || !1, qu = b.RETURN_DOM_FRAGMENT || !1, ju = b.RETURN_TRUSTED_TYPE || !1, wt = b.FORCE_BODY || !1, An = b.SANITIZE_DOM !== !1, wn = b.SANITIZE_NAMED_PROPS || !1, Ct = b.KEEP_CONTENT !== !1, xu = b.IN_PLACE || !1, z = b.ALLOWED_URI_REGEXP || qr, cu = b.NAMESPACE || Ie, Wu = b.MATHML_TEXT_INTEGRATION_POINTS || Wu, Vu = b.HTML_INTEGRATION_POINTS || Vu, j = b.CUSTOM_ELEMENT_HANDLING || {}, b.CUSTOM_ELEMENT_HANDLING && Tn(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (j.tagNameCheck = b.CUSTOM_ELEMENT_HANDLING.tagNameCheck), b.CUSTOM_ELEMENT_HANDLING && Tn(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (j.attributeNameCheck = b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), b.CUSTOM_ELEMENT_HANDLING && typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (j.allowCustomizedBuiltInElements = b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), He && (nu = !1), qu && (ou = !0), iu && (T = U({}, Xn), $ = [], iu.html === !0 && (U(T, Yn), U($, Qn)), iu.svg === !0 && (U(T, Mt), U($, It), U($, Ju)), iu.svgFilters === !0 && (U(T, Lt), U($, It), U($, Ju)), iu.mathMl === !0 && (U(T, Nt), U($, Jn), U($, Ju))), b.ADD_TAGS && (T === V && (T = Be(T)), U(T, b.ADD_TAGS, ne)), b.ADD_ATTR && ($ === Z && ($ = Be($)), U($, b.ADD_ATTR, ne)), b.ADD_URI_SAFE_ATTR && U(Dt, b.ADD_URI_SAFE_ATTR, ne), b.FORBID_CONTENTS && (au === Cn && (au = Be(au)), U(au, b.FORBID_CONTENTS, ne)), Ct && (T["#text"] = !0), eu && U(T, ["html", "head", "body"]), T.table && (U(T, ["tbody"]), delete te.tbody), b.TRUSTED_TYPES_POLICY) {
|
|
666
666
|
if (typeof b.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
667
|
-
throw
|
|
667
|
+
throw Eu('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
668
668
|
if (typeof b.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
669
|
-
throw
|
|
669
|
+
throw Eu('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
670
670
|
g = b.TRUSTED_TYPES_POLICY, m = g.createHTML("");
|
|
671
671
|
} else
|
|
672
672
|
g === void 0 && (g = ba(x, r)), g !== null && typeof m == "string" && (m = g.createHTML(""));
|
|
673
|
-
ke && ke(b),
|
|
673
|
+
ke && ke(b), su = b;
|
|
674
674
|
}
|
|
675
|
-
}, Pn = U({}, [...
|
|
675
|
+
}, Pn = U({}, [...Mt, ...Lt, ...ra]), Rn = U({}, [...Nt, ...oa]), Fo = function(b) {
|
|
676
676
|
let F = p(b);
|
|
677
677
|
(!F || !F.tagName) && (F = {
|
|
678
|
-
namespaceURI:
|
|
678
|
+
namespaceURI: cu,
|
|
679
679
|
tagName: "template"
|
|
680
680
|
});
|
|
681
|
-
const O =
|
|
682
|
-
return
|
|
681
|
+
const O = ot(b.tagName), K = ot(F.tagName);
|
|
682
|
+
return St[b.namespaceURI] ? b.namespaceURI === Gu ? F.namespaceURI === Ie ? O === "svg" : F.namespaceURI === Hu ? O === "svg" && (K === "annotation-xml" || Wu[K]) : !!Pn[O] : b.namespaceURI === Hu ? F.namespaceURI === Ie ? O === "math" : F.namespaceURI === Gu ? O === "math" && Vu[K] : !!Rn[O] : b.namespaceURI === Ie ? F.namespaceURI === Gu && !Vu[K] || F.namespaceURI === Hu && !Wu[K] ? !1 : !Rn[O] && (Ao[O] || !Pn[O]) : !!(ku === "application/xhtml+xml" && St[b.namespaceURI]) : !1;
|
|
683
683
|
}, Pe = function(b) {
|
|
684
|
-
|
|
684
|
+
vu(u.removed, {
|
|
685
685
|
element: b
|
|
686
686
|
});
|
|
687
687
|
try {
|
|
@@ -689,20 +689,20 @@ function Hr() {
|
|
|
689
689
|
} catch {
|
|
690
690
|
A(b);
|
|
691
691
|
}
|
|
692
|
-
},
|
|
692
|
+
}, lu = function(b, F) {
|
|
693
693
|
try {
|
|
694
|
-
|
|
694
|
+
vu(u.removed, {
|
|
695
695
|
attribute: F.getAttributeNode(b),
|
|
696
696
|
from: F
|
|
697
697
|
});
|
|
698
698
|
} catch {
|
|
699
|
-
|
|
699
|
+
vu(u.removed, {
|
|
700
700
|
attribute: null,
|
|
701
701
|
from: F
|
|
702
702
|
});
|
|
703
703
|
}
|
|
704
704
|
if (F.removeAttribute(b), b === "is")
|
|
705
|
-
if (
|
|
705
|
+
if (ou || qu)
|
|
706
706
|
try {
|
|
707
707
|
Pe(F);
|
|
708
708
|
} catch {
|
|
@@ -714,28 +714,28 @@ function Hr() {
|
|
|
714
714
|
}
|
|
715
715
|
}, On = function(b) {
|
|
716
716
|
let F = null, O = null;
|
|
717
|
-
if (
|
|
717
|
+
if (wt)
|
|
718
718
|
b = "<remove></remove>" + b;
|
|
719
719
|
else {
|
|
720
720
|
const ue = Zn(b, /^[\r\n\t ]+/);
|
|
721
721
|
O = ue && ue[0];
|
|
722
722
|
}
|
|
723
|
-
|
|
723
|
+
ku === "application/xhtml+xml" && cu === Ie && (b = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + b + "</body></html>");
|
|
724
724
|
const K = g ? g.createHTML(b) : b;
|
|
725
|
-
if (
|
|
725
|
+
if (cu === Ie)
|
|
726
726
|
try {
|
|
727
|
-
F = new _().parseFromString(K,
|
|
727
|
+
F = new _().parseFromString(K, ku);
|
|
728
728
|
} catch {
|
|
729
729
|
}
|
|
730
730
|
if (!F || !F.documentElement) {
|
|
731
|
-
F = k.createDocument(
|
|
731
|
+
F = k.createDocument(cu, "template", null);
|
|
732
732
|
try {
|
|
733
|
-
F.documentElement.innerHTML =
|
|
733
|
+
F.documentElement.innerHTML = Ft ? m : K;
|
|
734
734
|
} catch {
|
|
735
735
|
}
|
|
736
736
|
}
|
|
737
737
|
const fe = F.body || F.documentElement;
|
|
738
|
-
return b && O && fe.insertBefore(t.createTextNode(O), fe.childNodes[0] || null),
|
|
738
|
+
return b && O && fe.insertBefore(t.createTextNode(O), fe.childNodes[0] || null), cu === Ie ? D.call(F, eu ? "html" : "body")[0] : eu ? F.documentElement : fe;
|
|
739
739
|
}, Mn = function(b) {
|
|
740
740
|
return w.call(
|
|
741
741
|
b.ownerDocument || b,
|
|
@@ -744,30 +744,30 @@ function Hr() {
|
|
|
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(b) {
|
|
748
748
|
return b instanceof f && (typeof b.nodeName != "string" || typeof b.textContent != "string" || typeof b.removeChild != "function" || !(b.attributes instanceof l) || typeof b.removeAttribute != "function" || typeof b.setAttribute != "function" || typeof b.namespaceURI != "string" || typeof b.insertBefore != "function" || typeof b.hasChildNodes != "function");
|
|
749
749
|
}, Ln = function(b) {
|
|
750
750
|
return typeof i == "function" && b instanceof i;
|
|
751
751
|
};
|
|
752
752
|
function ze(L, b, F) {
|
|
753
|
-
|
|
754
|
-
O.call(u, b, F,
|
|
753
|
+
Qu(L, (O) => {
|
|
754
|
+
O.call(u, b, F, su);
|
|
755
755
|
});
|
|
756
756
|
}
|
|
757
757
|
const Nn = function(b) {
|
|
758
758
|
let F = null;
|
|
759
|
-
if (ze(B.beforeSanitizeElements, b, null),
|
|
759
|
+
if (ze(B.beforeSanitizeElements, b, null), Pt(b))
|
|
760
760
|
return Pe(b), !0;
|
|
761
761
|
const O = ne(b.nodeName);
|
|
762
762
|
if (ze(B.uponSanitizeElement, b, {
|
|
763
763
|
tagName: O,
|
|
764
764
|
allowedTags: T
|
|
765
|
-
}), Ge && b.hasChildNodes() && !Ln(b.firstElementChild) && me(/<[/\w!]/g, b.innerHTML) && me(/<[/\w!]/g, b.textContent) || b.nodeType ===
|
|
765
|
+
}), Ge && b.hasChildNodes() && !Ln(b.firstElementChild) && me(/<[/\w!]/g, b.innerHTML) && me(/<[/\w!]/g, b.textContent) || b.nodeType === wu.progressingInstruction || Ge && b.nodeType === wu.comment && me(/<[/\w]/g, b.data))
|
|
766
766
|
return Pe(b), !0;
|
|
767
767
|
if (!T[O] || te[O]) {
|
|
768
768
|
if (!te[O] && zn(O) && (j.tagNameCheck instanceof RegExp && me(j.tagNameCheck, O) || j.tagNameCheck instanceof Function && j.tagNameCheck(O)))
|
|
769
769
|
return !1;
|
|
770
|
-
if (
|
|
770
|
+
if (Ct && !au[O]) {
|
|
771
771
|
const K = p(b) || b.parentNode, fe = h(b) || b.childNodes;
|
|
772
772
|
if (fe && K) {
|
|
773
773
|
const ue = fe.length;
|
|
@@ -779,16 +779,16 @@ function Hr() {
|
|
|
779
779
|
}
|
|
780
780
|
return Pe(b), !0;
|
|
781
781
|
}
|
|
782
|
-
return b instanceof c && !Fo(b) || (O === "noscript" || O === "noembed" || O === "noframes") && me(/<\/no(script|embed|frames)/i, b.innerHTML) ? (Pe(b), !0) : (He && b.nodeType ===
|
|
783
|
-
F =
|
|
784
|
-
}), b.textContent !== F && (
|
|
782
|
+
return b instanceof c && !Fo(b) || (O === "noscript" || O === "noembed" || O === "noframes") && me(/<\/no(script|embed|frames)/i, b.innerHTML) ? (Pe(b), !0) : (He && b.nodeType === wu.text && (F = b.textContent, Qu([J, le, S], (K) => {
|
|
783
|
+
F = yu(F, K, " ");
|
|
784
|
+
}), b.textContent !== F && (vu(u.removed, {
|
|
785
785
|
element: b.cloneNode()
|
|
786
786
|
}), b.textContent = F)), ze(B.afterSanitizeElements, b, null), !1);
|
|
787
787
|
}, In = function(b, F, O) {
|
|
788
788
|
if (An && (F === "id" || F === "name") && (O in t || O in Do))
|
|
789
789
|
return !1;
|
|
790
|
-
if (!(
|
|
791
|
-
if (!(
|
|
790
|
+
if (!(nu && !Ce[F] && me(q, F))) {
|
|
791
|
+
if (!(tu && me(be, F))) {
|
|
792
792
|
if (!$[F] || Ce[F]) {
|
|
793
793
|
if (
|
|
794
794
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
@@ -798,10 +798,10 @@ function Hr() {
|
|
|
798
798
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
799
799
|
F === "is" && j.allowCustomizedBuiltInElements && (j.tagNameCheck instanceof RegExp && me(j.tagNameCheck, O) || j.tagNameCheck instanceof Function && j.tagNameCheck(O)))
|
|
800
800
|
) return !1;
|
|
801
|
-
} else if (!
|
|
802
|
-
if (!me(z,
|
|
801
|
+
} else if (!Dt[F]) {
|
|
802
|
+
if (!me(z, yu(O, W, ""))) {
|
|
803
803
|
if (!((F === "src" || F === "xlink:href" || F === "href") && b !== "script" && ea(O, "data:") === 0 && Dn[b])) {
|
|
804
|
-
if (!(
|
|
804
|
+
if (!(ru && !me(ee, yu(O, W, "")))) {
|
|
805
805
|
if (O)
|
|
806
806
|
return !1;
|
|
807
807
|
}
|
|
@@ -818,7 +818,7 @@ function Hr() {
|
|
|
818
818
|
const {
|
|
819
819
|
attributes: F
|
|
820
820
|
} = b;
|
|
821
|
-
if (!F ||
|
|
821
|
+
if (!F || Pt(b))
|
|
822
822
|
return;
|
|
823
823
|
const O = {
|
|
824
824
|
attrName: "",
|
|
@@ -833,32 +833,32 @@ function Hr() {
|
|
|
833
833
|
name: ue,
|
|
834
834
|
namespaceURI: ve,
|
|
835
835
|
value: $e
|
|
836
|
-
} = fe,
|
|
837
|
-
let de = ue === "value" ?
|
|
838
|
-
if (O.attrName =
|
|
839
|
-
|
|
836
|
+
} = fe, _u = ne(ue), Rt = $e;
|
|
837
|
+
let de = ue === "value" ? Rt : ua(Rt);
|
|
838
|
+
if (O.attrName = _u, O.attrValue = de, O.keepAttr = !0, O.forceKeepAttr = void 0, ze(B.uponSanitizeAttribute, b, O), de = O.attrValue, wn && (_u === "id" || _u === "name") && (lu(ue, b), de = yo + de), Ge && me(/((--!?|])>)|<\/(style|title)/i, de)) {
|
|
839
|
+
lu(ue, b);
|
|
840
840
|
continue;
|
|
841
841
|
}
|
|
842
842
|
if (O.forceKeepAttr)
|
|
843
843
|
continue;
|
|
844
844
|
if (!O.keepAttr) {
|
|
845
|
-
|
|
845
|
+
lu(ue, b);
|
|
846
846
|
continue;
|
|
847
847
|
}
|
|
848
|
-
if (!
|
|
849
|
-
|
|
848
|
+
if (!Ke && me(/\/>/i, de)) {
|
|
849
|
+
lu(ue, b);
|
|
850
850
|
continue;
|
|
851
851
|
}
|
|
852
|
-
He &&
|
|
853
|
-
de =
|
|
852
|
+
He && Qu([J, le, S], (Un) => {
|
|
853
|
+
de = yu(de, Un, " ");
|
|
854
854
|
});
|
|
855
855
|
const Bn = ne(b.nodeName);
|
|
856
|
-
if (!In(Bn,
|
|
857
|
-
|
|
856
|
+
if (!In(Bn, _u, de)) {
|
|
857
|
+
lu(ue, b);
|
|
858
858
|
continue;
|
|
859
859
|
}
|
|
860
860
|
if (g && typeof x == "object" && typeof x.getAttributeType == "function" && !ve)
|
|
861
|
-
switch (x.getAttributeType(Bn,
|
|
861
|
+
switch (x.getAttributeType(Bn, _u)) {
|
|
862
862
|
case "TrustedHTML": {
|
|
863
863
|
de = g.createHTML(de);
|
|
864
864
|
break;
|
|
@@ -868,11 +868,11 @@ function Hr() {
|
|
|
868
868
|
break;
|
|
869
869
|
}
|
|
870
870
|
}
|
|
871
|
-
if (de !==
|
|
871
|
+
if (de !== Rt)
|
|
872
872
|
try {
|
|
873
|
-
ve ? b.setAttributeNS(ve, ue, de) : b.setAttribute(ue, de),
|
|
873
|
+
ve ? b.setAttributeNS(ve, ue, de) : b.setAttribute(ue, de), Pt(b) ? Pe(b) : Vn(u.removed);
|
|
874
874
|
} catch {
|
|
875
|
-
|
|
875
|
+
lu(ue, b);
|
|
876
876
|
}
|
|
877
877
|
}
|
|
878
878
|
ze(B.afterSanitizeAttributes, b, null);
|
|
@@ -885,59 +885,59 @@ function Hr() {
|
|
|
885
885
|
};
|
|
886
886
|
return u.sanitize = function(L) {
|
|
887
887
|
let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, F = null, O = null, K = null, fe = null;
|
|
888
|
-
if (
|
|
888
|
+
if (Ft = !L, Ft && (L = "<!-->"), typeof L != "string" && !Ln(L))
|
|
889
889
|
if (typeof L.toString == "function") {
|
|
890
890
|
if (L = L.toString(), typeof L != "string")
|
|
891
|
-
throw
|
|
891
|
+
throw Eu("dirty is not a string, aborting");
|
|
892
892
|
} else
|
|
893
|
-
throw
|
|
893
|
+
throw Eu("toString is not a function");
|
|
894
894
|
if (!u.isSupported)
|
|
895
895
|
return L;
|
|
896
|
-
if (
|
|
896
|
+
if (At || Tt(b), u.removed = [], typeof L == "string" && (xu = !1), xu) {
|
|
897
897
|
if (L.nodeName) {
|
|
898
898
|
const $e = ne(L.nodeName);
|
|
899
899
|
if (!T[$e] || te[$e])
|
|
900
|
-
throw
|
|
900
|
+
throw Eu("root node is forbidden and cannot be sanitized in-place");
|
|
901
901
|
}
|
|
902
902
|
} else if (L instanceof i)
|
|
903
|
-
F = On("<!---->"), O = F.ownerDocument.importNode(L, !0), O.nodeType ===
|
|
903
|
+
F = On("<!---->"), O = F.ownerDocument.importNode(L, !0), O.nodeType === wu.element && O.nodeName === "BODY" || O.nodeName === "HTML" ? F = O : F.appendChild(O);
|
|
904
904
|
else {
|
|
905
|
-
if (!
|
|
905
|
+
if (!ou && !He && !eu && // eslint-disable-next-line unicorn/prefer-includes
|
|
906
906
|
L.indexOf("<") === -1)
|
|
907
|
-
return g &&
|
|
907
|
+
return g && ju ? g.createHTML(L) : L;
|
|
908
908
|
if (F = On(L), !F)
|
|
909
|
-
return
|
|
909
|
+
return ou ? null : ju ? m : "";
|
|
910
910
|
}
|
|
911
|
-
F &&
|
|
912
|
-
const ue = Mn(
|
|
911
|
+
F && wt && Pe(F.firstChild);
|
|
912
|
+
const ue = Mn(xu ? L : F);
|
|
913
913
|
for (; K = ue.nextNode(); )
|
|
914
914
|
Nn(K), $n(K), K.content instanceof o && So(K.content);
|
|
915
|
-
if (
|
|
915
|
+
if (xu)
|
|
916
916
|
return L;
|
|
917
|
-
if (
|
|
918
|
-
if (
|
|
917
|
+
if (ou) {
|
|
918
|
+
if (qu)
|
|
919
919
|
for (fe = P.call(F.ownerDocument); F.firstChild; )
|
|
920
920
|
fe.appendChild(F.firstChild);
|
|
921
921
|
else
|
|
922
922
|
fe = F;
|
|
923
923
|
return ($.shadowroot || $.shadowrootmode) && (fe = I.call(n, fe, !0)), fe;
|
|
924
924
|
}
|
|
925
|
-
let ve =
|
|
926
|
-
return
|
|
927
|
-
` + ve), He &&
|
|
928
|
-
ve =
|
|
929
|
-
}), g &&
|
|
925
|
+
let ve = eu ? F.outerHTML : F.innerHTML;
|
|
926
|
+
return eu && T["!doctype"] && F.ownerDocument && F.ownerDocument.doctype && F.ownerDocument.doctype.name && me(jr, F.ownerDocument.doctype.name) && (ve = "<!DOCTYPE " + F.ownerDocument.doctype.name + `>
|
|
927
|
+
` + ve), He && Qu([J, le, S], ($e) => {
|
|
928
|
+
ve = yu(ve, $e, " ");
|
|
929
|
+
}), g && ju ? g.createHTML(ve) : ve;
|
|
930
930
|
}, u.setConfig = function() {
|
|
931
931
|
let L = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
932
|
-
|
|
932
|
+
Tt(L), At = !0;
|
|
933
933
|
}, u.clearConfig = function() {
|
|
934
|
-
|
|
934
|
+
su = null, At = !1;
|
|
935
935
|
}, u.isValidAttribute = function(L, b, F) {
|
|
936
|
-
|
|
936
|
+
su || Tt({});
|
|
937
937
|
const O = ne(L), K = ne(b);
|
|
938
938
|
return In(O, K, F);
|
|
939
939
|
}, u.addHook = function(L, b) {
|
|
940
|
-
typeof b == "function" &&
|
|
940
|
+
typeof b == "function" && vu(B[L], b);
|
|
941
941
|
}, u.removeHook = function(L, b) {
|
|
942
942
|
if (b !== void 0) {
|
|
943
943
|
const F = Ji(B[L], b);
|
|
@@ -967,8 +967,8 @@ function ga(e) {
|
|
|
967
967
|
}
|
|
968
968
|
return u;
|
|
969
969
|
}
|
|
970
|
-
function
|
|
971
|
-
typeof u != "string" && (u =
|
|
970
|
+
function hu(e, u) {
|
|
971
|
+
typeof u != "string" && (u = hu.defaultChars);
|
|
972
972
|
const t = ga(u);
|
|
973
973
|
return e.replace(/(%[a-f0-9]{2})+/gi, function(n) {
|
|
974
974
|
let r = "";
|
|
@@ -1007,8 +1007,8 @@ function pu(e, u) {
|
|
|
1007
1007
|
return r;
|
|
1008
1008
|
});
|
|
1009
1009
|
}
|
|
1010
|
-
|
|
1011
|
-
|
|
1010
|
+
hu.defaultChars = ";/?:@&=+$,#";
|
|
1011
|
+
hu.componentChars = "";
|
|
1012
1012
|
const tr = {};
|
|
1013
1013
|
function xa(e) {
|
|
1014
1014
|
let u = tr[e];
|
|
@@ -1023,8 +1023,8 @@ function xa(e) {
|
|
|
1023
1023
|
u[e.charCodeAt(t)] = e[t];
|
|
1024
1024
|
return u;
|
|
1025
1025
|
}
|
|
1026
|
-
function
|
|
1027
|
-
typeof u != "string" && (t = u, u =
|
|
1026
|
+
function $u(e, u, t) {
|
|
1027
|
+
typeof u != "string" && (t = u, u = $u.defaultChars), typeof t > "u" && (t = !0);
|
|
1028
1028
|
const n = xa(u);
|
|
1029
1029
|
let r = "";
|
|
1030
1030
|
for (let o = 0, a = e.length; o < a; o++) {
|
|
@@ -1052,13 +1052,13 @@ function zu(e, u, t) {
|
|
|
1052
1052
|
}
|
|
1053
1053
|
return r;
|
|
1054
1054
|
}
|
|
1055
|
-
|
|
1056
|
-
|
|
1055
|
+
$u.defaultChars = ";/?:@&=+$,-_.!~*'()#";
|
|
1056
|
+
$u.componentChars = "-_.!~*'()";
|
|
1057
1057
|
function dn(e) {
|
|
1058
1058
|
let u = "";
|
|
1059
1059
|
return u += e.protocol || "", u += e.slashes ? "//" : "", u += e.auth ? e.auth + "@" : "", e.hostname && e.hostname.indexOf(":") !== -1 ? u += "[" + e.hostname + "]" : u += e.hostname || "", u += e.port ? ":" + e.port : "", u += e.pathname || "", u += e.search || "", u += e.hash || "", u;
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1061
|
+
function ft() {
|
|
1062
1062
|
this.protocol = null, this.slashes = null, this.auth = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.pathname = null;
|
|
1063
1063
|
}
|
|
1064
1064
|
const ka = /^([a-z0-9.+-]+:)/i, _a = /:[0-9]*$/, va = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, ya = ["<", ">", '"', "`", " ", "\r", `
|
|
@@ -1078,11 +1078,11 @@ const ka = /^([a-z0-9.+-]+:)/i, _a = /:[0-9]*$/, va = /^(\/\/?(?!\/)[^\?\s]*)(\?
|
|
|
1078
1078
|
"file:": !0
|
|
1079
1079
|
};
|
|
1080
1080
|
function pn(e, u) {
|
|
1081
|
-
if (e && e instanceof
|
|
1082
|
-
const t = new
|
|
1081
|
+
if (e && e instanceof ft) return e;
|
|
1082
|
+
const t = new ft();
|
|
1083
1083
|
return t.parse(e, u), t;
|
|
1084
1084
|
}
|
|
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
1088
|
const s = va.exec(o);
|
|
@@ -1125,14 +1125,14 @@ lt.prototype.parse = function(e, u) {
|
|
|
1125
1125
|
const c = o.indexOf("?");
|
|
1126
1126
|
return c !== -1 && (this.search = o.substr(c), o = o.slice(0, c)), o && (this.pathname = o), ar[t] && this.hostname && !this.pathname && (this.pathname = ""), this;
|
|
1127
1127
|
};
|
|
1128
|
-
|
|
1128
|
+
ft.prototype.parseHost = function(e) {
|
|
1129
1129
|
let u = _a.exec(e);
|
|
1130
1130
|
u && (u = u[0], u !== ":" && (this.port = u.substr(1)), e = e.substr(0, e.length - u.length)), e && (this.hostname = e);
|
|
1131
1131
|
};
|
|
1132
1132
|
const Da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1133
1133
|
__proto__: null,
|
|
1134
|
-
decode:
|
|
1135
|
-
encode:
|
|
1134
|
+
decode: hu,
|
|
1135
|
+
encode: $u,
|
|
1136
1136
|
format: dn,
|
|
1137
1137
|
parse: pn
|
|
1138
1138
|
}, Symbol.toStringTag, { value: "Module" })), Gr = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Wr = /[\0-\x1F\x7F-\x9F]/, Fa = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, hn = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, Vr = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, Zr = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, Sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1150,7 +1150,7 @@ const Da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1150
1150
|
// prettier-ignore
|
|
1151
1151
|
"Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e) => e.charCodeAt(0))
|
|
1152
1152
|
);
|
|
1153
|
-
var
|
|
1153
|
+
var zt;
|
|
1154
1154
|
const Ra = /* @__PURE__ */ new Map([
|
|
1155
1155
|
[0, 65533],
|
|
1156
1156
|
// C1 Unicode control character reference replacements
|
|
@@ -1183,7 +1183,7 @@ const Ra = /* @__PURE__ */ new Map([
|
|
|
1183
1183
|
[159, 376]
|
|
1184
1184
|
]), Oa = (
|
|
1185
1185
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
|
|
1186
|
-
(
|
|
1186
|
+
(zt = String.fromCodePoint) !== null && zt !== void 0 ? zt : function(e) {
|
|
1187
1187
|
let u = "";
|
|
1188
1188
|
return e > 65535 && (e -= 65536, u += String.fromCharCode(e >>> 10 & 1023 | 55296), e = 56320 | e & 1023), u += String.fromCharCode(e), u;
|
|
1189
1189
|
}
|
|
@@ -1197,10 +1197,10 @@ var ae;
|
|
|
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
|
})(ae || (ae = {}));
|
|
1199
1199
|
const La = 32;
|
|
1200
|
-
var
|
|
1200
|
+
var Xe;
|
|
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
|
+
})(Xe || (Xe = {}));
|
|
1204
1204
|
function un(e) {
|
|
1205
1205
|
return e >= ae.ZERO && e <= ae.NINE;
|
|
1206
1206
|
}
|
|
@@ -1217,13 +1217,13 @@ var re;
|
|
|
1217
1217
|
(function(e) {
|
|
1218
1218
|
e[e.EntityStart = 0] = "EntityStart", e[e.NumericStart = 1] = "NumericStart", e[e.NumericDecimal = 2] = "NumericDecimal", e[e.NumericHex = 3] = "NumericHex", e[e.NamedEntity = 4] = "NamedEntity";
|
|
1219
1219
|
})(re || (re = {}));
|
|
1220
|
-
var
|
|
1220
|
+
var Ze;
|
|
1221
1221
|
(function(e) {
|
|
1222
1222
|
e[e.Legacy = 0] = "Legacy", e[e.Strict = 1] = "Strict", e[e.Attribute = 2] = "Attribute";
|
|
1223
|
-
})(
|
|
1223
|
+
})(Ze || (Ze = {}));
|
|
1224
1224
|
class $a {
|
|
1225
1225
|
constructor(u, t, n) {
|
|
1226
|
-
this.decodeTree = u, this.emitCodePoint = t, this.errors = n, this.state = re.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode =
|
|
1226
|
+
this.decodeTree = u, this.emitCodePoint = t, this.errors = n, this.state = re.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = Ze.Strict;
|
|
1227
1227
|
}
|
|
1228
1228
|
/** Resets the instance to make it reusable. */
|
|
1229
1229
|
startEntity(u) {
|
|
@@ -1331,7 +1331,7 @@ class $a {
|
|
|
1331
1331
|
return (n = this.errors) === null || n === void 0 || n.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
1332
1332
|
if (u === ae.SEMI)
|
|
1333
1333
|
this.consumed += 1;
|
|
1334
|
-
else if (this.decodeMode ===
|
|
1334
|
+
else if (this.decodeMode === Ze.Strict)
|
|
1335
1335
|
return 0;
|
|
1336
1336
|
return this.emitCodePoint(Ma(this.result), this.consumed), this.errors && (u !== ae.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
1337
1337
|
}
|
|
@@ -1346,18 +1346,18 @@ class $a {
|
|
|
1346
1346
|
*/
|
|
1347
1347
|
stateNamedEntity(u, t) {
|
|
1348
1348
|
const { decodeTree: n } = this;
|
|
1349
|
-
let r = n[this.treeIndex], o = (r &
|
|
1349
|
+
let r = n[this.treeIndex], o = (r & Xe.VALUE_LENGTH) >> 14;
|
|
1350
1350
|
for (; t < u.length; t++, this.excess++) {
|
|
1351
1351
|
const a = u.charCodeAt(t);
|
|
1352
1352
|
if (this.treeIndex = Ba(n, r, this.treeIndex + Math.max(1, o), a), this.treeIndex < 0)
|
|
1353
1353
|
return this.result === 0 || // If we are parsing an attribute
|
|
1354
|
-
this.decodeMode ===
|
|
1354
|
+
this.decodeMode === Ze.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
1355
1355
|
(o === 0 || // And there should be no invalid characters.
|
|
1356
1356
|
za(a)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
1357
|
-
if (r = n[this.treeIndex], o = (r &
|
|
1357
|
+
if (r = n[this.treeIndex], o = (r & Xe.VALUE_LENGTH) >> 14, o !== 0) {
|
|
1358
1358
|
if (a === ae.SEMI)
|
|
1359
1359
|
return this.emitNamedEntityData(this.treeIndex, o, this.consumed + this.excess);
|
|
1360
|
-
this.decodeMode !==
|
|
1360
|
+
this.decodeMode !== Ze.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
1361
1361
|
}
|
|
1362
1362
|
}
|
|
1363
1363
|
return -1;
|
|
@@ -1369,7 +1369,7 @@ class $a {
|
|
|
1369
1369
|
*/
|
|
1370
1370
|
emitNotTerminatedNamedEntity() {
|
|
1371
1371
|
var u;
|
|
1372
|
-
const { result: t, decodeTree: n } = this, r = (n[t] &
|
|
1372
|
+
const { result: t, decodeTree: n } = this, r = (n[t] & Xe.VALUE_LENGTH) >> 14;
|
|
1373
1373
|
return this.emitNamedEntityData(t, r, this.consumed), (u = this.errors) === null || u === void 0 || u.missingSemicolonAfterCharacterReference(), this.consumed;
|
|
1374
1374
|
}
|
|
1375
1375
|
/**
|
|
@@ -1383,7 +1383,7 @@ class $a {
|
|
|
1383
1383
|
*/
|
|
1384
1384
|
emitNamedEntityData(u, t, n) {
|
|
1385
1385
|
const { decodeTree: r } = this;
|
|
1386
|
-
return this.emitCodePoint(t === 1 ? r[u] & ~
|
|
1386
|
+
return this.emitCodePoint(t === 1 ? r[u] & ~Xe.VALUE_LENGTH : r[u + 1], n), t === 3 && this.emitCodePoint(r[u + 2], n), n;
|
|
1387
1387
|
}
|
|
1388
1388
|
/**
|
|
1389
1389
|
* Signal to the parser that the end of the input was reached.
|
|
@@ -1396,7 +1396,7 @@ class $a {
|
|
|
1396
1396
|
var u;
|
|
1397
1397
|
switch (this.state) {
|
|
1398
1398
|
case re.NamedEntity:
|
|
1399
|
-
return this.result !== 0 && (this.decodeMode !==
|
|
1399
|
+
return this.result !== 0 && (this.decodeMode !== Ze.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
1400
1400
|
// Otherwise, emit a numeric entity if we have one.
|
|
1401
1401
|
case re.NumericDecimal:
|
|
1402
1402
|
return this.emitNumericEntity(0, 2);
|
|
@@ -1432,7 +1432,7 @@ function Yr(e) {
|
|
|
1432
1432
|
};
|
|
1433
1433
|
}
|
|
1434
1434
|
function Ba(e, u, t, n) {
|
|
1435
|
-
const r = (u &
|
|
1435
|
+
const r = (u & Xe.BRANCH_LENGTH) >> 7, o = u & Xe.JUMP_TABLE;
|
|
1436
1436
|
if (r === 0)
|
|
1437
1437
|
return o !== 0 && n === o ? t : -1;
|
|
1438
1438
|
if (o) {
|
|
@@ -1453,7 +1453,7 @@ function Ba(e, u, t, n) {
|
|
|
1453
1453
|
}
|
|
1454
1454
|
const Ua = Yr(Ta);
|
|
1455
1455
|
Yr(Pa);
|
|
1456
|
-
function Xr(e, u =
|
|
1456
|
+
function Xr(e, u = Ze.Legacy) {
|
|
1457
1457
|
return Ua(e, u);
|
|
1458
1458
|
}
|
|
1459
1459
|
function qa(e) {
|
|
@@ -1466,7 +1466,7 @@ const ja = Object.prototype.hasOwnProperty;
|
|
|
1466
1466
|
function Ha(e, u) {
|
|
1467
1467
|
return ja.call(e, u);
|
|
1468
1468
|
}
|
|
1469
|
-
function
|
|
1469
|
+
function _t(e) {
|
|
1470
1470
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
1471
1471
|
if (t) {
|
|
1472
1472
|
if (typeof t != "object")
|
|
@@ -1483,7 +1483,7 @@ function Qr(e, u, t) {
|
|
|
1483
1483
|
function mn(e) {
|
|
1484
1484
|
return !(e >= 55296 && e <= 57343 || e >= 64976 && e <= 65007 || (e & 65535) === 65535 || (e & 65535) === 65534 || e >= 0 && e <= 8 || e === 11 || e >= 14 && e <= 31 || e >= 127 && e <= 159 || e > 1114111);
|
|
1485
1485
|
}
|
|
1486
|
-
function
|
|
1486
|
+
function dt(e) {
|
|
1487
1487
|
if (e > 65535) {
|
|
1488
1488
|
e -= 65536;
|
|
1489
1489
|
const u = 55296 + (e >> 10), t = 56320 + (e & 1023);
|
|
@@ -1495,7 +1495,7 @@ const Jr = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, Ga = /&([a-z#][a-z0-9]{
|
|
|
1495
1495
|
function Za(e, u) {
|
|
1496
1496
|
if (u.charCodeAt(0) === 35 && Va.test(u)) {
|
|
1497
1497
|
const n = u[1].toLowerCase() === "x" ? parseInt(u.slice(2), 16) : parseInt(u.slice(1), 10);
|
|
1498
|
-
return mn(n) ?
|
|
1498
|
+
return mn(n) ? dt(n) : e;
|
|
1499
1499
|
}
|
|
1500
1500
|
const t = Xr(e);
|
|
1501
1501
|
return t !== e ? t : e;
|
|
@@ -1503,7 +1503,7 @@ function Za(e, u) {
|
|
|
1503
1503
|
function Ya(e) {
|
|
1504
1504
|
return e.indexOf("\\") < 0 ? e : e.replace(Jr, "$1");
|
|
1505
1505
|
}
|
|
1506
|
-
function
|
|
1506
|
+
function bu(e) {
|
|
1507
1507
|
return e.indexOf("\\") < 0 && e.indexOf("&") < 0 ? e : e.replace(Wa, function(u, t, n) {
|
|
1508
1508
|
return t || Za(u, n);
|
|
1509
1509
|
});
|
|
@@ -1517,7 +1517,7 @@ const Xa = /[&<>"]/, Qa = /[&<>"]/g, Ja = {
|
|
|
1517
1517
|
function Ka(e) {
|
|
1518
1518
|
return Ja[e];
|
|
1519
1519
|
}
|
|
1520
|
-
function
|
|
1520
|
+
function Je(e) {
|
|
1521
1521
|
return Xa.test(e) ? e.replace(Qa, Ka) : e;
|
|
1522
1522
|
}
|
|
1523
1523
|
const e0 = /[.?*+^$[\]\\(){}|-]/g;
|
|
@@ -1532,7 +1532,7 @@ function X(e) {
|
|
|
1532
1532
|
}
|
|
1533
1533
|
return !1;
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1535
|
+
function Pu(e) {
|
|
1536
1536
|
if (e >= 8192 && e <= 8202)
|
|
1537
1537
|
return !0;
|
|
1538
1538
|
switch (e) {
|
|
@@ -1556,10 +1556,10 @@ function Tu(e) {
|
|
|
1556
1556
|
}
|
|
1557
1557
|
return !1;
|
|
1558
1558
|
}
|
|
1559
|
-
function
|
|
1559
|
+
function Ru(e) {
|
|
1560
1560
|
return hn.test(e) || Vr.test(e);
|
|
1561
1561
|
}
|
|
1562
|
-
function
|
|
1562
|
+
function Ou(e) {
|
|
1563
1563
|
switch (e) {
|
|
1564
1564
|
case 33:
|
|
1565
1565
|
case 34:
|
|
@@ -1598,26 +1598,26 @@ function Ru(e) {
|
|
|
1598
1598
|
return !1;
|
|
1599
1599
|
}
|
|
1600
1600
|
}
|
|
1601
|
-
function
|
|
1601
|
+
function vt(e) {
|
|
1602
1602
|
return e = e.trim().replace(/\s+/g, " "), "ẞ".toLowerCase() === "Ṿ" && (e = e.replace(/ẞ/g, "ß")), e.toLowerCase().toUpperCase();
|
|
1603
1603
|
}
|
|
1604
1604
|
const t0 = { mdurl: Da, ucmicro: Sa }, n0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1605
1605
|
__proto__: null,
|
|
1606
1606
|
arrayReplaceAt: Qr,
|
|
1607
|
-
assign:
|
|
1608
|
-
escapeHtml:
|
|
1607
|
+
assign: _t,
|
|
1608
|
+
escapeHtml: Je,
|
|
1609
1609
|
escapeRE: u0,
|
|
1610
|
-
fromCodePoint:
|
|
1610
|
+
fromCodePoint: dt,
|
|
1611
1611
|
has: Ha,
|
|
1612
|
-
isMdAsciiPunct:
|
|
1613
|
-
isPunctChar:
|
|
1612
|
+
isMdAsciiPunct: Ou,
|
|
1613
|
+
isPunctChar: Ru,
|
|
1614
1614
|
isSpace: X,
|
|
1615
1615
|
isString: bn,
|
|
1616
1616
|
isValidEntityCode: mn,
|
|
1617
|
-
isWhiteSpace:
|
|
1617
|
+
isWhiteSpace: Pu,
|
|
1618
1618
|
lib: t0,
|
|
1619
|
-
normalizeReference:
|
|
1620
|
-
unescapeAll:
|
|
1619
|
+
normalizeReference: vt,
|
|
1620
|
+
unescapeAll: bu,
|
|
1621
1621
|
unescapeMd: Ya
|
|
1622
1622
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1623
1623
|
function r0(e, u, t) {
|
|
@@ -1650,7 +1650,7 @@ function o0(e, u, t) {
|
|
|
1650
1650
|
if (n = e.charCodeAt(r), n === 10 || n === 60)
|
|
1651
1651
|
return o;
|
|
1652
1652
|
if (n === 62)
|
|
1653
|
-
return o.pos = r + 1, o.str =
|
|
1653
|
+
return o.pos = r + 1, o.str = bu(e.slice(u + 1, r)), o.ok = !0, o;
|
|
1654
1654
|
if (n === 92 && r + 1 < t) {
|
|
1655
1655
|
r += 2;
|
|
1656
1656
|
continue;
|
|
@@ -1676,7 +1676,7 @@ function o0(e, u, t) {
|
|
|
1676
1676
|
}
|
|
1677
1677
|
r++;
|
|
1678
1678
|
}
|
|
1679
|
-
return u === r || a !== 0 || (o.str =
|
|
1679
|
+
return u === r || a !== 0 || (o.str = bu(e.slice(u, r)), o.pos = r, o.ok = !0), o;
|
|
1680
1680
|
}
|
|
1681
1681
|
function i0(e, u, t, n) {
|
|
1682
1682
|
let r, o = u;
|
|
@@ -1704,12 +1704,12 @@ function i0(e, u, t, n) {
|
|
|
1704
1704
|
}
|
|
1705
1705
|
for (; o < t; ) {
|
|
1706
1706
|
if (r = e.charCodeAt(o), r === a.marker)
|
|
1707
|
-
return a.pos = o + 1, a.str +=
|
|
1707
|
+
return a.pos = o + 1, a.str += bu(e.slice(u, o)), a.ok = !0, a;
|
|
1708
1708
|
if (r === 40 && a.marker === 41)
|
|
1709
1709
|
return a;
|
|
1710
1710
|
r === 92 && o + 1 < t && o++, o++;
|
|
1711
1711
|
}
|
|
1712
|
-
return a.can_continue = !0, a.str +=
|
|
1712
|
+
return a.can_continue = !0, a.str += bu(e.slice(u, o)), a;
|
|
1713
1713
|
}
|
|
1714
1714
|
const a0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1715
1715
|
__proto__: null,
|
|
@@ -1719,22 +1719,22 @@ const a0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1719
1719
|
}, Symbol.toStringTag, { value: "Module" })), Le = {};
|
|
1720
1720
|
Le.code_inline = function(e, u, t, n, r) {
|
|
1721
1721
|
const o = e[u];
|
|
1722
|
-
return "<code" + r.renderAttrs(o) + ">" +
|
|
1722
|
+
return "<code" + r.renderAttrs(o) + ">" + Je(o.content) + "</code>";
|
|
1723
1723
|
};
|
|
1724
1724
|
Le.code_block = function(e, u, t, n, r) {
|
|
1725
1725
|
const o = e[u];
|
|
1726
|
-
return "<pre" + r.renderAttrs(o) + "><code>" +
|
|
1726
|
+
return "<pre" + r.renderAttrs(o) + "><code>" + Je(e[u].content) + `</code></pre>
|
|
1727
1727
|
`;
|
|
1728
1728
|
};
|
|
1729
1729
|
Le.fence = function(e, u, t, n, r) {
|
|
1730
|
-
const o = e[u], a = o.info ?
|
|
1730
|
+
const o = e[u], a = o.info ? bu(o.info).trim() : "";
|
|
1731
1731
|
let i = "", c = "";
|
|
1732
1732
|
if (a) {
|
|
1733
1733
|
const l = a.split(/(\s+)/g);
|
|
1734
1734
|
i = l[0], c = l.slice(2).join("");
|
|
1735
1735
|
}
|
|
1736
1736
|
let s;
|
|
1737
|
-
if (t.highlight ? s = t.highlight(o.content, i, c) ||
|
|
1737
|
+
if (t.highlight ? s = t.highlight(o.content, i, c) || Je(o.content) : s = Je(o.content), s.indexOf("<pre") === 0)
|
|
1738
1738
|
return s + `
|
|
1739
1739
|
`;
|
|
1740
1740
|
if (a) {
|
|
@@ -1765,7 +1765,7 @@ Le.softbreak = function(e, u, t) {
|
|
|
1765
1765
|
`;
|
|
1766
1766
|
};
|
|
1767
1767
|
Le.text = function(e, u) {
|
|
1768
|
-
return
|
|
1768
|
+
return Je(e[u].content);
|
|
1769
1769
|
};
|
|
1770
1770
|
Le.html_block = function(e, u) {
|
|
1771
1771
|
return e[u].content;
|
|
@@ -1773,18 +1773,18 @@ Le.html_block = function(e, u) {
|
|
|
1773
1773
|
Le.html_inline = function(e, u) {
|
|
1774
1774
|
return e[u].content;
|
|
1775
1775
|
};
|
|
1776
|
-
function
|
|
1777
|
-
this.rules =
|
|
1776
|
+
function gu() {
|
|
1777
|
+
this.rules = _t({}, Le);
|
|
1778
1778
|
}
|
|
1779
|
-
|
|
1779
|
+
gu.prototype.renderAttrs = function(u) {
|
|
1780
1780
|
let t, n, r;
|
|
1781
1781
|
if (!u.attrs)
|
|
1782
1782
|
return "";
|
|
1783
1783
|
for (r = "", t = 0, n = u.attrs.length; t < n; t++)
|
|
1784
|
-
r += " " +
|
|
1784
|
+
r += " " + Je(u.attrs[t][0]) + '="' + Je(u.attrs[t][1]) + '"';
|
|
1785
1785
|
return r;
|
|
1786
1786
|
};
|
|
1787
|
-
|
|
1787
|
+
gu.prototype.renderToken = function(u, t, n) {
|
|
1788
1788
|
const r = u[t];
|
|
1789
1789
|
let o = "";
|
|
1790
1790
|
if (r.hidden)
|
|
@@ -1799,7 +1799,7 @@ mu.prototype.renderToken = function(u, t, n) {
|
|
|
1799
1799
|
return o += a ? `>
|
|
1800
1800
|
` : ">", o;
|
|
1801
1801
|
};
|
|
1802
|
-
|
|
1802
|
+
gu.prototype.renderInline = function(e, u, t) {
|
|
1803
1803
|
let n = "";
|
|
1804
1804
|
const r = this.rules;
|
|
1805
1805
|
for (let o = 0, a = e.length; o < a; o++) {
|
|
@@ -1808,7 +1808,7 @@ mu.prototype.renderInline = function(e, u, t) {
|
|
|
1808
1808
|
}
|
|
1809
1809
|
return n;
|
|
1810
1810
|
};
|
|
1811
|
-
|
|
1811
|
+
gu.prototype.renderInlineAsText = function(e, u, t) {
|
|
1812
1812
|
let n = "";
|
|
1813
1813
|
for (let r = 0, o = e.length; r < o; r++)
|
|
1814
1814
|
switch (e[r].type) {
|
|
@@ -1830,7 +1830,7 @@ mu.prototype.renderInlineAsText = function(e, u, t) {
|
|
|
1830
1830
|
}
|
|
1831
1831
|
return n;
|
|
1832
1832
|
};
|
|
1833
|
-
|
|
1833
|
+
gu.prototype.render = function(e, u, t) {
|
|
1834
1834
|
let n = "";
|
|
1835
1835
|
const r = this.rules;
|
|
1836
1836
|
for (let o = 0, a = e.length; o < a; o++) {
|
|
@@ -2062,7 +2062,7 @@ function y0(e) {
|
|
|
2062
2062
|
e.tokens[u].type === "inline" && (m0.test(e.tokens[u].content) && _0(e.tokens[u].children), eo.test(e.tokens[u].content) && v0(e.tokens[u].children));
|
|
2063
2063
|
}
|
|
2064
2064
|
const E0 = /['"]/, cr = /['"]/g, sr = "’";
|
|
2065
|
-
function
|
|
2065
|
+
function Ku(e, u, t) {
|
|
2066
2066
|
return e.slice(0, u) + t + e.slice(u + 1);
|
|
2067
2067
|
}
|
|
2068
2068
|
function A0(e, u) {
|
|
@@ -2102,9 +2102,9 @@ function A0(e, u) {
|
|
|
2102
2102
|
E = e[t].content.charCodeAt(0);
|
|
2103
2103
|
break;
|
|
2104
2104
|
}
|
|
2105
|
-
const A =
|
|
2105
|
+
const A = Ou(d) || Ru(String.fromCharCode(d)), y = Ou(E) || Ru(String.fromCharCode(E)), h = Pu(d), p = Pu(E);
|
|
2106
2106
|
if (p ? f = !1 : y && (h || A || (f = !1)), h ? _ = !1 : A && (p || y || (_ = !1)), E === 34 && l[0] === '"' && d >= 48 && d <= 57 && (_ = f = !1), f && _ && (f = A, _ = y), !f && !_) {
|
|
2107
|
-
x && (o.content =
|
|
2107
|
+
x && (o.content = Ku(o.content, l.index, sr));
|
|
2108
2108
|
continue;
|
|
2109
2109
|
}
|
|
2110
2110
|
if (_)
|
|
@@ -2115,7 +2115,7 @@ function A0(e, u) {
|
|
|
2115
2115
|
if (g.single === x && n[t].level === a) {
|
|
2116
2116
|
g = n[t];
|
|
2117
2117
|
let m, k;
|
|
2118
|
-
x ? (m = u.md.options.quotes[2], k = u.md.options.quotes[3]) : (m = u.md.options.quotes[0], k = u.md.options.quotes[1]), o.content =
|
|
2118
|
+
x ? (m = u.md.options.quotes[2], k = u.md.options.quotes[3]) : (m = u.md.options.quotes[0], k = u.md.options.quotes[1]), o.content = Ku(o.content, l.index, k), e[g.token].content = Ku(
|
|
2119
2119
|
e[g.token].content,
|
|
2120
2120
|
g.pos,
|
|
2121
2121
|
m
|
|
@@ -2128,7 +2128,7 @@ function A0(e, u) {
|
|
|
2128
2128
|
pos: l.index,
|
|
2129
2129
|
single: x,
|
|
2130
2130
|
level: a
|
|
2131
|
-
}) : _ && x && (o.content =
|
|
2131
|
+
}) : _ && x && (o.content = Ku(o.content, l.index, sr));
|
|
2132
2132
|
}
|
|
2133
2133
|
}
|
|
2134
2134
|
}
|
|
@@ -2150,7 +2150,7 @@ function C0(e) {
|
|
|
2150
2150
|
u !== t && (a.length = t);
|
|
2151
2151
|
}
|
|
2152
2152
|
}
|
|
2153
|
-
const
|
|
2153
|
+
const $t = [
|
|
2154
2154
|
["normalize", l0],
|
|
2155
2155
|
["block", f0],
|
|
2156
2156
|
["inline", d0],
|
|
@@ -2163,8 +2163,8 @@ const zt = [
|
|
|
2163
2163
|
];
|
|
2164
2164
|
function gn() {
|
|
2165
2165
|
this.ruler = new Ee();
|
|
2166
|
-
for (let e = 0; e <
|
|
2167
|
-
this.ruler.push(
|
|
2166
|
+
for (let e = 0; e < $t.length; e++)
|
|
2167
|
+
this.ruler.push($t[e][0], $t[e][1]);
|
|
2168
2168
|
}
|
|
2169
2169
|
gn.prototype.process = function(e) {
|
|
2170
2170
|
const u = this.ruler.getRules("");
|
|
@@ -2252,7 +2252,7 @@ Ne.prototype.getLines = function(u, t, n, r) {
|
|
|
2252
2252
|
};
|
|
2253
2253
|
Ne.prototype.Token = Te;
|
|
2254
2254
|
const D0 = 65536;
|
|
2255
|
-
function
|
|
2255
|
+
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
|
}
|
|
@@ -2284,7 +2284,7 @@ function F0(e, u, t, n) {
|
|
|
2284
2284
|
return !1;
|
|
2285
2285
|
o++;
|
|
2286
2286
|
}
|
|
2287
|
-
let c =
|
|
2287
|
+
let c = Bt(e, u + 1), s = c.split("|");
|
|
2288
2288
|
const l = [];
|
|
2289
2289
|
for (let g = 0; g < s.length; g++) {
|
|
2290
2290
|
const m = s[g].trim();
|
|
@@ -2297,7 +2297,7 @@ function F0(e, u, t, n) {
|
|
|
2297
2297
|
return !1;
|
|
2298
2298
|
m.charCodeAt(m.length - 1) === 58 ? l.push(m.charCodeAt(0) === 58 ? "center" : "right") : m.charCodeAt(0) === 58 ? l.push("left") : l.push("");
|
|
2299
2299
|
}
|
|
2300
|
-
if (c =
|
|
2300
|
+
if (c = Bt(e, u).trim(), c.indexOf("|") === -1 || e.sCount[u] - e.blkIndent >= 4)
|
|
2301
2301
|
return !1;
|
|
2302
2302
|
s = lr(c), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop();
|
|
2303
2303
|
const f = s.length;
|
|
@@ -2328,7 +2328,7 @@ function F0(e, u, t, n) {
|
|
|
2328
2328
|
g = !0;
|
|
2329
2329
|
break;
|
|
2330
2330
|
}
|
|
2331
|
-
if (g || (c =
|
|
2331
|
+
if (g || (c = Bt(e, r).trim(), !c) || e.sCount[r] - e.blkIndent >= 4 || (s = lr(c), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), p += f - s.length, p > D0))
|
|
2332
2332
|
break;
|
|
2333
2333
|
if (r === u + 2) {
|
|
2334
2334
|
const k = e.push("tbody_open", "tbody", 1);
|
|
@@ -2665,7 +2665,7 @@ function L0(e, u, t, n) {
|
|
|
2665
2665
|
}
|
|
2666
2666
|
if (r < o && c.charCodeAt(r) !== 10)
|
|
2667
2667
|
return !1;
|
|
2668
|
-
const y =
|
|
2668
|
+
const y = vt(c.slice(1, s));
|
|
2669
2669
|
return y ? (n || (typeof e.env.references > "u" && (e.env.references = {}), typeof e.env.references[y] > "u" && (e.env.references[y] = { title: A, href: f }), e.line = a), !0) : !1;
|
|
2670
2670
|
}
|
|
2671
2671
|
const N0 = [
|
|
@@ -2731,7 +2731,7 @@ const N0 = [
|
|
|
2731
2731
|
"tr",
|
|
2732
2732
|
"track",
|
|
2733
2733
|
"ul"
|
|
2734
|
-
], I0 = "[a-zA-Z_:][a-zA-Z0-9:._-]*", z0 = "[^\"'=<>`\\x00-\\x20]+", $0 = "'[^']*'", B0 = '"[^"]*"', U0 = "(?:" + z0 + "|" + $0 + "|" + B0 + ")", q0 = "(?:\\s+" + I0 + "(?:\\s*=\\s*" + U0 + ")?)", uo = "<[A-Za-z][A-Za-z0-9\\-]*" + q0 + "*\\s*\\/?>", to = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", j0 = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", H0 = "<[?][\\s\\S]*?[?]>", G0 = "<![A-Za-z][^>]*>", W0 = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", V0 = new RegExp("^(?:" + uo + "|" + to + "|" + j0 + "|" + H0 + "|" + G0 + "|" + W0 + ")"), Z0 = new RegExp("^(?:" + uo + "|" + to + ")"),
|
|
2734
|
+
], I0 = "[a-zA-Z_:][a-zA-Z0-9:._-]*", z0 = "[^\"'=<>`\\x00-\\x20]+", $0 = "'[^']*'", B0 = '"[^"]*"', U0 = "(?:" + z0 + "|" + $0 + "|" + B0 + ")", q0 = "(?:\\s+" + I0 + "(?:\\s*=\\s*" + U0 + ")?)", uo = "<[A-Za-z][A-Za-z0-9\\-]*" + q0 + "*\\s*\\/?>", to = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", j0 = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", H0 = "<[?][\\s\\S]*?[?]>", G0 = "<![A-Za-z][^>]*>", W0 = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", V0 = new RegExp("^(?:" + uo + "|" + to + "|" + j0 + "|" + H0 + "|" + G0 + "|" + W0 + ")"), Z0 = new RegExp("^(?:" + uo + "|" + to + ")"), fu = [
|
|
2735
2735
|
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
|
|
2736
2736
|
[/^<!--/, /-->/, !0],
|
|
2737
2737
|
[/^<\?/, /\?>/, !0],
|
|
@@ -2745,16 +2745,16 @@ function Y0(e, u, t, n) {
|
|
|
2745
2745
|
if (e.sCount[u] - e.blkIndent >= 4 || !e.md.options.html || e.src.charCodeAt(r) !== 60)
|
|
2746
2746
|
return !1;
|
|
2747
2747
|
let a = e.src.slice(r, o), i = 0;
|
|
2748
|
-
for (; i <
|
|
2748
|
+
for (; i < fu.length && !fu[i][0].test(a); i++)
|
|
2749
2749
|
;
|
|
2750
|
-
if (i ===
|
|
2750
|
+
if (i === fu.length)
|
|
2751
2751
|
return !1;
|
|
2752
2752
|
if (n)
|
|
2753
|
-
return
|
|
2753
|
+
return fu[i][2];
|
|
2754
2754
|
let c = u + 1;
|
|
2755
|
-
if (!
|
|
2755
|
+
if (!fu[i][1].test(a)) {
|
|
2756
2756
|
for (; c < t && !(e.sCount[c] < e.blkIndent); c++)
|
|
2757
|
-
if (r = e.bMarks[c] + e.tShift[c], o = e.eMarks[c], a = e.src.slice(r, o),
|
|
2757
|
+
if (r = e.bMarks[c] + e.tShift[c], o = e.eMarks[c], a = e.src.slice(r, o), fu[i][1].test(a)) {
|
|
2758
2758
|
a.length !== 0 && c++;
|
|
2759
2759
|
break;
|
|
2760
2760
|
}
|
|
@@ -2849,7 +2849,7 @@ function J0(e, u, t) {
|
|
|
2849
2849
|
const c = e.push("inline", "", 0);
|
|
2850
2850
|
return c.content = a, c.map = [u, e.line], c.children = [], e.push("paragraph_close", "p", -1), e.parentType = r, !0;
|
|
2851
2851
|
}
|
|
2852
|
-
const
|
|
2852
|
+
const et = [
|
|
2853
2853
|
// First 2 params - rule name & source. Secondary array - list of rules,
|
|
2854
2854
|
// which can be terminated by this one.
|
|
2855
2855
|
["table", F0, ["paragraph", "reference"]],
|
|
@@ -2864,12 +2864,12 @@ const Ku = [
|
|
|
2864
2864
|
["lheading", Q0],
|
|
2865
2865
|
["paragraph", J0]
|
|
2866
2866
|
];
|
|
2867
|
-
function
|
|
2867
|
+
function yt() {
|
|
2868
2868
|
this.ruler = new Ee();
|
|
2869
|
-
for (let e = 0; e <
|
|
2870
|
-
this.ruler.push(
|
|
2869
|
+
for (let e = 0; e < et.length; e++)
|
|
2870
|
+
this.ruler.push(et[e][0], et[e][1], { alt: (et[e][2] || []).slice() });
|
|
2871
2871
|
}
|
|
2872
|
-
|
|
2872
|
+
yt.prototype.tokenize = function(e, u, t) {
|
|
2873
2873
|
const n = this.ruler.getRules(""), r = n.length, o = e.md.options.maxNesting;
|
|
2874
2874
|
let a = u, i = !1;
|
|
2875
2875
|
for (; a < t && (e.line = a = e.skipEmptyLines(a), !(a >= t || e.sCount[a] < e.blkIndent)); ) {
|
|
@@ -2889,35 +2889,35 @@ vt.prototype.tokenize = function(e, u, t) {
|
|
|
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
|
};
|
|
2892
|
-
|
|
2892
|
+
yt.prototype.parse = function(e, u, t, n) {
|
|
2893
2893
|
if (!e)
|
|
2894
2894
|
return;
|
|
2895
2895
|
const r = new this.State(e, u, t, n);
|
|
2896
2896
|
this.tokenize(r, r.line, r.lineMax);
|
|
2897
2897
|
};
|
|
2898
|
-
|
|
2899
|
-
function
|
|
2898
|
+
yt.prototype.State = Ne;
|
|
2899
|
+
function Bu(e, u, t, n) {
|
|
2900
2900
|
this.src = e, this.env = t, this.md = u, this.tokens = n, this.tokens_meta = Array(n.length), this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = {}, this.delimiters = [], this._prev_delimiters = [], this.backticks = {}, this.backticksScanned = !1, this.linkLevel = 0;
|
|
2901
2901
|
}
|
|
2902
|
-
|
|
2902
|
+
Bu.prototype.pushPending = function() {
|
|
2903
2903
|
const e = new Te("text", "", 0);
|
|
2904
2904
|
return e.content = this.pending, e.level = this.pendingLevel, this.tokens.push(e), this.pending = "", e;
|
|
2905
2905
|
};
|
|
2906
|
-
|
|
2906
|
+
Bu.prototype.push = function(e, u, t) {
|
|
2907
2907
|
this.pending && this.pushPending();
|
|
2908
2908
|
const n = new Te(e, u, t);
|
|
2909
2909
|
let r = null;
|
|
2910
2910
|
return t < 0 && (this.level--, this.delimiters = this._prev_delimiters.pop()), n.level = this.level, t > 0 && (this.level++, this._prev_delimiters.push(this.delimiters), this.delimiters = [], r = { delimiters: this.delimiters }), this.pendingLevel = this.level, this.tokens.push(n), this.tokens_meta.push(r), n;
|
|
2911
2911
|
};
|
|
2912
|
-
|
|
2912
|
+
Bu.prototype.scanDelims = function(e, u) {
|
|
2913
2913
|
const t = this.posMax, n = this.src.charCodeAt(e), r = e > 0 ? this.src.charCodeAt(e - 1) : 32;
|
|
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, c =
|
|
2917
|
+
const a = o - e, i = o < t ? this.src.charCodeAt(o) : 32, c = Ou(r) || Ru(String.fromCharCode(r)), s = Ou(i) || Ru(String.fromCharCode(i)), l = Pu(r), f = Pu(i), _ = !f && (!s || l || c), x = !l && (!c || f || s);
|
|
2918
2918
|
return { can_open: _ && (u || !x || c), can_close: x && (u || !_ || s), length: a };
|
|
2919
2919
|
};
|
|
2920
|
-
|
|
2920
|
+
Bu.prototype.Token = Te;
|
|
2921
2921
|
function K0(e) {
|
|
2922
2922
|
switch (e) {
|
|
2923
2923
|
case 10:
|
|
@@ -3184,7 +3184,7 @@ function lc(e, u) {
|
|
|
3184
3184
|
if (s) {
|
|
3185
3185
|
if (typeof e.env.references > "u")
|
|
3186
3186
|
return !1;
|
|
3187
|
-
if (d < f && e.src.charCodeAt(d) === 91 ? (c = d + 1, d = e.md.helpers.parseLinkLabel(e, d), d >= 0 ? n = e.src.slice(c, d++) : d = x + 1) : d = x + 1, n || (n = e.src.slice(_, x)), o = e.env.references[
|
|
3187
|
+
if (d < f && e.src.charCodeAt(d) === 91 ? (c = d + 1, d = e.md.helpers.parseLinkLabel(e, d), d >= 0 ? n = e.src.slice(c, d++) : d = x + 1) : d = x + 1, n || (n = e.src.slice(_, x)), o = e.env.references[vt(n)], !o)
|
|
3188
3188
|
return e.pos = l, !1;
|
|
3189
3189
|
a = o.href, i = o.title;
|
|
3190
3190
|
}
|
|
@@ -3221,7 +3221,7 @@ function fc(e, u) {
|
|
|
3221
3221
|
} else {
|
|
3222
3222
|
if (typeof e.env.references > "u")
|
|
3223
3223
|
return !1;
|
|
3224
|
-
if (o < _ && 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[
|
|
3224
|
+
if (o < _ && 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[vt(r)], !a)
|
|
3225
3225
|
return e.pos = f, !1;
|
|
3226
3226
|
l = a.href, c = a.title;
|
|
3227
3227
|
}
|
|
@@ -3319,7 +3319,7 @@ function vc(e, u) {
|
|
|
3319
3319
|
if (o) {
|
|
3320
3320
|
if (!u) {
|
|
3321
3321
|
const a = o[1][0].toLowerCase() === "x" ? parseInt(o[1].slice(1), 16) : parseInt(o[1], 10), i = e.push("text_special", "", 0);
|
|
3322
|
-
i.content = mn(a) ?
|
|
3322
|
+
i.content = mn(a) ? dt(a) : dt(65533), i.markup = o[0], i.info = "entity";
|
|
3323
3323
|
}
|
|
3324
3324
|
return e.pos += o[0].length, !0;
|
|
3325
3325
|
}
|
|
@@ -3376,7 +3376,7 @@ function Ec(e) {
|
|
|
3376
3376
|
r[u].nesting < 0 && n--, r[u].level = n, r[u].nesting > 0 && n++, r[u].type === "text" && u + 1 < o && r[u + 1].type === "text" ? r[u + 1].content = r[u].content + r[u + 1].content : (u !== t && (r[t] = r[u]), t++);
|
|
3377
3377
|
u !== t && (r.length = t);
|
|
3378
3378
|
}
|
|
3379
|
-
const
|
|
3379
|
+
const Ut = [
|
|
3380
3380
|
["text", ec],
|
|
3381
3381
|
["linkify", tc],
|
|
3382
3382
|
["newline", nc],
|
|
@@ -3389,7 +3389,7 @@ const Bt = [
|
|
|
3389
3389
|
["autolink", hc],
|
|
3390
3390
|
["html_inline", xc],
|
|
3391
3391
|
["entity", vc]
|
|
3392
|
-
],
|
|
3392
|
+
], qt = [
|
|
3393
3393
|
["balance_pairs", yc],
|
|
3394
3394
|
["strikethrough", no.postProcess],
|
|
3395
3395
|
["emphasis", ro.postProcess],
|
|
@@ -3397,15 +3397,15 @@ const Bt = [
|
|
|
3397
3397
|
// rule below merges unused segments back with the rest of the text
|
|
3398
3398
|
["fragments_join", Ec]
|
|
3399
3399
|
];
|
|
3400
|
-
function
|
|
3400
|
+
function Uu() {
|
|
3401
3401
|
this.ruler = new Ee();
|
|
3402
|
-
for (let e = 0; e < Bt.length; e++)
|
|
3403
|
-
this.ruler.push(Bt[e][0], Bt[e][1]);
|
|
3404
|
-
this.ruler2 = new Ee();
|
|
3405
3402
|
for (let e = 0; e < Ut.length; e++)
|
|
3406
|
-
this.
|
|
3403
|
+
this.ruler.push(Ut[e][0], Ut[e][1]);
|
|
3404
|
+
this.ruler2 = new Ee();
|
|
3405
|
+
for (let e = 0; e < qt.length; e++)
|
|
3406
|
+
this.ruler2.push(qt[e][0], qt[e][1]);
|
|
3407
3407
|
}
|
|
3408
|
-
|
|
3408
|
+
Uu.prototype.skipToken = function(e) {
|
|
3409
3409
|
const u = e.pos, t = this.ruler.getRules(""), n = t.length, r = e.md.options.maxNesting, o = e.cache;
|
|
3410
3410
|
if (typeof o[u] < "u") {
|
|
3411
3411
|
e.pos = o[u];
|
|
@@ -3423,7 +3423,7 @@ Bu.prototype.skipToken = function(e) {
|
|
|
3423
3423
|
e.pos = e.posMax;
|
|
3424
3424
|
a || e.pos++, o[u] = e.pos;
|
|
3425
3425
|
};
|
|
3426
|
-
|
|
3426
|
+
Uu.prototype.tokenize = function(e) {
|
|
3427
3427
|
const u = this.ruler.getRules(""), t = u.length, n = e.posMax, r = e.md.options.maxNesting;
|
|
3428
3428
|
for (; e.pos < n; ) {
|
|
3429
3429
|
const o = e.pos;
|
|
@@ -3445,14 +3445,14 @@ Bu.prototype.tokenize = function(e) {
|
|
|
3445
3445
|
}
|
|
3446
3446
|
e.pending && e.pushPending();
|
|
3447
3447
|
};
|
|
3448
|
-
|
|
3448
|
+
Uu.prototype.parse = function(e, u, t, n) {
|
|
3449
3449
|
const r = new this.State(e, u, t, n);
|
|
3450
3450
|
this.tokenize(r);
|
|
3451
3451
|
const o = this.ruler2.getRules(""), a = o.length;
|
|
3452
3452
|
for (let i = 0; i < a; i++)
|
|
3453
3453
|
o[i](r);
|
|
3454
3454
|
};
|
|
3455
|
-
|
|
3455
|
+
Uu.prototype.State = Bu;
|
|
3456
3456
|
function Ac(e) {
|
|
3457
3457
|
const u = {};
|
|
3458
3458
|
e = e || {}, u.src_Any = Gr.source, u.src_Cc = Wr.source, u.src_Z = Zr.source, u.src_P = hn.source, u.src_ZPCc = [u.src_Z, u.src_P, u.src_Cc].join("|"), u.src_ZCc = [u.src_Z, u.src_Cc].join("|");
|
|
@@ -3472,20 +3472,20 @@ function tn(e) {
|
|
|
3472
3472
|
});
|
|
3473
3473
|
}), e;
|
|
3474
3474
|
}
|
|
3475
|
-
function
|
|
3475
|
+
function Et(e) {
|
|
3476
3476
|
return Object.prototype.toString.call(e);
|
|
3477
3477
|
}
|
|
3478
3478
|
function wc(e) {
|
|
3479
|
-
return
|
|
3479
|
+
return Et(e) === "[object String]";
|
|
3480
3480
|
}
|
|
3481
3481
|
function Cc(e) {
|
|
3482
|
-
return
|
|
3482
|
+
return Et(e) === "[object Object]";
|
|
3483
3483
|
}
|
|
3484
3484
|
function Dc(e) {
|
|
3485
|
-
return
|
|
3485
|
+
return Et(e) === "[object RegExp]";
|
|
3486
3486
|
}
|
|
3487
3487
|
function mr(e) {
|
|
3488
|
-
return
|
|
3488
|
+
return Et(e) === "[object Function]";
|
|
3489
3489
|
}
|
|
3490
3490
|
function Fc(e) {
|
|
3491
3491
|
return e.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
|
|
@@ -3547,7 +3547,7 @@ function gr() {
|
|
|
3547
3547
|
u.normalize(e);
|
|
3548
3548
|
};
|
|
3549
3549
|
}
|
|
3550
|
-
function
|
|
3550
|
+
function pt(e) {
|
|
3551
3551
|
const u = e.re = Ac(e.__opts__), t = e.__tlds__.slice();
|
|
3552
3552
|
e.onCompile(), e.__tlds_replaced__ || t.push(Pc), t.push(u.src_xn), u.src_tlds = t.join("|");
|
|
3553
3553
|
function n(i) {
|
|
@@ -3595,10 +3595,10 @@ function nn(e, u) {
|
|
|
3595
3595
|
function we(e, u) {
|
|
3596
3596
|
if (!(this instanceof we))
|
|
3597
3597
|
return new we(e, u);
|
|
3598
|
-
u || Sc(e) && (u = e, e = {}), this.__opts__ = tn({}, oo, u), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = tn({}, Tc, e), this.__compiled__ = {}, this.__tlds__ = Rc, this.__tlds_replaced__ = !1, this.re = {},
|
|
3598
|
+
u || Sc(e) && (u = e, e = {}), this.__opts__ = tn({}, oo, u), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = tn({}, Tc, e), this.__compiled__ = {}, this.__tlds__ = Rc, this.__tlds_replaced__ = !1, this.re = {}, pt(this);
|
|
3599
3599
|
}
|
|
3600
3600
|
we.prototype.add = function(u, t) {
|
|
3601
|
-
return this.__schemas__[u] = t,
|
|
3601
|
+
return this.__schemas__[u] = t, pt(this), this;
|
|
3602
3602
|
};
|
|
3603
3603
|
we.prototype.set = function(u) {
|
|
3604
3604
|
return this.__opts__ = tn(this.__opts__, u), this;
|
|
@@ -3641,18 +3641,18 @@ we.prototype.matchAtStart = function(u) {
|
|
|
3641
3641
|
we.prototype.tlds = function(u, t) {
|
|
3642
3642
|
return u = Array.isArray(u) ? u : [u], t ? (this.__tlds__ = this.__tlds__.concat(u).sort().filter(function(n, r, o) {
|
|
3643
3643
|
return n !== o[r - 1];
|
|
3644
|
-
}).reverse(),
|
|
3644
|
+
}).reverse(), pt(this), this) : (this.__tlds__ = u.slice(), this.__tlds_replaced__ = !0, pt(this), this);
|
|
3645
3645
|
};
|
|
3646
3646
|
we.prototype.normalize = function(u) {
|
|
3647
3647
|
u.schema || (u.url = "http://" + u.url), u.schema === "mailto:" && !/^mailto:/i.test(u.url) && (u.url = "mailto:" + u.url);
|
|
3648
3648
|
};
|
|
3649
3649
|
we.prototype.onCompile = function() {
|
|
3650
3650
|
};
|
|
3651
|
-
const
|
|
3651
|
+
const pu = 2147483647, Re = 36, kn = 1, Mu = 26, Nc = 38, Ic = 700, io = 72, ao = 128, co = "-", zc = /^xn--/, $c = /[^\0-\x7F]/, Bc = /[\x2E\u3002\uFF0E\uFF61]/g, Uc = {
|
|
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"
|
|
3655
|
-
},
|
|
3655
|
+
}, jt = Re - kn, Oe = Math.floor, Ht = String.fromCharCode;
|
|
3656
3656
|
function We(e) {
|
|
3657
3657
|
throw new RangeError(Uc[e]);
|
|
3658
3658
|
}
|
|
@@ -3690,9 +3690,9 @@ const jc = (e) => String.fromCodePoint(...e), Hc = function(e) {
|
|
|
3690
3690
|
return e + 22 + 75 * (e < 26) - ((u != 0) << 5);
|
|
3691
3691
|
}, fo = function(e, u, t) {
|
|
3692
3692
|
let n = 0;
|
|
3693
|
-
for (e = t ? Oe(e / Ic) : e >> 1, e += Oe(e / u); e >
|
|
3694
|
-
e = Oe(e /
|
|
3695
|
-
return Oe(n + (
|
|
3693
|
+
for (e = t ? Oe(e / Ic) : e >> 1, e += Oe(e / u); e > jt * Mu >> 1; n += Re)
|
|
3694
|
+
e = Oe(e / jt);
|
|
3695
|
+
return Oe(n + (jt + 1) * e / (e + Nc));
|
|
3696
3696
|
}, po = function(e) {
|
|
3697
3697
|
const u = [], t = e.length;
|
|
3698
3698
|
let n = 0, r = ao, o = io, a = e.lastIndexOf(co);
|
|
@@ -3704,15 +3704,15 @@ const jc = (e) => String.fromCodePoint(...e), Hc = function(e) {
|
|
|
3704
3704
|
for (let l = 1, f = Re; ; f += Re) {
|
|
3705
3705
|
i >= t && We("invalid-input");
|
|
3706
3706
|
const _ = Hc(e.charCodeAt(i++));
|
|
3707
|
-
_ >= Re && We("invalid-input"), _ > Oe((
|
|
3708
|
-
const x = f <= o ? kn : f >= o +
|
|
3707
|
+
_ >= Re && We("invalid-input"), _ > Oe((pu - n) / l) && We("overflow"), n += _ * l;
|
|
3708
|
+
const x = f <= o ? kn : f >= o + Mu ? Mu : f - o;
|
|
3709
3709
|
if (_ < x)
|
|
3710
3710
|
break;
|
|
3711
3711
|
const d = Re - x;
|
|
3712
|
-
l > Oe(
|
|
3712
|
+
l > Oe(pu / d) && We("overflow"), l *= d;
|
|
3713
3713
|
}
|
|
3714
3714
|
const s = u.length + 1;
|
|
3715
|
-
o = fo(n - c, s, c == 0), Oe(n / s) >
|
|
3715
|
+
o = fo(n - c, s, c == 0), Oe(n / s) > pu - r && We("overflow"), r += Oe(n / s), n %= s, u.splice(n++, 0, r);
|
|
3716
3716
|
}
|
|
3717
3717
|
return String.fromCodePoint(...u);
|
|
3718
3718
|
}, ho = function(e) {
|
|
@@ -3721,28 +3721,28 @@ const jc = (e) => String.fromCodePoint(...e), Hc = function(e) {
|
|
|
3721
3721
|
const t = e.length;
|
|
3722
3722
|
let n = ao, r = 0, o = io;
|
|
3723
3723
|
for (const c of e)
|
|
3724
|
-
c < 128 && u.push(
|
|
3724
|
+
c < 128 && u.push(Ht(c));
|
|
3725
3725
|
const a = u.length;
|
|
3726
3726
|
let i = a;
|
|
3727
3727
|
for (a && u.push(co); i < t; ) {
|
|
3728
|
-
let c =
|
|
3728
|
+
let c = pu;
|
|
3729
3729
|
for (const l of e)
|
|
3730
3730
|
l >= n && l < c && (c = l);
|
|
3731
3731
|
const s = i + 1;
|
|
3732
|
-
c - n > Oe((
|
|
3732
|
+
c - n > Oe((pu - r) / s) && We("overflow"), r += (c - n) * s, n = c;
|
|
3733
3733
|
for (const l of e)
|
|
3734
|
-
if (l < n && ++r >
|
|
3734
|
+
if (l < n && ++r > pu && We("overflow"), l === n) {
|
|
3735
3735
|
let f = r;
|
|
3736
3736
|
for (let _ = Re; ; _ += Re) {
|
|
3737
|
-
const x = _ <= o ? kn : _ >= o +
|
|
3737
|
+
const x = _ <= o ? kn : _ >= o + Mu ? Mu : _ - o;
|
|
3738
3738
|
if (f < x)
|
|
3739
3739
|
break;
|
|
3740
3740
|
const d = f - x, E = Re - x;
|
|
3741
3741
|
u.push(
|
|
3742
|
-
|
|
3742
|
+
Ht(xr(x + d % E, 0))
|
|
3743
3743
|
), f = Oe(d / E);
|
|
3744
3744
|
}
|
|
3745
|
-
u.push(
|
|
3745
|
+
u.push(Ht(xr(f, 0))), o = fo(r, s, i === a), r = 0, ++i;
|
|
3746
3746
|
}
|
|
3747
3747
|
++r, ++n;
|
|
3748
3748
|
}
|
|
@@ -3959,7 +3959,7 @@ function es(e) {
|
|
|
3959
3959
|
u.hostname = bo.toASCII(u.hostname);
|
|
3960
3960
|
} catch {
|
|
3961
3961
|
}
|
|
3962
|
-
return
|
|
3962
|
+
return $u(dn(u));
|
|
3963
3963
|
}
|
|
3964
3964
|
function us(e) {
|
|
3965
3965
|
const u = pn(e, !0);
|
|
@@ -3968,15 +3968,15 @@ function us(e) {
|
|
|
3968
3968
|
u.hostname = bo.toUnicode(u.hostname);
|
|
3969
3969
|
} catch {
|
|
3970
3970
|
}
|
|
3971
|
-
return
|
|
3971
|
+
return hu(dn(u), hu.defaultChars + "%");
|
|
3972
3972
|
}
|
|
3973
3973
|
function Fe(e, u) {
|
|
3974
3974
|
if (!(this instanceof Fe))
|
|
3975
3975
|
return new Fe(e, u);
|
|
3976
|
-
u || bn(e) || (u = e || {}, e = "default"), this.inline = new
|
|
3976
|
+
u || bn(e) || (u = e || {}, e = "default"), this.inline = new Uu(), this.block = new yt(), this.core = new gn(), this.renderer = new gu(), this.linkify = new we(), this.validateLink = Kc, this.normalizeLink = es, this.normalizeLinkText = us, this.utils = n0, this.helpers = _t({}, a0), this.options = {}, this.configure(e), u && this.set(u);
|
|
3977
3977
|
}
|
|
3978
3978
|
Fe.prototype.set = function(e) {
|
|
3979
|
-
return
|
|
3979
|
+
return _t(this.options, e), this;
|
|
3980
3980
|
};
|
|
3981
3981
|
Fe.prototype.configure = function(e) {
|
|
3982
3982
|
const u = this;
|
|
@@ -4036,9 +4036,9 @@ Fe.prototype.renderInline = function(e, u) {
|
|
|
4036
4036
|
return u = u || {}, this.renderer.render(this.parseInline(e, u), this.options, u);
|
|
4037
4037
|
};
|
|
4038
4038
|
function ts(e, u) {
|
|
4039
|
-
const { manual: t = !1, domPurify: n = !0, ...r } = u ?? {}, o = G(
|
|
4040
|
-
|
|
4041
|
-
o.value =
|
|
4039
|
+
const { manual: t = !1, domPurify: n = !0, ...r } = u ?? {}, o = G(Qt(e) ? du(e.value) : Ro(e) ? du(e) : e);
|
|
4040
|
+
Qt(e) && Me(() => {
|
|
4041
|
+
o.value = du(e.value);
|
|
4042
4042
|
});
|
|
4043
4043
|
const a = G(""), i = G(), c = Fe({ ...r });
|
|
4044
4044
|
function s(l) {
|
|
@@ -4064,7 +4064,7 @@ function ts(e, u) {
|
|
|
4064
4064
|
function ns(e, u) {
|
|
4065
4065
|
const { step: t = 1, interval: n = 50, enabled: r = !0 } = u ?? {}, o = G(0), a = G(!1), i = G(!1), c = G(!1), s = ge(() => r ? e.value.slice(0, o.value) : e.value), l = ge(() => Number(Math.min(o.value / e.value.length * 100, 100).toFixed(2)));
|
|
4066
4066
|
let f = null;
|
|
4067
|
-
const _ =
|
|
4067
|
+
const _ = rt(), x = rt(), d = rt();
|
|
4068
4068
|
je(e, (m, k) => {
|
|
4069
4069
|
if (!k) {
|
|
4070
4070
|
o.value = 0, E();
|
|
@@ -4129,7 +4129,7 @@ var kr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
4129
4129
|
function rs(e) {
|
|
4130
4130
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4131
4131
|
}
|
|
4132
|
-
var
|
|
4132
|
+
var Gt = { exports: {} }, _r;
|
|
4133
4133
|
function os() {
|
|
4134
4134
|
return _r || (_r = 1, function(e) {
|
|
4135
4135
|
var u = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
|
|
@@ -4778,15 +4778,15 @@ function os() {
|
|
|
4778
4778
|
T--, z = h.slice(C, Z), V.index -= C;
|
|
4779
4779
|
} else if (V = s(ee, 0, z, le), !V)
|
|
4780
4780
|
continue;
|
|
4781
|
-
var te = V.index, Ce = V[0],
|
|
4782
|
-
w &&
|
|
4783
|
-
var
|
|
4784
|
-
|
|
4781
|
+
var te = V.index, Ce = V[0], tu = z.slice(0, te), nu = z.slice(te + Ce.length), ru = C + z.length;
|
|
4782
|
+
w && ru > w.reach && (w.reach = ru);
|
|
4783
|
+
var Ke = W.prev;
|
|
4784
|
+
tu && (Ke = _(p, Ke, tu), C += tu.length), x(p, Ke, T);
|
|
4785
4785
|
var He = new c(P, J ? i.tokenize(Ce, J) : Ce, q, Ce);
|
|
4786
|
-
if (W = _(p,
|
|
4786
|
+
if (W = _(p, Ke, He), nu && _(p, W, nu), T > 1) {
|
|
4787
4787
|
var Ge = {
|
|
4788
4788
|
cause: P + "," + I,
|
|
4789
|
-
reach:
|
|
4789
|
+
reach: ru
|
|
4790
4790
|
};
|
|
4791
4791
|
l(h, p, g, W.prev, C, Ge), w && Ge.reach > w.reach && (w.reach = Ge.reach);
|
|
4792
4792
|
}
|
|
@@ -5286,16 +5286,16 @@ function os() {
|
|
|
5286
5286
|
d || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), d = !0), t.plugins.fileHighlight.highlight.apply(this, arguments);
|
|
5287
5287
|
};
|
|
5288
5288
|
}();
|
|
5289
|
-
}(
|
|
5289
|
+
}(Gt)), Gt.exports;
|
|
5290
5290
|
}
|
|
5291
5291
|
var is = os();
|
|
5292
|
-
const
|
|
5293
|
-
typeof document < "u" &&
|
|
5292
|
+
const it = /* @__PURE__ */ rs(is);
|
|
5293
|
+
typeof document < "u" && it.highlightAll();
|
|
5294
5294
|
function as(e, u) {
|
|
5295
5295
|
try {
|
|
5296
|
-
const t =
|
|
5296
|
+
const t = it.languages[u];
|
|
5297
5297
|
if (t) {
|
|
5298
|
-
const n =
|
|
5298
|
+
const n = it.highlight(e, t || it.languages.text, u);
|
|
5299
5299
|
return `<pre class="language-${u}"><code class="language-${u}">${n}</code></pre>`;
|
|
5300
5300
|
}
|
|
5301
5301
|
return e;
|
|
@@ -5307,27 +5307,27 @@ const cs = `
|
|
|
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
|
`, ss = `
|
|
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
|
-
`, { c:
|
|
5310
|
+
`, { c: Wt, cB: vr, cE: Vt } = { ...xt, ...kt }, ut = `${zu}-type-writer`;
|
|
5311
5311
|
function ls() {
|
|
5312
|
-
return
|
|
5312
|
+
return Wt([
|
|
5313
5313
|
vr("type-writer", {
|
|
5314
5314
|
overflowX: "auto"
|
|
5315
5315
|
}, [
|
|
5316
|
-
|
|
5316
|
+
Vt("cursor::after", {
|
|
5317
5317
|
content: "var(--cursor-content)",
|
|
5318
5318
|
marginLeft: "2px",
|
|
5319
5319
|
display: "inline-block"
|
|
5320
5320
|
}),
|
|
5321
|
-
|
|
5322
|
-
|
|
5321
|
+
Vt("markdown", `${ss}`, [
|
|
5322
|
+
Wt("pre", {
|
|
5323
5323
|
backgroundColor: "var(--tag-color)",
|
|
5324
5324
|
borderRadius: "var(--border-radius)"
|
|
5325
5325
|
})
|
|
5326
5326
|
])
|
|
5327
5327
|
]),
|
|
5328
|
-
|
|
5328
|
+
Wt(".dark", [
|
|
5329
5329
|
vr("type-writer", [
|
|
5330
|
-
|
|
5330
|
+
Vt("markdown", `${cs}`)
|
|
5331
5331
|
])
|
|
5332
5332
|
])
|
|
5333
5333
|
]);
|
|
@@ -5345,7 +5345,7 @@ const fs = ["innerHTML"], ds = /* @__PURE__ */ xe({
|
|
|
5345
5345
|
emits: ["start", "update", "stop"],
|
|
5346
5346
|
setup(e, { emit: u }) {
|
|
5347
5347
|
const t = u;
|
|
5348
|
-
|
|
5348
|
+
gt(ut, ls());
|
|
5349
5349
|
const { typedValue: n, isTyping: r, onStat: o, onUpdate: a, onStop: i } = ns(ge(() => e.value ?? ""), {
|
|
5350
5350
|
step: e.step,
|
|
5351
5351
|
interval: e.interval,
|
|
@@ -5367,11 +5367,11 @@ const fs = ["innerHTML"], ds = /* @__PURE__ */ xe({
|
|
|
5367
5367
|
}), s = ge(() => e.markdown ? c.value : n.value);
|
|
5368
5368
|
return (l, f) => (R(), N(v(cn), {
|
|
5369
5369
|
tag: "div",
|
|
5370
|
-
class:
|
|
5370
|
+
class: Su([v(ut)])
|
|
5371
5371
|
}, {
|
|
5372
5372
|
default: M(() => [
|
|
5373
|
-
|
|
5374
|
-
class:
|
|
5373
|
+
Lu("div", {
|
|
5374
|
+
class: Su([v(r) && !l.markdown ? `${v(ut)}__cursor` : void 0, l.markdown ? `${v(ut)}__markdown` : void 0]),
|
|
5375
5375
|
style: on([l.markdown ? void 0 : { "--cursor-content": `'${l.suffix}'` }]),
|
|
5376
5376
|
innerHTML: s.value
|
|
5377
5377
|
}, null, 14, fs)
|
|
@@ -5379,7 +5379,7 @@ const fs = ["innerHTML"], ds = /* @__PURE__ */ xe({
|
|
|
5379
5379
|
_: 1
|
|
5380
5380
|
}, 8, ["class"]));
|
|
5381
5381
|
}
|
|
5382
|
-
}), { c: ps, cB: hs, cE: bs, cM: ms } = { ...
|
|
5382
|
+
}), { c: ps, cB: hs, cE: bs, cM: ms } = { ...xt, ...kt }, Zt = `${zu}-bubble`;
|
|
5383
5383
|
function gs() {
|
|
5384
5384
|
return ps([
|
|
5385
5385
|
hs("bubble", {
|
|
@@ -5414,9 +5414,9 @@ const Vl = /* @__PURE__ */ xe({
|
|
|
5414
5414
|
emits: ["typingComplete"],
|
|
5415
5415
|
setup(e, { emit: u }) {
|
|
5416
5416
|
const t = u;
|
|
5417
|
-
return
|
|
5417
|
+
return gt("n-bubble", gs()), (n, r) => (R(), N(v(cn), {
|
|
5418
5418
|
tag: "div",
|
|
5419
|
-
class:
|
|
5419
|
+
class: Su([v(Zt), n.placement === "end" ? `${v(Zt)}--reverse` : ""])
|
|
5420
5420
|
}, {
|
|
5421
5421
|
default: M(() => [
|
|
5422
5422
|
H(n.$slots, "avatar", {}, () => [
|
|
@@ -5438,8 +5438,8 @@ const Vl = /* @__PURE__ */ xe({
|
|
|
5438
5438
|
n.loading ? H(n.$slots, "loading", { key: 0 }, () => [
|
|
5439
5439
|
Y(v(Tr), { style: { height: "44px" } })
|
|
5440
5440
|
]) : H(n.$slots, "default", { key: 1 }, () => [
|
|
5441
|
-
|
|
5442
|
-
class:
|
|
5441
|
+
Lu("div", {
|
|
5442
|
+
class: Su([`${v(Zt)}__content`, n.contentClass]),
|
|
5443
5443
|
style: on(n.contentStyle)
|
|
5444
5444
|
}, [
|
|
5445
5445
|
Y(v(ds), {
|
|
@@ -5461,7 +5461,7 @@ const Vl = /* @__PURE__ */ xe({
|
|
|
5461
5461
|
_: 3
|
|
5462
5462
|
}, 8, ["class"]));
|
|
5463
5463
|
}
|
|
5464
|
-
}), { c: xs, cB: ks } = { ...
|
|
5464
|
+
}), { c: xs, cB: ks } = { ...xt, ...kt }, tt = `${zu}-full-loading`;
|
|
5465
5465
|
function _s() {
|
|
5466
5466
|
return xs([
|
|
5467
5467
|
ks("full-loading", {
|
|
@@ -5493,7 +5493,7 @@ const vs = /* @__PURE__ */ xe({
|
|
|
5493
5493
|
spinProps: {}
|
|
5494
5494
|
},
|
|
5495
5495
|
setup(e) {
|
|
5496
|
-
|
|
5496
|
+
gt(tt, _s());
|
|
5497
5497
|
const u = G("auto");
|
|
5498
5498
|
return Me(() => {
|
|
5499
5499
|
if (e.disableScroll) {
|
|
@@ -5505,7 +5505,7 @@ const vs = /* @__PURE__ */ xe({
|
|
|
5505
5505
|
(R(), N(Oo, { to: t.appendTo }, [
|
|
5506
5506
|
t.show ? (R(), N(v(cn), {
|
|
5507
5507
|
key: 0,
|
|
5508
|
-
class:
|
|
5508
|
+
class: Su([v(tt), { [`${v(tt)}--mask`]: t.mask }, { [`${v(tt)}--blur`]: t.blur }]),
|
|
5509
5509
|
style: on(typeof t.mask == "object" ? t.mask : {})
|
|
5510
5510
|
}, {
|
|
5511
5511
|
default: M(() => [
|
|
@@ -5617,7 +5617,7 @@ const vs = /* @__PURE__ */ xe({
|
|
|
5617
5617
|
};
|
|
5618
5618
|
function As(e, u, t, n, r, o) {
|
|
5619
5619
|
return R(), se("svg", Es, u[0] || (u[0] = [
|
|
5620
|
-
|
|
5620
|
+
Lu("path", {
|
|
5621
5621
|
fill: "#757575",
|
|
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)
|
|
@@ -5645,12 +5645,12 @@ const ws = /* @__PURE__ */ _n(ys, [["render", As]]), Yl = /* @__PURE__ */ xe({
|
|
|
5645
5645
|
}
|
|
5646
5646
|
return (a, i) => (R(), N(v(Pr), ce(Ue(a.tooltipProps)), {
|
|
5647
5647
|
trigger: M(() => [
|
|
5648
|
-
|
|
5648
|
+
Lu("div", {
|
|
5649
5649
|
style: { cursor: "pointer" },
|
|
5650
5650
|
onClick: o
|
|
5651
5651
|
}, [
|
|
5652
5652
|
H(a.$slots, "default", {}, () => [
|
|
5653
|
-
Y(v(
|
|
5653
|
+
Y(v(mu), Q({
|
|
5654
5654
|
quaternary: "",
|
|
5655
5655
|
size: "tiny"
|
|
5656
5656
|
}, a.buttonProps), {
|
|
@@ -5666,7 +5666,7 @@ const ws = /* @__PURE__ */ _n(ys, [["render", As]]), Yl = /* @__PURE__ */ xe({
|
|
|
5666
5666
|
]),
|
|
5667
5667
|
default: M(() => [
|
|
5668
5668
|
H(a.$slots, "tooltip", {}, () => [
|
|
5669
|
-
|
|
5669
|
+
Nu(Iu(v(n) ? "复制成功" : "复制"), 1)
|
|
5670
5670
|
])
|
|
5671
5671
|
]),
|
|
5672
5672
|
_: 3
|
|
@@ -5700,28 +5700,28 @@ const ws = /* @__PURE__ */ _n(ys, [["render", As]]), Yl = /* @__PURE__ */ xe({
|
|
|
5700
5700
|
go.onInit = ({ ready: e = !0, manual: u }) => ({
|
|
5701
5701
|
loading: !u && v(e)
|
|
5702
5702
|
});
|
|
5703
|
-
const
|
|
5704
|
-
const n =
|
|
5703
|
+
const at = /* @__PURE__ */ new Map(), Cs = (e, u, t) => {
|
|
5704
|
+
const n = at.get(e);
|
|
5705
5705
|
n?.timer && clearTimeout(n.timer);
|
|
5706
5706
|
let r;
|
|
5707
5707
|
u > -1 && (r = setTimeout(() => {
|
|
5708
|
-
|
|
5709
|
-
}, u)),
|
|
5708
|
+
at.delete(e);
|
|
5709
|
+
}, u)), at.set(e, {
|
|
5710
5710
|
...t,
|
|
5711
5711
|
timer: r
|
|
5712
5712
|
});
|
|
5713
|
-
}, Ds = (e) =>
|
|
5714
|
-
|
|
5715
|
-
throw
|
|
5713
|
+
}, Ds = (e) => at.get(e), ct = /* @__PURE__ */ new Map(), Fs = (e) => ct.get(e), Ss = (e, u) => {
|
|
5714
|
+
ct.set(e, u), u.then((t) => (ct.delete(e), t)).catch((t) => {
|
|
5715
|
+
throw ct.delete(e), t;
|
|
5716
5716
|
});
|
|
5717
|
-
},
|
|
5718
|
-
|
|
5717
|
+
}, uu = {}, Ts = [], Ps = (e, u) => {
|
|
5718
|
+
uu[e] && (uu[e].forEach((t) => t(u)), Ts.forEach((t) => t({
|
|
5719
5719
|
type: e,
|
|
5720
5720
|
data: u
|
|
5721
5721
|
})));
|
|
5722
|
-
},
|
|
5723
|
-
const n =
|
|
5724
|
-
|
|
5722
|
+
}, Yt = (e, u) => (uu[e] || (uu[e] = []), uu[e].push(u), function() {
|
|
5723
|
+
const n = uu[e].indexOf(u);
|
|
5724
|
+
uu[e].splice(n, 1);
|
|
5725
5725
|
}), Rs = (e, {
|
|
5726
5726
|
cacheKey: u,
|
|
5727
5727
|
cacheTime: t = 5 * 60 * 1e3,
|
|
@@ -5736,7 +5736,7 @@ const it = /* @__PURE__ */ new Map(), Cs = (e, u, t) => {
|
|
|
5736
5736
|
if (!u)
|
|
5737
5737
|
return;
|
|
5738
5738
|
const l = s(u);
|
|
5739
|
-
l && Object.hasOwnProperty.call(l, "data") && (e.state.data = l.data, e.state.params = l.params, (n === -1 || (/* @__PURE__ */ new Date()).getTime() - l.time <= n) && (e.state.loading = !1)), a.value =
|
|
5739
|
+
l && Object.hasOwnProperty.call(l, "data") && (e.state.data = l.data, e.state.params = l.params, (n === -1 || (/* @__PURE__ */ new Date()).getTime() - l.time <= n) && (e.state.loading = !1)), a.value = Yt(u, (f) => {
|
|
5740
5740
|
e.setState({ data: f });
|
|
5741
5741
|
});
|
|
5742
5742
|
}), an(() => {
|
|
@@ -5764,7 +5764,7 @@ const it = /* @__PURE__ */ new Map(), Cs = (e, u, t) => {
|
|
|
5764
5764
|
data: l,
|
|
5765
5765
|
params: f,
|
|
5766
5766
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
5767
|
-
}), a.value =
|
|
5767
|
+
}), a.value = Yt(u, (x) => {
|
|
5768
5768
|
e.setState({ data: x });
|
|
5769
5769
|
}));
|
|
5770
5770
|
},
|
|
@@ -5774,17 +5774,17 @@ const it = /* @__PURE__ */ new Map(), Cs = (e, u, t) => {
|
|
|
5774
5774
|
data: l,
|
|
5775
5775
|
params: e.state.params,
|
|
5776
5776
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
5777
|
-
}), a.value =
|
|
5777
|
+
}), a.value = Yt(u, (_) => {
|
|
5778
5778
|
e.setState({ data: _ });
|
|
5779
5779
|
}));
|
|
5780
5780
|
}
|
|
5781
5781
|
} : {};
|
|
5782
5782
|
};
|
|
5783
|
-
function
|
|
5783
|
+
function ht(e) {
|
|
5784
5784
|
var u = typeof e;
|
|
5785
5785
|
return e != null && (u == "object" || u == "function");
|
|
5786
5786
|
}
|
|
5787
|
-
var Os = typeof global == "object" && global && global.Object === Object && global, Ms = typeof self == "object" && self && self.Object === Object && self, xo = Os || Ms || Function("return this")(),
|
|
5787
|
+
var Os = typeof global == "object" && global && global.Object === Object && global, Ms = typeof self == "object" && self && self.Object === Object && self, xo = Os || Ms || Function("return this")(), Xt = function() {
|
|
5788
5788
|
return xo.Date.now();
|
|
5789
5789
|
}, Ls = /\s/;
|
|
5790
5790
|
function Ns(e) {
|
|
@@ -5796,22 +5796,22 @@ var Is = /^\s+/;
|
|
|
5796
5796
|
function zs(e) {
|
|
5797
5797
|
return e && e.slice(0, Ns(e) + 1).replace(Is, "");
|
|
5798
5798
|
}
|
|
5799
|
-
var
|
|
5799
|
+
var bt = xo.Symbol, ko = Object.prototype, $s = ko.hasOwnProperty, Bs = ko.toString, Cu = bt ? bt.toStringTag : void 0;
|
|
5800
5800
|
function Us(e) {
|
|
5801
|
-
var u = $s.call(e,
|
|
5801
|
+
var u = $s.call(e, Cu), t = e[Cu];
|
|
5802
5802
|
try {
|
|
5803
|
-
e[
|
|
5803
|
+
e[Cu] = void 0;
|
|
5804
5804
|
var n = !0;
|
|
5805
5805
|
} catch {
|
|
5806
5806
|
}
|
|
5807
5807
|
var r = Bs.call(e);
|
|
5808
|
-
return n && (u ? e[
|
|
5808
|
+
return n && (u ? e[Cu] = t : delete e[Cu]), r;
|
|
5809
5809
|
}
|
|
5810
5810
|
var qs = Object.prototype, js = qs.toString;
|
|
5811
5811
|
function Hs(e) {
|
|
5812
5812
|
return js.call(e);
|
|
5813
5813
|
}
|
|
5814
|
-
var Gs = "[object Null]", Ws = "[object Undefined]", yr =
|
|
5814
|
+
var Gs = "[object Null]", Ws = "[object Undefined]", yr = bt ? bt.toStringTag : void 0;
|
|
5815
5815
|
function Vs(e) {
|
|
5816
5816
|
return e == null ? e === void 0 ? Ws : Gs : yr && yr in Object(e) ? Us(e) : Hs(e);
|
|
5817
5817
|
}
|
|
@@ -5828,9 +5828,9 @@ function Ar(e) {
|
|
|
5828
5828
|
return e;
|
|
5829
5829
|
if (Xs(e))
|
|
5830
5830
|
return Er;
|
|
5831
|
-
if (
|
|
5831
|
+
if (ht(e)) {
|
|
5832
5832
|
var u = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
5833
|
-
e =
|
|
5833
|
+
e = ht(u) ? u + "" : u;
|
|
5834
5834
|
}
|
|
5835
5835
|
if (typeof e != "string")
|
|
5836
5836
|
return e === 0 ? e : +e;
|
|
@@ -5843,7 +5843,7 @@ function _o(e, u, t) {
|
|
|
5843
5843
|
var n, r, o, a, i, c, s = 0, l = !1, f = !1, _ = !0;
|
|
5844
5844
|
if (typeof e != "function")
|
|
5845
5845
|
throw new TypeError(ul);
|
|
5846
|
-
u = Ar(u) || 0,
|
|
5846
|
+
u = Ar(u) || 0, ht(t) && (l = !!t.leading, f = "maxWait" in t, o = f ? tl(Ar(t.maxWait) || 0, u) : o, _ = "trailing" in t ? !!t.trailing : _);
|
|
5847
5847
|
function x(k) {
|
|
5848
5848
|
var w = n, P = r;
|
|
5849
5849
|
return n = r = void 0, s = k, a = e.apply(P, w), a;
|
|
@@ -5860,7 +5860,7 @@ function _o(e, u, t) {
|
|
|
5860
5860
|
return c === void 0 || w >= u || w < 0 || f && P >= o;
|
|
5861
5861
|
}
|
|
5862
5862
|
function y() {
|
|
5863
|
-
var k =
|
|
5863
|
+
var k = Xt();
|
|
5864
5864
|
if (A(k))
|
|
5865
5865
|
return h(k);
|
|
5866
5866
|
i = setTimeout(y, E(k));
|
|
@@ -5872,10 +5872,10 @@ function _o(e, u, t) {
|
|
|
5872
5872
|
i !== void 0 && clearTimeout(i), s = 0, n = c = r = i = void 0;
|
|
5873
5873
|
}
|
|
5874
5874
|
function g() {
|
|
5875
|
-
return i === void 0 ? a : h(
|
|
5875
|
+
return i === void 0 ? a : h(Xt());
|
|
5876
5876
|
}
|
|
5877
5877
|
function m() {
|
|
5878
|
-
var k =
|
|
5878
|
+
var k = Xt(), w = A(k);
|
|
5879
5879
|
if (n = arguments, r = this, c = k, w) {
|
|
5880
5880
|
if (i === void 0)
|
|
5881
5881
|
return d(c);
|
|
@@ -6080,18 +6080,18 @@ const bl = !!(typeof window < "u" && window.document && window.document.createEl
|
|
|
6080
6080
|
function yn() {
|
|
6081
6081
|
return vn() ? document.visibilityState !== "hidden" : !0;
|
|
6082
6082
|
}
|
|
6083
|
-
const
|
|
6083
|
+
const Du = [];
|
|
6084
6084
|
function ml(e) {
|
|
6085
|
-
return
|
|
6086
|
-
const t =
|
|
6087
|
-
|
|
6085
|
+
return Du.push(e), function() {
|
|
6086
|
+
const t = Du.indexOf(e);
|
|
6087
|
+
Du.splice(t, 1);
|
|
6088
6088
|
};
|
|
6089
6089
|
}
|
|
6090
6090
|
if (vn()) {
|
|
6091
6091
|
const e = () => {
|
|
6092
6092
|
if (yn())
|
|
6093
|
-
for (let u = 0; u <
|
|
6094
|
-
const t =
|
|
6093
|
+
for (let u = 0; u < Du.length; u++) {
|
|
6094
|
+
const t = Du[u];
|
|
6095
6095
|
t();
|
|
6096
6096
|
}
|
|
6097
6097
|
};
|
|
@@ -6139,18 +6139,18 @@ function xl(e, u) {
|
|
|
6139
6139
|
function kl() {
|
|
6140
6140
|
return vn() && typeof navigator.onLine < "u" ? navigator.onLine : !0;
|
|
6141
6141
|
}
|
|
6142
|
-
const
|
|
6142
|
+
const Fu = [];
|
|
6143
6143
|
function _l(e) {
|
|
6144
|
-
return
|
|
6145
|
-
const t =
|
|
6146
|
-
t > -1 &&
|
|
6144
|
+
return Fu.push(e), function() {
|
|
6145
|
+
const t = Fu.indexOf(e);
|
|
6146
|
+
t > -1 && Fu.splice(t, 1);
|
|
6147
6147
|
};
|
|
6148
6148
|
}
|
|
6149
6149
|
if (bl) {
|
|
6150
6150
|
const e = () => {
|
|
6151
6151
|
if (!(!yn() || !kl()))
|
|
6152
|
-
for (let u = 0; u <
|
|
6153
|
-
const t =
|
|
6152
|
+
for (let u = 0; u < Fu.length; u++) {
|
|
6153
|
+
const t = Fu[u];
|
|
6154
6154
|
t();
|
|
6155
6155
|
}
|
|
6156
6156
|
};
|
|
@@ -6208,7 +6208,7 @@ function Al(e, u, t) {
|
|
|
6208
6208
|
var n = !0, r = !0;
|
|
6209
6209
|
if (typeof e != "function")
|
|
6210
6210
|
throw new TypeError(El);
|
|
6211
|
-
return
|
|
6211
|
+
return ht(t) && (n = "leading" in t ? !!t.leading : n, r = "trailing" in t ? !!t.trailing : r), _o(e, u, {
|
|
6212
6212
|
leading: n,
|
|
6213
6213
|
maxWait: u,
|
|
6214
6214
|
trailing: r
|
|
@@ -6248,15 +6248,15 @@ const wl = (e, { throttleWait: u, throttleLeading: t, throttleTrailing: n }) =>
|
|
|
6248
6248
|
}
|
|
6249
6249
|
}) : {};
|
|
6250
6250
|
}, Dr = (e) => typeof e == "function", Cl = (e) => typeof e == "boolean";
|
|
6251
|
-
var Dl = Object.defineProperty, Fl = (e, u, t) => u in e ? Dl(e, u, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[u] = t,
|
|
6251
|
+
var Dl = Object.defineProperty, Fl = (e, u, t) => u in e ? Dl(e, u, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[u] = t, nt = (e, u, t) => (Fl(e, typeof u != "symbol" ? u + "" : u, t), t);
|
|
6252
6252
|
class Sl {
|
|
6253
6253
|
constructor(u, t, n, r = {}) {
|
|
6254
|
-
|
|
6254
|
+
nt(this, "pluginImpls"), nt(this, "count", 0), nt(this, "state", {
|
|
6255
6255
|
loading: !1,
|
|
6256
6256
|
params: void 0,
|
|
6257
6257
|
data: void 0,
|
|
6258
6258
|
error: void 0
|
|
6259
|
-
}),
|
|
6259
|
+
}), nt(this, "previousValidData"), this.serviceRef = u, this.options = t, this.setUpdateData = n, this.initState = r, this.state = {
|
|
6260
6260
|
...this.state,
|
|
6261
6261
|
loading: !t.manual,
|
|
6262
6262
|
...r
|
|
@@ -6383,7 +6383,7 @@ function Rl(e, u = {}, t = []) {
|
|
|
6383
6383
|
ready: a,
|
|
6384
6384
|
initialData: r,
|
|
6385
6385
|
...i
|
|
6386
|
-
}, s = G(e), l =
|
|
6386
|
+
}, s = G(e), l = Tu({
|
|
6387
6387
|
data: r,
|
|
6388
6388
|
loading: !1,
|
|
6389
6389
|
params: void 0,
|
|
@@ -6400,7 +6400,7 @@ function Rl(e, u = {}, t = []) {
|
|
|
6400
6400
|
Object.assign({}, ..._, l)
|
|
6401
6401
|
);
|
|
6402
6402
|
x.options = c, x.pluginImpls = t.map((E) => E(x, c));
|
|
6403
|
-
const d = ge(() =>
|
|
6403
|
+
const d = ge(() => Qt(a) ? a.value : a);
|
|
6404
6404
|
if (Me(() => {
|
|
6405
6405
|
if (!o) {
|
|
6406
6406
|
const E = x.state.params || u.defaultParams || [];
|
|
@@ -6479,7 +6479,7 @@ const Il = /* @__PURE__ */ _n(Ml, [["render", Nl]]), zl = {
|
|
|
6479
6479
|
};
|
|
6480
6480
|
function Bl(e, u, t, n, r, o) {
|
|
6481
6481
|
return R(), se("svg", $l, u[0] || (u[0] = [
|
|
6482
|
-
|
|
6482
|
+
Lu("path", {
|
|
6483
6483
|
fill: "currentColor",
|
|
6484
6484
|
d: "M11 2c4.968 0 9 4.032 9 9s-4.032 9-9 9s-9-4.032-9-9s4.032-9 9-9m0 16c3.867 0 7-3.133 7-7s-3.133-7-7-7s-7 3.133-7 7s3.133 7 7 7m8.485.071l2.829 2.828l-1.415 1.415l-2.828-2.829z"
|
|
6485
6485
|
}, null, -1)
|
|
@@ -6498,7 +6498,7 @@ const Fr = /* @__PURE__ */ _n(zl, [["render", Bl]]), Ul = /* @__PURE__ */ xe({
|
|
|
6498
6498
|
},
|
|
6499
6499
|
emits: ["update:value"],
|
|
6500
6500
|
setup(e, { emit: u }) {
|
|
6501
|
-
const t = u, n =
|
|
6501
|
+
const t = u, n = mt("input-ref"), r = G(e.value), { isPending: o, start: a } = ki(() => {
|
|
6502
6502
|
}, typeof e.autoTrigger == "number" ? e.autoTrigger : 500);
|
|
6503
6503
|
je(() => e.value, (l) => {
|
|
6504
6504
|
r.value = l;
|
|
@@ -6539,7 +6539,7 @@ const Fr = /* @__PURE__ */ _n(zl, [["render", Bl]]), Ul = /* @__PURE__ */ xe({
|
|
|
6539
6539
|
_: 3
|
|
6540
6540
|
}, 16, ["value", "disabled"]),
|
|
6541
6541
|
H(l.$slots, "button", {}, () => [
|
|
6542
|
-
l.searchButton ? (R(), N(v(
|
|
6542
|
+
l.searchButton ? (R(), N(v(mu), Q({
|
|
6543
6543
|
key: 0,
|
|
6544
6544
|
type: l.type,
|
|
6545
6545
|
loading: l.loading
|
|
@@ -6556,7 +6556,7 @@ const Fr = /* @__PURE__ */ _n(zl, [["render", Bl]]), Ul = /* @__PURE__ */ xe({
|
|
|
6556
6556
|
_: 3
|
|
6557
6557
|
}));
|
|
6558
6558
|
}
|
|
6559
|
-
}),
|
|
6559
|
+
}), Qe = /* @__PURE__ */ xe({
|
|
6560
6560
|
__name: "PresetInput",
|
|
6561
6561
|
props: {
|
|
6562
6562
|
value: {},
|
|
@@ -6565,7 +6565,7 @@ const Fr = /* @__PURE__ */ _n(zl, [["render", Bl]]), Ul = /* @__PURE__ */ xe({
|
|
|
6565
6565
|
emits: ["update:value"],
|
|
6566
6566
|
setup(e, { emit: u }) {
|
|
6567
6567
|
const t = u, n = {
|
|
6568
|
-
button:
|
|
6568
|
+
button: mu,
|
|
6569
6569
|
"color-picker": di,
|
|
6570
6570
|
checkbox: fi,
|
|
6571
6571
|
"divider ": ln,
|
|
@@ -6662,7 +6662,7 @@ const Fr = /* @__PURE__ */ _n(zl, [["render", Bl]]), Ul = /* @__PURE__ */ xe({
|
|
|
6662
6662
|
collapsedGrid: C[1] === "grid",
|
|
6663
6663
|
collapsedFlex: C[1] === "flex"
|
|
6664
6664
|
};
|
|
6665
|
-
}), o =
|
|
6665
|
+
}), o = Tu(e.columns ?? []), a = mt("data-table-ref"), i = { page: "page", pageSize: "pageSize", filter: "filter", sorter: "sorter", list: "list", count: "count", rowKey: "id", ...e.fields }, c = Tu({
|
|
6666
6666
|
showSizePicker: !0,
|
|
6667
6667
|
pageSizes: [10, 20, 30],
|
|
6668
6668
|
pageSlot: 5,
|
|
@@ -6752,7 +6752,7 @@ const Fr = /* @__PURE__ */ _n(zl, [["render", Bl]]), Ul = /* @__PURE__ */ xe({
|
|
|
6752
6752
|
n("scroll", C);
|
|
6753
6753
|
},
|
|
6754
6754
|
onUpdateCheckedRowKeys: (C, z, T) => {
|
|
6755
|
-
n("update:checkedRowKeys", C, z, T);
|
|
6755
|
+
n("update:checkedRowKeys", C, z.map(Ve), { row: Ve(T.row), action: T.action });
|
|
6756
6756
|
},
|
|
6757
6757
|
onUpdateExpandedRowKeys: (C) => {
|
|
6758
6758
|
n("update:expandedRowKeys", C);
|
|
@@ -6765,16 +6765,16 @@ const Fr = /* @__PURE__ */ _n(zl, [["render", Bl]]), Ul = /* @__PURE__ */ xe({
|
|
|
6765
6765
|
I.value = !1, n("contextMenuSelect", {
|
|
6766
6766
|
key: C,
|
|
6767
6767
|
option: z,
|
|
6768
|
-
row:
|
|
6768
|
+
row: Ve(du(B))
|
|
6769
6769
|
});
|
|
6770
6770
|
}
|
|
6771
6771
|
function S(C, z) {
|
|
6772
6772
|
return {
|
|
6773
6773
|
onClick: (T) => {
|
|
6774
|
-
n("clickRow", { row: C, index: z, event: T });
|
|
6774
|
+
n("clickRow", { row: Ve(C), index: z, event: T });
|
|
6775
6775
|
},
|
|
6776
6776
|
onContextmenu: (T) => {
|
|
6777
|
-
n("contextMenuRow", { row: C, index: z, event: T }), e.contextMenuOptions && (T.preventDefault(), I.value = !1, B.value = C, rn(() => {
|
|
6777
|
+
n("contextMenuRow", { row: Ve(C), index: z, event: T }), e.contextMenuOptions && (T.preventDefault(), I.value = !1, B.value = C, rn(() => {
|
|
6778
6778
|
I.value = !0, J.value = {
|
|
6779
6779
|
x: T.x,
|
|
6780
6780
|
y: T.y
|
|
@@ -6821,15 +6821,15 @@ const Fr = /* @__PURE__ */ _n(zl, [["render", Bl]]), Ul = /* @__PURE__ */ xe({
|
|
|
6821
6821
|
}, () => [
|
|
6822
6822
|
Y(v(qe), { vertical: "" }, {
|
|
6823
6823
|
default: M(() => [
|
|
6824
|
-
r.value.grid ? (R(), N(v(
|
|
6824
|
+
r.value.grid ? (R(), N(v(st), ce(Q({ key: 0 }, C.filterGridProps)), {
|
|
6825
6825
|
default: M(() => [
|
|
6826
|
-
(R(!0), se(Ae, null,
|
|
6826
|
+
(R(!0), se(Ae, null, Ye(C.filterOptions?.filter((T) => !T.collapsed), ({ key: T, gridItemProps: V, render: $, label: Z, ...j }, te) => (R(), N(v(lt), Q({
|
|
6827
6827
|
key: te,
|
|
6828
6828
|
span: 12
|
|
6829
6829
|
}, { ref_for: !0 }, V), {
|
|
6830
6830
|
default: M(() => [
|
|
6831
6831
|
$ ? (R(), N(oe(v(pe)($(ee, W), Z, { path: T, labelPlacement: "left" })), { key: 0 })) : (R(), N(oe(v(pe)(
|
|
6832
|
-
he(v(
|
|
6832
|
+
he(v(Qe), {
|
|
6833
6833
|
options: j,
|
|
6834
6834
|
value: T ? v(d)[0][T] : void 0,
|
|
6835
6835
|
"onUpdate:value": (Ce) => be(Ce, T)
|
|
@@ -6845,9 +6845,9 @@ const Fr = /* @__PURE__ */ _n(zl, [["render", Bl]]), Ul = /* @__PURE__ */ xe({
|
|
|
6845
6845
|
}, 16)) : ie("", !0),
|
|
6846
6846
|
r.value.flex ? (R(), N(v(qe), ce(Q({ key: 1 }, C.filterFlexProps)), {
|
|
6847
6847
|
default: M(() => [
|
|
6848
|
-
(R(!0), se(Ae, null,
|
|
6848
|
+
(R(!0), se(Ae, null, Ye(C.filterOptions?.filter((T) => !T.collapsed), ({ key: T, render: V, label: $, ...Z }, j) => (R(), se(Ae, { key: j }, [
|
|
6849
6849
|
V ? (R(), N(oe(v(pe)(V(ee, W), $, { path: T, labelPlacement: "left" })), { key: 0 })) : (R(), N(oe(v(pe)(
|
|
6850
|
-
he(v(
|
|
6850
|
+
he(v(Qe), {
|
|
6851
6851
|
options: Z,
|
|
6852
6852
|
value: T ? v(d)[0][T] : void 0,
|
|
6853
6853
|
"onUpdate:value": (te) => be(te, T)
|
|
@@ -6864,12 +6864,12 @@ const Fr = /* @__PURE__ */ _n(zl, [["render", Bl]]), Ul = /* @__PURE__ */ xe({
|
|
|
6864
6864
|
style: { margin: "5px 0" }
|
|
6865
6865
|
}, {
|
|
6866
6866
|
default: M(() => [
|
|
6867
|
-
Y(v(
|
|
6867
|
+
Y(v(mu), {
|
|
6868
6868
|
size: "tiny",
|
|
6869
6869
|
onClick: z[0] || (z[0] = (T) => q.value = !q.value)
|
|
6870
6870
|
}, {
|
|
6871
6871
|
default: M(() => [
|
|
6872
|
-
|
|
6872
|
+
Nu(Iu(q.value ? "折叠" : "展开"), 1)
|
|
6873
6873
|
]),
|
|
6874
6874
|
_: 1
|
|
6875
6875
|
})
|
|
@@ -6878,15 +6878,15 @@ const Fr = /* @__PURE__ */ _n(zl, [["render", Bl]]), Ul = /* @__PURE__ */ xe({
|
|
|
6878
6878
|
})) : ie("", !0),
|
|
6879
6879
|
Y(v(Or), { show: q.value }, {
|
|
6880
6880
|
default: M(() => [
|
|
6881
|
-
r.value.collapsedGrid ? (R(), N(v(
|
|
6881
|
+
r.value.collapsedGrid ? (R(), N(v(st), ce(Q({ key: 0 }, C.filterGridProps)), {
|
|
6882
6882
|
default: M(() => [
|
|
6883
|
-
(R(!0), se(Ae, null,
|
|
6883
|
+
(R(!0), se(Ae, null, Ye(C.filterOptions?.filter((T) => T.collapsed), ({ key: T, gridItemProps: V, render: $, label: Z, ...j }, te) => (R(), N(v(lt), Q({
|
|
6884
6884
|
key: te,
|
|
6885
6885
|
span: 12
|
|
6886
6886
|
}, { ref_for: !0 }, V), {
|
|
6887
6887
|
default: M(() => [
|
|
6888
6888
|
$ ? (R(), N(oe(v(pe)($(ee, W), Z, { path: T, labelPlacement: "left" })), { key: 0 })) : (R(), N(oe(v(pe)(
|
|
6889
|
-
he(v(
|
|
6889
|
+
he(v(Qe), {
|
|
6890
6890
|
options: j,
|
|
6891
6891
|
value: T ? v(d)[0][T] : void 0,
|
|
6892
6892
|
"onUpdate:value": (Ce) => be(Ce, T)
|
|
@@ -6902,9 +6902,9 @@ const Fr = /* @__PURE__ */ _n(zl, [["render", Bl]]), Ul = /* @__PURE__ */ xe({
|
|
|
6902
6902
|
}, 16)) : ie("", !0),
|
|
6903
6903
|
r.value.collapsedFlex ? (R(), N(v(qe), ce(Q({ key: 1 }, C.filterFlexProps)), {
|
|
6904
6904
|
default: M(() => [
|
|
6905
|
-
(R(!0), se(Ae, null,
|
|
6905
|
+
(R(!0), se(Ae, null, Ye(C.filterOptions?.filter((T) => T.collapsed), ({ key: T, render: V, label: $, ...Z }, j) => (R(), se(Ae, { key: j }, [
|
|
6906
6906
|
V ? (R(), N(oe(v(pe)(V(ee, W), $, { path: T, labelPlacement: "left" })), { key: 0 })) : (R(), N(oe(v(pe)(
|
|
6907
|
-
he(v(
|
|
6907
|
+
he(v(Qe), {
|
|
6908
6908
|
options: Z,
|
|
6909
6909
|
value: T ? v(d)[0][T] : void 0,
|
|
6910
6910
|
"onUpdate:value": (te) => be(te, T)
|
|
@@ -7013,16 +7013,16 @@ function vo(e, u) {
|
|
|
7013
7013
|
return typeof e == "string" ? t : typeof e == "number" ? n : typeof e == "boolean" ? r : e;
|
|
7014
7014
|
}
|
|
7015
7015
|
function ql(e, u) {
|
|
7016
|
-
const { rules: t, clearRules: n } = u ?? {}, r =
|
|
7016
|
+
const { rules: t, clearRules: n } = u ?? {}, r = Tu(e ? structuredClone(Ve(e)) : {}), o = t, a = G(), i = {
|
|
7017
7017
|
ref: a,
|
|
7018
7018
|
model: r,
|
|
7019
7019
|
rules: o
|
|
7020
|
-
}, c =
|
|
7020
|
+
}, c = rt();
|
|
7021
7021
|
function s() {
|
|
7022
7022
|
return new Promise((d, E) => {
|
|
7023
7023
|
if (!a.value)
|
|
7024
7024
|
return E(new Error("formRef:undefined"));
|
|
7025
|
-
a.value.validate().then((A) => (c.trigger(
|
|
7025
|
+
a.value.validate().then((A) => (c.trigger(Ve(du(r))), d(A))).catch(E);
|
|
7026
7026
|
});
|
|
7027
7027
|
}
|
|
7028
7028
|
function l() {
|
|
@@ -7124,15 +7124,15 @@ const Ql = /* @__PURE__ */ xe({
|
|
|
7124
7124
|
refs: A,
|
|
7125
7125
|
actions: y
|
|
7126
7126
|
}, () => [
|
|
7127
|
-
r.value.grid ? (R(), N(v(
|
|
7127
|
+
r.value.grid ? (R(), N(v(st), ce(Q({ key: 0 }, p.gridProps)), {
|
|
7128
7128
|
default: M(() => [
|
|
7129
|
-
(R(!0), se(Ae, null,
|
|
7129
|
+
(R(!0), se(Ae, null, Ye(p.options?.filter((m) => !m.collapsed), ({ key: m, gridItemProps: k, render: w, label: P, ...D }, I) => (R(), N(v(lt), Q({
|
|
7130
7130
|
key: I,
|
|
7131
7131
|
span: 12
|
|
7132
7132
|
}, { ref_for: !0 }, k), {
|
|
7133
7133
|
default: M(() => [
|
|
7134
7134
|
w ? (R(), N(oe(v(pe)(w(A, y), P, { path: m })), { key: 0 })) : (R(), N(oe(v(pe)(
|
|
7135
|
-
he(v(
|
|
7135
|
+
he(v(Qe), {
|
|
7136
7136
|
options: D,
|
|
7137
7137
|
value: m ? v(a)[m] : void 0,
|
|
7138
7138
|
"onUpdate:value": (B) => h(B, m)
|
|
@@ -7148,9 +7148,9 @@ const Ql = /* @__PURE__ */ xe({
|
|
|
7148
7148
|
}, 16)) : ie("", !0),
|
|
7149
7149
|
r.value.flex ? (R(), N(v(qe), ce(Q({ key: 1 }, p.flexProps)), {
|
|
7150
7150
|
default: M(() => [
|
|
7151
|
-
(R(!0), se(Ae, null,
|
|
7151
|
+
(R(!0), se(Ae, null, Ye(p.options?.filter((m) => !m.collapsed), ({ key: m, render: k, label: w, ...P }, D) => (R(), se(Ae, { key: D }, [
|
|
7152
7152
|
k ? (R(), N(oe(v(pe)(k(A, y), w, { path: m })), { key: 0 })) : (R(), N(oe(v(pe)(
|
|
7153
|
-
he(v(
|
|
7153
|
+
he(v(Qe), {
|
|
7154
7154
|
options: P,
|
|
7155
7155
|
value: m ? v(a)[m] : void 0,
|
|
7156
7156
|
"onUpdate:value": (I) => h(I, m)
|
|
@@ -7167,12 +7167,12 @@ const Ql = /* @__PURE__ */ xe({
|
|
|
7167
7167
|
style: { margin: "5px 0" }
|
|
7168
7168
|
}, {
|
|
7169
7169
|
default: M(() => [
|
|
7170
|
-
Y(v(
|
|
7170
|
+
Y(v(mu), {
|
|
7171
7171
|
size: "tiny",
|
|
7172
7172
|
onClick: g[0] || (g[0] = (m) => E.value = !E.value)
|
|
7173
7173
|
}, {
|
|
7174
7174
|
default: M(() => [
|
|
7175
|
-
|
|
7175
|
+
Nu(Iu(E.value ? "折叠" : "展开"), 1)
|
|
7176
7176
|
]),
|
|
7177
7177
|
_: 1
|
|
7178
7178
|
})
|
|
@@ -7181,15 +7181,15 @@ const Ql = /* @__PURE__ */ xe({
|
|
|
7181
7181
|
})) : ie("", !0),
|
|
7182
7182
|
Y(v(Or), { show: E.value }, {
|
|
7183
7183
|
default: M(() => [
|
|
7184
|
-
r.value.collapsedGrid ? (R(), N(v(
|
|
7184
|
+
r.value.collapsedGrid ? (R(), N(v(st), ce(Q({ key: 0 }, p.gridProps)), {
|
|
7185
7185
|
default: M(() => [
|
|
7186
|
-
(R(!0), se(Ae, null,
|
|
7186
|
+
(R(!0), se(Ae, null, Ye(p.options?.filter((m) => m.collapsed), ({ key: m, gridItemProps: k, render: w, label: P, ...D }, I) => (R(), N(v(lt), Q({
|
|
7187
7187
|
key: I,
|
|
7188
7188
|
span: 12
|
|
7189
7189
|
}, { ref_for: !0 }, k), {
|
|
7190
7190
|
default: M(() => [
|
|
7191
7191
|
w ? (R(), N(oe(v(pe)(w(A, y), P, { path: m })), { key: 0 })) : (R(), N(oe(v(pe)(
|
|
7192
|
-
he(v(
|
|
7192
|
+
he(v(Qe), {
|
|
7193
7193
|
options: D,
|
|
7194
7194
|
value: m ? v(a)[m] : void 0,
|
|
7195
7195
|
"onUpdate:value": (B) => h(B, m)
|
|
@@ -7205,9 +7205,9 @@ const Ql = /* @__PURE__ */ xe({
|
|
|
7205
7205
|
}, 16)) : ie("", !0),
|
|
7206
7206
|
r.value.collapsedFlex ? (R(), N(v(qe), ce(Q({ key: 1 }, p.flexProps)), {
|
|
7207
7207
|
default: M(() => [
|
|
7208
|
-
(R(!0), se(Ae, null,
|
|
7208
|
+
(R(!0), se(Ae, null, Ye(p.options?.filter((m) => m.collapsed), ({ key: m, render: k, label: w, ...P }, D) => (R(), se(Ae, { key: D }, [
|
|
7209
7209
|
k ? (R(), N(oe(v(pe)(k(A, y), w, { path: m })), { key: 0 })) : (R(), N(oe(v(pe)(
|
|
7210
|
-
he(v(
|
|
7210
|
+
he(v(Qe), {
|
|
7211
7211
|
options: P,
|
|
7212
7212
|
value: m ? v(a)[m] : void 0,
|
|
7213
7213
|
"onUpdate:value": (I) => h(I, m)
|
|
@@ -7251,7 +7251,7 @@ const Ql = /* @__PURE__ */ xe({
|
|
|
7251
7251
|
},
|
|
7252
7252
|
emits: ["before", "success", "error", "finally", "blur", "clear", "create", "focus", "scroll", "search", "update:value", "update:page", "update:pageSize"],
|
|
7253
7253
|
setup(e, { expose: u, emit: t }) {
|
|
7254
|
-
const n = t, r =
|
|
7254
|
+
const n = t, r = mt("select-ref"), o = { page: "page", pageSize: "pageSize", search: "search", list: "list", count: "count", rowKey: "id", label: "label", value: "value", children: "children", ...e.fields }, a = Tu({
|
|
7255
7255
|
showSizePicker: !0,
|
|
7256
7256
|
pageSizes: [10, 20, 30],
|
|
7257
7257
|
pageSlot: 5,
|
|
@@ -7320,7 +7320,7 @@ const Ql = /* @__PURE__ */ xe({
|
|
|
7320
7320
|
},
|
|
7321
7321
|
onUpdateValue: (S, q) => {
|
|
7322
7322
|
const be = Array.isArray(S) ? p.value.filter((ee) => S.includes(ee[o.rowKey])) : p.value.find((ee) => ee[o.rowKey] === S) ?? null;
|
|
7323
|
-
n("update:value", S, q,
|
|
7323
|
+
n("update:value", S, q, Ve(du(be)));
|
|
7324
7324
|
},
|
|
7325
7325
|
onSearch: (S) => {
|
|
7326
7326
|
w.value = S, !f.value && (e.debounce ? P() : k({
|
|
@@ -7509,7 +7509,7 @@ const Ql = /* @__PURE__ */ xe({
|
|
|
7509
7509
|
}),
|
|
7510
7510
|
emits: ["update:value"],
|
|
7511
7511
|
setup(e) {
|
|
7512
|
-
const u = Uo(e, "value"), t = G(!1), n =
|
|
7512
|
+
const u = Uo(e, "value"), t = G(!1), n = mt("inputRef"), r = G(u.value);
|
|
7513
7513
|
function o() {
|
|
7514
7514
|
t.value = !0, rn(() => {
|
|
7515
7515
|
n.value?.focus();
|
|
@@ -7529,7 +7529,7 @@ const Ql = /* @__PURE__ */ xe({
|
|
|
7529
7529
|
onChange: a,
|
|
7530
7530
|
onBlur: a
|
|
7531
7531
|
}), null, 16, ["value"])) : (R(), se(Ae, { key: 1 }, [
|
|
7532
|
-
|
|
7532
|
+
Nu(Iu(r.value), 1)
|
|
7533
7533
|
], 64))
|
|
7534
7534
|
]));
|
|
7535
7535
|
}
|
|
@@ -7545,7 +7545,7 @@ const Ql = /* @__PURE__ */ xe({
|
|
|
7545
7545
|
const t = u;
|
|
7546
7546
|
return (n, r) => (R(), N(v(Pr), ce(Ue(n.tooltipProps)), {
|
|
7547
7547
|
trigger: M(() => [
|
|
7548
|
-
Y(v(
|
|
7548
|
+
Y(v(mu), Q(n.buttonProps, {
|
|
7549
7549
|
onClick: r[0] || (r[0] = (o) => t("click", o))
|
|
7550
7550
|
}), {
|
|
7551
7551
|
icon: M(() => [
|
|
@@ -7559,7 +7559,7 @@ const Ql = /* @__PURE__ */ xe({
|
|
|
7559
7559
|
]),
|
|
7560
7560
|
default: M(() => [
|
|
7561
7561
|
H(n.$slots, "tooltip", {}, () => [
|
|
7562
|
-
|
|
7562
|
+
Nu(Iu(n.value), 1)
|
|
7563
7563
|
])
|
|
7564
7564
|
]),
|
|
7565
7565
|
_: 3
|
|
@@ -7573,7 +7573,7 @@ export {
|
|
|
7573
7573
|
Xl as NDataTablePlus,
|
|
7574
7574
|
vs as NFullLoading,
|
|
7575
7575
|
Ql as NPresetForm,
|
|
7576
|
-
|
|
7576
|
+
Qe as NPresetInput,
|
|
7577
7577
|
Jl as NPresetSelect,
|
|
7578
7578
|
Kl as NRemoteRequest,
|
|
7579
7579
|
Ul as NSearchInput,
|