@oiij/naive-ui 0.0.45 → 0.0.47
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.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inject as Rr, onBeforeMount as Io, defineComponent as le, createBlock as N, openBlock as P, Transition as Bo, mergeProps as Y, unref as y, withCtx as O, renderSlot as z, ref as q, toValue as Ne, isRef as Qt, isReactive as zo, watchEffect as $e, watch as eu, computed as te, nextTick as Or, normalizeClass as Ou, createElementVNode as uu, normalizeStyle as an, createVNode as V, createCommentVNode as Z, resolveDynamicComponent as Ee, Teleport as Uo, normalizeProps as ke, guardReactiveProps as
|
|
2
|
-
import { NEl as sn, NAvatar as Yo, NFlex as
|
|
1
|
+
import { inject as Rr, onBeforeMount as Io, defineComponent as le, createBlock as N, openBlock as P, Transition as Bo, mergeProps as Y, unref as y, withCtx as O, renderSlot as z, ref as q, toValue as Ne, isRef as Qt, isReactive as zo, watchEffect as $e, watch as eu, computed as te, nextTick as Or, normalizeClass as Ou, createElementVNode as uu, normalizeStyle as an, createVNode as V, createCommentVNode as Z, resolveDynamicComponent as Ee, Teleport as Uo, normalizeProps as ke, guardReactiveProps as Je, createSlots as Lr, onMounted as qo, createElementBlock as he, createTextVNode as ou, toDisplayString as Ue, onScopeDispose as ln, onUnmounted as jo, reactive as ku, toRefs as Ho, useTemplateRef as ht, Fragment as Me, h as Ae, renderList as bu, toRaw as ge, toRef as Go, withModifiers as Vo, mergeModels as Wo, useModel as Zo } from "vue";
|
|
2
|
+
import { NEl as sn, NAvatar as Yo, NFlex as Ke, NSpin as Mr, cM as Hn, NConfigProvider as Xo, NLoadingBarProvider as Qo, NDialogProvider as Jo, NModalProvider as Ko, NNotificationProvider as ei, NMessageProvider as ui, NGlobalStyle as ti, useDialog as ni, useLoadingBar as ri, useMessage as oi, useModal as ii, useNotification as ai, NTooltip as cn, NButton as He, NInputGroup as li, NInput as fn, NFormItem as si, NTimePicker as ci, NSwitch as fi, NSlider as di, NSelect as Nr, NRate as pi, NRadioGroup as hi, NInputNumber as bi, NDynamicTags as mi, NDatePicker as gi, NDivider as dn, NCheckboxGroup as ki, NColorPicker as xi, NCheckbox as vi, NRadio as _i, NGrid as Jt, NGi as Kt, NBadge as $r, NCollapseTransition as Ir, NDataTable as yi, NPagination as Br, NModal as zr, NForm as Ei, NButtonGroup as Ai } from "naive-ui";
|
|
3
3
|
import { createEventHook as rt, useClipboard as wi, useTimeoutFn as Ci, useDebounceFn as Ur } from "@vueuse/core";
|
|
4
4
|
function Di(e) {
|
|
5
5
|
let u = ".", t = "__", n = "--", r;
|
|
@@ -150,11 +150,11 @@ function Oi(e) {
|
|
|
150
150
|
function Zu(e) {
|
|
151
151
|
return e ? /^\s*@(s|m)/.test(e) : !1;
|
|
152
152
|
}
|
|
153
|
-
const
|
|
153
|
+
const Li = /[A-Z]/g;
|
|
154
154
|
function jr(e) {
|
|
155
|
-
return e.replace(
|
|
155
|
+
return e.replace(Li, (u) => "-" + u.toLowerCase());
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function Mi(e, u = " ") {
|
|
158
158
|
return typeof e == "object" && e !== null ? ` {
|
|
159
159
|
` + Object.entries(e).map((t) => u + ` ${jr(t[0])}: ${t[1]};`).join(`
|
|
160
160
|
`) + `
|
|
@@ -191,7 +191,7 @@ ${r}
|
|
|
191
191
|
`);
|
|
192
192
|
return;
|
|
193
193
|
}
|
|
194
|
-
i = jr(i), l != null && a.push(` ${i}${
|
|
194
|
+
i = jr(i), l != null && a.push(` ${i}${Mi(l)}`);
|
|
195
195
|
}), e && a.push("}"), a.join(`
|
|
196
196
|
`);
|
|
197
197
|
}
|
|
@@ -454,7 +454,7 @@ un || (un = function(u, t, n) {
|
|
|
454
454
|
tn || (tn = function(u, t) {
|
|
455
455
|
return new u(...t);
|
|
456
456
|
});
|
|
457
|
-
const Qu = ve(Array.prototype.forEach), oa = ve(Array.prototype.lastIndexOf), Yn = ve(Array.prototype.pop), wu = ve(Array.prototype.push), ia = ve(Array.prototype.splice), ot = ve(String.prototype.toLowerCase), Pt = ve(String.prototype.toString), Xn = ve(String.prototype.match), Cu = ve(String.prototype.replace), aa = ve(String.prototype.indexOf), la = ve(String.prototype.trim),
|
|
457
|
+
const Qu = ve(Array.prototype.forEach), oa = ve(Array.prototype.lastIndexOf), Yn = ve(Array.prototype.pop), wu = ve(Array.prototype.push), ia = ve(Array.prototype.splice), ot = ve(String.prototype.toLowerCase), Pt = ve(String.prototype.toString), Xn = ve(String.prototype.match), Cu = ve(String.prototype.replace), aa = ve(String.prototype.indexOf), la = ve(String.prototype.trim), Le = ve(Object.prototype.hasOwnProperty), me = ve(RegExp.prototype.test), Du = sa(TypeError);
|
|
458
458
|
function ve(e) {
|
|
459
459
|
return function(u) {
|
|
460
460
|
u instanceof RegExp && (u.lastIndex = 0);
|
|
@@ -486,13 +486,13 @@ function j(e, u) {
|
|
|
486
486
|
}
|
|
487
487
|
function ca(e) {
|
|
488
488
|
for (let u = 0; u < e.length; u++)
|
|
489
|
-
|
|
489
|
+
Le(e, u) || (e[u] = null);
|
|
490
490
|
return e;
|
|
491
491
|
}
|
|
492
|
-
function
|
|
492
|
+
function Qe(e) {
|
|
493
493
|
const u = Wr(null);
|
|
494
494
|
for (const [t, n] of Vr(e))
|
|
495
|
-
|
|
495
|
+
Le(e, t) && (Array.isArray(n) ? u[t] = ca(n) : n && typeof n == "object" && n.constructor === Object ? u[t] = Qe(n) : u[t] = n);
|
|
496
496
|
return u;
|
|
497
497
|
}
|
|
498
498
|
function Fu(e, u) {
|
|
@@ -511,7 +511,7 @@ function Fu(e, u) {
|
|
|
511
511
|
}
|
|
512
512
|
return t;
|
|
513
513
|
}
|
|
514
|
-
const Qn = xe(["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"]), Rt = xe(["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"]), Ot = xe(["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"]), fa = xe(["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"]),
|
|
514
|
+
const Qn = xe(["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"]), Rt = xe(["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"]), Ot = xe(["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"]), fa = xe(["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"]), Lt = xe(["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"]), da = xe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Jn = xe(["#text"]), Kn = xe(["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"]), Mt = xe(["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"]), er = xe(["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 = xe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), pa = Te(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ha = Te(/<%[\w\W]*|[\w\W]*%>/gm), ba = Te(/\$\{[\w\W]*/gm), ma = Te(/^data-[\-\w.\u00B7-\uFFFF]+$/), ga = Te(/^aria-[\-\w]+$/), Zr = Te(
|
|
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
|
), ka = Te(/^(?:\w+script|data):/i), xa = Te(
|
|
@@ -611,17 +611,17 @@ function Xr() {
|
|
|
611
611
|
ERB_EXPR: J,
|
|
612
612
|
TMPLIT_EXPR: F,
|
|
613
613
|
DATA_ATTR: G,
|
|
614
|
-
ARIA_ATTR:
|
|
614
|
+
ARIA_ATTR: be,
|
|
615
615
|
IS_SCRIPT_OR_DATA: Re,
|
|
616
616
|
ATTR_WHITESPACE: X,
|
|
617
|
-
CUSTOM_ELEMENT:
|
|
617
|
+
CUSTOM_ELEMENT: ce
|
|
618
618
|
} = ur;
|
|
619
619
|
let {
|
|
620
620
|
IS_ALLOWED_URI: Fe
|
|
621
621
|
} = ur, Q = null;
|
|
622
|
-
const
|
|
622
|
+
const fe = j({}, [...Qn, ...Rt, ...Ot, ...Lt, ...Jn]);
|
|
623
623
|
let ne = null;
|
|
624
|
-
const Ce = j({}, [...Kn, ...
|
|
624
|
+
const Ce = j({}, [...Kn, ...Mt, ...er, ...Ju]);
|
|
625
625
|
let U = Object.seal(Wr(null, {
|
|
626
626
|
tagNameCheck: {
|
|
627
627
|
writable: !0,
|
|
@@ -641,28 +641,28 @@ function Xr() {
|
|
|
641
641
|
enumerable: !0,
|
|
642
642
|
value: !1
|
|
643
643
|
}
|
|
644
|
-
})), K = null, Oe = null,
|
|
644
|
+
})), K = null, Oe = null, se = !0, w = !0, L = !1, R = !0, H = !1, Be = !0, We = !1, yt = !1, Et = !1, lu = !1, qu = !1, ju = !1, Cn = !0, Dn = !1;
|
|
645
645
|
const To = "user-content-";
|
|
646
646
|
let At = !0, yu = !1, su = {}, cu = null;
|
|
647
647
|
const Fn = j({}, ["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 Sn = null;
|
|
649
649
|
const Tn = j({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
650
650
|
let wt = null;
|
|
651
|
-
const Pn = j({}, ["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",
|
|
652
|
-
let fu =
|
|
653
|
-
const Po = j({}, [Hu, Gu,
|
|
651
|
+
const Pn = j({}, ["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", Ze = "http://www.w3.org/1999/xhtml";
|
|
652
|
+
let fu = Ze, Ct = !1, Dt = null;
|
|
653
|
+
const Po = j({}, [Hu, Gu, Ze], Pt);
|
|
654
654
|
let Vu = j({}, ["mi", "mo", "mn", "ms", "mtext"]), Wu = j({}, ["annotation-xml"]);
|
|
655
655
|
const Ro = j({}, ["title", "style", "font", "a", "script"]);
|
|
656
656
|
let Eu = null;
|
|
657
|
-
const Oo = ["application/xhtml+xml", "text/html"],
|
|
657
|
+
const Oo = ["application/xhtml+xml", "text/html"], Lo = "text/html";
|
|
658
658
|
let oe = null, du = null;
|
|
659
|
-
const
|
|
659
|
+
const Mo = t.createElement("form"), Rn = function(k) {
|
|
660
660
|
return k instanceof RegExp || k instanceof Function;
|
|
661
661
|
}, Ft = function() {
|
|
662
662
|
let k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
663
663
|
if (!(du && du === k)) {
|
|
664
|
-
if ((!k || typeof k != "object") && (k = {}), k =
|
|
665
|
-
Oo.indexOf(k.PARSER_MEDIA_TYPE) === -1 ?
|
|
664
|
+
if ((!k || typeof k != "object") && (k = {}), k = Qe(k), Eu = // eslint-disable-next-line unicorn/prefer-includes
|
|
665
|
+
Oo.indexOf(k.PARSER_MEDIA_TYPE) === -1 ? Lo : k.PARSER_MEDIA_TYPE, oe = Eu === "application/xhtml+xml" ? Pt : ot, Q = Le(k, "ALLOWED_TAGS") ? j({}, k.ALLOWED_TAGS, oe) : fe, ne = Le(k, "ALLOWED_ATTR") ? j({}, k.ALLOWED_ATTR, oe) : Ce, Dt = Le(k, "ALLOWED_NAMESPACES") ? j({}, k.ALLOWED_NAMESPACES, Pt) : Po, wt = Le(k, "ADD_URI_SAFE_ATTR") ? j(Qe(Pn), k.ADD_URI_SAFE_ATTR, oe) : Pn, Sn = Le(k, "ADD_DATA_URI_TAGS") ? j(Qe(Tn), k.ADD_DATA_URI_TAGS, oe) : Tn, cu = Le(k, "FORBID_CONTENTS") ? j({}, k.FORBID_CONTENTS, oe) : Fn, K = Le(k, "FORBID_TAGS") ? j({}, k.FORBID_TAGS, oe) : Qe({}), Oe = Le(k, "FORBID_ATTR") ? j({}, k.FORBID_ATTR, oe) : Qe({}), su = Le(k, "USE_PROFILES") ? k.USE_PROFILES : !1, se = k.ALLOW_ARIA_ATTR !== !1, w = k.ALLOW_DATA_ATTR !== !1, L = k.ALLOW_UNKNOWN_PROTOCOLS || !1, R = k.ALLOW_SELF_CLOSE_IN_ATTR !== !1, H = k.SAFE_FOR_TEMPLATES || !1, Be = k.SAFE_FOR_XML !== !1, We = k.WHOLE_DOCUMENT || !1, lu = k.RETURN_DOM || !1, qu = k.RETURN_DOM_FRAGMENT || !1, ju = k.RETURN_TRUSTED_TYPE || !1, Et = k.FORCE_BODY || !1, Cn = k.SANITIZE_DOM !== !1, Dn = k.SANITIZE_NAMED_PROPS || !1, At = k.KEEP_CONTENT !== !1, yu = k.IN_PLACE || !1, Fe = k.ALLOWED_URI_REGEXP || Zr, fu = k.NAMESPACE || Ze, Vu = k.MATHML_TEXT_INTEGRATION_POINTS || Vu, Wu = k.HTML_INTEGRATION_POINTS || Wu, U = k.CUSTOM_ELEMENT_HANDLING || {}, k.CUSTOM_ELEMENT_HANDLING && Rn(k.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (U.tagNameCheck = k.CUSTOM_ELEMENT_HANDLING.tagNameCheck), k.CUSTOM_ELEMENT_HANDLING && Rn(k.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (U.attributeNameCheck = k.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), k.CUSTOM_ELEMENT_HANDLING && typeof k.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (U.allowCustomizedBuiltInElements = k.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), H && (w = !1), qu && (lu = !0), su && (Q = j({}, Jn), ne = [], su.html === !0 && (j(Q, Qn), j(ne, Kn)), su.svg === !0 && (j(Q, Rt), j(ne, Mt), j(ne, Ju)), su.svgFilters === !0 && (j(Q, Ot), j(ne, Mt), j(ne, Ju)), su.mathMl === !0 && (j(Q, Lt), j(ne, er), j(ne, Ju))), k.ADD_TAGS && (Q === fe && (Q = Qe(Q)), j(Q, k.ADD_TAGS, oe)), k.ADD_ATTR && (ne === Ce && (ne = Qe(ne)), j(ne, k.ADD_ATTR, oe)), k.ADD_URI_SAFE_ATTR && j(wt, k.ADD_URI_SAFE_ATTR, oe), k.FORBID_CONTENTS && (cu === Fn && (cu = Qe(cu)), j(cu, k.FORBID_CONTENTS, oe)), At && (Q["#text"] = !0), We && j(Q, ["html", "head", "body"]), Q.table && (j(Q, ["tbody"]), delete K.tbody), k.TRUSTED_TYPES_POLICY) {
|
|
666
666
|
if (typeof k.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
667
667
|
throw Du('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
668
668
|
if (typeof k.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -672,14 +672,14 @@ function Xr() {
|
|
|
672
672
|
m === void 0 && (m = ya(x, r)), m !== null && typeof b == "string" && (b = m.createHTML(""));
|
|
673
673
|
xe && xe(k), du = k;
|
|
674
674
|
}
|
|
675
|
-
}, On = j({}, [...Rt, ...Ot, ...fa]),
|
|
675
|
+
}, On = j({}, [...Rt, ...Ot, ...fa]), Ln = j({}, [...Lt, ...da]), No = function(k) {
|
|
676
676
|
let S = g(k);
|
|
677
677
|
(!S || !S.tagName) && (S = {
|
|
678
678
|
namespaceURI: fu,
|
|
679
679
|
tagName: "template"
|
|
680
680
|
});
|
|
681
|
-
const
|
|
682
|
-
return Dt[k.namespaceURI] ? k.namespaceURI === Gu ? S.namespaceURI ===
|
|
681
|
+
const M = ot(k.tagName), ue = ot(S.tagName);
|
|
682
|
+
return Dt[k.namespaceURI] ? k.namespaceURI === Gu ? S.namespaceURI === Ze ? M === "svg" : S.namespaceURI === Hu ? M === "svg" && (ue === "annotation-xml" || Vu[ue]) : !!On[M] : k.namespaceURI === Hu ? S.namespaceURI === Ze ? M === "math" : S.namespaceURI === Gu ? M === "math" && Wu[ue] : !!Ln[M] : k.namespaceURI === Ze ? S.namespaceURI === Gu && !Wu[ue] || S.namespaceURI === Hu && !Vu[ue] ? !1 : !Ln[M] && (Ro[M] || !On[M]) : !!(Eu === "application/xhtml+xml" && Dt[k.namespaceURI]) : !1;
|
|
683
683
|
}, ze = function(k) {
|
|
684
684
|
wu(u.removed, {
|
|
685
685
|
element: k
|
|
@@ -712,17 +712,17 @@ function Xr() {
|
|
|
712
712
|
S.setAttribute(k, "");
|
|
713
713
|
} catch {
|
|
714
714
|
}
|
|
715
|
-
},
|
|
716
|
-
let S = null,
|
|
715
|
+
}, Mn = function(k) {
|
|
716
|
+
let S = null, M = null;
|
|
717
717
|
if (Et)
|
|
718
718
|
k = "<remove></remove>" + k;
|
|
719
719
|
else {
|
|
720
720
|
const re = Xn(k, /^[\r\n\t ]+/);
|
|
721
|
-
|
|
721
|
+
M = re && re[0];
|
|
722
722
|
}
|
|
723
|
-
Eu === "application/xhtml+xml" && fu ===
|
|
723
|
+
Eu === "application/xhtml+xml" && fu === Ze && (k = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + k + "</body></html>");
|
|
724
724
|
const ue = m ? m.createHTML(k) : k;
|
|
725
|
-
if (fu ===
|
|
725
|
+
if (fu === Ze)
|
|
726
726
|
try {
|
|
727
727
|
S = new v().parseFromString(ue, Eu);
|
|
728
728
|
} catch {
|
|
@@ -734,8 +734,8 @@ function Xr() {
|
|
|
734
734
|
} catch {
|
|
735
735
|
}
|
|
736
736
|
}
|
|
737
|
-
const
|
|
738
|
-
return k &&
|
|
737
|
+
const de = S.body || S.documentElement;
|
|
738
|
+
return k && M && de.insertBefore(t.createTextNode(M), de.childNodes[0] || null), fu === Ze ? D.call(S, We ? "html" : "body")[0] : We ? S.documentElement : de;
|
|
739
739
|
}, Nn = function(k) {
|
|
740
740
|
return C.call(
|
|
741
741
|
k.ownerDocument || k,
|
|
@@ -749,46 +749,46 @@ function Xr() {
|
|
|
749
749
|
}, $n = function(k) {
|
|
750
750
|
return typeof i == "function" && k instanceof i;
|
|
751
751
|
};
|
|
752
|
-
function
|
|
753
|
-
Qu(B, (
|
|
754
|
-
|
|
752
|
+
function Ye(B, k, S) {
|
|
753
|
+
Qu(B, (M) => {
|
|
754
|
+
M.call(u, k, S, du);
|
|
755
755
|
});
|
|
756
756
|
}
|
|
757
757
|
const In = function(k) {
|
|
758
758
|
let S = null;
|
|
759
|
-
if (
|
|
759
|
+
if (Ye(I.beforeSanitizeElements, k, null), St(k))
|
|
760
760
|
return ze(k), !0;
|
|
761
|
-
const
|
|
762
|
-
if (
|
|
763
|
-
tagName:
|
|
761
|
+
const M = oe(k.nodeName);
|
|
762
|
+
if (Ye(I.uponSanitizeElement, k, {
|
|
763
|
+
tagName: M,
|
|
764
764
|
allowedTags: Q
|
|
765
765
|
}), Be && k.hasChildNodes() && !$n(k.firstElementChild) && me(/<[/\w!]/g, k.innerHTML) && me(/<[/\w!]/g, k.textContent) || k.nodeType === Su.progressingInstruction || Be && k.nodeType === Su.comment && me(/<[/\w]/g, k.data))
|
|
766
766
|
return ze(k), !0;
|
|
767
|
-
if (!Q[
|
|
768
|
-
if (!K[
|
|
767
|
+
if (!Q[M] || K[M]) {
|
|
768
|
+
if (!K[M] && zn(M) && (U.tagNameCheck instanceof RegExp && me(U.tagNameCheck, M) || U.tagNameCheck instanceof Function && U.tagNameCheck(M)))
|
|
769
769
|
return !1;
|
|
770
|
-
if (At && !cu[
|
|
771
|
-
const ue = g(k) || k.parentNode,
|
|
772
|
-
if (
|
|
773
|
-
const re =
|
|
770
|
+
if (At && !cu[M]) {
|
|
771
|
+
const ue = g(k) || k.parentNode, de = p(k) || k.childNodes;
|
|
772
|
+
if (de && ue) {
|
|
773
|
+
const re = de.length;
|
|
774
774
|
for (let _e = re - 1; _e >= 0; --_e) {
|
|
775
|
-
const
|
|
776
|
-
|
|
775
|
+
const Xe = _(de[_e], !0);
|
|
776
|
+
Xe.__removalCount = (k.__removalCount || 0) + 1, ue.insertBefore(Xe, E(k));
|
|
777
777
|
}
|
|
778
778
|
}
|
|
779
779
|
}
|
|
780
780
|
return ze(k), !0;
|
|
781
781
|
}
|
|
782
|
-
return k instanceof l && !No(k) || (
|
|
782
|
+
return k instanceof l && !No(k) || (M === "noscript" || M === "noembed" || M === "noframes") && me(/<\/no(script|embed|frames)/i, k.innerHTML) ? (ze(k), !0) : (H && k.nodeType === Su.text && (S = k.textContent, Qu([W, J, F], (ue) => {
|
|
783
783
|
S = Cu(S, ue, " ");
|
|
784
784
|
}), k.textContent !== S && (wu(u.removed, {
|
|
785
785
|
element: k.cloneNode()
|
|
786
|
-
}), k.textContent = S)),
|
|
787
|
-
}, Bn = function(k, S,
|
|
788
|
-
if (Cn && (S === "id" || S === "name") && (
|
|
786
|
+
}), k.textContent = S)), Ye(I.afterSanitizeElements, k, null), !1);
|
|
787
|
+
}, Bn = function(k, S, M) {
|
|
788
|
+
if (Cn && (S === "id" || S === "name") && (M in t || M in Mo))
|
|
789
789
|
return !1;
|
|
790
790
|
if (!(w && !Oe[S] && me(G, S))) {
|
|
791
|
-
if (!(
|
|
791
|
+
if (!(se && me(be, S))) {
|
|
792
792
|
if (!ne[S] || Oe[S]) {
|
|
793
793
|
if (
|
|
794
794
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
@@ -796,13 +796,13 @@ function Xr() {
|
|
|
796
796
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
797
797
|
!(zn(k) && (U.tagNameCheck instanceof RegExp && me(U.tagNameCheck, k) || U.tagNameCheck instanceof Function && U.tagNameCheck(k)) && (U.attributeNameCheck instanceof RegExp && me(U.attributeNameCheck, S) || U.attributeNameCheck instanceof Function && U.attributeNameCheck(S)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
798
798
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
799
|
-
S === "is" && U.allowCustomizedBuiltInElements && (U.tagNameCheck instanceof RegExp && me(U.tagNameCheck,
|
|
799
|
+
S === "is" && U.allowCustomizedBuiltInElements && (U.tagNameCheck instanceof RegExp && me(U.tagNameCheck, M) || U.tagNameCheck instanceof Function && U.tagNameCheck(M)))
|
|
800
800
|
) return !1;
|
|
801
801
|
} else if (!wt[S]) {
|
|
802
|
-
if (!me(Fe, Cu(
|
|
803
|
-
if (!((S === "src" || S === "xlink:href" || S === "href") && k !== "script" && aa(
|
|
804
|
-
if (!(
|
|
805
|
-
if (
|
|
802
|
+
if (!me(Fe, Cu(M, X, ""))) {
|
|
803
|
+
if (!((S === "src" || S === "xlink:href" || S === "href") && k !== "script" && aa(M, "data:") === 0 && Sn[k])) {
|
|
804
|
+
if (!(L && !me(Re, Cu(M, X, "")))) {
|
|
805
|
+
if (M)
|
|
806
806
|
return !1;
|
|
807
807
|
}
|
|
808
808
|
}
|
|
@@ -812,15 +812,15 @@ function Xr() {
|
|
|
812
812
|
}
|
|
813
813
|
return !0;
|
|
814
814
|
}, zn = function(k) {
|
|
815
|
-
return k !== "annotation-xml" && Xn(k,
|
|
815
|
+
return k !== "annotation-xml" && Xn(k, ce);
|
|
816
816
|
}, Un = function(k) {
|
|
817
|
-
|
|
817
|
+
Ye(I.beforeSanitizeAttributes, k, null);
|
|
818
818
|
const {
|
|
819
819
|
attributes: S
|
|
820
820
|
} = k;
|
|
821
821
|
if (!S || St(k))
|
|
822
822
|
return;
|
|
823
|
-
const
|
|
823
|
+
const M = {
|
|
824
824
|
attrName: "",
|
|
825
825
|
attrValue: "",
|
|
826
826
|
keepAttr: !0,
|
|
@@ -829,62 +829,62 @@ function Xr() {
|
|
|
829
829
|
};
|
|
830
830
|
let ue = S.length;
|
|
831
831
|
for (; ue--; ) {
|
|
832
|
-
const
|
|
832
|
+
const de = S[ue], {
|
|
833
833
|
name: re,
|
|
834
834
|
namespaceURI: _e,
|
|
835
|
-
value:
|
|
836
|
-
} =
|
|
837
|
-
let
|
|
838
|
-
if (
|
|
835
|
+
value: Xe
|
|
836
|
+
} = de, Au = oe(re), Tt = Xe;
|
|
837
|
+
let pe = re === "value" ? Tt : la(Tt);
|
|
838
|
+
if (M.attrName = Au, M.attrValue = pe, M.keepAttr = !0, M.forceKeepAttr = void 0, Ye(I.uponSanitizeAttribute, k, M), pe = M.attrValue, Dn && (Au === "id" || Au === "name") && (pu(re, k), pe = To + pe), Be && me(/((--!?|])>)|<\/(style|title)/i, pe)) {
|
|
839
839
|
pu(re, k);
|
|
840
840
|
continue;
|
|
841
841
|
}
|
|
842
|
-
if (
|
|
842
|
+
if (M.forceKeepAttr)
|
|
843
843
|
continue;
|
|
844
|
-
if (!
|
|
844
|
+
if (!M.keepAttr) {
|
|
845
845
|
pu(re, k);
|
|
846
846
|
continue;
|
|
847
847
|
}
|
|
848
|
-
if (!R && me(/\/>/i,
|
|
848
|
+
if (!R && me(/\/>/i, pe)) {
|
|
849
849
|
pu(re, k);
|
|
850
850
|
continue;
|
|
851
851
|
}
|
|
852
852
|
H && Qu([W, J, F], (jn) => {
|
|
853
|
-
|
|
853
|
+
pe = Cu(pe, jn, " ");
|
|
854
854
|
});
|
|
855
855
|
const qn = oe(k.nodeName);
|
|
856
|
-
if (!Bn(qn, Au,
|
|
856
|
+
if (!Bn(qn, Au, pe)) {
|
|
857
857
|
pu(re, k);
|
|
858
858
|
continue;
|
|
859
859
|
}
|
|
860
860
|
if (m && typeof x == "object" && typeof x.getAttributeType == "function" && !_e)
|
|
861
861
|
switch (x.getAttributeType(qn, Au)) {
|
|
862
862
|
case "TrustedHTML": {
|
|
863
|
-
|
|
863
|
+
pe = m.createHTML(pe);
|
|
864
864
|
break;
|
|
865
865
|
}
|
|
866
866
|
case "TrustedScriptURL": {
|
|
867
|
-
|
|
867
|
+
pe = m.createScriptURL(pe);
|
|
868
868
|
break;
|
|
869
869
|
}
|
|
870
870
|
}
|
|
871
|
-
if (
|
|
871
|
+
if (pe !== Tt)
|
|
872
872
|
try {
|
|
873
|
-
_e ? k.setAttributeNS(_e, re,
|
|
873
|
+
_e ? k.setAttributeNS(_e, re, pe) : k.setAttribute(re, pe), St(k) ? ze(k) : Yn(u.removed);
|
|
874
874
|
} catch {
|
|
875
875
|
pu(re, k);
|
|
876
876
|
}
|
|
877
877
|
}
|
|
878
|
-
|
|
878
|
+
Ye(I.afterSanitizeAttributes, k, null);
|
|
879
879
|
}, $o = function B(k) {
|
|
880
880
|
let S = null;
|
|
881
|
-
const
|
|
882
|
-
for (
|
|
883
|
-
|
|
884
|
-
|
|
881
|
+
const M = Nn(k);
|
|
882
|
+
for (Ye(I.beforeSanitizeShadowDOM, k, null); S = M.nextNode(); )
|
|
883
|
+
Ye(I.uponSanitizeShadowNode, S, null), In(S), Un(S), S.content instanceof o && B(S.content);
|
|
884
|
+
Ye(I.afterSanitizeShadowDOM, k, null);
|
|
885
885
|
};
|
|
886
886
|
return u.sanitize = function(B) {
|
|
887
|
-
let k = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, S = null,
|
|
887
|
+
let k = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, S = null, M = null, ue = null, de = null;
|
|
888
888
|
if (Ct = !B, Ct && (B = "<!-->"), typeof B != "string" && !$n(B))
|
|
889
889
|
if (typeof B.toString == "function") {
|
|
890
890
|
if (B = B.toString(), typeof B != "string")
|
|
@@ -895,17 +895,17 @@ function Xr() {
|
|
|
895
895
|
return B;
|
|
896
896
|
if (yt || Ft(k), u.removed = [], typeof B == "string" && (yu = !1), yu) {
|
|
897
897
|
if (B.nodeName) {
|
|
898
|
-
const
|
|
899
|
-
if (!Q[
|
|
898
|
+
const Xe = oe(B.nodeName);
|
|
899
|
+
if (!Q[Xe] || K[Xe])
|
|
900
900
|
throw Du("root node is forbidden and cannot be sanitized in-place");
|
|
901
901
|
}
|
|
902
902
|
} else if (B instanceof i)
|
|
903
|
-
S =
|
|
903
|
+
S = Mn("<!---->"), M = S.ownerDocument.importNode(B, !0), M.nodeType === Su.element && M.nodeName === "BODY" || M.nodeName === "HTML" ? S = M : S.appendChild(M);
|
|
904
904
|
else {
|
|
905
|
-
if (!lu && !H && !
|
|
905
|
+
if (!lu && !H && !We && // eslint-disable-next-line unicorn/prefer-includes
|
|
906
906
|
B.indexOf("<") === -1)
|
|
907
907
|
return m && ju ? m.createHTML(B) : B;
|
|
908
|
-
if (S =
|
|
908
|
+
if (S = Mn(B), !S)
|
|
909
909
|
return lu ? null : ju ? b : "";
|
|
910
910
|
}
|
|
911
911
|
S && Et && ze(S.firstChild);
|
|
@@ -916,16 +916,16 @@ function Xr() {
|
|
|
916
916
|
return B;
|
|
917
917
|
if (lu) {
|
|
918
918
|
if (qu)
|
|
919
|
-
for (
|
|
920
|
-
|
|
919
|
+
for (de = T.call(S.ownerDocument); S.firstChild; )
|
|
920
|
+
de.appendChild(S.firstChild);
|
|
921
921
|
else
|
|
922
|
-
|
|
923
|
-
return (ne.shadowroot || ne.shadowrootmode) && (
|
|
922
|
+
de = S;
|
|
923
|
+
return (ne.shadowroot || ne.shadowrootmode) && (de = $.call(n, de, !0)), de;
|
|
924
924
|
}
|
|
925
|
-
let _e =
|
|
926
|
-
return
|
|
927
|
-
` + _e), H && Qu([W, J, F], (
|
|
928
|
-
_e = Cu(_e,
|
|
925
|
+
let _e = We ? S.outerHTML : S.innerHTML;
|
|
926
|
+
return We && Q["!doctype"] && S.ownerDocument && S.ownerDocument.doctype && S.ownerDocument.doctype.name && me(Yr, S.ownerDocument.doctype.name) && (_e = "<!DOCTYPE " + S.ownerDocument.doctype.name + `>
|
|
927
|
+
` + _e), H && Qu([W, J, F], (Xe) => {
|
|
928
|
+
_e = Cu(_e, Xe, " ");
|
|
929
929
|
}), m && ju ? m.createHTML(_e) : _e;
|
|
930
930
|
}, u.setConfig = function() {
|
|
931
931
|
let B = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -934,8 +934,8 @@ function Xr() {
|
|
|
934
934
|
du = null, yt = !1;
|
|
935
935
|
}, u.isValidAttribute = function(B, k, S) {
|
|
936
936
|
du || Ft({});
|
|
937
|
-
const
|
|
938
|
-
return Bn(
|
|
937
|
+
const M = oe(B), ue = oe(k);
|
|
938
|
+
return Bn(M, ue, S);
|
|
939
939
|
}, u.addHook = function(B, k) {
|
|
940
940
|
typeof k == "function" && wu(I[B], k);
|
|
941
941
|
}, u.removeHook = function(B, k) {
|
|
@@ -1129,17 +1129,17 @@ st.prototype.parseHost = function(e) {
|
|
|
1129
1129
|
let u = Da.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
|
-
const
|
|
1132
|
+
const La = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1133
1133
|
__proto__: null,
|
|
1134
1134
|
decode: xu,
|
|
1135
1135
|
encode: Bu,
|
|
1136
1136
|
format: hn,
|
|
1137
1137
|
parse: bn
|
|
1138
|
-
}, Symbol.toStringTag, { value: "Module" })), Qr = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Jr = /[\0-\x1F\x7F-\x9F]/,
|
|
1138
|
+
}, Symbol.toStringTag, { value: "Module" })), Qr = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Jr = /[\0-\x1F\x7F-\x9F]/, Ma = /[\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]/, mn = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/, Kr = /[\$\+<->\^`\|~\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]/, eo = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, Na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1139
1139
|
__proto__: null,
|
|
1140
1140
|
Any: Qr,
|
|
1141
1141
|
Cc: Jr,
|
|
1142
|
-
Cf:
|
|
1142
|
+
Cf: Ma,
|
|
1143
1143
|
P: mn,
|
|
1144
1144
|
S: Kr,
|
|
1145
1145
|
Z: eo
|
|
@@ -1532,7 +1532,7 @@ function ee(e) {
|
|
|
1532
1532
|
}
|
|
1533
1533
|
return !1;
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1535
|
+
function Lu(e) {
|
|
1536
1536
|
if (e >= 8192 && e <= 8202)
|
|
1537
1537
|
return !0;
|
|
1538
1538
|
switch (e) {
|
|
@@ -1556,7 +1556,7 @@ function Mu(e) {
|
|
|
1556
1556
|
}
|
|
1557
1557
|
return !1;
|
|
1558
1558
|
}
|
|
1559
|
-
function
|
|
1559
|
+
function Mu(e) {
|
|
1560
1560
|
return mn.test(e) || Kr.test(e);
|
|
1561
1561
|
}
|
|
1562
1562
|
function Nu(e) {
|
|
@@ -1601,7 +1601,7 @@ function Nu(e) {
|
|
|
1601
1601
|
function xt(e) {
|
|
1602
1602
|
return e = e.trim().replace(/\s+/g, " "), "ẞ".toLowerCase() === "Ṿ" && (e = e.replace(/ẞ/g, "ß")), e.toLowerCase().toUpperCase();
|
|
1603
1603
|
}
|
|
1604
|
-
const s0 = { mdurl:
|
|
1604
|
+
const s0 = { mdurl: La, ucmicro: Na }, c0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1605
1605
|
__proto__: null,
|
|
1606
1606
|
arrayReplaceAt: no,
|
|
1607
1607
|
assign: kt,
|
|
@@ -1610,11 +1610,11 @@ const s0 = { mdurl: Ma, ucmicro: Na }, c0 = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
1610
1610
|
fromCodePoint: ct,
|
|
1611
1611
|
has: Qa,
|
|
1612
1612
|
isMdAsciiPunct: Nu,
|
|
1613
|
-
isPunctChar:
|
|
1613
|
+
isPunctChar: Mu,
|
|
1614
1614
|
isSpace: ee,
|
|
1615
1615
|
isString: gn,
|
|
1616
1616
|
isValidEntityCode: kn,
|
|
1617
|
-
isWhiteSpace:
|
|
1617
|
+
isWhiteSpace: Lu,
|
|
1618
1618
|
lib: s0,
|
|
1619
1619
|
normalizeReference: xt,
|
|
1620
1620
|
unescapeAll: vu,
|
|
@@ -1716,17 +1716,17 @@ const h0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1716
1716
|
parseLinkDestination: d0,
|
|
1717
1717
|
parseLinkLabel: f0,
|
|
1718
1718
|
parseLinkTitle: p0
|
|
1719
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1720
|
-
|
|
1719
|
+
}, Symbol.toStringTag, { value: "Module" })), Ge = {};
|
|
1720
|
+
Ge.code_inline = function(e, u, t, n, r) {
|
|
1721
1721
|
const o = e[u];
|
|
1722
1722
|
return "<code" + r.renderAttrs(o) + ">" + iu(o.content) + "</code>";
|
|
1723
1723
|
};
|
|
1724
|
-
|
|
1724
|
+
Ge.code_block = function(e, u, t, n, r) {
|
|
1725
1725
|
const o = e[u];
|
|
1726
1726
|
return "<pre" + r.renderAttrs(o) + "><code>" + iu(e[u].content) + `</code></pre>
|
|
1727
1727
|
`;
|
|
1728
1728
|
};
|
|
1729
|
-
|
|
1729
|
+
Ge.fence = function(e, u, t, n, r) {
|
|
1730
1730
|
const o = e[u], a = o.info ? vu(o.info).trim() : "";
|
|
1731
1731
|
let i = "", l = "";
|
|
1732
1732
|
if (a) {
|
|
@@ -1749,32 +1749,32 @@ He.fence = function(e, u, t, n, r) {
|
|
|
1749
1749
|
return `<pre><code${r.renderAttrs(o)}>${s}</code></pre>
|
|
1750
1750
|
`;
|
|
1751
1751
|
};
|
|
1752
|
-
|
|
1752
|
+
Ge.image = function(e, u, t, n, r) {
|
|
1753
1753
|
const o = e[u];
|
|
1754
1754
|
return o.attrs[o.attrIndex("alt")][1] = r.renderInlineAsText(o.children, t, n), r.renderToken(e, u, t);
|
|
1755
1755
|
};
|
|
1756
|
-
|
|
1756
|
+
Ge.hardbreak = function(e, u, t) {
|
|
1757
1757
|
return t.xhtmlOut ? `<br />
|
|
1758
1758
|
` : `<br>
|
|
1759
1759
|
`;
|
|
1760
1760
|
};
|
|
1761
|
-
|
|
1761
|
+
Ge.softbreak = function(e, u, t) {
|
|
1762
1762
|
return t.breaks ? t.xhtmlOut ? `<br />
|
|
1763
1763
|
` : `<br>
|
|
1764
1764
|
` : `
|
|
1765
1765
|
`;
|
|
1766
1766
|
};
|
|
1767
|
-
|
|
1767
|
+
Ge.text = function(e, u) {
|
|
1768
1768
|
return iu(e[u].content);
|
|
1769
1769
|
};
|
|
1770
|
-
|
|
1770
|
+
Ge.html_block = function(e, u) {
|
|
1771
1771
|
return e[u].content;
|
|
1772
1772
|
};
|
|
1773
|
-
|
|
1773
|
+
Ge.html_inline = function(e, u) {
|
|
1774
1774
|
return e[u].content;
|
|
1775
1775
|
};
|
|
1776
1776
|
function _u() {
|
|
1777
|
-
this.rules = kt({},
|
|
1777
|
+
this.rules = kt({}, Ge);
|
|
1778
1778
|
}
|
|
1779
1779
|
_u.prototype.renderAttrs = function(u) {
|
|
1780
1780
|
let t, n, r;
|
|
@@ -2102,7 +2102,7 @@ function P0(e, u) {
|
|
|
2102
2102
|
_ = e[t].content.charCodeAt(0);
|
|
2103
2103
|
break;
|
|
2104
2104
|
}
|
|
2105
|
-
const A = Nu(d) ||
|
|
2105
|
+
const A = Nu(d) || Mu(String.fromCharCode(d)), E = Nu(_) || Mu(String.fromCharCode(_)), p = Lu(d), g = Lu(_);
|
|
2106
2106
|
if (g ? f = !1 : E && (p || A || (f = !1)), p ? v = !1 : A && (g || E || (v = !1)), _ === 34 && c[0] === '"' && d >= 48 && d <= 57 && (v = f = !1), f && v && (f = A, v = E), !f && !v) {
|
|
2107
2107
|
x && (o.content = Ku(o.content, c.index, fr));
|
|
2108
2108
|
continue;
|
|
@@ -2172,7 +2172,7 @@ xn.prototype.process = function(e) {
|
|
|
2172
2172
|
u[t](e);
|
|
2173
2173
|
};
|
|
2174
2174
|
xn.prototype.State = oo;
|
|
2175
|
-
function
|
|
2175
|
+
function Ve(e, u, t, n) {
|
|
2176
2176
|
this.src = e, this.md = u, this.env = t, this.tokens = n, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0;
|
|
2177
2177
|
const r = this.src;
|
|
2178
2178
|
for (let o = 0, a = 0, i = 0, l = 0, s = r.length, c = !1; a < s; a++) {
|
|
@@ -2187,19 +2187,19 @@ function Ge(e, u, t, n) {
|
|
|
2187
2187
|
}
|
|
2188
2188
|
this.bMarks.push(r.length), this.eMarks.push(r.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
|
|
2189
2189
|
}
|
|
2190
|
-
|
|
2190
|
+
Ve.prototype.push = function(e, u, t) {
|
|
2191
2191
|
const n = new Ie(e, u, t);
|
|
2192
2192
|
return n.block = !0, t < 0 && this.level--, n.level = this.level, t > 0 && this.level++, this.tokens.push(n), n;
|
|
2193
2193
|
};
|
|
2194
|
-
|
|
2194
|
+
Ve.prototype.isEmpty = function(u) {
|
|
2195
2195
|
return this.bMarks[u] + this.tShift[u] >= this.eMarks[u];
|
|
2196
2196
|
};
|
|
2197
|
-
|
|
2197
|
+
Ve.prototype.skipEmptyLines = function(u) {
|
|
2198
2198
|
for (let t = this.lineMax; u < t && !(this.bMarks[u] + this.tShift[u] < this.eMarks[u]); u++)
|
|
2199
2199
|
;
|
|
2200
2200
|
return u;
|
|
2201
2201
|
};
|
|
2202
|
-
|
|
2202
|
+
Ve.prototype.skipSpaces = function(u) {
|
|
2203
2203
|
for (let t = this.src.length; u < t; u++) {
|
|
2204
2204
|
const n = this.src.charCodeAt(u);
|
|
2205
2205
|
if (!ee(n))
|
|
@@ -2207,7 +2207,7 @@ Ge.prototype.skipSpaces = function(u) {
|
|
|
2207
2207
|
}
|
|
2208
2208
|
return u;
|
|
2209
2209
|
};
|
|
2210
|
-
|
|
2210
|
+
Ve.prototype.skipSpacesBack = function(u, t) {
|
|
2211
2211
|
if (u <= t)
|
|
2212
2212
|
return u;
|
|
2213
2213
|
for (; u > t; )
|
|
@@ -2215,12 +2215,12 @@ Ge.prototype.skipSpacesBack = function(u, t) {
|
|
|
2215
2215
|
return u + 1;
|
|
2216
2216
|
return u;
|
|
2217
2217
|
};
|
|
2218
|
-
|
|
2218
|
+
Ve.prototype.skipChars = function(u, t) {
|
|
2219
2219
|
for (let n = this.src.length; u < n && this.src.charCodeAt(u) === t; u++)
|
|
2220
2220
|
;
|
|
2221
2221
|
return u;
|
|
2222
2222
|
};
|
|
2223
|
-
|
|
2223
|
+
Ve.prototype.skipCharsBack = function(u, t, n) {
|
|
2224
2224
|
if (u <= n)
|
|
2225
2225
|
return u;
|
|
2226
2226
|
for (; u > n; )
|
|
@@ -2228,7 +2228,7 @@ Ge.prototype.skipCharsBack = function(u, t, n) {
|
|
|
2228
2228
|
return u + 1;
|
|
2229
2229
|
return u;
|
|
2230
2230
|
};
|
|
2231
|
-
|
|
2231
|
+
Ve.prototype.getLines = function(u, t, n, r) {
|
|
2232
2232
|
if (u >= t)
|
|
2233
2233
|
return "";
|
|
2234
2234
|
const o = new Array(t - u);
|
|
@@ -2250,8 +2250,8 @@ Ge.prototype.getLines = function(u, t, n, r) {
|
|
|
2250
2250
|
}
|
|
2251
2251
|
return o.join("");
|
|
2252
2252
|
};
|
|
2253
|
-
|
|
2254
|
-
const
|
|
2253
|
+
Ve.prototype.Token = Ie;
|
|
2254
|
+
const L0 = 65536;
|
|
2255
2255
|
function It(e, u) {
|
|
2256
2256
|
const t = e.bMarks[u] + e.tShift[u], n = e.eMarks[u];
|
|
2257
2257
|
return e.src.slice(t, n);
|
|
@@ -2263,7 +2263,7 @@ function dr(e) {
|
|
|
2263
2263
|
r === 124 && (o ? (i += e.substring(a, n - 1), a = n) : (u.push(i + e.substring(a, n)), i = "", a = n + 1)), o = r === 92, n++, r = e.charCodeAt(n);
|
|
2264
2264
|
return u.push(i + e.substring(a)), u;
|
|
2265
2265
|
}
|
|
2266
|
-
function
|
|
2266
|
+
function M0(e, u, t, n) {
|
|
2267
2267
|
if (u + 2 > t)
|
|
2268
2268
|
return !1;
|
|
2269
2269
|
let r = u + 1;
|
|
@@ -2328,7 +2328,7 @@ function L0(e, u, t, n) {
|
|
|
2328
2328
|
m = !0;
|
|
2329
2329
|
break;
|
|
2330
2330
|
}
|
|
2331
|
-
if (m || (l = It(e, r).trim(), !l) || e.sCount[r] - e.blkIndent >= 4 || (s = dr(l), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), g += f - s.length, g >
|
|
2331
|
+
if (m || (l = It(e, r).trim(), !l) || e.sCount[r] - e.blkIndent >= 4 || (s = dr(l), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), g += f - s.length, g > L0))
|
|
2332
2332
|
break;
|
|
2333
2333
|
if (r === u + 2) {
|
|
2334
2334
|
const h = e.push("tbody_open", "tbody", 1);
|
|
@@ -2559,7 +2559,7 @@ function U0(e, u, t, n) {
|
|
|
2559
2559
|
if (e.listIndent = e.blkIndent, e.blkIndent = T, e.tight = !0, e.tShift[l] = h - e.bMarks[l], e.sCount[l] = b, h >= r && e.isEmpty(l + 1) ? e.line = Math.min(e.line + 2, t) : e.md.block.tokenize(e, l, t, !0), (!e.tight || E) && (s = !1), E = e.line - l > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = J, e.tShift[l] = I, e.sCount[l] = W, e.tight = $, i = e.push("list_item_close", "li", -1), i.markup = String.fromCharCode(d), l = e.line, D[1] = l, l >= t || e.sCount[l] < e.blkIndent || e.sCount[l] - e.blkIndent >= 4)
|
|
2560
2560
|
break;
|
|
2561
2561
|
let F = !1;
|
|
2562
|
-
for (let G = 0,
|
|
2562
|
+
for (let G = 0, be = p.length; G < be; G++)
|
|
2563
2563
|
if (p[G](e, l, t, !0)) {
|
|
2564
2564
|
F = !0;
|
|
2565
2565
|
break;
|
|
@@ -2852,7 +2852,7 @@ function ol(e, u, t) {
|
|
|
2852
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
|
-
["table",
|
|
2855
|
+
["table", M0, ["paragraph", "reference"]],
|
|
2856
2856
|
["code", N0],
|
|
2857
2857
|
["fence", $0, ["paragraph", "reference", "blockquote", "list"]],
|
|
2858
2858
|
["blockquote", I0, ["paragraph", "reference", "blockquote", "list"]],
|
|
@@ -2895,7 +2895,7 @@ vt.prototype.parse = function(e, u, t, n) {
|
|
|
2895
2895
|
const r = new this.State(e, u, t, n);
|
|
2896
2896
|
this.tokenize(r, r.line, r.lineMax);
|
|
2897
2897
|
};
|
|
2898
|
-
vt.prototype.State =
|
|
2898
|
+
vt.prototype.State = Ve;
|
|
2899
2899
|
function zu(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
|
}
|
|
@@ -2914,7 +2914,7 @@ zu.prototype.scanDelims = function(e, u) {
|
|
|
2914
2914
|
let o = e;
|
|
2915
2915
|
for (; o < t && this.src.charCodeAt(o) === n; )
|
|
2916
2916
|
o++;
|
|
2917
|
-
const a = o - e, i = o < t ? this.src.charCodeAt(o) : 32, l = Nu(r) ||
|
|
2917
|
+
const a = o - e, i = o < t ? this.src.charCodeAt(o) : 32, l = Nu(r) || Mu(String.fromCharCode(r)), s = Nu(i) || Mu(String.fromCharCode(i)), c = Lu(r), f = Lu(i), v = !f && (!s || c || l), x = !c && (!l || f || s);
|
|
2918
2918
|
return { can_open: v && (u || !x || l), can_close: x && (u || !v || s), length: a };
|
|
2919
2919
|
};
|
|
2920
2920
|
zu.prototype.Token = Ie;
|
|
@@ -3481,13 +3481,13 @@ function Rl(e) {
|
|
|
3481
3481
|
function Ol(e) {
|
|
3482
3482
|
return _t(e) === "[object Object]";
|
|
3483
3483
|
}
|
|
3484
|
-
function
|
|
3484
|
+
function Ll(e) {
|
|
3485
3485
|
return _t(e) === "[object RegExp]";
|
|
3486
3486
|
}
|
|
3487
3487
|
function kr(e) {
|
|
3488
3488
|
return _t(e) === "[object Function]";
|
|
3489
3489
|
}
|
|
3490
|
-
function
|
|
3490
|
+
function Ml(e) {
|
|
3491
3491
|
return e.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
|
|
3492
3492
|
}
|
|
3493
3493
|
const fo = {
|
|
@@ -3565,7 +3565,7 @@ function ft(e) {
|
|
|
3565
3565
|
return;
|
|
3566
3566
|
const s = { validate: null, link: null };
|
|
3567
3567
|
if (e.__compiled__[i] = s, Ol(l)) {
|
|
3568
|
-
|
|
3568
|
+
Ll(l.validate) ? s.validate = Ul(l.validate) : kr(l.validate) ? s.validate = l.validate : o(i, l), kr(l.normalize) ? s.normalize = l.normalize : l.normalize ? o(i, l) : s.normalize = xr();
|
|
3569
3569
|
return;
|
|
3570
3570
|
}
|
|
3571
3571
|
if (Rl(l)) {
|
|
@@ -3578,7 +3578,7 @@ function ft(e) {
|
|
|
3578
3578
|
}), e.__compiled__[""] = { validate: null, normalize: xr() };
|
|
3579
3579
|
const a = Object.keys(e.__compiled__).filter(function(i) {
|
|
3580
3580
|
return i.length > 0 && e.__compiled__[i];
|
|
3581
|
-
}).map(
|
|
3581
|
+
}).map(Ml).join("|");
|
|
3582
3582
|
e.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + u.src_ZPCc + "))(" + a + ")", "i"), e.re.schema_search = RegExp("(^|(?!_)(?:[><|]|" + u.src_ZPCc + "))(" + a + ")", "ig"), e.re.schema_at_start = RegExp("^" + e.re.schema_search.source, "i"), e.re.pretest = RegExp(
|
|
3583
3583
|
"(" + e.re.schema_test.source + ")|(" + e.re.host_fuzzy_test.source + ")|@",
|
|
3584
3584
|
"i"
|
|
@@ -3648,11 +3648,11 @@ De.prototype.normalize = function(u) {
|
|
|
3648
3648
|
};
|
|
3649
3649
|
De.prototype.onCompile = function() {
|
|
3650
3650
|
};
|
|
3651
|
-
const gu = 2147483647,
|
|
3651
|
+
const gu = 2147483647, qe = 36, _n = 1, $u = 26, jl = 38, Hl = 700, po = 72, ho = 128, bo = "-", Gl = /^xn--/, Vl = /[^\0-\x7F]/, Wl = /[\x2E\u3002\uFF0E\uFF61]/g, Zl = {
|
|
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
|
-
}, Ut =
|
|
3655
|
+
}, Ut = qe - _n, je = Math.floor, qt = String.fromCharCode;
|
|
3656
3656
|
function tu(e) {
|
|
3657
3657
|
throw new RangeError(Zl[e]);
|
|
3658
3658
|
}
|
|
@@ -3685,14 +3685,14 @@ function go(e) {
|
|
|
3685
3685
|
return u;
|
|
3686
3686
|
}
|
|
3687
3687
|
const Xl = (e) => String.fromCodePoint(...e), Ql = function(e) {
|
|
3688
|
-
return e >= 48 && e < 58 ? 26 + (e - 48) : e >= 65 && e < 91 ? e - 65 : e >= 97 && e < 123 ? e - 97 :
|
|
3688
|
+
return e >= 48 && e < 58 ? 26 + (e - 48) : e >= 65 && e < 91 ? e - 65 : e >= 97 && e < 123 ? e - 97 : qe;
|
|
3689
3689
|
}, vr = function(e, u) {
|
|
3690
3690
|
return e + 22 + 75 * (e < 26) - ((u != 0) << 5);
|
|
3691
3691
|
}, ko = function(e, u, t) {
|
|
3692
3692
|
let n = 0;
|
|
3693
|
-
for (e = t ?
|
|
3694
|
-
e =
|
|
3695
|
-
return
|
|
3693
|
+
for (e = t ? je(e / Hl) : e >> 1, e += je(e / u); e > Ut * $u >> 1; n += qe)
|
|
3694
|
+
e = je(e / Ut);
|
|
3695
|
+
return je(n + (Ut + 1) * e / (e + jl));
|
|
3696
3696
|
}, xo = function(e) {
|
|
3697
3697
|
const u = [], t = e.length;
|
|
3698
3698
|
let n = 0, r = ho, o = po, a = e.lastIndexOf(bo);
|
|
@@ -3701,18 +3701,18 @@ const Xl = (e) => String.fromCodePoint(...e), Ql = function(e) {
|
|
|
3701
3701
|
e.charCodeAt(i) >= 128 && tu("not-basic"), u.push(e.charCodeAt(i));
|
|
3702
3702
|
for (let i = a > 0 ? a + 1 : 0; i < t; ) {
|
|
3703
3703
|
const l = n;
|
|
3704
|
-
for (let c = 1, f =
|
|
3704
|
+
for (let c = 1, f = qe; ; f += qe) {
|
|
3705
3705
|
i >= t && tu("invalid-input");
|
|
3706
3706
|
const v = Ql(e.charCodeAt(i++));
|
|
3707
|
-
v >=
|
|
3707
|
+
v >= qe && tu("invalid-input"), v > je((gu - n) / c) && tu("overflow"), n += v * c;
|
|
3708
3708
|
const x = f <= o ? _n : f >= o + $u ? $u : f - o;
|
|
3709
3709
|
if (v < x)
|
|
3710
3710
|
break;
|
|
3711
|
-
const d =
|
|
3712
|
-
c >
|
|
3711
|
+
const d = qe - x;
|
|
3712
|
+
c > je(gu / d) && tu("overflow"), c *= d;
|
|
3713
3713
|
}
|
|
3714
3714
|
const s = u.length + 1;
|
|
3715
|
-
o = ko(n - l, s, l == 0),
|
|
3715
|
+
o = ko(n - l, s, l == 0), je(n / s) > gu - r && tu("overflow"), r += je(n / s), n %= s, u.splice(n++, 0, r);
|
|
3716
3716
|
}
|
|
3717
3717
|
return String.fromCodePoint(...u);
|
|
3718
3718
|
}, vo = function(e) {
|
|
@@ -3729,18 +3729,18 @@ const Xl = (e) => String.fromCodePoint(...e), Ql = function(e) {
|
|
|
3729
3729
|
for (const c of e)
|
|
3730
3730
|
c >= n && c < l && (l = c);
|
|
3731
3731
|
const s = i + 1;
|
|
3732
|
-
l - n >
|
|
3732
|
+
l - n > je((gu - r) / s) && tu("overflow"), r += (l - n) * s, n = l;
|
|
3733
3733
|
for (const c of e)
|
|
3734
3734
|
if (c < n && ++r > gu && tu("overflow"), c === n) {
|
|
3735
3735
|
let f = r;
|
|
3736
|
-
for (let v =
|
|
3736
|
+
for (let v = qe; ; v += qe) {
|
|
3737
3737
|
const x = v <= o ? _n : v >= o + $u ? $u : v - o;
|
|
3738
3738
|
if (f < x)
|
|
3739
3739
|
break;
|
|
3740
|
-
const d = f - x, _ =
|
|
3740
|
+
const d = f - x, _ = qe - x;
|
|
3741
3741
|
u.push(
|
|
3742
3742
|
qt(vr(x + d % _, 0))
|
|
3743
|
-
), f =
|
|
3743
|
+
), f = je(d / _);
|
|
3744
3744
|
}
|
|
3745
3745
|
u.push(qt(vr(f, 0))), o = ko(r, s, i === a), r = 0, ++i;
|
|
3746
3746
|
}
|
|
@@ -4756,39 +4756,39 @@ function ds() {
|
|
|
4756
4756
|
return;
|
|
4757
4757
|
var I = D[$], W = I.inside, J = !!I.lookbehind, F = !!I.greedy, G = I.alias;
|
|
4758
4758
|
if (F && !I.pattern.global) {
|
|
4759
|
-
var
|
|
4760
|
-
I.pattern = RegExp(I.pattern.source,
|
|
4759
|
+
var be = I.pattern.toString().match(/[imsuy]*$/)[0];
|
|
4760
|
+
I.pattern = RegExp(I.pattern.source, be + "g");
|
|
4761
4761
|
}
|
|
4762
|
-
for (var Re = I.pattern || I, X = b.next,
|
|
4762
|
+
for (var Re = I.pattern || I, X = b.next, ce = h; X !== g.tail && !(C && ce >= C.reach); ce += X.value.length, X = X.next) {
|
|
4763
4763
|
var Fe = X.value;
|
|
4764
4764
|
if (g.length > p.length)
|
|
4765
4765
|
return;
|
|
4766
4766
|
if (!(Fe instanceof l)) {
|
|
4767
|
-
var Q = 1,
|
|
4767
|
+
var Q = 1, fe;
|
|
4768
4768
|
if (F) {
|
|
4769
|
-
if (
|
|
4769
|
+
if (fe = s(Re, ce, p, J), !fe || fe.index >= p.length)
|
|
4770
4770
|
break;
|
|
4771
|
-
var K =
|
|
4771
|
+
var K = fe.index, ne = fe.index + fe[0].length, Ce = ce;
|
|
4772
4772
|
for (Ce += X.value.length; K >= Ce; )
|
|
4773
4773
|
X = X.next, Ce += X.value.length;
|
|
4774
|
-
if (Ce -= X.value.length,
|
|
4774
|
+
if (Ce -= X.value.length, ce = Ce, X.value instanceof l)
|
|
4775
4775
|
continue;
|
|
4776
4776
|
for (var U = X; U !== g.tail && (Ce < ne || typeof U.value == "string"); U = U.next)
|
|
4777
4777
|
Q++, Ce += U.value.length;
|
|
4778
|
-
Q--, Fe = p.slice(
|
|
4779
|
-
} else if (
|
|
4778
|
+
Q--, Fe = p.slice(ce, Ce), fe.index -= ce;
|
|
4779
|
+
} else if (fe = s(Re, 0, Fe, J), !fe)
|
|
4780
4780
|
continue;
|
|
4781
|
-
var K =
|
|
4782
|
-
C &&
|
|
4781
|
+
var K = fe.index, Oe = fe[0], se = Fe.slice(0, K), w = Fe.slice(K + Oe.length), L = ce + Fe.length;
|
|
4782
|
+
C && L > C.reach && (C.reach = L);
|
|
4783
4783
|
var R = X.prev;
|
|
4784
|
-
|
|
4784
|
+
se && (R = v(g, R, se), ce += se.length), x(g, R, Q);
|
|
4785
4785
|
var H = new l(T, W ? i.tokenize(Oe, W) : Oe, G, Oe);
|
|
4786
4786
|
if (X = v(g, R, H), w && v(g, X, w), Q > 1) {
|
|
4787
4787
|
var Be = {
|
|
4788
4788
|
cause: T + "," + $,
|
|
4789
|
-
reach:
|
|
4789
|
+
reach: L
|
|
4790
4790
|
};
|
|
4791
|
-
c(p, g, m, X.prev,
|
|
4791
|
+
c(p, g, m, X.prev, ce, Be), C && Be.reach > C.reach && (C.reach = Be.reach);
|
|
4792
4792
|
}
|
|
4793
4793
|
}
|
|
4794
4794
|
}
|
|
@@ -5430,13 +5430,13 @@ const uf = /* @__PURE__ */ le({
|
|
|
5430
5430
|
_: 1
|
|
5431
5431
|
}, 16)) : Z("", !0)
|
|
5432
5432
|
]),
|
|
5433
|
-
V(y(
|
|
5433
|
+
V(y(Ke), { vertical: "" }, {
|
|
5434
5434
|
default: O(() => [
|
|
5435
5435
|
z(n.$slots, "header"),
|
|
5436
5436
|
V(y(Gr), null, {
|
|
5437
5437
|
default: O(() => [
|
|
5438
5438
|
n.loading ? z(n.$slots, "loading", { key: 0 }, () => [
|
|
5439
|
-
V(y(
|
|
5439
|
+
V(y(Mr), { style: { height: "44px" } })
|
|
5440
5440
|
]) : z(n.$slots, "default", { key: 1 }, () => [
|
|
5441
5441
|
uu("div", {
|
|
5442
5442
|
class: Ou([`${y(Vt)}__content`, n.contentClass]),
|
|
@@ -5509,7 +5509,7 @@ const Fs = /* @__PURE__ */ le({
|
|
|
5509
5509
|
style: an(typeof t.mask == "object" ? t.mask : {})
|
|
5510
5510
|
}, {
|
|
5511
5511
|
default: O(() => [
|
|
5512
|
-
V(y(
|
|
5512
|
+
V(y(Mr), ke(Je(t.spinProps)), Lr({ _: 2 }, [
|
|
5513
5513
|
t.$slots.description ? {
|
|
5514
5514
|
name: "description",
|
|
5515
5515
|
fn: O(() => [
|
|
@@ -5567,17 +5567,17 @@ const Fs = /* @__PURE__ */ le({
|
|
|
5567
5567
|
return null;
|
|
5568
5568
|
}
|
|
5569
5569
|
});
|
|
5570
|
-
return (r, o) => (P(), N(y(Xo), ke(
|
|
5570
|
+
return (r, o) => (P(), N(y(Xo), ke(Je(r.configProviderProps)), {
|
|
5571
5571
|
default: O(() => [
|
|
5572
|
-
V(y(Qo), ke(
|
|
5572
|
+
V(y(Qo), ke(Je(r.loadingBarProps)), {
|
|
5573
5573
|
default: O(() => [
|
|
5574
|
-
V(y(Jo), ke(
|
|
5574
|
+
V(y(Jo), ke(Je(r.dialogProviderProps)), {
|
|
5575
5575
|
default: O(() => [
|
|
5576
|
-
V(y(Ko), ke(
|
|
5576
|
+
V(y(Ko), ke(Je(r.modalProviderProps)), {
|
|
5577
5577
|
default: O(() => [
|
|
5578
|
-
V(y(ei), ke(
|
|
5578
|
+
V(y(ei), ke(Je(r.notificationProviderProps)), {
|
|
5579
5579
|
default: O(() => [
|
|
5580
|
-
V(y(ui), ke(
|
|
5580
|
+
V(y(ui), ke(Je(r.messageProviderProps)), {
|
|
5581
5581
|
default: O(() => [
|
|
5582
5582
|
z(r.$slots, "default"),
|
|
5583
5583
|
V(y(n))
|
|
@@ -5616,7 +5616,7 @@ const Fs = /* @__PURE__ */ le({
|
|
|
5616
5616
|
viewBox: "0 0 24 24"
|
|
5617
5617
|
};
|
|
5618
5618
|
function Ps(e, u, t, n, r, o) {
|
|
5619
|
-
return P(),
|
|
5619
|
+
return P(), he("svg", Ts, u[0] || (u[0] = [
|
|
5620
5620
|
uu("path", {
|
|
5621
5621
|
fill: "currentColor",
|
|
5622
5622
|
d: "M18.355 6.54h-1.94V4.69a2.69 2.69 0 0 0-1.646-2.484A2.7 2.7 0 0 0 13.745 2h-8.05a2.68 2.68 0 0 0-2.67 2.69v10.09a2.68 2.68 0 0 0 2.67 2.69h1.94v1.85a2.68 2.68 0 0 0 2.67 2.68h8a2.68 2.68 0 0 0 2.67-2.68V9.23a2.69 2.69 0 0 0-2.62-2.69M7.635 9.23v6.74h-1.94a1.18 1.18 0 0 1-1.17-1.19V4.69a1.18 1.18 0 0 1 1.17-1.19h8.05a1.18 1.18 0 0 1 1.17 1.19v1.85h-4.61a2.69 2.69 0 0 0-2.67 2.69"
|
|
@@ -5643,14 +5643,14 @@ const Rs = /* @__PURE__ */ yn(Ss, [["render", Ps]]), nf = /* @__PURE__ */ le({
|
|
|
5643
5643
|
function o(a) {
|
|
5644
5644
|
a.preventDefault(), r();
|
|
5645
5645
|
}
|
|
5646
|
-
return (a, i) => (P(), N(y(cn), ke(
|
|
5646
|
+
return (a, i) => (P(), N(y(cn), ke(Je(a.tooltipProps)), {
|
|
5647
5647
|
trigger: O(() => [
|
|
5648
5648
|
uu("div", {
|
|
5649
5649
|
style: { cursor: "pointer" },
|
|
5650
5650
|
onClick: o
|
|
5651
5651
|
}, [
|
|
5652
5652
|
z(a.$slots, "default", {}, () => [
|
|
5653
|
-
V(y(
|
|
5653
|
+
V(y(He), Y({
|
|
5654
5654
|
quaternary: "",
|
|
5655
5655
|
size: "tiny"
|
|
5656
5656
|
}, a.buttonProps), {
|
|
@@ -5666,7 +5666,7 @@ const Rs = /* @__PURE__ */ yn(Ss, [["render", Ps]]), nf = /* @__PURE__ */ le({
|
|
|
5666
5666
|
]),
|
|
5667
5667
|
default: O(() => [
|
|
5668
5668
|
z(a.$slots, "tooltip", {}, () => [
|
|
5669
|
-
ou(
|
|
5669
|
+
ou(Ue(y(n) ? "复制成功" : "复制"), 1)
|
|
5670
5670
|
])
|
|
5671
5671
|
]),
|
|
5672
5672
|
_: 3
|
|
@@ -5710,7 +5710,7 @@ const at = /* @__PURE__ */ new Map(), Os = (e, u, t) => {
|
|
|
5710
5710
|
...t,
|
|
5711
5711
|
timer: r
|
|
5712
5712
|
});
|
|
5713
|
-
},
|
|
5713
|
+
}, Ls = (e) => at.get(e), lt = /* @__PURE__ */ new Map(), Ms = (e) => lt.get(e), Ns = (e, u) => {
|
|
5714
5714
|
lt.set(e, u), u.then((t) => (lt.delete(e), t)).catch((t) => {
|
|
5715
5715
|
throw lt.delete(e), t;
|
|
5716
5716
|
});
|
|
@@ -5731,7 +5731,7 @@ const at = /* @__PURE__ */ new Map(), Os = (e, u, t) => {
|
|
|
5731
5731
|
}) => {
|
|
5732
5732
|
const a = q(), i = q(), l = (c, f) => {
|
|
5733
5733
|
r ? r(f) : Os(c, t, f), Is(c, f.data);
|
|
5734
|
-
}, s = (c, f = []) => o ? o(f) :
|
|
5734
|
+
}, s = (c, f = []) => o ? o(f) : Ls(c);
|
|
5735
5735
|
return $e(() => {
|
|
5736
5736
|
if (!u)
|
|
5737
5737
|
return;
|
|
@@ -5755,7 +5755,7 @@ const at = /* @__PURE__ */ new Map(), Os = (e, u, t) => {
|
|
|
5755
5755
|
};
|
|
5756
5756
|
},
|
|
5757
5757
|
onRequest: (c, f) => {
|
|
5758
|
-
let v =
|
|
5758
|
+
let v = Ms(u);
|
|
5759
5759
|
return v && v !== i.value ? { servicePromise: v } : (v = c(...f), i.value = v, Ns(u, v), { servicePromise: v });
|
|
5760
5760
|
},
|
|
5761
5761
|
onSuccess: (c, f) => {
|
|
@@ -6248,7 +6248,7 @@ const Rc = (e, { throttleWait: u, throttleLeading: t, throttleTrailing: n }) =>
|
|
|
6248
6248
|
}
|
|
6249
6249
|
}) : {};
|
|
6250
6250
|
}, Sr = (e) => typeof e == "function", Oc = (e) => typeof e == "boolean";
|
|
6251
|
-
var
|
|
6251
|
+
var Lc = Object.defineProperty, Mc = (e, u, t) => u in e ? Lc(e, u, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[u] = t, nt = (e, u, t) => (Mc(e, typeof u != "symbol" ? u + "" : u, t), t);
|
|
6252
6252
|
class Nc {
|
|
6253
6253
|
constructor(u, t, n, r = {}) {
|
|
6254
6254
|
nt(this, "pluginImpls"), nt(this, "count", 0), nt(this, "state", {
|
|
@@ -6457,7 +6457,7 @@ const Uc = {
|
|
|
6457
6457
|
viewBox: "0 0 24 24"
|
|
6458
6458
|
};
|
|
6459
6459
|
function jc(e, u, t, n, r, o) {
|
|
6460
|
-
return P(),
|
|
6460
|
+
return P(), he("svg", qc, u[0] || (u[0] = [
|
|
6461
6461
|
uu("path", {
|
|
6462
6462
|
fill: "none",
|
|
6463
6463
|
stroke: "currentColor",
|
|
@@ -6523,13 +6523,13 @@ const Tr = /* @__PURE__ */ yn(Uc, [["render", jc]]), Do = /* @__PURE__ */ le({
|
|
|
6523
6523
|
value: c.value,
|
|
6524
6524
|
loading: c.loading
|
|
6525
6525
|
}, () => [
|
|
6526
|
-
o.value ? (P(), N(y(
|
|
6526
|
+
o.value ? (P(), N(y(He), Y({
|
|
6527
6527
|
key: 0,
|
|
6528
6528
|
type: c.type,
|
|
6529
6529
|
loading: c.loading
|
|
6530
|
-
}, c.buttonProps, { onClick: l }),
|
|
6530
|
+
}, c.buttonProps, { onClick: l }), Lr({
|
|
6531
6531
|
default: O(() => [
|
|
6532
|
-
o.value === "text" ? (P(),
|
|
6532
|
+
o.value === "text" ? (P(), he(Me, { key: 0 }, [
|
|
6533
6533
|
ou(" 搜索 ")
|
|
6534
6534
|
], 64)) : Z("", !0)
|
|
6535
6535
|
]),
|
|
@@ -6568,7 +6568,7 @@ const mu = /* @__PURE__ */ le({
|
|
|
6568
6568
|
emits: ["update:value"],
|
|
6569
6569
|
setup(e, { emit: u }) {
|
|
6570
6570
|
const t = u, n = {
|
|
6571
|
-
button:
|
|
6571
|
+
button: He,
|
|
6572
6572
|
"color-picker": xi,
|
|
6573
6573
|
checkbox: ki,
|
|
6574
6574
|
divider: dn,
|
|
@@ -6647,9 +6647,9 @@ const mu = /* @__PURE__ */ le({
|
|
|
6647
6647
|
emits: ["update:value"],
|
|
6648
6648
|
setup(e, { emit: u }) {
|
|
6649
6649
|
const t = u;
|
|
6650
|
-
return (n, r) => n.options && n.options.length > 0 ? (P(), N(y(
|
|
6650
|
+
return (n, r) => n.options && n.options.length > 0 ? (P(), N(y(Ke), ke(Y({ key: 0 }, n.flexProps)), {
|
|
6651
6651
|
default: O(() => [
|
|
6652
|
-
(P(!0),
|
|
6652
|
+
(P(!0), he(Me, null, bu(n.options, ({ key: o, render: a, label: i, ...l }, s) => (P(), he(Me, { key: s }, [
|
|
6653
6653
|
a ? (P(), N(Ee(y(Se)(a(n.exposeRefs, n.exposeActions), i, { path: o, labelPlacement: "left" })), { key: 0 })) : (P(), N(Ee(y(Se)(
|
|
6654
6654
|
Ae(y(mu), {
|
|
6655
6655
|
options: l,
|
|
@@ -6678,7 +6678,7 @@ const mu = /* @__PURE__ */ le({
|
|
|
6678
6678
|
const t = u;
|
|
6679
6679
|
return (n, r) => n.options && n.options.length >= 0 ? (P(), N(y(Jt), ke(Y({ key: 0 }, n.gridProps)), {
|
|
6680
6680
|
default: O(() => [
|
|
6681
|
-
(P(!0),
|
|
6681
|
+
(P(!0), he(Me, null, bu(n.options, ({ key: o, gridSpan: a, gridItemProps: i, render: l, label: s, ...c }, f) => (P(), N(y(Kt), Y({
|
|
6682
6682
|
key: f,
|
|
6683
6683
|
span: a
|
|
6684
6684
|
}, { ref_for: !0 }, i), {
|
|
@@ -6720,6 +6720,7 @@ const mu = /* @__PURE__ */ le({
|
|
|
6720
6720
|
filterCollapsedType: { default: "modal" },
|
|
6721
6721
|
filterModalTrigger: { default: "manual" },
|
|
6722
6722
|
filterLabel: { default: "更多筛选" },
|
|
6723
|
+
filterClearLabel: { default: "清除筛选" },
|
|
6723
6724
|
filterModalProps: {},
|
|
6724
6725
|
contextMenuOptions: {},
|
|
6725
6726
|
search: { type: [Object, Boolean] },
|
|
@@ -6765,20 +6766,20 @@ const mu = /* @__PURE__ */ le({
|
|
|
6765
6766
|
onBefore: (w) => {
|
|
6766
6767
|
e.requestOptions?.onBefore?.(w), n("before", w);
|
|
6767
6768
|
},
|
|
6768
|
-
onSuccess: (w,
|
|
6769
|
-
e.requestOptions?.onSuccess?.(w,
|
|
6769
|
+
onSuccess: (w, L) => {
|
|
6770
|
+
e.requestOptions?.onSuccess?.(w, L), n("success", w, L), W(w, L);
|
|
6770
6771
|
},
|
|
6771
|
-
onError: (w,
|
|
6772
|
-
e.requestOptions?.onError?.(w,
|
|
6772
|
+
onError: (w, L) => {
|
|
6773
|
+
e.requestOptions?.onError?.(w, L), n("error", w, L);
|
|
6773
6774
|
},
|
|
6774
|
-
onFinally: (w,
|
|
6775
|
-
e.requestOptions?.onFinally?.(w,
|
|
6775
|
+
onFinally: (w, L, R) => {
|
|
6776
|
+
e.requestOptions?.onFinally?.(w, L, R), n("finally", w, L, R);
|
|
6776
6777
|
}
|
|
6777
|
-
}, e.requestPlugins), D = [], $ = te(() => A.value ? Array.isArray(A.value[i.list]) ? A.value[i.list] : (console.warn(`DataTablePlus: data[${i.list}] must be an array`), []) : []), I = te(() => e.columns?.reduce((w,
|
|
6778
|
-
function W(w,
|
|
6778
|
+
}, e.requestPlugins), D = [], $ = te(() => A.value ? Array.isArray(A.value[i.list]) ? A.value[i.list] : (console.warn(`DataTablePlus: data[${i.list}] must be an array`), []) : []), I = te(() => e.columns?.reduce((w, L) => w + Number(L.width ?? 100), 0));
|
|
6779
|
+
function W(w, L) {
|
|
6779
6780
|
if (w[i.list]?.forEach((R) => {
|
|
6780
6781
|
D.some((H) => H[i.rowKey] === R[i.rowKey]) || D.push(R);
|
|
6781
|
-
}), c.value.page = i.page in
|
|
6782
|
+
}), c.value.page = i.page in L[0] ? Number(L[0][i.page]) : 1, c.value.pageSize = i.pageSize in L[0] ? Number(L[0][i.pageSize]) : 10, c.value.itemCount = i.count in w ? Number(w[i.count]) : 0, o) {
|
|
6782
6783
|
for (const R of o)
|
|
6783
6784
|
if ("key" in R) {
|
|
6784
6785
|
if (f.value && R.key in f.value) {
|
|
@@ -6809,62 +6810,62 @@ const mu = /* @__PURE__ */ le({
|
|
|
6809
6810
|
[i.pageSize]: w
|
|
6810
6811
|
});
|
|
6811
6812
|
},
|
|
6812
|
-
onUpdateFilters: (w,
|
|
6813
|
-
n("update:filters", w,
|
|
6813
|
+
onUpdateFilters: (w, L) => {
|
|
6814
|
+
n("update:filters", w, L), f.value = w, J({
|
|
6814
6815
|
[i.page]: 1,
|
|
6815
6816
|
...e.columnsFilterOptions ? e.columnsFilterOptions(w) : { [i.filter]: w }
|
|
6816
6817
|
});
|
|
6817
6818
|
},
|
|
6818
6819
|
onUpdateSorter: (w) => {
|
|
6819
6820
|
n("update:sorter", w);
|
|
6820
|
-
const
|
|
6821
|
+
const L = {};
|
|
6821
6822
|
if (Array.isArray(w))
|
|
6822
6823
|
for (const R of w)
|
|
6823
|
-
|
|
6824
|
-
else w && (
|
|
6825
|
-
v.value =
|
|
6824
|
+
L[R.columnKey] = R;
|
|
6825
|
+
else w && (L[w.columnKey] = w);
|
|
6826
|
+
v.value = L, J({
|
|
6826
6827
|
[i.page]: 1,
|
|
6827
|
-
...e.columnsSorterOptions ? e.columnsSorterOptions(
|
|
6828
|
+
...e.columnsSorterOptions ? e.columnsSorterOptions(L) : { [i.sorter]: L }
|
|
6828
6829
|
});
|
|
6829
6830
|
},
|
|
6830
6831
|
onLoad: (w) => n("load", w),
|
|
6831
6832
|
onScroll: (w) => {
|
|
6832
6833
|
n("scroll", w);
|
|
6833
6834
|
},
|
|
6834
|
-
onUpdateCheckedRowKeys: (w,
|
|
6835
|
-
const H = w.map((Be) => D.find((
|
|
6835
|
+
onUpdateCheckedRowKeys: (w, L, R) => {
|
|
6836
|
+
const H = w.map((Be) => D.find((We) => We[i.rowKey] === Be));
|
|
6836
6837
|
n("update:checkedRowKeys", w, H, { row: ge(R.row), action: R.action }, ge($.value));
|
|
6837
6838
|
},
|
|
6838
6839
|
onUpdateExpandedRowKeys: (w) => {
|
|
6839
6840
|
n("update:expandedRowKeys", w, ge($.value));
|
|
6840
6841
|
}
|
|
6841
6842
|
};
|
|
6842
|
-
function G(w,
|
|
6843
|
+
function G(w, L) {
|
|
6843
6844
|
return {
|
|
6844
6845
|
onClick: (R) => {
|
|
6845
|
-
n("clickRow", ge(w),
|
|
6846
|
+
n("clickRow", ge(w), L, R, ge($.value));
|
|
6846
6847
|
},
|
|
6847
6848
|
onContextmenu: (R) => {
|
|
6848
|
-
n("contextMenuRow", ge(w),
|
|
6849
|
+
n("contextMenuRow", ge(w), L, R, ge($.value));
|
|
6849
6850
|
}
|
|
6850
6851
|
};
|
|
6851
6852
|
}
|
|
6852
|
-
const
|
|
6853
|
-
function X(w,
|
|
6854
|
-
w && (e.filterCollapsedType === "modal" ? (e.filterModalTrigger === "manual" && (Re.value[w] =
|
|
6855
|
-
[w]:
|
|
6853
|
+
const be = q(!1), Re = q({});
|
|
6854
|
+
function X(w, L) {
|
|
6855
|
+
w && (e.filterCollapsedType === "modal" ? (e.filterModalTrigger === "manual" && (Re.value[w] = L), e.filterModalTrigger === "auto" && J({
|
|
6856
|
+
[w]: L
|
|
6856
6857
|
})) : J({
|
|
6857
|
-
[w]:
|
|
6858
|
+
[w]: L
|
|
6858
6859
|
}));
|
|
6859
6860
|
}
|
|
6860
|
-
const
|
|
6861
|
+
const ce = q(!1);
|
|
6861
6862
|
function Fe() {
|
|
6862
|
-
|
|
6863
|
+
ce.value = !0;
|
|
6863
6864
|
}
|
|
6864
6865
|
function Q() {
|
|
6865
6866
|
g(structuredClone(d));
|
|
6866
6867
|
}
|
|
6867
|
-
function
|
|
6868
|
+
function fe() {
|
|
6868
6869
|
Q();
|
|
6869
6870
|
}
|
|
6870
6871
|
function ne() {
|
|
@@ -6872,7 +6873,7 @@ const mu = /* @__PURE__ */ le({
|
|
|
6872
6873
|
}
|
|
6873
6874
|
const Ce = te(() => {
|
|
6874
6875
|
const w = [i.page, i.pageSize];
|
|
6875
|
-
return Object.entries(p.value[0]).filter(([
|
|
6876
|
+
return Object.entries(p.value[0]).filter(([L]) => !w.includes(L)).some(([L, R]) => !(R == null || Array.isArray(R) && R.length === 0 || typeof R == "string" && R.trim() === "" || typeof R == "boolean" && R === !0));
|
|
6876
6877
|
}), U = {
|
|
6877
6878
|
loading: _,
|
|
6878
6879
|
data: A,
|
|
@@ -6898,11 +6899,11 @@ const mu = /* @__PURE__ */ le({
|
|
|
6898
6899
|
showFilterModal: Fe,
|
|
6899
6900
|
resetParams: Q,
|
|
6900
6901
|
onValueUpdate: X
|
|
6901
|
-
}, Oe = te(() => e.filterOptions?.filter((w) => typeof w.hidden == "function" ? !w.hidden(U) : !w.hidden).filter((w) => !w.collapsed)),
|
|
6902
|
+
}, Oe = te(() => e.filterOptions?.filter((w) => typeof w.hidden == "function" ? !w.hidden(U) : !w.hidden).filter((w) => !w.collapsed)), se = te(() => e.filterOptions?.filter((w) => typeof w.hidden == "function" ? !w.hidden(U) : !w.hidden).filter((w) => w.collapsed));
|
|
6902
6903
|
return u({
|
|
6903
6904
|
refs: U,
|
|
6904
6905
|
actions: K
|
|
6905
|
-
}), (w,
|
|
6906
|
+
}), (w, L) => (P(), N(y(Ke), {
|
|
6906
6907
|
style: { width: "100%", height: "100%" },
|
|
6907
6908
|
vertical: ""
|
|
6908
6909
|
}, {
|
|
@@ -6911,11 +6912,11 @@ const mu = /* @__PURE__ */ le({
|
|
|
6911
6912
|
refs: U,
|
|
6912
6913
|
actions: K
|
|
6913
6914
|
}, () => [
|
|
6914
|
-
V(y(
|
|
6915
|
+
V(y(Ke), null, {
|
|
6915
6916
|
default: O(() => [
|
|
6916
6917
|
z(w.$slots, "title", {}, () => [
|
|
6917
6918
|
uu("div", Hc, [
|
|
6918
|
-
w.title ? (P(),
|
|
6919
|
+
w.title ? (P(), he("span", Gc, Ue(w.title), 1)) : Z("", !0)
|
|
6919
6920
|
])
|
|
6920
6921
|
]),
|
|
6921
6922
|
w.search ? (P(), N(y(Do), Y({
|
|
@@ -6924,34 +6925,31 @@ const mu = /* @__PURE__ */ le({
|
|
|
6924
6925
|
value: y(p)[0][i.search],
|
|
6925
6926
|
loading: y(_)
|
|
6926
6927
|
}, l, {
|
|
6927
|
-
"onUpdate:value":
|
|
6928
|
+
"onUpdate:value": L[0] || (L[0] = (R) => J({ [i.search]: R }))
|
|
6928
6929
|
}), null, 16, ["value", "loading"])) : Z("", !0),
|
|
6929
|
-
|
|
6930
|
+
w.filterCollapsedType === "modal" && (se.value?.length ?? 0) > 0 ? (P(), N(y($r), {
|
|
6931
|
+
key: 1,
|
|
6930
6932
|
show: Ce.value,
|
|
6931
6933
|
dot: ""
|
|
6932
6934
|
}, {
|
|
6933
6935
|
default: O(() => [
|
|
6934
|
-
|
|
6935
|
-
key: 0,
|
|
6936
|
-
onClick: Fe
|
|
6937
|
-
}, {
|
|
6936
|
+
V(y(He), { onClick: Fe }, {
|
|
6938
6937
|
default: O(() => [
|
|
6939
|
-
ou(
|
|
6938
|
+
ou(Ue(w.filterLabel), 1)
|
|
6940
6939
|
]),
|
|
6941
6940
|
_: 1
|
|
6942
|
-
})
|
|
6941
|
+
})
|
|
6943
6942
|
]),
|
|
6944
6943
|
_: 1
|
|
6945
|
-
}, 8, ["show"]),
|
|
6946
|
-
(typeof w.clearable == "boolean" ? w.clearable === !0 : w.clearable === "main") ? (P(), N(y(
|
|
6947
|
-
key:
|
|
6944
|
+
}, 8, ["show"])) : Z("", !0),
|
|
6945
|
+
(typeof w.clearable == "boolean" ? w.clearable === !0 : w.clearable === "main") ? (P(), N(y(He), {
|
|
6946
|
+
key: 2,
|
|
6948
6947
|
onClick: Q
|
|
6949
6948
|
}, {
|
|
6950
|
-
default: O(() =>
|
|
6951
|
-
ou(
|
|
6952
|
-
])
|
|
6953
|
-
_: 1
|
|
6954
|
-
__: [9]
|
|
6949
|
+
default: O(() => [
|
|
6950
|
+
ou(Ue(w.filterClearLabel), 1)
|
|
6951
|
+
]),
|
|
6952
|
+
_: 1
|
|
6955
6953
|
})) : Z("", !0),
|
|
6956
6954
|
z(w.$slots, "header-extra", {
|
|
6957
6955
|
refs: U,
|
|
@@ -6965,7 +6963,7 @@ const mu = /* @__PURE__ */ le({
|
|
|
6965
6963
|
refs: U,
|
|
6966
6964
|
actions: K
|
|
6967
6965
|
}, () => [
|
|
6968
|
-
V(y(
|
|
6966
|
+
V(y(Ke), { vertical: "" }, {
|
|
6969
6967
|
default: O(() => [
|
|
6970
6968
|
r.value.grid ? (P(), N(Xt, {
|
|
6971
6969
|
key: 0,
|
|
@@ -6974,7 +6972,7 @@ const mu = /* @__PURE__ */ le({
|
|
|
6974
6972
|
"expose-actions": K,
|
|
6975
6973
|
params: y(p),
|
|
6976
6974
|
"grid-props": w.filterGridProps,
|
|
6977
|
-
"onUpdate:value":
|
|
6975
|
+
"onUpdate:value": L[1] || (L[1] = (R, H) => X(H, R))
|
|
6978
6976
|
}, null, 8, ["options", "params", "grid-props"])) : Z("", !0),
|
|
6979
6977
|
r.value.flex ? (P(), N(Yt, {
|
|
6980
6978
|
key: 1,
|
|
@@ -6983,47 +6981,47 @@ const mu = /* @__PURE__ */ le({
|
|
|
6983
6981
|
"expose-actions": K,
|
|
6984
6982
|
params: y(p),
|
|
6985
6983
|
"grid-props": w.filterGridProps,
|
|
6986
|
-
"onUpdate:value":
|
|
6984
|
+
"onUpdate:value": L[2] || (L[2] = (R, H) => X(H, R))
|
|
6987
6985
|
}, null, 8, ["options", "params", "grid-props"])) : Z("", !0),
|
|
6988
|
-
|
|
6986
|
+
se.value && w.filterCollapsedType === "collapsed" && se.value.length > 0 ? (P(), N(y(dn), {
|
|
6989
6987
|
key: 2,
|
|
6990
6988
|
style: { margin: "5px 0" }
|
|
6991
6989
|
}, {
|
|
6992
6990
|
default: O(() => [
|
|
6993
|
-
V(y(
|
|
6991
|
+
V(y(He), {
|
|
6994
6992
|
size: "tiny",
|
|
6995
|
-
onClick:
|
|
6993
|
+
onClick: L[3] || (L[3] = (R) => be.value = !be.value)
|
|
6996
6994
|
}, {
|
|
6997
6995
|
default: O(() => [
|
|
6998
|
-
ou(
|
|
6996
|
+
ou(Ue(be.value ? "折叠" : "展开"), 1)
|
|
6999
6997
|
]),
|
|
7000
6998
|
_: 1
|
|
7001
6999
|
})
|
|
7002
7000
|
]),
|
|
7003
7001
|
_: 1
|
|
7004
7002
|
})) : Z("", !0),
|
|
7005
|
-
|
|
7003
|
+
se.value && w.filterCollapsedType === "collapsed" && se.value.length > 0 ? (P(), N(y(Ir), {
|
|
7006
7004
|
key: 3,
|
|
7007
|
-
show:
|
|
7005
|
+
show: be.value
|
|
7008
7006
|
}, {
|
|
7009
7007
|
default: O(() => [
|
|
7010
7008
|
r.value.collapsedGrid ? (P(), N(Xt, {
|
|
7011
7009
|
key: 0,
|
|
7012
|
-
options:
|
|
7010
|
+
options: se.value,
|
|
7013
7011
|
"expose-refs": U,
|
|
7014
7012
|
"expose-actions": K,
|
|
7015
7013
|
params: y(p),
|
|
7016
7014
|
"grid-props": w.filterGridProps,
|
|
7017
|
-
"onUpdate:value":
|
|
7015
|
+
"onUpdate:value": L[4] || (L[4] = (R, H) => X(H, R))
|
|
7018
7016
|
}, null, 8, ["options", "params", "grid-props"])) : Z("", !0),
|
|
7019
7017
|
r.value.collapsedFlex ? (P(), N(Yt, {
|
|
7020
7018
|
key: 1,
|
|
7021
|
-
options:
|
|
7019
|
+
options: se.value,
|
|
7022
7020
|
"expose-refs": U,
|
|
7023
7021
|
"expose-actions": K,
|
|
7024
7022
|
params: y(p),
|
|
7025
7023
|
"grid-props": w.filterFlexProps,
|
|
7026
|
-
"onUpdate:value":
|
|
7024
|
+
"onUpdate:value": L[5] || (L[5] = (R, H) => X(H, R))
|
|
7027
7025
|
}, null, 8, ["options", "params", "grid-props"])) : Z("", !0)
|
|
7028
7026
|
]),
|
|
7029
7027
|
_: 1
|
|
@@ -7071,7 +7069,7 @@ const mu = /* @__PURE__ */ le({
|
|
|
7071
7069
|
refs: U,
|
|
7072
7070
|
actions: K
|
|
7073
7071
|
}, () => [
|
|
7074
|
-
V(y(
|
|
7072
|
+
V(y(Ke), null, {
|
|
7075
7073
|
default: O(() => [
|
|
7076
7074
|
z(w.$slots, "footer-extra", {
|
|
7077
7075
|
refs: U,
|
|
@@ -7089,17 +7087,17 @@ const mu = /* @__PURE__ */ le({
|
|
|
7089
7087
|
_: 3
|
|
7090
7088
|
})
|
|
7091
7089
|
]),
|
|
7092
|
-
w.filterCollapsedType === "modal" ? (P(), N(y(zr), Y({
|
|
7090
|
+
w.filterCollapsedType === "modal" && (se.value?.length ?? 0) > 0 ? (P(), N(y(zr), Y({
|
|
7093
7091
|
key: 0,
|
|
7094
|
-
show:
|
|
7095
|
-
"onUpdate:show":
|
|
7092
|
+
show: ce.value,
|
|
7093
|
+
"onUpdate:show": L[8] || (L[8] = (R) => ce.value = R),
|
|
7096
7094
|
style: { width: "auto" },
|
|
7097
7095
|
preset: "dialog",
|
|
7098
7096
|
title: w.filterLabel,
|
|
7099
7097
|
"negative-text": (typeof w.clearable == "boolean" ? w.clearable === !0 : w.clearable === "modal") ? "清除" : void 0,
|
|
7100
7098
|
"positive-text": w.filterModalTrigger === "manual" ? "确定" : void 0
|
|
7101
7099
|
}, w.filterModalProps, {
|
|
7102
|
-
onNegativeClick:
|
|
7100
|
+
onNegativeClick: fe,
|
|
7103
7101
|
onPositiveClick: ne
|
|
7104
7102
|
}), {
|
|
7105
7103
|
default: O(() => [
|
|
@@ -7109,21 +7107,21 @@ const mu = /* @__PURE__ */ le({
|
|
|
7109
7107
|
}, () => [
|
|
7110
7108
|
r.value.collapsedGrid ? (P(), N(Xt, {
|
|
7111
7109
|
key: 0,
|
|
7112
|
-
options:
|
|
7110
|
+
options: se.value,
|
|
7113
7111
|
"expose-refs": U,
|
|
7114
7112
|
"expose-actions": K,
|
|
7115
7113
|
params: y(p),
|
|
7116
7114
|
"grid-props": w.filterGridProps,
|
|
7117
|
-
"onUpdate:value":
|
|
7115
|
+
"onUpdate:value": L[6] || (L[6] = (R, H) => X(H, R))
|
|
7118
7116
|
}, null, 8, ["options", "params", "grid-props"])) : Z("", !0),
|
|
7119
7117
|
r.value.collapsedFlex ? (P(), N(Yt, {
|
|
7120
7118
|
key: 1,
|
|
7121
|
-
options:
|
|
7119
|
+
options: se.value,
|
|
7122
7120
|
"expose-refs": U,
|
|
7123
7121
|
"expose-actions": K,
|
|
7124
7122
|
params: y(p),
|
|
7125
7123
|
"grid-props": w.filterFlexProps,
|
|
7126
|
-
"onUpdate:value":
|
|
7124
|
+
"onUpdate:value": L[7] || (L[7] = (R, H) => X(H, R))
|
|
7127
7125
|
}, null, 8, ["options", "params", "grid-props"])) : Z("", !0)
|
|
7128
7126
|
])
|
|
7129
7127
|
]),
|
|
@@ -7279,7 +7277,7 @@ const of = /* @__PURE__ */ le({
|
|
|
7279
7277
|
}, () => [
|
|
7280
7278
|
r.value.grid && E.value && E.value.length > 0 ? (P(), N(y(Jt), ke(Y({ key: 0 }, m.gridProps)), {
|
|
7281
7279
|
default: O(() => [
|
|
7282
|
-
(P(!0),
|
|
7280
|
+
(P(!0), he(Me, null, bu(E.value, ({ key: h, gridSpan: C, gridItemProps: T, render: D, label: $, ...I }, W) => (P(), N(y(Kt), Y({
|
|
7283
7281
|
key: W,
|
|
7284
7282
|
span: C
|
|
7285
7283
|
}, { ref_for: !0 }, T), {
|
|
@@ -7299,9 +7297,9 @@ const of = /* @__PURE__ */ le({
|
|
|
7299
7297
|
]),
|
|
7300
7298
|
_: 1
|
|
7301
7299
|
}, 16)) : Z("", !0),
|
|
7302
|
-
r.value.flex && E.value && E.value.length > 0 ? (P(), N(y(
|
|
7300
|
+
r.value.flex && E.value && E.value.length > 0 ? (P(), N(y(Ke), ke(Y({ key: 1 }, m.flexProps)), {
|
|
7303
7301
|
default: O(() => [
|
|
7304
|
-
(P(!0),
|
|
7302
|
+
(P(!0), he(Me, null, bu(E.value, ({ key: h, render: C, label: T, ...D }, $) => (P(), he(Me, { key: $ }, [
|
|
7305
7303
|
C ? (P(), N(Ee(y(Se)(C(_, A), T, { path: h })), { key: 0 })) : (P(), N(Ee(y(Se)(
|
|
7306
7304
|
Ae(y(mu), {
|
|
7307
7305
|
options: D,
|
|
@@ -7320,12 +7318,12 @@ const of = /* @__PURE__ */ le({
|
|
|
7320
7318
|
style: { margin: "5px 0" }
|
|
7321
7319
|
}, {
|
|
7322
7320
|
default: O(() => [
|
|
7323
|
-
V(y(
|
|
7321
|
+
V(y(He), {
|
|
7324
7322
|
size: "tiny",
|
|
7325
7323
|
onClick: b[0] || (b[0] = (h) => d.value = !d.value)
|
|
7326
7324
|
}, {
|
|
7327
7325
|
default: O(() => [
|
|
7328
|
-
ou(
|
|
7326
|
+
ou(Ue(d.value ? "折叠" : "展开"), 1)
|
|
7329
7327
|
]),
|
|
7330
7328
|
_: 1
|
|
7331
7329
|
})
|
|
@@ -7336,7 +7334,7 @@ const of = /* @__PURE__ */ le({
|
|
|
7336
7334
|
default: O(() => [
|
|
7337
7335
|
r.value.collapsedGrid && p.value && p.value.length > 0 ? (P(), N(y(Jt), ke(Y({ key: 0 }, m.gridProps)), {
|
|
7338
7336
|
default: O(() => [
|
|
7339
|
-
(P(!0),
|
|
7337
|
+
(P(!0), he(Me, null, bu(p.value, ({ key: h, gridSpan: C, gridItemProps: T, render: D, label: $, ...I }, W) => (P(), N(y(Kt), Y({
|
|
7340
7338
|
key: W,
|
|
7341
7339
|
span: C
|
|
7342
7340
|
}, { ref_for: !0 }, T), {
|
|
@@ -7356,9 +7354,9 @@ const of = /* @__PURE__ */ le({
|
|
|
7356
7354
|
]),
|
|
7357
7355
|
_: 1
|
|
7358
7356
|
}, 16)) : Z("", !0),
|
|
7359
|
-
r.value.collapsedFlex && p.value && p.value.length > 0 ? (P(), N(y(
|
|
7357
|
+
r.value.collapsedFlex && p.value && p.value.length > 0 ? (P(), N(y(Ke), ke(Y({ key: 1 }, m.flexProps)), {
|
|
7360
7358
|
default: O(() => [
|
|
7361
|
-
(P(!0),
|
|
7359
|
+
(P(!0), he(Me, null, bu(p.value, ({ key: h, render: C, label: T, ...D }, $) => (P(), he(Me, { key: $ }, [
|
|
7362
7360
|
C ? (P(), N(Ee(y(Se)(C(_, A), T, { path: h })), { key: 0 })) : (P(), N(Ee(y(Se)(
|
|
7363
7361
|
Ae(y(mu), {
|
|
7364
7362
|
options: D,
|
|
@@ -7393,7 +7391,7 @@ const of = /* @__PURE__ */ le({
|
|
|
7393
7391
|
viewBox: "0 0 24 24"
|
|
7394
7392
|
};
|
|
7395
7393
|
function Xc(e, u, t, n, r, o) {
|
|
7396
|
-
return P(),
|
|
7394
|
+
return P(), he("svg", Yc, u[0] || (u[0] = [
|
|
7397
7395
|
uu("path", {
|
|
7398
7396
|
fill: "currentColor",
|
|
7399
7397
|
d: "M12 1.75A10.25 10.25 0 1 0 22.25 12A10.26 10.26 0 0 0 12 1.75m4.67 13.5a1 1 0 0 1 0 1.42a1 1 0 0 1-1.42 0L12 13.42l-3.25 3.25a1 1 0 0 1-1.41-1.42L10.59 12L7.34 8.75a1 1 0 1 1 1.41-1.41L12 10.59l3.25-3.25a1 1 0 1 1 1.42 1.41L13.42 12z"
|
|
@@ -7503,7 +7501,7 @@ const Qc = /* @__PURE__ */ yn(Zc, [["render", Xc]]), af = /* @__PURE__ */ le({
|
|
|
7503
7501
|
refs: g,
|
|
7504
7502
|
actions: m
|
|
7505
7503
|
}), (b, h) => (P(), N(y(cn), {
|
|
7506
|
-
|
|
7504
|
+
disabled: !Array.isArray(b.value),
|
|
7507
7505
|
trigger: Array.isArray(b.value) ? "hover" : "manual"
|
|
7508
7506
|
}, {
|
|
7509
7507
|
trigger: O(() => [
|
|
@@ -7511,7 +7509,7 @@ const Qc = /* @__PURE__ */ yn(Zc, [["render", Xc]]), af = /* @__PURE__ */ le({
|
|
|
7511
7509
|
default: O(() => [
|
|
7512
7510
|
V(y(Ai), null, {
|
|
7513
7511
|
default: O(() => [
|
|
7514
|
-
V(y(
|
|
7512
|
+
V(y(He), Y({
|
|
7515
7513
|
type: b.type,
|
|
7516
7514
|
disabled: b.disabled
|
|
7517
7515
|
}, b.buttonProps, { onClick: c }), {
|
|
@@ -7520,7 +7518,7 @@ const Qc = /* @__PURE__ */ yn(Zc, [["render", Xc]]), af = /* @__PURE__ */ le({
|
|
|
7520
7518
|
]),
|
|
7521
7519
|
default: O(() => [
|
|
7522
7520
|
z(b.$slots, "button", {}, () => [
|
|
7523
|
-
uu("span", null,
|
|
7521
|
+
uu("span", null, Ue(Array.isArray(b.value) ? "已选择" : A.value), 1)
|
|
7524
7522
|
]),
|
|
7525
7523
|
V(y(zr), Y({
|
|
7526
7524
|
show: s.value,
|
|
@@ -7564,7 +7562,7 @@ const Qc = /* @__PURE__ */ yn(Zc, [["render", Xc]]), af = /* @__PURE__ */ le({
|
|
|
7564
7562
|
_: 3
|
|
7565
7563
|
}, 16, ["type", "disabled"]),
|
|
7566
7564
|
z(b.$slots, "clear-button", {}, () => [
|
|
7567
|
-
E.value ? (P(), N(y(
|
|
7565
|
+
E.value ? (P(), N(y(He), Y({
|
|
7568
7566
|
key: 0,
|
|
7569
7567
|
circle: "",
|
|
7570
7568
|
type: b.type
|
|
@@ -7587,10 +7585,10 @@ const Qc = /* @__PURE__ */ yn(Zc, [["render", Xc]]), af = /* @__PURE__ */ le({
|
|
|
7587
7585
|
}, 16, ["value"])
|
|
7588
7586
|
]),
|
|
7589
7587
|
default: O(() => [
|
|
7590
|
-
uu("div", null,
|
|
7588
|
+
uu("div", null, Ue(Array.isArray(b.value) ? A.value : ""), 1)
|
|
7591
7589
|
]),
|
|
7592
7590
|
_: 3
|
|
7593
|
-
}, 8, ["
|
|
7591
|
+
}, 8, ["disabled", "trigger"]));
|
|
7594
7592
|
}
|
|
7595
7593
|
}), lf = /* @__PURE__ */ le({
|
|
7596
7594
|
__name: "PresetSelect",
|
|
@@ -7643,8 +7641,8 @@ const Qc = /* @__PURE__ */ yn(Zc, [["render", Xc]]), af = /* @__PURE__ */ le({
|
|
|
7643
7641
|
onError: (F, G) => {
|
|
7644
7642
|
e.requestOptions?.onError?.(F, G), n("error", F, G);
|
|
7645
7643
|
},
|
|
7646
|
-
onFinally: (F, G,
|
|
7647
|
-
e.requestOptions?.onFinally?.(F, G,
|
|
7644
|
+
onFinally: (F, G, be) => {
|
|
7645
|
+
e.requestOptions?.onFinally?.(F, G, be), n("finally", F, G, be);
|
|
7648
7646
|
}
|
|
7649
7647
|
}, e.requestPlugins), g = te(() => s.value ? Array.isArray(s.value[o.list]) ? s.value[o.list] : (console.warn(`DataTablePlus: data[${o.list}] must be an array`), []) : []), m = te(() => typeof e.optionFormat == "function" ? g.value.map((F) => e.optionFormat(F)).filter((F) => !!F) : g.value.map((F) => ({
|
|
7650
7648
|
[o.label]: F[o.label],
|
|
@@ -7680,8 +7678,8 @@ const Qc = /* @__PURE__ */ yn(Zc, [["render", Xc]]), af = /* @__PURE__ */ le({
|
|
|
7680
7678
|
n("scroll", F);
|
|
7681
7679
|
},
|
|
7682
7680
|
onUpdateValue: (F, G) => {
|
|
7683
|
-
const
|
|
7684
|
-
n("update:value", F, G, ge(Ne(
|
|
7681
|
+
const be = Array.isArray(F) ? g.value.filter((Re) => F.includes(Re[o.value])) : g.value.find((Re) => Re[o.value] === F) ?? null;
|
|
7682
|
+
n("update:value", F, G, ge(Ne(be)));
|
|
7685
7683
|
},
|
|
7686
7684
|
onSearch: (F) => {
|
|
7687
7685
|
C.value = F, !f.value && (e.debounce ? T() : h({
|
|
@@ -7769,7 +7767,7 @@ const Qc = /* @__PURE__ */ yn(Zc, [["render", Xc]]), af = /* @__PURE__ */ le({
|
|
|
7769
7767
|
refs: W,
|
|
7770
7768
|
actions: J
|
|
7771
7769
|
}, () => [
|
|
7772
|
-
V(y(
|
|
7770
|
+
V(y(Ke), null, {
|
|
7773
7771
|
default: O(() => [
|
|
7774
7772
|
z(F.$slots, "footer-extra", {
|
|
7775
7773
|
refs: W,
|
|
@@ -7875,7 +7873,7 @@ const Qc = /* @__PURE__ */ yn(Zc, [["render", Xc]]), af = /* @__PURE__ */ le({
|
|
|
7875
7873
|
function a() {
|
|
7876
7874
|
t.value = !1, u.value = r.value;
|
|
7877
7875
|
}
|
|
7878
|
-
return (i, l) => (P(),
|
|
7876
|
+
return (i, l) => (P(), he("div", { onClick: o }, [
|
|
7879
7877
|
t.value ? (P(), N(y(fn), Y({
|
|
7880
7878
|
key: 0,
|
|
7881
7879
|
ref_key: "inputRef",
|
|
@@ -7885,8 +7883,8 @@ const Qc = /* @__PURE__ */ yn(Zc, [["render", Xc]]), af = /* @__PURE__ */ le({
|
|
|
7885
7883
|
"onUpdate:value": l[0] || (l[0] = (s) => r.value = s),
|
|
7886
7884
|
onChange: a,
|
|
7887
7885
|
onBlur: a
|
|
7888
|
-
}), null, 16, ["value"])) : (P(),
|
|
7889
|
-
ou(
|
|
7886
|
+
}), null, 16, ["value"])) : (P(), he(Me, { key: 1 }, [
|
|
7887
|
+
ou(Ue(r.value), 1)
|
|
7890
7888
|
], 64))
|
|
7891
7889
|
]));
|
|
7892
7890
|
}
|
|
@@ -7900,9 +7898,9 @@ const Qc = /* @__PURE__ */ yn(Zc, [["render", Xc]]), af = /* @__PURE__ */ le({
|
|
|
7900
7898
|
emits: ["click"],
|
|
7901
7899
|
setup(e, { emit: u }) {
|
|
7902
7900
|
const t = u;
|
|
7903
|
-
return (n, r) => (P(), N(y(cn), ke(
|
|
7901
|
+
return (n, r) => (P(), N(y(cn), ke(Je(n.tooltipProps)), {
|
|
7904
7902
|
trigger: O(() => [
|
|
7905
|
-
V(y(
|
|
7903
|
+
V(y(He), Y(n.buttonProps, {
|
|
7906
7904
|
onClick: r[0] || (r[0] = (o) => t("click", o))
|
|
7907
7905
|
}), {
|
|
7908
7906
|
icon: O(() => [
|
|
@@ -7916,7 +7914,7 @@ const Qc = /* @__PURE__ */ yn(Zc, [["render", Xc]]), af = /* @__PURE__ */ le({
|
|
|
7916
7914
|
]),
|
|
7917
7915
|
default: O(() => [
|
|
7918
7916
|
z(n.$slots, "tooltip", {}, () => [
|
|
7919
|
-
ou(
|
|
7917
|
+
ou(Ue(n.value), 1)
|
|
7920
7918
|
])
|
|
7921
7919
|
]),
|
|
7922
7920
|
_: 3
|