@oiij/naive-ui 0.0.30 → 0.0.32
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 Fr, onBeforeMount as Ro, defineComponent as me, createBlock as z, openBlock as R, Transition as Oo, mergeProps as
|
|
2
|
-
import { NEl as an, NAvatar as jo, NFlex as Oe, NSpin as Pr, cM as Un, NConfigProvider as Ho, NLoadingBarProvider as Go, NDialogProvider as Wo, NModalProvider as Vo, NNotificationProvider as Zo, NMessageProvider as Yo, NGlobalStyle as Xo, useDialog as Ko, useLoadingBar as Qo, useMessage as Jo, useModal as ei, useNotification as ui, NTooltip as Rr, NButton as Je, NFormItem as ti, NInputGroup as ni, NInput as ln, NTimePicker as ri, NSwitch as oi, NSlider as ii, NSelect as Or, NRate as ai, NRadioGroup as li, NInputNumber as si, NDynamicTags as ci, NDatePicker as fi, NDivider as sn, NCheckboxGroup as di, NColorPicker as pi, NCheckbox as hi, NRadio as bi, NGrid as st, NGi as ct, NCollapseTransition as Mr, NDataTable as mi, NPagination as Lr, NForm as gi, NBadge as
|
|
1
|
+
import { inject as Fr, onBeforeMount as Ro, defineComponent as me, createBlock as z, openBlock as R, Transition as Oo, mergeProps as Y, unref as v, withCtx as O, renderSlot as U, ref as G, toValue as Ke, isRef as Kt, isReactive as Mo, watchEffect as Te, watch as Qe, computed as oe, nextTick as Sr, normalizeClass as Ru, createElementVNode as uu, normalizeStyle as rn, createVNode as Z, createCommentVNode as ue, resolveDynamicComponent as se, Teleport as Lo, normalizeProps as fe, guardReactiveProps as qe, createSlots as Tr, onMounted as No, createElementBlock as re, createTextVNode as xu, toDisplayString as ou, onScopeDispose as on, onUnmounted as $o, reactive as Ou, toRefs as Io, h as be, useTemplateRef as mt, Fragment as Ae, renderList as Ze, toRaw as Ee, toRef as zo, withModifiers as Bo, mergeModels as Uo, useModel as qo } from "vue";
|
|
2
|
+
import { NEl as an, NAvatar as jo, NFlex as Oe, NSpin as Pr, cM as Un, NConfigProvider as Ho, NLoadingBarProvider as Go, NDialogProvider as Wo, NModalProvider as Vo, NNotificationProvider as Zo, NMessageProvider as Yo, NGlobalStyle as Xo, useDialog as Ko, useLoadingBar as Qo, useMessage as Jo, useModal as ei, useNotification as ui, NTooltip as Rr, NButton as Je, NFormItem as ti, NInputGroup as ni, NInput as ln, NTimePicker as ri, NSwitch as oi, NSlider as ii, NSelect as Or, NRate as ai, NRadioGroup as li, NInputNumber as si, NDynamicTags as ci, NDatePicker as fi, NDivider as sn, NCheckboxGroup as di, NColorPicker as pi, NCheckbox as hi, NRadio as bi, NGrid as st, NGi as ct, NCollapseTransition as Mr, NDataTable as mi, NPagination as Lr, NForm as gi, NBadge as ki, NButtonGroup as xi, NModal as _i } from "naive-ui";
|
|
3
3
|
import { createEventHook as rt, useClipboard as vi, useTimeoutFn as yi, useDebounceFn as Nr } from "@vueuse/core";
|
|
4
4
|
function Ei(e) {
|
|
5
5
|
let u = ".", t = "__", n = "--", r;
|
|
@@ -379,7 +379,7 @@ function gt(e, u) {
|
|
|
379
379
|
n();
|
|
380
380
|
});
|
|
381
381
|
}
|
|
382
|
-
const { cssr:
|
|
382
|
+
const { cssr: kt, plugin: xt, namespace: Iu } = qi(), { c: Zi } = kt, { cB: Xu } = xt, Yi = `${Iu}-transition`;
|
|
383
383
|
function Xi({
|
|
384
384
|
name: e = "fade",
|
|
385
385
|
enterDuration: u = ".3s",
|
|
@@ -414,7 +414,7 @@ const Br = /* @__PURE__ */ me({
|
|
|
414
414
|
transitionProps: {}
|
|
415
415
|
},
|
|
416
416
|
setup(e) {
|
|
417
|
-
return gt(Yi, Ki()), (u, t) => (R(), z(Oo,
|
|
417
|
+
return gt(Yi, Ki()), (u, t) => (R(), z(Oo, Y({
|
|
418
418
|
name: `${v(Iu)}-${u.name}`,
|
|
419
419
|
appear: "",
|
|
420
420
|
mode: "out-in"
|
|
@@ -435,17 +435,17 @@ const {
|
|
|
435
435
|
getOwnPropertyDescriptor: ea
|
|
436
436
|
} = Object;
|
|
437
437
|
let {
|
|
438
|
-
freeze:
|
|
439
|
-
seal:
|
|
438
|
+
freeze: ke,
|
|
439
|
+
seal: De,
|
|
440
440
|
create: qr
|
|
441
441
|
} = Object, {
|
|
442
442
|
apply: Jt,
|
|
443
443
|
construct: en
|
|
444
444
|
} = typeof Reflect < "u" && Reflect;
|
|
445
|
-
|
|
445
|
+
ke || (ke = function(u) {
|
|
446
446
|
return u;
|
|
447
447
|
});
|
|
448
|
-
|
|
448
|
+
De || (De = function(u) {
|
|
449
449
|
return u;
|
|
450
450
|
});
|
|
451
451
|
Jt || (Jt = function(u, t, n) {
|
|
@@ -454,8 +454,8 @@ Jt || (Jt = function(u, t, n) {
|
|
|
454
454
|
en || (en = function(u, t) {
|
|
455
455
|
return new u(...t);
|
|
456
456
|
});
|
|
457
|
-
const Ku =
|
|
458
|
-
function
|
|
457
|
+
const Ku = xe(Array.prototype.forEach), ua = xe(Array.prototype.lastIndexOf), Wn = xe(Array.prototype.pop), Au = xe(Array.prototype.push), ta = xe(Array.prototype.splice), ot = xe(String.prototype.toLowerCase), Ot = xe(String.prototype.toString), Vn = xe(String.prototype.match), wu = xe(String.prototype.replace), na = xe(String.prototype.indexOf), ra = xe(String.prototype.trim), Se = xe(Object.prototype.hasOwnProperty), ge = xe(RegExp.prototype.test), Cu = oa(TypeError);
|
|
458
|
+
function xe(e) {
|
|
459
459
|
return function(u) {
|
|
460
460
|
u instanceof RegExp && (u.lastIndex = 0);
|
|
461
461
|
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
|
|
@@ -486,13 +486,13 @@ function j(e, u) {
|
|
|
486
486
|
}
|
|
487
487
|
function ia(e) {
|
|
488
488
|
for (let u = 0; u < e.length; u++)
|
|
489
|
-
|
|
489
|
+
Se(e, u) || (e[u] = null);
|
|
490
490
|
return e;
|
|
491
491
|
}
|
|
492
492
|
function Ue(e) {
|
|
493
493
|
const u = qr(null);
|
|
494
494
|
for (const [t, n] of Ur(e))
|
|
495
|
-
|
|
495
|
+
Se(e, t) && (Array.isArray(n) ? u[t] = ia(n) : n && typeof n == "object" && n.constructor === Object ? u[t] = Ue(n) : u[t] = n);
|
|
496
496
|
return u;
|
|
497
497
|
}
|
|
498
498
|
function Du(e, u) {
|
|
@@ -500,9 +500,9 @@ function Du(e, u) {
|
|
|
500
500
|
const n = ea(e, u);
|
|
501
501
|
if (n) {
|
|
502
502
|
if (n.get)
|
|
503
|
-
return
|
|
503
|
+
return xe(n.get);
|
|
504
504
|
if (typeof n.value == "function")
|
|
505
|
-
return
|
|
505
|
+
return xe(n.value);
|
|
506
506
|
}
|
|
507
507
|
e = Ji(e);
|
|
508
508
|
}
|
|
@@ -511,13 +511,13 @@ function Du(e, u) {
|
|
|
511
511
|
}
|
|
512
512
|
return t;
|
|
513
513
|
}
|
|
514
|
-
const Zn =
|
|
514
|
+
const Zn = 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"]), aa = 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"]), la = ke(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Yn = ke(["#text"]), Xn = 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"]), $t = 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"]), Kn = 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"]), Qu = ke(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), sa = De(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ca = De(/<%[\w\W]*|[\w\W]*%>/gm), fa = De(/\$\{[\w\W]*/gm), da = De(/^data-[\-\w.\u00B7-\uFFFF]+$/), pa = De(/^aria-[\-\w]+$/), jr = 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
|
-
), ha =
|
|
517
|
+
), ha = De(/^(?:\w+script|data):/i), ba = De(
|
|
518
518
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
519
519
|
// eslint-disable-line no-control-regex
|
|
520
|
-
), Hr =
|
|
520
|
+
), Hr = De(/^html$/i), ma = De(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
521
521
|
var Qn = /* @__PURE__ */ Object.freeze({
|
|
522
522
|
__proto__: null,
|
|
523
523
|
ARIA_ATTR: pa,
|
|
@@ -540,7 +540,7 @@ const Fu = {
|
|
|
540
540
|
document: 9
|
|
541
541
|
}, ga = function() {
|
|
542
542
|
return typeof window > "u" ? null : window;
|
|
543
|
-
},
|
|
543
|
+
}, ka = function(u, t) {
|
|
544
544
|
if (typeof u != "object" || typeof u.createPolicy != "function")
|
|
545
545
|
return null;
|
|
546
546
|
let n = null;
|
|
@@ -589,7 +589,7 @@ function Gr() {
|
|
|
589
589
|
NamedNodeMap: c = e.NamedNodeMap || e.MozNamedAttrMap,
|
|
590
590
|
HTMLFormElement: f,
|
|
591
591
|
DOMParser: _,
|
|
592
|
-
trustedTypes:
|
|
592
|
+
trustedTypes: x
|
|
593
593
|
} = e, d = l.prototype, y = Du(d, "cloneNode"), A = Du(d, "remove"), E = Du(d, "nextSibling"), m = Du(d, "childNodes"), p = Du(d, "parentNode");
|
|
594
594
|
if (typeof a == "function") {
|
|
595
595
|
const I = t.createElement("template");
|
|
@@ -597,32 +597,32 @@ function Gr() {
|
|
|
597
597
|
}
|
|
598
598
|
let h, b = "";
|
|
599
599
|
const {
|
|
600
|
-
implementation:
|
|
600
|
+
implementation: k,
|
|
601
601
|
createNodeIterator: w,
|
|
602
602
|
createDocumentFragment: P,
|
|
603
|
-
getElementsByTagName:
|
|
603
|
+
getElementsByTagName: C
|
|
604
604
|
} = t, {
|
|
605
605
|
importNode: B
|
|
606
606
|
} = n;
|
|
607
607
|
let L = Jn();
|
|
608
|
-
u.isSupported = typeof Ur == "function" && typeof p == "function" &&
|
|
608
|
+
u.isSupported = typeof Ur == "function" && typeof p == "function" && k && k.createHTMLDocument !== void 0;
|
|
609
609
|
const {
|
|
610
|
-
MUSTACHE_EXPR:
|
|
610
|
+
MUSTACHE_EXPR: W,
|
|
611
611
|
ERB_EXPR: ie,
|
|
612
612
|
TMPLIT_EXPR: F,
|
|
613
613
|
DATA_ATTR: q,
|
|
614
614
|
ARIA_ATTR: ee,
|
|
615
|
-
IS_SCRIPT_OR_DATA:
|
|
616
|
-
ATTR_WHITESPACE:
|
|
615
|
+
IS_SCRIPT_OR_DATA: D,
|
|
616
|
+
ATTR_WHITESPACE: N,
|
|
617
617
|
CUSTOM_ELEMENT: T
|
|
618
618
|
} = Qn;
|
|
619
619
|
let {
|
|
620
620
|
IS_ALLOWED_URI: Q
|
|
621
|
-
} = Qn,
|
|
621
|
+
} = Qn, $ = null;
|
|
622
622
|
const H = j({}, [...Zn, ...Mt, ...Lt, ...Nt, ...Yn]);
|
|
623
623
|
let X = null;
|
|
624
624
|
const te = j({}, [...Xn, ...$t, ...Kn, ...Qu]);
|
|
625
|
-
let
|
|
625
|
+
let V = Object.seal(qr(null, {
|
|
626
626
|
tagNameCheck: {
|
|
627
627
|
writable: !0,
|
|
628
628
|
configurable: !1,
|
|
@@ -641,7 +641,7 @@ function Gr() {
|
|
|
641
641
|
enumerable: !0,
|
|
642
642
|
value: !1
|
|
643
643
|
}
|
|
644
|
-
})),
|
|
644
|
+
})), _e = null, je = null, iu = !0, au = !0, lu = !1, tu = !0, He = !1, Ge = !0, nu = !1, At = !1, wt = !1, su = !1, qu = !1, ju = !1, En = !0, An = !1;
|
|
645
645
|
const Ao = "user-content-";
|
|
646
646
|
let Ct = !0, vu = !1, cu = {}, fu = null;
|
|
647
647
|
const wn = 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"]);
|
|
@@ -662,15 +662,15 @@ function Gr() {
|
|
|
662
662
|
let g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
663
663
|
if (!(pu && pu === g)) {
|
|
664
664
|
if ((!g || typeof g != "object") && (g = {}), g = Ue(g), yu = // eslint-disable-next-line unicorn/prefer-includes
|
|
665
|
-
Do.indexOf(g.PARSER_MEDIA_TYPE) === -1 ? Fo : g.PARSER_MEDIA_TYPE, ae = yu === "application/xhtml+xml" ? Ot : ot,
|
|
665
|
+
Do.indexOf(g.PARSER_MEDIA_TYPE) === -1 ? Fo : g.PARSER_MEDIA_TYPE, ae = yu === "application/xhtml+xml" ? Ot : ot, $ = Se(g, "ALLOWED_TAGS") ? j({}, g.ALLOWED_TAGS, ae) : H, X = Se(g, "ALLOWED_ATTR") ? j({}, g.ALLOWED_ATTR, ae) : te, St = Se(g, "ALLOWED_NAMESPACES") ? j({}, g.ALLOWED_NAMESPACES, Ot) : wo, Dt = Se(g, "ADD_URI_SAFE_ATTR") ? j(Ue(Fn), g.ADD_URI_SAFE_ATTR, ae) : Fn, Cn = Se(g, "ADD_DATA_URI_TAGS") ? j(Ue(Dn), g.ADD_DATA_URI_TAGS, ae) : Dn, fu = Se(g, "FORBID_CONTENTS") ? j({}, g.FORBID_CONTENTS, ae) : wn, _e = Se(g, "FORBID_TAGS") ? j({}, g.FORBID_TAGS, ae) : Ue({}), je = Se(g, "FORBID_ATTR") ? j({}, g.FORBID_ATTR, ae) : Ue({}), cu = Se(g, "USE_PROFILES") ? g.USE_PROFILES : !1, iu = g.ALLOW_ARIA_ATTR !== !1, au = g.ALLOW_DATA_ATTR !== !1, lu = g.ALLOW_UNKNOWN_PROTOCOLS || !1, tu = g.ALLOW_SELF_CLOSE_IN_ATTR !== !1, He = g.SAFE_FOR_TEMPLATES || !1, Ge = g.SAFE_FOR_XML !== !1, nu = g.WHOLE_DOCUMENT || !1, su = g.RETURN_DOM || !1, qu = g.RETURN_DOM_FRAGMENT || !1, ju = g.RETURN_TRUSTED_TYPE || !1, wt = g.FORCE_BODY || !1, En = g.SANITIZE_DOM !== !1, An = g.SANITIZE_NAMED_PROPS || !1, Ct = g.KEEP_CONTENT !== !1, vu = g.IN_PLACE || !1, Q = g.ALLOWED_URI_REGEXP || jr, du = g.NAMESPACE || Ie, Wu = g.MATHML_TEXT_INTEGRATION_POINTS || Wu, Vu = g.HTML_INTEGRATION_POINTS || Vu, V = g.CUSTOM_ELEMENT_HANDLING || {}, g.CUSTOM_ELEMENT_HANDLING && Sn(g.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (V.tagNameCheck = g.CUSTOM_ELEMENT_HANDLING.tagNameCheck), g.CUSTOM_ELEMENT_HANDLING && Sn(g.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (V.attributeNameCheck = g.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), g.CUSTOM_ELEMENT_HANDLING && typeof g.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (V.allowCustomizedBuiltInElements = g.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), He && (au = !1), qu && (su = !0), cu && ($ = j({}, Yn), X = [], cu.html === !0 && (j($, Zn), j(X, Xn)), cu.svg === !0 && (j($, Mt), j(X, $t), j(X, Qu)), cu.svgFilters === !0 && (j($, Lt), j(X, $t), j(X, Qu)), cu.mathMl === !0 && (j($, Nt), j(X, Kn), j(X, Qu))), g.ADD_TAGS && ($ === H && ($ = Ue($)), j($, g.ADD_TAGS, ae)), g.ADD_ATTR && (X === te && (X = Ue(X)), j(X, g.ADD_ATTR, ae)), g.ADD_URI_SAFE_ATTR && j(Dt, g.ADD_URI_SAFE_ATTR, ae), g.FORBID_CONTENTS && (fu === wn && (fu = Ue(fu)), j(fu, g.FORBID_CONTENTS, ae)), Ct && ($["#text"] = !0), nu && j($, ["html", "head", "body"]), $.table && (j($, ["tbody"]), delete _e.tbody), g.TRUSTED_TYPES_POLICY) {
|
|
666
666
|
if (typeof g.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
667
667
|
throw Cu('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
668
668
|
if (typeof g.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
669
669
|
throw Cu('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
670
670
|
h = g.TRUSTED_TYPES_POLICY, b = h.createHTML("");
|
|
671
671
|
} else
|
|
672
|
-
h === void 0 && (h =
|
|
673
|
-
|
|
672
|
+
h === void 0 && (h = ka(x, r)), h !== null && typeof b == "string" && (b = h.createHTML(""));
|
|
673
|
+
ke && ke(g), pu = g;
|
|
674
674
|
}
|
|
675
675
|
}, Tn = j({}, [...Mt, ...Lt, ...aa]), Pn = j({}, [...Nt, ...la]), To = function(g) {
|
|
676
676
|
let S = p(g);
|
|
@@ -728,14 +728,14 @@ function Gr() {
|
|
|
728
728
|
} catch {
|
|
729
729
|
}
|
|
730
730
|
if (!S || !S.documentElement) {
|
|
731
|
-
S =
|
|
731
|
+
S = k.createDocument(du, "template", null);
|
|
732
732
|
try {
|
|
733
733
|
S.documentElement.innerHTML = Ft ? b : J;
|
|
734
734
|
} catch {
|
|
735
735
|
}
|
|
736
736
|
}
|
|
737
737
|
const de = S.body || S.documentElement;
|
|
738
|
-
return g && M && de.insertBefore(t.createTextNode(M), de.childNodes[0] || null), du === Ie ?
|
|
738
|
+
return g && M && de.insertBefore(t.createTextNode(M), de.childNodes[0] || null), du === Ie ? C.call(S, nu ? "html" : "body")[0] : nu ? S.documentElement : de;
|
|
739
739
|
}, On = function(g) {
|
|
740
740
|
return w.call(
|
|
741
741
|
g.ownerDocument || g,
|
|
@@ -761,25 +761,25 @@ function Gr() {
|
|
|
761
761
|
const M = ae(g.nodeName);
|
|
762
762
|
if (ze(L.uponSanitizeElement, g, {
|
|
763
763
|
tagName: M,
|
|
764
|
-
allowedTags:
|
|
764
|
+
allowedTags: $
|
|
765
765
|
}), Ge && g.hasChildNodes() && !Mn(g.firstElementChild) && ge(/<[/\w!]/g, g.innerHTML) && ge(/<[/\w!]/g, g.textContent) || g.nodeType === Fu.progressingInstruction || Ge && g.nodeType === Fu.comment && ge(/<[/\w]/g, g.data))
|
|
766
766
|
return Re(g), !0;
|
|
767
|
-
if (
|
|
768
|
-
if (!
|
|
767
|
+
if (!$[M] || _e[M]) {
|
|
768
|
+
if (!_e[M] && $n(M) && (V.tagNameCheck instanceof RegExp && ge(V.tagNameCheck, M) || V.tagNameCheck instanceof Function && V.tagNameCheck(M)))
|
|
769
769
|
return !1;
|
|
770
770
|
if (Ct && !fu[M]) {
|
|
771
771
|
const J = p(g) || g.parentNode, de = m(g) || g.childNodes;
|
|
772
772
|
if (de && J) {
|
|
773
773
|
const ne = de.length;
|
|
774
|
-
for (let
|
|
775
|
-
const Be = y(de[
|
|
774
|
+
for (let ve = ne - 1; ve >= 0; --ve) {
|
|
775
|
+
const Be = y(de[ve], !0);
|
|
776
776
|
Be.__removalCount = (g.__removalCount || 0) + 1, J.insertBefore(Be, E(g));
|
|
777
777
|
}
|
|
778
778
|
}
|
|
779
779
|
}
|
|
780
780
|
return Re(g), !0;
|
|
781
781
|
}
|
|
782
|
-
return g instanceof l && !To(g) || (M === "noscript" || M === "noembed" || M === "noframes") && ge(/<\/no(script|embed|frames)/i, g.innerHTML) ? (Re(g), !0) : (He && g.nodeType === Fu.text && (S = g.textContent, Ku([
|
|
782
|
+
return g instanceof l && !To(g) || (M === "noscript" || M === "noembed" || M === "noframes") && ge(/<\/no(script|embed|frames)/i, g.innerHTML) ? (Re(g), !0) : (He && g.nodeType === Fu.text && (S = g.textContent, Ku([W, ie, F], (J) => {
|
|
783
783
|
S = wu(S, J, " ");
|
|
784
784
|
}), g.textContent !== S && (Au(u.removed, {
|
|
785
785
|
element: g.cloneNode()
|
|
@@ -794,14 +794,14 @@ function Gr() {
|
|
|
794
794
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
795
795
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
796
796
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
797
|
-
!($n(g) && (
|
|
797
|
+
!($n(g) && (V.tagNameCheck instanceof RegExp && ge(V.tagNameCheck, g) || V.tagNameCheck instanceof Function && V.tagNameCheck(g)) && (V.attributeNameCheck instanceof RegExp && ge(V.attributeNameCheck, S) || V.attributeNameCheck instanceof Function && V.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" &&
|
|
799
|
+
S === "is" && V.allowCustomizedBuiltInElements && (V.tagNameCheck instanceof RegExp && ge(V.tagNameCheck, M) || V.tagNameCheck instanceof Function && V.tagNameCheck(M)))
|
|
800
800
|
) return !1;
|
|
801
801
|
} else if (!Dt[S]) {
|
|
802
|
-
if (!ge(Q, wu(M,
|
|
802
|
+
if (!ge(Q, wu(M, N, ""))) {
|
|
803
803
|
if (!((S === "src" || S === "xlink:href" || S === "href") && g !== "script" && na(M, "data:") === 0 && Cn[g])) {
|
|
804
|
-
if (!(lu && !ge(
|
|
804
|
+
if (!(lu && !ge(D, wu(M, N, "")))) {
|
|
805
805
|
if (M)
|
|
806
806
|
return !1;
|
|
807
807
|
}
|
|
@@ -831,7 +831,7 @@ function Gr() {
|
|
|
831
831
|
for (; J--; ) {
|
|
832
832
|
const de = S[J], {
|
|
833
833
|
name: ne,
|
|
834
|
-
namespaceURI:
|
|
834
|
+
namespaceURI: ve,
|
|
835
835
|
value: Be
|
|
836
836
|
} = de, Eu = ae(ne), Rt = Be;
|
|
837
837
|
let pe = ne === "value" ? Rt : ra(Rt);
|
|
@@ -849,7 +849,7 @@ function Gr() {
|
|
|
849
849
|
hu(ne, g);
|
|
850
850
|
continue;
|
|
851
851
|
}
|
|
852
|
-
He && Ku([
|
|
852
|
+
He && Ku([W, ie, F], (Bn) => {
|
|
853
853
|
pe = wu(pe, Bn, " ");
|
|
854
854
|
});
|
|
855
855
|
const zn = ae(g.nodeName);
|
|
@@ -857,8 +857,8 @@ function Gr() {
|
|
|
857
857
|
hu(ne, g);
|
|
858
858
|
continue;
|
|
859
859
|
}
|
|
860
|
-
if (h && typeof
|
|
861
|
-
switch (
|
|
860
|
+
if (h && typeof x == "object" && typeof x.getAttributeType == "function" && !ve)
|
|
861
|
+
switch (x.getAttributeType(zn, Eu)) {
|
|
862
862
|
case "TrustedHTML": {
|
|
863
863
|
pe = h.createHTML(pe);
|
|
864
864
|
break;
|
|
@@ -870,7 +870,7 @@ function Gr() {
|
|
|
870
870
|
}
|
|
871
871
|
if (pe !== Rt)
|
|
872
872
|
try {
|
|
873
|
-
|
|
873
|
+
ve ? g.setAttributeNS(ve, ne, pe) : g.setAttribute(ne, pe), Pt(g) ? Re(g) : Wn(u.removed);
|
|
874
874
|
} catch {
|
|
875
875
|
hu(ne, g);
|
|
876
876
|
}
|
|
@@ -896,7 +896,7 @@ function Gr() {
|
|
|
896
896
|
if (At || Tt(g), u.removed = [], typeof I == "string" && (vu = !1), vu) {
|
|
897
897
|
if (I.nodeName) {
|
|
898
898
|
const Be = ae(I.nodeName);
|
|
899
|
-
if (
|
|
899
|
+
if (!$[Be] || _e[Be])
|
|
900
900
|
throw Cu("root node is forbidden and cannot be sanitized in-place");
|
|
901
901
|
}
|
|
902
902
|
} else if (I instanceof i)
|
|
@@ -922,11 +922,11 @@ function Gr() {
|
|
|
922
922
|
de = S;
|
|
923
923
|
return (X.shadowroot || X.shadowrootmode) && (de = B.call(n, de, !0)), de;
|
|
924
924
|
}
|
|
925
|
-
let
|
|
926
|
-
return nu &&
|
|
927
|
-
` +
|
|
928
|
-
|
|
929
|
-
}), h && ju ? h.createHTML(
|
|
925
|
+
let ve = nu ? S.outerHTML : S.innerHTML;
|
|
926
|
+
return nu && $["!doctype"] && S.ownerDocument && S.ownerDocument.doctype && S.ownerDocument.doctype.name && ge(Hr, S.ownerDocument.doctype.name) && (ve = "<!DOCTYPE " + S.ownerDocument.doctype.name + `>
|
|
927
|
+
` + ve), He && Ku([W, ie, F], (Be) => {
|
|
928
|
+
ve = wu(ve, Be, " ");
|
|
929
|
+
}), h && ju ? h.createHTML(ve) : ve;
|
|
930
930
|
}, u.setConfig = function() {
|
|
931
931
|
let I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
932
932
|
Tt(I), At = !0;
|
|
@@ -950,7 +950,7 @@ function Gr() {
|
|
|
950
950
|
L = Jn();
|
|
951
951
|
}, u;
|
|
952
952
|
}
|
|
953
|
-
var
|
|
953
|
+
var xa = Gr();
|
|
954
954
|
const er = {};
|
|
955
955
|
function _a(e) {
|
|
956
956
|
let u = er[e];
|
|
@@ -1101,8 +1101,8 @@ ft.prototype.parse = function(e, u) {
|
|
|
1101
1101
|
s === -1 && (s = o.length), o[s - 1] === ":" && s--;
|
|
1102
1102
|
const _ = o.slice(0, s);
|
|
1103
1103
|
o = o.slice(s), this.parseHost(_), this.hostname = this.hostname || "";
|
|
1104
|
-
const
|
|
1105
|
-
if (!
|
|
1104
|
+
const x = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
1105
|
+
if (!x) {
|
|
1106
1106
|
const d = this.hostname.split(/\./);
|
|
1107
1107
|
for (let y = 0, A = d.length; y < A; y++) {
|
|
1108
1108
|
const E = d[y];
|
|
@@ -1118,7 +1118,7 @@ ft.prototype.parse = function(e, u) {
|
|
|
1118
1118
|
}
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
|
1121
|
-
this.hostname.length > Fa && (this.hostname = ""),
|
|
1121
|
+
this.hostname.length > Fa && (this.hostname = ""), x && (this.hostname = this.hostname.substr(1, this.hostname.length - 2));
|
|
1122
1122
|
}
|
|
1123
1123
|
const i = o.indexOf("#");
|
|
1124
1124
|
i !== -1 && (this.hash = o.substr(i), o = o.slice(0, i));
|
|
@@ -1503,7 +1503,7 @@ function Ka(e, u) {
|
|
|
1503
1503
|
function Qa(e) {
|
|
1504
1504
|
return e.indexOf("\\") < 0 ? e : e.replace(Jr, "$1");
|
|
1505
1505
|
}
|
|
1506
|
-
function
|
|
1506
|
+
function ku(e) {
|
|
1507
1507
|
return e.indexOf("\\") < 0 && e.indexOf("&") < 0 ? e : e.replace(Ya, function(u, t, n) {
|
|
1508
1508
|
return t || Ka(u, n);
|
|
1509
1509
|
});
|
|
@@ -1617,7 +1617,7 @@ const o0 = { mdurl: Ta, ucmicro: Ra }, i0 = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
1617
1617
|
isWhiteSpace: Mu,
|
|
1618
1618
|
lib: o0,
|
|
1619
1619
|
normalizeReference: vt,
|
|
1620
|
-
unescapeAll:
|
|
1620
|
+
unescapeAll: ku,
|
|
1621
1621
|
unescapeMd: Qa
|
|
1622
1622
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1623
1623
|
function a0(e, u, t) {
|
|
@@ -1650,7 +1650,7 @@ function l0(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 = ku(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 l0(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 = ku(e.slice(u, r)), o.pos = r, o.ok = !0), o;
|
|
1680
1680
|
}
|
|
1681
1681
|
function s0(e, u, t, n) {
|
|
1682
1682
|
let r, o = u;
|
|
@@ -1704,12 +1704,12 @@ function s0(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 += ku(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 += ku(e.slice(u, o)), a;
|
|
1713
1713
|
}
|
|
1714
1714
|
const c0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1715
1715
|
__proto__: null,
|
|
@@ -1727,7 +1727,7 @@ Ne.code_block = function(e, u, t, n, r) {
|
|
|
1727
1727
|
`;
|
|
1728
1728
|
};
|
|
1729
1729
|
Ne.fence = function(e, u, t, n, r) {
|
|
1730
|
-
const o = e[u], a = o.info ?
|
|
1730
|
+
const o = e[u], a = o.info ? ku(o.info).trim() : "";
|
|
1731
1731
|
let i = "", l = "";
|
|
1732
1732
|
if (a) {
|
|
1733
1733
|
const c = a.split(/(\s+)/g);
|
|
@@ -1839,16 +1839,16 @@ _u.prototype.render = function(e, u, t) {
|
|
|
1839
1839
|
}
|
|
1840
1840
|
return n;
|
|
1841
1841
|
};
|
|
1842
|
-
function
|
|
1842
|
+
function we() {
|
|
1843
1843
|
this.__rules__ = [], this.__cache__ = null;
|
|
1844
1844
|
}
|
|
1845
|
-
|
|
1845
|
+
we.prototype.__find__ = function(e) {
|
|
1846
1846
|
for (let u = 0; u < this.__rules__.length; u++)
|
|
1847
1847
|
if (this.__rules__[u].name === e)
|
|
1848
1848
|
return u;
|
|
1849
1849
|
return -1;
|
|
1850
1850
|
};
|
|
1851
|
-
|
|
1851
|
+
we.prototype.__compile__ = function() {
|
|
1852
1852
|
const e = this, u = [""];
|
|
1853
1853
|
e.__rules__.forEach(function(t) {
|
|
1854
1854
|
t.enabled && t.alt.forEach(function(n) {
|
|
@@ -1860,13 +1860,13 @@ Ae.prototype.__compile__ = function() {
|
|
|
1860
1860
|
});
|
|
1861
1861
|
});
|
|
1862
1862
|
};
|
|
1863
|
-
|
|
1863
|
+
we.prototype.at = function(e, u, t) {
|
|
1864
1864
|
const n = this.__find__(e), r = t || {};
|
|
1865
1865
|
if (n === -1)
|
|
1866
1866
|
throw new Error("Parser rule not found: " + e);
|
|
1867
1867
|
this.__rules__[n].fn = u, this.__rules__[n].alt = r.alt || [], this.__cache__ = null;
|
|
1868
1868
|
};
|
|
1869
|
-
|
|
1869
|
+
we.prototype.before = function(e, u, t, n) {
|
|
1870
1870
|
const r = this.__find__(e), o = n || {};
|
|
1871
1871
|
if (r === -1)
|
|
1872
1872
|
throw new Error("Parser rule not found: " + e);
|
|
@@ -1877,7 +1877,7 @@ Ae.prototype.before = function(e, u, t, n) {
|
|
|
1877
1877
|
alt: o.alt || []
|
|
1878
1878
|
}), this.__cache__ = null;
|
|
1879
1879
|
};
|
|
1880
|
-
|
|
1880
|
+
we.prototype.after = function(e, u, t, n) {
|
|
1881
1881
|
const r = this.__find__(e), o = n || {};
|
|
1882
1882
|
if (r === -1)
|
|
1883
1883
|
throw new Error("Parser rule not found: " + e);
|
|
@@ -1888,7 +1888,7 @@ Ae.prototype.after = function(e, u, t, n) {
|
|
|
1888
1888
|
alt: o.alt || []
|
|
1889
1889
|
}), this.__cache__ = null;
|
|
1890
1890
|
};
|
|
1891
|
-
|
|
1891
|
+
we.prototype.push = function(e, u, t) {
|
|
1892
1892
|
const n = t || {};
|
|
1893
1893
|
this.__rules__.push({
|
|
1894
1894
|
name: e,
|
|
@@ -1897,7 +1897,7 @@ Ae.prototype.push = function(e, u, t) {
|
|
|
1897
1897
|
alt: n.alt || []
|
|
1898
1898
|
}), this.__cache__ = null;
|
|
1899
1899
|
};
|
|
1900
|
-
|
|
1900
|
+
we.prototype.enable = function(e, u) {
|
|
1901
1901
|
Array.isArray(e) || (e = [e]);
|
|
1902
1902
|
const t = [];
|
|
1903
1903
|
return e.forEach(function(n) {
|
|
@@ -1910,12 +1910,12 @@ Ae.prototype.enable = function(e, u) {
|
|
|
1910
1910
|
this.__rules__[r].enabled = !0, t.push(n);
|
|
1911
1911
|
}, this), this.__cache__ = null, t;
|
|
1912
1912
|
};
|
|
1913
|
-
|
|
1913
|
+
we.prototype.enableOnly = function(e, u) {
|
|
1914
1914
|
Array.isArray(e) || (e = [e]), this.__rules__.forEach(function(t) {
|
|
1915
1915
|
t.enabled = !1;
|
|
1916
1916
|
}), this.enable(e, u);
|
|
1917
1917
|
};
|
|
1918
|
-
|
|
1918
|
+
we.prototype.disable = function(e, u) {
|
|
1919
1919
|
Array.isArray(e) || (e = [e]);
|
|
1920
1920
|
const t = [];
|
|
1921
1921
|
return e.forEach(function(n) {
|
|
@@ -1928,13 +1928,13 @@ Ae.prototype.disable = function(e, u) {
|
|
|
1928
1928
|
this.__rules__[r].enabled = !1, t.push(n);
|
|
1929
1929
|
}, this), this.__cache__ = null, t;
|
|
1930
1930
|
};
|
|
1931
|
-
|
|
1931
|
+
we.prototype.getRules = function(e) {
|
|
1932
1932
|
return this.__cache__ === null && this.__compile__(), this.__cache__[e] || [];
|
|
1933
1933
|
};
|
|
1934
|
-
function
|
|
1934
|
+
function Pe(e, u, t) {
|
|
1935
1935
|
this.type = e, this.tag = u, this.attrs = null, this.map = null, this.nesting = t, this.level = 0, this.children = null, this.content = "", this.markup = "", this.info = "", this.meta = null, this.block = !1, this.hidden = !1;
|
|
1936
1936
|
}
|
|
1937
|
-
|
|
1937
|
+
Pe.prototype.attrIndex = function(u) {
|
|
1938
1938
|
if (!this.attrs)
|
|
1939
1939
|
return -1;
|
|
1940
1940
|
const t = this.attrs;
|
|
@@ -1943,26 +1943,26 @@ Te.prototype.attrIndex = function(u) {
|
|
|
1943
1943
|
return n;
|
|
1944
1944
|
return -1;
|
|
1945
1945
|
};
|
|
1946
|
-
|
|
1946
|
+
Pe.prototype.attrPush = function(u) {
|
|
1947
1947
|
this.attrs ? this.attrs.push(u) : this.attrs = [u];
|
|
1948
1948
|
};
|
|
1949
|
-
|
|
1949
|
+
Pe.prototype.attrSet = function(u, t) {
|
|
1950
1950
|
const n = this.attrIndex(u), r = [u, t];
|
|
1951
1951
|
n < 0 ? this.attrPush(r) : this.attrs[n] = r;
|
|
1952
1952
|
};
|
|
1953
|
-
|
|
1953
|
+
Pe.prototype.attrGet = function(u) {
|
|
1954
1954
|
const t = this.attrIndex(u);
|
|
1955
1955
|
let n = null;
|
|
1956
1956
|
return t >= 0 && (n = this.attrs[t][1]), n;
|
|
1957
1957
|
};
|
|
1958
|
-
|
|
1958
|
+
Pe.prototype.attrJoin = function(u, t) {
|
|
1959
1959
|
const n = this.attrIndex(u);
|
|
1960
1960
|
n < 0 ? this.attrPush([u, t]) : this.attrs[n][1] = this.attrs[n][1] + " " + t;
|
|
1961
1961
|
};
|
|
1962
1962
|
function eo(e, u, t) {
|
|
1963
1963
|
this.src = e, this.env = t, this.tokens = [], this.inlineMode = !1, this.md = u;
|
|
1964
1964
|
}
|
|
1965
|
-
eo.prototype.Token =
|
|
1965
|
+
eo.prototype.Token = Pe;
|
|
1966
1966
|
const f0 = /\r\n?|\n/g, d0 = /\0/g;
|
|
1967
1967
|
function p0(e) {
|
|
1968
1968
|
let u;
|
|
@@ -1986,7 +1986,7 @@ function m0(e) {
|
|
|
1986
1986
|
function g0(e) {
|
|
1987
1987
|
return /^<\/a\s*>/i.test(e);
|
|
1988
1988
|
}
|
|
1989
|
-
function
|
|
1989
|
+
function k0(e) {
|
|
1990
1990
|
const u = e.tokens;
|
|
1991
1991
|
if (e.md.options.linkify)
|
|
1992
1992
|
for (let t = 0, n = u.length; t < n; t++) {
|
|
@@ -2006,13 +2006,13 @@ function x0(e) {
|
|
|
2006
2006
|
const c = [];
|
|
2007
2007
|
let f = i.level, _ = 0;
|
|
2008
2008
|
s.length > 0 && s[0].index === 0 && a > 0 && r[a - 1].type === "text_special" && (s = s.slice(1));
|
|
2009
|
-
for (let
|
|
2010
|
-
const d = s[
|
|
2009
|
+
for (let x = 0; x < s.length; x++) {
|
|
2010
|
+
const d = s[x].url, y = e.md.normalizeLink(d);
|
|
2011
2011
|
if (!e.md.validateLink(y))
|
|
2012
2012
|
continue;
|
|
2013
|
-
let A = s[
|
|
2014
|
-
s[
|
|
2015
|
-
const E = s[
|
|
2013
|
+
let A = s[x].text;
|
|
2014
|
+
s[x].schema ? s[x].schema === "mailto:" && !/^mailto:/i.test(A) ? A = e.md.normalizeLinkText("mailto:" + A).replace(/^mailto:/, "") : A = e.md.normalizeLinkText(A) : A = e.md.normalizeLinkText("http://" + A).replace(/^http:\/\//, "");
|
|
2015
|
+
const E = s[x].index;
|
|
2016
2016
|
if (E > _) {
|
|
2017
2017
|
const b = new e.Token("text", "", 0);
|
|
2018
2018
|
b.content = l.slice(_, E), b.level = f, c.push(b);
|
|
@@ -2022,18 +2022,18 @@ function x0(e) {
|
|
|
2022
2022
|
const p = new e.Token("text", "", 0);
|
|
2023
2023
|
p.content = A, p.level = f, c.push(p);
|
|
2024
2024
|
const h = new e.Token("link_close", "a", -1);
|
|
2025
|
-
h.level = --f, h.markup = "linkify", h.info = "auto", c.push(h), _ = s[
|
|
2025
|
+
h.level = --f, h.markup = "linkify", h.info = "auto", c.push(h), _ = s[x].lastIndex;
|
|
2026
2026
|
}
|
|
2027
2027
|
if (_ < l.length) {
|
|
2028
|
-
const
|
|
2029
|
-
|
|
2028
|
+
const x = new e.Token("text", "", 0);
|
|
2029
|
+
x.content = l.slice(_), x.level = f, c.push(x);
|
|
2030
2030
|
}
|
|
2031
2031
|
u[t].children = r = Qr(r, a, c);
|
|
2032
2032
|
}
|
|
2033
2033
|
}
|
|
2034
2034
|
}
|
|
2035
2035
|
}
|
|
2036
|
-
const uo = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/,
|
|
2036
|
+
const uo = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, x0 = /\((c|tm|r)\)/i, _0 = /\((c|tm|r)\)/ig, v0 = {
|
|
2037
2037
|
c: "©",
|
|
2038
2038
|
r: "®",
|
|
2039
2039
|
tm: "™"
|
|
@@ -2059,7 +2059,7 @@ function w0(e) {
|
|
|
2059
2059
|
let u;
|
|
2060
2060
|
if (e.md.options.typographer)
|
|
2061
2061
|
for (u = e.tokens.length - 1; u >= 0; u--)
|
|
2062
|
-
e.tokens[u].type === "inline" && (
|
|
2062
|
+
e.tokens[u].type === "inline" && (x0.test(e.tokens[u].content) && E0(e.tokens[u].children), uo.test(e.tokens[u].content) && A0(e.tokens[u].children));
|
|
2063
2063
|
}
|
|
2064
2064
|
const C0 = /['"]/, ar = /['"]/g, lr = "’";
|
|
2065
2065
|
function Ju(e, u, t) {
|
|
@@ -2083,7 +2083,7 @@ function D0(e, u) {
|
|
|
2083
2083
|
break;
|
|
2084
2084
|
let f = !0, _ = !0;
|
|
2085
2085
|
l = c.index + 1;
|
|
2086
|
-
const
|
|
2086
|
+
const x = c[0] === "'";
|
|
2087
2087
|
let d = 32;
|
|
2088
2088
|
if (c.index - 1 >= 0)
|
|
2089
2089
|
d = i.charCodeAt(c.index - 1);
|
|
@@ -2104,7 +2104,7 @@ function D0(e, u) {
|
|
|
2104
2104
|
}
|
|
2105
2105
|
const A = Nu(d) || Lu(String.fromCharCode(d)), E = Nu(y) || Lu(String.fromCharCode(y)), m = Mu(d), p = Mu(y);
|
|
2106
2106
|
if (p ? f = !1 : E && (m || A || (f = !1)), m ? _ = !1 : A && (p || E || (_ = !1)), y === 34 && c[0] === '"' && d >= 48 && d <= 57 && (_ = f = !1), f && _ && (f = A, _ = E), !f && !_) {
|
|
2107
|
-
|
|
2107
|
+
x && (o.content = Ju(o.content, c.index, lr));
|
|
2108
2108
|
continue;
|
|
2109
2109
|
}
|
|
2110
2110
|
if (_)
|
|
@@ -2112,23 +2112,23 @@ function D0(e, u) {
|
|
|
2112
2112
|
let h = n[t];
|
|
2113
2113
|
if (n[t].level < a)
|
|
2114
2114
|
break;
|
|
2115
|
-
if (h.single ===
|
|
2115
|
+
if (h.single === x && n[t].level === a) {
|
|
2116
2116
|
h = n[t];
|
|
2117
|
-
let b,
|
|
2118
|
-
|
|
2117
|
+
let b, k;
|
|
2118
|
+
x ? (b = u.md.options.quotes[2], k = u.md.options.quotes[3]) : (b = u.md.options.quotes[0], k = u.md.options.quotes[1]), o.content = Ju(o.content, c.index, k), e[h.token].content = Ju(
|
|
2119
2119
|
e[h.token].content,
|
|
2120
2120
|
h.pos,
|
|
2121
2121
|
b
|
|
2122
|
-
), l +=
|
|
2122
|
+
), l += k.length - 1, h.token === r && (l += b.length - 1), i = o.content, s = i.length, n.length = t;
|
|
2123
2123
|
continue e;
|
|
2124
2124
|
}
|
|
2125
2125
|
}
|
|
2126
2126
|
f ? n.push({
|
|
2127
2127
|
token: r,
|
|
2128
2128
|
pos: c.index,
|
|
2129
|
-
single:
|
|
2129
|
+
single: x,
|
|
2130
2130
|
level: a
|
|
2131
|
-
}) : _ &&
|
|
2131
|
+
}) : _ && x && (o.content = Ju(o.content, c.index, lr));
|
|
2132
2132
|
}
|
|
2133
2133
|
}
|
|
2134
2134
|
}
|
|
@@ -2154,7 +2154,7 @@ const zt = [
|
|
|
2154
2154
|
["normalize", p0],
|
|
2155
2155
|
["block", h0],
|
|
2156
2156
|
["inline", b0],
|
|
2157
|
-
["linkify",
|
|
2157
|
+
["linkify", k0],
|
|
2158
2158
|
["replacements", w0],
|
|
2159
2159
|
["smartquotes", F0],
|
|
2160
2160
|
// `text_join` finds `text_special` tokens (for escape sequences)
|
|
@@ -2162,7 +2162,7 @@ const zt = [
|
|
|
2162
2162
|
["text_join", S0]
|
|
2163
2163
|
];
|
|
2164
2164
|
function mn() {
|
|
2165
|
-
this.ruler = new
|
|
2165
|
+
this.ruler = new we();
|
|
2166
2166
|
for (let e = 0; e < zt.length; e++)
|
|
2167
2167
|
this.ruler.push(zt[e][0], zt[e][1]);
|
|
2168
2168
|
}
|
|
@@ -2188,7 +2188,7 @@ function $e(e, u, t, n) {
|
|
|
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
|
$e.prototype.push = function(e, u, t) {
|
|
2191
|
-
const n = new
|
|
2191
|
+
const n = new Pe(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
|
$e.prototype.isEmpty = function(u) {
|
|
@@ -2250,7 +2250,7 @@ $e.prototype.getLines = function(u, t, n, r) {
|
|
|
2250
2250
|
}
|
|
2251
2251
|
return o.join("");
|
|
2252
2252
|
};
|
|
2253
|
-
$e.prototype.Token =
|
|
2253
|
+
$e.prototype.Token = Pe;
|
|
2254
2254
|
const T0 = 65536;
|
|
2255
2255
|
function Bt(e, u) {
|
|
2256
2256
|
const t = e.bMarks[u] + e.tShift[u], n = e.eMarks[u];
|
|
@@ -2307,7 +2307,7 @@ function P0(e, u, t, n) {
|
|
|
2307
2307
|
return !0;
|
|
2308
2308
|
const _ = e.parentType;
|
|
2309
2309
|
e.parentType = "table";
|
|
2310
|
-
const
|
|
2310
|
+
const x = e.md.block.ruler.getRules("blockquote"), d = e.push("table_open", "table", 1), y = [u, 0];
|
|
2311
2311
|
d.map = y;
|
|
2312
2312
|
const A = e.push("thead_open", "thead", 1);
|
|
2313
2313
|
A.map = [u, u + 1];
|
|
@@ -2316,31 +2316,31 @@ function P0(e, u, t, n) {
|
|
|
2316
2316
|
for (let h = 0; h < s.length; h++) {
|
|
2317
2317
|
const b = e.push("th_open", "th", 1);
|
|
2318
2318
|
c[h] && (b.attrs = [["style", "text-align:" + c[h]]]);
|
|
2319
|
-
const
|
|
2320
|
-
|
|
2319
|
+
const k = e.push("inline", "", 0);
|
|
2320
|
+
k.content = s[h].trim(), k.children = [], e.push("th_close", "th", -1);
|
|
2321
2321
|
}
|
|
2322
2322
|
e.push("tr_close", "tr", -1), e.push("thead_close", "thead", -1);
|
|
2323
2323
|
let m, p = 0;
|
|
2324
2324
|
for (r = u + 2; r < t && !(e.sCount[r] < e.blkIndent); r++) {
|
|
2325
2325
|
let h = !1;
|
|
2326
|
-
for (let
|
|
2327
|
-
if (k
|
|
2326
|
+
for (let k = 0, w = x.length; k < w; k++)
|
|
2327
|
+
if (x[k](e, r, t, !0)) {
|
|
2328
2328
|
h = !0;
|
|
2329
2329
|
break;
|
|
2330
2330
|
}
|
|
2331
2331
|
if (h || (l = Bt(e, r).trim(), !l) || e.sCount[r] - e.blkIndent >= 4 || (s = sr(l), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), p += f - s.length, p > T0))
|
|
2332
2332
|
break;
|
|
2333
2333
|
if (r === u + 2) {
|
|
2334
|
-
const
|
|
2335
|
-
|
|
2334
|
+
const k = e.push("tbody_open", "tbody", 1);
|
|
2335
|
+
k.map = m = [u + 2, 0];
|
|
2336
2336
|
}
|
|
2337
2337
|
const b = e.push("tr_open", "tr", 1);
|
|
2338
2338
|
b.map = [r, r + 1];
|
|
2339
|
-
for (let
|
|
2339
|
+
for (let k = 0; k < f; k++) {
|
|
2340
2340
|
const w = e.push("td_open", "td", 1);
|
|
2341
|
-
c[
|
|
2341
|
+
c[k] && (w.attrs = [["style", "text-align:" + c[k]]]);
|
|
2342
2342
|
const P = e.push("inline", "", 0);
|
|
2343
|
-
P.content = s[
|
|
2343
|
+
P.content = s[k] ? s[k].trim() : "", P.children = [], e.push("td_close", "td", -1);
|
|
2344
2344
|
}
|
|
2345
2345
|
e.push("tr_close", "tr", -1);
|
|
2346
2346
|
}
|
|
@@ -2390,8 +2390,8 @@ function O0(e, u, t, n) {
|
|
|
2390
2390
|
break;
|
|
2391
2391
|
}
|
|
2392
2392
|
l = e.sCount[u], e.line = f + (_ ? 1 : 0);
|
|
2393
|
-
const
|
|
2394
|
-
return
|
|
2393
|
+
const x = e.push("fence", "code", 0);
|
|
2394
|
+
return x.info = c, x.content = e.getLines(u + 1, f, l, !0), x.markup = s, x.map = [u, e.line], !0;
|
|
2395
2395
|
}
|
|
2396
2396
|
function M0(e, u, t, n) {
|
|
2397
2397
|
let r = e.bMarks[u] + e.tShift[u], o = e.eMarks[u];
|
|
@@ -2402,30 +2402,30 @@ function M0(e, u, t, n) {
|
|
|
2402
2402
|
return !0;
|
|
2403
2403
|
const i = [], l = [], s = [], c = [], f = e.md.block.ruler.getRules("blockquote"), _ = e.parentType;
|
|
2404
2404
|
e.parentType = "blockquote";
|
|
2405
|
-
let
|
|
2405
|
+
let x = !1, d;
|
|
2406
2406
|
for (d = u; d < t; d++) {
|
|
2407
2407
|
const p = e.sCount[d] < e.blkIndent;
|
|
2408
2408
|
if (r = e.bMarks[d] + e.tShift[d], o = e.eMarks[d], r >= o)
|
|
2409
2409
|
break;
|
|
2410
2410
|
if (e.src.charCodeAt(r++) === 62 && !p) {
|
|
2411
|
-
let b = e.sCount[d] + 1,
|
|
2412
|
-
e.src.charCodeAt(r) === 32 ? (r++, b++, w = !1,
|
|
2411
|
+
let b = e.sCount[d] + 1, k, w;
|
|
2412
|
+
e.src.charCodeAt(r) === 32 ? (r++, b++, w = !1, k = !0) : e.src.charCodeAt(r) === 9 ? (k = !0, (e.bsCount[d] + b) % 4 === 3 ? (r++, b++, w = !1) : w = !0) : k = !1;
|
|
2413
2413
|
let P = b;
|
|
2414
2414
|
for (i.push(e.bMarks[d]), e.bMarks[d] = r; r < o; ) {
|
|
2415
|
-
const
|
|
2416
|
-
if (K(
|
|
2417
|
-
|
|
2415
|
+
const C = e.src.charCodeAt(r);
|
|
2416
|
+
if (K(C))
|
|
2417
|
+
C === 9 ? P += 4 - (P + e.bsCount[d] + (w ? 1 : 0)) % 4 : P++;
|
|
2418
2418
|
else
|
|
2419
2419
|
break;
|
|
2420
2420
|
r++;
|
|
2421
2421
|
}
|
|
2422
|
-
|
|
2422
|
+
x = r >= o, l.push(e.bsCount[d]), e.bsCount[d] = e.sCount[d] + 1 + (k ? 1 : 0), s.push(e.sCount[d]), e.sCount[d] = P - b, c.push(e.tShift[d]), e.tShift[d] = r - e.bMarks[d];
|
|
2423
2423
|
continue;
|
|
2424
2424
|
}
|
|
2425
|
-
if (
|
|
2425
|
+
if (x)
|
|
2426
2426
|
break;
|
|
2427
2427
|
let h = !1;
|
|
2428
|
-
for (let b = 0,
|
|
2428
|
+
for (let b = 0, k = f.length; b < k; b++)
|
|
2429
2429
|
if (f[b](e, d, t, !0)) {
|
|
2430
2430
|
h = !0;
|
|
2431
2431
|
break;
|
|
@@ -2517,26 +2517,26 @@ function $0(e, u, t, n) {
|
|
|
2517
2517
|
return !1;
|
|
2518
2518
|
let c = !1;
|
|
2519
2519
|
n && e.parentType === "paragraph" && e.sCount[l] >= e.blkIndent && (c = !0);
|
|
2520
|
-
let f, _,
|
|
2521
|
-
if ((
|
|
2522
|
-
if (f = !0, a = e.bMarks[l] + e.tShift[l], _ = Number(e.src.slice(a,
|
|
2523
|
-
} else if ((
|
|
2520
|
+
let f, _, x;
|
|
2521
|
+
if ((x = fr(e, l)) >= 0) {
|
|
2522
|
+
if (f = !0, a = e.bMarks[l] + e.tShift[l], _ = Number(e.src.slice(a, x - 1)), c && _ !== 1) return !1;
|
|
2523
|
+
} else if ((x = cr(e, l)) >= 0)
|
|
2524
2524
|
f = !1;
|
|
2525
2525
|
else
|
|
2526
2526
|
return !1;
|
|
2527
|
-
if (c && e.skipSpaces(
|
|
2527
|
+
if (c && e.skipSpaces(x) >= e.eMarks[l])
|
|
2528
2528
|
return !1;
|
|
2529
2529
|
if (n)
|
|
2530
2530
|
return !0;
|
|
2531
|
-
const d = e.src.charCodeAt(
|
|
2531
|
+
const d = e.src.charCodeAt(x - 1), y = e.tokens.length;
|
|
2532
2532
|
f ? (i = e.push("ordered_list_open", "ol", 1), _ !== 1 && (i.attrs = [["start", _]])) : i = e.push("bullet_list_open", "ul", 1);
|
|
2533
2533
|
const A = [l, 0];
|
|
2534
2534
|
i.map = A, i.markup = String.fromCharCode(d);
|
|
2535
2535
|
let E = !1;
|
|
2536
2536
|
const m = e.md.block.ruler.getRules("list"), p = e.parentType;
|
|
2537
2537
|
for (e.parentType = "list"; l < t; ) {
|
|
2538
|
-
o =
|
|
2539
|
-
const h = e.sCount[l] +
|
|
2538
|
+
o = x, r = e.eMarks[l];
|
|
2539
|
+
const h = e.sCount[l] + x - (e.bMarks[l] + e.tShift[l]);
|
|
2540
2540
|
let b = h;
|
|
2541
2541
|
for (; o < r; ) {
|
|
2542
2542
|
const q = e.src.charCodeAt(o);
|
|
@@ -2548,15 +2548,15 @@ function $0(e, u, t, n) {
|
|
|
2548
2548
|
break;
|
|
2549
2549
|
o++;
|
|
2550
2550
|
}
|
|
2551
|
-
const
|
|
2551
|
+
const k = o;
|
|
2552
2552
|
let w;
|
|
2553
|
-
|
|
2553
|
+
k >= r ? w = 1 : w = b - h, w > 4 && (w = 1);
|
|
2554
2554
|
const P = h + w;
|
|
2555
2555
|
i = e.push("list_item_open", "li", 1), i.markup = String.fromCharCode(d);
|
|
2556
|
-
const
|
|
2557
|
-
i.map =
|
|
2558
|
-
const B = e.tight, L = e.tShift[l],
|
|
2559
|
-
if (e.listIndent = e.blkIndent, e.blkIndent = P, e.tight = !0, e.tShift[l] =
|
|
2556
|
+
const C = [l, 0];
|
|
2557
|
+
i.map = C, f && (i.info = e.src.slice(a, x - 1));
|
|
2558
|
+
const B = e.tight, L = e.tShift[l], W = e.sCount[l], ie = e.listIndent;
|
|
2559
|
+
if (e.listIndent = e.blkIndent, e.blkIndent = P, e.tight = !0, e.tShift[l] = k - e.bMarks[l], e.sCount[l] = b, k >= 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 = ie, e.tShift[l] = L, e.sCount[l] = W, e.tight = B, i = e.push("list_item_close", "li", -1), i.markup = String.fromCharCode(d), l = e.line, C[1] = l, l >= t || e.sCount[l] < e.blkIndent || e.sCount[l] - e.blkIndent >= 4)
|
|
2560
2560
|
break;
|
|
2561
2561
|
let F = !1;
|
|
2562
2562
|
for (let q = 0, ee = m.length; q < ee; q++)
|
|
@@ -2567,12 +2567,12 @@ function $0(e, u, t, n) {
|
|
|
2567
2567
|
if (F)
|
|
2568
2568
|
break;
|
|
2569
2569
|
if (f) {
|
|
2570
|
-
if (
|
|
2570
|
+
if (x = fr(e, l), x < 0)
|
|
2571
2571
|
break;
|
|
2572
2572
|
a = e.bMarks[l] + e.tShift[l];
|
|
2573
|
-
} else if (
|
|
2573
|
+
} else if (x = cr(e, l), x < 0)
|
|
2574
2574
|
break;
|
|
2575
|
-
if (d !== e.src.charCodeAt(
|
|
2575
|
+
if (d !== e.src.charCodeAt(x - 1))
|
|
2576
2576
|
break;
|
|
2577
2577
|
}
|
|
2578
2578
|
return f ? i = e.push("ordered_list_close", "ol", -1) : i = e.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(d), A[1] = l, e.line = l, e.parentType = p, s && N0(e, y), !0;
|
|
@@ -2589,17 +2589,17 @@ function I0(e, u, t, n) {
|
|
|
2589
2589
|
if (e.sCount[m] - e.blkIndent > 3 && (h = !0), e.sCount[m] < 0 && (h = !0), !h) {
|
|
2590
2590
|
const w = e.md.block.ruler.getRules("reference"), P = e.parentType;
|
|
2591
2591
|
e.parentType = "reference";
|
|
2592
|
-
let
|
|
2592
|
+
let C = !1;
|
|
2593
2593
|
for (let B = 0, L = w.length; B < L; B++)
|
|
2594
2594
|
if (w[B](e, m, p, !0)) {
|
|
2595
|
-
|
|
2595
|
+
C = !0;
|
|
2596
2596
|
break;
|
|
2597
2597
|
}
|
|
2598
|
-
if (e.parentType = P,
|
|
2598
|
+
if (e.parentType = P, C)
|
|
2599
2599
|
return null;
|
|
2600
2600
|
}
|
|
2601
|
-
const b = e.bMarks[m] + e.tShift[m],
|
|
2602
|
-
return e.src.slice(b,
|
|
2601
|
+
const b = e.bMarks[m] + e.tShift[m], k = e.eMarks[m];
|
|
2602
|
+
return e.src.slice(b, k + 1);
|
|
2603
2603
|
}
|
|
2604
2604
|
let l = e.src.slice(r, o + 1);
|
|
2605
2605
|
o = l.length;
|
|
@@ -2635,7 +2635,7 @@ function I0(e, u, t, n) {
|
|
|
2635
2635
|
if (!e.md.validateLink(f))
|
|
2636
2636
|
return !1;
|
|
2637
2637
|
r = c.pos;
|
|
2638
|
-
const _ = r,
|
|
2638
|
+
const _ = r, x = a, d = r;
|
|
2639
2639
|
for (; r < o; r++) {
|
|
2640
2640
|
const m = l.charCodeAt(r);
|
|
2641
2641
|
if (m === 10) {
|
|
@@ -2650,14 +2650,14 @@ function I0(e, u, t, n) {
|
|
|
2650
2650
|
l += m, r = o, o = l.length, a++, y = e.md.helpers.parseLinkTitle(l, r, o, y);
|
|
2651
2651
|
}
|
|
2652
2652
|
let A;
|
|
2653
|
-
for (r < o && d !== r && y.ok ? (A = y.str, r = y.pos) : (A = "", r = _, a =
|
|
2653
|
+
for (r < o && d !== r && y.ok ? (A = y.str, r = y.pos) : (A = "", r = _, a = x); r < o; ) {
|
|
2654
2654
|
const m = l.charCodeAt(r);
|
|
2655
2655
|
if (!K(m))
|
|
2656
2656
|
break;
|
|
2657
2657
|
r++;
|
|
2658
2658
|
}
|
|
2659
2659
|
if (r < o && l.charCodeAt(r) !== 10 && A)
|
|
2660
|
-
for (A = "", r = _, a =
|
|
2660
|
+
for (A = "", r = _, a = x; r < o; ) {
|
|
2661
2661
|
const m = l.charCodeAt(r);
|
|
2662
2662
|
if (!K(m))
|
|
2663
2663
|
break;
|
|
@@ -2798,9 +2798,9 @@ function el(e, u, t) {
|
|
|
2798
2798
|
if (e.sCount[i] - e.blkIndent > 3)
|
|
2799
2799
|
continue;
|
|
2800
2800
|
if (e.sCount[i] >= e.blkIndent) {
|
|
2801
|
-
let
|
|
2801
|
+
let x = e.bMarks[i] + e.tShift[i];
|
|
2802
2802
|
const d = e.eMarks[i];
|
|
2803
|
-
if (
|
|
2803
|
+
if (x < d && (a = e.src.charCodeAt(x), (a === 45 || a === 61) && (x = e.skipChars(x, a), x = e.skipSpaces(x), x >= d))) {
|
|
2804
2804
|
o = a === 61 ? 1 : 2;
|
|
2805
2805
|
break;
|
|
2806
2806
|
}
|
|
@@ -2808,8 +2808,8 @@ function el(e, u, t) {
|
|
|
2808
2808
|
if (e.sCount[i] < 0)
|
|
2809
2809
|
continue;
|
|
2810
2810
|
let _ = !1;
|
|
2811
|
-
for (let
|
|
2812
|
-
if (n[
|
|
2811
|
+
for (let x = 0, d = n.length; x < d; x++)
|
|
2812
|
+
if (n[x](e, i, t, !0)) {
|
|
2813
2813
|
_ = !0;
|
|
2814
2814
|
break;
|
|
2815
2815
|
}
|
|
@@ -2865,7 +2865,7 @@ const et = [
|
|
|
2865
2865
|
["paragraph", ul]
|
|
2866
2866
|
];
|
|
2867
2867
|
function yt() {
|
|
2868
|
-
this.ruler = new
|
|
2868
|
+
this.ruler = new we();
|
|
2869
2869
|
for (let e = 0; e < et.length; e++)
|
|
2870
2870
|
this.ruler.push(et[e][0], et[e][1], { alt: (et[e][2] || []).slice() });
|
|
2871
2871
|
}
|
|
@@ -2900,12 +2900,12 @@ 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
|
-
const e = new
|
|
2903
|
+
const e = new Pe("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
|
-
const n = new
|
|
2908
|
+
const n = new Pe(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
|
};
|
|
@@ -2914,10 +2914,10 @@ Bu.prototype.scanDelims = function(e, u) {
|
|
|
2914
2914
|
let o = e;
|
|
2915
2915
|
for (; o < t && this.src.charCodeAt(o) === n; )
|
|
2916
2916
|
o++;
|
|
2917
|
-
const a = o - e, i = o < t ? this.src.charCodeAt(o) : 32, l = Nu(r) || Lu(String.fromCharCode(r)), s = Nu(i) || Lu(String.fromCharCode(i)), c = Mu(r), f = Mu(i), _ = !f && (!s || c || l),
|
|
2918
|
-
return { can_open: _ && (u || !
|
|
2917
|
+
const a = o - e, i = o < t ? this.src.charCodeAt(o) : 32, l = Nu(r) || Lu(String.fromCharCode(r)), s = Nu(i) || Lu(String.fromCharCode(i)), c = Mu(r), f = Mu(i), _ = !f && (!s || c || l), x = !c && (!l || f || s);
|
|
2918
|
+
return { can_open: _ && (u || !x || l), can_close: x && (u || !_ || s), length: a };
|
|
2919
2919
|
};
|
|
2920
|
-
Bu.prototype.Token =
|
|
2920
|
+
Bu.prototype.Token = Pe;
|
|
2921
2921
|
function tl(e) {
|
|
2922
2922
|
switch (e) {
|
|
2923
2923
|
case 10:
|
|
@@ -3163,10 +3163,10 @@ function pl(e, u) {
|
|
|
3163
3163
|
let t, n, r, o, a = "", i = "", l = e.pos, s = !0;
|
|
3164
3164
|
if (e.src.charCodeAt(e.pos) !== 91)
|
|
3165
3165
|
return !1;
|
|
3166
|
-
const c = e.pos, f = e.posMax, _ = e.pos + 1,
|
|
3167
|
-
if (
|
|
3166
|
+
const c = e.pos, f = e.posMax, _ = e.pos + 1, x = e.md.helpers.parseLinkLabel(e, e.pos, !0);
|
|
3167
|
+
if (x < 0)
|
|
3168
3168
|
return !1;
|
|
3169
|
-
let d =
|
|
3169
|
+
let d = x + 1;
|
|
3170
3170
|
if (d < f && e.src.charCodeAt(d) === 40) {
|
|
3171
3171
|
for (s = !1, d++; d < f && (t = e.src.charCodeAt(d), !(!K(t) && t !== 10)); d++)
|
|
3172
3172
|
;
|
|
@@ -3184,12 +3184,12 @@ function pl(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 ? (l = d + 1, d = e.md.helpers.parseLinkLabel(e, d), d >= 0 ? n = e.src.slice(l, d++) : d =
|
|
3187
|
+
if (d < f && e.src.charCodeAt(d) === 91 ? (l = d + 1, d = e.md.helpers.parseLinkLabel(e, d), d >= 0 ? n = e.src.slice(l, d++) : d = x + 1) : d = x + 1, n || (n = e.src.slice(_, x)), o = e.env.references[vt(n)], !o)
|
|
3188
3188
|
return e.pos = c, !1;
|
|
3189
3189
|
a = o.href, i = o.title;
|
|
3190
3190
|
}
|
|
3191
3191
|
if (!u) {
|
|
3192
|
-
e.pos = _, e.posMax =
|
|
3192
|
+
e.pos = _, e.posMax = x;
|
|
3193
3193
|
const y = e.push("link_open", "a", 1), A = [["href", a]];
|
|
3194
3194
|
y.attrs = A, i && A.push(["title", i]), e.linkLevel++, e.md.inline.tokenize(e), e.linkLevel--, e.push("link_close", "a", -1);
|
|
3195
3195
|
}
|
|
@@ -3200,7 +3200,7 @@ function hl(e, u) {
|
|
|
3200
3200
|
const f = e.pos, _ = e.posMax;
|
|
3201
3201
|
if (e.src.charCodeAt(e.pos) !== 33 || e.src.charCodeAt(e.pos + 1) !== 91)
|
|
3202
3202
|
return !1;
|
|
3203
|
-
const
|
|
3203
|
+
const x = e.pos + 2, d = e.md.helpers.parseLinkLabel(e, e.pos + 1, !1);
|
|
3204
3204
|
if (d < 0)
|
|
3205
3205
|
return !1;
|
|
3206
3206
|
if (o = d + 1, o < _ && e.src.charCodeAt(o) === 40) {
|
|
@@ -3221,12 +3221,12 @@ function hl(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(
|
|
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
|
c = a.href, l = a.title;
|
|
3227
3227
|
}
|
|
3228
3228
|
if (!u) {
|
|
3229
|
-
n = e.src.slice(
|
|
3229
|
+
n = e.src.slice(x, d);
|
|
3230
3230
|
const y = [];
|
|
3231
3231
|
e.md.inline.parse(
|
|
3232
3232
|
n,
|
|
@@ -3282,10 +3282,10 @@ function gl(e, u) {
|
|
|
3282
3282
|
}
|
|
3283
3283
|
return !1;
|
|
3284
3284
|
}
|
|
3285
|
-
function
|
|
3285
|
+
function kl(e) {
|
|
3286
3286
|
return /^<a[>\s]/i.test(e);
|
|
3287
3287
|
}
|
|
3288
|
-
function
|
|
3288
|
+
function xl(e) {
|
|
3289
3289
|
return /^<\/a\s*>/i.test(e);
|
|
3290
3290
|
}
|
|
3291
3291
|
function _l(e) {
|
|
@@ -3306,7 +3306,7 @@ function vl(e, u) {
|
|
|
3306
3306
|
return !1;
|
|
3307
3307
|
if (!u) {
|
|
3308
3308
|
const a = e.push("html_inline", "", 0);
|
|
3309
|
-
a.content = o[0],
|
|
3309
|
+
a.content = o[0], kl(a.content) && e.linkLevel++, xl(a.content) && e.linkLevel--;
|
|
3310
3310
|
}
|
|
3311
3311
|
return e.pos += o[0].length, !0;
|
|
3312
3312
|
}
|
|
@@ -3354,8 +3354,8 @@ function hr(e) {
|
|
|
3354
3354
|
if (f.marker === i.marker && f.open && f.end < 0) {
|
|
3355
3355
|
let _ = !1;
|
|
3356
3356
|
if ((f.close || i.open) && (f.length + i.length) % 3 === 0 && (f.length % 3 !== 0 || i.length % 3 !== 0) && (_ = !0), !_) {
|
|
3357
|
-
const
|
|
3358
|
-
o[a] = a - s +
|
|
3357
|
+
const x = s > 0 && !e[s - 1].open ? o[s - 1] + 1 : 0;
|
|
3358
|
+
o[a] = a - s + x, o[s] = x, i.open = !1, f.end = a, f.close = !1, c = -1, r = -2;
|
|
3359
3359
|
break;
|
|
3360
3360
|
}
|
|
3361
3361
|
}
|
|
@@ -3398,10 +3398,10 @@ const Ut = [
|
|
|
3398
3398
|
["fragments_join", Cl]
|
|
3399
3399
|
];
|
|
3400
3400
|
function Uu() {
|
|
3401
|
-
this.ruler = new
|
|
3401
|
+
this.ruler = new we();
|
|
3402
3402
|
for (let e = 0; e < Ut.length; e++)
|
|
3403
3403
|
this.ruler.push(Ut[e][0], Ut[e][1]);
|
|
3404
|
-
this.ruler2 = new
|
|
3404
|
+
this.ruler2 = new we();
|
|
3405
3405
|
for (let e = 0; e < qt.length; e++)
|
|
3406
3406
|
this.ruler2.push(qt[e][0], qt[e][1]);
|
|
3407
3407
|
}
|
|
@@ -3592,18 +3592,18 @@ function nn(e, u) {
|
|
|
3592
3592
|
const t = new Il(e, u);
|
|
3593
3593
|
return e.__compiled__[t.schema].normalize(t, e), t;
|
|
3594
3594
|
}
|
|
3595
|
-
function
|
|
3596
|
-
if (!(this instanceof
|
|
3597
|
-
return new
|
|
3595
|
+
function Ce(e, u) {
|
|
3596
|
+
if (!(this instanceof Ce))
|
|
3597
|
+
return new Ce(e, u);
|
|
3598
3598
|
u || Rl(e) && (u = e, e = {}), this.__opts__ = tn({}, io, u), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = tn({}, Ol, e), this.__compiled__ = {}, this.__tlds__ = Ll, this.__tlds_replaced__ = !1, this.re = {}, pt(this);
|
|
3599
3599
|
}
|
|
3600
|
-
|
|
3600
|
+
Ce.prototype.add = function(u, t) {
|
|
3601
3601
|
return this.__schemas__[u] = t, pt(this), this;
|
|
3602
3602
|
};
|
|
3603
|
-
|
|
3603
|
+
Ce.prototype.set = function(u) {
|
|
3604
3604
|
return this.__opts__ = tn(this.__opts__, u), this;
|
|
3605
3605
|
};
|
|
3606
|
-
|
|
3606
|
+
Ce.prototype.test = function(u) {
|
|
3607
3607
|
if (this.__text_cache__ = u, this.__index__ = -1, !u.length)
|
|
3608
3608
|
return !1;
|
|
3609
3609
|
let t, n, r, o, a, i, l, s, c;
|
|
@@ -3616,13 +3616,13 @@ we.prototype.test = function(u) {
|
|
|
3616
3616
|
}
|
|
3617
3617
|
return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (s = u.search(this.re.host_fuzzy_test), s >= 0 && (this.__index__ < 0 || s < this.__index__) && (n = u.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (a = n.index + n[1].length, (this.__index__ < 0 || a < this.__index__) && (this.__schema__ = "", this.__index__ = a, this.__last_index__ = n.index + n[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (c = u.indexOf("@"), c >= 0 && (r = u.match(this.re.email_fuzzy)) !== null && (a = r.index + r[1].length, i = r.index + r[0].length, (this.__index__ < 0 || a < this.__index__ || a === this.__index__ && i > this.__last_index__) && (this.__schema__ = "mailto:", this.__index__ = a, this.__last_index__ = i))), this.__index__ >= 0;
|
|
3618
3618
|
};
|
|
3619
|
-
|
|
3619
|
+
Ce.prototype.pretest = function(u) {
|
|
3620
3620
|
return this.re.pretest.test(u);
|
|
3621
3621
|
};
|
|
3622
|
-
|
|
3622
|
+
Ce.prototype.testSchemaAt = function(u, t, n) {
|
|
3623
3623
|
return this.__compiled__[t.toLowerCase()] ? this.__compiled__[t.toLowerCase()].validate(u, n, this) : 0;
|
|
3624
3624
|
};
|
|
3625
|
-
|
|
3625
|
+
Ce.prototype.match = function(u) {
|
|
3626
3626
|
const t = [];
|
|
3627
3627
|
let n = 0;
|
|
3628
3628
|
this.__index__ >= 0 && this.__text_cache__ === u && (t.push(nn(this, n)), n = this.__last_index__);
|
|
@@ -3631,28 +3631,28 @@ we.prototype.match = function(u) {
|
|
|
3631
3631
|
t.push(nn(this, n)), r = r.slice(this.__last_index__), n += this.__last_index__;
|
|
3632
3632
|
return t.length ? t : null;
|
|
3633
3633
|
};
|
|
3634
|
-
|
|
3634
|
+
Ce.prototype.matchAtStart = function(u) {
|
|
3635
3635
|
if (this.__text_cache__ = u, this.__index__ = -1, !u.length) return null;
|
|
3636
3636
|
const t = this.re.schema_at_start.exec(u);
|
|
3637
3637
|
if (!t) return null;
|
|
3638
3638
|
const n = this.testSchemaAt(u, t[2], t[0].length);
|
|
3639
3639
|
return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n, nn(this, 0)) : null;
|
|
3640
3640
|
};
|
|
3641
|
-
|
|
3641
|
+
Ce.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
3644
|
}).reverse(), pt(this), this) : (this.__tlds__ = u.slice(), this.__tlds_replaced__ = !0, pt(this), this);
|
|
3645
3645
|
};
|
|
3646
|
-
|
|
3646
|
+
Ce.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
|
+
Ce.prototype.onCompile = function() {
|
|
3650
3650
|
};
|
|
3651
|
-
const mu = 2147483647, Me = 36,
|
|
3651
|
+
const mu = 2147483647, Me = 36, kn = 1, $u = 26, zl = 38, Bl = 700, ao = 72, lo = 128, so = "-", Ul = /^xn--/, ql = /[^\0-\x7F]/, jl = /[\x2E\u3002\uFF0E\uFF61]/g, Hl = {
|
|
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
|
-
}, jt = Me -
|
|
3655
|
+
}, jt = Me - kn, Le = Math.floor, Ht = String.fromCharCode;
|
|
3656
3656
|
function We(e) {
|
|
3657
3657
|
throw new RangeError(Hl[e]);
|
|
3658
3658
|
}
|
|
@@ -3705,10 +3705,10 @@ const Wl = (e) => String.fromCodePoint(...e), Vl = function(e) {
|
|
|
3705
3705
|
i >= t && We("invalid-input");
|
|
3706
3706
|
const _ = Vl(e.charCodeAt(i++));
|
|
3707
3707
|
_ >= Me && We("invalid-input"), _ > Le((mu - n) / c) && We("overflow"), n += _ * c;
|
|
3708
|
-
const
|
|
3709
|
-
if (_ <
|
|
3708
|
+
const x = f <= o ? kn : f >= o + $u ? $u : f - o;
|
|
3709
|
+
if (_ < x)
|
|
3710
3710
|
break;
|
|
3711
|
-
const d = Me -
|
|
3711
|
+
const d = Me - x;
|
|
3712
3712
|
c > Le(mu / d) && We("overflow"), c *= d;
|
|
3713
3713
|
}
|
|
3714
3714
|
const s = u.length + 1;
|
|
@@ -3734,12 +3734,12 @@ const Wl = (e) => String.fromCodePoint(...e), Vl = function(e) {
|
|
|
3734
3734
|
if (c < n && ++r > mu && We("overflow"), c === n) {
|
|
3735
3735
|
let f = r;
|
|
3736
3736
|
for (let _ = Me; ; _ += Me) {
|
|
3737
|
-
const
|
|
3738
|
-
if (f <
|
|
3737
|
+
const x = _ <= o ? kn : _ >= o + $u ? $u : _ - o;
|
|
3738
|
+
if (f < x)
|
|
3739
3739
|
break;
|
|
3740
|
-
const d = f -
|
|
3740
|
+
const d = f - x, y = Me - x;
|
|
3741
3741
|
u.push(
|
|
3742
|
-
Ht(gr(
|
|
3742
|
+
Ht(gr(x + d % y, 0))
|
|
3743
3743
|
), f = Le(d / y);
|
|
3744
3744
|
}
|
|
3745
3745
|
u.push(Ht(gr(f, 0))), o = po(r, s, i === a), r = 0, ++i;
|
|
@@ -3970,15 +3970,15 @@ function rs(e) {
|
|
|
3970
3970
|
}
|
|
3971
3971
|
return gu(fn(u), gu.defaultChars + "%");
|
|
3972
3972
|
}
|
|
3973
|
-
function
|
|
3974
|
-
if (!(this instanceof
|
|
3975
|
-
return new
|
|
3976
|
-
u || hn(e) || (u = e || {}, e = "default"), this.inline = new Uu(), this.block = new yt(), this.core = new mn(), this.renderer = new _u(), this.linkify = new
|
|
3973
|
+
function Fe(e, u) {
|
|
3974
|
+
if (!(this instanceof Fe))
|
|
3975
|
+
return new Fe(e, u);
|
|
3976
|
+
u || hn(e) || (u = e || {}, e = "default"), this.inline = new Uu(), this.block = new yt(), this.core = new mn(), this.renderer = new _u(), this.linkify = new Ce(), this.validateLink = ts, this.normalizeLink = ns, this.normalizeLinkText = rs, this.utils = i0, this.helpers = _t({}, c0), this.options = {}, this.configure(e), u && this.set(u);
|
|
3977
3977
|
}
|
|
3978
|
-
|
|
3978
|
+
Fe.prototype.set = function(e) {
|
|
3979
3979
|
return _t(this.options, e), this;
|
|
3980
3980
|
};
|
|
3981
|
-
|
|
3981
|
+
Fe.prototype.configure = function(e) {
|
|
3982
3982
|
const u = this;
|
|
3983
3983
|
if (hn(e)) {
|
|
3984
3984
|
const t = e;
|
|
@@ -3991,7 +3991,7 @@ De.prototype.configure = function(e) {
|
|
|
3991
3991
|
e.components[t].rules && u[t].ruler.enableOnly(e.components[t].rules), e.components[t].rules2 && u[t].ruler2.enableOnly(e.components[t].rules2);
|
|
3992
3992
|
}), this;
|
|
3993
3993
|
};
|
|
3994
|
-
|
|
3994
|
+
Fe.prototype.enable = function(e, u) {
|
|
3995
3995
|
let t = [];
|
|
3996
3996
|
Array.isArray(e) || (e = [e]), ["core", "block", "inline"].forEach(function(r) {
|
|
3997
3997
|
t = t.concat(this[r].ruler.enable(e, !0));
|
|
@@ -4003,7 +4003,7 @@ De.prototype.enable = function(e, u) {
|
|
|
4003
4003
|
throw new Error("MarkdownIt. Failed to enable unknown rule(s): " + n);
|
|
4004
4004
|
return this;
|
|
4005
4005
|
};
|
|
4006
|
-
|
|
4006
|
+
Fe.prototype.disable = function(e, u) {
|
|
4007
4007
|
let t = [];
|
|
4008
4008
|
Array.isArray(e) || (e = [e]), ["core", "block", "inline"].forEach(function(r) {
|
|
4009
4009
|
t = t.concat(this[r].ruler.disable(e, !0));
|
|
@@ -4015,38 +4015,38 @@ De.prototype.disable = function(e, u) {
|
|
|
4015
4015
|
throw new Error("MarkdownIt. Failed to disable unknown rule(s): " + n);
|
|
4016
4016
|
return this;
|
|
4017
4017
|
};
|
|
4018
|
-
|
|
4018
|
+
Fe.prototype.use = function(e) {
|
|
4019
4019
|
const u = [this].concat(Array.prototype.slice.call(arguments, 1));
|
|
4020
4020
|
return e.apply(e, u), this;
|
|
4021
4021
|
};
|
|
4022
|
-
|
|
4022
|
+
Fe.prototype.parse = function(e, u) {
|
|
4023
4023
|
if (typeof e != "string")
|
|
4024
4024
|
throw new Error("Input data should be a String");
|
|
4025
4025
|
const t = new this.core.State(e, this, u);
|
|
4026
4026
|
return this.core.process(t), t.tokens;
|
|
4027
4027
|
};
|
|
4028
|
-
|
|
4028
|
+
Fe.prototype.render = function(e, u) {
|
|
4029
4029
|
return u = u || {}, this.renderer.render(this.parse(e, u), this.options, u);
|
|
4030
4030
|
};
|
|
4031
|
-
|
|
4031
|
+
Fe.prototype.parseInline = function(e, u) {
|
|
4032
4032
|
const t = new this.core.State(e, this, u);
|
|
4033
4033
|
return t.inlineMode = !0, this.core.process(t), t.tokens;
|
|
4034
4034
|
};
|
|
4035
|
-
|
|
4035
|
+
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 os(e, u) {
|
|
4039
4039
|
const { manual: t = !1, domPurify: n = !0, ...r } = u ?? {}, o = G(Kt(e) ? Ke(e.value) : Mo(e) ? Ke(e) : e);
|
|
4040
|
-
Kt(e) &&
|
|
4040
|
+
Kt(e) && Te(() => {
|
|
4041
4041
|
o.value = Ke(e.value);
|
|
4042
4042
|
});
|
|
4043
|
-
const a = G(""), i = G(), l =
|
|
4043
|
+
const a = G(""), i = G(), l = Fe({ ...r });
|
|
4044
4044
|
function s(c) {
|
|
4045
4045
|
const f = l.render(c);
|
|
4046
|
-
if (a.value = n ?
|
|
4046
|
+
if (a.value = n ? xa.sanitize(f) : f, i.value) i.value.innerHTML = a.value;
|
|
4047
4047
|
else {
|
|
4048
|
-
const _ = Qe(i, (
|
|
4049
|
-
|
|
4048
|
+
const _ = Qe(i, (x) => {
|
|
4049
|
+
x && (x.innerHTML = a.value, _());
|
|
4050
4050
|
});
|
|
4051
4051
|
}
|
|
4052
4052
|
return a.value;
|
|
@@ -4064,17 +4064,17 @@ function os(e, u) {
|
|
|
4064
4064
|
function is(e, u) {
|
|
4065
4065
|
const { step: t = 1, interval: n = 50, enabled: r = !0 } = u ?? {}, o = G(0), a = G(!1), i = G(!1), l = G(!1), s = oe(() => r ? e.value.slice(0, o.value) : e.value), c = oe(() => Number(Math.min(o.value / e.value.length * 100, 100).toFixed(2)));
|
|
4066
4066
|
let f = null;
|
|
4067
|
-
const _ = rt(),
|
|
4068
|
-
Qe(e, (b,
|
|
4069
|
-
if (!
|
|
4067
|
+
const _ = rt(), x = rt(), d = rt();
|
|
4068
|
+
Qe(e, (b, k) => {
|
|
4069
|
+
if (!k) {
|
|
4070
4070
|
o.value = 0, y();
|
|
4071
4071
|
return;
|
|
4072
4072
|
}
|
|
4073
|
-
b.startsWith(
|
|
4073
|
+
b.startsWith(k) || (o.value = 0), y();
|
|
4074
4074
|
}, { immediate: !0 });
|
|
4075
4075
|
function y() {
|
|
4076
4076
|
if (f && clearTimeout(f), !r) {
|
|
4077
|
-
o.value = e.value.length, i.value = !0, l.value = !1, a.value = !1,
|
|
4077
|
+
o.value = e.value.length, i.value = !0, l.value = !1, a.value = !1, x.trigger(s.value);
|
|
4078
4078
|
return;
|
|
4079
4079
|
}
|
|
4080
4080
|
l.value = !0, a.value = !1, i.value = !1, _.trigger();
|
|
@@ -4083,7 +4083,7 @@ function is(e, u) {
|
|
|
4083
4083
|
index: o.value,
|
|
4084
4084
|
value: s.value
|
|
4085
4085
|
}), o.value >= e.value.length) {
|
|
4086
|
-
o.value = e.value.length, i.value = !0, l.value = !1,
|
|
4086
|
+
o.value = e.value.length, i.value = !0, l.value = !1, x.trigger(s.value);
|
|
4087
4087
|
return;
|
|
4088
4088
|
}
|
|
4089
4089
|
f = setTimeout(b, n);
|
|
@@ -4102,7 +4102,7 @@ function is(e, u) {
|
|
|
4102
4102
|
});
|
|
4103
4103
|
}
|
|
4104
4104
|
function p() {
|
|
4105
|
-
f && clearTimeout(f), l.value = !1, a.value = !1, i.value = !0, o.value = e.value.length,
|
|
4105
|
+
f && clearTimeout(f), l.value = !1, a.value = !1, i.value = !0, o.value = e.value.length, x.trigger(s.value);
|
|
4106
4106
|
}
|
|
4107
4107
|
function h() {
|
|
4108
4108
|
f && clearTimeout(f), f = null, l.value = !1, a.value = !1, i.value = !1, o.value = 0;
|
|
@@ -4121,17 +4121,17 @@ function is(e, u) {
|
|
|
4121
4121
|
stop: p,
|
|
4122
4122
|
destroy: h,
|
|
4123
4123
|
onStat: _.on,
|
|
4124
|
-
onStop:
|
|
4124
|
+
onStop: x.on,
|
|
4125
4125
|
onUpdate: d.on
|
|
4126
4126
|
};
|
|
4127
4127
|
}
|
|
4128
|
-
var
|
|
4128
|
+
var kr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4129
4129
|
function as(e) {
|
|
4130
4130
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4131
4131
|
}
|
|
4132
|
-
var Gt = { exports: {} },
|
|
4132
|
+
var Gt = { exports: {} }, xr;
|
|
4133
4133
|
function ls() {
|
|
4134
|
-
return
|
|
4134
|
+
return xr || (xr = 1, function(e) {
|
|
4135
4135
|
var u = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
|
|
4136
4136
|
/**
|
|
4137
4137
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
@@ -4240,13 +4240,13 @@ function ls() {
|
|
|
4240
4240
|
*/
|
|
4241
4241
|
clone: function m(p, h) {
|
|
4242
4242
|
h = h || {};
|
|
4243
|
-
var b,
|
|
4243
|
+
var b, k;
|
|
4244
4244
|
switch (i.util.type(p)) {
|
|
4245
4245
|
case "Object":
|
|
4246
|
-
if (
|
|
4247
|
-
return h[
|
|
4246
|
+
if (k = i.util.objId(p), h[k])
|
|
4247
|
+
return h[k];
|
|
4248
4248
|
b = /** @type {Record<string, any>} */
|
|
4249
|
-
{}, h[
|
|
4249
|
+
{}, h[k] = b;
|
|
4250
4250
|
for (var w in p)
|
|
4251
4251
|
p.hasOwnProperty(w) && (b[w] = m(p[w], h));
|
|
4252
4252
|
return (
|
|
@@ -4254,10 +4254,10 @@ function ls() {
|
|
|
4254
4254
|
b
|
|
4255
4255
|
);
|
|
4256
4256
|
case "Array":
|
|
4257
|
-
return
|
|
4257
|
+
return k = i.util.objId(p), h[k] ? h[k] : (b = [], h[k] = b, /** @type {Array} */
|
|
4258
4258
|
/** @type {any} */
|
|
4259
|
-
p.forEach(function(P,
|
|
4260
|
-
b[
|
|
4259
|
+
p.forEach(function(P, C) {
|
|
4260
|
+
b[C] = m(P, h);
|
|
4261
4261
|
}), /** @type {any} */
|
|
4262
4262
|
b);
|
|
4263
4263
|
default:
|
|
@@ -4340,10 +4340,10 @@ function ls() {
|
|
|
4340
4340
|
*/
|
|
4341
4341
|
isActive: function(m, p, h) {
|
|
4342
4342
|
for (var b = "no-" + p; m; ) {
|
|
4343
|
-
var
|
|
4344
|
-
if (
|
|
4343
|
+
var k = m.classList;
|
|
4344
|
+
if (k.contains(p))
|
|
4345
4345
|
return !0;
|
|
4346
|
-
if (
|
|
4346
|
+
if (k.contains(b))
|
|
4347
4347
|
return !1;
|
|
4348
4348
|
m = m.parentElement;
|
|
4349
4349
|
}
|
|
@@ -4477,28 +4477,28 @@ function ls() {
|
|
|
4477
4477
|
insertBefore: function(m, p, h, b) {
|
|
4478
4478
|
b = b || /** @type {any} */
|
|
4479
4479
|
i.languages;
|
|
4480
|
-
var
|
|
4481
|
-
for (var P in
|
|
4482
|
-
if (
|
|
4480
|
+
var k = b[m], w = {};
|
|
4481
|
+
for (var P in k)
|
|
4482
|
+
if (k.hasOwnProperty(P)) {
|
|
4483
4483
|
if (P == p)
|
|
4484
|
-
for (var
|
|
4485
|
-
h.hasOwnProperty(
|
|
4486
|
-
h.hasOwnProperty(P) || (w[P] =
|
|
4484
|
+
for (var C in h)
|
|
4485
|
+
h.hasOwnProperty(C) && (w[C] = h[C]);
|
|
4486
|
+
h.hasOwnProperty(P) || (w[P] = k[P]);
|
|
4487
4487
|
}
|
|
4488
4488
|
var B = b[m];
|
|
4489
|
-
return b[m] = w, i.languages.DFS(i.languages, function(L,
|
|
4490
|
-
|
|
4489
|
+
return b[m] = w, i.languages.DFS(i.languages, function(L, W) {
|
|
4490
|
+
W === B && L != m && (this[L] = w);
|
|
4491
4491
|
}), w;
|
|
4492
4492
|
},
|
|
4493
4493
|
// Traverse a language definition with Depth First Search
|
|
4494
|
-
DFS: function m(p, h, b,
|
|
4495
|
-
|
|
4494
|
+
DFS: function m(p, h, b, k) {
|
|
4495
|
+
k = k || {};
|
|
4496
4496
|
var w = i.util.objId;
|
|
4497
4497
|
for (var P in p)
|
|
4498
4498
|
if (p.hasOwnProperty(P)) {
|
|
4499
4499
|
h.call(p, P, p[P], b || P);
|
|
4500
|
-
var
|
|
4501
|
-
B === "Object" && !
|
|
4500
|
+
var C = p[P], B = i.util.type(C);
|
|
4501
|
+
B === "Object" && !k[w(C)] ? (k[w(C)] = !0, m(C, h, null, k)) : B === "Array" && !k[w(C)] && (k[w(C)] = !0, m(C, h, P, k));
|
|
4502
4502
|
}
|
|
4503
4503
|
}
|
|
4504
4504
|
},
|
|
@@ -4540,7 +4540,7 @@ function ls() {
|
|
|
4540
4540
|
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
|
|
4541
4541
|
};
|
|
4542
4542
|
i.hooks.run("before-highlightall", b), b.elements = Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)), i.hooks.run("before-all-elements-highlight", b);
|
|
4543
|
-
for (var
|
|
4543
|
+
for (var k = 0, w; w = b.elements[k++]; )
|
|
4544
4544
|
i.highlightElement(w, p === !0, b.callback);
|
|
4545
4545
|
},
|
|
4546
4546
|
/**
|
|
@@ -4572,38 +4572,38 @@ function ls() {
|
|
|
4572
4572
|
* @public
|
|
4573
4573
|
*/
|
|
4574
4574
|
highlightElement: function(m, p, h) {
|
|
4575
|
-
var b = i.util.getLanguage(m),
|
|
4575
|
+
var b = i.util.getLanguage(m), k = i.languages[b];
|
|
4576
4576
|
i.util.setLanguage(m, b);
|
|
4577
4577
|
var w = m.parentElement;
|
|
4578
4578
|
w && w.nodeName.toLowerCase() === "pre" && i.util.setLanguage(w, b);
|
|
4579
|
-
var P = m.textContent,
|
|
4579
|
+
var P = m.textContent, C = {
|
|
4580
4580
|
element: m,
|
|
4581
4581
|
language: b,
|
|
4582
|
-
grammar:
|
|
4582
|
+
grammar: k,
|
|
4583
4583
|
code: P
|
|
4584
4584
|
};
|
|
4585
|
-
function B(
|
|
4586
|
-
|
|
4585
|
+
function B(W) {
|
|
4586
|
+
C.highlightedCode = W, i.hooks.run("before-insert", C), C.element.innerHTML = C.highlightedCode, i.hooks.run("after-highlight", C), i.hooks.run("complete", C), h && h.call(C.element);
|
|
4587
4587
|
}
|
|
4588
|
-
if (i.hooks.run("before-sanity-check",
|
|
4589
|
-
i.hooks.run("complete",
|
|
4588
|
+
if (i.hooks.run("before-sanity-check", C), w = C.element.parentElement, w && w.nodeName.toLowerCase() === "pre" && !w.hasAttribute("tabindex") && w.setAttribute("tabindex", "0"), !C.code) {
|
|
4589
|
+
i.hooks.run("complete", C), h && h.call(C.element);
|
|
4590
4590
|
return;
|
|
4591
4591
|
}
|
|
4592
|
-
if (i.hooks.run("before-highlight",
|
|
4593
|
-
B(i.util.encode(
|
|
4592
|
+
if (i.hooks.run("before-highlight", C), !C.grammar) {
|
|
4593
|
+
B(i.util.encode(C.code));
|
|
4594
4594
|
return;
|
|
4595
4595
|
}
|
|
4596
4596
|
if (p && n.Worker) {
|
|
4597
4597
|
var L = new Worker(i.filename);
|
|
4598
|
-
L.onmessage = function(
|
|
4599
|
-
B(
|
|
4598
|
+
L.onmessage = function(W) {
|
|
4599
|
+
B(W.data);
|
|
4600
4600
|
}, L.postMessage(JSON.stringify({
|
|
4601
|
-
language:
|
|
4602
|
-
code:
|
|
4601
|
+
language: C.language,
|
|
4602
|
+
code: C.code,
|
|
4603
4603
|
immediateClose: !0
|
|
4604
4604
|
}));
|
|
4605
4605
|
} else
|
|
4606
|
-
B(i.highlight(
|
|
4606
|
+
B(i.highlight(C.code, C.grammar, C.language));
|
|
4607
4607
|
},
|
|
4608
4608
|
/**
|
|
4609
4609
|
* Low-level function, only use if you know what you’re doing. It accepts a string of text as input
|
|
@@ -4666,8 +4666,8 @@ function ls() {
|
|
|
4666
4666
|
p[b] = h[b];
|
|
4667
4667
|
delete p.rest;
|
|
4668
4668
|
}
|
|
4669
|
-
var
|
|
4670
|
-
return _(
|
|
4669
|
+
var k = new f();
|
|
4670
|
+
return _(k, k.head, m), c(m, k, p, k.head, 0), d(k);
|
|
4671
4671
|
},
|
|
4672
4672
|
/**
|
|
4673
4673
|
* @namespace
|
|
@@ -4704,8 +4704,8 @@ function ls() {
|
|
|
4704
4704
|
run: function(m, p) {
|
|
4705
4705
|
var h = i.hooks.all[m];
|
|
4706
4706
|
if (!(!h || !h.length))
|
|
4707
|
-
for (var b = 0,
|
|
4708
|
-
|
|
4707
|
+
for (var b = 0, k; k = h[b++]; )
|
|
4708
|
+
k(p);
|
|
4709
4709
|
}
|
|
4710
4710
|
},
|
|
4711
4711
|
Token: l
|
|
@@ -4723,7 +4723,7 @@ function ls() {
|
|
|
4723
4723
|
b += m(B, h);
|
|
4724
4724
|
}), b;
|
|
4725
4725
|
}
|
|
4726
|
-
var
|
|
4726
|
+
var k = {
|
|
4727
4727
|
type: p.type,
|
|
4728
4728
|
content: m(p.content, h),
|
|
4729
4729
|
tag: "span",
|
|
@@ -4731,64 +4731,64 @@ function ls() {
|
|
|
4731
4731
|
attributes: {},
|
|
4732
4732
|
language: h
|
|
4733
4733
|
}, w = p.alias;
|
|
4734
|
-
w && (Array.isArray(w) ? Array.prototype.push.apply(
|
|
4734
|
+
w && (Array.isArray(w) ? Array.prototype.push.apply(k.classes, w) : k.classes.push(w)), i.hooks.run("wrap", k);
|
|
4735
4735
|
var P = "";
|
|
4736
|
-
for (var
|
|
4737
|
-
P += " " +
|
|
4738
|
-
return "<" +
|
|
4736
|
+
for (var C in k.attributes)
|
|
4737
|
+
P += " " + C + '="' + (k.attributes[C] || "").replace(/"/g, """) + '"';
|
|
4738
|
+
return "<" + k.tag + ' class="' + k.classes.join(" ") + '"' + P + ">" + k.content + "</" + k.tag + ">";
|
|
4739
4739
|
};
|
|
4740
4740
|
function s(m, p, h, b) {
|
|
4741
4741
|
m.lastIndex = p;
|
|
4742
|
-
var
|
|
4743
|
-
if (
|
|
4744
|
-
var w =
|
|
4745
|
-
|
|
4742
|
+
var k = m.exec(h);
|
|
4743
|
+
if (k && b && k[1]) {
|
|
4744
|
+
var w = k[1].length;
|
|
4745
|
+
k.index += w, k[0] = k[0].slice(w);
|
|
4746
4746
|
}
|
|
4747
|
-
return
|
|
4747
|
+
return k;
|
|
4748
4748
|
}
|
|
4749
|
-
function c(m, p, h, b,
|
|
4749
|
+
function c(m, p, h, b, k, w) {
|
|
4750
4750
|
for (var P in h)
|
|
4751
4751
|
if (!(!h.hasOwnProperty(P) || !h[P])) {
|
|
4752
|
-
var
|
|
4753
|
-
|
|
4754
|
-
for (var B = 0; B <
|
|
4752
|
+
var C = h[P];
|
|
4753
|
+
C = Array.isArray(C) ? C : [C];
|
|
4754
|
+
for (var B = 0; B < C.length; ++B) {
|
|
4755
4755
|
if (w && w.cause == P + "," + B)
|
|
4756
4756
|
return;
|
|
4757
|
-
var L =
|
|
4757
|
+
var L = C[B], W = L.inside, ie = !!L.lookbehind, F = !!L.greedy, q = L.alias;
|
|
4758
4758
|
if (F && !L.pattern.global) {
|
|
4759
4759
|
var ee = L.pattern.toString().match(/[imsuy]*$/)[0];
|
|
4760
4760
|
L.pattern = RegExp(L.pattern.source, ee + "g");
|
|
4761
4761
|
}
|
|
4762
|
-
for (var
|
|
4763
|
-
var Q =
|
|
4762
|
+
for (var D = L.pattern || L, N = b.next, T = k; N !== p.tail && !(w && T >= w.reach); T += N.value.length, N = N.next) {
|
|
4763
|
+
var Q = N.value;
|
|
4764
4764
|
if (p.length > m.length)
|
|
4765
4765
|
return;
|
|
4766
4766
|
if (!(Q instanceof l)) {
|
|
4767
|
-
var
|
|
4767
|
+
var $ = 1, H;
|
|
4768
4768
|
if (F) {
|
|
4769
|
-
if (H = s(
|
|
4769
|
+
if (H = s(D, T, m, ie), !H || H.index >= m.length)
|
|
4770
4770
|
break;
|
|
4771
|
-
var
|
|
4772
|
-
for (te +=
|
|
4773
|
-
|
|
4774
|
-
if (te -=
|
|
4771
|
+
var _e = H.index, X = H.index + H[0].length, te = T;
|
|
4772
|
+
for (te += N.value.length; _e >= te; )
|
|
4773
|
+
N = N.next, te += N.value.length;
|
|
4774
|
+
if (te -= N.value.length, T = te, N.value instanceof l)
|
|
4775
4775
|
continue;
|
|
4776
|
-
for (var
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
} else if (H = s(
|
|
4776
|
+
for (var V = N; V !== p.tail && (te < X || typeof V.value == "string"); V = V.next)
|
|
4777
|
+
$++, te += V.value.length;
|
|
4778
|
+
$--, Q = m.slice(T, te), H.index -= T;
|
|
4779
|
+
} else if (H = s(D, 0, Q, ie), !H)
|
|
4780
4780
|
continue;
|
|
4781
|
-
var
|
|
4781
|
+
var _e = H.index, je = H[0], iu = Q.slice(0, _e), au = Q.slice(_e + je.length), lu = T + Q.length;
|
|
4782
4782
|
w && lu > w.reach && (w.reach = lu);
|
|
4783
|
-
var tu =
|
|
4784
|
-
iu && (tu = _(p, tu, iu), T += iu.length),
|
|
4785
|
-
var He = new l(P,
|
|
4786
|
-
if (
|
|
4783
|
+
var tu = N.prev;
|
|
4784
|
+
iu && (tu = _(p, tu, iu), T += iu.length), x(p, tu, $);
|
|
4785
|
+
var He = new l(P, W ? i.tokenize(je, W) : je, q, je);
|
|
4786
|
+
if (N = _(p, tu, He), au && _(p, N, au), $ > 1) {
|
|
4787
4787
|
var Ge = {
|
|
4788
4788
|
cause: P + "," + B,
|
|
4789
4789
|
reach: lu
|
|
4790
4790
|
};
|
|
4791
|
-
c(m, p, h,
|
|
4791
|
+
c(m, p, h, N.prev, T, Ge), w && Ge.reach > w.reach && (w.reach = Ge.reach);
|
|
4792
4792
|
}
|
|
4793
4793
|
}
|
|
4794
4794
|
}
|
|
@@ -4800,13 +4800,13 @@ function ls() {
|
|
|
4800
4800
|
m.next = p, this.head = m, this.tail = p, this.length = 0;
|
|
4801
4801
|
}
|
|
4802
4802
|
function _(m, p, h) {
|
|
4803
|
-
var b = p.next,
|
|
4804
|
-
return p.next =
|
|
4803
|
+
var b = p.next, k = { value: h, prev: p, next: b };
|
|
4804
|
+
return p.next = k, b.prev = k, m.length++, k;
|
|
4805
4805
|
}
|
|
4806
|
-
function
|
|
4807
|
-
for (var b = p.next,
|
|
4806
|
+
function x(m, p, h) {
|
|
4807
|
+
for (var b = p.next, k = 0; k < h && b !== m.tail; k++)
|
|
4808
4808
|
b = b.next;
|
|
4809
|
-
p.next = b, b.prev = p, m.length -=
|
|
4809
|
+
p.next = b, b.prev = p, m.length -= k;
|
|
4810
4810
|
}
|
|
4811
4811
|
function d(m) {
|
|
4812
4812
|
for (var p = [], h = m.head.next; h !== m.tail; )
|
|
@@ -4815,8 +4815,8 @@ function ls() {
|
|
|
4815
4815
|
}
|
|
4816
4816
|
if (!n.document)
|
|
4817
4817
|
return n.addEventListener && (i.disableWorkerMessageHandler || n.addEventListener("message", function(m) {
|
|
4818
|
-
var p = JSON.parse(m.data), h = p.language, b = p.code,
|
|
4819
|
-
n.postMessage(i.highlight(b, i.languages[h], h)),
|
|
4818
|
+
var p = JSON.parse(m.data), h = p.language, b = p.code, k = p.immediateClose;
|
|
4819
|
+
n.postMessage(i.highlight(b, i.languages[h], h)), k && n.close();
|
|
4820
4820
|
}, !1)), i;
|
|
4821
4821
|
var y = i.util.currentScript();
|
|
4822
4822
|
y && (i.filename = y.src, y.hasAttribute("data-manual") && (i.manual = !0));
|
|
@@ -4829,7 +4829,7 @@ function ls() {
|
|
|
4829
4829
|
}
|
|
4830
4830
|
return i;
|
|
4831
4831
|
}(u);
|
|
4832
|
-
e.exports && (e.exports = t), typeof
|
|
4832
|
+
e.exports && (e.exports = t), typeof kr < "u" && (kr.Prism = t), t.languages.markup = {
|
|
4833
4833
|
comment: {
|
|
4834
4834
|
pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
|
|
4835
4835
|
greedy: !0
|
|
@@ -5226,7 +5226,7 @@ function ls() {
|
|
|
5226
5226
|
m.readyState == 4 && (m.status < 400 && m.responseText ? A(m.responseText) : m.status >= 400 ? E(r(m.status, m.statusText)) : E(o));
|
|
5227
5227
|
}, m.send(null);
|
|
5228
5228
|
}
|
|
5229
|
-
function
|
|
5229
|
+
function x(y) {
|
|
5230
5230
|
var A = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(y || "");
|
|
5231
5231
|
if (A) {
|
|
5232
5232
|
var E = Number(A[1]), m = A[2], p = A[3];
|
|
@@ -5253,18 +5253,18 @@ function ls() {
|
|
|
5253
5253
|
var b = t.plugins.autoloader;
|
|
5254
5254
|
b && b.loadLanguages(p), _(
|
|
5255
5255
|
m,
|
|
5256
|
-
function(
|
|
5256
|
+
function(k) {
|
|
5257
5257
|
A.setAttribute(i, s);
|
|
5258
|
-
var w =
|
|
5258
|
+
var w = x(A.getAttribute("data-range"));
|
|
5259
5259
|
if (w) {
|
|
5260
|
-
var P =
|
|
5261
|
-
|
|
5262
|
-
`), A.hasAttribute("data-start") || A.setAttribute("data-start", String(
|
|
5260
|
+
var P = k.split(/\r\n?|\n/g), C = w[0], B = w[1] == null ? P.length : w[1];
|
|
5261
|
+
C < 0 && (C += P.length), C = Math.max(0, Math.min(C - 1, P.length)), B < 0 && (B += P.length), B = Math.max(0, Math.min(B, P.length)), k = P.slice(C, B).join(`
|
|
5262
|
+
`), A.hasAttribute("data-start") || A.setAttribute("data-start", String(C + 1));
|
|
5263
5263
|
}
|
|
5264
|
-
E.textContent =
|
|
5264
|
+
E.textContent = k, t.highlightElement(E);
|
|
5265
5265
|
},
|
|
5266
|
-
function(
|
|
5267
|
-
A.setAttribute(i, c), E.textContent =
|
|
5266
|
+
function(k) {
|
|
5267
|
+
A.setAttribute(i, c), E.textContent = k;
|
|
5268
5268
|
}
|
|
5269
5269
|
);
|
|
5270
5270
|
}
|
|
@@ -5307,7 +5307,7 @@ const fs = `
|
|
|
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
|
`, ds = `
|
|
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: Wt, cB: _r, cE: Vt } = { ...
|
|
5310
|
+
`, { c: Wt, cB: _r, cE: Vt } = { ...kt, ...xt }, ut = `${Iu}-type-writer`;
|
|
5311
5311
|
function ps() {
|
|
5312
5312
|
return Wt([
|
|
5313
5313
|
_r("type-writer", {
|
|
@@ -5379,7 +5379,7 @@ const hs = ["innerHTML"], bs = /* @__PURE__ */ me({
|
|
|
5379
5379
|
_: 1
|
|
5380
5380
|
}, 8, ["class"]));
|
|
5381
5381
|
}
|
|
5382
|
-
}), { c: ms, cB: gs, cE:
|
|
5382
|
+
}), { c: ms, cB: gs, cE: ks, cM: xs } = { ...kt, ...xt }, Zt = `${Iu}-bubble`;
|
|
5383
5383
|
function _s() {
|
|
5384
5384
|
return ms([
|
|
5385
5385
|
gs("bubble", {
|
|
@@ -5387,10 +5387,10 @@ function _s() {
|
|
|
5387
5387
|
gap: "10px",
|
|
5388
5388
|
fontSize: "var(--n-font-size);"
|
|
5389
5389
|
}, [
|
|
5390
|
-
|
|
5390
|
+
xs("reverse", {
|
|
5391
5391
|
flexDirection: "row-reverse"
|
|
5392
5392
|
}),
|
|
5393
|
-
|
|
5393
|
+
ks("content", {
|
|
5394
5394
|
backgroundColor: "var(--tag-color)",
|
|
5395
5395
|
padding: "10px",
|
|
5396
5396
|
borderRadius: "var(--border-radius)",
|
|
@@ -5420,7 +5420,7 @@ const Kc = /* @__PURE__ */ me({
|
|
|
5420
5420
|
}, {
|
|
5421
5421
|
default: O(() => [
|
|
5422
5422
|
U(n.$slots, "avatar", {}, () => [
|
|
5423
|
-
n.avatar ? (R(), z(v(jo),
|
|
5423
|
+
n.avatar ? (R(), z(v(jo), Y({
|
|
5424
5424
|
key: 0,
|
|
5425
5425
|
round: ""
|
|
5426
5426
|
}, n.avatar.props), {
|
|
@@ -5430,19 +5430,19 @@ const Kc = /* @__PURE__ */ me({
|
|
|
5430
5430
|
_: 1
|
|
5431
5431
|
}, 16)) : ue("", !0)
|
|
5432
5432
|
]),
|
|
5433
|
-
|
|
5433
|
+
Z(v(Oe), { vertical: "" }, {
|
|
5434
5434
|
default: O(() => [
|
|
5435
5435
|
U(n.$slots, "header"),
|
|
5436
|
-
|
|
5436
|
+
Z(v(Br), null, {
|
|
5437
5437
|
default: O(() => [
|
|
5438
5438
|
n.loading ? U(n.$slots, "loading", { key: 0 }, () => [
|
|
5439
|
-
|
|
5439
|
+
Z(v(Pr), { style: { height: "44px" } })
|
|
5440
5440
|
]) : U(n.$slots, "default", { key: 1 }, () => [
|
|
5441
5441
|
uu("div", {
|
|
5442
5442
|
class: Ru([`${v(Zt)}__content`, n.contentClass]),
|
|
5443
5443
|
style: rn(n.contentStyle)
|
|
5444
5444
|
}, [
|
|
5445
|
-
|
|
5445
|
+
Z(v(bs), {
|
|
5446
5446
|
typing: n.typing,
|
|
5447
5447
|
markdown: n.markdown,
|
|
5448
5448
|
value: n.content,
|
|
@@ -5461,7 +5461,7 @@ const Kc = /* @__PURE__ */ me({
|
|
|
5461
5461
|
_: 3
|
|
5462
5462
|
}, 8, ["class"]));
|
|
5463
5463
|
}
|
|
5464
|
-
}), { c: vs, cB: ys } = { ...
|
|
5464
|
+
}), { c: vs, cB: ys } = { ...kt, ...xt }, tt = `${Iu}-full-loading`;
|
|
5465
5465
|
function Es() {
|
|
5466
5466
|
return vs([
|
|
5467
5467
|
ys("full-loading", {
|
|
@@ -5495,7 +5495,7 @@ const As = /* @__PURE__ */ me({
|
|
|
5495
5495
|
setup(e) {
|
|
5496
5496
|
gt(tt, Es());
|
|
5497
5497
|
const u = G("auto");
|
|
5498
|
-
return
|
|
5498
|
+
return Te(() => {
|
|
5499
5499
|
if (e.disableScroll) {
|
|
5500
5500
|
const t = e.scrollSelector instanceof HTMLElement ? e.scrollSelector : document.querySelector(e.scrollSelector);
|
|
5501
5501
|
t && (e.show && (u.value = t.style.overflow), t.style.overflow = e.show ? "hidden" : u.value);
|
|
@@ -5509,7 +5509,7 @@ const As = /* @__PURE__ */ me({
|
|
|
5509
5509
|
style: rn(typeof t.mask == "object" ? t.mask : {})
|
|
5510
5510
|
}, {
|
|
5511
5511
|
default: O(() => [
|
|
5512
|
-
|
|
5512
|
+
Z(v(Pr), fe(qe(t.spinProps)), Tr({ _: 2 }, [
|
|
5513
5513
|
t.$slots.description ? {
|
|
5514
5514
|
name: "description",
|
|
5515
5515
|
fn: O(() => [
|
|
@@ -5569,18 +5569,18 @@ const As = /* @__PURE__ */ me({
|
|
|
5569
5569
|
});
|
|
5570
5570
|
return (r, o) => (R(), z(v(Ho), fe(qe(r.configProviderProps)), {
|
|
5571
5571
|
default: O(() => [
|
|
5572
|
-
|
|
5572
|
+
Z(v(Go), fe(qe(r.loadingBarProps)), {
|
|
5573
5573
|
default: O(() => [
|
|
5574
|
-
|
|
5574
|
+
Z(v(Wo), fe(qe(r.dialogProviderProps)), {
|
|
5575
5575
|
default: O(() => [
|
|
5576
|
-
|
|
5576
|
+
Z(v(Vo), fe(qe(r.modalProviderProps)), {
|
|
5577
5577
|
default: O(() => [
|
|
5578
|
-
|
|
5578
|
+
Z(v(Zo), fe(qe(r.notificationProviderProps)), {
|
|
5579
5579
|
default: O(() => [
|
|
5580
|
-
|
|
5580
|
+
Z(v(Yo), fe(qe(r.messageProviderProps)), {
|
|
5581
5581
|
default: O(() => [
|
|
5582
5582
|
U(r.$slots, "default"),
|
|
5583
|
-
|
|
5583
|
+
Z(v(n))
|
|
5584
5584
|
]),
|
|
5585
5585
|
_: 3
|
|
5586
5586
|
}, 16)
|
|
@@ -5597,12 +5597,12 @@ const As = /* @__PURE__ */ me({
|
|
|
5597
5597
|
_: 3
|
|
5598
5598
|
}, 16),
|
|
5599
5599
|
r.globalStyle ? (R(), z(v(Xo), { key: 0 })) : ue("", !0),
|
|
5600
|
-
|
|
5600
|
+
Z(v(As), Y({ show: u.value }, r.fullLoadingProps), null, 16, ["show"])
|
|
5601
5601
|
]),
|
|
5602
5602
|
_: 3
|
|
5603
5603
|
}, 16));
|
|
5604
5604
|
}
|
|
5605
|
-
}),
|
|
5605
|
+
}), xn = (e, u) => {
|
|
5606
5606
|
const t = e.__vccOpts || e;
|
|
5607
5607
|
for (const [n, r] of u)
|
|
5608
5608
|
t[n] = r;
|
|
@@ -5623,7 +5623,7 @@ function Ds(e, u, t, n, r, o) {
|
|
|
5623
5623
|
}, null, -1)
|
|
5624
5624
|
]));
|
|
5625
5625
|
}
|
|
5626
|
-
const Fs = /* @__PURE__ */
|
|
5626
|
+
const Fs = /* @__PURE__ */ xn(ws, [["render", Ds]]), Jc = /* @__PURE__ */ me({
|
|
5627
5627
|
__name: "CopyButton",
|
|
5628
5628
|
props: {
|
|
5629
5629
|
value: {},
|
|
@@ -5650,13 +5650,13 @@ const Fs = /* @__PURE__ */ kn(ws, [["render", Ds]]), Jc = /* @__PURE__ */ me({
|
|
|
5650
5650
|
onClick: o
|
|
5651
5651
|
}, [
|
|
5652
5652
|
U(a.$slots, "default", {}, () => [
|
|
5653
|
-
|
|
5653
|
+
Z(v(Je), Y({
|
|
5654
5654
|
quaternary: "",
|
|
5655
5655
|
size: "tiny"
|
|
5656
5656
|
}, a.buttonProps), {
|
|
5657
5657
|
icon: O(() => [
|
|
5658
5658
|
U(a.$slots, "icon", {}, () => [
|
|
5659
|
-
|
|
5659
|
+
Z(Fs)
|
|
5660
5660
|
])
|
|
5661
5661
|
]),
|
|
5662
5662
|
_: 3
|
|
@@ -5666,15 +5666,15 @@ const Fs = /* @__PURE__ */ kn(ws, [["render", Ds]]), Jc = /* @__PURE__ */ me({
|
|
|
5666
5666
|
]),
|
|
5667
5667
|
default: O(() => [
|
|
5668
5668
|
U(a.$slots, "tooltip", {}, () => [
|
|
5669
|
-
|
|
5669
|
+
xu(ou(v(n) ? "复制成功" : "复制"), 1)
|
|
5670
5670
|
])
|
|
5671
5671
|
]),
|
|
5672
5672
|
_: 3
|
|
5673
5673
|
}, 16));
|
|
5674
5674
|
}
|
|
5675
|
-
}),
|
|
5675
|
+
}), ko = (e, { manual: u, ready: t = !0, refreshDeps: n = [], refreshDepsAction: r }) => {
|
|
5676
5676
|
const o = G(!1);
|
|
5677
|
-
return
|
|
5677
|
+
return Te(() => {
|
|
5678
5678
|
!u && e.options.refreshDeps !== !0 && (o.value = v(t));
|
|
5679
5679
|
}), n instanceof Array ? Qe(
|
|
5680
5680
|
[o, ...n],
|
|
@@ -5697,7 +5697,7 @@ const Fs = /* @__PURE__ */ kn(ws, [["render", Ds]]), Jc = /* @__PURE__ */ me({
|
|
|
5697
5697
|
}
|
|
5698
5698
|
};
|
|
5699
5699
|
};
|
|
5700
|
-
|
|
5700
|
+
ko.onInit = ({ ready: e = !0, manual: u }) => ({
|
|
5701
5701
|
loading: !u && v(e)
|
|
5702
5702
|
});
|
|
5703
5703
|
const at = /* @__PURE__ */ new Map(), Ss = (e, u, t) => {
|
|
@@ -5732,7 +5732,7 @@ const at = /* @__PURE__ */ new Map(), Ss = (e, u, t) => {
|
|
|
5732
5732
|
const a = G(), i = G(), l = (c, f) => {
|
|
5733
5733
|
r ? r(f) : Ss(c, t, f), Ms(c, f.data);
|
|
5734
5734
|
}, s = (c, f = []) => o ? o(f) : Ts(c);
|
|
5735
|
-
return
|
|
5735
|
+
return Te(() => {
|
|
5736
5736
|
if (!u)
|
|
5737
5737
|
return;
|
|
5738
5738
|
const c = s(u);
|
|
@@ -5764,8 +5764,8 @@ const at = /* @__PURE__ */ new Map(), Ss = (e, u, t) => {
|
|
|
5764
5764
|
data: c,
|
|
5765
5765
|
params: f,
|
|
5766
5766
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
5767
|
-
}), a.value = Yt(u, (
|
|
5768
|
-
e.setState({ data:
|
|
5767
|
+
}), a.value = Yt(u, (x) => {
|
|
5768
|
+
e.setState({ data: x });
|
|
5769
5769
|
}));
|
|
5770
5770
|
},
|
|
5771
5771
|
onMutate: (c) => {
|
|
@@ -5784,8 +5784,8 @@ function ht(e) {
|
|
|
5784
5784
|
var u = typeof e;
|
|
5785
5785
|
return e != null && (u == "object" || u == "function");
|
|
5786
5786
|
}
|
|
5787
|
-
var Ns = typeof global == "object" && global && global.Object === Object && global, $s = typeof self == "object" && self && self.Object === Object && self,
|
|
5788
|
-
return
|
|
5787
|
+
var Ns = typeof global == "object" && global && global.Object === Object && global, $s = typeof self == "object" && self && self.Object === Object && self, xo = Ns || $s || Function("return this")(), Xt = function() {
|
|
5788
|
+
return xo.Date.now();
|
|
5789
5789
|
}, Is = /\s/;
|
|
5790
5790
|
function zs(e) {
|
|
5791
5791
|
for (var u = e.length; u-- && Is.test(e.charAt(u)); )
|
|
@@ -5796,7 +5796,7 @@ var Bs = /^\s+/;
|
|
|
5796
5796
|
function Us(e) {
|
|
5797
5797
|
return e && e.slice(0, zs(e) + 1).replace(Bs, "");
|
|
5798
5798
|
}
|
|
5799
|
-
var bt =
|
|
5799
|
+
var bt = xo.Symbol, _o = Object.prototype, qs = _o.hasOwnProperty, js = _o.toString, Su = bt ? bt.toStringTag : void 0;
|
|
5800
5800
|
function Hs(e) {
|
|
5801
5801
|
var u = qs.call(e, Su), t = e[Su];
|
|
5802
5802
|
try {
|
|
@@ -5844,29 +5844,29 @@ function vo(e, u, t) {
|
|
|
5844
5844
|
if (typeof e != "function")
|
|
5845
5845
|
throw new TypeError(rc);
|
|
5846
5846
|
u = Er(u) || 0, ht(t) && (c = !!t.leading, f = "maxWait" in t, o = f ? oc(Er(t.maxWait) || 0, u) : o, _ = "trailing" in t ? !!t.trailing : _);
|
|
5847
|
-
function k
|
|
5847
|
+
function x(k) {
|
|
5848
5848
|
var w = n, P = r;
|
|
5849
|
-
return n = r = void 0, s =
|
|
5849
|
+
return n = r = void 0, s = k, a = e.apply(P, w), a;
|
|
5850
5850
|
}
|
|
5851
|
-
function d(
|
|
5852
|
-
return s =
|
|
5851
|
+
function d(k) {
|
|
5852
|
+
return s = k, i = setTimeout(E, u), c ? x(k) : a;
|
|
5853
5853
|
}
|
|
5854
|
-
function y(
|
|
5855
|
-
var w =
|
|
5856
|
-
return f ? ic(
|
|
5854
|
+
function y(k) {
|
|
5855
|
+
var w = k - l, P = k - s, C = u - w;
|
|
5856
|
+
return f ? ic(C, o - P) : C;
|
|
5857
5857
|
}
|
|
5858
|
-
function A(
|
|
5859
|
-
var w =
|
|
5858
|
+
function A(k) {
|
|
5859
|
+
var w = k - l, P = k - s;
|
|
5860
5860
|
return l === void 0 || w >= u || w < 0 || f && P >= o;
|
|
5861
5861
|
}
|
|
5862
5862
|
function E() {
|
|
5863
|
-
var
|
|
5864
|
-
if (A(
|
|
5865
|
-
return m(
|
|
5866
|
-
i = setTimeout(E, y(
|
|
5863
|
+
var k = Xt();
|
|
5864
|
+
if (A(k))
|
|
5865
|
+
return m(k);
|
|
5866
|
+
i = setTimeout(E, y(k));
|
|
5867
5867
|
}
|
|
5868
|
-
function m(
|
|
5869
|
-
return i = void 0, _ && n ? k
|
|
5868
|
+
function m(k) {
|
|
5869
|
+
return i = void 0, _ && n ? x(k) : (n = r = void 0, a);
|
|
5870
5870
|
}
|
|
5871
5871
|
function p() {
|
|
5872
5872
|
i !== void 0 && clearTimeout(i), s = 0, n = l = r = i = void 0;
|
|
@@ -5875,12 +5875,12 @@ function vo(e, u, t) {
|
|
|
5875
5875
|
return i === void 0 ? a : m(Xt());
|
|
5876
5876
|
}
|
|
5877
5877
|
function b() {
|
|
5878
|
-
var
|
|
5879
|
-
if (n = arguments, r = this, l =
|
|
5878
|
+
var k = Xt(), w = A(k);
|
|
5879
|
+
if (n = arguments, r = this, l = k, w) {
|
|
5880
5880
|
if (i === void 0)
|
|
5881
5881
|
return d(l);
|
|
5882
5882
|
if (f)
|
|
5883
|
-
return clearTimeout(i), i = setTimeout(E, u),
|
|
5883
|
+
return clearTimeout(i), i = setTimeout(E, u), x(l);
|
|
5884
5884
|
}
|
|
5885
5885
|
return i === void 0 && (i = setTimeout(E, u)), a;
|
|
5886
5886
|
}
|
|
@@ -5891,7 +5891,7 @@ const ac = (e, { debounceWait: u, debounceLeading: t, debounceTrailing: n, debou
|
|
|
5891
5891
|
const i = {}, l = v(t), s = v(n), c = v(r);
|
|
5892
5892
|
return l !== void 0 && (i.leading = l), s !== void 0 && (i.trailing = s), c !== void 0 && (i.maxWait = c), i;
|
|
5893
5893
|
});
|
|
5894
|
-
return
|
|
5894
|
+
return Te((i) => {
|
|
5895
5895
|
if (v(u)) {
|
|
5896
5896
|
const l = e.runAsync.bind(e);
|
|
5897
5897
|
o.value = vo(
|
|
@@ -5977,11 +5977,11 @@ class bc {
|
|
|
5977
5977
|
return this.requestInstances;
|
|
5978
5978
|
}
|
|
5979
5979
|
}
|
|
5980
|
-
const
|
|
5980
|
+
const ye = new bc(), mc = (e, { ready: u = !0, debugKey: t, ...n }) => {
|
|
5981
5981
|
const r = () => {
|
|
5982
|
-
if (t && !
|
|
5982
|
+
if (t && !ye.has(t)) {
|
|
5983
5983
|
const a = e.serviceRef.value.toString().includes("function") ? fc(e.serviceRef.value.toString()) : dc(e.serviceRef.value.toString());
|
|
5984
|
-
|
|
5984
|
+
ye.insert(t, {
|
|
5985
5985
|
instance: e,
|
|
5986
5986
|
requestName: a,
|
|
5987
5987
|
time: Date.now()
|
|
@@ -5992,15 +5992,15 @@ const ve = new bc(), mc = (e, { ready: u = !0, debugKey: t, ...n }) => {
|
|
|
5992
5992
|
Object.entries({ ready: u, ...n }).map(([a, i]) => [a, v(i)])
|
|
5993
5993
|
)
|
|
5994
5994
|
);
|
|
5995
|
-
return
|
|
5996
|
-
t &&
|
|
5995
|
+
return Te(() => {
|
|
5996
|
+
t && ye.has(t) && ye.emit({
|
|
5997
5997
|
...e,
|
|
5998
5998
|
options: { ...e.options, ...o.value }
|
|
5999
5999
|
});
|
|
6000
6000
|
}), {
|
|
6001
6001
|
name: "devtoolsPlugin",
|
|
6002
6002
|
onBefore: (a) => {
|
|
6003
|
-
r(), t &&
|
|
6003
|
+
r(), t && ye.has(t) && ye.emit({
|
|
6004
6004
|
...e.state,
|
|
6005
6005
|
key: t,
|
|
6006
6006
|
params: a,
|
|
@@ -6010,7 +6010,7 @@ const ve = new bc(), mc = (e, { ready: u = !0, debugKey: t, ...n }) => {
|
|
|
6010
6010
|
});
|
|
6011
6011
|
},
|
|
6012
6012
|
onSuccess(a, i) {
|
|
6013
|
-
r(), t &&
|
|
6013
|
+
r(), t && ye.has(t) && ye.emit({
|
|
6014
6014
|
...e.state,
|
|
6015
6015
|
key: t,
|
|
6016
6016
|
data: a,
|
|
@@ -6021,7 +6021,7 @@ const ve = new bc(), mc = (e, { ready: u = !0, debugKey: t, ...n }) => {
|
|
|
6021
6021
|
});
|
|
6022
6022
|
},
|
|
6023
6023
|
onCancel() {
|
|
6024
|
-
r(), t &&
|
|
6024
|
+
r(), t && ye.has(t) && ye.emit({
|
|
6025
6025
|
...e.state,
|
|
6026
6026
|
key: t,
|
|
6027
6027
|
loading: !1,
|
|
@@ -6030,7 +6030,7 @@ const ve = new bc(), mc = (e, { ready: u = !0, debugKey: t, ...n }) => {
|
|
|
6030
6030
|
});
|
|
6031
6031
|
},
|
|
6032
6032
|
onError(a, i) {
|
|
6033
|
-
r(), t &&
|
|
6033
|
+
r(), t && ye.has(t) && ye.emit({
|
|
6034
6034
|
...e.state,
|
|
6035
6035
|
key: t,
|
|
6036
6036
|
params: i,
|
|
@@ -6041,7 +6041,7 @@ const ve = new bc(), mc = (e, { ready: u = !0, debugKey: t, ...n }) => {
|
|
|
6041
6041
|
});
|
|
6042
6042
|
},
|
|
6043
6043
|
onMutate(a) {
|
|
6044
|
-
r(), t &&
|
|
6044
|
+
r(), t && ye.has(t) && ye.emit({
|
|
6045
6045
|
...e.state,
|
|
6046
6046
|
key: t,
|
|
6047
6047
|
data: a,
|
|
@@ -6076,12 +6076,12 @@ const ve = new bc(), mc = (e, { ready: u = !0, debugKey: t, ...n }) => {
|
|
|
6076
6076
|
function _n() {
|
|
6077
6077
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
6078
6078
|
}
|
|
6079
|
-
const
|
|
6079
|
+
const kc = !!(typeof window < "u" && window.document && window.document.createElement);
|
|
6080
6080
|
function vn() {
|
|
6081
6081
|
return _n() ? document.visibilityState !== "hidden" : !0;
|
|
6082
6082
|
}
|
|
6083
6083
|
const Tu = [];
|
|
6084
|
-
function
|
|
6084
|
+
function xc(e) {
|
|
6085
6085
|
return Tu.push(e), function() {
|
|
6086
6086
|
const t = Tu.indexOf(e);
|
|
6087
6087
|
Tu.splice(t, 1);
|
|
@@ -6103,7 +6103,7 @@ const _c = (e, { pollingInterval: u, pollingWhenHidden: t = !0, pollingErrorRetr
|
|
|
6103
6103
|
var l;
|
|
6104
6104
|
r && clearTimeout(r), (l = o.value) == null || l.call(o);
|
|
6105
6105
|
};
|
|
6106
|
-
return
|
|
6106
|
+
return Te(() => {
|
|
6107
6107
|
v(u) || i();
|
|
6108
6108
|
}), v(u) ? {
|
|
6109
6109
|
name: "pollingPlugin",
|
|
@@ -6118,7 +6118,7 @@ const _c = (e, { pollingInterval: u, pollingWhenHidden: t = !0, pollingErrorRetr
|
|
|
6118
6118
|
},
|
|
6119
6119
|
onFinally: () => {
|
|
6120
6120
|
n === -1 || n !== -1 && a.value <= n ? r = setTimeout(() => {
|
|
6121
|
-
!t && !vn() ? o.value =
|
|
6121
|
+
!t && !vn() ? o.value = xc(() => {
|
|
6122
6122
|
e.refresh();
|
|
6123
6123
|
}) : e.refresh();
|
|
6124
6124
|
}, v(u)) : a.value = 0;
|
|
@@ -6146,7 +6146,7 @@ function Ec(e) {
|
|
|
6146
6146
|
t > -1 && Pu.splice(t, 1);
|
|
6147
6147
|
};
|
|
6148
6148
|
}
|
|
6149
|
-
if (
|
|
6149
|
+
if (kc) {
|
|
6150
6150
|
const e = () => {
|
|
6151
6151
|
if (!(!vn() || !yc()))
|
|
6152
6152
|
for (let u = 0; u < Pu.length; u++) {
|
|
@@ -6161,7 +6161,7 @@ const Ac = (e, { refreshOnWindowFocus: u, focusTimespan: t = 5e3 }) => {
|
|
|
6161
6161
|
var o;
|
|
6162
6162
|
(o = n.value) == null || o.call(n);
|
|
6163
6163
|
};
|
|
6164
|
-
return
|
|
6164
|
+
return Te((o) => {
|
|
6165
6165
|
if (v(u)) {
|
|
6166
6166
|
const a = vc(
|
|
6167
6167
|
e.refresh.bind(e),
|
|
@@ -6223,16 +6223,16 @@ const Fc = (e, { throttleWait: u, throttleLeading: t, throttleTrailing: n }) =>
|
|
|
6223
6223
|
return Qe([l, o], (s) => {
|
|
6224
6224
|
r && (r.cancel(), e.runAsync = a);
|
|
6225
6225
|
const [c, f] = s, _ = Dc(
|
|
6226
|
-
(
|
|
6227
|
-
|
|
6226
|
+
(x) => {
|
|
6227
|
+
x();
|
|
6228
6228
|
},
|
|
6229
6229
|
v(c),
|
|
6230
6230
|
f
|
|
6231
6231
|
);
|
|
6232
|
-
r = _, i.value = _, e.runAsync = (...
|
|
6232
|
+
r = _, i.value = _, e.runAsync = (...x) => new Promise((d, y) => {
|
|
6233
6233
|
var A;
|
|
6234
6234
|
(A = i.value) == null || A.call(i, () => {
|
|
6235
|
-
a(...
|
|
6235
|
+
a(...x).then(d).catch(y);
|
|
6236
6236
|
});
|
|
6237
6237
|
});
|
|
6238
6238
|
}, {
|
|
@@ -6289,7 +6289,7 @@ class Rc {
|
|
|
6289
6289
|
async runAsync(...u) {
|
|
6290
6290
|
var t, n, r, o, a, i, l, s, c, f, _;
|
|
6291
6291
|
this.count += 1;
|
|
6292
|
-
const
|
|
6292
|
+
const x = this.count, { stopNow: d = !1, returnNow: y = !1, ...A } = this.runPluginHandler(
|
|
6293
6293
|
"onBefore",
|
|
6294
6294
|
u
|
|
6295
6295
|
);
|
|
@@ -6314,24 +6314,24 @@ class Rc {
|
|
|
6314
6314
|
try {
|
|
6315
6315
|
let { servicePromise: E } = this.runPluginHandler("onRequest", this.serviceRef.value, u);
|
|
6316
6316
|
const m = (h) => {
|
|
6317
|
-
var b,
|
|
6318
|
-
if (!this.options.concurrent &&
|
|
6317
|
+
var b, k, w, P;
|
|
6318
|
+
if (!this.options.concurrent && x !== this.count)
|
|
6319
6319
|
return new Promise(() => {
|
|
6320
6320
|
});
|
|
6321
|
-
const
|
|
6321
|
+
const C = this.options.formatResult ? this.options.formatResult(h) : h, B = {
|
|
6322
6322
|
data: h
|
|
6323
6323
|
};
|
|
6324
6324
|
return this.setState({
|
|
6325
|
-
data:
|
|
6325
|
+
data: C,
|
|
6326
6326
|
error: void 0,
|
|
6327
6327
|
loading: !1
|
|
6328
|
-
}), (
|
|
6328
|
+
}), (k = (b = this.options).onSuccess) == null || k.call(b, C, u), this.runPluginHandler("onSuccess", C, u, B), this.previousValidData = C, (P = (w = this.options).onFinally) == null || P.call(w, u, C, void 0), (this.options.concurrent || x === this.count) && this.runPluginHandler("onFinally", u, C, void 0), C;
|
|
6329
6329
|
};
|
|
6330
6330
|
E || (E = this.serviceRef.value(...u));
|
|
6331
6331
|
const p = await E;
|
|
6332
6332
|
return m(p);
|
|
6333
6333
|
} catch (E) {
|
|
6334
|
-
if (!this.options.concurrent &&
|
|
6334
|
+
if (!this.options.concurrent && x !== this.count)
|
|
6335
6335
|
return new Promise(() => {
|
|
6336
6336
|
});
|
|
6337
6337
|
throw this.setState({
|
|
@@ -6339,7 +6339,7 @@ class Rc {
|
|
|
6339
6339
|
loading: !1
|
|
6340
6340
|
}), (i = (a = this.options).onError) == null || i.call(a, E, u), this.runPluginHandler("onError", E, u), (Cr((l = this.options) == null ? void 0 : l.rollbackOnError) && ((s = this.options) != null && s.rollbackOnError(u)) || Sc((c = this.options) == null ? void 0 : c.rollbackOnError) && this.options.rollbackOnError) && this.setState({
|
|
6341
6341
|
data: this.previousValidData
|
|
6342
|
-
}), (_ = (f = this.options).onFinally) == null || _.call(f, u, void 0, E), (this.options.concurrent ||
|
|
6342
|
+
}), (_ = (f = this.options).onFinally) == null || _.call(f, u, void 0, E), (this.options.concurrent || x === this.count) && this.runPluginHandler("onFinally", u, void 0, E), E;
|
|
6343
6343
|
}
|
|
6344
6344
|
}
|
|
6345
6345
|
run(...u) {
|
|
@@ -6393,33 +6393,33 @@ function Lc(e, u = {}, t = []) {
|
|
|
6393
6393
|
}, _ = t.map((y) => {
|
|
6394
6394
|
var A;
|
|
6395
6395
|
return (A = y?.onInit) == null ? void 0 : A.call(y, l);
|
|
6396
|
-
}).filter(Boolean),
|
|
6396
|
+
}).filter(Boolean), x = new Rc(
|
|
6397
6397
|
s,
|
|
6398
6398
|
l,
|
|
6399
6399
|
f,
|
|
6400
6400
|
Object.assign({}, ..._, c)
|
|
6401
6401
|
);
|
|
6402
|
-
|
|
6402
|
+
x.options = l, x.pluginImpls = t.map((y) => y(x, l));
|
|
6403
6403
|
const d = oe(() => Kt(a) ? a.value : a);
|
|
6404
|
-
if (
|
|
6404
|
+
if (Te(() => {
|
|
6405
6405
|
if (!o) {
|
|
6406
|
-
const y =
|
|
6407
|
-
d.value &&
|
|
6406
|
+
const y = x.state.params || u.defaultParams || [];
|
|
6407
|
+
d.value && x.options.refreshDeps === !0 && s.value && x.run(...y);
|
|
6408
6408
|
}
|
|
6409
|
-
}), !o &&
|
|
6410
|
-
const y =
|
|
6411
|
-
v(a) &&
|
|
6409
|
+
}), !o && x.options.refreshDeps !== !0) {
|
|
6410
|
+
const y = x.state.params || u.defaultParams || [];
|
|
6411
|
+
v(a) && x.run(...y);
|
|
6412
6412
|
}
|
|
6413
6413
|
return on(() => {
|
|
6414
|
-
|
|
6414
|
+
x.cancel();
|
|
6415
6415
|
}), {
|
|
6416
6416
|
...Io(c),
|
|
6417
|
-
cancel:
|
|
6418
|
-
refresh:
|
|
6419
|
-
refreshAsync:
|
|
6420
|
-
run:
|
|
6421
|
-
runAsync:
|
|
6422
|
-
mutate:
|
|
6417
|
+
cancel: x.cancel.bind(x),
|
|
6418
|
+
refresh: x.refresh.bind(x),
|
|
6419
|
+
refreshAsync: x.refreshAsync.bind(x),
|
|
6420
|
+
run: x.run.bind(x),
|
|
6421
|
+
runAsync: x.runAsync.bind(x),
|
|
6422
|
+
mutate: x.mutate.bind(x)
|
|
6423
6423
|
};
|
|
6424
6424
|
}
|
|
6425
6425
|
const Nc = (e, u) => function(n, r = {}, o = []) {
|
|
@@ -6438,7 +6438,7 @@ function yn(e, u, t) {
|
|
|
6438
6438
|
_c,
|
|
6439
6439
|
Ac,
|
|
6440
6440
|
Fc,
|
|
6441
|
-
|
|
6441
|
+
ko,
|
|
6442
6442
|
Ls,
|
|
6443
6443
|
wc
|
|
6444
6444
|
]) == null ? void 0 : n.filter(Boolean);
|
|
@@ -6476,7 +6476,7 @@ function zc(e, u, t, n, r, o) {
|
|
|
6476
6476
|
}, null, -1)
|
|
6477
6477
|
]));
|
|
6478
6478
|
}
|
|
6479
|
-
const Dr = /* @__PURE__ */
|
|
6479
|
+
const Dr = /* @__PURE__ */ xn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
|
|
6480
6480
|
__name: "SearchInput",
|
|
6481
6481
|
props: {
|
|
6482
6482
|
value: {},
|
|
@@ -6492,7 +6492,7 @@ const Dr = /* @__PURE__ */ kn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
|
|
|
6492
6492
|
setup(e, { emit: u }) {
|
|
6493
6493
|
const t = u, n = mt("input-ref"), r = G(e.value ?? null), o = oe(() => typeof e.searchButton == "boolean" ? "text" : e.searchButton), { start: a } = yi(() => {
|
|
6494
6494
|
}, typeof e.autoTrigger == "number" ? e.autoTrigger : 500);
|
|
6495
|
-
|
|
6495
|
+
Te(() => {
|
|
6496
6496
|
r.value = e.value ?? null;
|
|
6497
6497
|
});
|
|
6498
6498
|
const i = Nr(() => {
|
|
@@ -6507,11 +6507,11 @@ const Dr = /* @__PURE__ */ kn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
|
|
|
6507
6507
|
function s(c) {
|
|
6508
6508
|
c.key === "Enter" && l();
|
|
6509
6509
|
}
|
|
6510
|
-
return
|
|
6510
|
+
return Te(() => {
|
|
6511
6511
|
!e.loading && r.value && n.value?.focus();
|
|
6512
6512
|
}), (c, f) => (R(), z(v(ni), null, {
|
|
6513
6513
|
default: O(() => [
|
|
6514
|
-
|
|
6514
|
+
Z(v(ln), Y({
|
|
6515
6515
|
ref: "input-ref",
|
|
6516
6516
|
value: r.value,
|
|
6517
6517
|
"onUpdate:value": f[0] || (f[0] = (_) => r.value = _),
|
|
@@ -6522,7 +6522,7 @@ const Dr = /* @__PURE__ */ kn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
|
|
|
6522
6522
|
prefix: O(() => [
|
|
6523
6523
|
U(c.$slots, "prefix", {}, () => [
|
|
6524
6524
|
U(c.$slots, "prefix-icon", {}, () => [
|
|
6525
|
-
|
|
6525
|
+
Z(Dr, { style: { width: "18px", height: "18px" } })
|
|
6526
6526
|
])
|
|
6527
6527
|
])
|
|
6528
6528
|
]),
|
|
@@ -6532,14 +6532,14 @@ const Dr = /* @__PURE__ */ kn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
|
|
|
6532
6532
|
value: c.value,
|
|
6533
6533
|
loading: c.loading
|
|
6534
6534
|
}, () => [
|
|
6535
|
-
o.value ? (R(), z(v(Je),
|
|
6535
|
+
o.value ? (R(), z(v(Je), Y({
|
|
6536
6536
|
key: 0,
|
|
6537
6537
|
type: c.type,
|
|
6538
6538
|
loading: c.loading
|
|
6539
6539
|
}, c.buttonProps, { onClick: l }), Tr({
|
|
6540
6540
|
default: O(() => [
|
|
6541
|
-
o.value === "text" ? (R(), re(
|
|
6542
|
-
|
|
6541
|
+
o.value === "text" ? (R(), re(Ae, { key: 0 }, [
|
|
6542
|
+
xu(" 搜索 ")
|
|
6543
6543
|
], 64)) : ue("", !0)
|
|
6544
6544
|
]),
|
|
6545
6545
|
_: 2
|
|
@@ -6548,7 +6548,7 @@ const Dr = /* @__PURE__ */ kn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
|
|
|
6548
6548
|
name: "icon",
|
|
6549
6549
|
fn: O(() => [
|
|
6550
6550
|
U(c.$slots, "button-icon", {}, () => [
|
|
6551
|
-
|
|
6551
|
+
Z(Dr)
|
|
6552
6552
|
])
|
|
6553
6553
|
]),
|
|
6554
6554
|
key: "0"
|
|
@@ -6663,12 +6663,12 @@ const Dr = /* @__PURE__ */ kn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
|
|
|
6663
6663
|
emits: ["before", "success", "error", "finally", "clickRow", "contextMenuRow", "load", "scroll", "update:checkedRowKeys", "update:expandedRowKeys", "update:filters", "update:sorter", "update:page", "update:pageSize"],
|
|
6664
6664
|
setup(e, { expose: u, emit: t }) {
|
|
6665
6665
|
const n = t, r = oe(() => {
|
|
6666
|
-
const
|
|
6666
|
+
const D = typeof e.filterLayout == "string" ? [e.filterLayout, e.filterLayout] : e.filterLayout;
|
|
6667
6667
|
return {
|
|
6668
|
-
grid:
|
|
6669
|
-
flex:
|
|
6670
|
-
collapsedGrid:
|
|
6671
|
-
collapsedFlex:
|
|
6668
|
+
grid: D[0] === "grid",
|
|
6669
|
+
flex: D[0] === "flex",
|
|
6670
|
+
collapsedGrid: D[1] === "grid",
|
|
6671
|
+
collapsedFlex: D[1] === "flex"
|
|
6672
6672
|
};
|
|
6673
6673
|
}), o = Ou(e.columns ?? []), a = mt("data-table-ref"), i = { page: "page", pageSize: "pageSize", filter: "filter", sorter: "sorter", list: "list", count: "count", rowKey: "id", search: "search", children: "children", ...e.fields }, l = {
|
|
6674
6674
|
...e.search && typeof e.search == "boolean" ? {} : e.search
|
|
@@ -6676,7 +6676,7 @@ const Dr = /* @__PURE__ */ kn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
|
|
|
6676
6676
|
showSizePicker: !0,
|
|
6677
6677
|
pageSizes: [10, 20, 30],
|
|
6678
6678
|
pageSlot: 5,
|
|
6679
|
-
prefix: (
|
|
6679
|
+
prefix: (D) => `共${D.itemCount}条数据`,
|
|
6680
6680
|
...e.pagination && typeof e.pagination == "boolean" ? {} : e.pagination
|
|
6681
6681
|
}), c = G({
|
|
6682
6682
|
page: 1,
|
|
@@ -6686,110 +6686,110 @@ const Dr = /* @__PURE__ */ kn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
|
|
|
6686
6686
|
[i.page]: c.value.page,
|
|
6687
6687
|
[i.pageSize]: c.value.pageSize,
|
|
6688
6688
|
...e.defaultParams
|
|
6689
|
-
}, { loading: _, data:
|
|
6689
|
+
}, { loading: _, data: x, error: d, params: y, run: A, runAsync: E, refresh: m, refreshAsync: p, cancel: h, mutate: b } = yn(e.api, {
|
|
6690
6690
|
defaultParams: [
|
|
6691
6691
|
f
|
|
6692
6692
|
],
|
|
6693
6693
|
manual: e.manual,
|
|
6694
6694
|
...e.requestOptions,
|
|
6695
|
-
onBefore: (
|
|
6696
|
-
e.requestOptions?.onBefore?.(
|
|
6695
|
+
onBefore: (D) => {
|
|
6696
|
+
e.requestOptions?.onBefore?.(D), n("before", D);
|
|
6697
6697
|
},
|
|
6698
|
-
onSuccess: (
|
|
6699
|
-
e.requestOptions?.onSuccess?.(
|
|
6698
|
+
onSuccess: (D, N) => {
|
|
6699
|
+
e.requestOptions?.onSuccess?.(D, N), n("success", D, N), C(D, N);
|
|
6700
6700
|
},
|
|
6701
|
-
onError: (
|
|
6702
|
-
e.requestOptions?.onError?.(
|
|
6701
|
+
onError: (D, N) => {
|
|
6702
|
+
e.requestOptions?.onError?.(D, N), n("error", D, N);
|
|
6703
6703
|
},
|
|
6704
|
-
onFinally: (
|
|
6705
|
-
e.requestOptions?.onFinally?.(
|
|
6704
|
+
onFinally: (D, N, T) => {
|
|
6705
|
+
e.requestOptions?.onFinally?.(D, N, T), n("finally", D, N, T);
|
|
6706
6706
|
}
|
|
6707
|
-
}, e.requestPlugins),
|
|
6708
|
-
function D
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
}), c.value.page = i.page in
|
|
6712
|
-
const T =
|
|
6707
|
+
}, e.requestPlugins), k = [], w = oe(() => x.value ? Array.isArray(x.value[i.list]) ? x.value[i.list] : (console.warn(`DataTablePlus: data[${i.list}] must be an array`), []) : []), P = oe(() => e.columns?.reduce((D, N) => D + Number(N.width ?? 100), 0));
|
|
6708
|
+
function C(D, N) {
|
|
6709
|
+
D[i.list]?.forEach(($) => {
|
|
6710
|
+
k.some((H) => H[i.rowKey] === $[i.rowKey]) || k.push($);
|
|
6711
|
+
}), c.value.page = i.page in N[0] ? Number(N[0][i.page]) : 1, c.value.pageSize = i.pageSize in N[0] ? Number(N[0][i.pageSize]) : 10, c.value.itemCount = i.count in D ? Number(D[i.count]) : 0;
|
|
6712
|
+
const T = N[0]?.[i.filter], Q = N[0]?.[i.sorter];
|
|
6713
6713
|
if (o) {
|
|
6714
|
-
for (const
|
|
6715
|
-
if ("key" in
|
|
6716
|
-
if (T &&
|
|
6717
|
-
const H = T[
|
|
6718
|
-
"filter" in
|
|
6714
|
+
for (const $ of o)
|
|
6715
|
+
if ("key" in $) {
|
|
6716
|
+
if (T && $.key in T) {
|
|
6717
|
+
const H = T[$.key];
|
|
6718
|
+
"filter" in $ && $.filter && ($.filterMultiple ? Array.isArray(H) && ($.filterOptionValues = H) : Array.isArray(H) || ($.filterOptionValue = H));
|
|
6719
6719
|
}
|
|
6720
|
-
if ("sorter" in
|
|
6721
|
-
const H = Q[
|
|
6722
|
-
"sorter" in
|
|
6720
|
+
if ("sorter" in $ && typeof $.sorter == "boolean" && ($.sortOrder = !1), Q && $.key in Q) {
|
|
6721
|
+
const H = Q[$.key];
|
|
6722
|
+
"sorter" in $ && $.sorter && ($.sortOrder = H);
|
|
6723
6723
|
}
|
|
6724
6724
|
}
|
|
6725
6725
|
}
|
|
6726
6726
|
}
|
|
6727
|
-
function B(
|
|
6727
|
+
function B(D) {
|
|
6728
6728
|
return A({
|
|
6729
6729
|
...y.value[0],
|
|
6730
|
-
...
|
|
6730
|
+
...D
|
|
6731
6731
|
});
|
|
6732
6732
|
}
|
|
6733
6733
|
const L = {
|
|
6734
|
-
onUpdatePage: (
|
|
6735
|
-
n("update:page",
|
|
6736
|
-
[i.page]:
|
|
6734
|
+
onUpdatePage: (D) => {
|
|
6735
|
+
n("update:page", D), !_.value && B({
|
|
6736
|
+
[i.page]: D
|
|
6737
6737
|
});
|
|
6738
6738
|
},
|
|
6739
|
-
onUpdatePageSize: (
|
|
6740
|
-
n("update:pageSize",
|
|
6741
|
-
[i.pageSize]:
|
|
6739
|
+
onUpdatePageSize: (D) => {
|
|
6740
|
+
n("update:pageSize", D), !_.value && B({
|
|
6741
|
+
[i.pageSize]: D
|
|
6742
6742
|
});
|
|
6743
6743
|
},
|
|
6744
|
-
onUpdateFilters: (
|
|
6745
|
-
n("update:filters",
|
|
6744
|
+
onUpdateFilters: (D, N) => {
|
|
6745
|
+
n("update:filters", D, N), B({
|
|
6746
6746
|
[i.page]: 1,
|
|
6747
|
-
[i.filter]:
|
|
6747
|
+
[i.filter]: D
|
|
6748
6748
|
});
|
|
6749
6749
|
},
|
|
6750
|
-
onUpdateSorter: (
|
|
6751
|
-
n("update:sorter",
|
|
6752
|
-
const
|
|
6753
|
-
if (Array.isArray(
|
|
6754
|
-
for (const T of
|
|
6755
|
-
|
|
6756
|
-
else
|
|
6750
|
+
onUpdateSorter: (D) => {
|
|
6751
|
+
n("update:sorter", D);
|
|
6752
|
+
const N = {};
|
|
6753
|
+
if (Array.isArray(D))
|
|
6754
|
+
for (const T of D)
|
|
6755
|
+
N[T.columnKey] = T.order;
|
|
6756
|
+
else D && (N[D.columnKey] = D.order);
|
|
6757
6757
|
B({
|
|
6758
6758
|
[i.page]: 1,
|
|
6759
|
-
[i.sorter]:
|
|
6759
|
+
[i.sorter]: N
|
|
6760
6760
|
});
|
|
6761
6761
|
},
|
|
6762
|
-
onLoad: (
|
|
6763
|
-
onScroll: (
|
|
6764
|
-
n("scroll",
|
|
6762
|
+
onLoad: (D) => n("load", D),
|
|
6763
|
+
onScroll: (D) => {
|
|
6764
|
+
n("scroll", D);
|
|
6765
6765
|
},
|
|
6766
|
-
onUpdateCheckedRowKeys: (
|
|
6767
|
-
const Q =
|
|
6768
|
-
n("update:checkedRowKeys",
|
|
6766
|
+
onUpdateCheckedRowKeys: (D, N, T) => {
|
|
6767
|
+
const Q = D.map(($) => k.find((H) => H[i.rowKey] === $));
|
|
6768
|
+
n("update:checkedRowKeys", D, Q, { row: Ee(T.row), action: T.action }, Ee(w.value));
|
|
6769
6769
|
},
|
|
6770
|
-
onUpdateExpandedRowKeys: (
|
|
6771
|
-
n("update:expandedRowKeys",
|
|
6770
|
+
onUpdateExpandedRowKeys: (D) => {
|
|
6771
|
+
n("update:expandedRowKeys", D, Ee(w.value));
|
|
6772
6772
|
}
|
|
6773
6773
|
};
|
|
6774
|
-
function
|
|
6774
|
+
function W(D, N) {
|
|
6775
6775
|
return {
|
|
6776
6776
|
onClick: (T) => {
|
|
6777
|
-
n("clickRow",
|
|
6777
|
+
n("clickRow", Ee(D), N, T, Ee(w.value));
|
|
6778
6778
|
},
|
|
6779
6779
|
onContextmenu: (T) => {
|
|
6780
|
-
n("contextMenuRow",
|
|
6780
|
+
n("contextMenuRow", Ee(D), N, T, Ee(w.value));
|
|
6781
6781
|
}
|
|
6782
6782
|
};
|
|
6783
6783
|
}
|
|
6784
6784
|
const ie = G(!1);
|
|
6785
|
-
function F(
|
|
6786
|
-
|
|
6787
|
-
[
|
|
6785
|
+
function F(D, N) {
|
|
6786
|
+
N && B({
|
|
6787
|
+
[N]: D
|
|
6788
6788
|
});
|
|
6789
6789
|
}
|
|
6790
6790
|
const q = {
|
|
6791
6791
|
loading: _,
|
|
6792
|
-
data:
|
|
6792
|
+
data: x,
|
|
6793
6793
|
error: d,
|
|
6794
6794
|
params: y,
|
|
6795
6795
|
pagination: c,
|
|
@@ -6802,37 +6802,37 @@ const Dr = /* @__PURE__ */ kn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
|
|
|
6802
6802
|
refreshAsync: p,
|
|
6803
6803
|
cancel: h,
|
|
6804
6804
|
mutate: b,
|
|
6805
|
-
setParams: (
|
|
6806
|
-
Object.assign(y.value[0],
|
|
6805
|
+
setParams: (D) => {
|
|
6806
|
+
Object.assign(y.value[0], D);
|
|
6807
6807
|
},
|
|
6808
|
-
runParams: (
|
|
6809
|
-
runParamsAsync: async (
|
|
6808
|
+
runParams: (D) => A(Object.assign(y.value[0], D)),
|
|
6809
|
+
runParamsAsync: async (D) => E(Object.assign(y.value[0], D))
|
|
6810
6810
|
};
|
|
6811
6811
|
return u({
|
|
6812
6812
|
refs: q,
|
|
6813
6813
|
actions: ee
|
|
6814
|
-
}), (
|
|
6814
|
+
}), (D, N) => (R(), z(v(Oe), { vertical: "" }, {
|
|
6815
6815
|
default: O(() => [
|
|
6816
|
-
U(
|
|
6816
|
+
U(D.$slots, "header", {
|
|
6817
6817
|
refs: q,
|
|
6818
6818
|
actions: ee
|
|
6819
6819
|
}, () => [
|
|
6820
|
-
|
|
6820
|
+
Z(v(Oe), null, {
|
|
6821
6821
|
default: O(() => [
|
|
6822
|
-
U(
|
|
6822
|
+
U(D.$slots, "title", {}, () => [
|
|
6823
6823
|
uu("div", Bc, [
|
|
6824
|
-
|
|
6824
|
+
D.title ? (R(), re("span", Uc, ou(D.title), 1)) : ue("", !0)
|
|
6825
6825
|
])
|
|
6826
6826
|
]),
|
|
6827
|
-
|
|
6827
|
+
D.search ? (R(), z(v(yo), Y({
|
|
6828
6828
|
key: 0,
|
|
6829
6829
|
style: { "margin-left": "auto", width: "260px" },
|
|
6830
6830
|
value: v(y)[0][i.search],
|
|
6831
6831
|
loading: v(_)
|
|
6832
6832
|
}, l, {
|
|
6833
|
-
"onUpdate:value":
|
|
6833
|
+
"onUpdate:value": N[0] || (N[0] = (T) => F(T, i.search))
|
|
6834
6834
|
}), null, 16, ["value", "loading"])) : ue("", !0),
|
|
6835
|
-
U(
|
|
6835
|
+
U(D.$slots, "header-extra", {
|
|
6836
6836
|
refs: q,
|
|
6837
6837
|
actions: ee
|
|
6838
6838
|
})
|
|
@@ -6840,101 +6840,101 @@ const Dr = /* @__PURE__ */ kn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
|
|
|
6840
6840
|
_: 3
|
|
6841
6841
|
})
|
|
6842
6842
|
]),
|
|
6843
|
-
U(
|
|
6843
|
+
U(D.$slots, "filter", {
|
|
6844
6844
|
refs: q,
|
|
6845
6845
|
actions: ee
|
|
6846
6846
|
}, () => [
|
|
6847
|
-
|
|
6847
|
+
Z(v(Oe), { vertical: "" }, {
|
|
6848
6848
|
default: O(() => [
|
|
6849
|
-
r.value.grid && (
|
|
6849
|
+
r.value.grid && (D.filterOptions?.filter((T) => !T.collapsed).length ?? !1) ? (R(), z(v(st), fe(Y({ key: 0 }, D.filterGridProps)), {
|
|
6850
6850
|
default: O(() => [
|
|
6851
|
-
(R(!0), re(
|
|
6852
|
-
key:
|
|
6853
|
-
span:
|
|
6854
|
-
}, { ref_for: !0 },
|
|
6851
|
+
(R(!0), re(Ae, null, Ze(D.filterOptions?.filter((T) => !T.collapsed), ({ key: T, gridSpan: Q, gridItemProps: $, render: H, label: X, ...te }, V) => (R(), z(v(ct), Y({
|
|
6852
|
+
key: V,
|
|
6853
|
+
span: Q
|
|
6854
|
+
}, { ref_for: !0 }, $), {
|
|
6855
6855
|
default: O(() => [
|
|
6856
|
-
|
|
6856
|
+
H ? (R(), z(se(v(he)(H(q, ee), X, { path: T, labelPlacement: "left" })), { key: 0 })) : (R(), z(se(v(he)(
|
|
6857
6857
|
be(v(Xe), {
|
|
6858
|
-
options:
|
|
6858
|
+
options: te,
|
|
6859
6859
|
value: T ? v(y)[0][T] : void 0,
|
|
6860
|
-
"onUpdate:value": (
|
|
6860
|
+
"onUpdate:value": (_e) => F(_e, T)
|
|
6861
6861
|
}),
|
|
6862
|
-
|
|
6862
|
+
X,
|
|
6863
6863
|
{ path: T, labelPlacement: "left" }
|
|
6864
6864
|
)), { key: 1 }))
|
|
6865
6865
|
]),
|
|
6866
6866
|
_: 2
|
|
6867
|
-
}, 1040))), 128))
|
|
6867
|
+
}, 1040, ["span"]))), 128))
|
|
6868
6868
|
]),
|
|
6869
6869
|
_: 1
|
|
6870
6870
|
}, 16)) : ue("", !0),
|
|
6871
|
-
r.value.flex && (
|
|
6871
|
+
r.value.flex && (D.filterOptions?.filter((T) => !T.collapsed).length ?? !1) ? (R(), z(v(Oe), fe(Y({ key: 1 }, D.filterFlexProps)), {
|
|
6872
6872
|
default: O(() => [
|
|
6873
|
-
(R(!0), re(
|
|
6874
|
-
Q ? (R(), z(se(v(he)(Q(q, ee),
|
|
6873
|
+
(R(!0), re(Ae, null, Ze(D.filterOptions?.filter((T) => !T.collapsed), ({ key: T, render: Q, label: $, ...H }, X) => (R(), re(Ae, { key: X }, [
|
|
6874
|
+
Q ? (R(), z(se(v(he)(Q(q, ee), $, { path: T, labelPlacement: "left" })), { key: 0 })) : (R(), z(se(v(he)(
|
|
6875
6875
|
be(v(Xe), {
|
|
6876
6876
|
options: H,
|
|
6877
6877
|
value: T ? v(y)[0][T] : void 0,
|
|
6878
6878
|
"onUpdate:value": (te) => F(te, T)
|
|
6879
6879
|
}),
|
|
6880
|
-
|
|
6880
|
+
$,
|
|
6881
6881
|
{ path: T, labelPlacement: "left" }
|
|
6882
6882
|
)), { key: 1 }))
|
|
6883
6883
|
], 64))), 128))
|
|
6884
6884
|
]),
|
|
6885
6885
|
_: 1
|
|
6886
6886
|
}, 16)) : ue("", !0),
|
|
6887
|
-
|
|
6887
|
+
D.filterOptions?.filter((T) => T.collapsed) && D.filterOptions?.filter((T) => T.collapsed)?.length > 0 ? (R(), z(v(sn), {
|
|
6888
6888
|
key: 2,
|
|
6889
6889
|
style: { margin: "5px 0" }
|
|
6890
6890
|
}, {
|
|
6891
6891
|
default: O(() => [
|
|
6892
|
-
|
|
6892
|
+
Z(v(Je), {
|
|
6893
6893
|
size: "tiny",
|
|
6894
|
-
onClick:
|
|
6894
|
+
onClick: N[1] || (N[1] = (T) => ie.value = !ie.value)
|
|
6895
6895
|
}, {
|
|
6896
6896
|
default: O(() => [
|
|
6897
|
-
|
|
6897
|
+
xu(ou(ie.value ? "折叠" : "展开"), 1)
|
|
6898
6898
|
]),
|
|
6899
6899
|
_: 1
|
|
6900
6900
|
})
|
|
6901
6901
|
]),
|
|
6902
6902
|
_: 1
|
|
6903
6903
|
})) : ue("", !0),
|
|
6904
|
-
|
|
6904
|
+
Z(v(Mr), { show: ie.value }, {
|
|
6905
6905
|
default: O(() => [
|
|
6906
|
-
r.value.collapsedGrid && (
|
|
6906
|
+
r.value.collapsedGrid && (D.filterOptions?.filter((T) => T.collapsed)?.length ?? !1) ? (R(), z(v(st), fe(Y({ key: 0 }, D.filterGridProps)), {
|
|
6907
6907
|
default: O(() => [
|
|
6908
|
-
(R(!0), re(
|
|
6909
|
-
key:
|
|
6910
|
-
span:
|
|
6911
|
-
}, { ref_for: !0 },
|
|
6908
|
+
(R(!0), re(Ae, null, Ze(D.filterOptions?.filter((T) => T.collapsed), ({ key: T, gridSpan: Q, gridItemProps: $, render: H, label: X, ...te }, V) => (R(), z(v(ct), Y({
|
|
6909
|
+
key: V,
|
|
6910
|
+
span: Q
|
|
6911
|
+
}, { ref_for: !0 }, $), {
|
|
6912
6912
|
default: O(() => [
|
|
6913
|
-
|
|
6913
|
+
H ? (R(), z(se(v(he)(H(q, ee), X, { path: T, labelPlacement: "left" })), { key: 0 })) : (R(), z(se(v(he)(
|
|
6914
6914
|
be(v(Xe), {
|
|
6915
|
-
options:
|
|
6915
|
+
options: te,
|
|
6916
6916
|
value: T ? v(y)[0][T] : void 0,
|
|
6917
|
-
"onUpdate:value": (
|
|
6917
|
+
"onUpdate:value": (_e) => F(_e, T)
|
|
6918
6918
|
}),
|
|
6919
|
-
|
|
6919
|
+
X,
|
|
6920
6920
|
{ path: T, labelPlacement: "left" }
|
|
6921
6921
|
)), { key: 1 }))
|
|
6922
6922
|
]),
|
|
6923
6923
|
_: 2
|
|
6924
|
-
}, 1040))), 128))
|
|
6924
|
+
}, 1040, ["span"]))), 128))
|
|
6925
6925
|
]),
|
|
6926
6926
|
_: 1
|
|
6927
6927
|
}, 16)) : ue("", !0),
|
|
6928
|
-
r.value.collapsedFlex && (
|
|
6928
|
+
r.value.collapsedFlex && (D.filterOptions?.filter((T) => T.collapsed)?.length ?? !1) ? (R(), z(v(Oe), fe(Y({ key: 1 }, D.filterFlexProps)), {
|
|
6929
6929
|
default: O(() => [
|
|
6930
|
-
(R(!0), re(
|
|
6931
|
-
Q ? (R(), z(se(v(he)(Q(q, ee),
|
|
6930
|
+
(R(!0), re(Ae, null, Ze(D.filterOptions?.filter((T) => T.collapsed), ({ key: T, render: Q, label: $, ...H }, X) => (R(), re(Ae, { key: X }, [
|
|
6931
|
+
Q ? (R(), z(se(v(he)(Q(q, ee), $, { path: T, labelPlacement: "left" })), { key: 0 })) : (R(), z(se(v(he)(
|
|
6932
6932
|
be(v(Xe), {
|
|
6933
6933
|
options: H,
|
|
6934
6934
|
value: T ? v(y)[0][T] : void 0,
|
|
6935
6935
|
"onUpdate:value": (te) => F(te, T)
|
|
6936
6936
|
}),
|
|
6937
|
-
|
|
6937
|
+
$,
|
|
6938
6938
|
{ path: T, labelPlacement: "left" }
|
|
6939
6939
|
)), { key: 1 }))
|
|
6940
6940
|
], 64))), 128))
|
|
@@ -6948,21 +6948,21 @@ const Dr = /* @__PURE__ */ kn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
|
|
|
6948
6948
|
_: 1
|
|
6949
6949
|
})
|
|
6950
6950
|
]),
|
|
6951
|
-
|
|
6951
|
+
Z(v(mi), Y({
|
|
6952
6952
|
ref: "data-table-ref",
|
|
6953
6953
|
remote: "",
|
|
6954
6954
|
"flex-height": "",
|
|
6955
6955
|
"single-line": !1,
|
|
6956
6956
|
"scroll-x": P.value,
|
|
6957
|
-
style: { flex: 1, ...
|
|
6958
|
-
class:
|
|
6957
|
+
style: { flex: 1, ...D.customStyle },
|
|
6958
|
+
class: D.customClass,
|
|
6959
6959
|
"row-key": (T) => T[i.rowKey],
|
|
6960
6960
|
"children-key": i.children,
|
|
6961
6961
|
loading: v(_),
|
|
6962
6962
|
columns: o,
|
|
6963
6963
|
data: w.value,
|
|
6964
|
-
"row-props":
|
|
6965
|
-
},
|
|
6964
|
+
"row-props": W
|
|
6965
|
+
}, D.dataTableProps, {
|
|
6966
6966
|
"onUpdate:filters": L.onUpdateFilters,
|
|
6967
6967
|
"onUpdate:sorter": L.onUpdateSorter,
|
|
6968
6968
|
onLoad: L.onLoad,
|
|
@@ -6971,30 +6971,30 @@ const Dr = /* @__PURE__ */ kn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
|
|
|
6971
6971
|
"onUpdate:expandedRowKeys": L.onUpdateExpandedRowKeys
|
|
6972
6972
|
}), {
|
|
6973
6973
|
empty: O(() => [
|
|
6974
|
-
U(
|
|
6974
|
+
U(D.$slots, "empty", {
|
|
6975
6975
|
refs: q,
|
|
6976
6976
|
actions: ee
|
|
6977
6977
|
})
|
|
6978
6978
|
]),
|
|
6979
6979
|
loading: O(() => [
|
|
6980
|
-
U(
|
|
6980
|
+
U(D.$slots, "loading", {
|
|
6981
6981
|
refs: q,
|
|
6982
6982
|
actions: ee
|
|
6983
6983
|
})
|
|
6984
6984
|
]),
|
|
6985
6985
|
_: 3
|
|
6986
6986
|
}, 16, ["scroll-x", "style", "class", "row-key", "children-key", "loading", "columns", "data", "onUpdate:filters", "onUpdate:sorter", "onLoad", "onScroll", "onUpdate:checkedRowKeys", "onUpdate:expandedRowKeys"]),
|
|
6987
|
-
U(
|
|
6987
|
+
U(D.$slots, "footer", {
|
|
6988
6988
|
refs: q,
|
|
6989
6989
|
actions: ee
|
|
6990
6990
|
}, () => [
|
|
6991
|
-
|
|
6991
|
+
Z(v(Oe), null, {
|
|
6992
6992
|
default: O(() => [
|
|
6993
|
-
U(
|
|
6993
|
+
U(D.$slots, "footer-extra", {
|
|
6994
6994
|
refs: q,
|
|
6995
6995
|
actions: ee
|
|
6996
6996
|
}),
|
|
6997
|
-
|
|
6997
|
+
D.pagination ? (R(), z(v(Lr), Y({
|
|
6998
6998
|
key: 0,
|
|
6999
6999
|
style: { "margin-left": "auto" },
|
|
7000
7000
|
disabled: v(_)
|
|
@@ -7023,7 +7023,7 @@ function Eo(e, u) {
|
|
|
7023
7023
|
return typeof e == "string" ? t : typeof e == "number" ? n : typeof e == "boolean" ? r : e;
|
|
7024
7024
|
}
|
|
7025
7025
|
function qc(e, u) {
|
|
7026
|
-
const { rules: t, clearRules: n } = u ?? {}, r = Ou(e ? structuredClone(
|
|
7026
|
+
const { rules: t, clearRules: n } = u ?? {}, r = Ou(e ? structuredClone(Ee(e)) : {}), o = t, a = G(), i = {
|
|
7027
7027
|
ref: a,
|
|
7028
7028
|
model: r,
|
|
7029
7029
|
rules: o
|
|
@@ -7032,7 +7032,7 @@ function qc(e, u) {
|
|
|
7032
7032
|
return new Promise((d, y) => {
|
|
7033
7033
|
if (!a.value)
|
|
7034
7034
|
return y(new Error("formRef:undefined"));
|
|
7035
|
-
a.value.validate().then((A) => (l.trigger(
|
|
7035
|
+
a.value.validate().then((A) => (l.trigger(Ee(Ke(r))), d(A))).catch(y);
|
|
7036
7036
|
});
|
|
7037
7037
|
}
|
|
7038
7038
|
function c() {
|
|
@@ -7044,7 +7044,7 @@ function qc(e, u) {
|
|
|
7044
7044
|
function _() {
|
|
7045
7045
|
f(), Object.assign(r, structuredClone(e));
|
|
7046
7046
|
}
|
|
7047
|
-
function
|
|
7047
|
+
function x() {
|
|
7048
7048
|
c(), _();
|
|
7049
7049
|
}
|
|
7050
7050
|
return {
|
|
@@ -7055,7 +7055,7 @@ function qc(e, u) {
|
|
|
7055
7055
|
validate: s,
|
|
7056
7056
|
resetValidation: c,
|
|
7057
7057
|
resetForm: _,
|
|
7058
|
-
reset:
|
|
7058
|
+
reset: x,
|
|
7059
7059
|
clear: f,
|
|
7060
7060
|
onValidated: l.on
|
|
7061
7061
|
};
|
|
@@ -7065,7 +7065,11 @@ function jc(e) {
|
|
|
7065
7065
|
return;
|
|
7066
7066
|
const u = {};
|
|
7067
7067
|
return e.forEach((t) => {
|
|
7068
|
-
t.key && t.
|
|
7068
|
+
t.key && (t.required && (u[t.key] = {
|
|
7069
|
+
required: !0,
|
|
7070
|
+
message: `${typeof t.label == "string" ? t.label : typeof t.label == "object" && t.label.label === "string" ? t.label.label : typeof t.key == "string" ? t.key : "字段"}不能为空`,
|
|
7071
|
+
trigger: ["input", "blur"]
|
|
7072
|
+
}), t.rules && (u[t.key] = Object.assign(u[t.key] ?? {}, t.rules)));
|
|
7069
7073
|
}), u;
|
|
7070
7074
|
}
|
|
7071
7075
|
const uf = /* @__PURE__ */ me({
|
|
@@ -7090,7 +7094,7 @@ const uf = /* @__PURE__ */ me({
|
|
|
7090
7094
|
collapsedGrid: p[1] === "grid",
|
|
7091
7095
|
collapsedFlex: p[1] === "flex"
|
|
7092
7096
|
};
|
|
7093
|
-
}), o = e.rules ? { ...e.rules, ...jc(e.options) } : void 0, { formValue: a, formRules: i, formRef: l, validate: s, resetValidation: c, resetForm: f, reset: _, clear:
|
|
7097
|
+
}), o = e.rules ? { ...e.rules, ...jc(e.options) } : void 0, { formValue: a, formRules: i, formRef: l, validate: s, resetValidation: c, resetForm: f, reset: _, clear: x, onValidated: d } = qc(e.values, {
|
|
7094
7098
|
rules: o,
|
|
7095
7099
|
clearRules: e.clearRules
|
|
7096
7100
|
});
|
|
@@ -7106,7 +7110,7 @@ const uf = /* @__PURE__ */ me({
|
|
|
7106
7110
|
resetValidation: c,
|
|
7107
7111
|
resetForm: f,
|
|
7108
7112
|
reset: _,
|
|
7109
|
-
clear:
|
|
7113
|
+
clear: x,
|
|
7110
7114
|
onValidated: d,
|
|
7111
7115
|
setValues: (p) => {
|
|
7112
7116
|
Object.assign(a.value, p);
|
|
@@ -7119,7 +7123,7 @@ const uf = /* @__PURE__ */ me({
|
|
|
7119
7123
|
function m(p, h) {
|
|
7120
7124
|
h && E.setValues({ [h]: p });
|
|
7121
7125
|
}
|
|
7122
|
-
return (p, h) => (R(), z(v(gi),
|
|
7126
|
+
return (p, h) => (R(), z(v(gi), Y({
|
|
7123
7127
|
ref_key: "formRef",
|
|
7124
7128
|
ref: l,
|
|
7125
7129
|
model: v(a),
|
|
@@ -7134,32 +7138,32 @@ const uf = /* @__PURE__ */ me({
|
|
|
7134
7138
|
refs: A,
|
|
7135
7139
|
actions: E
|
|
7136
7140
|
}, () => [
|
|
7137
|
-
r.value.grid ? (R(), z(v(st), fe(
|
|
7141
|
+
r.value.grid ? (R(), z(v(st), fe(Y({ key: 0 }, p.gridProps)), {
|
|
7138
7142
|
default: O(() => [
|
|
7139
|
-
(R(!0), re(
|
|
7140
|
-
key:
|
|
7141
|
-
span:
|
|
7142
|
-
}, { ref_for: !0 },
|
|
7143
|
+
(R(!0), re(Ae, null, Ze(p.options?.filter((b) => !b.collapsed), ({ key: b, gridSpan: k, gridItemProps: w, render: P, label: C, ...B }, L) => (R(), z(v(ct), Y({
|
|
7144
|
+
key: L,
|
|
7145
|
+
span: k
|
|
7146
|
+
}, { ref_for: !0 }, w), {
|
|
7143
7147
|
default: O(() => [
|
|
7144
|
-
|
|
7148
|
+
P ? (R(), z(se(v(he)(P(A, E), C, { path: b })), { key: 0 })) : (R(), z(se(v(he)(
|
|
7145
7149
|
be(v(Xe), {
|
|
7146
|
-
options:
|
|
7150
|
+
options: B,
|
|
7147
7151
|
value: b ? v(a)[b] : void 0,
|
|
7148
|
-
"onUpdate:value": (
|
|
7152
|
+
"onUpdate:value": (W) => m(W, b)
|
|
7149
7153
|
}),
|
|
7150
|
-
|
|
7154
|
+
C,
|
|
7151
7155
|
{ path: b }
|
|
7152
7156
|
)), { key: 1 }))
|
|
7153
7157
|
]),
|
|
7154
7158
|
_: 2
|
|
7155
|
-
}, 1040))), 128))
|
|
7159
|
+
}, 1040, ["span"]))), 128))
|
|
7156
7160
|
]),
|
|
7157
7161
|
_: 1
|
|
7158
7162
|
}, 16)) : ue("", !0),
|
|
7159
|
-
r.value.flex ? (R(), z(v(Oe), fe(
|
|
7163
|
+
r.value.flex ? (R(), z(v(Oe), fe(Y({ key: 1 }, p.flexProps)), {
|
|
7160
7164
|
default: O(() => [
|
|
7161
|
-
(R(!0), re(
|
|
7162
|
-
|
|
7165
|
+
(R(!0), re(Ae, null, Ze(p.options?.filter((b) => !b.collapsed), ({ key: b, render: k, label: w, ...P }, C) => (R(), re(Ae, { key: C }, [
|
|
7166
|
+
k ? (R(), z(se(v(he)(k(A, E), w, { path: b })), { key: 0 })) : (R(), z(se(v(he)(
|
|
7163
7167
|
be(v(Xe), {
|
|
7164
7168
|
options: P,
|
|
7165
7169
|
value: b ? v(a)[b] : void 0,
|
|
@@ -7177,46 +7181,46 @@ const uf = /* @__PURE__ */ me({
|
|
|
7177
7181
|
style: { margin: "5px 0" }
|
|
7178
7182
|
}, {
|
|
7179
7183
|
default: O(() => [
|
|
7180
|
-
|
|
7184
|
+
Z(v(Je), {
|
|
7181
7185
|
size: "tiny",
|
|
7182
7186
|
onClick: h[0] || (h[0] = (b) => y.value = !y.value)
|
|
7183
7187
|
}, {
|
|
7184
7188
|
default: O(() => [
|
|
7185
|
-
|
|
7189
|
+
xu(ou(y.value ? "折叠" : "展开"), 1)
|
|
7186
7190
|
]),
|
|
7187
7191
|
_: 1
|
|
7188
7192
|
})
|
|
7189
7193
|
]),
|
|
7190
7194
|
_: 1
|
|
7191
7195
|
})) : ue("", !0),
|
|
7192
|
-
|
|
7196
|
+
Z(v(Mr), { show: y.value }, {
|
|
7193
7197
|
default: O(() => [
|
|
7194
|
-
r.value.collapsedGrid ? (R(), z(v(st), fe(
|
|
7198
|
+
r.value.collapsedGrid ? (R(), z(v(st), fe(Y({ key: 0 }, p.gridProps)), {
|
|
7195
7199
|
default: O(() => [
|
|
7196
|
-
(R(!0), re(
|
|
7197
|
-
key:
|
|
7198
|
-
span:
|
|
7199
|
-
}, { ref_for: !0 },
|
|
7200
|
+
(R(!0), re(Ae, null, Ze(p.options?.filter((b) => b.collapsed), ({ key: b, gridSpan: k, gridItemProps: w, render: P, label: C, ...B }, L) => (R(), z(v(ct), Y({
|
|
7201
|
+
key: L,
|
|
7202
|
+
span: k
|
|
7203
|
+
}, { ref_for: !0 }, w), {
|
|
7200
7204
|
default: O(() => [
|
|
7201
|
-
|
|
7205
|
+
P ? (R(), z(se(v(he)(P(A, E), C, { path: b })), { key: 0 })) : (R(), z(se(v(he)(
|
|
7202
7206
|
be(v(Xe), {
|
|
7203
|
-
options:
|
|
7207
|
+
options: B,
|
|
7204
7208
|
value: b ? v(a)[b] : void 0,
|
|
7205
|
-
"onUpdate:value": (
|
|
7209
|
+
"onUpdate:value": (W) => m(W, b)
|
|
7206
7210
|
}),
|
|
7207
|
-
|
|
7211
|
+
C,
|
|
7208
7212
|
{ path: b }
|
|
7209
7213
|
)), { key: 1 }))
|
|
7210
7214
|
]),
|
|
7211
7215
|
_: 2
|
|
7212
|
-
}, 1040))), 128))
|
|
7216
|
+
}, 1040, ["span"]))), 128))
|
|
7213
7217
|
]),
|
|
7214
7218
|
_: 1
|
|
7215
7219
|
}, 16)) : ue("", !0),
|
|
7216
|
-
r.value.collapsedFlex ? (R(), z(v(Oe), fe(
|
|
7220
|
+
r.value.collapsedFlex ? (R(), z(v(Oe), fe(Y({ key: 1 }, p.flexProps)), {
|
|
7217
7221
|
default: O(() => [
|
|
7218
|
-
(R(!0), re(
|
|
7219
|
-
|
|
7222
|
+
(R(!0), re(Ae, null, Ze(p.options?.filter((b) => b.collapsed), ({ key: b, render: k, label: w, ...P }, C) => (R(), re(Ae, { key: C }, [
|
|
7223
|
+
k ? (R(), z(se(v(he)(k(A, E), w, { path: b })), { key: 0 })) : (R(), z(se(v(he)(
|
|
7220
7224
|
be(v(Xe), {
|
|
7221
7225
|
options: P,
|
|
7222
7226
|
value: b ? v(a)[b] : void 0,
|
|
@@ -7257,7 +7261,7 @@ function Wc(e, u, t, n, r, o) {
|
|
|
7257
7261
|
}, null, -1)
|
|
7258
7262
|
]));
|
|
7259
7263
|
}
|
|
7260
|
-
const Vc = /* @__PURE__ */
|
|
7264
|
+
const Vc = /* @__PURE__ */ xn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
7261
7265
|
__name: "PresetPicker",
|
|
7262
7266
|
props: {
|
|
7263
7267
|
value: {},
|
|
@@ -7288,35 +7292,35 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7288
7292
|
...e.columns ?? []
|
|
7289
7293
|
], l = G(!1);
|
|
7290
7294
|
function s() {
|
|
7291
|
-
o.value = structuredClone(Array.isArray(e.value) ?
|
|
7295
|
+
o.value = structuredClone(Array.isArray(e.value) ? Ee(e.value) : e.value ? [e.value] : []), l.value = !0;
|
|
7292
7296
|
}
|
|
7293
|
-
function c(h, b,
|
|
7294
|
-
P && (r.rowKey = P), e.multiple ? o.value.includes(h?.[r.rowKey]) ? (o.value = o.value.filter((
|
|
7297
|
+
function c(h, b, k, w, P) {
|
|
7298
|
+
P && (r.rowKey = P), e.multiple ? o.value.includes(h?.[r.rowKey]) ? (o.value = o.value.filter((C) => C !== h?.[r.rowKey]), a.value = a.value.filter((C) => C?.[r.rowKey] !== h?.[r.rowKey])) : (o.value.push(h?.[r.rowKey]), a.value.push(h)) : (o.value = [h?.[r.rowKey]], a.value = [h]);
|
|
7295
7299
|
}
|
|
7296
|
-
function f(h, b,
|
|
7297
|
-
if (P && (r.rowKey = P),
|
|
7298
|
-
const
|
|
7299
|
-
o.value.push(...
|
|
7300
|
-
const B = b.filter((L) => !a.value.some((
|
|
7300
|
+
function f(h, b, k, w, P) {
|
|
7301
|
+
if (P && (r.rowKey = P), k.action === "checkAll") {
|
|
7302
|
+
const C = h.filter((L) => !o.value.includes(L));
|
|
7303
|
+
o.value.push(...C);
|
|
7304
|
+
const B = b.filter((L) => !a.value.some((W) => W?.[r.rowKey] === L?.[r.rowKey]));
|
|
7301
7305
|
a.value.push(...B);
|
|
7302
7306
|
return;
|
|
7303
7307
|
}
|
|
7304
|
-
if (
|
|
7305
|
-
const
|
|
7306
|
-
o.value =
|
|
7307
|
-
const B = a.value.filter((L) => !w?.some((
|
|
7308
|
+
if (k.action === "uncheckAll") {
|
|
7309
|
+
const C = o.value.filter((L) => !w?.some((W) => W?.[r.rowKey] === L));
|
|
7310
|
+
o.value = C;
|
|
7311
|
+
const B = a.value.filter((L) => !w?.some((W) => W?.[r.rowKey] === L?.[r.rowKey]));
|
|
7308
7312
|
a.value = B;
|
|
7309
7313
|
}
|
|
7310
7314
|
}
|
|
7311
7315
|
function _() {
|
|
7312
7316
|
n("negativeClick"), l.value = !1;
|
|
7313
7317
|
}
|
|
7314
|
-
function
|
|
7318
|
+
function x() {
|
|
7315
7319
|
if (n("positiveClick"), e.multiple) {
|
|
7316
|
-
const h =
|
|
7320
|
+
const h = Ee(Ke(o)), b = h.map((k) => Ee(Ke(a.value.find((w) => w?.[r.rowKey] === k))));
|
|
7317
7321
|
n("update:value", h, b);
|
|
7318
7322
|
} else {
|
|
7319
|
-
const h = o.value[0] ?? null, b =
|
|
7323
|
+
const h = o.value[0] ?? null, b = Ee(Ke(a.value.find((k) => k?.[r.rowKey] === h)));
|
|
7320
7324
|
n("update:value", h, b);
|
|
7321
7325
|
}
|
|
7322
7326
|
l.value = !1;
|
|
@@ -7340,17 +7344,17 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7340
7344
|
onUpdateCheckedRowKeys: f,
|
|
7341
7345
|
onClickRow: c,
|
|
7342
7346
|
onNegativeClick: _,
|
|
7343
|
-
onPositiveClick:
|
|
7347
|
+
onPositiveClick: x,
|
|
7344
7348
|
clearValue: d
|
|
7345
7349
|
};
|
|
7346
7350
|
return u({
|
|
7347
7351
|
refs: m,
|
|
7348
7352
|
actions: p
|
|
7349
|
-
}), (h, b) => (R(), z(v(
|
|
7353
|
+
}), (h, b) => (R(), z(v(ki), Y({ value: E.value }, h.badgeProps), {
|
|
7350
7354
|
default: O(() => [
|
|
7351
|
-
|
|
7355
|
+
Z(v(xi), null, {
|
|
7352
7356
|
default: O(() => [
|
|
7353
|
-
|
|
7357
|
+
Z(v(Je), Y({ type: h.type }, h.buttonProps, { onClick: s }), {
|
|
7354
7358
|
icon: O(() => [
|
|
7355
7359
|
U(h.$slots, "button-icon")
|
|
7356
7360
|
]),
|
|
@@ -7362,7 +7366,7 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7362
7366
|
_: 3
|
|
7363
7367
|
}, 16, ["type"]),
|
|
7364
7368
|
U(h.$slots, "clear-button", {}, () => [
|
|
7365
|
-
A.value ? (R(), z(v(Je),
|
|
7369
|
+
A.value ? (R(), z(v(Je), Y({
|
|
7366
7370
|
key: 0,
|
|
7367
7371
|
circle: "",
|
|
7368
7372
|
type: h.type
|
|
@@ -7371,29 +7375,29 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7371
7375
|
}), {
|
|
7372
7376
|
icon: O(() => [
|
|
7373
7377
|
U(h.$slots, "clear-icon", {}, () => [
|
|
7374
|
-
|
|
7378
|
+
Z(Vc)
|
|
7375
7379
|
])
|
|
7376
7380
|
]),
|
|
7377
7381
|
_: 3
|
|
7378
7382
|
}, 16, ["type"])) : ue("", !0)
|
|
7379
7383
|
]),
|
|
7380
|
-
|
|
7384
|
+
Z(v(_i), Y({
|
|
7381
7385
|
show: l.value,
|
|
7382
|
-
"onUpdate:show": b[0] || (b[0] = (
|
|
7386
|
+
"onUpdate:show": b[0] || (b[0] = (k) => l.value = k),
|
|
7383
7387
|
style: { width: "auto" },
|
|
7384
7388
|
preset: "dialog",
|
|
7385
7389
|
title: h.placeholder,
|
|
7386
7390
|
"positive-text": "确认",
|
|
7387
7391
|
"negative-text": "取消"
|
|
7388
7392
|
}, h.modalProps, {
|
|
7389
|
-
onPositiveClick:
|
|
7393
|
+
onPositiveClick: x,
|
|
7390
7394
|
onNegativeClick: _,
|
|
7391
|
-
onClose: b[1] || (b[1] = (
|
|
7392
|
-
onAfterEnter: b[2] || (b[2] = (
|
|
7393
|
-
onAfterLeave: b[3] || (b[3] = (
|
|
7394
|
-
onEsc: b[4] || (b[4] = (
|
|
7395
|
-
onMaskClick: b[5] || (b[5] = (
|
|
7396
|
-
"onUpdate:show": b[6] || (b[6] = (
|
|
7395
|
+
onClose: b[1] || (b[1] = (k) => n("close")),
|
|
7396
|
+
onAfterEnter: b[2] || (b[2] = (k) => n("afterEnter")),
|
|
7397
|
+
onAfterLeave: b[3] || (b[3] = (k) => n("afterLeave")),
|
|
7398
|
+
onEsc: b[4] || (b[4] = (k) => n("esc")),
|
|
7399
|
+
onMaskClick: b[5] || (b[5] = (k) => n("maskClick")),
|
|
7400
|
+
"onUpdate:show": b[6] || (b[6] = (k) => n("update:show", k))
|
|
7397
7401
|
}), {
|
|
7398
7402
|
action: O(() => [
|
|
7399
7403
|
U(h.$slots, "modal-action")
|
|
@@ -7458,7 +7462,7 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7458
7462
|
[o.pageSize]: i.value.pageSize,
|
|
7459
7463
|
[o.search]: "",
|
|
7460
7464
|
...e.defaultParams
|
|
7461
|
-
}, { data: s, error: c, loading: f, params: _, run:
|
|
7465
|
+
}, { data: s, error: c, loading: f, params: _, run: x, runAsync: d, refresh: y, refreshAsync: A, cancel: E, mutate: m } = yn(e.api, {
|
|
7462
7466
|
defaultParams: [
|
|
7463
7467
|
l
|
|
7464
7468
|
],
|
|
@@ -7485,18 +7489,18 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7485
7489
|
function b(F, q) {
|
|
7486
7490
|
i.value.page = q[0] && o.page in q[0] ? Number(q[0][o.page]) : 1, i.value.pageSize = q[0] && o.pageSize in q[0] ? Number(q[0][o.pageSize]) : 10, i.value.itemCount = o.count in F ? Number(F[o.count]) : 0;
|
|
7487
7491
|
}
|
|
7488
|
-
function
|
|
7489
|
-
return
|
|
7492
|
+
function k(F) {
|
|
7493
|
+
return x({
|
|
7490
7494
|
..._.value[0],
|
|
7491
7495
|
...F
|
|
7492
7496
|
});
|
|
7493
7497
|
}
|
|
7494
7498
|
const w = G(""), P = Nr(() => {
|
|
7495
|
-
|
|
7499
|
+
k({
|
|
7496
7500
|
[o.page]: 1,
|
|
7497
7501
|
[o.search]: w.value
|
|
7498
7502
|
});
|
|
7499
|
-
}, typeof e.debounce == "number" ? e.debounce : 500),
|
|
7503
|
+
}, typeof e.debounce == "number" ? e.debounce : 500), C = {
|
|
7500
7504
|
onBlur: (F) => {
|
|
7501
7505
|
n("blur", F);
|
|
7502
7506
|
},
|
|
@@ -7511,26 +7515,26 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7511
7515
|
n("scroll", F);
|
|
7512
7516
|
},
|
|
7513
7517
|
onUpdateValue: (F, q) => {
|
|
7514
|
-
const ee = Array.isArray(F) ? p.value.filter((
|
|
7515
|
-
n("update:value", F, q,
|
|
7518
|
+
const ee = Array.isArray(F) ? p.value.filter((D) => F.includes(D[o.rowKey])) : p.value.find((D) => D[o.rowKey] === F) ?? null;
|
|
7519
|
+
n("update:value", F, q, Ee(Ke(ee)));
|
|
7516
7520
|
},
|
|
7517
7521
|
onSearch: (F) => {
|
|
7518
|
-
w.value = F, !f.value && (e.debounce ? P() :
|
|
7522
|
+
w.value = F, !f.value && (e.debounce ? P() : k({
|
|
7519
7523
|
[o.page]: 1,
|
|
7520
7524
|
[o.search]: w.value
|
|
7521
7525
|
}));
|
|
7522
7526
|
},
|
|
7523
7527
|
onUpdateShow: (F) => {
|
|
7524
|
-
F && (s.value || e.manual &&
|
|
7528
|
+
F && (s.value || e.manual && x(l));
|
|
7525
7529
|
}
|
|
7526
7530
|
}, B = {
|
|
7527
7531
|
onUpdatePage: (F) => {
|
|
7528
|
-
n("update:page", F), !f.value &&
|
|
7532
|
+
n("update:page", F), !f.value && k({
|
|
7529
7533
|
[o.page]: F
|
|
7530
7534
|
});
|
|
7531
7535
|
},
|
|
7532
7536
|
onUpdatePageSize: (F) => {
|
|
7533
|
-
n("update:pageSize", F), !f.value &&
|
|
7537
|
+
n("update:pageSize", F), !f.value && k({
|
|
7534
7538
|
[o.pageSize]: F
|
|
7535
7539
|
});
|
|
7536
7540
|
}
|
|
@@ -7541,7 +7545,7 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7541
7545
|
[o.value]: F
|
|
7542
7546
|
};
|
|
7543
7547
|
}
|
|
7544
|
-
const
|
|
7548
|
+
const W = {
|
|
7545
7549
|
loading: f,
|
|
7546
7550
|
data: s,
|
|
7547
7551
|
error: c,
|
|
@@ -7550,7 +7554,7 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7550
7554
|
rawList: p,
|
|
7551
7555
|
selectRef: r
|
|
7552
7556
|
}, ie = {
|
|
7553
|
-
run:
|
|
7557
|
+
run: x,
|
|
7554
7558
|
runAsync: d,
|
|
7555
7559
|
refresh: y,
|
|
7556
7560
|
refreshAsync: A,
|
|
@@ -7559,13 +7563,13 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7559
7563
|
setParams: (F) => {
|
|
7560
7564
|
Object.assign(_.value[0], F);
|
|
7561
7565
|
},
|
|
7562
|
-
runParams: (F) =>
|
|
7566
|
+
runParams: (F) => x(Object.assign(_.value[0], F)),
|
|
7563
7567
|
runParamsAsync: async (F) => d(Object.assign(_.value[0], F))
|
|
7564
7568
|
};
|
|
7565
7569
|
return u({
|
|
7566
|
-
refs:
|
|
7570
|
+
refs: W,
|
|
7567
7571
|
actions: ie
|
|
7568
|
-
}), (F, q) => (R(), z(v(Or),
|
|
7572
|
+
}), (F, q) => (R(), z(v(Or), Y({
|
|
7569
7573
|
ref: "select-ref",
|
|
7570
7574
|
remote: "",
|
|
7571
7575
|
filterable: "",
|
|
@@ -7580,33 +7584,33 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7580
7584
|
"fallback-option": L,
|
|
7581
7585
|
loading: v(f)
|
|
7582
7586
|
}, F.selectProps, {
|
|
7583
|
-
onBlur:
|
|
7584
|
-
onClear:
|
|
7585
|
-
onCreate:
|
|
7586
|
-
onFocus:
|
|
7587
|
-
onScroll:
|
|
7588
|
-
onSearch:
|
|
7589
|
-
"onUpdate:show":
|
|
7590
|
-
"onUpdate:value":
|
|
7587
|
+
onBlur: C.onBlur,
|
|
7588
|
+
onClear: C.onClear,
|
|
7589
|
+
onCreate: C.onCreate,
|
|
7590
|
+
onFocus: C.onFocus,
|
|
7591
|
+
onScroll: C.onScroll,
|
|
7592
|
+
onSearch: C.onSearch,
|
|
7593
|
+
"onUpdate:show": C.onUpdateShow,
|
|
7594
|
+
"onUpdate:value": C.onUpdateValue
|
|
7591
7595
|
}), {
|
|
7592
7596
|
header: O(() => [
|
|
7593
7597
|
U(F.$slots, "header", {
|
|
7594
|
-
refs:
|
|
7598
|
+
refs: W,
|
|
7595
7599
|
actions: ie
|
|
7596
7600
|
})
|
|
7597
7601
|
]),
|
|
7598
7602
|
action: O(() => [
|
|
7599
7603
|
U(F.$slots, "footer", {
|
|
7600
|
-
refs:
|
|
7604
|
+
refs: W,
|
|
7601
7605
|
actions: ie
|
|
7602
7606
|
}, () => [
|
|
7603
|
-
|
|
7607
|
+
Z(v(Oe), null, {
|
|
7604
7608
|
default: O(() => [
|
|
7605
7609
|
U(F.$slots, "footer-extra", {
|
|
7606
|
-
refs:
|
|
7610
|
+
refs: W,
|
|
7607
7611
|
actions: ie
|
|
7608
7612
|
}),
|
|
7609
|
-
F.pagination ? (R(), z(v(Lr),
|
|
7613
|
+
F.pagination ? (R(), z(v(Lr), Y({
|
|
7610
7614
|
key: 0,
|
|
7611
7615
|
style: { "margin-left": "auto" },
|
|
7612
7616
|
simple: "",
|
|
@@ -7641,7 +7645,7 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7641
7645
|
},
|
|
7642
7646
|
emits: ["before", "success", "error", "finally"],
|
|
7643
7647
|
setup(e, { expose: u, emit: t }) {
|
|
7644
|
-
const n = t, r = { page: "page", pageSize: "pageSize", search: "search", ...e.fields }, { loading: o, data: a, error: i, params: l, run: s, runAsync: c, refresh: f, refreshAsync: _, cancel:
|
|
7648
|
+
const n = t, r = { page: "page", pageSize: "pageSize", search: "search", ...e.fields }, { loading: o, data: a, error: i, params: l, run: s, runAsync: c, refresh: f, refreshAsync: _, cancel: x, mutate: d } = yn(e.api, {
|
|
7645
7649
|
defaultParams: [
|
|
7646
7650
|
{
|
|
7647
7651
|
[r.page]: 1,
|
|
@@ -7674,7 +7678,7 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7674
7678
|
runAsync: c,
|
|
7675
7679
|
refresh: f,
|
|
7676
7680
|
refreshAsync: _,
|
|
7677
|
-
cancel:
|
|
7681
|
+
cancel: x,
|
|
7678
7682
|
mutate: d,
|
|
7679
7683
|
setParam: (E) => {
|
|
7680
7684
|
Object.assign(l.value[0], E);
|
|
@@ -7707,7 +7711,7 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7707
7711
|
t.value = !1, u.value = r.value;
|
|
7708
7712
|
}
|
|
7709
7713
|
return (i, l) => (R(), re("div", { onClick: o }, [
|
|
7710
|
-
t.value ? (R(), z(v(ln),
|
|
7714
|
+
t.value ? (R(), z(v(ln), Y({
|
|
7711
7715
|
key: 0,
|
|
7712
7716
|
ref_key: "inputRef",
|
|
7713
7717
|
ref: n,
|
|
@@ -7716,8 +7720,8 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7716
7720
|
"onUpdate:value": l[0] || (l[0] = (s) => r.value = s),
|
|
7717
7721
|
onChange: a,
|
|
7718
7722
|
onBlur: a
|
|
7719
|
-
}), null, 16, ["value"])) : (R(), re(
|
|
7720
|
-
|
|
7723
|
+
}), null, 16, ["value"])) : (R(), re(Ae, { key: 1 }, [
|
|
7724
|
+
xu(ou(r.value), 1)
|
|
7721
7725
|
], 64))
|
|
7722
7726
|
]));
|
|
7723
7727
|
}
|
|
@@ -7733,7 +7737,7 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7733
7737
|
const t = u;
|
|
7734
7738
|
return (n, r) => (R(), z(v(Rr), fe(qe(n.tooltipProps)), {
|
|
7735
7739
|
trigger: O(() => [
|
|
7736
|
-
|
|
7740
|
+
Z(v(Je), Y(n.buttonProps, {
|
|
7737
7741
|
onClick: r[0] || (r[0] = (o) => t("click", o))
|
|
7738
7742
|
}), {
|
|
7739
7743
|
icon: O(() => [
|
|
@@ -7747,7 +7751,7 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7747
7751
|
]),
|
|
7748
7752
|
default: O(() => [
|
|
7749
7753
|
U(n.$slots, "tooltip", {}, () => [
|
|
7750
|
-
|
|
7754
|
+
xu(ou(n.value), 1)
|
|
7751
7755
|
])
|
|
7752
7756
|
]),
|
|
7753
7757
|
_: 3
|