@bobbykim/manguito-theme 1.0.2 → 1.2.0

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,703 +0,0 @@
1
- import { defineComponent as nn, computed as _e, h as on } from "vue";
2
- import { g as Tt } from "./index-CaGu958U.js";
3
- const rn = (n, o, s) => !o || !(o instanceof Node) || n === o || n.contains(o) ? !1 : s?.length ? !s.some(
4
- (r) => r === o || r.contains(o)
5
- ) : !0, Ee = (n) => typeof n.value == "function" ? {
6
- handler: n.value,
7
- events: ["click"]
8
- } : {
9
- handler: n.value.handler,
10
- events: n.value.events || ["click"],
11
- excludeElements: n.value.excludeElements
12
- }, _t = (n, o, s) => (r) => {
13
- rn(n, r.target, s) && o(r);
14
- }, vn = {
15
- mounted(n, o) {
16
- const { handler: s, events: r, excludeElements: c } = Ee(o);
17
- n.__ClickOutsideHandler = _t(n, s, c), r.forEach((m) => {
18
- document.addEventListener(m, n.__ClickOutsideHandler, !0);
19
- });
20
- },
21
- updated(n, o) {
22
- n.__ClickOutsideHandler && Ee({
23
- ...o,
24
- value: o.oldValue
25
- }).events.forEach((k) => {
26
- document.removeEventListener(k, n.__ClickOutsideHandler, !0);
27
- });
28
- const { handler: s, events: r, excludeElements: c } = Ee(o);
29
- n.__ClickOutsideHandler = _t(n, s, c), r.forEach((m) => {
30
- document.addEventListener(m, n.__ClickOutsideHandler, !0);
31
- });
32
- },
33
- unmounted(n, o) {
34
- if (n.__ClickOutsideHandler) {
35
- const { events: s } = Ee(o);
36
- s.forEach((r) => {
37
- document.removeEventListener(r, n.__ClickOutsideHandler, !0);
38
- }), delete n.__ClickOutsideHandler;
39
- }
40
- }
41
- };
42
- const {
43
- entries: Nt,
44
- setPrototypeOf: Et,
45
- isFrozen: an,
46
- getPrototypeOf: sn,
47
- getOwnPropertyDescriptor: ln
48
- } = Object;
49
- let {
50
- freeze: D,
51
- seal: N,
52
- create: X
53
- } = Object, {
54
- apply: Ge,
55
- construct: Be
56
- } = typeof Reflect < "u" && Reflect;
57
- D || (D = function(o) {
58
- return o;
59
- });
60
- N || (N = function(o) {
61
- return o;
62
- });
63
- Ge || (Ge = function(o, s) {
64
- for (var r = arguments.length, c = new Array(r > 2 ? r - 2 : 0), m = 2; m < r; m++)
65
- c[m - 2] = arguments[m];
66
- return o.apply(s, c);
67
- });
68
- Be || (Be = function(o) {
69
- for (var s = arguments.length, r = new Array(s > 1 ? s - 1 : 0), c = 1; c < s; c++)
70
- r[c - 1] = arguments[c];
71
- return new o(...r);
72
- });
73
- const te = T(Array.prototype.forEach), cn = T(Array.prototype.lastIndexOf), gt = T(Array.prototype.pop), ne = T(Array.prototype.push), un = T(Array.prototype.splice), b = Array.isArray, re = T(String.prototype.toLowerCase), ke = T(String.prototype.toString), At = T(String.prototype.match), j = T(String.prototype.replace), ht = T(String.prototype.indexOf), fn = T(String.prototype.trim), mn = T(Number.prototype.toString), pn = T(Boolean.prototype.toString), St = typeof BigInt > "u" ? null : T(BigInt.prototype.toString), Rt = typeof Symbol > "u" ? null : T(Symbol.prototype.toString), f = T(Object.prototype.hasOwnProperty), oe = T(Object.prototype.toString), S = T(RegExp.prototype.test), ge = dn(TypeError);
74
- function T(n) {
75
- return function(o) {
76
- o instanceof RegExp && (o.lastIndex = 0);
77
- for (var s = arguments.length, r = new Array(s > 1 ? s - 1 : 0), c = 1; c < s; c++)
78
- r[c - 1] = arguments[c];
79
- return Ge(n, o, r);
80
- };
81
- }
82
- function dn(n) {
83
- return function() {
84
- for (var o = arguments.length, s = new Array(o), r = 0; r < o; r++)
85
- s[r] = arguments[r];
86
- return Be(n, s);
87
- };
88
- }
89
- function l(n, o) {
90
- let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : re;
91
- if (Et && Et(n, null), !b(o))
92
- return n;
93
- let r = o.length;
94
- for (; r--; ) {
95
- let c = o[r];
96
- if (typeof c == "string") {
97
- const m = s(c);
98
- m !== c && (an(o) || (o[r] = m), c = m);
99
- }
100
- n[c] = !0;
101
- }
102
- return n;
103
- }
104
- function Tn(n) {
105
- for (let o = 0; o < n.length; o++)
106
- f(n, o) || (n[o] = null);
107
- return n;
108
- }
109
- function L(n) {
110
- const o = X(null);
111
- for (const [s, r] of Nt(n))
112
- f(n, s) && (b(r) ? o[s] = Tn(r) : r && typeof r == "object" && r.constructor === Object ? o[s] = L(r) : o[s] = r);
113
- return o;
114
- }
115
- function _n(n) {
116
- switch (typeof n) {
117
- case "string":
118
- return n;
119
- case "number":
120
- return mn(n);
121
- case "boolean":
122
- return pn(n);
123
- case "bigint":
124
- return St ? St(n) : "0";
125
- case "symbol":
126
- return Rt ? Rt(n) : "Symbol()";
127
- case "undefined":
128
- return oe(n);
129
- case "function":
130
- case "object": {
131
- if (n === null)
132
- return oe(n);
133
- const o = n, s = V(o, "toString");
134
- if (typeof s == "function") {
135
- const r = s(o);
136
- return typeof r == "string" ? r : oe(r);
137
- }
138
- return oe(n);
139
- }
140
- default:
141
- return oe(n);
142
- }
143
- }
144
- function V(n, o) {
145
- for (; n !== null; ) {
146
- const r = ln(n, o);
147
- if (r) {
148
- if (r.get)
149
- return T(r.get);
150
- if (typeof r.value == "function")
151
- return T(r.value);
152
- }
153
- n = sn(n);
154
- }
155
- function s() {
156
- return null;
157
- }
158
- return s;
159
- }
160
- function En(n) {
161
- try {
162
- return S(n, ""), !0;
163
- } catch {
164
- return !1;
165
- }
166
- }
167
- const Ot = D(["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", "search", "section", "select", "shadow", "slot", "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"]), Ue = D(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Fe = D(["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"]), gn = D(["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"]), He = D(["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"]), An = D(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), yt = D(["#text"]), bt = D(["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", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "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", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), ze = D(["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", "mask-type", "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"]), Dt = D(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "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"]), Ae = D(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), hn = N(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Sn = N(/<%[\w\W]*|[\w\W]*%>/gm), Rn = N(/\$\{[\w\W]*/gm), On = N(/^data-[\-\w.\u00B7-\uFFFF]+$/), yn = N(/^aria-[\-\w]+$/), Mt = N(
168
- /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
169
- // eslint-disable-line no-useless-escape
170
- ), bn = N(/^(?:\w+script|data):/i), Dn = N(
171
- /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
172
- // eslint-disable-line no-control-regex
173
- ), wt = N(/^html$/i), In = N(/^[a-z][.\w]*(-[.\w]+)+$/i);
174
- var It = /* @__PURE__ */ Object.freeze({
175
- __proto__: null,
176
- ARIA_ATTR: yn,
177
- ATTR_WHITESPACE: Dn,
178
- CUSTOM_ELEMENT: In,
179
- DATA_ATTR: On,
180
- DOCTYPE_NAME: wt,
181
- ERB_EXPR: Sn,
182
- IS_ALLOWED_URI: Mt,
183
- IS_SCRIPT_OR_DATA: bn,
184
- MUSTACHE_EXPR: hn,
185
- TMPLIT_EXPR: Rn
186
- });
187
- const ie = {
188
- element: 1,
189
- text: 3,
190
- // Deprecated
191
- progressingInstruction: 7,
192
- comment: 8,
193
- document: 9
194
- }, Ln = function() {
195
- return typeof window > "u" ? null : window;
196
- }, Cn = function(o, s) {
197
- if (typeof o != "object" || typeof o.createPolicy != "function")
198
- return null;
199
- let r = null;
200
- const c = "data-tt-policy-suffix";
201
- s && s.hasAttribute(c) && (r = s.getAttribute(c));
202
- const m = "dompurify" + (r ? "#" + r : "");
203
- try {
204
- return o.createPolicy(m, {
205
- createHTML(k) {
206
- return k;
207
- },
208
- createScriptURL(k) {
209
- return k;
210
- }
211
- });
212
- } catch {
213
- return console.warn("TrustedTypes policy " + m + " could not be created."), null;
214
- }
215
- }, Lt = function() {
216
- return {
217
- afterSanitizeAttributes: [],
218
- afterSanitizeElements: [],
219
- afterSanitizeShadowDOM: [],
220
- beforeSanitizeAttributes: [],
221
- beforeSanitizeElements: [],
222
- beforeSanitizeShadowDOM: [],
223
- uponSanitizeAttribute: [],
224
- uponSanitizeElement: [],
225
- uponSanitizeShadowNode: []
226
- };
227
- };
228
- function vt() {
229
- let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ln();
230
- const o = (a) => vt(a);
231
- if (o.version = "3.4.2", o.removed = [], !n || !n.document || n.document.nodeType !== ie.document || !n.Element)
232
- return o.isSupported = !1, o;
233
- let {
234
- document: s
235
- } = n;
236
- const r = s, c = r.currentScript, {
237
- DocumentFragment: m,
238
- HTMLTemplateElement: k,
239
- Node: he,
240
- Element: We,
241
- NodeFilter: $,
242
- NamedNodeMap: xt = n.NamedNodeMap || n.MozNamedAttrMap,
243
- HTMLFormElement: Pt,
244
- DOMParser: kt,
245
- trustedTypes: ae
246
- } = n, q = We.prototype, Ut = V(q, "cloneNode"), Ft = V(q, "remove"), Ht = V(q, "nextSibling"), zt = V(q, "childNodes"), se = V(q, "parentNode");
247
- if (typeof k == "function") {
248
- const a = s.createElement("template");
249
- a.content && a.content.ownerDocument && (s = a.content.ownerDocument);
250
- }
251
- let O, K = "";
252
- const {
253
- implementation: Se,
254
- createNodeIterator: Gt,
255
- createDocumentFragment: Bt,
256
- getElementsByTagName: Wt
257
- } = s, {
258
- importNode: Yt
259
- } = r;
260
- let y = Lt();
261
- o.isSupported = typeof Nt == "function" && typeof se == "function" && Se && Se.createHTMLDocument !== void 0;
262
- const {
263
- MUSTACHE_EXPR: le,
264
- ERB_EXPR: ce,
265
- TMPLIT_EXPR: ue,
266
- DATA_ATTR: jt,
267
- ARIA_ATTR: Xt,
268
- IS_SCRIPT_OR_DATA: Vt,
269
- ATTR_WHITESPACE: Ye,
270
- CUSTOM_ELEMENT: $t
271
- } = It;
272
- let {
273
- IS_ALLOWED_URI: je
274
- } = It, g = null;
275
- const Xe = l({}, [...Ot, ...Ue, ...Fe, ...He, ...yt]);
276
- let h = null;
277
- const Ve = l({}, [...bt, ...ze, ...Dt, ...Ae]);
278
- let p = Object.seal(X(null, {
279
- tagNameCheck: {
280
- writable: !0,
281
- configurable: !1,
282
- enumerable: !0,
283
- value: null
284
- },
285
- attributeNameCheck: {
286
- writable: !0,
287
- configurable: !1,
288
- enumerable: !0,
289
- value: null
290
- },
291
- allowCustomizedBuiltInElements: {
292
- writable: !0,
293
- configurable: !1,
294
- enumerable: !0,
295
- value: !1
296
- }
297
- })), Z = null, fe = null;
298
- const U = Object.seal(X(null, {
299
- tagCheck: {
300
- writable: !0,
301
- configurable: !1,
302
- enumerable: !0,
303
- value: null
304
- },
305
- attributeCheck: {
306
- writable: !0,
307
- configurable: !1,
308
- enumerable: !0,
309
- value: null
310
- }
311
- }));
312
- let $e = !0, Re = !0, qe = !1, Ke = !0, F = !1, J = !0, H = !1, Oe = !1, ye = !1, G = !1, me = !1, pe = !1, Ze = !0, Je = !1;
313
- const Qe = "user-content-";
314
- let be = !0, Q = !1, B = {}, v = null;
315
- const De = l({}, ["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"]);
316
- let et = null;
317
- const tt = l({}, ["audio", "video", "img", "source", "image", "track"]);
318
- let Ie = null;
319
- const nt = l({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), de = "http://www.w3.org/1998/Math/MathML", Te = "http://www.w3.org/2000/svg", x = "http://www.w3.org/1999/xhtml";
320
- let W = x, Le = !1, Ce = null;
321
- const qt = l({}, [de, Te, x], ke);
322
- let Ne = l({}, ["mi", "mo", "mn", "ms", "mtext"]), Me = l({}, ["annotation-xml"]);
323
- const Kt = l({}, ["title", "style", "font", "a", "script"]);
324
- let ee = null;
325
- const Zt = ["application/xhtml+xml", "text/html"], Jt = "text/html";
326
- let E = null, Y = null;
327
- const Qt = s.createElement("form"), ot = function(e) {
328
- return e instanceof RegExp || e instanceof Function;
329
- }, we = function() {
330
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
331
- if (Y && Y === e)
332
- return;
333
- (!e || typeof e != "object") && (e = {}), e = L(e), ee = // eslint-disable-next-line unicorn/prefer-includes
334
- Zt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? Jt : e.PARSER_MEDIA_TYPE, E = ee === "application/xhtml+xml" ? ke : re, g = f(e, "ALLOWED_TAGS") && b(e.ALLOWED_TAGS) ? l({}, e.ALLOWED_TAGS, E) : Xe, h = f(e, "ALLOWED_ATTR") && b(e.ALLOWED_ATTR) ? l({}, e.ALLOWED_ATTR, E) : Ve, Ce = f(e, "ALLOWED_NAMESPACES") && b(e.ALLOWED_NAMESPACES) ? l({}, e.ALLOWED_NAMESPACES, ke) : qt, Ie = f(e, "ADD_URI_SAFE_ATTR") && b(e.ADD_URI_SAFE_ATTR) ? l(L(nt), e.ADD_URI_SAFE_ATTR, E) : nt, et = f(e, "ADD_DATA_URI_TAGS") && b(e.ADD_DATA_URI_TAGS) ? l(L(tt), e.ADD_DATA_URI_TAGS, E) : tt, v = f(e, "FORBID_CONTENTS") && b(e.FORBID_CONTENTS) ? l({}, e.FORBID_CONTENTS, E) : De, Z = f(e, "FORBID_TAGS") && b(e.FORBID_TAGS) ? l({}, e.FORBID_TAGS, E) : L({}), fe = f(e, "FORBID_ATTR") && b(e.FORBID_ATTR) ? l({}, e.FORBID_ATTR, E) : L({}), B = f(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? L(e.USE_PROFILES) : e.USE_PROFILES : !1, $e = e.ALLOW_ARIA_ATTR !== !1, Re = e.ALLOW_DATA_ATTR !== !1, qe = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Ke = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, F = e.SAFE_FOR_TEMPLATES || !1, J = e.SAFE_FOR_XML !== !1, H = e.WHOLE_DOCUMENT || !1, G = e.RETURN_DOM || !1, me = e.RETURN_DOM_FRAGMENT || !1, pe = e.RETURN_TRUSTED_TYPE || !1, ye = e.FORCE_BODY || !1, Ze = e.SANITIZE_DOM !== !1, Je = e.SANITIZE_NAMED_PROPS || !1, be = e.KEEP_CONTENT !== !1, Q = e.IN_PLACE || !1, je = En(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Mt, W = typeof e.NAMESPACE == "string" ? e.NAMESPACE : x, Ne = f(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? L(e.MATHML_TEXT_INTEGRATION_POINTS) : l({}, ["mi", "mo", "mn", "ms", "mtext"]), Me = f(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? L(e.HTML_INTEGRATION_POINTS) : l({}, ["annotation-xml"]);
335
- const t = f(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? L(e.CUSTOM_ELEMENT_HANDLING) : X(null);
336
- if (p = X(null), f(t, "tagNameCheck") && ot(t.tagNameCheck) && (p.tagNameCheck = t.tagNameCheck), f(t, "attributeNameCheck") && ot(t.attributeNameCheck) && (p.attributeNameCheck = t.attributeNameCheck), f(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (p.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), F && (Re = !1), me && (G = !0), B && (g = l({}, yt), h = X(null), B.html === !0 && (l(g, Ot), l(h, bt)), B.svg === !0 && (l(g, Ue), l(h, ze), l(h, Ae)), B.svgFilters === !0 && (l(g, Fe), l(h, ze), l(h, Ae)), B.mathMl === !0 && (l(g, He), l(h, Dt), l(h, Ae))), U.tagCheck = null, U.attributeCheck = null, f(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? U.tagCheck = e.ADD_TAGS : b(e.ADD_TAGS) && (g === Xe && (g = L(g)), l(g, e.ADD_TAGS, E))), f(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? U.attributeCheck = e.ADD_ATTR : b(e.ADD_ATTR) && (h === Ve && (h = L(h)), l(h, e.ADD_ATTR, E))), f(e, "ADD_URI_SAFE_ATTR") && b(e.ADD_URI_SAFE_ATTR) && l(Ie, e.ADD_URI_SAFE_ATTR, E), f(e, "FORBID_CONTENTS") && b(e.FORBID_CONTENTS) && (v === De && (v = L(v)), l(v, e.FORBID_CONTENTS, E)), f(e, "ADD_FORBID_CONTENTS") && b(e.ADD_FORBID_CONTENTS) && (v === De && (v = L(v)), l(v, e.ADD_FORBID_CONTENTS, E)), be && (g["#text"] = !0), H && l(g, ["html", "head", "body"]), g.table && (l(g, ["tbody"]), delete Z.tbody), e.TRUSTED_TYPES_POLICY) {
337
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
338
- throw ge('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
339
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
340
- throw ge('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
341
- O = e.TRUSTED_TYPES_POLICY, K = O.createHTML("");
342
- } else
343
- O === void 0 && (O = Cn(ae, c)), O !== null && typeof K == "string" && (K = O.createHTML(""));
344
- D && D(e), Y = e;
345
- }, it = l({}, [...Ue, ...Fe, ...gn]), rt = l({}, [...He, ...An]), en = function(e) {
346
- let t = se(e);
347
- (!t || !t.tagName) && (t = {
348
- namespaceURI: W,
349
- tagName: "template"
350
- });
351
- const i = re(e.tagName), u = re(t.tagName);
352
- return Ce[e.namespaceURI] ? e.namespaceURI === Te ? t.namespaceURI === x ? i === "svg" : t.namespaceURI === de ? i === "svg" && (u === "annotation-xml" || Ne[u]) : !!it[i] : e.namespaceURI === de ? t.namespaceURI === x ? i === "math" : t.namespaceURI === Te ? i === "math" && Me[u] : !!rt[i] : e.namespaceURI === x ? t.namespaceURI === Te && !Me[u] || t.namespaceURI === de && !Ne[u] ? !1 : !rt[i] && (Kt[i] || !it[i]) : !!(ee === "application/xhtml+xml" && Ce[e.namespaceURI]) : !1;
353
- }, M = function(e) {
354
- ne(o.removed, {
355
- element: e
356
- });
357
- try {
358
- se(e).removeChild(e);
359
- } catch {
360
- Ft(e);
361
- }
362
- }, z = function(e, t) {
363
- try {
364
- ne(o.removed, {
365
- attribute: t.getAttributeNode(e),
366
- from: t
367
- });
368
- } catch {
369
- ne(o.removed, {
370
- attribute: null,
371
- from: t
372
- });
373
- }
374
- if (t.removeAttribute(e), e === "is")
375
- if (G || me)
376
- try {
377
- M(t);
378
- } catch {
379
- }
380
- else
381
- try {
382
- t.setAttribute(e, "");
383
- } catch {
384
- }
385
- }, at = function(e) {
386
- let t = null, i = null;
387
- if (ye)
388
- e = "<remove></remove>" + e;
389
- else {
390
- const d = At(e, /^[\r\n\t ]+/);
391
- i = d && d[0];
392
- }
393
- ee === "application/xhtml+xml" && W === x && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
394
- const u = O ? O.createHTML(e) : e;
395
- if (W === x)
396
- try {
397
- t = new kt().parseFromString(u, ee);
398
- } catch {
399
- }
400
- if (!t || !t.documentElement) {
401
- t = Se.createDocument(W, "template", null);
402
- try {
403
- t.documentElement.innerHTML = Le ? K : u;
404
- } catch {
405
- }
406
- }
407
- const R = t.body || t.documentElement;
408
- return e && i && R.insertBefore(s.createTextNode(i), R.childNodes[0] || null), W === x ? Wt.call(t, H ? "html" : "body")[0] : H ? t.documentElement : R;
409
- }, st = function(e) {
410
- return Gt.call(
411
- e.ownerDocument || e,
412
- e,
413
- // eslint-disable-next-line no-bitwise
414
- $.SHOW_ELEMENT | $.SHOW_COMMENT | $.SHOW_TEXT | $.SHOW_PROCESSING_INSTRUCTION | $.SHOW_CDATA_SECTION,
415
- null
416
- );
417
- }, ve = function(e) {
418
- return e instanceof Pt && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof xt) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
419
- }, xe = function(e) {
420
- return typeof he == "function" && e instanceof he;
421
- };
422
- function P(a, e, t) {
423
- te(a, (i) => {
424
- i.call(o, e, t, Y);
425
- });
426
- }
427
- const lt = function(e) {
428
- let t = null;
429
- if (P(y.beforeSanitizeElements, e, null), ve(e))
430
- return M(e), !0;
431
- const i = E(e.nodeName);
432
- if (P(y.uponSanitizeElement, e, {
433
- tagName: i,
434
- allowedTags: g
435
- }), J && e.hasChildNodes() && !xe(e.firstElementChild) && S(/<[/\w!]/g, e.innerHTML) && S(/<[/\w!]/g, e.textContent) || J && e.namespaceURI === x && i === "style" && xe(e.firstElementChild) || e.nodeType === ie.progressingInstruction || J && e.nodeType === ie.comment && S(/<[/\w]/g, e.data))
436
- return M(e), !0;
437
- if (Z[i] || !(U.tagCheck instanceof Function && U.tagCheck(i)) && !g[i]) {
438
- if (!Z[i] && ut(i) && (p.tagNameCheck instanceof RegExp && S(p.tagNameCheck, i) || p.tagNameCheck instanceof Function && p.tagNameCheck(i)))
439
- return !1;
440
- if (be && !v[i]) {
441
- const u = se(e) || e.parentNode, R = zt(e) || e.childNodes;
442
- if (R && u) {
443
- const d = R.length;
444
- for (let I = d - 1; I >= 0; --I) {
445
- const C = Ut(R[I], !0);
446
- u.insertBefore(C, Ht(e));
447
- }
448
- }
449
- }
450
- return M(e), !0;
451
- }
452
- return e instanceof We && !en(e) || (i === "noscript" || i === "noembed" || i === "noframes") && S(/<\/no(script|embed|frames)/i, e.innerHTML) ? (M(e), !0) : (F && e.nodeType === ie.text && (t = e.textContent, te([le, ce, ue], (u) => {
453
- t = j(t, u, " ");
454
- }), e.textContent !== t && (ne(o.removed, {
455
- element: e.cloneNode()
456
- }), e.textContent = t)), P(y.afterSanitizeElements, e, null), !1);
457
- }, ct = function(e, t, i) {
458
- if (fe[t] || Ze && (t === "id" || t === "name") && (i in s || i in Qt))
459
- return !1;
460
- const u = h[t] || U.attributeCheck instanceof Function && U.attributeCheck(t, e);
461
- if (!(Re && !fe[t] && S(jt, t))) {
462
- if (!($e && S(Xt, t))) {
463
- if (!u || fe[t]) {
464
- if (
465
- // First condition does a very basic check if a) it's basically a valid custom element tagname AND
466
- // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
467
- // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
468
- !(ut(e) && (p.tagNameCheck instanceof RegExp && S(p.tagNameCheck, e) || p.tagNameCheck instanceof Function && p.tagNameCheck(e)) && (p.attributeNameCheck instanceof RegExp && S(p.attributeNameCheck, t) || p.attributeNameCheck instanceof Function && p.attributeNameCheck(t, e)) || // Alternative, second condition checks if it's an `is`-attribute, AND
469
- // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
470
- t === "is" && p.allowCustomizedBuiltInElements && (p.tagNameCheck instanceof RegExp && S(p.tagNameCheck, i) || p.tagNameCheck instanceof Function && p.tagNameCheck(i)))
471
- ) return !1;
472
- } else if (!Ie[t]) {
473
- if (!S(je, j(i, Ye, ""))) {
474
- if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ht(i, "data:") === 0 && et[e])) {
475
- if (!(qe && !S(Vt, j(i, Ye, "")))) {
476
- if (i)
477
- return !1;
478
- }
479
- }
480
- }
481
- }
482
- }
483
- }
484
- return !0;
485
- }, tn = l({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), ut = function(e) {
486
- return !tn[re(e)] && S($t, e);
487
- }, ft = function(e) {
488
- P(y.beforeSanitizeAttributes, e, null);
489
- const {
490
- attributes: t
491
- } = e;
492
- if (!t || ve(e))
493
- return;
494
- const i = {
495
- attrName: "",
496
- attrValue: "",
497
- keepAttr: !0,
498
- allowedAttributes: h,
499
- forceKeepAttr: void 0
500
- };
501
- let u = t.length;
502
- for (; u--; ) {
503
- const R = t[u], {
504
- name: d,
505
- namespaceURI: I,
506
- value: C
507
- } = R, w = E(d), Pe = C;
508
- let A = d === "value" ? Pe : fn(Pe);
509
- if (i.attrName = w, i.attrValue = A, i.keepAttr = !0, i.forceKeepAttr = void 0, P(y.uponSanitizeAttribute, e, i), A = i.attrValue, Je && (w === "id" || w === "name") && ht(A, Qe) !== 0 && (z(d, e), A = Qe + A), J && S(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, A)) {
510
- z(d, e);
511
- continue;
512
- }
513
- if (w === "attributename" && At(A, "href")) {
514
- z(d, e);
515
- continue;
516
- }
517
- if (i.forceKeepAttr)
518
- continue;
519
- if (!i.keepAttr) {
520
- z(d, e);
521
- continue;
522
- }
523
- if (!Ke && S(/\/>/i, A)) {
524
- z(d, e);
525
- continue;
526
- }
527
- F && te([le, ce, ue], (dt) => {
528
- A = j(A, dt, " ");
529
- });
530
- const pt = E(e.nodeName);
531
- if (!ct(pt, w, A)) {
532
- z(d, e);
533
- continue;
534
- }
535
- if (O && typeof ae == "object" && typeof ae.getAttributeType == "function" && !I)
536
- switch (ae.getAttributeType(pt, w)) {
537
- case "TrustedHTML": {
538
- A = O.createHTML(A);
539
- break;
540
- }
541
- case "TrustedScriptURL": {
542
- A = O.createScriptURL(A);
543
- break;
544
- }
545
- }
546
- if (A !== Pe)
547
- try {
548
- I ? e.setAttributeNS(I, d, A) : e.setAttribute(d, A), ve(e) ? M(e) : gt(o.removed);
549
- } catch {
550
- z(d, e);
551
- }
552
- }
553
- P(y.afterSanitizeAttributes, e, null);
554
- }, mt = function(e) {
555
- let t = null;
556
- const i = st(e);
557
- for (P(y.beforeSanitizeShadowDOM, e, null); t = i.nextNode(); )
558
- P(y.uponSanitizeShadowNode, t, null), lt(t), ft(t), t.content instanceof m && mt(t.content);
559
- P(y.afterSanitizeShadowDOM, e, null);
560
- };
561
- return o.sanitize = function(a) {
562
- let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = null, i = null, u = null, R = null;
563
- if (Le = !a, Le && (a = "<!-->"), typeof a != "string" && !xe(a) && (a = _n(a), typeof a != "string"))
564
- throw ge("dirty is not a string, aborting");
565
- if (!o.isSupported)
566
- return a;
567
- if (Oe || we(e), o.removed = [], typeof a == "string" && (Q = !1), Q) {
568
- const C = a.nodeName;
569
- if (typeof C == "string") {
570
- const w = E(C);
571
- if (!g[w] || Z[w])
572
- throw ge("root node is forbidden and cannot be sanitized in-place");
573
- }
574
- } else if (a instanceof he)
575
- t = at("<!---->"), i = t.ownerDocument.importNode(a, !0), i.nodeType === ie.element && i.nodeName === "BODY" || i.nodeName === "HTML" ? t = i : t.appendChild(i);
576
- else {
577
- if (!G && !F && !H && // eslint-disable-next-line unicorn/prefer-includes
578
- a.indexOf("<") === -1)
579
- return O && pe ? O.createHTML(a) : a;
580
- if (t = at(a), !t)
581
- return G ? null : pe ? K : "";
582
- }
583
- t && ye && M(t.firstChild);
584
- const d = st(Q ? a : t);
585
- for (; u = d.nextNode(); )
586
- lt(u), ft(u), u.content instanceof m && mt(u.content);
587
- if (Q)
588
- return a;
589
- if (G) {
590
- if (F) {
591
- t.normalize();
592
- let C = t.innerHTML;
593
- te([le, ce, ue], (w) => {
594
- C = j(C, w, " ");
595
- }), t.innerHTML = C;
596
- }
597
- if (me)
598
- for (R = Bt.call(t.ownerDocument); t.firstChild; )
599
- R.appendChild(t.firstChild);
600
- else
601
- R = t;
602
- return (h.shadowroot || h.shadowrootmode) && (R = Yt.call(r, R, !0)), R;
603
- }
604
- let I = H ? t.outerHTML : t.innerHTML;
605
- return H && g["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name && S(wt, t.ownerDocument.doctype.name) && (I = "<!DOCTYPE " + t.ownerDocument.doctype.name + `>
606
- ` + I), F && te([le, ce, ue], (C) => {
607
- I = j(I, C, " ");
608
- }), O && pe ? O.createHTML(I) : I;
609
- }, o.setConfig = function() {
610
- let a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
611
- we(a), Oe = !0;
612
- }, o.clearConfig = function() {
613
- Y = null, Oe = !1;
614
- }, o.isValidAttribute = function(a, e, t) {
615
- Y || we({});
616
- const i = E(a), u = E(e);
617
- return ct(i, u, t);
618
- }, o.addHook = function(a, e) {
619
- typeof e == "function" && ne(y[a], e);
620
- }, o.removeHook = function(a, e) {
621
- if (e !== void 0) {
622
- const t = cn(y[a], e);
623
- return t === -1 ? void 0 : un(y[a], t, 1)[0];
624
- }
625
- return gt(y[a]);
626
- }, o.removeHooks = function(a) {
627
- y[a] = [];
628
- }, o.removeAllHooks = function() {
629
- y = Lt();
630
- }, o;
631
- }
632
- var _ = vt(), Nn = _;
633
- _.sanitize.bind(_);
634
- _.isSupported;
635
- _.addHook.bind(_);
636
- _.removeHook.bind(_);
637
- _.removeHooks.bind(_);
638
- _.removeAllHooks.bind(_);
639
- _.setConfig.bind(_);
640
- _.clearConfig.bind(_);
641
- _.isValidAttribute.bind(_);
642
- _.version;
643
- _.removed;
644
- const Ct = {
645
- left: "tooltip-left",
646
- top: "tooltip-top",
647
- bottom: "tooltip-bottom",
648
- right: "tooltip-right"
649
- }, xn = nn({
650
- name: "Tooltip",
651
- props: {
652
- id: {
653
- type: String,
654
- default: void 0
655
- },
656
- direction: {
657
- type: String,
658
- default: "right"
659
- },
660
- color: {
661
- type: String,
662
- default: "dark-3"
663
- },
664
- textColor: {
665
- type: String,
666
- default: "white"
667
- },
668
- width: {
669
- type: [Number, String],
670
- default: 80
671
- },
672
- customClass: {
673
- type: String,
674
- default: ""
675
- },
676
- content: {
677
- type: String,
678
- required: !0
679
- }
680
- },
681
- setup(n) {
682
- const o = "invisible opacity-0 group-hover:visible group-hover:opacity-100 group-focus:visible group-focus:opacity-100 z-[100] tooltip", s = _e(() => [
683
- Tt.bgColorVariant({ color: n.color }),
684
- Tt.textColorVariant({ color: n.textColor })
685
- ].join(" ")), r = _e(() => ({ width: `${n.width}px` })), c = _e(() => Ct[n.direction] || Ct.right), m = _e(() => [
686
- o,
687
- c.value,
688
- s.value,
689
- n.customClass
690
- ]);
691
- return () => on("div", {
692
- id: n.id,
693
- class: m.value,
694
- role: "tooltip",
695
- innerHTML: Nn.sanitize(n.content),
696
- style: [r.value]
697
- });
698
- }
699
- });
700
- export {
701
- xn as t,
702
- vn as v
703
- };