@oiij/naive-ui 0.0.31 → 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.
@@ -1,4 +1,4 @@
1
- import { inject as Fr, onBeforeMount as Ro, defineComponent as me, createBlock as z, openBlock as R, Transition as Oo, mergeProps as Z, unref as v, withCtx as O, renderSlot as U, ref as G, toValue as Ke, isRef as Kt, isReactive as Mo, watchEffect as Se, watch as Qe, computed as oe, nextTick as Sr, normalizeClass as Ru, createElementVNode as uu, normalizeStyle as rn, createVNode as V, 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 Ee, renderList as Ze, toRaw as ye, toRef as zo, withModifiers as Bo, mergeModels as Uo, useModel as qo } from "vue";
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
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) {
@@ -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, Z({
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"
@@ -436,7 +436,7 @@ const {
436
436
  } = Object;
437
437
  let {
438
438
  freeze: ke,
439
- seal: Ce,
439
+ seal: De,
440
440
  create: qr
441
441
  } = Object, {
442
442
  apply: Jt,
@@ -445,7 +445,7 @@ let {
445
445
  ke || (ke = function(u) {
446
446
  return u;
447
447
  });
448
- Ce || (Ce = function(u) {
448
+ De || (De = function(u) {
449
449
  return u;
450
450
  });
451
451
  Jt || (Jt = function(u, t, n) {
@@ -454,7 +454,7 @@ Jt || (Jt = function(u, t, n) {
454
454
  en || (en = function(u, t) {
455
455
  return new u(...t);
456
456
  });
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), Fe = xe(Object.prototype.hasOwnProperty), ge = xe(RegExp.prototype.test), Cu = oa(TypeError);
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
458
  function xe(e) {
459
459
  return function(u) {
460
460
  u instanceof RegExp && (u.lastIndex = 0);
@@ -486,13 +486,13 @@ function j(e, u) {
486
486
  }
487
487
  function ia(e) {
488
488
  for (let u = 0; u < e.length; u++)
489
- Fe(e, u) || (e[u] = null);
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
- Fe(e, t) && (Array.isArray(n) ? u[t] = ia(n) : n && typeof n == "object" && n.constructor === Object ? u[t] = Ue(n) : u[t] = n);
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) {
@@ -511,13 +511,13 @@ function Du(e, u) {
511
511
  }
512
512
  return t;
513
513
  }
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 = Ce(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ca = Ce(/<%[\w\W]*|[\w\W]*%>/gm), fa = Ce(/\$\{[\w\W]*/gm), da = Ce(/^data-[\-\w.\u00B7-\uFFFF]+$/), pa = Ce(/^aria-[\-\w]+$/), jr = Ce(
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 = Ce(/^(?:\w+script|data):/i), ba = Ce(
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 = Ce(/^html$/i), ma = Ce(/^[a-z][.\w]*(-[.\w]+)+$/i);
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,
@@ -600,29 +600,29 @@ function Gr() {
600
600
  implementation: k,
601
601
  createNodeIterator: w,
602
602
  createDocumentFragment: P,
603
- getElementsByTagName: D
603
+ getElementsByTagName: C
604
604
  } = t, {
605
605
  importNode: B
606
606
  } = n;
607
607
  let L = Jn();
608
608
  u.isSupported = typeof Ur == "function" && typeof p == "function" && k && k.createHTMLDocument !== void 0;
609
609
  const {
610
- MUSTACHE_EXPR: Y,
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: C,
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, N = null;
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 W = Object.seal(qr(null, {
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
- })), Pe = 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;
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,7 +662,7 @@ 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, N = Fe(g, "ALLOWED_TAGS") ? j({}, g.ALLOWED_TAGS, ae) : H, X = Fe(g, "ALLOWED_ATTR") ? j({}, g.ALLOWED_ATTR, ae) : te, St = Fe(g, "ALLOWED_NAMESPACES") ? j({}, g.ALLOWED_NAMESPACES, Ot) : wo, Dt = Fe(g, "ADD_URI_SAFE_ATTR") ? j(Ue(Fn), g.ADD_URI_SAFE_ATTR, ae) : Fn, Cn = Fe(g, "ADD_DATA_URI_TAGS") ? j(Ue(Dn), g.ADD_DATA_URI_TAGS, ae) : Dn, fu = Fe(g, "FORBID_CONTENTS") ? j({}, g.FORBID_CONTENTS, ae) : wn, Pe = Fe(g, "FORBID_TAGS") ? j({}, g.FORBID_TAGS, ae) : Ue({}), je = Fe(g, "FORBID_ATTR") ? j({}, g.FORBID_ATTR, ae) : Ue({}), cu = Fe(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, W = g.CUSTOM_ELEMENT_HANDLING || {}, g.CUSTOM_ELEMENT_HANDLING && Sn(g.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (W.tagNameCheck = g.CUSTOM_ELEMENT_HANDLING.tagNameCheck), g.CUSTOM_ELEMENT_HANDLING && Sn(g.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (W.attributeNameCheck = g.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), g.CUSTOM_ELEMENT_HANDLING && typeof g.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (W.allowCustomizedBuiltInElements = g.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), He && (au = !1), qu && (su = !0), cu && (N = j({}, Yn), X = [], cu.html === !0 && (j(N, Zn), j(X, Xn)), cu.svg === !0 && (j(N, Mt), j(X, $t), j(X, Qu)), cu.svgFilters === !0 && (j(N, Lt), j(X, $t), j(X, Qu)), cu.mathMl === !0 && (j(N, Nt), j(X, Kn), j(X, Qu))), g.ADD_TAGS && (N === H && (N = Ue(N)), j(N, 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 && (N["#text"] = !0), nu && j(N, ["html", "head", "body"]), N.table && (j(N, ["tbody"]), delete Pe.tbody), g.TRUSTED_TYPES_POLICY) {
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")
@@ -735,7 +735,7 @@ function Gr() {
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 ? D.call(S, nu ? "html" : "body")[0] : nu ? S.documentElement : de;
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: N
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 (!N[M] || Pe[M]) {
768
- if (!Pe[M] && $n(M) && (W.tagNameCheck instanceof RegExp && ge(W.tagNameCheck, M) || W.tagNameCheck instanceof Function && W.tagNameCheck(M)))
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 _e = ne - 1; _e >= 0; --_e) {
775
- const Be = y(de[_e], !0);
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([Y, ie, F], (J) => {
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) && (W.tagNameCheck instanceof RegExp && ge(W.tagNameCheck, g) || W.tagNameCheck instanceof Function && W.tagNameCheck(g)) && (W.attributeNameCheck instanceof RegExp && ge(W.attributeNameCheck, S) || W.attributeNameCheck instanceof Function && W.attributeNameCheck(S)) || // Alternative, second condition checks if it's an `is`-attribute, AND
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" && W.allowCustomizedBuiltInElements && (W.tagNameCheck instanceof RegExp && ge(W.tagNameCheck, M) || W.tagNameCheck instanceof Function && W.tagNameCheck(M)))
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(C, wu(M, $, "")))) {
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: _e,
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([Y, ie, F], (Bn) => {
852
+ He && Ku([W, ie, F], (Bn) => {
853
853
  pe = wu(pe, Bn, " ");
854
854
  });
855
855
  const zn = ae(g.nodeName);
@@ -857,7 +857,7 @@ function Gr() {
857
857
  hu(ne, g);
858
858
  continue;
859
859
  }
860
- if (h && typeof x == "object" && typeof x.getAttributeType == "function" && !_e)
860
+ if (h && typeof x == "object" && typeof x.getAttributeType == "function" && !ve)
861
861
  switch (x.getAttributeType(zn, Eu)) {
862
862
  case "TrustedHTML": {
863
863
  pe = h.createHTML(pe);
@@ -870,7 +870,7 @@ function Gr() {
870
870
  }
871
871
  if (pe !== Rt)
872
872
  try {
873
- _e ? g.setAttributeNS(_e, ne, pe) : g.setAttribute(ne, pe), Pt(g) ? Re(g) : Wn(u.removed);
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 (!N[Be] || Pe[Be])
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 _e = nu ? S.outerHTML : S.innerHTML;
926
- return nu && N["!doctype"] && S.ownerDocument && S.ownerDocument.doctype && S.ownerDocument.doctype.name && ge(Hr, S.ownerDocument.doctype.name) && (_e = "<!DOCTYPE " + S.ownerDocument.doctype.name + `>
927
- ` + _e), He && Ku([Y, ie, F], (Be) => {
928
- _e = wu(_e, Be, " ");
929
- }), h && ju ? h.createHTML(_e) : _e;
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;
@@ -1839,16 +1839,16 @@ _u.prototype.render = function(e, u, t) {
1839
1839
  }
1840
1840
  return n;
1841
1841
  };
1842
- function Ae() {
1842
+ function we() {
1843
1843
  this.__rules__ = [], this.__cache__ = null;
1844
1844
  }
1845
- Ae.prototype.__find__ = function(e) {
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
- Ae.prototype.__compile__ = function() {
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
- Ae.prototype.at = function(e, u, t) {
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
- Ae.prototype.before = function(e, u, t, n) {
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
- Ae.prototype.after = function(e, u, t, n) {
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
- Ae.prototype.push = function(e, u, t) {
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
- Ae.prototype.enable = function(e, u) {
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
- Ae.prototype.enableOnly = function(e, u) {
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
- Ae.prototype.disable = function(e, u) {
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
- Ae.prototype.getRules = function(e) {
1931
+ we.prototype.getRules = function(e) {
1932
1932
  return this.__cache__ === null && this.__compile__(), this.__cache__[e] || [];
1933
1933
  };
1934
- function Te(e, u, t) {
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
- Te.prototype.attrIndex = function(u) {
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
- Te.prototype.attrPush = function(u) {
1946
+ Pe.prototype.attrPush = function(u) {
1947
1947
  this.attrs ? this.attrs.push(u) : this.attrs = [u];
1948
1948
  };
1949
- Te.prototype.attrSet = function(u, t) {
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
- Te.prototype.attrGet = function(u) {
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
- Te.prototype.attrJoin = function(u, t) {
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 = Te;
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;
@@ -2162,7 +2162,7 @@ const zt = [
2162
2162
  ["text_join", S0]
2163
2163
  ];
2164
2164
  function mn() {
2165
- this.ruler = new Ae();
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 Te(e, u, t);
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 = Te;
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];
@@ -2412,9 +2412,9 @@ function M0(e, u, t, n) {
2412
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 D = e.src.charCodeAt(r);
2416
- if (K(D))
2417
- D === 9 ? P += 4 - (P + e.bsCount[d] + (w ? 1 : 0)) % 4 : P++;
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++;
@@ -2553,10 +2553,10 @@ function $0(e, u, t, n) {
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 D = [l, 0];
2557
- i.map = D, f && (i.info = e.src.slice(a, x - 1));
2558
- const B = e.tight, L = e.tShift[l], Y = 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] = Y, e.tight = B, i = e.push("list_item_close", "li", -1), i.markup = String.fromCharCode(d), l = e.line, D[1] = l, l >= t || e.sCount[l] < e.blkIndent || e.sCount[l] - e.blkIndent >= 4)
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++)
@@ -2589,13 +2589,13 @@ 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 D = !1;
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
- D = !0;
2595
+ C = !0;
2596
2596
  break;
2597
2597
  }
2598
- if (e.parentType = P, D)
2598
+ if (e.parentType = P, C)
2599
2599
  return null;
2600
2600
  }
2601
2601
  const b = e.bMarks[m] + e.tShift[m], k = e.eMarks[m];
@@ -2865,7 +2865,7 @@ const et = [
2865
2865
  ["paragraph", ul]
2866
2866
  ];
2867
2867
  function yt() {
2868
- this.ruler = new Ae();
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 Te("text", "", 0);
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 Te(e, u, t);
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
  };
@@ -2917,7 +2917,7 @@ Bu.prototype.scanDelims = function(e, u) {
2917
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
2918
  return { can_open: _ && (u || !x || l), can_close: x && (u || !_ || s), length: a };
2919
2919
  };
2920
- Bu.prototype.Token = Te;
2920
+ Bu.prototype.Token = Pe;
2921
2921
  function tl(e) {
2922
2922
  switch (e) {
2923
2923
  case 10:
@@ -3398,10 +3398,10 @@ const Ut = [
3398
3398
  ["fragments_join", Cl]
3399
3399
  ];
3400
3400
  function Uu() {
3401
- this.ruler = new Ae();
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 Ae();
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 we(e, u) {
3596
- if (!(this instanceof we))
3597
- return new we(e, u);
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
- we.prototype.add = function(u, t) {
3600
+ Ce.prototype.add = function(u, t) {
3601
3601
  return this.__schemas__[u] = t, pt(this), this;
3602
3602
  };
3603
- we.prototype.set = function(u) {
3603
+ Ce.prototype.set = function(u) {
3604
3604
  return this.__opts__ = tn(this.__opts__, u), this;
3605
3605
  };
3606
- we.prototype.test = function(u) {
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
- we.prototype.pretest = function(u) {
3619
+ Ce.prototype.pretest = function(u) {
3620
3620
  return this.re.pretest.test(u);
3621
3621
  };
3622
- we.prototype.testSchemaAt = function(u, t, n) {
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
- we.prototype.match = function(u) {
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,22 +3631,22 @@ 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
- we.prototype.matchAtStart = function(u) {
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
- we.prototype.tlds = function(u, t) {
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
- we.prototype.normalize = function(u) {
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
- we.prototype.onCompile = function() {
3649
+ Ce.prototype.onCompile = function() {
3650
3650
  };
3651
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",
@@ -3970,15 +3970,15 @@ function rs(e) {
3970
3970
  }
3971
3971
  return gu(fn(u), gu.defaultChars + "%");
3972
3972
  }
3973
- function De(e, u) {
3974
- if (!(this instanceof De))
3975
- return new De(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 we(), 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);
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
- De.prototype.set = function(e) {
3978
+ Fe.prototype.set = function(e) {
3979
3979
  return _t(this.options, e), this;
3980
3980
  };
3981
- De.prototype.configure = function(e) {
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
- De.prototype.enable = function(e, u) {
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
- De.prototype.disable = function(e, u) {
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,32 +4015,32 @@ 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
- De.prototype.use = function(e) {
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
- De.prototype.parse = function(e, u) {
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
- De.prototype.render = function(e, u) {
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
- De.prototype.parseInline = function(e, u) {
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
- De.prototype.renderInline = function(e, u) {
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) && Se(() => {
4040
+ Kt(e) && Te(() => {
4041
4041
  o.value = Ke(e.value);
4042
4042
  });
4043
- const a = G(""), i = G(), l = De({ ...r });
4043
+ const a = G(""), i = G(), l = Fe({ ...r });
4044
4044
  function s(c) {
4045
4045
  const f = l.render(c);
4046
4046
  if (a.value = n ? xa.sanitize(f) : f, i.value) i.value.innerHTML = a.value;
@@ -4256,8 +4256,8 @@ function ls() {
4256
4256
  case "Array":
4257
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, D) {
4260
- b[D] = m(P, h);
4259
+ p.forEach(function(P, C) {
4260
+ b[C] = m(P, h);
4261
4261
  }), /** @type {any} */
4262
4262
  b);
4263
4263
  default:
@@ -4481,13 +4481,13 @@ function ls() {
4481
4481
  for (var P in k)
4482
4482
  if (k.hasOwnProperty(P)) {
4483
4483
  if (P == p)
4484
- for (var D in h)
4485
- h.hasOwnProperty(D) && (w[D] = h[D]);
4484
+ for (var C in h)
4485
+ h.hasOwnProperty(C) && (w[C] = h[C]);
4486
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, Y) {
4490
- Y === B && L != m && (this[L] = w);
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
@@ -4497,8 +4497,8 @@ function ls() {
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 D = p[P], B = i.util.type(D);
4501
- B === "Object" && !k[w(D)] ? (k[w(D)] = !0, m(D, h, null, k)) : B === "Array" && !k[w(D)] && (k[w(D)] = !0, m(D, h, P, k));
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
  },
@@ -4576,34 +4576,34 @@ function ls() {
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, D = {
4579
+ var P = m.textContent, C = {
4580
4580
  element: m,
4581
4581
  language: b,
4582
4582
  grammar: k,
4583
4583
  code: P
4584
4584
  };
4585
- function B(Y) {
4586
- D.highlightedCode = Y, i.hooks.run("before-insert", D), D.element.innerHTML = D.highlightedCode, i.hooks.run("after-highlight", D), i.hooks.run("complete", D), h && h.call(D.element);
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", D), w = D.element.parentElement, w && w.nodeName.toLowerCase() === "pre" && !w.hasAttribute("tabindex") && w.setAttribute("tabindex", "0"), !D.code) {
4589
- i.hooks.run("complete", D), h && h.call(D.element);
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", D), !D.grammar) {
4593
- B(i.util.encode(D.code));
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(Y) {
4599
- B(Y.data);
4598
+ L.onmessage = function(W) {
4599
+ B(W.data);
4600
4600
  }, L.postMessage(JSON.stringify({
4601
- language: D.language,
4602
- code: D.code,
4601
+ language: C.language,
4602
+ code: C.code,
4603
4603
  immediateClose: !0
4604
4604
  }));
4605
4605
  } else
4606
- B(i.highlight(D.code, D.grammar, D.language));
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
@@ -4733,8 +4733,8 @@ function ls() {
4733
4733
  }, w = p.alias;
4734
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 D in k.attributes)
4737
- P += " " + D + '="' + (k.attributes[D] || "").replace(/"/g, "&quot;") + '"';
4736
+ for (var C in k.attributes)
4737
+ P += " " + C + '="' + (k.attributes[C] || "").replace(/"/g, "&quot;") + '"';
4738
4738
  return "<" + k.tag + ' class="' + k.classes.join(" ") + '"' + P + ">" + k.content + "</" + k.tag + ">";
4739
4739
  };
4740
4740
  function s(m, p, h, b) {
@@ -4749,46 +4749,46 @@ function ls() {
4749
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 D = h[P];
4753
- D = Array.isArray(D) ? D : [D];
4754
- for (var B = 0; B < D.length; ++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 = D[B], Y = L.inside, ie = !!L.lookbehind, F = !!L.greedy, q = L.alias;
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 C = L.pattern || L, $ = b.next, T = k; $ !== p.tail && !(w && T >= w.reach); T += $.value.length, $ = $.next) {
4763
- var Q = $.value;
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 N = 1, H;
4767
+ var $ = 1, H;
4768
4768
  if (F) {
4769
- if (H = s(C, T, m, ie), !H || H.index >= m.length)
4769
+ if (H = s(D, T, m, ie), !H || H.index >= m.length)
4770
4770
  break;
4771
- var Pe = H.index, X = H.index + H[0].length, te = T;
4772
- for (te += $.value.length; Pe >= te; )
4773
- $ = $.next, te += $.value.length;
4774
- if (te -= $.value.length, T = te, $.value instanceof l)
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 W = $; W !== p.tail && (te < X || typeof W.value == "string"); W = W.next)
4777
- N++, te += W.value.length;
4778
- N--, Q = m.slice(T, te), H.index -= T;
4779
- } else if (H = s(C, 0, Q, ie), !H)
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 Pe = H.index, je = H[0], iu = Q.slice(0, Pe), au = Q.slice(Pe + je.length), lu = T + Q.length;
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 = $.prev;
4784
- iu && (tu = _(p, tu, iu), T += iu.length), x(p, tu, N);
4785
- var He = new l(P, Y ? i.tokenize(je, Y) : je, q, je);
4786
- if ($ = _(p, tu, He), au && _(p, $, au), N > 1) {
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, $.prev, T, Ge), w && Ge.reach > w.reach && (w.reach = Ge.reach);
4791
+ c(m, p, h, N.prev, T, Ge), w && Ge.reach > w.reach && (w.reach = Ge.reach);
4792
4792
  }
4793
4793
  }
4794
4794
  }
@@ -5257,9 +5257,9 @@ function ls() {
5257
5257
  A.setAttribute(i, s);
5258
5258
  var w = x(A.getAttribute("data-range"));
5259
5259
  if (w) {
5260
- var P = k.split(/\r\n?|\n/g), D = w[0], B = w[1] == null ? P.length : w[1];
5261
- D < 0 && (D += P.length), D = Math.max(0, Math.min(D - 1, P.length)), B < 0 && (B += P.length), B = Math.max(0, Math.min(B, P.length)), k = P.slice(D, B).join(`
5262
- `), A.hasAttribute("data-start") || A.setAttribute("data-start", String(D + 1));
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
5264
  E.textContent = k, t.highlightElement(E);
5265
5265
  },
@@ -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), Z({
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
- V(v(Oe), { vertical: "" }, {
5433
+ Z(v(Oe), { vertical: "" }, {
5434
5434
  default: O(() => [
5435
5435
  U(n.$slots, "header"),
5436
- V(v(Br), null, {
5436
+ Z(v(Br), null, {
5437
5437
  default: O(() => [
5438
5438
  n.loading ? U(n.$slots, "loading", { key: 0 }, () => [
5439
- V(v(Pr), { style: { height: "44px" } })
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
- V(v(bs), {
5445
+ Z(v(bs), {
5446
5446
  typing: n.typing,
5447
5447
  markdown: n.markdown,
5448
5448
  value: n.content,
@@ -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 Se(() => {
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
- V(v(Pr), fe(qe(t.spinProps)), Tr({ _: 2 }, [
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
- V(v(Go), fe(qe(r.loadingBarProps)), {
5572
+ Z(v(Go), fe(qe(r.loadingBarProps)), {
5573
5573
  default: O(() => [
5574
- V(v(Wo), fe(qe(r.dialogProviderProps)), {
5574
+ Z(v(Wo), fe(qe(r.dialogProviderProps)), {
5575
5575
  default: O(() => [
5576
- V(v(Vo), fe(qe(r.modalProviderProps)), {
5576
+ Z(v(Vo), fe(qe(r.modalProviderProps)), {
5577
5577
  default: O(() => [
5578
- V(v(Zo), fe(qe(r.notificationProviderProps)), {
5578
+ Z(v(Zo), fe(qe(r.notificationProviderProps)), {
5579
5579
  default: O(() => [
5580
- V(v(Yo), fe(qe(r.messageProviderProps)), {
5580
+ Z(v(Yo), fe(qe(r.messageProviderProps)), {
5581
5581
  default: O(() => [
5582
5582
  U(r.$slots, "default"),
5583
- V(v(n))
5583
+ Z(v(n))
5584
5584
  ]),
5585
5585
  _: 3
5586
5586
  }, 16)
@@ -5597,7 +5597,7 @@ const As = /* @__PURE__ */ me({
5597
5597
  _: 3
5598
5598
  }, 16),
5599
5599
  r.globalStyle ? (R(), z(v(Xo), { key: 0 })) : ue("", !0),
5600
- V(v(As), Z({ show: u.value }, r.fullLoadingProps), null, 16, ["show"])
5600
+ Z(v(As), Y({ show: u.value }, r.fullLoadingProps), null, 16, ["show"])
5601
5601
  ]),
5602
5602
  _: 3
5603
5603
  }, 16));
@@ -5650,13 +5650,13 @@ const Fs = /* @__PURE__ */ xn(ws, [["render", Ds]]), Jc = /* @__PURE__ */ me({
5650
5650
  onClick: o
5651
5651
  }, [
5652
5652
  U(a.$slots, "default", {}, () => [
5653
- V(v(Je), Z({
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
- V(Fs)
5659
+ Z(Fs)
5660
5660
  ])
5661
5661
  ]),
5662
5662
  _: 3
@@ -5674,7 +5674,7 @@ const Fs = /* @__PURE__ */ xn(ws, [["render", Ds]]), Jc = /* @__PURE__ */ me({
5674
5674
  }
5675
5675
  }), ko = (e, { manual: u, ready: t = !0, refreshDeps: n = [], refreshDepsAction: r }) => {
5676
5676
  const o = G(!1);
5677
- return Se(() => {
5677
+ return Te(() => {
5678
5678
  !u && e.options.refreshDeps !== !0 && (o.value = v(t));
5679
5679
  }), n instanceof Array ? Qe(
5680
5680
  [o, ...n],
@@ -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 Se(() => {
5735
+ return Te(() => {
5736
5736
  if (!u)
5737
5737
  return;
5738
5738
  const c = s(u);
@@ -5852,8 +5852,8 @@ function vo(e, u, t) {
5852
5852
  return s = k, i = setTimeout(E, u), c ? x(k) : a;
5853
5853
  }
5854
5854
  function y(k) {
5855
- var w = k - l, P = k - s, D = u - w;
5856
- return f ? ic(D, o - P) : D;
5855
+ var w = k - l, P = k - s, C = u - w;
5856
+ return f ? ic(C, o - P) : C;
5857
5857
  }
5858
5858
  function A(k) {
5859
5859
  var w = k - l, P = k - s;
@@ -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 Se((i) => {
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 ve = new bc(), mc = (e, { ready: u = !0, debugKey: t, ...n }) => {
5980
+ const ye = new bc(), mc = (e, { ready: u = !0, debugKey: t, ...n }) => {
5981
5981
  const r = () => {
5982
- if (t && !ve.has(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
- ve.insert(t, {
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 Se(() => {
5996
- t && ve.has(t) && ve.emit({
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 && ve.has(t) && ve.emit({
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 && ve.has(t) && ve.emit({
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 && ve.has(t) && ve.emit({
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 && ve.has(t) && ve.emit({
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 && ve.has(t) && ve.emit({
6044
+ r(), t && ye.has(t) && ye.emit({
6045
6045
  ...e.state,
6046
6046
  key: t,
6047
6047
  data: a,
@@ -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 Se(() => {
6106
+ return Te(() => {
6107
6107
  v(u) || i();
6108
6108
  }), v(u) ? {
6109
6109
  name: "pollingPlugin",
@@ -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 Se((o) => {
6164
+ return Te((o) => {
6165
6165
  if (v(u)) {
6166
6166
  const a = vc(
6167
6167
  e.refresh.bind(e),
@@ -6318,14 +6318,14 @@ class Rc {
6318
6318
  if (!this.options.concurrent && x !== this.count)
6319
6319
  return new Promise(() => {
6320
6320
  });
6321
- const D = this.options.formatResult ? this.options.formatResult(h) : h, B = {
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: D,
6325
+ data: C,
6326
6326
  error: void 0,
6327
6327
  loading: !1
6328
- }), (k = (b = this.options).onSuccess) == null || k.call(b, D, u), this.runPluginHandler("onSuccess", D, u, B), this.previousValidData = D, (P = (w = this.options).onFinally) == null || P.call(w, u, D, void 0), (this.options.concurrent || x === this.count) && this.runPluginHandler("onFinally", u, D, void 0), D;
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;
@@ -6401,7 +6401,7 @@ function Lc(e, u = {}, t = []) {
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 (Se(() => {
6404
+ if (Te(() => {
6405
6405
  if (!o) {
6406
6406
  const y = x.state.params || u.defaultParams || [];
6407
6407
  d.value && x.options.refreshDeps === !0 && s.value && x.run(...y);
@@ -6492,7 +6492,7 @@ const Dr = /* @__PURE__ */ xn($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
- Se(() => {
6495
+ Te(() => {
6496
6496
  r.value = e.value ?? null;
6497
6497
  });
6498
6498
  const i = Nr(() => {
@@ -6507,11 +6507,11 @@ const Dr = /* @__PURE__ */ xn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
6507
6507
  function s(c) {
6508
6508
  c.key === "Enter" && l();
6509
6509
  }
6510
- return Se(() => {
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
- V(v(ln), Z({
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__ */ xn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
6522
6522
  prefix: O(() => [
6523
6523
  U(c.$slots, "prefix", {}, () => [
6524
6524
  U(c.$slots, "prefix-icon", {}, () => [
6525
- V(Dr, { style: { width: "18px", height: "18px" } })
6525
+ Z(Dr, { style: { width: "18px", height: "18px" } })
6526
6526
  ])
6527
6527
  ])
6528
6528
  ]),
@@ -6532,13 +6532,13 @@ const Dr = /* @__PURE__ */ xn($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), Z({
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(Ee, { key: 0 }, [
6541
+ o.value === "text" ? (R(), re(Ae, { key: 0 }, [
6542
6542
  xu(" 搜索 ")
6543
6543
  ], 64)) : ue("", !0)
6544
6544
  ]),
@@ -6548,7 +6548,7 @@ const Dr = /* @__PURE__ */ xn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
6548
6548
  name: "icon",
6549
6549
  fn: O(() => [
6550
6550
  U(c.$slots, "button-icon", {}, () => [
6551
- V(Dr)
6551
+ Z(Dr)
6552
6552
  ])
6553
6553
  ]),
6554
6554
  key: "0"
@@ -6663,12 +6663,12 @@ const Dr = /* @__PURE__ */ xn($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 C = typeof e.filterLayout == "string" ? [e.filterLayout, e.filterLayout] : e.filterLayout;
6666
+ const D = typeof e.filterLayout == "string" ? [e.filterLayout, e.filterLayout] : e.filterLayout;
6667
6667
  return {
6668
- grid: C[0] === "grid",
6669
- flex: C[0] === "flex",
6670
- collapsedGrid: C[1] === "grid",
6671
- collapsedFlex: C[1] === "flex"
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__ */ xn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
6676
6676
  showSizePicker: !0,
6677
6677
  pageSizes: [10, 20, 30],
6678
6678
  pageSlot: 5,
6679
- prefix: (C) => `共${C.itemCount}条数据`,
6679
+ prefix: (D) => `共${D.itemCount}条数据`,
6680
6680
  ...e.pagination && typeof e.pagination == "boolean" ? {} : e.pagination
6681
6681
  }), c = G({
6682
6682
  page: 1,
@@ -6692,99 +6692,99 @@ const Dr = /* @__PURE__ */ xn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
6692
6692
  ],
6693
6693
  manual: e.manual,
6694
6694
  ...e.requestOptions,
6695
- onBefore: (C) => {
6696
- e.requestOptions?.onBefore?.(C), n("before", C);
6695
+ onBefore: (D) => {
6696
+ e.requestOptions?.onBefore?.(D), n("before", D);
6697
6697
  },
6698
- onSuccess: (C, $) => {
6699
- e.requestOptions?.onSuccess?.(C, $), n("success", C, $), D(C, $);
6698
+ onSuccess: (D, N) => {
6699
+ e.requestOptions?.onSuccess?.(D, N), n("success", D, N), C(D, N);
6700
6700
  },
6701
- onError: (C, $) => {
6702
- e.requestOptions?.onError?.(C, $), n("error", C, $);
6701
+ onError: (D, N) => {
6702
+ e.requestOptions?.onError?.(D, N), n("error", D, N);
6703
6703
  },
6704
- onFinally: (C, $, T) => {
6705
- e.requestOptions?.onFinally?.(C, $, T), n("finally", C, $, T);
6704
+ onFinally: (D, N, T) => {
6705
+ e.requestOptions?.onFinally?.(D, N, T), n("finally", D, N, T);
6706
6706
  }
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((C, $) => C + Number($.width ?? 100), 0));
6708
- function D(C, $) {
6709
- C[i.list]?.forEach((N) => {
6710
- k.some((H) => H[i.rowKey] === N[i.rowKey]) || k.push(N);
6711
- }), c.value.page = i.page in $[0] ? Number($[0][i.page]) : 1, c.value.pageSize = i.pageSize in $[0] ? Number($[0][i.pageSize]) : 10, c.value.itemCount = i.count in C ? Number(C[i.count]) : 0;
6712
- const T = $[0]?.[i.filter], Q = $[0]?.[i.sorter];
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 N of o)
6715
- if ("key" in N) {
6716
- if (T && N.key in T) {
6717
- const H = T[N.key];
6718
- "filter" in N && N.filter && (N.filterMultiple ? Array.isArray(H) && (N.filterOptionValues = H) : Array.isArray(H) || (N.filterOptionValue = H));
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 N && typeof N.sorter == "boolean" && (N.sortOrder = !1), Q && N.key in Q) {
6721
- const H = Q[N.key];
6722
- "sorter" in N && N.sorter && (N.sortOrder = H);
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(C) {
6727
+ function B(D) {
6728
6728
  return A({
6729
6729
  ...y.value[0],
6730
- ...C
6730
+ ...D
6731
6731
  });
6732
6732
  }
6733
6733
  const L = {
6734
- onUpdatePage: (C) => {
6735
- n("update:page", C), !_.value && B({
6736
- [i.page]: C
6734
+ onUpdatePage: (D) => {
6735
+ n("update:page", D), !_.value && B({
6736
+ [i.page]: D
6737
6737
  });
6738
6738
  },
6739
- onUpdatePageSize: (C) => {
6740
- n("update:pageSize", C), !_.value && B({
6741
- [i.pageSize]: C
6739
+ onUpdatePageSize: (D) => {
6740
+ n("update:pageSize", D), !_.value && B({
6741
+ [i.pageSize]: D
6742
6742
  });
6743
6743
  },
6744
- onUpdateFilters: (C, $) => {
6745
- n("update:filters", C, $), B({
6744
+ onUpdateFilters: (D, N) => {
6745
+ n("update:filters", D, N), B({
6746
6746
  [i.page]: 1,
6747
- [i.filter]: C
6747
+ [i.filter]: D
6748
6748
  });
6749
6749
  },
6750
- onUpdateSorter: (C) => {
6751
- n("update:sorter", C);
6752
- const $ = {};
6753
- if (Array.isArray(C))
6754
- for (const T of C)
6755
- $[T.columnKey] = T.order;
6756
- else C && ($[C.columnKey] = C.order);
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: (C) => n("load", C),
6763
- onScroll: (C) => {
6764
- n("scroll", C);
6762
+ onLoad: (D) => n("load", D),
6763
+ onScroll: (D) => {
6764
+ n("scroll", D);
6765
6765
  },
6766
- onUpdateCheckedRowKeys: (C, $, T) => {
6767
- const Q = C.map((N) => k.find((H) => H[i.rowKey] === N));
6768
- n("update:checkedRowKeys", C, Q, { row: ye(T.row), action: T.action }, ye(w.value));
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: (C) => {
6771
- n("update:expandedRowKeys", C, ye(w.value));
6770
+ onUpdateExpandedRowKeys: (D) => {
6771
+ n("update:expandedRowKeys", D, Ee(w.value));
6772
6772
  }
6773
6773
  };
6774
- function Y(C, $) {
6774
+ function W(D, N) {
6775
6775
  return {
6776
6776
  onClick: (T) => {
6777
- n("clickRow", ye(C), $, T, ye(w.value));
6777
+ n("clickRow", Ee(D), N, T, Ee(w.value));
6778
6778
  },
6779
6779
  onContextmenu: (T) => {
6780
- n("contextMenuRow", ye(C), $, T, ye(w.value));
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(C, $) {
6786
- $ && B({
6787
- [$]: C
6785
+ function F(D, N) {
6786
+ N && B({
6787
+ [N]: D
6788
6788
  });
6789
6789
  }
6790
6790
  const q = {
@@ -6802,37 +6802,37 @@ const Dr = /* @__PURE__ */ xn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
6802
6802
  refreshAsync: p,
6803
6803
  cancel: h,
6804
6804
  mutate: b,
6805
- setParams: (C) => {
6806
- Object.assign(y.value[0], C);
6805
+ setParams: (D) => {
6806
+ Object.assign(y.value[0], D);
6807
6807
  },
6808
- runParams: (C) => A(Object.assign(y.value[0], C)),
6809
- runParamsAsync: async (C) => E(Object.assign(y.value[0], C))
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
- }), (C, $) => (R(), z(v(Oe), { vertical: "" }, {
6814
+ }), (D, N) => (R(), z(v(Oe), { vertical: "" }, {
6815
6815
  default: O(() => [
6816
- U(C.$slots, "header", {
6816
+ U(D.$slots, "header", {
6817
6817
  refs: q,
6818
6818
  actions: ee
6819
6819
  }, () => [
6820
- V(v(Oe), null, {
6820
+ Z(v(Oe), null, {
6821
6821
  default: O(() => [
6822
- U(C.$slots, "title", {}, () => [
6822
+ U(D.$slots, "title", {}, () => [
6823
6823
  uu("div", Bc, [
6824
- C.title ? (R(), re("span", Uc, ou(C.title), 1)) : ue("", !0)
6824
+ D.title ? (R(), re("span", Uc, ou(D.title), 1)) : ue("", !0)
6825
6825
  ])
6826
6826
  ]),
6827
- C.search ? (R(), z(v(yo), Z({
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": $[0] || ($[0] = (T) => F(T, i.search))
6833
+ "onUpdate:value": N[0] || (N[0] = (T) => F(T, i.search))
6834
6834
  }), null, 16, ["value", "loading"])) : ue("", !0),
6835
- U(C.$slots, "header-extra", {
6835
+ U(D.$slots, "header-extra", {
6836
6836
  refs: q,
6837
6837
  actions: ee
6838
6838
  })
@@ -6840,58 +6840,58 @@ const Dr = /* @__PURE__ */ xn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
6840
6840
  _: 3
6841
6841
  })
6842
6842
  ]),
6843
- U(C.$slots, "filter", {
6843
+ U(D.$slots, "filter", {
6844
6844
  refs: q,
6845
6845
  actions: ee
6846
6846
  }, () => [
6847
- V(v(Oe), { vertical: "" }, {
6847
+ Z(v(Oe), { vertical: "" }, {
6848
6848
  default: O(() => [
6849
- r.value.grid && (C.filterOptions?.filter((T) => !T.collapsed).length ?? !1) ? (R(), z(v(st), fe(Z({ key: 0 }, C.filterGridProps)), {
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(Ee, null, Ze(C.filterOptions?.filter((T) => !T.collapsed), ({ key: T, gridItemProps: Q, render: N, label: H, ...X }, te) => (R(), z(v(ct), Z({
6852
- key: te,
6853
- span: 12
6854
- }, { ref_for: !0 }, Q), {
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
- N ? (R(), z(se(v(he)(N(q, ee), H, { path: T, labelPlacement: "left" })), { key: 0 })) : (R(), z(se(v(he)(
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: X,
6858
+ options: te,
6859
6859
  value: T ? v(y)[0][T] : void 0,
6860
- "onUpdate:value": (W) => F(W, T)
6860
+ "onUpdate:value": (_e) => F(_e, T)
6861
6861
  }),
6862
- H,
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 && (C.filterOptions?.filter((T) => !T.collapsed).length ?? !1) ? (R(), z(v(Oe), fe(Z({ key: 1 }, C.filterFlexProps)), {
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(Ee, null, Ze(C.filterOptions?.filter((T) => !T.collapsed), ({ key: T, render: Q, label: N, ...H }, X) => (R(), re(Ee, { key: X }, [
6874
- Q ? (R(), z(se(v(he)(Q(q, ee), N, { path: T, labelPlacement: "left" })), { key: 0 })) : (R(), z(se(v(he)(
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
- N,
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
- C.filterOptions?.filter((T) => T.collapsed) && C.filterOptions?.filter((T) => T.collapsed)?.length > 0 ? (R(), z(v(sn), {
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
- V(v(Je), {
6892
+ Z(v(Je), {
6893
6893
  size: "tiny",
6894
- onClick: $[1] || ($[1] = (T) => ie.value = !ie.value)
6894
+ onClick: N[1] || (N[1] = (T) => ie.value = !ie.value)
6895
6895
  }, {
6896
6896
  default: O(() => [
6897
6897
  xu(ou(ie.value ? "折叠" : "展开"), 1)
@@ -6901,40 +6901,40 @@ const Dr = /* @__PURE__ */ xn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
6901
6901
  ]),
6902
6902
  _: 1
6903
6903
  })) : ue("", !0),
6904
- V(v(Mr), { show: ie.value }, {
6904
+ Z(v(Mr), { show: ie.value }, {
6905
6905
  default: O(() => [
6906
- r.value.collapsedGrid && (C.filterOptions?.filter((T) => T.collapsed)?.length ?? !1) ? (R(), z(v(st), fe(Z({ key: 0 }, C.filterGridProps)), {
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(Ee, null, Ze(C.filterOptions?.filter((T) => T.collapsed), ({ key: T, gridItemProps: Q, render: N, label: H, ...X }, te) => (R(), z(v(ct), Z({
6909
- key: te,
6910
- span: 12
6911
- }, { ref_for: !0 }, Q), {
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
- N ? (R(), z(se(v(he)(N(q, ee), H, { path: T, labelPlacement: "left" })), { key: 0 })) : (R(), z(se(v(he)(
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: X,
6915
+ options: te,
6916
6916
  value: T ? v(y)[0][T] : void 0,
6917
- "onUpdate:value": (W) => F(W, T)
6917
+ "onUpdate:value": (_e) => F(_e, T)
6918
6918
  }),
6919
- H,
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 && (C.filterOptions?.filter((T) => T.collapsed)?.length ?? !1) ? (R(), z(v(Oe), fe(Z({ key: 1 }, C.filterFlexProps)), {
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(Ee, null, Ze(C.filterOptions?.filter((T) => T.collapsed), ({ key: T, render: Q, label: N, ...H }, X) => (R(), re(Ee, { key: X }, [
6931
- Q ? (R(), z(se(v(he)(Q(q, ee), N, { path: T, labelPlacement: "left" })), { key: 0 })) : (R(), z(se(v(he)(
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
- N,
6937
+ $,
6938
6938
  { path: T, labelPlacement: "left" }
6939
6939
  )), { key: 1 }))
6940
6940
  ], 64))), 128))
@@ -6948,21 +6948,21 @@ const Dr = /* @__PURE__ */ xn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
6948
6948
  _: 1
6949
6949
  })
6950
6950
  ]),
6951
- V(v(mi), Z({
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, ...C.customStyle },
6958
- class: C.customClass,
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": Y
6965
- }, C.dataTableProps, {
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__ */ xn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
6971
6971
  "onUpdate:expandedRowKeys": L.onUpdateExpandedRowKeys
6972
6972
  }), {
6973
6973
  empty: O(() => [
6974
- U(C.$slots, "empty", {
6974
+ U(D.$slots, "empty", {
6975
6975
  refs: q,
6976
6976
  actions: ee
6977
6977
  })
6978
6978
  ]),
6979
6979
  loading: O(() => [
6980
- U(C.$slots, "loading", {
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(C.$slots, "footer", {
6987
+ U(D.$slots, "footer", {
6988
6988
  refs: q,
6989
6989
  actions: ee
6990
6990
  }, () => [
6991
- V(v(Oe), null, {
6991
+ Z(v(Oe), null, {
6992
6992
  default: O(() => [
6993
- U(C.$slots, "footer-extra", {
6993
+ U(D.$slots, "footer-extra", {
6994
6994
  refs: q,
6995
6995
  actions: ee
6996
6996
  }),
6997
- C.pagination ? (R(), z(v(Lr), Z({
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(ye(e)) : {}), o = t, a = G(), i = {
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(ye(Ke(r))), d(A))).catch(y);
7035
+ a.value.validate().then((A) => (l.trigger(Ee(Ke(r))), d(A))).catch(y);
7036
7036
  });
7037
7037
  }
7038
7038
  function c() {
@@ -7065,17 +7065,11 @@ function jc(e) {
7065
7065
  return;
7066
7066
  const u = {};
7067
7067
  return e.forEach((t) => {
7068
- if (t.key) {
7069
- if (t.rules) {
7070
- u[t.key] = t.rules;
7071
- return;
7072
- }
7073
- t.required && (u[t.key] = {
7074
- required: !0,
7075
- message: `${typeof t.label == "string" ? t.label : typeof t.label == "object" ? t.label.label : typeof t.key == "string" ? t.key : "字段"}不能为空`,
7076
- trigger: ["input", "blur"]
7077
- });
7078
- }
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)));
7079
7073
  }), u;
7080
7074
  }
7081
7075
  const uf = /* @__PURE__ */ me({
@@ -7129,7 +7123,7 @@ const uf = /* @__PURE__ */ me({
7129
7123
  function m(p, h) {
7130
7124
  h && E.setValues({ [h]: p });
7131
7125
  }
7132
- return (p, h) => (R(), z(v(gi), Z({
7126
+ return (p, h) => (R(), z(v(gi), Y({
7133
7127
  ref_key: "formRef",
7134
7128
  ref: l,
7135
7129
  model: v(a),
@@ -7144,31 +7138,31 @@ const uf = /* @__PURE__ */ me({
7144
7138
  refs: A,
7145
7139
  actions: E
7146
7140
  }, () => [
7147
- r.value.grid ? (R(), z(v(st), fe(Z({ key: 0 }, p.gridProps)), {
7141
+ r.value.grid ? (R(), z(v(st), fe(Y({ key: 0 }, p.gridProps)), {
7148
7142
  default: O(() => [
7149
- (R(!0), re(Ee, null, Ze(p.options?.filter((b) => !b.collapsed), ({ key: b, gridItemProps: k, render: w, label: P, ...D }, B) => (R(), z(v(ct), Z({
7150
- key: B,
7151
- span: 12
7152
- }, { ref_for: !0 }, k), {
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), {
7153
7147
  default: O(() => [
7154
- w ? (R(), z(se(v(he)(w(A, E), P, { path: b })), { key: 0 })) : (R(), z(se(v(he)(
7148
+ P ? (R(), z(se(v(he)(P(A, E), C, { path: b })), { key: 0 })) : (R(), z(se(v(he)(
7155
7149
  be(v(Xe), {
7156
- options: D,
7150
+ options: B,
7157
7151
  value: b ? v(a)[b] : void 0,
7158
- "onUpdate:value": (L) => m(L, b)
7152
+ "onUpdate:value": (W) => m(W, b)
7159
7153
  }),
7160
- P,
7154
+ C,
7161
7155
  { path: b }
7162
7156
  )), { key: 1 }))
7163
7157
  ]),
7164
7158
  _: 2
7165
- }, 1040))), 128))
7159
+ }, 1040, ["span"]))), 128))
7166
7160
  ]),
7167
7161
  _: 1
7168
7162
  }, 16)) : ue("", !0),
7169
- r.value.flex ? (R(), z(v(Oe), fe(Z({ key: 1 }, p.flexProps)), {
7163
+ r.value.flex ? (R(), z(v(Oe), fe(Y({ key: 1 }, p.flexProps)), {
7170
7164
  default: O(() => [
7171
- (R(!0), re(Ee, null, Ze(p.options?.filter((b) => !b.collapsed), ({ key: b, render: k, label: w, ...P }, D) => (R(), re(Ee, { key: D }, [
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 }, [
7172
7166
  k ? (R(), z(se(v(he)(k(A, E), w, { path: b })), { key: 0 })) : (R(), z(se(v(he)(
7173
7167
  be(v(Xe), {
7174
7168
  options: P,
@@ -7187,7 +7181,7 @@ const uf = /* @__PURE__ */ me({
7187
7181
  style: { margin: "5px 0" }
7188
7182
  }, {
7189
7183
  default: O(() => [
7190
- V(v(Je), {
7184
+ Z(v(Je), {
7191
7185
  size: "tiny",
7192
7186
  onClick: h[0] || (h[0] = (b) => y.value = !y.value)
7193
7187
  }, {
@@ -7199,33 +7193,33 @@ const uf = /* @__PURE__ */ me({
7199
7193
  ]),
7200
7194
  _: 1
7201
7195
  })) : ue("", !0),
7202
- V(v(Mr), { show: y.value }, {
7196
+ Z(v(Mr), { show: y.value }, {
7203
7197
  default: O(() => [
7204
- r.value.collapsedGrid ? (R(), z(v(st), fe(Z({ key: 0 }, p.gridProps)), {
7198
+ r.value.collapsedGrid ? (R(), z(v(st), fe(Y({ key: 0 }, p.gridProps)), {
7205
7199
  default: O(() => [
7206
- (R(!0), re(Ee, null, Ze(p.options?.filter((b) => b.collapsed), ({ key: b, gridItemProps: k, render: w, label: P, ...D }, B) => (R(), z(v(ct), Z({
7207
- key: B,
7208
- span: 12
7209
- }, { ref_for: !0 }, k), {
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), {
7210
7204
  default: O(() => [
7211
- w ? (R(), z(se(v(he)(w(A, E), P, { path: b })), { key: 0 })) : (R(), z(se(v(he)(
7205
+ P ? (R(), z(se(v(he)(P(A, E), C, { path: b })), { key: 0 })) : (R(), z(se(v(he)(
7212
7206
  be(v(Xe), {
7213
- options: D,
7207
+ options: B,
7214
7208
  value: b ? v(a)[b] : void 0,
7215
- "onUpdate:value": (L) => m(L, b)
7209
+ "onUpdate:value": (W) => m(W, b)
7216
7210
  }),
7217
- P,
7211
+ C,
7218
7212
  { path: b }
7219
7213
  )), { key: 1 }))
7220
7214
  ]),
7221
7215
  _: 2
7222
- }, 1040))), 128))
7216
+ }, 1040, ["span"]))), 128))
7223
7217
  ]),
7224
7218
  _: 1
7225
7219
  }, 16)) : ue("", !0),
7226
- r.value.collapsedFlex ? (R(), z(v(Oe), fe(Z({ key: 1 }, p.flexProps)), {
7220
+ r.value.collapsedFlex ? (R(), z(v(Oe), fe(Y({ key: 1 }, p.flexProps)), {
7227
7221
  default: O(() => [
7228
- (R(!0), re(Ee, null, Ze(p.options?.filter((b) => b.collapsed), ({ key: b, render: k, label: w, ...P }, D) => (R(), re(Ee, { key: D }, [
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 }, [
7229
7223
  k ? (R(), z(se(v(he)(k(A, E), w, { path: b })), { key: 0 })) : (R(), z(se(v(he)(
7230
7224
  be(v(Xe), {
7231
7225
  options: P,
@@ -7298,23 +7292,23 @@ const Vc = /* @__PURE__ */ xn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
7298
7292
  ...e.columns ?? []
7299
7293
  ], l = G(!1);
7300
7294
  function s() {
7301
- o.value = structuredClone(Array.isArray(e.value) ? ye(e.value) : e.value ? [e.value] : []), l.value = !0;
7295
+ o.value = structuredClone(Array.isArray(e.value) ? Ee(e.value) : e.value ? [e.value] : []), l.value = !0;
7302
7296
  }
7303
7297
  function c(h, b, k, w, P) {
7304
- P && (r.rowKey = P), e.multiple ? o.value.includes(h?.[r.rowKey]) ? (o.value = o.value.filter((D) => D !== h?.[r.rowKey]), a.value = a.value.filter((D) => D?.[r.rowKey] !== h?.[r.rowKey])) : (o.value.push(h?.[r.rowKey]), a.value.push(h)) : (o.value = [h?.[r.rowKey]], a.value = [h]);
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]);
7305
7299
  }
7306
7300
  function f(h, b, k, w, P) {
7307
7301
  if (P && (r.rowKey = P), k.action === "checkAll") {
7308
- const D = h.filter((L) => !o.value.includes(L));
7309
- o.value.push(...D);
7310
- const B = b.filter((L) => !a.value.some((Y) => Y?.[r.rowKey] === L?.[r.rowKey]));
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]));
7311
7305
  a.value.push(...B);
7312
7306
  return;
7313
7307
  }
7314
7308
  if (k.action === "uncheckAll") {
7315
- const D = o.value.filter((L) => !w?.some((Y) => Y?.[r.rowKey] === L));
7316
- o.value = D;
7317
- const B = a.value.filter((L) => !w?.some((Y) => Y?.[r.rowKey] === L?.[r.rowKey]));
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]));
7318
7312
  a.value = B;
7319
7313
  }
7320
7314
  }
@@ -7323,10 +7317,10 @@ const Vc = /* @__PURE__ */ xn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
7323
7317
  }
7324
7318
  function x() {
7325
7319
  if (n("positiveClick"), e.multiple) {
7326
- const h = ye(Ke(o)), b = h.map((k) => ye(Ke(a.value.find((w) => w?.[r.rowKey] === k))));
7320
+ const h = Ee(Ke(o)), b = h.map((k) => Ee(Ke(a.value.find((w) => w?.[r.rowKey] === k))));
7327
7321
  n("update:value", h, b);
7328
7322
  } else {
7329
- const h = o.value[0] ?? null, b = ye(Ke(a.value.find((k) => k?.[r.rowKey] === h)));
7323
+ const h = o.value[0] ?? null, b = Ee(Ke(a.value.find((k) => k?.[r.rowKey] === h)));
7330
7324
  n("update:value", h, b);
7331
7325
  }
7332
7326
  l.value = !1;
@@ -7356,11 +7350,11 @@ const Vc = /* @__PURE__ */ xn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
7356
7350
  return u({
7357
7351
  refs: m,
7358
7352
  actions: p
7359
- }), (h, b) => (R(), z(v(ki), Z({ value: E.value }, h.badgeProps), {
7353
+ }), (h, b) => (R(), z(v(ki), Y({ value: E.value }, h.badgeProps), {
7360
7354
  default: O(() => [
7361
- V(v(xi), null, {
7355
+ Z(v(xi), null, {
7362
7356
  default: O(() => [
7363
- V(v(Je), Z({ type: h.type }, h.buttonProps, { onClick: s }), {
7357
+ Z(v(Je), Y({ type: h.type }, h.buttonProps, { onClick: s }), {
7364
7358
  icon: O(() => [
7365
7359
  U(h.$slots, "button-icon")
7366
7360
  ]),
@@ -7372,7 +7366,7 @@ const Vc = /* @__PURE__ */ xn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
7372
7366
  _: 3
7373
7367
  }, 16, ["type"]),
7374
7368
  U(h.$slots, "clear-button", {}, () => [
7375
- A.value ? (R(), z(v(Je), Z({
7369
+ A.value ? (R(), z(v(Je), Y({
7376
7370
  key: 0,
7377
7371
  circle: "",
7378
7372
  type: h.type
@@ -7381,13 +7375,13 @@ const Vc = /* @__PURE__ */ xn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
7381
7375
  }), {
7382
7376
  icon: O(() => [
7383
7377
  U(h.$slots, "clear-icon", {}, () => [
7384
- V(Vc)
7378
+ Z(Vc)
7385
7379
  ])
7386
7380
  ]),
7387
7381
  _: 3
7388
7382
  }, 16, ["type"])) : ue("", !0)
7389
7383
  ]),
7390
- V(v(_i), Z({
7384
+ Z(v(_i), Y({
7391
7385
  show: l.value,
7392
7386
  "onUpdate:show": b[0] || (b[0] = (k) => l.value = k),
7393
7387
  style: { width: "auto" },
@@ -7506,7 +7500,7 @@ const Vc = /* @__PURE__ */ xn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
7506
7500
  [o.page]: 1,
7507
7501
  [o.search]: w.value
7508
7502
  });
7509
- }, typeof e.debounce == "number" ? e.debounce : 500), D = {
7503
+ }, typeof e.debounce == "number" ? e.debounce : 500), C = {
7510
7504
  onBlur: (F) => {
7511
7505
  n("blur", F);
7512
7506
  },
@@ -7521,8 +7515,8 @@ const Vc = /* @__PURE__ */ xn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
7521
7515
  n("scroll", F);
7522
7516
  },
7523
7517
  onUpdateValue: (F, q) => {
7524
- const ee = Array.isArray(F) ? p.value.filter((C) => F.includes(C[o.rowKey])) : p.value.find((C) => C[o.rowKey] === F) ?? null;
7525
- n("update:value", F, q, ye(Ke(ee)));
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)));
7526
7520
  },
7527
7521
  onSearch: (F) => {
7528
7522
  w.value = F, !f.value && (e.debounce ? P() : k({
@@ -7551,7 +7545,7 @@ const Vc = /* @__PURE__ */ xn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
7551
7545
  [o.value]: F
7552
7546
  };
7553
7547
  }
7554
- const Y = {
7548
+ const W = {
7555
7549
  loading: f,
7556
7550
  data: s,
7557
7551
  error: c,
@@ -7573,9 +7567,9 @@ const Vc = /* @__PURE__ */ xn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
7573
7567
  runParamsAsync: async (F) => d(Object.assign(_.value[0], F))
7574
7568
  };
7575
7569
  return u({
7576
- refs: Y,
7570
+ refs: W,
7577
7571
  actions: ie
7578
- }), (F, q) => (R(), z(v(Or), Z({
7572
+ }), (F, q) => (R(), z(v(Or), Y({
7579
7573
  ref: "select-ref",
7580
7574
  remote: "",
7581
7575
  filterable: "",
@@ -7590,33 +7584,33 @@ const Vc = /* @__PURE__ */ xn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
7590
7584
  "fallback-option": L,
7591
7585
  loading: v(f)
7592
7586
  }, F.selectProps, {
7593
- onBlur: D.onBlur,
7594
- onClear: D.onClear,
7595
- onCreate: D.onCreate,
7596
- onFocus: D.onFocus,
7597
- onScroll: D.onScroll,
7598
- onSearch: D.onSearch,
7599
- "onUpdate:show": D.onUpdateShow,
7600
- "onUpdate:value": D.onUpdateValue
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
7601
7595
  }), {
7602
7596
  header: O(() => [
7603
7597
  U(F.$slots, "header", {
7604
- refs: Y,
7598
+ refs: W,
7605
7599
  actions: ie
7606
7600
  })
7607
7601
  ]),
7608
7602
  action: O(() => [
7609
7603
  U(F.$slots, "footer", {
7610
- refs: Y,
7604
+ refs: W,
7611
7605
  actions: ie
7612
7606
  }, () => [
7613
- V(v(Oe), null, {
7607
+ Z(v(Oe), null, {
7614
7608
  default: O(() => [
7615
7609
  U(F.$slots, "footer-extra", {
7616
- refs: Y,
7610
+ refs: W,
7617
7611
  actions: ie
7618
7612
  }),
7619
- F.pagination ? (R(), z(v(Lr), Z({
7613
+ F.pagination ? (R(), z(v(Lr), Y({
7620
7614
  key: 0,
7621
7615
  style: { "margin-left": "auto" },
7622
7616
  simple: "",
@@ -7717,7 +7711,7 @@ const Vc = /* @__PURE__ */ xn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
7717
7711
  t.value = !1, u.value = r.value;
7718
7712
  }
7719
7713
  return (i, l) => (R(), re("div", { onClick: o }, [
7720
- t.value ? (R(), z(v(ln), Z({
7714
+ t.value ? (R(), z(v(ln), Y({
7721
7715
  key: 0,
7722
7716
  ref_key: "inputRef",
7723
7717
  ref: n,
@@ -7726,7 +7720,7 @@ const Vc = /* @__PURE__ */ xn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
7726
7720
  "onUpdate:value": l[0] || (l[0] = (s) => r.value = s),
7727
7721
  onChange: a,
7728
7722
  onBlur: a
7729
- }), null, 16, ["value"])) : (R(), re(Ee, { key: 1 }, [
7723
+ }), null, 16, ["value"])) : (R(), re(Ae, { key: 1 }, [
7730
7724
  xu(ou(r.value), 1)
7731
7725
  ], 64))
7732
7726
  ]));
@@ -7743,7 +7737,7 @@ const Vc = /* @__PURE__ */ xn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
7743
7737
  const t = u;
7744
7738
  return (n, r) => (R(), z(v(Rr), fe(qe(n.tooltipProps)), {
7745
7739
  trigger: O(() => [
7746
- V(v(Je), Z(n.buttonProps, {
7740
+ Z(v(Je), Y(n.buttonProps, {
7747
7741
  onClick: r[0] || (r[0] = (o) => t("click", o))
7748
7742
  }), {
7749
7743
  icon: O(() => [