vue-onboarding-tour
Advanced tools
Comparing version
@@ -1,3 +0,3 @@ | ||
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-bottom-2{bottom:-.5rem}.-left-2{left:-.5rem}.-right-2{right:-.5rem}.-top-2{top:-.5rem}.left-3{left:.75rem}.right-4{right:1rem}.top-3{top:.75rem}.top-4{top:1rem}.z-\\[9999\\]{z-index:9999}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.mt-4{margin-top:1rem}.flex{display:flex}.h-2{height:.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-full{height:100%}.w-2{width:.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-\\[320px\\]{width:320px}.w-full{width:100%}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.rotate-45{--tw-rotate:45deg}.rotate-45,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.gap-4{gap:1rem}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.fill-gray-500{fill:#6b7280}.p-6{padding:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-relaxed{line-height:1.625}.tracking-wider{letter-spacing:.05em}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:fill-gray-700:hover{fill:#374151}.hover\\:text-blue-800:hover{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }")),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})(); | ||
import { getCurrentScope as hn, onScopeDispose as gn, unref as ht, getCurrentInstance as Qt, onMounted as Tt, nextTick as Ze, ref as k, computed as te, watch as pe, defineComponent as vn, onUnmounted as Tn, openBlock as Y, createElementBlock as V, normalizeClass as Ve, normalizeStyle as zt, createCommentVNode as ce, createElementVNode as be, renderSlot as En, toDisplayString as Ht, Fragment as _n, renderList as wn } from "vue"; | ||
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-bottom-2{bottom:-.5rem}.-left-2{left:-.5rem}.-right-2{right:-.5rem}.-top-2{top:-.5rem}.left-3{left:.75rem}.right-4{right:1rem}.top-3{top:.75rem}.top-4{top:1rem}.z-\\[9999\\]{z-index:9999}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.mt-4{margin-top:1rem}.flex{display:flex}.h-2{height:.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-full{height:100%}.w-2{width:.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-\\[320px\\]{width:320px}.w-full{width:100%}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.rotate-45{--tw-rotate:45deg}.rotate-45,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.gap-4{gap:1rem}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.fill-gray-500{fill:#6b7280}.p-6{padding:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-relaxed{line-height:1.625}.tracking-wider{letter-spacing:.05em}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:fill-gray-700:hover{fill:#374151}.hover\\:text-blue-800:hover{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }")),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})(); | ||
import { getCurrentScope as hn, onScopeDispose as gn, unref as ht, getCurrentInstance as Qt, onMounted as Tt, nextTick as Ze, ref as k, computed as J, watch as fe, defineComponent as vn, onUnmounted as Tn, openBlock as Y, createElementBlock as V, normalizeClass as Ve, normalizeStyle as zt, createCommentVNode as ce, createElementVNode as be, renderSlot as En, toDisplayString as Ht, Fragment as _n, renderList as wn } from "vue"; | ||
function et(o) { | ||
@@ -16,20 +16,20 @@ return hn() ? (gn(o), !0) : !1; | ||
} | ||
function Ln(o, n = !0, i) { | ||
Cn() ? Tt(o, i) : n ? o() : Ze(o); | ||
function Ln(o, t = !0, i) { | ||
Cn() ? Tt(o, i) : t ? o() : Ze(o); | ||
} | ||
const Et = Sn ? window : void 0; | ||
function Oe(o) { | ||
var n; | ||
var t; | ||
const i = tt(o); | ||
return (n = i == null ? void 0 : i.$el) != null ? n : i; | ||
return (t = i == null ? void 0 : i.$el) != null ? t : i; | ||
} | ||
function Ft(...o) { | ||
let n, i, t, p; | ||
if (typeof o[0] == "string" || Array.isArray(o[0]) ? ([i, t, p] = o, n = Et) : [n, i, t, p] = o, !n) | ||
let t, i, n, p; | ||
if (typeof o[0] == "string" || Array.isArray(o[0]) ? ([i, n, p] = o, t = Et) : [t, i, n, p] = o, !t) | ||
return On; | ||
Array.isArray(i) || (i = [i]), Array.isArray(t) || (t = [t]); | ||
Array.isArray(i) || (i = [i]), Array.isArray(n) || (n = [n]); | ||
const d = [], w = () => { | ||
d.forEach((T) => T()), d.length = 0; | ||
}, O = (T, A, b, l) => (T.addEventListener(A, b, l), () => T.removeEventListener(A, b, l)), g = pe( | ||
() => [Oe(n), tt(p)], | ||
}, O = (T, A, b, c) => (T.addEventListener(A, b, c), () => T.removeEventListener(A, b, c)), g = fe( | ||
() => [Oe(t), tt(p)], | ||
([T, A]) => { | ||
@@ -40,37 +40,37 @@ if (w(), !T) | ||
d.push( | ||
...i.flatMap((l) => t.map((_) => O(T, l, _, b))) | ||
...i.flatMap((c) => n.map((_) => O(T, c, _, b))) | ||
); | ||
}, | ||
{ immediate: !0, flush: "post" } | ||
), x = () => { | ||
), R = () => { | ||
g(), w(); | ||
}; | ||
return et(x), x; | ||
return et(R), R; | ||
} | ||
function xn() { | ||
const o = k(!1), n = Qt(); | ||
return n && Tt(() => { | ||
const o = k(!1), t = Qt(); | ||
return t && Tt(() => { | ||
o.value = !0; | ||
}, n), o; | ||
}, t), o; | ||
} | ||
function en(o) { | ||
const n = xn(); | ||
return te(() => (n.value, !!o())); | ||
const t = xn(); | ||
return J(() => (t.value, !!o())); | ||
} | ||
function Rn(o, n, i = {}) { | ||
const { window: t = Et, ...p } = i; | ||
function Rn(o, t, i = {}) { | ||
const { window: n = Et, ...p } = i; | ||
let d; | ||
const w = en(() => t && "MutationObserver" in t), O = () => { | ||
const w = en(() => n && "MutationObserver" in n), O = () => { | ||
d && (d.disconnect(), d = void 0); | ||
}, g = te(() => { | ||
const b = tt(o), l = (Array.isArray(b) ? b : [b]).map(Oe).filter(yn); | ||
return new Set(l); | ||
}), x = pe( | ||
}, g = J(() => { | ||
const b = tt(o), c = (Array.isArray(b) ? b : [b]).map(Oe).filter(yn); | ||
return new Set(c); | ||
}), R = fe( | ||
() => g.value, | ||
(b) => { | ||
O(), w.value && b.size && (d = new MutationObserver(n), b.forEach((l) => d.observe(l, p))); | ||
O(), w.value && b.size && (d = new MutationObserver(t), b.forEach((c) => d.observe(c, p))); | ||
}, | ||
{ immediate: !0, flush: "post" } | ||
), T = () => d == null ? void 0 : d.takeRecords(), A = () => { | ||
x(), O(); | ||
R(), O(); | ||
}; | ||
@@ -83,15 +83,15 @@ return et(A), { | ||
} | ||
function Dn(o, n, i = {}) { | ||
const { window: t = Et, ...p } = i; | ||
function Dn(o, t, i = {}) { | ||
const { window: n = Et, ...p } = i; | ||
let d; | ||
const w = en(() => t && "ResizeObserver" in t), O = () => { | ||
const w = en(() => n && "ResizeObserver" in n), O = () => { | ||
d && (d.disconnect(), d = void 0); | ||
}, g = te(() => { | ||
}, g = J(() => { | ||
const A = tt(o); | ||
return Array.isArray(A) ? A.map((b) => Oe(b)) : [Oe(A)]; | ||
}), x = pe( | ||
}), R = fe( | ||
g, | ||
(A) => { | ||
if (O(), w.value && t) { | ||
d = new ResizeObserver(n); | ||
if (O(), w.value && n) { | ||
d = new ResizeObserver(t); | ||
for (const b of A) | ||
@@ -103,3 +103,3 @@ b && d.observe(b, p); | ||
), T = () => { | ||
O(), x(); | ||
O(), R(); | ||
}; | ||
@@ -111,36 +111,36 @@ return et(T), { | ||
} | ||
function Bt(o, n = {}) { | ||
function Bt(o, t = {}) { | ||
const { | ||
reset: i = !0, | ||
windowResize: t = !0, | ||
windowResize: n = !0, | ||
windowScroll: p = !0, | ||
immediate: d = !0, | ||
updateTiming: w = "sync" | ||
} = n, O = k(0), g = k(0), x = k(0), T = k(0), A = k(0), b = k(0), l = k(0), _ = k(0); | ||
function u() { | ||
const E = Oe(o); | ||
if (!E) { | ||
i && (O.value = 0, g.value = 0, x.value = 0, T.value = 0, A.value = 0, b.value = 0, l.value = 0, _.value = 0); | ||
} = t, O = k(0), g = k(0), R = k(0), T = k(0), A = k(0), b = k(0), c = k(0), _ = k(0); | ||
function f() { | ||
const D = Oe(o); | ||
if (!D) { | ||
i && (O.value = 0, g.value = 0, R.value = 0, T.value = 0, A.value = 0, b.value = 0, c.value = 0, _.value = 0); | ||
return; | ||
} | ||
const f = E.getBoundingClientRect(); | ||
O.value = f.height, g.value = f.bottom, x.value = f.left, T.value = f.right, A.value = f.top, b.value = f.width, l.value = f.x, _.value = f.y; | ||
const s = D.getBoundingClientRect(); | ||
O.value = s.height, g.value = s.bottom, R.value = s.left, T.value = s.right, A.value = s.top, b.value = s.width, c.value = s.x, _.value = s.y; | ||
} | ||
function S() { | ||
w === "sync" ? u() : w === "next-frame" && requestAnimationFrame(() => u()); | ||
function y() { | ||
w === "sync" ? f() : w === "next-frame" && requestAnimationFrame(() => f()); | ||
} | ||
return Dn(o, S), pe(() => Oe(o), (E) => !E && S()), Rn(o, S, { | ||
return Dn(o, y), fe(() => Oe(o), (D) => !D && y()), Rn(o, y, { | ||
attributeFilter: ["style", "class"] | ||
}), p && Ft("scroll", S, { capture: !0, passive: !0 }), t && Ft("resize", S, { passive: !0 }), Ln(() => { | ||
d && S(); | ||
}), p && Ft("scroll", y, { capture: !0, passive: !0 }), n && Ft("resize", y, { passive: !0 }), Ln(() => { | ||
d && y(); | ||
}), { | ||
height: O, | ||
bottom: g, | ||
left: x, | ||
left: R, | ||
right: T, | ||
top: A, | ||
width: b, | ||
x: l, | ||
x: c, | ||
y: _, | ||
update: S | ||
update: y | ||
}; | ||
@@ -158,87 +158,87 @@ } | ||
if (Wt) return qe; | ||
Wt = 1, qe.parse = w, qe.serialize = x; | ||
var o = Object.prototype.toString, n = Object.prototype.hasOwnProperty, i = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/, t = /^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/, p = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, d = /^[\u0020-\u003A\u003D-\u007E]*$/; | ||
function w(l, _) { | ||
if (typeof l != "string") | ||
Wt = 1, qe.parse = w, qe.serialize = R; | ||
var o = Object.prototype.toString, t = Object.prototype.hasOwnProperty, i = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/, n = /^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/, p = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, d = /^[\u0020-\u003A\u003D-\u007E]*$/; | ||
function w(c, _) { | ||
if (typeof c != "string") | ||
throw new TypeError("argument str must be a string"); | ||
var u = {}, S = l.length; | ||
if (S < 2) return u; | ||
var E = _ && _.decode || T, f = 0, D = 0, y = 0; | ||
var f = {}, y = c.length; | ||
if (y < 2) return f; | ||
var D = _ && _.decode || T, s = 0, S = 0, E = 0; | ||
do { | ||
if (D = l.indexOf("=", f), D === -1) break; | ||
if (y = l.indexOf(";", f), y === -1) | ||
y = S; | ||
else if (D > y) { | ||
f = l.lastIndexOf(";", D - 1) + 1; | ||
if (S = c.indexOf("=", s), S === -1) break; | ||
if (E = c.indexOf(";", s), E === -1) | ||
E = y; | ||
else if (S > E) { | ||
s = c.lastIndexOf(";", S - 1) + 1; | ||
continue; | ||
} | ||
var X = O(l, f, D), ae = g(l, D, X), ge = l.slice(X, ae); | ||
if (!n.call(u, ge)) { | ||
var ne = O(l, D + 1, y), ue = g(l, y, ne); | ||
l.charCodeAt(ne) === 34 && l.charCodeAt(ue - 1) === 34 && (ne++, ue--); | ||
var fe = l.slice(ne, ue); | ||
u[ge] = b(fe, E); | ||
var K = O(c, s, S), re = g(c, S, K), me = c.slice(K, re); | ||
if (!t.call(f, me)) { | ||
var ue = O(c, S + 1, E), ae = g(c, E, ue); | ||
c.charCodeAt(ue) === 34 && c.charCodeAt(ae - 1) === 34 && (ue++, ae--); | ||
var he = c.slice(ue, ae); | ||
f[me] = b(he, D); | ||
} | ||
f = y + 1; | ||
} while (f < S); | ||
return u; | ||
s = E + 1; | ||
} while (s < y); | ||
return f; | ||
} | ||
function O(l, _, u) { | ||
function O(c, _, f) { | ||
do { | ||
var S = l.charCodeAt(_); | ||
if (S !== 32 && S !== 9) return _; | ||
} while (++_ < u); | ||
return u; | ||
var y = c.charCodeAt(_); | ||
if (y !== 32 && y !== 9) return _; | ||
} while (++_ < f); | ||
return f; | ||
} | ||
function g(l, _, u) { | ||
for (; _ > u; ) { | ||
var S = l.charCodeAt(--_); | ||
if (S !== 32 && S !== 9) return _ + 1; | ||
function g(c, _, f) { | ||
for (; _ > f; ) { | ||
var y = c.charCodeAt(--_); | ||
if (y !== 32 && y !== 9) return _ + 1; | ||
} | ||
return u; | ||
return f; | ||
} | ||
function x(l, _, u) { | ||
var S = u && u.encode || encodeURIComponent; | ||
if (typeof S != "function") | ||
function R(c, _, f) { | ||
var y = f && f.encode || encodeURIComponent; | ||
if (typeof y != "function") | ||
throw new TypeError("option encode is invalid"); | ||
if (!i.test(l)) | ||
if (!i.test(c)) | ||
throw new TypeError("argument name is invalid"); | ||
var E = S(_); | ||
if (!t.test(E)) | ||
var D = y(_); | ||
if (!n.test(D)) | ||
throw new TypeError("argument val is invalid"); | ||
var f = l + "=" + E; | ||
if (!u) return f; | ||
if (u.maxAge != null) { | ||
var D = Math.floor(u.maxAge); | ||
if (!isFinite(D)) | ||
var s = c + "=" + D; | ||
if (!f) return s; | ||
if (f.maxAge != null) { | ||
var S = Math.floor(f.maxAge); | ||
if (!isFinite(S)) | ||
throw new TypeError("option maxAge is invalid"); | ||
f += "; Max-Age=" + D; | ||
s += "; Max-Age=" + S; | ||
} | ||
if (u.domain) { | ||
if (!p.test(u.domain)) | ||
if (f.domain) { | ||
if (!p.test(f.domain)) | ||
throw new TypeError("option domain is invalid"); | ||
f += "; Domain=" + u.domain; | ||
s += "; Domain=" + f.domain; | ||
} | ||
if (u.path) { | ||
if (!d.test(u.path)) | ||
if (f.path) { | ||
if (!d.test(f.path)) | ||
throw new TypeError("option path is invalid"); | ||
f += "; Path=" + u.path; | ||
s += "; Path=" + f.path; | ||
} | ||
if (u.expires) { | ||
var y = u.expires; | ||
if (!A(y) || isNaN(y.valueOf())) | ||
if (f.expires) { | ||
var E = f.expires; | ||
if (!A(E) || isNaN(E.valueOf())) | ||
throw new TypeError("option expires is invalid"); | ||
f += "; Expires=" + y.toUTCString(); | ||
s += "; Expires=" + E.toUTCString(); | ||
} | ||
if (u.httpOnly && (f += "; HttpOnly"), u.secure && (f += "; Secure"), u.partitioned && (f += "; Partitioned"), u.priority) { | ||
var X = typeof u.priority == "string" ? u.priority.toLowerCase() : u.priority; | ||
switch (X) { | ||
if (f.httpOnly && (s += "; HttpOnly"), f.secure && (s += "; Secure"), f.partitioned && (s += "; Partitioned"), f.priority) { | ||
var K = typeof f.priority == "string" ? f.priority.toLowerCase() : f.priority; | ||
switch (K) { | ||
case "low": | ||
f += "; Priority=Low"; | ||
s += "; Priority=Low"; | ||
break; | ||
case "medium": | ||
f += "; Priority=Medium"; | ||
s += "; Priority=Medium"; | ||
break; | ||
case "high": | ||
f += "; Priority=High"; | ||
s += "; Priority=High"; | ||
break; | ||
@@ -249,16 +249,16 @@ default: | ||
} | ||
if (u.sameSite) { | ||
var ae = typeof u.sameSite == "string" ? u.sameSite.toLowerCase() : u.sameSite; | ||
switch (ae) { | ||
if (f.sameSite) { | ||
var re = typeof f.sameSite == "string" ? f.sameSite.toLowerCase() : f.sameSite; | ||
switch (re) { | ||
case !0: | ||
f += "; SameSite=Strict"; | ||
s += "; SameSite=Strict"; | ||
break; | ||
case "lax": | ||
f += "; SameSite=Lax"; | ||
s += "; SameSite=Lax"; | ||
break; | ||
case "strict": | ||
f += "; SameSite=Strict"; | ||
s += "; SameSite=Strict"; | ||
break; | ||
case "none": | ||
f += "; SameSite=None"; | ||
s += "; SameSite=None"; | ||
break; | ||
@@ -269,15 +269,15 @@ default: | ||
} | ||
return f; | ||
return s; | ||
} | ||
function T(l) { | ||
return l.indexOf("%") !== -1 ? decodeURIComponent(l) : l; | ||
function T(c) { | ||
return c.indexOf("%") !== -1 ? decodeURIComponent(c) : c; | ||
} | ||
function A(l) { | ||
return o.call(l) === "[object Date]"; | ||
function A(c) { | ||
return o.call(c) === "[object Date]"; | ||
} | ||
function b(l, _) { | ||
function b(c, _) { | ||
try { | ||
return _(l); | ||
return _(c); | ||
} catch { | ||
return l; | ||
return c; | ||
} | ||
@@ -295,5 +295,5 @@ } | ||
} | ||
function ct(o, n = {}) { | ||
function ct(o, t = {}) { | ||
const i = kn(o); | ||
if (!n.doNotParse) | ||
if (!t.doNotParse) | ||
try { | ||
@@ -309,3 +309,3 @@ return JSON.parse(i); | ||
class Pn { | ||
constructor(n, i = {}) { | ||
constructor(t, i = {}) { | ||
this.changeListeners = [], this.HAS_DOCUMENT_COOKIE = !1, this.update = () => { | ||
@@ -317,14 +317,14 @@ if (!this.HAS_DOCUMENT_COOKIE) | ||
}; | ||
const t = typeof document > "u" ? "" : document.cookie; | ||
this.cookies = Mn(n || t), this.defaultSetOptions = i, this.HAS_DOCUMENT_COOKIE = Nn(); | ||
const n = typeof document > "u" ? "" : document.cookie; | ||
this.cookies = Mn(t || n), this.defaultSetOptions = i, this.HAS_DOCUMENT_COOKIE = Nn(); | ||
} | ||
_emitChange(n) { | ||
_emitChange(t) { | ||
for (let i = 0; i < this.changeListeners.length; ++i) | ||
this.changeListeners[i](n); | ||
this.changeListeners[i](t); | ||
} | ||
_checkChanges(n) { | ||
new Set(Object.keys(n).concat(Object.keys(this.cookies))).forEach((t) => { | ||
n[t] !== this.cookies[t] && this._emitChange({ | ||
name: t, | ||
value: ct(this.cookies[t]) | ||
_checkChanges(t) { | ||
new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach((n) => { | ||
t[n] !== this.cookies[n] && this._emitChange({ | ||
name: n, | ||
value: ct(this.cookies[n]) | ||
}); | ||
@@ -339,34 +339,34 @@ }); | ||
} | ||
get(n, i = {}) { | ||
return i.doNotUpdate || this.update(), ct(this.cookies[n], i); | ||
get(t, i = {}) { | ||
return i.doNotUpdate || this.update(), ct(this.cookies[t], i); | ||
} | ||
getAll(n = {}) { | ||
n.doNotUpdate || this.update(); | ||
getAll(t = {}) { | ||
t.doNotUpdate || this.update(); | ||
const i = {}; | ||
for (let t in this.cookies) | ||
i[t] = ct(this.cookies[t], n); | ||
for (let n in this.cookies) | ||
i[n] = ct(this.cookies[n], t); | ||
return i; | ||
} | ||
set(n, i, t) { | ||
t ? t = Object.assign(Object.assign({}, this.defaultSetOptions), t) : t = this.defaultSetOptions; | ||
set(t, i, n) { | ||
n ? n = Object.assign(Object.assign({}, this.defaultSetOptions), n) : n = this.defaultSetOptions; | ||
const p = typeof i == "string" ? i : JSON.stringify(i); | ||
this.cookies = Object.assign(Object.assign({}, this.cookies), { [n]: p }), this.HAS_DOCUMENT_COOKIE && (document.cookie = Je.serialize(n, p, t)), this._emitChange({ name: n, value: i, options: t }); | ||
this.cookies = Object.assign(Object.assign({}, this.cookies), { [t]: p }), this.HAS_DOCUMENT_COOKIE && (document.cookie = Je.serialize(t, p, n)), this._emitChange({ name: t, value: i, options: n }); | ||
} | ||
remove(n, i) { | ||
const t = i = Object.assign(Object.assign(Object.assign({}, this.defaultSetOptions), i), { expires: new Date(1970, 1, 1, 0, 0, 1), maxAge: 0 }); | ||
this.cookies = Object.assign({}, this.cookies), delete this.cookies[n], this.HAS_DOCUMENT_COOKIE && (document.cookie = Je.serialize(n, "", t)), this._emitChange({ name: n, value: void 0, options: i }); | ||
remove(t, i) { | ||
const n = i = Object.assign(Object.assign(Object.assign({}, this.defaultSetOptions), i), { expires: new Date(1970, 1, 1, 0, 0, 1), maxAge: 0 }); | ||
this.cookies = Object.assign({}, this.cookies), delete this.cookies[t], this.HAS_DOCUMENT_COOKIE && (document.cookie = Je.serialize(t, "", n)), this._emitChange({ name: t, value: void 0, options: i }); | ||
} | ||
addChangeListener(n) { | ||
this.changeListeners.push(n), this.HAS_DOCUMENT_COOKIE && this.changeListeners.length === 1 && (typeof window == "object" && "cookieStore" in window ? window.cookieStore.addEventListener("change", this.update) : this._startPolling()); | ||
addChangeListener(t) { | ||
this.changeListeners.push(t), this.HAS_DOCUMENT_COOKIE && this.changeListeners.length === 1 && (typeof window == "object" && "cookieStore" in window ? window.cookieStore.addEventListener("change", this.update) : this._startPolling()); | ||
} | ||
removeChangeListener(n) { | ||
const i = this.changeListeners.indexOf(n); | ||
removeChangeListener(t) { | ||
const i = this.changeListeners.indexOf(t); | ||
i >= 0 && this.changeListeners.splice(i, 1), this.HAS_DOCUMENT_COOKIE && this.changeListeners.length === 0 && (typeof window == "object" && "cookieStore" in window ? window.cookieStore.removeEventListener("change", this.update) : this._stopPolling()); | ||
} | ||
} | ||
function Un(o, { doNotParse: n = !1, autoUpdateDependencies: i = !1 } = {}, t = new Pn()) { | ||
function Un(o, { doNotParse: t = !1, autoUpdateDependencies: i = !1 } = {}, n = new Pn()) { | ||
const p = i ? [] : o; | ||
let d = t.getAll({ doNotParse: !0 }); | ||
let d = n.getAll({ doNotParse: !0 }); | ||
const w = k(0), O = () => { | ||
const g = t.getAll({ doNotParse: !0 }); | ||
const g = n.getAll({ doNotParse: !0 }); | ||
zn( | ||
@@ -378,4 +378,4 @@ p || null, | ||
}; | ||
return t.addChangeListener(O), et(() => { | ||
t.removeChangeListener(O); | ||
return n.addChangeListener(O), et(() => { | ||
n.removeChangeListener(O); | ||
}), { | ||
@@ -385,18 +385,18 @@ /** | ||
*/ | ||
get: (...g) => (i && p && !p.includes(g[0]) && p.push(g[0]), w.value, t.get(g[0], { doNotParse: n, ...g[1] })), | ||
get: (...g) => (i && p && !p.includes(g[0]) && p.push(g[0]), w.value, n.get(g[0], { doNotParse: t, ...g[1] })), | ||
/** | ||
* Reactive get all cookies | ||
*/ | ||
getAll: (...g) => (w.value, t.getAll({ doNotParse: n, ...g[0] })), | ||
set: (...g) => t.set(...g), | ||
remove: (...g) => t.remove(...g), | ||
addChangeListener: (...g) => t.addChangeListener(...g), | ||
removeChangeListener: (...g) => t.removeChangeListener(...g) | ||
getAll: (...g) => (w.value, n.getAll({ doNotParse: t, ...g[0] })), | ||
set: (...g) => n.set(...g), | ||
remove: (...g) => n.remove(...g), | ||
addChangeListener: (...g) => n.addChangeListener(...g), | ||
removeChangeListener: (...g) => n.removeChangeListener(...g) | ||
}; | ||
} | ||
function zn(o, n, i) { | ||
function zn(o, t, i) { | ||
if (!o) | ||
return !0; | ||
for (const t of o) | ||
if (n[t] !== i[t]) | ||
for (const n of o) | ||
if (t[n] !== i[n]) | ||
return !0; | ||
@@ -414,4 +414,4 @@ return !1; | ||
let { | ||
freeze: G, | ||
seal: Z, | ||
freeze: $, | ||
seal: Q, | ||
create: nn | ||
@@ -422,20 +422,20 @@ } = Object, { | ||
} = typeof Reflect < "u" && Reflect; | ||
G || (G = function(n) { | ||
return n; | ||
$ || ($ = function(t) { | ||
return t; | ||
}); | ||
Z || (Z = function(n) { | ||
return n; | ||
Q || (Q = function(t) { | ||
return t; | ||
}); | ||
gt || (gt = function(n, i, t) { | ||
return n.apply(i, t); | ||
gt || (gt = function(t, i, n) { | ||
return t.apply(i, n); | ||
}); | ||
vt || (vt = function(n, i) { | ||
return new n(...i); | ||
vt || (vt = function(t, i) { | ||
return new t(...i); | ||
}); | ||
const Xe = q(Array.prototype.forEach), $t = q(Array.prototype.pop), Me = q(Array.prototype.push), Qe = q(String.prototype.toLowerCase), ut = q(String.prototype.toString), jt = q(String.prototype.match), ke = q(String.prototype.replace), Wn = q(String.prototype.indexOf), Gn = q(String.prototype.trim), ee = q(Object.prototype.hasOwnProperty), W = q(RegExp.prototype.test), Pe = $n(TypeError); | ||
function q(o) { | ||
return function(n) { | ||
for (var i = arguments.length, t = new Array(i > 1 ? i - 1 : 0), p = 1; p < i; p++) | ||
t[p - 1] = arguments[p]; | ||
return gt(o, n, t); | ||
const Xe = X(Array.prototype.forEach), $t = X(Array.prototype.pop), Ne = X(Array.prototype.push), Qe = X(String.prototype.toLowerCase), ut = X(String.prototype.toString), jt = X(String.prototype.match), Me = X(String.prototype.replace), Wn = X(String.prototype.indexOf), Gn = X(String.prototype.trim), te = X(Object.prototype.hasOwnProperty), G = X(RegExp.prototype.test), ke = $n(TypeError); | ||
function X(o) { | ||
return function(t) { | ||
for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), p = 1; p < i; p++) | ||
n[p - 1] = arguments[p]; | ||
return gt(o, t, n); | ||
}; | ||
@@ -445,16 +445,16 @@ } | ||
return function() { | ||
for (var n = arguments.length, i = new Array(n), t = 0; t < n; t++) | ||
i[t] = arguments[t]; | ||
for (var t = arguments.length, i = new Array(t), n = 0; n < t; n++) | ||
i[n] = arguments[n]; | ||
return vt(o, i); | ||
}; | ||
} | ||
function v(o, n) { | ||
function v(o, t) { | ||
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Qe; | ||
Gt && Gt(o, null); | ||
let t = n.length; | ||
for (; t--; ) { | ||
let p = n[t]; | ||
let n = t.length; | ||
for (; n--; ) { | ||
let p = t[n]; | ||
if (typeof p == "string") { | ||
const d = i(p); | ||
d !== p && (Hn(n) || (n[t] = d), p = d); | ||
d !== p && (Hn(t) || (t[n] = d), p = d); | ||
} | ||
@@ -466,20 +466,20 @@ o[p] = !0; | ||
function jn(o) { | ||
for (let n = 0; n < o.length; n++) | ||
ee(o, n) || (o[n] = null); | ||
for (let t = 0; t < o.length; t++) | ||
te(o, t) || (o[t] = null); | ||
return o; | ||
} | ||
function he(o) { | ||
const n = nn(null); | ||
for (const [i, t] of tn(o)) | ||
ee(o, i) && (Array.isArray(t) ? n[i] = jn(t) : t && typeof t == "object" && t.constructor === Object ? n[i] = he(t) : n[i] = t); | ||
return n; | ||
function de(o) { | ||
const t = nn(null); | ||
for (const [i, n] of tn(o)) | ||
te(o, i) && (Array.isArray(n) ? t[i] = jn(n) : n && typeof n == "object" && n.constructor === Object ? t[i] = de(n) : t[i] = n); | ||
return t; | ||
} | ||
function Ue(o, n) { | ||
function Pe(o, t) { | ||
for (; o !== null; ) { | ||
const t = Bn(o, n); | ||
if (t) { | ||
if (t.get) | ||
return q(t.get); | ||
if (typeof t.value == "function") | ||
return q(t.value); | ||
const n = Bn(o, t); | ||
if (n) { | ||
if (n.get) | ||
return X(n.get); | ||
if (typeof n.value == "function") | ||
return X(n.value); | ||
} | ||
@@ -493,9 +493,9 @@ o = Fn(o); | ||
} | ||
const Yt = G(["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"]), ft = G(["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"]), pt = G(["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"]), Yn = G(["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"]), dt = G(["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"]), Vn = G(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Vt = G(["#text"]), qt = G(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), mt = G(["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"]), Xt = G(["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"]), Ke = G(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), qn = Z(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Xn = Z(/<%[\w\W]*|[\w\W]*%>/gm), Kn = Z(/\$\{[\w\W]*}/gm), Zn = Z(/^data-[\-\w.\u00B7-\uFFFF]+$/), Jn = Z(/^aria-[\-\w]+$/), on = Z( | ||
const Yt = $(["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"]), ft = $(["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"]), pt = $(["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"]), Yn = $(["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"]), dt = $(["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"]), Vn = $(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Vt = $(["#text"]), qt = $(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), mt = $(["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"]), Xt = $(["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"]), Ke = $(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), qn = Q(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Xn = Q(/<%[\w\W]*|[\w\W]*%>/gm), Kn = Q(/\$\{[\w\W]*}/gm), Zn = Q(/^data-[\-\w.\u00B7-\uFFFF]+$/), Jn = Q(/^aria-[\-\w]+$/), on = Q( | ||
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i | ||
// eslint-disable-line no-useless-escape | ||
), Qn = Z(/^(?:\w+script|data):/i), eo = Z( | ||
), Qn = Q(/^(?:\w+script|data):/i), eo = Q( | ||
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g | ||
// eslint-disable-line no-control-regex | ||
), rn = Z(/^html$/i), to = Z(/^[a-z][.\w]*(-[.\w]+)+$/i); | ||
), rn = Q(/^html$/i), to = Q(/^[a-z][.\w]*(-[.\w]+)+$/i); | ||
var Kt = /* @__PURE__ */ Object.freeze({ | ||
@@ -514,3 +514,3 @@ __proto__: null, | ||
}); | ||
const ze = { | ||
const Ue = { | ||
element: 1, | ||
@@ -524,11 +524,11 @@ text: 3, | ||
return typeof window > "u" ? null : window; | ||
}, oo = function(n, i) { | ||
if (typeof n != "object" || typeof n.createPolicy != "function") | ||
}, oo = function(t, i) { | ||
if (typeof t != "object" || typeof t.createPolicy != "function") | ||
return null; | ||
let t = null; | ||
let n = null; | ||
const p = "data-tt-policy-suffix"; | ||
i && i.hasAttribute(p) && (t = i.getAttribute(p)); | ||
const d = "dompurify" + (t ? "#" + t : ""); | ||
i && i.hasAttribute(p) && (n = i.getAttribute(p)); | ||
const d = "dompurify" + (n ? "#" + n : ""); | ||
try { | ||
return n.createPolicy(d, { | ||
return t.createPolicy(d, { | ||
createHTML(w) { | ||
@@ -559,9 +559,9 @@ return w; | ||
let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : no(); | ||
const n = (c) => an(c); | ||
if (n.version = "3.2.3", n.removed = [], !o || !o.document || o.document.nodeType !== ze.document) | ||
return n.isSupported = !1, n; | ||
const t = (u) => an(u); | ||
if (t.version = "3.2.3", t.removed = [], !o || !o.document || o.document.nodeType !== Ue.document) | ||
return t.isSupported = !1, t; | ||
let { | ||
document: i | ||
} = o; | ||
const t = i, p = t.currentScript, { | ||
const n = i, p = n.currentScript, { | ||
DocumentFragment: d, | ||
@@ -571,40 +571,40 @@ HTMLTemplateElement: w, | ||
Element: g, | ||
NodeFilter: x, | ||
NodeFilter: R, | ||
NamedNodeMap: T = o.NamedNodeMap || o.MozNamedAttrMap, | ||
HTMLFormElement: A, | ||
DOMParser: b, | ||
trustedTypes: l | ||
} = o, _ = g.prototype, u = Ue(_, "cloneNode"), S = Ue(_, "remove"), E = Ue(_, "nextSibling"), f = Ue(_, "childNodes"), D = Ue(_, "parentNode"); | ||
trustedTypes: c | ||
} = o, _ = g.prototype, f = Pe(_, "cloneNode"), y = Pe(_, "remove"), D = Pe(_, "nextSibling"), s = Pe(_, "childNodes"), S = Pe(_, "parentNode"); | ||
if (typeof w == "function") { | ||
const c = i.createElement("template"); | ||
c.content && c.content.ownerDocument && (i = c.content.ownerDocument); | ||
const u = i.createElement("template"); | ||
u.content && u.content.ownerDocument && (i = u.content.ownerDocument); | ||
} | ||
let y, X = ""; | ||
let E, K = ""; | ||
const { | ||
implementation: ae, | ||
createNodeIterator: ge, | ||
createDocumentFragment: ne, | ||
getElementsByTagName: ue | ||
implementation: re, | ||
createNodeIterator: me, | ||
createDocumentFragment: ue, | ||
getElementsByTagName: ae | ||
} = i, { | ||
importNode: fe | ||
} = t; | ||
let U = Zt(); | ||
n.isSupported = typeof tn == "function" && typeof D == "function" && ae && ae.createHTMLDocument !== void 0; | ||
importNode: he | ||
} = n; | ||
let N = Zt(); | ||
t.isSupported = typeof tn == "function" && typeof S == "function" && re && re.createHTMLDocument !== void 0; | ||
const { | ||
MUSTACHE_EXPR: ve, | ||
ERB_EXPR: Te, | ||
TMPLIT_EXPR: Ce, | ||
DATA_ATTR: Ee, | ||
ARIA_ATTR: Le, | ||
IS_SCRIPT_OR_DATA: He, | ||
ATTR_WHITESPACE: xe, | ||
CUSTOM_ELEMENT: nt | ||
MUSTACHE_EXPR: ge, | ||
ERB_EXPR: ve, | ||
TMPLIT_EXPR: Te, | ||
DATA_ATTR: nt, | ||
ARIA_ATTR: Ee, | ||
IS_SCRIPT_OR_DATA: Ce, | ||
ATTR_WHITESPACE: Le, | ||
CUSTOM_ELEMENT: ze | ||
} = Kt; | ||
let { | ||
IS_ALLOWED_URI: Re | ||
IS_ALLOWED_URI: He | ||
} = Kt, I = null; | ||
const h = v({}, [...Yt, ...ft, ...pt, ...dt, ...Vt]); | ||
let a = null; | ||
const R = v({}, [...qt, ...mt, ...Xt, ...Ke]); | ||
let m = Object.seal(nn(null, { | ||
const xe = v({}, [...Yt, ...ft, ...pt, ...dt, ...Vt]); | ||
let l = null; | ||
const m = v({}, [...qt, ...mt, ...Xt, ...Ke]); | ||
let h = Object.seal(nn(null, { | ||
tagNameCheck: { | ||
@@ -628,5 +628,5 @@ writable: !0, | ||
} | ||
})), N = null, $ = null, H = !0, C = !0, J = !1, Q = !0, F = !1, K = !0, oe = !1, de = !1, me = !1, _e = !1, Fe = !1, Be = !1, _t = !0, wt = !1; | ||
})), C = null, P = null, q = !0, z = !0, L = !1, ee = !0, B = !1, Z = !0, H = !1, _e = !1, pe = !1, ne = !1, Fe = !1, Be = !1, _t = !0, wt = !1; | ||
const sn = "user-content-"; | ||
let ot = !0, De = !1, we = {}, Se = null; | ||
let ot = !0, Re = !1, we = {}, Se = null; | ||
const St = v({}, ["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"]); | ||
@@ -641,3 +641,3 @@ let yt = null; | ||
const cn = v({}, ["title", "style", "font", "a", "script"]); | ||
let Ie = null; | ||
let De = null; | ||
const un = ["application/xhtml+xml", "text/html"], fn = "text/html"; | ||
@@ -650,15 +650,15 @@ let M = null, Ae = null; | ||
if (!(Ae && Ae === e)) { | ||
if ((!e || typeof e != "object") && (e = {}), e = he(e), Ie = // eslint-disable-next-line unicorn/prefer-includes | ||
un.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? fn : e.PARSER_MEDIA_TYPE, M = Ie === "application/xhtml+xml" ? ut : Qe, I = ee(e, "ALLOWED_TAGS") ? v({}, e.ALLOWED_TAGS, M) : h, a = ee(e, "ALLOWED_ATTR") ? v({}, e.ALLOWED_ATTR, M) : R, at = ee(e, "ALLOWED_NAMESPACES") ? v({}, e.ALLOWED_NAMESPACES, ut) : ln, it = ee(e, "ADD_URI_SAFE_ATTR") ? v(he(bt), e.ADD_URI_SAFE_ATTR, M) : bt, yt = ee(e, "ADD_DATA_URI_TAGS") ? v(he(At), e.ADD_DATA_URI_TAGS, M) : At, Se = ee(e, "FORBID_CONTENTS") ? v({}, e.FORBID_CONTENTS, M) : St, N = ee(e, "FORBID_TAGS") ? v({}, e.FORBID_TAGS, M) : {}, $ = ee(e, "FORBID_ATTR") ? v({}, e.FORBID_ATTR, M) : {}, we = ee(e, "USE_PROFILES") ? e.USE_PROFILES : !1, H = e.ALLOW_ARIA_ATTR !== !1, C = e.ALLOW_DATA_ATTR !== !1, J = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Q = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, F = e.SAFE_FOR_TEMPLATES || !1, K = e.SAFE_FOR_XML !== !1, oe = e.WHOLE_DOCUMENT || !1, _e = e.RETURN_DOM || !1, Fe = e.RETURN_DOM_FRAGMENT || !1, Be = e.RETURN_TRUSTED_TYPE || !1, me = e.FORCE_BODY || !1, _t = e.SANITIZE_DOM !== !1, wt = e.SANITIZE_NAMED_PROPS || !1, ot = e.KEEP_CONTENT !== !1, De = e.IN_PLACE || !1, Re = e.ALLOWED_URI_REGEXP || on, ye = e.NAMESPACE || se, $e = e.MATHML_TEXT_INTEGRATION_POINTS || $e, je = e.HTML_INTEGRATION_POINTS || je, m = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && Ot(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (m.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && Ot(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (m.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (m.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), F && (C = !1), Fe && (_e = !0), we && (I = v({}, Vt), a = [], we.html === !0 && (v(I, Yt), v(a, qt)), we.svg === !0 && (v(I, ft), v(a, mt), v(a, Ke)), we.svgFilters === !0 && (v(I, pt), v(a, mt), v(a, Ke)), we.mathMl === !0 && (v(I, dt), v(a, Xt), v(a, Ke))), e.ADD_TAGS && (I === h && (I = he(I)), v(I, e.ADD_TAGS, M)), e.ADD_ATTR && (a === R && (a = he(a)), v(a, e.ADD_ATTR, M)), e.ADD_URI_SAFE_ATTR && v(it, e.ADD_URI_SAFE_ATTR, M), e.FORBID_CONTENTS && (Se === St && (Se = he(Se)), v(Se, e.FORBID_CONTENTS, M)), ot && (I["#text"] = !0), oe && v(I, ["html", "head", "body"]), I.table && (v(I, ["tbody"]), delete N.tbody), e.TRUSTED_TYPES_POLICY) { | ||
if ((!e || typeof e != "object") && (e = {}), e = de(e), De = // eslint-disable-next-line unicorn/prefer-includes | ||
un.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? fn : e.PARSER_MEDIA_TYPE, M = De === "application/xhtml+xml" ? ut : Qe, I = te(e, "ALLOWED_TAGS") ? v({}, e.ALLOWED_TAGS, M) : xe, l = te(e, "ALLOWED_ATTR") ? v({}, e.ALLOWED_ATTR, M) : m, at = te(e, "ALLOWED_NAMESPACES") ? v({}, e.ALLOWED_NAMESPACES, ut) : ln, it = te(e, "ADD_URI_SAFE_ATTR") ? v(de(bt), e.ADD_URI_SAFE_ATTR, M) : bt, yt = te(e, "ADD_DATA_URI_TAGS") ? v(de(At), e.ADD_DATA_URI_TAGS, M) : At, Se = te(e, "FORBID_CONTENTS") ? v({}, e.FORBID_CONTENTS, M) : St, C = te(e, "FORBID_TAGS") ? v({}, e.FORBID_TAGS, M) : {}, P = te(e, "FORBID_ATTR") ? v({}, e.FORBID_ATTR, M) : {}, we = te(e, "USE_PROFILES") ? e.USE_PROFILES : !1, q = e.ALLOW_ARIA_ATTR !== !1, z = e.ALLOW_DATA_ATTR !== !1, L = e.ALLOW_UNKNOWN_PROTOCOLS || !1, ee = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, B = e.SAFE_FOR_TEMPLATES || !1, Z = e.SAFE_FOR_XML !== !1, H = e.WHOLE_DOCUMENT || !1, ne = e.RETURN_DOM || !1, Fe = e.RETURN_DOM_FRAGMENT || !1, Be = e.RETURN_TRUSTED_TYPE || !1, pe = e.FORCE_BODY || !1, _t = e.SANITIZE_DOM !== !1, wt = e.SANITIZE_NAMED_PROPS || !1, ot = e.KEEP_CONTENT !== !1, Re = e.IN_PLACE || !1, He = e.ALLOWED_URI_REGEXP || on, ye = e.NAMESPACE || se, $e = e.MATHML_TEXT_INTEGRATION_POINTS || $e, je = e.HTML_INTEGRATION_POINTS || je, h = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && Ot(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (h.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && Ot(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (h.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (h.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), B && (z = !1), Fe && (ne = !0), we && (I = v({}, Vt), l = [], we.html === !0 && (v(I, Yt), v(l, qt)), we.svg === !0 && (v(I, ft), v(l, mt), v(l, Ke)), we.svgFilters === !0 && (v(I, pt), v(l, mt), v(l, Ke)), we.mathMl === !0 && (v(I, dt), v(l, Xt), v(l, Ke))), e.ADD_TAGS && (I === xe && (I = de(I)), v(I, e.ADD_TAGS, M)), e.ADD_ATTR && (l === m && (l = de(l)), v(l, e.ADD_ATTR, M)), e.ADD_URI_SAFE_ATTR && v(it, e.ADD_URI_SAFE_ATTR, M), e.FORBID_CONTENTS && (Se === St && (Se = de(Se)), v(Se, e.FORBID_CONTENTS, M)), ot && (I["#text"] = !0), H && v(I, ["html", "head", "body"]), I.table && (v(I, ["tbody"]), delete C.tbody), e.TRUSTED_TYPES_POLICY) { | ||
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") | ||
throw Pe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.'); | ||
throw ke('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.'); | ||
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") | ||
throw Pe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.'); | ||
y = e.TRUSTED_TYPES_POLICY, X = y.createHTML(""); | ||
throw ke('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.'); | ||
E = e.TRUSTED_TYPES_POLICY, K = E.createHTML(""); | ||
} else | ||
y === void 0 && (y = oo(l, p)), y !== null && typeof X == "string" && (X = y.createHTML("")); | ||
G && G(e), Ae = e; | ||
E === void 0 && (E = oo(c, p)), E !== null && typeof K == "string" && (K = E.createHTML("")); | ||
$ && $(e), Ae = e; | ||
} | ||
}, Ct = v({}, [...ft, ...pt, ...Yn]), Lt = v({}, [...dt, ...Vn]), dn = function(e) { | ||
let r = D(e); | ||
let r = S(e); | ||
(!r || !r.tagName) && (r = { | ||
@@ -668,16 +668,16 @@ namespaceURI: ye, | ||
}); | ||
const s = Qe(e.tagName), L = Qe(r.tagName); | ||
return at[e.namespaceURI] ? e.namespaceURI === Ge ? r.namespaceURI === se ? s === "svg" : r.namespaceURI === We ? s === "svg" && (L === "annotation-xml" || $e[L]) : !!Ct[s] : e.namespaceURI === We ? r.namespaceURI === se ? s === "math" : r.namespaceURI === Ge ? s === "math" && je[L] : !!Lt[s] : e.namespaceURI === se ? r.namespaceURI === Ge && !je[L] || r.namespaceURI === We && !$e[L] ? !1 : !Lt[s] && (cn[s] || !Ct[s]) : !!(Ie === "application/xhtml+xml" && at[e.namespaceURI]) : !1; | ||
}, ie = function(e) { | ||
Me(n.removed, { | ||
const a = Qe(e.tagName), x = Qe(r.tagName); | ||
return at[e.namespaceURI] ? e.namespaceURI === Ge ? r.namespaceURI === se ? a === "svg" : r.namespaceURI === We ? a === "svg" && (x === "annotation-xml" || $e[x]) : !!Ct[a] : e.namespaceURI === We ? r.namespaceURI === se ? a === "math" : r.namespaceURI === Ge ? a === "math" && je[x] : !!Lt[a] : e.namespaceURI === se ? r.namespaceURI === Ge && !je[x] || r.namespaceURI === We && !$e[x] ? !1 : !Lt[a] && (cn[a] || !Ct[a]) : !!(De === "application/xhtml+xml" && at[e.namespaceURI]) : !1; | ||
}, oe = function(e) { | ||
Ne(t.removed, { | ||
element: e | ||
}); | ||
try { | ||
D(e).removeChild(e); | ||
S(e).removeChild(e); | ||
} catch { | ||
S(e); | ||
y(e); | ||
} | ||
}, Ye = function(e, r) { | ||
try { | ||
Me(n.removed, { | ||
Ne(t.removed, { | ||
attribute: r.getAttributeNode(e), | ||
@@ -687,3 +687,3 @@ from: r | ||
} catch { | ||
Me(n.removed, { | ||
Ne(t.removed, { | ||
attribute: null, | ||
@@ -694,5 +694,5 @@ from: r | ||
if (r.removeAttribute(e), e === "is") | ||
if (_e || Fe) | ||
if (ne || Fe) | ||
try { | ||
ie(r); | ||
oe(r); | ||
} catch { | ||
@@ -706,31 +706,31 @@ } | ||
}, xt = function(e) { | ||
let r = null, s = null; | ||
if (me) | ||
let r = null, a = null; | ||
if (pe) | ||
e = "<remove></remove>" + e; | ||
else { | ||
const P = jt(e, /^[\r\n\t ]+/); | ||
s = P && P[0]; | ||
const U = jt(e, /^[\r\n\t ]+/); | ||
a = U && U[0]; | ||
} | ||
Ie === "application/xhtml+xml" && ye === se && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>"); | ||
const L = y ? y.createHTML(e) : e; | ||
De === "application/xhtml+xml" && ye === se && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>"); | ||
const x = E ? E.createHTML(e) : e; | ||
if (ye === se) | ||
try { | ||
r = new b().parseFromString(L, Ie); | ||
r = new b().parseFromString(x, De); | ||
} catch { | ||
} | ||
if (!r || !r.documentElement) { | ||
r = ae.createDocument(ye, "template", null); | ||
r = re.createDocument(ye, "template", null); | ||
try { | ||
r.documentElement.innerHTML = rt ? X : L; | ||
r.documentElement.innerHTML = rt ? K : x; | ||
} catch { | ||
} | ||
} | ||
const z = r.body || r.documentElement; | ||
return e && s && z.insertBefore(i.createTextNode(s), z.childNodes[0] || null), ye === se ? ue.call(r, oe ? "html" : "body")[0] : oe ? r.documentElement : z; | ||
const F = r.body || r.documentElement; | ||
return e && a && F.insertBefore(i.createTextNode(a), F.childNodes[0] || null), ye === se ? ae.call(r, H ? "html" : "body")[0] : H ? r.documentElement : F; | ||
}, Rt = function(e) { | ||
return ge.call( | ||
return me.call( | ||
e.ownerDocument || e, | ||
e, | ||
// eslint-disable-next-line no-bitwise | ||
x.SHOW_ELEMENT | x.SHOW_COMMENT | x.SHOW_TEXT | x.SHOW_PROCESSING_INSTRUCTION | x.SHOW_CDATA_SECTION, | ||
R.SHOW_ELEMENT | R.SHOW_COMMENT | R.SHOW_TEXT | R.SHOW_PROCESSING_INSTRUCTION | R.SHOW_CDATA_SECTION, | ||
null | ||
@@ -743,5 +743,5 @@ ); | ||
}; | ||
function le(c, e, r) { | ||
Xe(c, (s) => { | ||
s.call(n, e, r, Ae); | ||
function le(u, e, r) { | ||
Xe(u, (a) => { | ||
a.call(t, e, r, Ae); | ||
}); | ||
@@ -751,36 +751,36 @@ } | ||
let r = null; | ||
if (le(U.beforeSanitizeElements, e, null), lt(e)) | ||
return ie(e), !0; | ||
const s = M(e.nodeName); | ||
if (le(U.uponSanitizeElement, e, { | ||
tagName: s, | ||
if (le(N.beforeSanitizeElements, e, null), lt(e)) | ||
return oe(e), !0; | ||
const a = M(e.nodeName); | ||
if (le(N.uponSanitizeElement, e, { | ||
tagName: a, | ||
allowedTags: I | ||
}), e.hasChildNodes() && !Dt(e.firstElementChild) && W(/<[/\w]/g, e.innerHTML) && W(/<[/\w]/g, e.textContent) || e.nodeType === ze.progressingInstruction || K && e.nodeType === ze.comment && W(/<[/\w]/g, e.data)) | ||
return ie(e), !0; | ||
if (!I[s] || N[s]) { | ||
if (!N[s] && Mt(s) && (m.tagNameCheck instanceof RegExp && W(m.tagNameCheck, s) || m.tagNameCheck instanceof Function && m.tagNameCheck(s))) | ||
}), e.hasChildNodes() && !Dt(e.firstElementChild) && G(/<[/\w]/g, e.innerHTML) && G(/<[/\w]/g, e.textContent) || e.nodeType === Ue.progressingInstruction || Z && e.nodeType === Ue.comment && G(/<[/\w]/g, e.data)) | ||
return oe(e), !0; | ||
if (!I[a] || C[a]) { | ||
if (!C[a] && Mt(a) && (h.tagNameCheck instanceof RegExp && G(h.tagNameCheck, a) || h.tagNameCheck instanceof Function && h.tagNameCheck(a))) | ||
return !1; | ||
if (ot && !Se[s]) { | ||
const L = D(e) || e.parentNode, z = f(e) || e.childNodes; | ||
if (z && L) { | ||
const P = z.length; | ||
for (let j = P - 1; j >= 0; --j) { | ||
const re = u(z[j], !0); | ||
re.__removalCount = (e.__removalCount || 0) + 1, L.insertBefore(re, E(e)); | ||
if (ot && !Se[a]) { | ||
const x = S(e) || e.parentNode, F = s(e) || e.childNodes; | ||
if (F && x) { | ||
const U = F.length; | ||
for (let j = U - 1; j >= 0; --j) { | ||
const ie = f(F[j], !0); | ||
ie.__removalCount = (e.__removalCount || 0) + 1, x.insertBefore(ie, D(e)); | ||
} | ||
} | ||
} | ||
return ie(e), !0; | ||
return oe(e), !0; | ||
} | ||
return e instanceof g && !dn(e) || (s === "noscript" || s === "noembed" || s === "noframes") && W(/<\/no(script|embed|frames)/i, e.innerHTML) ? (ie(e), !0) : (F && e.nodeType === ze.text && (r = e.textContent, Xe([ve, Te, Ce], (L) => { | ||
r = ke(r, L, " "); | ||
}), e.textContent !== r && (Me(n.removed, { | ||
return e instanceof g && !dn(e) || (a === "noscript" || a === "noembed" || a === "noframes") && G(/<\/no(script|embed|frames)/i, e.innerHTML) ? (oe(e), !0) : (B && e.nodeType === Ue.text && (r = e.textContent, Xe([ge, ve, Te], (x) => { | ||
r = Me(r, x, " "); | ||
}), e.textContent !== r && (Ne(t.removed, { | ||
element: e.cloneNode() | ||
}), e.textContent = r)), le(U.afterSanitizeElements, e, null), !1); | ||
}, Nt = function(e, r, s) { | ||
if (_t && (r === "id" || r === "name") && (s in i || s in pn)) | ||
}), e.textContent = r)), le(N.afterSanitizeElements, e, null), !1); | ||
}, Nt = function(e, r, a) { | ||
if (_t && (r === "id" || r === "name") && (a in i || a in pn)) | ||
return !1; | ||
if (!(C && !$[r] && W(Ee, r))) { | ||
if (!(H && W(Le, r))) { | ||
if (!a[r] || $[r]) { | ||
if (!(z && !P[r] && G(nt, r))) { | ||
if (!(q && G(Ee, r))) { | ||
if (!l[r] || P[r]) { | ||
if ( | ||
@@ -790,11 +790,11 @@ // First condition does a very basic check if a) it's basically a valid custom element tagname AND | ||
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck | ||
!(Mt(e) && (m.tagNameCheck instanceof RegExp && W(m.tagNameCheck, e) || m.tagNameCheck instanceof Function && m.tagNameCheck(e)) && (m.attributeNameCheck instanceof RegExp && W(m.attributeNameCheck, r) || m.attributeNameCheck instanceof Function && m.attributeNameCheck(r)) || // Alternative, second condition checks if it's an `is`-attribute, AND | ||
!(Mt(e) && (h.tagNameCheck instanceof RegExp && G(h.tagNameCheck, e) || h.tagNameCheck instanceof Function && h.tagNameCheck(e)) && (h.attributeNameCheck instanceof RegExp && G(h.attributeNameCheck, r) || h.attributeNameCheck instanceof Function && h.attributeNameCheck(r)) || // Alternative, second condition checks if it's an `is`-attribute, AND | ||
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck | ||
r === "is" && m.allowCustomizedBuiltInElements && (m.tagNameCheck instanceof RegExp && W(m.tagNameCheck, s) || m.tagNameCheck instanceof Function && m.tagNameCheck(s))) | ||
r === "is" && h.allowCustomizedBuiltInElements && (h.tagNameCheck instanceof RegExp && G(h.tagNameCheck, a) || h.tagNameCheck instanceof Function && h.tagNameCheck(a))) | ||
) return !1; | ||
} else if (!it[r]) { | ||
if (!W(Re, ke(s, xe, ""))) { | ||
if (!((r === "src" || r === "xlink:href" || r === "href") && e !== "script" && Wn(s, "data:") === 0 && yt[e])) { | ||
if (!(J && !W(He, ke(s, xe, "")))) { | ||
if (s) | ||
if (!G(He, Me(a, Le, ""))) { | ||
if (!((r === "src" || r === "xlink:href" || r === "href") && e !== "script" && Wn(a, "data:") === 0 && yt[e])) { | ||
if (!(L && !G(Ce, Me(a, Le, "")))) { | ||
if (a) | ||
return !1; | ||
@@ -809,5 +809,5 @@ } | ||
}, Mt = function(e) { | ||
return e !== "annotation-xml" && jt(e, nt); | ||
return e !== "annotation-xml" && jt(e, ze); | ||
}, kt = function(e) { | ||
le(U.beforeSanitizeAttributes, e, null); | ||
le(N.beforeSanitizeAttributes, e, null); | ||
const { | ||
@@ -818,40 +818,40 @@ attributes: r | ||
return; | ||
const s = { | ||
const a = { | ||
attrName: "", | ||
attrValue: "", | ||
keepAttr: !0, | ||
allowedAttributes: a, | ||
allowedAttributes: l, | ||
forceKeepAttr: void 0 | ||
}; | ||
let L = r.length; | ||
for (; L--; ) { | ||
const z = r[L], { | ||
name: P, | ||
let x = r.length; | ||
for (; x--; ) { | ||
const F = r[x], { | ||
name: U, | ||
namespaceURI: j, | ||
value: re | ||
} = z, Ne = M(P); | ||
let B = P === "value" ? re : Gn(re); | ||
if (s.attrName = Ne, s.attrValue = B, s.keepAttr = !0, s.forceKeepAttr = void 0, le(U.uponSanitizeAttribute, e, s), B = s.attrValue, wt && (Ne === "id" || Ne === "name") && (Ye(P, e), B = sn + B), K && W(/((--!?|])>)|<\/(style|title)/i, B)) { | ||
Ye(P, e); | ||
value: ie | ||
} = F, Ie = M(U); | ||
let W = U === "value" ? ie : Gn(ie); | ||
if (a.attrName = Ie, a.attrValue = W, a.keepAttr = !0, a.forceKeepAttr = void 0, le(N.uponSanitizeAttribute, e, a), W = a.attrValue, wt && (Ie === "id" || Ie === "name") && (Ye(U, e), W = sn + W), Z && G(/((--!?|])>)|<\/(style|title)/i, W)) { | ||
Ye(U, e); | ||
continue; | ||
} | ||
if (s.forceKeepAttr || (Ye(P, e), !s.keepAttr)) | ||
if (a.forceKeepAttr || (Ye(U, e), !a.keepAttr)) | ||
continue; | ||
if (!Q && W(/\/>/i, B)) { | ||
Ye(P, e); | ||
if (!ee && G(/\/>/i, W)) { | ||
Ye(U, e); | ||
continue; | ||
} | ||
F && Xe([ve, Te, Ce], (Ut) => { | ||
B = ke(B, Ut, " "); | ||
B && Xe([ge, ve, Te], (Ut) => { | ||
W = Me(W, Ut, " "); | ||
}); | ||
const Pt = M(e.nodeName); | ||
if (Nt(Pt, Ne, B)) { | ||
if (y && typeof l == "object" && typeof l.getAttributeType == "function" && !j) | ||
switch (l.getAttributeType(Pt, Ne)) { | ||
if (Nt(Pt, Ie, W)) { | ||
if (E && typeof c == "object" && typeof c.getAttributeType == "function" && !j) | ||
switch (c.getAttributeType(Pt, Ie)) { | ||
case "TrustedHTML": { | ||
B = y.createHTML(B); | ||
W = E.createHTML(W); | ||
break; | ||
} | ||
case "TrustedScriptURL": { | ||
B = y.createScriptURL(B); | ||
W = E.createScriptURL(W); | ||
break; | ||
@@ -861,3 +861,3 @@ } | ||
try { | ||
j ? e.setAttributeNS(j, P, B) : e.setAttribute(P, B), lt(e) ? ie(e) : $t(n.removed); | ||
j ? e.setAttributeNS(j, U, W) : e.setAttribute(U, W), lt(e) ? oe(e) : $t(t.removed); | ||
} catch { | ||
@@ -867,72 +867,72 @@ } | ||
} | ||
le(U.afterSanitizeAttributes, e, null); | ||
}, mn = function c(e) { | ||
le(N.afterSanitizeAttributes, e, null); | ||
}, mn = function u(e) { | ||
let r = null; | ||
const s = Rt(e); | ||
for (le(U.beforeSanitizeShadowDOM, e, null); r = s.nextNode(); ) | ||
le(U.uponSanitizeShadowNode, r, null), It(r), kt(r), r.content instanceof d && c(r.content); | ||
le(U.afterSanitizeShadowDOM, e, null); | ||
const a = Rt(e); | ||
for (le(N.beforeSanitizeShadowDOM, e, null); r = a.nextNode(); ) | ||
le(N.uponSanitizeShadowNode, r, null), It(r), kt(r), r.content instanceof d && u(r.content); | ||
le(N.afterSanitizeShadowDOM, e, null); | ||
}; | ||
return n.sanitize = function(c) { | ||
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = null, s = null, L = null, z = null; | ||
if (rt = !c, rt && (c = "<!-->"), typeof c != "string" && !Dt(c)) | ||
if (typeof c.toString == "function") { | ||
if (c = c.toString(), typeof c != "string") | ||
throw Pe("dirty is not a string, aborting"); | ||
return t.sanitize = function(u) { | ||
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = null, a = null, x = null, F = null; | ||
if (rt = !u, rt && (u = "<!-->"), typeof u != "string" && !Dt(u)) | ||
if (typeof u.toString == "function") { | ||
if (u = u.toString(), typeof u != "string") | ||
throw ke("dirty is not a string, aborting"); | ||
} else | ||
throw Pe("toString is not a function"); | ||
if (!n.isSupported) | ||
return c; | ||
if (de || st(e), n.removed = [], typeof c == "string" && (De = !1), De) { | ||
if (c.nodeName) { | ||
const re = M(c.nodeName); | ||
if (!I[re] || N[re]) | ||
throw Pe("root node is forbidden and cannot be sanitized in-place"); | ||
throw ke("toString is not a function"); | ||
if (!t.isSupported) | ||
return u; | ||
if (_e || st(e), t.removed = [], typeof u == "string" && (Re = !1), Re) { | ||
if (u.nodeName) { | ||
const ie = M(u.nodeName); | ||
if (!I[ie] || C[ie]) | ||
throw ke("root node is forbidden and cannot be sanitized in-place"); | ||
} | ||
} else if (c instanceof O) | ||
r = xt("<!---->"), s = r.ownerDocument.importNode(c, !0), s.nodeType === ze.element && s.nodeName === "BODY" || s.nodeName === "HTML" ? r = s : r.appendChild(s); | ||
} else if (u instanceof O) | ||
r = xt("<!---->"), a = r.ownerDocument.importNode(u, !0), a.nodeType === Ue.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? r = a : r.appendChild(a); | ||
else { | ||
if (!_e && !F && !oe && // eslint-disable-next-line unicorn/prefer-includes | ||
c.indexOf("<") === -1) | ||
return y && Be ? y.createHTML(c) : c; | ||
if (r = xt(c), !r) | ||
return _e ? null : Be ? X : ""; | ||
if (!ne && !B && !H && // eslint-disable-next-line unicorn/prefer-includes | ||
u.indexOf("<") === -1) | ||
return E && Be ? E.createHTML(u) : u; | ||
if (r = xt(u), !r) | ||
return ne ? null : Be ? K : ""; | ||
} | ||
r && me && ie(r.firstChild); | ||
const P = Rt(De ? c : r); | ||
for (; L = P.nextNode(); ) | ||
It(L), kt(L), L.content instanceof d && mn(L.content); | ||
if (De) | ||
return c; | ||
if (_e) { | ||
r && pe && oe(r.firstChild); | ||
const U = Rt(Re ? u : r); | ||
for (; x = U.nextNode(); ) | ||
It(x), kt(x), x.content instanceof d && mn(x.content); | ||
if (Re) | ||
return u; | ||
if (ne) { | ||
if (Fe) | ||
for (z = ne.call(r.ownerDocument); r.firstChild; ) | ||
z.appendChild(r.firstChild); | ||
for (F = ue.call(r.ownerDocument); r.firstChild; ) | ||
F.appendChild(r.firstChild); | ||
else | ||
z = r; | ||
return (a.shadowroot || a.shadowrootmode) && (z = fe.call(t, z, !0)), z; | ||
F = r; | ||
return (l.shadowroot || l.shadowrootmode) && (F = he.call(n, F, !0)), F; | ||
} | ||
let j = oe ? r.outerHTML : r.innerHTML; | ||
return oe && I["!doctype"] && r.ownerDocument && r.ownerDocument.doctype && r.ownerDocument.doctype.name && W(rn, r.ownerDocument.doctype.name) && (j = "<!DOCTYPE " + r.ownerDocument.doctype.name + `> | ||
` + j), F && Xe([ve, Te, Ce], (re) => { | ||
j = ke(j, re, " "); | ||
}), y && Be ? y.createHTML(j) : j; | ||
}, n.setConfig = function() { | ||
let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; | ||
st(c), de = !0; | ||
}, n.clearConfig = function() { | ||
Ae = null, de = !1; | ||
}, n.isValidAttribute = function(c, e, r) { | ||
let j = H ? r.outerHTML : r.innerHTML; | ||
return H && I["!doctype"] && r.ownerDocument && r.ownerDocument.doctype && r.ownerDocument.doctype.name && G(rn, r.ownerDocument.doctype.name) && (j = "<!DOCTYPE " + r.ownerDocument.doctype.name + `> | ||
` + j), B && Xe([ge, ve, Te], (ie) => { | ||
j = Me(j, ie, " "); | ||
}), E && Be ? E.createHTML(j) : j; | ||
}, t.setConfig = function() { | ||
let u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; | ||
st(u), _e = !0; | ||
}, t.clearConfig = function() { | ||
Ae = null, _e = !1; | ||
}, t.isValidAttribute = function(u, e, r) { | ||
Ae || st({}); | ||
const s = M(c), L = M(e); | ||
return Nt(s, L, r); | ||
}, n.addHook = function(c, e) { | ||
typeof e == "function" && Me(U[c], e); | ||
}, n.removeHook = function(c) { | ||
return $t(U[c]); | ||
}, n.removeHooks = function(c) { | ||
U[c] = []; | ||
}, n.removeAllHooks = function() { | ||
U = Zt(); | ||
}, n; | ||
const a = M(u), x = M(e); | ||
return Nt(a, x, r); | ||
}, t.addHook = function(u, e) { | ||
typeof e == "function" && Ne(N[u], e); | ||
}, t.removeHook = function(u) { | ||
return $t(N[u]); | ||
}, t.removeHooks = function(u) { | ||
N[u] = []; | ||
}, t.removeAllHooks = function() { | ||
N = Zt(); | ||
}, t; | ||
} | ||
@@ -970,15 +970,15 @@ var Jt = an(); | ||
emits: ["startTour", "endTour"], | ||
setup(o, { expose: n, emit: i }) { | ||
const t = o, p = k(!1), d = k(0), w = k({}), O = k({}), g = k("left"), x = k(null); | ||
setup(o, { expose: t, emit: i }) { | ||
const n = o, p = k(!1), d = k(0), w = k({}), O = k({}), g = k("left"), R = k(null); | ||
let T = null; | ||
const A = Un(), b = i; | ||
let l, _; | ||
const u = k(null), S = k(null), E = te( | ||
let c, _; | ||
const f = k(null), y = k(null), D = J(() => n.steps.filter((l) => !l.disable)), s = J( | ||
() => { | ||
var h; | ||
return ((h = t.steps) == null ? void 0 : h.length) > 0 ? t.steps[d.value] : void 0; | ||
var l; | ||
return ((l = D.value) == null ? void 0 : l.length) > 0 ? D.value[d.value] : void 0; | ||
} | ||
), f = te(() => Bt(u.value)), D = te( | ||
() => S.value && Bt(S.value) | ||
), y = te(() => f.value && (f.value.top.value >= 0 && f.value.top.value <= window.innerHeight || f.value.bottom.value >= 0 && f.value.bottom.value <= window.innerHeight || f.value.bottom.value >= window.innerHeight && f.value.top.value <= 0) && (f.value.left.value >= 0 && f.value.left.value <= window.innerWidth || f.value.right.value >= 0 && f.value.right.value <= window.innerWidth || f.value.right.value >= window.innerWidth && f.value.left.value <= 0)), X = te(() => { | ||
), S = J(() => Bt(f.value)), E = J( | ||
() => y.value && Bt(y.value) | ||
), K = J(() => S.value && (S.value.top.value >= 0 && S.value.top.value <= window.innerHeight || S.value.bottom.value >= 0 && S.value.bottom.value <= window.innerHeight || S.value.bottom.value >= window.innerHeight && S.value.top.value <= 0) && (S.value.left.value >= 0 && S.value.left.value <= window.innerWidth || S.value.right.value >= 0 && S.value.right.value <= window.innerWidth || S.value.right.value >= window.innerWidth && S.value.left.value <= 0)), re = J(() => { | ||
switch (g.value) { | ||
@@ -996,31 +996,31 @@ case "left": | ||
} | ||
}), ae = te(() => { | ||
var h; | ||
return d.value < ((h = t.steps) == null ? void 0 : h.length) - 1; | ||
}), ge = te(() => d.value > 0), ne = te( | ||
() => p.value && t.steps && t.steps.length > 0 && u.value | ||
), ue = (h, a, R) => { | ||
let m; | ||
a + R.height > window.innerHeight ? m = window.innerHeight - R.height : a <= 0 ? m = 0 : m = a, w.value = { | ||
top: `${m}px`, | ||
left: `${h}px` | ||
}), me = J(() => { | ||
var l; | ||
return d.value < ((l = D.value) == null ? void 0 : l.length) - 1; | ||
}), ue = J(() => d.value > 0), ae = J( | ||
() => p.value && D.value && D.value.length > 0 && f.value | ||
), he = (l, m, h) => { | ||
let C; | ||
m + h.height > window.innerHeight ? C = window.innerHeight - h.height : m <= 0 ? C = 0 : C = m, w.value = { | ||
top: `${C}px`, | ||
left: `${l}px` | ||
}; | ||
}, fe = () => { | ||
var R, m, N, $; | ||
const h = ((R = E.value) == null ? void 0 : R.target) && ((N = document.querySelector((m = E.value) == null ? void 0 : m.target)) == null ? void 0 : N.getBoundingClientRect()), a = ($ = x.value) == null ? void 0 : $.getBoundingClientRect(); | ||
if (h && a) { | ||
}, N = () => { | ||
var h, C, P, q; | ||
const l = ((h = s.value) == null ? void 0 : h.target) && ((P = document.querySelector((C = s.value) == null ? void 0 : C.target)) == null ? void 0 : P.getBoundingClientRect()), m = (q = R.value) == null ? void 0 : q.getBoundingClientRect(); | ||
if (l && m) { | ||
const { | ||
top: H, | ||
left: C, | ||
bottom: J, | ||
right: Q, | ||
width: F, | ||
height: K | ||
} = h; | ||
top: z, | ||
left: L, | ||
bottom: ee, | ||
right: B, | ||
width: Z, | ||
height: H | ||
} = l; | ||
O.value = { | ||
position: "fixed", | ||
width: `${F + 24}px`, | ||
height: `${K + 24}px`, | ||
top: `${H - 12}px`, | ||
left: `${C - 12}px`, | ||
width: `${Z + 24}px`, | ||
height: `${H + 24}px`, | ||
top: `${z - 12}px`, | ||
left: `${L - 12}px`, | ||
boxShadow: "inset 0px 0px 10px 0px rgba(255, 255, 255, 1), 0px 0px 0px 9999px rgba(0, 0, 0, 0.5)", | ||
@@ -1030,14 +1030,14 @@ userEvent: "none", | ||
zIndex: 9999 | ||
}, C - a.width - 40 > 0 ? (ue(C - a.width - 40, H, a), g.value = "left") : Q + a.width + 40 < window.innerWidth ? (ue(Q + 40, H, a), g.value = "right") : H - a.height - 40 > 0 ? (w.value = { | ||
top: `${H - a.height - 40}px`, | ||
left: `${C}px`, | ||
width: C + a.width >= window.innerWidth - 10 ? `${window.innerWidth - C - 10}px` : "auto" | ||
}, L - m.width - 40 > 0 ? (he(L - m.width - 40, z, m), g.value = "left") : B + m.width + 40 < window.innerWidth ? (he(B + 40, z, m), g.value = "right") : z - m.height - 40 > 0 ? (w.value = { | ||
top: `${z - m.height - 40}px`, | ||
left: `${L}px`, | ||
width: L + m.width >= window.innerWidth - 10 ? `${window.innerWidth - L - 10}px` : "auto" | ||
}, g.value = "top") : (w.value = { | ||
top: J + a.height + 40 < window.innerHeight ? `${J + 40}px` : `${window.innerHeight - a.height}px`, | ||
left: `${C}px`, | ||
width: C + a.width >= window.innerWidth - 10 ? `${window.innerWidth - C - 10}px` : "auto" | ||
top: ee + m.height + 40 < window.innerHeight ? `${ee + 40}px` : `${window.innerHeight - m.height}px`, | ||
left: `${L}px`, | ||
width: L + m.width >= window.innerWidth - 10 ? `${window.innerWidth - L - 10}px` : "auto" | ||
}, g.value = "bottom"); | ||
} else a && (w.value = { | ||
top: `${(window.innerHeight - a.height) / 2}px`, | ||
left: `${(window.innerWidth - a.width) / 2}px`, | ||
} else m && (w.value = { | ||
top: `${(window.innerHeight - m.height) / 2}px`, | ||
left: `${(window.innerWidth - m.width) / 2}px`, | ||
position: "fixed" | ||
@@ -1051,36 +1051,36 @@ }, O.value = { | ||
}); | ||
}, U = () => { | ||
var h; | ||
d.value < ((h = t.steps) == null ? void 0 : h.length) - 1 && (d.value += 1); | ||
}, ge = () => { | ||
var l; | ||
d.value < ((l = D.value) == null ? void 0 : l.length) - 1 && (d.value += 1); | ||
}, ve = () => { | ||
d.value > 0 && (d.value -= 1); | ||
}, Te = (h) => { | ||
var a; | ||
h >= 0 && h <= ((a = t.steps) == null ? void 0 : a.length) && (d.value = h); | ||
}, Ce = () => t.endDate ? /* @__PURE__ */ new Date() <= t.endDate ? !(t.cookieStorage && A.get(`vue_onboarding_tour_${t.tourId}`)) : !1 : !(t.cookieStorage && A.get(`vue_onboarding_tour_${t.tourId}`)), Ee = () => { | ||
Ce() && (p.value = !0, b("startTour")); | ||
}, Le = () => { | ||
if (t.cookieStorage) { | ||
const h = { | ||
expires: t.endDate ? t.endDate : (() => { | ||
const a = /* @__PURE__ */ new Date(); | ||
return a.setDate(a.getDate() + 365), a; | ||
}, Te = (l) => { | ||
var m; | ||
l >= 0 && l <= ((m = D.value) == null ? void 0 : m.length) && (d.value = l); | ||
}, nt = () => n.endDate ? /* @__PURE__ */ new Date() <= n.endDate ? !(n.cookieStorage && A.get(`vue_onboarding_tour_${n.tourId}`)) : !1 : !(n.cookieStorage && A.get(`vue_onboarding_tour_${n.tourId}`)), Ee = () => { | ||
nt() && (p.value = !0, b("startTour")); | ||
}, Ce = () => { | ||
if (n.cookieStorage) { | ||
const l = { | ||
expires: n.endDate ? n.endDate : (() => { | ||
const m = /* @__PURE__ */ new Date(); | ||
return m.setDate(m.getDate() + 365), m; | ||
})() | ||
}; | ||
A.set(`vue_onboarding_tour_${t.tourId}`, !0, h); | ||
A.set(`vue_onboarding_tour_${n.tourId}`, !0, l); | ||
} | ||
p.value = !1, d.value = 0, w.value = {}, O.value = {}, u.value = null, T && (T.remove(), T = null), b("endTour"); | ||
}, He = () => { | ||
var h, a, R, m, N, $, H, C, J, Q; | ||
if ((h = E.value) != null && h.target) { | ||
const { top: F, left: K } = ((R = document.querySelector((a = E.value) == null ? void 0 : a.target)) == null ? void 0 : R.getBoundingClientRect()) ?? {}, oe = (m = x.value) == null ? void 0 : m.getBoundingClientRect(); | ||
if (F !== void 0 && K !== void 0 && oe && (F < 0 || F > window.innerHeight || K < 0 || K > window.innerWidth)) { | ||
const de = F < 0 || F > window.innerHeight ? F - oe.height - 60 : void 0, me = K < 0 || K > window.innerWidth ? K : void 0; | ||
S.value ? S.value.scrollBy({ | ||
left: me && ((N = D.value) != null && N.left) ? me - ((H = ($ = D.value) == null ? void 0 : $.left) == null ? void 0 : H.value) : void 0, | ||
top: de && ((C = D.value) != null && C.left) ? de - ((Q = (J = D.value) == null ? void 0 : J.left) == null ? void 0 : Q.value) : void 0, | ||
p.value = !1, d.value = 0, w.value = {}, O.value = {}, f.value = null, T && (T.remove(), T = null), b("endTour"); | ||
}, Le = () => { | ||
var l, m, h, C, P, q, z, L, ee, B; | ||
if ((l = s.value) != null && l.target) { | ||
const { top: Z, left: H } = ((h = document.querySelector((m = s.value) == null ? void 0 : m.target)) == null ? void 0 : h.getBoundingClientRect()) ?? {}, _e = (C = R.value) == null ? void 0 : C.getBoundingClientRect(); | ||
if (Z !== void 0 && H !== void 0 && _e && (Z < 0 || Z > window.innerHeight || H < 0 || H > window.innerWidth)) { | ||
const pe = Z < 0 || Z > window.innerHeight ? Z - _e.height - 60 : void 0, ne = H < 0 || H > window.innerWidth ? H : void 0; | ||
y.value ? y.value.scrollBy({ | ||
left: ne && ((P = E.value) != null && P.left) ? ne - ((z = (q = E.value) == null ? void 0 : q.left) == null ? void 0 : z.value) : void 0, | ||
top: pe && ((L = E.value) != null && L.left) ? pe - ((B = (ee = E.value) == null ? void 0 : ee.left) == null ? void 0 : B.value) : void 0, | ||
behavior: "smooth" | ||
}) : window.scrollBy({ | ||
left: me, | ||
top: de, | ||
left: ne, | ||
top: pe, | ||
behavior: "smooth" | ||
@@ -1090,68 +1090,68 @@ }); | ||
} | ||
}, xe = () => { | ||
var h, a, R; | ||
if (T && (T.remove(), T = null), (h = E.value) != null && h.target) | ||
if (document.querySelector((a = E.value) == null ? void 0 : a.target)) | ||
u.value = document.querySelector((R = E.value) == null ? void 0 : R.target); | ||
}, ze = () => { | ||
var l, m, h; | ||
if (T && (T.remove(), T = null), (l = s.value) != null && l.target) | ||
if (document.querySelector((m = s.value) == null ? void 0 : m.target)) | ||
f.value = document.querySelector((h = s.value) == null ? void 0 : h.target); | ||
else { | ||
const m = document.body, N = { childList: !0, subtree: !0 }; | ||
l = new MutationObserver(($) => { | ||
var H, C; | ||
for (const J of $) | ||
if (J.type === "childList") { | ||
const Q = ((H = E.value) == null ? void 0 : H.target) && document.querySelector((C = E.value) == null ? void 0 : C.target); | ||
Q && (u.value = Q, l.disconnect()); | ||
const C = document.body, P = { childList: !0, subtree: !0 }; | ||
c = new MutationObserver((q) => { | ||
var z, L; | ||
for (const ee of q) | ||
if (ee.type === "childList") { | ||
const B = ((z = s.value) == null ? void 0 : z.target) && document.querySelector((L = s.value) == null ? void 0 : L.target); | ||
B && (f.value = B, c.disconnect()); | ||
} | ||
}), l.observe(m, N); | ||
}), c.observe(C, P); | ||
} | ||
else | ||
T = document.createElement("div"), T.style.position = "fixed", T.style.top = "50%", T.style.left = "50%", T.style.width = "0px", T.style.height = "0px", T.style.transform = "translate(-50%, -50%)", document.body.appendChild(T), u.value = T; | ||
}, nt = () => { | ||
if (t.scrollableContainerSelector) | ||
if (document.querySelector(t.scrollableContainerSelector)) | ||
S.value = document.querySelector(t.scrollableContainerSelector); | ||
T = document.createElement("div"), T.style.position = "fixed", T.style.top = "50%", T.style.left = "50%", T.style.width = "0px", T.style.height = "0px", T.style.transform = "translate(-50%, -50%)", document.body.appendChild(T), f.value = T; | ||
}, He = () => { | ||
if (n.scrollableContainerSelector) | ||
if (document.querySelector(n.scrollableContainerSelector)) | ||
y.value = document.querySelector(n.scrollableContainerSelector); | ||
else { | ||
const h = document.body, a = { childList: !0, subtree: !0 }; | ||
_ = new MutationObserver((R) => { | ||
for (const m of R) | ||
if (m.type === "childList") { | ||
const N = t.scrollableContainerSelector && document.querySelector(t.scrollableContainerSelector); | ||
N && (S.value = N, _.disconnect()); | ||
const l = document.body, m = { childList: !0, subtree: !0 }; | ||
_ = new MutationObserver((h) => { | ||
for (const C of h) | ||
if (C.type === "childList") { | ||
const P = n.scrollableContainerSelector && document.querySelector(n.scrollableContainerSelector); | ||
P && (y.value = P, _.disconnect()); | ||
} | ||
}), _.observe(h, a); | ||
}), _.observe(l, m); | ||
} | ||
}, Re = () => { | ||
ne.value && (fe(), He()); | ||
}, I = () => { | ||
ne.value && fe(); | ||
ae.value && (N(), Le()); | ||
}, xe = () => { | ||
ae.value && N(); | ||
}; | ||
return n({ startTour: Ee, endTour: Le, goNextStep: U, goPreviousStep: ve, setStep: Te }), Tt(() => { | ||
Ze(() => fe()), window.addEventListener("resize", Re), window.addEventListener("scroll", I), t.startEvent && window.addEventListener(t.startEvent, Ee), xe(), nt(); | ||
return t({ startTour: Ee, endTour: Ce, goNextStep: ge, goPreviousStep: ve, setStep: Te }), Tt(() => { | ||
Ze(() => N()), window.addEventListener("resize", I), window.addEventListener("scroll", xe), n.startEvent && window.addEventListener(n.startEvent, Ee), ze(), He(); | ||
}), Tn(() => { | ||
window.removeEventListener("resize", Re), window.removeEventListener("scroll", I), t.startEvent && window.removeEventListener(t.startEvent, Ee), l && l.disconnect(), _ && _.disconnect(); | ||
}), pe( | ||
[f, D, p], | ||
window.removeEventListener("resize", I), window.removeEventListener("scroll", xe), n.startEvent && window.removeEventListener(n.startEvent, Ee), c && c.disconnect(), _ && _.disconnect(); | ||
}), fe( | ||
[S, E, p], | ||
() => { | ||
p.value && Ze(() => { | ||
fe(); | ||
N(); | ||
}); | ||
}, | ||
{ deep: !0 } | ||
), pe([d, p], () => { | ||
var h, a, R, m; | ||
p.value && ((h = E.value) != null && h.beforeScript && ((a = E.value) == null || a.beforeScript()), xe(), (R = E.value) != null && R.afterScript && ((m = E.value) == null || m.afterScript())); | ||
}), pe(u, () => { | ||
), fe([d, p], () => { | ||
var l, m, h, C; | ||
p.value && ((l = s.value) != null && l.beforeScript && ((m = s.value) == null || m.beforeScript()), ze(), (h = s.value) != null && h.afterScript && ((C = s.value) == null || C.afterScript())); | ||
}), fe(f, () => { | ||
p.value && Ze(() => { | ||
He(); | ||
Le(); | ||
}); | ||
}), pe(() => t.startTour, () => { | ||
t.startTour && Ee(); | ||
}), (h, a) => { | ||
var R, m, N, $; | ||
return ne.value ? (Y(), V("div", { | ||
}), fe(() => n.startTour, () => { | ||
n.startTour && Ee(); | ||
}), (l, m) => { | ||
var h, C, P, q; | ||
return ae.value ? (Y(), V("div", { | ||
key: 0, | ||
"data-test": "onboardingTour", | ||
class: Ve(["vueOnboardingTour", { "fixed z-[9999] h-full w-full": h.overlay }]) | ||
class: Ve(["vueOnboardingTour", { "fixed z-[9999] h-full w-full": l.overlay }]) | ||
}, [ | ||
h.overlay ? (Y(), V("div", { | ||
l.overlay ? (Y(), V("div", { | ||
key: 0, | ||
@@ -1164,18 +1164,18 @@ style: zt(O.value), | ||
ref_key: "popup", | ||
ref: x, | ||
ref: R, | ||
style: zt(w.value), | ||
class: Ve([[y.value ? "opacity-100" : "opacity-0"], "popupContainer z-[9999] fixed"]), | ||
class: Ve([[K.value ? "opacity-100" : "opacity-0"], "popupContainer z-[9999] fixed"]), | ||
"data-test": "popupContainer" | ||
}, [ | ||
En(h.$slots, "default", { | ||
currentStep: E.value, | ||
En(l.$slots, "default", { | ||
currentStep: s.value, | ||
currentStepIndex: d.value | ||
}), | ||
h.defaultTemplate ? (Y(), V("div", io, [ | ||
(R = E.value) != null && R.target ? (Y(), V("span", { | ||
l.defaultTemplate ? (Y(), V("div", io, [ | ||
(h = s.value) != null && h.target ? (Y(), V("span", { | ||
key: 0, | ||
class: Ve(["chevronPointer w-4 h-4 absolute bg-white rotate-45", X.value]), | ||
class: Ve(["chevronPointer w-4 h-4 absolute bg-white rotate-45", re.value]), | ||
"data-test": "chevronPointer" | ||
}, null, 2)) : ce("", !0), | ||
(m = E.value) != null && m.tag ? (Y(), V("div", ro, Ht(E.value.tag), 1)) : ce("", !0), | ||
(C = s.value) != null && C.tag ? (Y(), V("div", ro, Ht(s.value.tag), 1)) : ce("", !0), | ||
(Y(), V("svg", { | ||
@@ -1185,16 +1185,16 @@ xmlns: "http://www.w3.org/2000/svg", | ||
class: "closeIcon absolute top-4 right-4 cursor-pointer w-5 h-5 fill-gray-500 hover:fill-gray-700 transition-colors", | ||
onClick: Le, | ||
onClick: Ce, | ||
"data-test": "closeIcon" | ||
}, a[0] || (a[0] = [ | ||
}, m[0] || (m[0] = [ | ||
be("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" }, null, -1) | ||
]))), | ||
(N = E.value) != null && N.title ? (Y(), V("div", { | ||
(P = s.value) != null && P.title ? (Y(), V("div", { | ||
key: 2, | ||
innerHTML: ht(Jt).sanitize(E.value.title), | ||
innerHTML: ht(Jt).sanitize(s.value.title), | ||
class: "stepTitle text-lg font-semibold text-gray-900", | ||
"data-test": "stepTitle" | ||
}, null, 8, ao)) : ce("", !0), | ||
($ = E.value) != null && $.description ? (Y(), V("div", { | ||
(q = s.value) != null && q.description ? (Y(), V("div", { | ||
key: 3, | ||
innerHTML: ht(Jt).sanitize(E.value.description), | ||
innerHTML: ht(Jt).sanitize(s.value.description), | ||
class: "stepDescription text-sm text-gray-600 leading-relaxed", | ||
@@ -1204,3 +1204,3 @@ "data-test": "stepDescription" | ||
be("div", lo, [ | ||
ge.value ? (Y(), V("svg", { | ||
ue.value ? (Y(), V("svg", { | ||
key: 0, | ||
@@ -1212,16 +1212,16 @@ xmlns: "http://www.w3.org/2000/svg", | ||
"data-test": "previousStepIcon" | ||
}, a[1] || (a[1] = [ | ||
}, m[1] || (m[1] = [ | ||
be("path", { d: "M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z" }, null, -1) | ||
]))) : ce("", !0), | ||
h.steps.length > 1 ? (Y(), V("div", co, [ | ||
(Y(!0), V(_n, null, wn(h.steps.length, (H, C) => (Y(), V("svg", { | ||
D.value.length > 1 ? (Y(), V("div", co, [ | ||
(Y(!0), V(_n, null, wn(D.value.length, (z, L) => (Y(), V("svg", { | ||
xmlns: "http://www.w3.org/2000/svg", | ||
viewBox: "0 0 512 512", | ||
key: `dot_step_${C}`, | ||
class: Ve([`stepIndicator_${C}`, "cursor-pointer w-2 h-2"]), | ||
onClick: (J) => Te(C), | ||
"data-test": `stepIndicator_${C}` | ||
key: `dot_step_${L}`, | ||
class: Ve([`stepIndicator_${L}`, "cursor-pointer w-2 h-2"]), | ||
onClick: (ee) => Te(L), | ||
"data-test": `stepIndicator_${L}` | ||
}, [ | ||
be("path", { | ||
fill: C === d.value ? "#3b82f6" : "#d1d5db", | ||
fill: L === d.value ? "#3b82f6" : "#d1d5db", | ||
d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512z" | ||
@@ -1231,3 +1231,3 @@ }, null, 8, fo) | ||
])) : ce("", !0), | ||
ae.value ? (Y(), V("svg", { | ||
me.value ? (Y(), V("svg", { | ||
key: 2, | ||
@@ -1237,5 +1237,5 @@ xmlns: "http://www.w3.org/2000/svg", | ||
class: "nextStepIcon ml-auto cursor-pointer fill-gray-500 hover:fill-gray-700 transition-colors w-4 h-4", | ||
onClick: U, | ||
onClick: ge, | ||
"data-test": "nextStepIcon" | ||
}, a[2] || (a[2] = [ | ||
}, m[2] || (m[2] = [ | ||
be("path", { d: "M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z" }, null, -1) | ||
@@ -1245,5 +1245,5 @@ ]))) : (Y(), V("span", { | ||
class: "terminateTourButton ml-auto cursor-pointer text-blue-600 hover:text-blue-800 font-medium transition-colors", | ||
onClick: Le, | ||
onClick: Ce, | ||
"data-test": "terminateTourButton" | ||
}, Ht(t.labelTerminate), 1)) | ||
}, Ht(n.labelTerminate), 1)) | ||
]) | ||
@@ -1250,0 +1250,0 @@ ])) : ce("", !0) |
@@ -1,3 +0,3 @@ | ||
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-bottom-2{bottom:-.5rem}.-left-2{left:-.5rem}.-right-2{right:-.5rem}.-top-2{top:-.5rem}.left-3{left:.75rem}.right-4{right:1rem}.top-3{top:.75rem}.top-4{top:1rem}.z-\\[9999\\]{z-index:9999}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.mt-4{margin-top:1rem}.flex{display:flex}.h-2{height:.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-full{height:100%}.w-2{width:.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-\\[320px\\]{width:320px}.w-full{width:100%}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.rotate-45{--tw-rotate:45deg}.rotate-45,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.gap-4{gap:1rem}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.fill-gray-500{fill:#6b7280}.p-6{padding:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-relaxed{line-height:1.625}.tracking-wider{letter-spacing:.05em}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:fill-gray-700:hover{fill:#374151}.hover\\:text-blue-800:hover{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }")),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})(); | ||
(function(ae,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(ae=typeof globalThis<"u"?globalThis:ae||self,o(ae.VueOnboardingTour={},ae.Vue))})(this,function(ae,o){"use strict";function Ie(i){return o.getCurrentScope()?(o.onScopeDispose(i),!0):!1}function Me(i){return typeof i=="function"?i():o.unref(i)}const Xt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Kt=i=>i!=null,Zt=Object.prototype.toString,Jt=i=>Zt.call(i)==="[object Object]",Qt=()=>{};function en(i){return o.getCurrentInstance()}function tn(i,n=!0,r){en()?o.onMounted(i,r):n?i():o.nextTick(i)}const Xe=Xt?window:void 0;function pe(i){var n;const r=Me(i);return(n=r==null?void 0:r.$el)!=null?n:r}function ft(...i){let n,r,t,d;if(typeof i[0]=="string"||Array.isArray(i[0])?([r,t,d]=i,n=Xe):[n,r,t,d]=i,!n)return Qt;Array.isArray(r)||(r=[r]),Array.isArray(t)||(t=[t]);const m=[],S=()=>{m.forEach(_=>_()),m.length=0},C=(_,b,O,c)=>(_.addEventListener(b,O,c),()=>_.removeEventListener(b,O,c)),E=o.watch(()=>[pe(n),Me(d)],([_,b])=>{if(S(),!_)return;const O=Jt(b)?{...b}:b;m.push(...r.flatMap(c=>t.map(y=>C(_,c,y,O))))},{immediate:!0,flush:"post"}),R=()=>{E(),S()};return Ie(R),R}function nn(){const i=o.ref(!1),n=o.getCurrentInstance();return n&&o.onMounted(()=>{i.value=!0},n),i}function pt(i){const n=nn();return o.computed(()=>(n.value,!!i()))}function on(i,n,r={}){const{window:t=Xe,...d}=r;let m;const S=pt(()=>t&&"MutationObserver"in t),C=()=>{m&&(m.disconnect(),m=void 0)},E=o.computed(()=>{const O=Me(i),c=(Array.isArray(O)?O:[O]).map(pe).filter(Kt);return new Set(c)}),R=o.watch(()=>E.value,O=>{C(),S.value&&O.size&&(m=new MutationObserver(n),O.forEach(c=>m.observe(c,d)))},{immediate:!0,flush:"post"}),_=()=>m==null?void 0:m.takeRecords(),b=()=>{R(),C()};return Ie(b),{isSupported:S,stop:b,takeRecords:_}}function rn(i,n,r={}){const{window:t=Xe,...d}=r;let m;const S=pt(()=>t&&"ResizeObserver"in t),C=()=>{m&&(m.disconnect(),m=void 0)},E=o.computed(()=>{const b=Me(i);return Array.isArray(b)?b.map(O=>pe(O)):[pe(b)]}),R=o.watch(E,b=>{if(C(),S.value&&t){m=new ResizeObserver(n);for(const O of b)O&&m.observe(O,d)}},{immediate:!0,flush:"post"}),_=()=>{C(),R()};return Ie(_),{isSupported:S,stop:_}}function dt(i,n={}){const{reset:r=!0,windowResize:t=!0,windowScroll:d=!0,immediate:m=!0,updateTiming:S="sync"}=n,C=o.ref(0),E=o.ref(0),R=o.ref(0),_=o.ref(0),b=o.ref(0),O=o.ref(0),c=o.ref(0),y=o.ref(0);function f(){const w=pe(i);if(!w){r&&(C.value=0,E.value=0,R.value=0,_.value=0,b.value=0,O.value=0,c.value=0,y.value=0);return}const p=w.getBoundingClientRect();C.value=p.height,E.value=p.bottom,R.value=p.left,_.value=p.right,b.value=p.top,O.value=p.width,c.value=p.x,y.value=p.y}function A(){S==="sync"?f():S==="next-frame"&&requestAnimationFrame(()=>f())}return rn(i,A),o.watch(()=>pe(i),w=>!w&&A()),on(i,A,{attributeFilter:["style","class"]}),d&&ft("scroll",A,{capture:!0,passive:!0}),t&&ft("resize",A,{passive:!0}),tn(()=>{m&&A()}),{height:C,bottom:E,left:R,right:_,top:b,width:O,x:c,y,update:A}}var Pe={};/*! | ||
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-bottom-2{bottom:-.5rem}.-left-2{left:-.5rem}.-right-2{right:-.5rem}.-top-2{top:-.5rem}.left-3{left:.75rem}.right-4{right:1rem}.top-3{top:.75rem}.top-4{top:1rem}.z-\\[9999\\]{z-index:9999}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.mt-4{margin-top:1rem}.flex{display:flex}.h-2{height:.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-full{height:100%}.w-2{width:.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-\\[320px\\]{width:320px}.w-full{width:100%}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.rotate-45{--tw-rotate:45deg}.rotate-45,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.gap-4{gap:1rem}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.fill-gray-500{fill:#6b7280}.p-6{padding:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-relaxed{line-height:1.625}.tracking-wider{letter-spacing:.05em}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:fill-gray-700:hover{fill:#374151}.hover\\:text-blue-800:hover{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }")),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})(); | ||
(function(ae,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(ae=typeof globalThis<"u"?globalThis:ae||self,t(ae.VueOnboardingTour={},ae.Vue))})(this,function(ae,t){"use strict";function De(i){return t.getCurrentScope()?(t.onScopeDispose(i),!0):!1}function Ie(i){return typeof i=="function"?i():t.unref(i)}const Xt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Kt=i=>i!=null,Zt=Object.prototype.toString,Jt=i=>Zt.call(i)==="[object Object]",Qt=()=>{};function en(i){return t.getCurrentInstance()}function tn(i,n=!0,r){en()?t.onMounted(i,r):n?i():t.nextTick(i)}const Xe=Xt?window:void 0;function ue(i){var n;const r=Ie(i);return(n=r==null?void 0:r.$el)!=null?n:r}function ft(...i){let n,r,o,d;if(typeof i[0]=="string"||Array.isArray(i[0])?([r,o,d]=i,n=Xe):[n,r,o,d]=i,!n)return Qt;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const m=[],S=()=>{m.forEach(_=>_()),m.length=0},C=(_,b,O,u)=>(_.addEventListener(b,O,u),()=>_.removeEventListener(b,O,u)),E=t.watch(()=>[ue(n),Ie(d)],([_,b])=>{if(S(),!_)return;const O=Jt(b)?{...b}:b;m.push(...r.flatMap(u=>o.map(y=>C(_,u,y,O))))},{immediate:!0,flush:"post"}),k=()=>{E(),S()};return De(k),k}function nn(){const i=t.ref(!1),n=t.getCurrentInstance();return n&&t.onMounted(()=>{i.value=!0},n),i}function pt(i){const n=nn();return t.computed(()=>(n.value,!!i()))}function on(i,n,r={}){const{window:o=Xe,...d}=r;let m;const S=pt(()=>o&&"MutationObserver"in o),C=()=>{m&&(m.disconnect(),m=void 0)},E=t.computed(()=>{const O=Ie(i),u=(Array.isArray(O)?O:[O]).map(ue).filter(Kt);return new Set(u)}),k=t.watch(()=>E.value,O=>{C(),S.value&&O.size&&(m=new MutationObserver(n),O.forEach(u=>m.observe(u,d)))},{immediate:!0,flush:"post"}),_=()=>m==null?void 0:m.takeRecords(),b=()=>{k(),C()};return De(b),{isSupported:S,stop:b,takeRecords:_}}function rn(i,n,r={}){const{window:o=Xe,...d}=r;let m;const S=pt(()=>o&&"ResizeObserver"in o),C=()=>{m&&(m.disconnect(),m=void 0)},E=t.computed(()=>{const b=Ie(i);return Array.isArray(b)?b.map(O=>ue(O)):[ue(b)]}),k=t.watch(E,b=>{if(C(),S.value&&o){m=new ResizeObserver(n);for(const O of b)O&&m.observe(O,d)}},{immediate:!0,flush:"post"}),_=()=>{C(),k()};return De(_),{isSupported:S,stop:_}}function dt(i,n={}){const{reset:r=!0,windowResize:o=!0,windowScroll:d=!0,immediate:m=!0,updateTiming:S="sync"}=n,C=t.ref(0),E=t.ref(0),k=t.ref(0),_=t.ref(0),b=t.ref(0),O=t.ref(0),u=t.ref(0),y=t.ref(0);function p(){const N=ue(i);if(!N){r&&(C.value=0,E.value=0,k.value=0,_.value=0,b.value=0,O.value=0,u.value=0,y.value=0);return}const l=N.getBoundingClientRect();C.value=l.height,E.value=l.bottom,k.value=l.left,_.value=l.right,b.value=l.top,O.value=l.width,u.value=l.x,y.value=l.y}function v(){S==="sync"?p():S==="next-frame"&&requestAnimationFrame(()=>p())}return rn(i,v),t.watch(()=>ue(i),N=>!N&&v()),on(i,v,{attributeFilter:["style","class"]}),d&&ft("scroll",v,{capture:!0,passive:!0}),o&&ft("resize",v,{passive:!0}),tn(()=>{m&&v()}),{height:C,bottom:E,left:k,right:_,top:b,width:O,x:u,y,update:v}}var Me={};/*! | ||
* cookie | ||
@@ -7,4 +7,4 @@ * Copyright(c) 2012-2014 Roman Shtylman | ||
* MIT Licensed | ||
*/var mt;function an(){if(mt)return Pe;mt=1,Pe.parse=S,Pe.serialize=R;var i=Object.prototype.toString,n=Object.prototype.hasOwnProperty,r=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,t=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,d=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,m=/^[\u0020-\u003A\u003D-\u007E]*$/;function S(c,y){if(typeof c!="string")throw new TypeError("argument str must be a string");var f={},A=c.length;if(A<2)return f;var w=y&&y.decode||_,p=0,N=0,v=0;do{if(N=c.indexOf("=",p),N===-1)break;if(v=c.indexOf(";",p),v===-1)v=A;else if(N>v){p=c.lastIndexOf(";",N-1)+1;continue}var q=C(c,p,N),oe=E(c,N,q),de=c.slice(q,oe);if(!n.call(f,de)){var Q=C(c,N+1,v),se=E(c,v,Q);c.charCodeAt(Q)===34&&c.charCodeAt(se-1)===34&&(Q++,se--);var le=c.slice(Q,se);f[de]=O(le,w)}p=v+1}while(p<A);return f}function C(c,y,f){do{var A=c.charCodeAt(y);if(A!==32&&A!==9)return y}while(++y<f);return f}function E(c,y,f){for(;y>f;){var A=c.charCodeAt(--y);if(A!==32&&A!==9)return y+1}return f}function R(c,y,f){var A=f&&f.encode||encodeURIComponent;if(typeof A!="function")throw new TypeError("option encode is invalid");if(!r.test(c))throw new TypeError("argument name is invalid");var w=A(y);if(!t.test(w))throw new TypeError("argument val is invalid");var p=c+"="+w;if(!f)return p;if(f.maxAge!=null){var N=Math.floor(f.maxAge);if(!isFinite(N))throw new TypeError("option maxAge is invalid");p+="; Max-Age="+N}if(f.domain){if(!d.test(f.domain))throw new TypeError("option domain is invalid");p+="; Domain="+f.domain}if(f.path){if(!m.test(f.path))throw new TypeError("option path is invalid");p+="; Path="+f.path}if(f.expires){var v=f.expires;if(!b(v)||isNaN(v.valueOf()))throw new TypeError("option expires is invalid");p+="; Expires="+v.toUTCString()}if(f.httpOnly&&(p+="; HttpOnly"),f.secure&&(p+="; Secure"),f.partitioned&&(p+="; Partitioned"),f.priority){var q=typeof f.priority=="string"?f.priority.toLowerCase():f.priority;switch(q){case"low":p+="; Priority=Low";break;case"medium":p+="; Priority=Medium";break;case"high":p+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(f.sameSite){var oe=typeof f.sameSite=="string"?f.sameSite.toLowerCase():f.sameSite;switch(oe){case!0:p+="; SameSite=Strict";break;case"lax":p+="; SameSite=Lax";break;case"strict":p+="; SameSite=Strict";break;case"none":p+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return p}function _(c){return c.indexOf("%")!==-1?decodeURIComponent(c):c}function b(c){return i.call(c)==="[object Date]"}function O(c,y){try{return y(c)}catch{return c}}return Pe}var Ue=an();function sn(){const i=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof i=="boolean"?i:typeof document=="object"&&typeof document.cookie=="string"}function ln(i){return typeof i=="string"?Ue.parse(i):typeof i=="object"&&i!==null?i:{}}function Ke(i,n={}){const r=cn(i);if(!n.doNotParse)try{return JSON.parse(r)}catch{}return i}function cn(i){return i&&i[0]==="j"&&i[1]===":"?i.substr(2):i}class un{constructor(n,r={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const d=this.cookies;this.cookies=Ue.parse(document.cookie),this._checkChanges(d)};const t=typeof document>"u"?"":document.cookie;this.cookies=ln(n||t),this.defaultSetOptions=r,this.HAS_DOCUMENT_COOKIE=sn()}_emitChange(n){for(let r=0;r<this.changeListeners.length;++r)this.changeListeners[r](n)}_checkChanges(n){new Set(Object.keys(n).concat(Object.keys(this.cookies))).forEach(t=>{n[t]!==this.cookies[t]&&this._emitChange({name:t,value:Ke(this.cookies[t])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(n,r={}){return r.doNotUpdate||this.update(),Ke(this.cookies[n],r)}getAll(n={}){n.doNotUpdate||this.update();const r={};for(let t in this.cookies)r[t]=Ke(this.cookies[t],n);return r}set(n,r,t){t?t=Object.assign(Object.assign({},this.defaultSetOptions),t):t=this.defaultSetOptions;const d=typeof r=="string"?r:JSON.stringify(r);this.cookies=Object.assign(Object.assign({},this.cookies),{[n]:d}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=Ue.serialize(n,d,t)),this._emitChange({name:n,value:r,options:t})}remove(n,r){const t=r=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),r),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[n],this.HAS_DOCUMENT_COOKIE&&(document.cookie=Ue.serialize(n,"",t)),this._emitChange({name:n,value:void 0,options:r})}addChangeListener(n){this.changeListeners.push(n),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(n){const r=this.changeListeners.indexOf(n);r>=0&&this.changeListeners.splice(r,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}function fn(i,{doNotParse:n=!1,autoUpdateDependencies:r=!1}={},t=new un){const d=r?[]:i;let m=t.getAll({doNotParse:!0});const S=o.ref(0),C=()=>{const E=t.getAll({doNotParse:!0});pn(d||null,E,m)&&S.value++,m=E};return t.addChangeListener(C),Ie(()=>{t.removeChangeListener(C)}),{get:(...E)=>(r&&d&&!d.includes(E[0])&&d.push(E[0]),S.value,t.get(E[0],{doNotParse:n,...E[1]})),getAll:(...E)=>(S.value,t.getAll({doNotParse:n,...E[0]})),set:(...E)=>t.set(...E),remove:(...E)=>t.remove(...E),addChangeListener:(...E)=>t.addChangeListener(...E),removeChangeListener:(...E)=>t.removeChangeListener(...E)}}function pn(i,n,r){if(!i)return!0;for(const t of i)if(n[t]!==r[t])return!0;return!1}/*! @license DOMPurify 3.2.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.3/LICENSE */const{entries:ht,setPrototypeOf:gt,isFrozen:dn,getPrototypeOf:mn,getOwnPropertyDescriptor:hn}=Object;let{freeze:B,seal:Y,create:Et}=Object,{apply:Ze,construct:Je}=typeof Reflect<"u"&&Reflect;B||(B=function(n){return n}),Y||(Y=function(n){return n}),Ze||(Ze=function(n,r,t){return n.apply(r,t)}),Je||(Je=function(n,r){return new n(...r)});const ze=$(Array.prototype.forEach),Tt=$(Array.prototype.pop),Se=$(Array.prototype.push),Be=$(String.prototype.toLowerCase),Qe=$(String.prototype.toString),_t=$(String.prototype.match),Ae=$(String.prototype.replace),gn=$(String.prototype.indexOf),En=$(String.prototype.trim),K=$(Object.prototype.hasOwnProperty),H=$(RegExp.prototype.test),ve=Tn(TypeError);function $(i){return function(n){for(var r=arguments.length,t=new Array(r>1?r-1:0),d=1;d<r;d++)t[d-1]=arguments[d];return Ze(i,n,t)}}function Tn(i){return function(){for(var n=arguments.length,r=new Array(n),t=0;t<n;t++)r[t]=arguments[t];return Je(i,r)}}function T(i,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Be;gt&>(i,null);let t=n.length;for(;t--;){let d=n[t];if(typeof d=="string"){const m=r(d);m!==d&&(dn(n)||(n[t]=m),d=m)}i[d]=!0}return i}function _n(i){for(let n=0;n<i.length;n++)K(i,n)||(i[n]=null);return i}function ce(i){const n=Et(null);for(const[r,t]of ht(i))K(i,r)&&(Array.isArray(t)?n[r]=_n(t):t&&typeof t=="object"&&t.constructor===Object?n[r]=ce(t):n[r]=t);return n}function be(i,n){for(;i!==null;){const t=hn(i,n);if(t){if(t.get)return $(t.get);if(typeof t.value=="function")return $(t.value)}i=mn(i)}function r(){return null}return r}const wt=B(["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"]),et=B(["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"]),tt=B(["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"]),wn=B(["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=B(["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"]),yn=B(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),yt=B(["#text"]),St=B(["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"]),ot=B(["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"]),At=B(["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"]),He=B(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Sn=Y(/\{\{[\w\W]*|[\w\W]*\}\}/gm),An=Y(/<%[\w\W]*|[\w\W]*%>/gm),vn=Y(/\$\{[\w\W]*}/gm),bn=Y(/^data-[\-\w.\u00B7-\uFFFF]+$/),On=Y(/^aria-[\-\w]+$/),vt=Y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Cn=Y(/^(?:\w+script|data):/i),Ln=Y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),bt=Y(/^html$/i),xn=Y(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ot=Object.freeze({__proto__:null,ARIA_ATTR:On,ATTR_WHITESPACE:Ln,CUSTOM_ELEMENT:xn,DATA_ATTR:bn,DOCTYPE_NAME:bt,ERB_EXPR:An,IS_ALLOWED_URI:vt,IS_SCRIPT_OR_DATA:Cn,MUSTACHE_EXPR:Sn,TMPLIT_EXPR:vn});const Oe={element:1,text:3,progressingInstruction:7,comment:8,document:9},Rn=function(){return typeof window>"u"?null:window},kn=function(n,r){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let t=null;const d="data-tt-policy-suffix";r&&r.hasAttribute(d)&&(t=r.getAttribute(d));const m="dompurify"+(t?"#"+t:"");try{return n.createPolicy(m,{createHTML(S){return S},createScriptURL(S){return S}})}catch{return console.warn("TrustedTypes policy "+m+" could not be created."),null}},Ct=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Lt(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Rn();const n=u=>Lt(u);if(n.version="3.2.3",n.removed=[],!i||!i.document||i.document.nodeType!==Oe.document)return n.isSupported=!1,n;let{document:r}=i;const t=r,d=t.currentScript,{DocumentFragment:m,HTMLTemplateElement:S,Node:C,Element:E,NodeFilter:R,NamedNodeMap:_=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:b,DOMParser:O,trustedTypes:c}=i,y=E.prototype,f=be(y,"cloneNode"),A=be(y,"remove"),w=be(y,"nextSibling"),p=be(y,"childNodes"),N=be(y,"parentNode");if(typeof S=="function"){const u=r.createElement("template");u.content&&u.content.ownerDocument&&(r=u.content.ownerDocument)}let v,q="";const{implementation:oe,createNodeIterator:de,createDocumentFragment:Q,getElementsByTagName:se}=r,{importNode:le}=t;let U=Ct();n.isSupported=typeof ht=="function"&&typeof N=="function"&&oe&&oe.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:me,ERB_EXPR:he,TMPLIT_EXPR:Ce,DATA_ATTR:ge,ARIA_ATTR:Le,IS_SCRIPT_OR_DATA:Fe,ATTR_WHITESPACE:xe,CUSTOM_ELEMENT:it}=Ot;let{IS_ALLOWED_URI:Re}=Ot,D=null;const g=T({},[...wt,...et,...tt,...nt,...yt]);let s=null;const k=T({},[...St,...ot,...At,...He]);let h=Object.seal(Et(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),I=null,V=null,F=!0,L=!0,Z=!1,J=!0,W=!1,X=!0,ee=!1,ue=!1,fe=!1,Ee=!1,We=!1,Ge=!1,kt=!0,Nt=!1;const Fn="user-content-";let rt=!0,ke=!1,Te={},_e=null;const Dt=T({},["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"]);let It=null;const Mt=T({},["audio","video","img","source","image","track"]);let at=null;const Pt=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ve="http://www.w3.org/1998/Math/MathML",je="http://www.w3.org/2000/svg",ie="http://www.w3.org/1999/xhtml";let we=ie,st=!1,lt=null;const Wn=T({},[Ve,je,ie],Qe);let $e=T({},["mi","mo","mn","ms","mtext"]),Ye=T({},["annotation-xml"]);const Gn=T({},["title","style","font","a","script"]);let Ne=null;const Vn=["application/xhtml+xml","text/html"],jn="text/html";let M=null,ye=null;const $n=r.createElement("form"),Ut=function(e){return e instanceof RegExp||e instanceof Function},ct=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ye&&ye===e)){if((!e||typeof e!="object")&&(e={}),e=ce(e),Ne=Vn.indexOf(e.PARSER_MEDIA_TYPE)===-1?jn:e.PARSER_MEDIA_TYPE,M=Ne==="application/xhtml+xml"?Qe:Be,D=K(e,"ALLOWED_TAGS")?T({},e.ALLOWED_TAGS,M):g,s=K(e,"ALLOWED_ATTR")?T({},e.ALLOWED_ATTR,M):k,lt=K(e,"ALLOWED_NAMESPACES")?T({},e.ALLOWED_NAMESPACES,Qe):Wn,at=K(e,"ADD_URI_SAFE_ATTR")?T(ce(Pt),e.ADD_URI_SAFE_ATTR,M):Pt,It=K(e,"ADD_DATA_URI_TAGS")?T(ce(Mt),e.ADD_DATA_URI_TAGS,M):Mt,_e=K(e,"FORBID_CONTENTS")?T({},e.FORBID_CONTENTS,M):Dt,I=K(e,"FORBID_TAGS")?T({},e.FORBID_TAGS,M):{},V=K(e,"FORBID_ATTR")?T({},e.FORBID_ATTR,M):{},Te=K(e,"USE_PROFILES")?e.USE_PROFILES:!1,F=e.ALLOW_ARIA_ATTR!==!1,L=e.ALLOW_DATA_ATTR!==!1,Z=e.ALLOW_UNKNOWN_PROTOCOLS||!1,J=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,W=e.SAFE_FOR_TEMPLATES||!1,X=e.SAFE_FOR_XML!==!1,ee=e.WHOLE_DOCUMENT||!1,Ee=e.RETURN_DOM||!1,We=e.RETURN_DOM_FRAGMENT||!1,Ge=e.RETURN_TRUSTED_TYPE||!1,fe=e.FORCE_BODY||!1,kt=e.SANITIZE_DOM!==!1,Nt=e.SANITIZE_NAMED_PROPS||!1,rt=e.KEEP_CONTENT!==!1,ke=e.IN_PLACE||!1,Re=e.ALLOWED_URI_REGEXP||vt,we=e.NAMESPACE||ie,$e=e.MATHML_TEXT_INTEGRATION_POINTS||$e,Ye=e.HTML_INTEGRATION_POINTS||Ye,h=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ut(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(h.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ut(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(h.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(h.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),W&&(L=!1),We&&(Ee=!0),Te&&(D=T({},yt),s=[],Te.html===!0&&(T(D,wt),T(s,St)),Te.svg===!0&&(T(D,et),T(s,ot),T(s,He)),Te.svgFilters===!0&&(T(D,tt),T(s,ot),T(s,He)),Te.mathMl===!0&&(T(D,nt),T(s,At),T(s,He))),e.ADD_TAGS&&(D===g&&(D=ce(D)),T(D,e.ADD_TAGS,M)),e.ADD_ATTR&&(s===k&&(s=ce(s)),T(s,e.ADD_ATTR,M)),e.ADD_URI_SAFE_ATTR&&T(at,e.ADD_URI_SAFE_ATTR,M),e.FORBID_CONTENTS&&(_e===Dt&&(_e=ce(_e)),T(_e,e.FORBID_CONTENTS,M)),rt&&(D["#text"]=!0),ee&&T(D,["html","head","body"]),D.table&&(T(D,["tbody"]),delete I.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw ve('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ve('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=e.TRUSTED_TYPES_POLICY,q=v.createHTML("")}else v===void 0&&(v=kn(c,d)),v!==null&&typeof q=="string"&&(q=v.createHTML(""));B&&B(e),ye=e}},zt=T({},[...et,...tt,...wn]),Bt=T({},[...nt,...yn]),Yn=function(e){let a=N(e);(!a||!a.tagName)&&(a={namespaceURI:we,tagName:"template"});const l=Be(e.tagName),x=Be(a.tagName);return lt[e.namespaceURI]?e.namespaceURI===je?a.namespaceURI===ie?l==="svg":a.namespaceURI===Ve?l==="svg"&&(x==="annotation-xml"||$e[x]):!!zt[l]:e.namespaceURI===Ve?a.namespaceURI===ie?l==="math":a.namespaceURI===je?l==="math"&&Ye[x]:!!Bt[l]:e.namespaceURI===ie?a.namespaceURI===je&&!Ye[x]||a.namespaceURI===Ve&&!$e[x]?!1:!Bt[l]&&(Gn[l]||!zt[l]):!!(Ne==="application/xhtml+xml"&<[e.namespaceURI]):!1},te=function(e){Se(n.removed,{element:e});try{N(e).removeChild(e)}catch{A(e)}},qe=function(e,a){try{Se(n.removed,{attribute:a.getAttributeNode(e),from:a})}catch{Se(n.removed,{attribute:null,from:a})}if(a.removeAttribute(e),e==="is")if(Ee||We)try{te(a)}catch{}else try{a.setAttribute(e,"")}catch{}},Ht=function(e){let a=null,l=null;if(fe)e="<remove></remove>"+e;else{const P=_t(e,/^[\r\n\t ]+/);l=P&&P[0]}Ne==="application/xhtml+xml"&&we===ie&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const x=v?v.createHTML(e):e;if(we===ie)try{a=new O().parseFromString(x,Ne)}catch{}if(!a||!a.documentElement){a=oe.createDocument(we,"template",null);try{a.documentElement.innerHTML=st?q:x}catch{}}const z=a.body||a.documentElement;return e&&l&&z.insertBefore(r.createTextNode(l),z.childNodes[0]||null),we===ie?se.call(a,ee?"html":"body")[0]:ee?a.documentElement:z},Ft=function(e){return de.call(e.ownerDocument||e,e,R.SHOW_ELEMENT|R.SHOW_COMMENT|R.SHOW_TEXT|R.SHOW_PROCESSING_INSTRUCTION|R.SHOW_CDATA_SECTION,null)},ut=function(e){return e instanceof b&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof _)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},Wt=function(e){return typeof C=="function"&&e instanceof C};function re(u,e,a){ze(u,l=>{l.call(n,e,a,ye)})}const Gt=function(e){let a=null;if(re(U.beforeSanitizeElements,e,null),ut(e))return te(e),!0;const l=M(e.nodeName);if(re(U.uponSanitizeElement,e,{tagName:l,allowedTags:D}),e.hasChildNodes()&&!Wt(e.firstElementChild)&&H(/<[/\w]/g,e.innerHTML)&&H(/<[/\w]/g,e.textContent)||e.nodeType===Oe.progressingInstruction||X&&e.nodeType===Oe.comment&&H(/<[/\w]/g,e.data))return te(e),!0;if(!D[l]||I[l]){if(!I[l]&&jt(l)&&(h.tagNameCheck instanceof RegExp&&H(h.tagNameCheck,l)||h.tagNameCheck instanceof Function&&h.tagNameCheck(l)))return!1;if(rt&&!_e[l]){const x=N(e)||e.parentNode,z=p(e)||e.childNodes;if(z&&x){const P=z.length;for(let j=P-1;j>=0;--j){const ne=f(z[j],!0);ne.__removalCount=(e.__removalCount||0)+1,x.insertBefore(ne,w(e))}}}return te(e),!0}return e instanceof E&&!Yn(e)||(l==="noscript"||l==="noembed"||l==="noframes")&&H(/<\/no(script|embed|frames)/i,e.innerHTML)?(te(e),!0):(W&&e.nodeType===Oe.text&&(a=e.textContent,ze([me,he,Ce],x=>{a=Ae(a,x," ")}),e.textContent!==a&&(Se(n.removed,{element:e.cloneNode()}),e.textContent=a)),re(U.afterSanitizeElements,e,null),!1)},Vt=function(e,a,l){if(kt&&(a==="id"||a==="name")&&(l in r||l in $n))return!1;if(!(L&&!V[a]&&H(ge,a))){if(!(F&&H(Le,a))){if(!s[a]||V[a]){if(!(jt(e)&&(h.tagNameCheck instanceof RegExp&&H(h.tagNameCheck,e)||h.tagNameCheck instanceof Function&&h.tagNameCheck(e))&&(h.attributeNameCheck instanceof RegExp&&H(h.attributeNameCheck,a)||h.attributeNameCheck instanceof Function&&h.attributeNameCheck(a))||a==="is"&&h.allowCustomizedBuiltInElements&&(h.tagNameCheck instanceof RegExp&&H(h.tagNameCheck,l)||h.tagNameCheck instanceof Function&&h.tagNameCheck(l))))return!1}else if(!at[a]){if(!H(Re,Ae(l,xe,""))){if(!((a==="src"||a==="xlink:href"||a==="href")&&e!=="script"&&gn(l,"data:")===0&&It[e])){if(!(Z&&!H(Fe,Ae(l,xe,"")))){if(l)return!1}}}}}}return!0},jt=function(e){return e!=="annotation-xml"&&_t(e,it)},$t=function(e){re(U.beforeSanitizeAttributes,e,null);const{attributes:a}=e;if(!a||ut(e))return;const l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:s,forceKeepAttr:void 0};let x=a.length;for(;x--;){const z=a[x],{name:P,namespaceURI:j,value:ne}=z,De=M(P);let G=P==="value"?ne:En(ne);if(l.attrName=De,l.attrValue=G,l.keepAttr=!0,l.forceKeepAttr=void 0,re(U.uponSanitizeAttribute,e,l),G=l.attrValue,Nt&&(De==="id"||De==="name")&&(qe(P,e),G=Fn+G),X&&H(/((--!?|])>)|<\/(style|title)/i,G)){qe(P,e);continue}if(l.forceKeepAttr||(qe(P,e),!l.keepAttr))continue;if(!J&&H(/\/>/i,G)){qe(P,e);continue}W&&ze([me,he,Ce],qt=>{G=Ae(G,qt," ")});const Yt=M(e.nodeName);if(Vt(Yt,De,G)){if(v&&typeof c=="object"&&typeof c.getAttributeType=="function"&&!j)switch(c.getAttributeType(Yt,De)){case"TrustedHTML":{G=v.createHTML(G);break}case"TrustedScriptURL":{G=v.createScriptURL(G);break}}try{j?e.setAttributeNS(j,P,G):e.setAttribute(P,G),ut(e)?te(e):Tt(n.removed)}catch{}}}re(U.afterSanitizeAttributes,e,null)},qn=function u(e){let a=null;const l=Ft(e);for(re(U.beforeSanitizeShadowDOM,e,null);a=l.nextNode();)re(U.uponSanitizeShadowNode,a,null),Gt(a),$t(a),a.content instanceof m&&u(a.content);re(U.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(u){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=null,l=null,x=null,z=null;if(st=!u,st&&(u="<!-->"),typeof u!="string"&&!Wt(u))if(typeof u.toString=="function"){if(u=u.toString(),typeof u!="string")throw ve("dirty is not a string, aborting")}else throw ve("toString is not a function");if(!n.isSupported)return u;if(ue||ct(e),n.removed=[],typeof u=="string"&&(ke=!1),ke){if(u.nodeName){const ne=M(u.nodeName);if(!D[ne]||I[ne])throw ve("root node is forbidden and cannot be sanitized in-place")}}else if(u instanceof C)a=Ht("<!---->"),l=a.ownerDocument.importNode(u,!0),l.nodeType===Oe.element&&l.nodeName==="BODY"||l.nodeName==="HTML"?a=l:a.appendChild(l);else{if(!Ee&&!W&&!ee&&u.indexOf("<")===-1)return v&&Ge?v.createHTML(u):u;if(a=Ht(u),!a)return Ee?null:Ge?q:""}a&&fe&&te(a.firstChild);const P=Ft(ke?u:a);for(;x=P.nextNode();)Gt(x),$t(x),x.content instanceof m&&qn(x.content);if(ke)return u;if(Ee){if(We)for(z=Q.call(a.ownerDocument);a.firstChild;)z.appendChild(a.firstChild);else z=a;return(s.shadowroot||s.shadowrootmode)&&(z=le.call(t,z,!0)),z}let j=ee?a.outerHTML:a.innerHTML;return ee&&D["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&H(bt,a.ownerDocument.doctype.name)&&(j="<!DOCTYPE "+a.ownerDocument.doctype.name+`> | ||
`+j),W&&ze([me,he,Ce],ne=>{j=Ae(j,ne," ")}),v&&Ge?v.createHTML(j):j},n.setConfig=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ct(u),ue=!0},n.clearConfig=function(){ye=null,ue=!1},n.isValidAttribute=function(u,e,a){ye||ct({});const l=M(u),x=M(e);return Vt(l,x,a)},n.addHook=function(u,e){typeof e=="function"&&Se(U[u],e)},n.removeHook=function(u){return Tt(U[u])},n.removeHooks=function(u){U[u]=[]},n.removeAllHooks=function(){U=Ct()},n}var xt=Lt();const Nn={key:0,class:"defaultTemplateContent flex w-[320px] flex-col gap-4 rounded-lg bg-white p-6 shadow-lg border border-gray-200 relative max-w-full","data-test":"defaultTemplateContent"},Dn={key:1,class:"stepTag text-xs font-medium text-gray-500 uppercase tracking-wider","data-test":"stepTag"},In=["innerHTML"],Mn=["innerHTML"],Pn={class:"navigationControls flex w-full items-center mt-4","data-test":"navigationControls"},Un={key:1,class:"stepIndicators flex flex-1 justify-center gap-2","data-test":"stepIndicators"},zn=["onClick","data-test"],Bn=["fill"],Rt=o.defineComponent({__name:"VueOnboardingTour",props:{tourId:{},defaultTemplate:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},startTour:{type:Boolean,default:!1},startEvent:{default:void 0},scrollableContainerSelector:{default:void 0},cookieStorage:{type:Boolean,default:!1},endDate:{default:void 0},labelTerminate:{default:"close"},steps:{}},emits:["startTour","endTour"],setup(i,{expose:n,emit:r}){const t=i,d=o.ref(!1),m=o.ref(0),S=o.ref({}),C=o.ref({}),E=o.ref("left"),R=o.ref(null);let _=null;const b=fn(),O=r;let c,y;const f=o.ref(null),A=o.ref(null),w=o.computed(()=>{var g;return((g=t.steps)==null?void 0:g.length)>0?t.steps[m.value]:void 0}),p=o.computed(()=>dt(f.value)),N=o.computed(()=>A.value&&dt(A.value)),v=o.computed(()=>p.value&&(p.value.top.value>=0&&p.value.top.value<=window.innerHeight||p.value.bottom.value>=0&&p.value.bottom.value<=window.innerHeight||p.value.bottom.value>=window.innerHeight&&p.value.top.value<=0)&&(p.value.left.value>=0&&p.value.left.value<=window.innerWidth||p.value.right.value>=0&&p.value.right.value<=window.innerWidth||p.value.right.value>=window.innerWidth&&p.value.left.value<=0)),q=o.computed(()=>{switch(E.value){case"left":return"-right-2 top-3";case"right":return"-left-2 top-3";case"top":return"left-3 -bottom-2";case"bottom":return"left-3 -top-2";default:return"-right-2 top-3"}}),oe=o.computed(()=>{var g;return m.value<((g=t.steps)==null?void 0:g.length)-1}),de=o.computed(()=>m.value>0),Q=o.computed(()=>d.value&&t.steps&&t.steps.length>0&&f.value),se=(g,s,k)=>{let h;s+k.height>window.innerHeight?h=window.innerHeight-k.height:s<=0?h=0:h=s,S.value={top:`${h}px`,left:`${g}px`}},le=()=>{var k,h,I,V;const g=((k=w.value)==null?void 0:k.target)&&((I=document.querySelector((h=w.value)==null?void 0:h.target))==null?void 0:I.getBoundingClientRect()),s=(V=R.value)==null?void 0:V.getBoundingClientRect();if(g&&s){const{top:F,left:L,bottom:Z,right:J,width:W,height:X}=g;C.value={position:"fixed",width:`${W+24}px`,height:`${X+24}px`,top:`${F-12}px`,left:`${L-12}px`,boxShadow:"inset 0px 0px 10px 0px rgba(255, 255, 255, 1), 0px 0px 0px 9999px rgba(0, 0, 0, 0.5)",userEvent:"none",borderRadius:"10px",zIndex:9999},L-s.width-40>0?(se(L-s.width-40,F,s),E.value="left"):J+s.width+40<window.innerWidth?(se(J+40,F,s),E.value="right"):F-s.height-40>0?(S.value={top:`${F-s.height-40}px`,left:`${L}px`,width:L+s.width>=window.innerWidth-10?`${window.innerWidth-L-10}px`:"auto"},E.value="top"):(S.value={top:Z+s.height+40<window.innerHeight?`${Z+40}px`:`${window.innerHeight-s.height}px`,left:`${L}px`,width:L+s.width>=window.innerWidth-10?`${window.innerWidth-L-10}px`:"auto"},E.value="bottom")}else s&&(S.value={top:`${(window.innerHeight-s.height)/2}px`,left:`${(window.innerWidth-s.width)/2}px`,position:"fixed"},C.value={position:"fixed",boxShadow:"inset 0px 0px 10px 0px rgba(255, 255, 255, 1), 0px 0px 0px 9999px rgba(0, 0, 0, 0.5)",userEvent:"none",borderRadius:"10px",zIndex:9999})},U=()=>{var g;m.value<((g=t.steps)==null?void 0:g.length)-1&&(m.value+=1)},me=()=>{m.value>0&&(m.value-=1)},he=g=>{var s;g>=0&&g<=((s=t.steps)==null?void 0:s.length)&&(m.value=g)},Ce=()=>t.endDate?new Date<=t.endDate?!(t.cookieStorage&&b.get(`vue_onboarding_tour_${t.tourId}`)):!1:!(t.cookieStorage&&b.get(`vue_onboarding_tour_${t.tourId}`)),ge=()=>{Ce()&&(d.value=!0,O("startTour"))},Le=()=>{if(t.cookieStorage){const g={expires:t.endDate?t.endDate:(()=>{const s=new Date;return s.setDate(s.getDate()+365),s})()};b.set(`vue_onboarding_tour_${t.tourId}`,!0,g)}d.value=!1,m.value=0,S.value={},C.value={},f.value=null,_&&(_.remove(),_=null),O("endTour")},Fe=()=>{var g,s,k,h,I,V,F,L,Z,J;if((g=w.value)!=null&&g.target){const{top:W,left:X}=((k=document.querySelector((s=w.value)==null?void 0:s.target))==null?void 0:k.getBoundingClientRect())??{},ee=(h=R.value)==null?void 0:h.getBoundingClientRect();if(W!==void 0&&X!==void 0&&ee&&(W<0||W>window.innerHeight||X<0||X>window.innerWidth)){const ue=W<0||W>window.innerHeight?W-ee.height-60:void 0,fe=X<0||X>window.innerWidth?X:void 0;A.value?A.value.scrollBy({left:fe&&((I=N.value)!=null&&I.left)?fe-((F=(V=N.value)==null?void 0:V.left)==null?void 0:F.value):void 0,top:ue&&((L=N.value)!=null&&L.left)?ue-((J=(Z=N.value)==null?void 0:Z.left)==null?void 0:J.value):void 0,behavior:"smooth"}):window.scrollBy({left:fe,top:ue,behavior:"smooth"})}}},xe=()=>{var g,s,k;if(_&&(_.remove(),_=null),(g=w.value)!=null&&g.target)if(document.querySelector((s=w.value)==null?void 0:s.target))f.value=document.querySelector((k=w.value)==null?void 0:k.target);else{const h=document.body,I={childList:!0,subtree:!0};c=new MutationObserver(V=>{var F,L;for(const Z of V)if(Z.type==="childList"){const J=((F=w.value)==null?void 0:F.target)&&document.querySelector((L=w.value)==null?void 0:L.target);J&&(f.value=J,c.disconnect())}}),c.observe(h,I)}else _=document.createElement("div"),_.style.position="fixed",_.style.top="50%",_.style.left="50%",_.style.width="0px",_.style.height="0px",_.style.transform="translate(-50%, -50%)",document.body.appendChild(_),f.value=_},it=()=>{if(t.scrollableContainerSelector)if(document.querySelector(t.scrollableContainerSelector))A.value=document.querySelector(t.scrollableContainerSelector);else{const g=document.body,s={childList:!0,subtree:!0};y=new MutationObserver(k=>{for(const h of k)if(h.type==="childList"){const I=t.scrollableContainerSelector&&document.querySelector(t.scrollableContainerSelector);I&&(A.value=I,y.disconnect())}}),y.observe(g,s)}},Re=()=>{Q.value&&(le(),Fe())},D=()=>{Q.value&&le()};return n({startTour:ge,endTour:Le,goNextStep:U,goPreviousStep:me,setStep:he}),o.onMounted(()=>{o.nextTick(()=>le()),window.addEventListener("resize",Re),window.addEventListener("scroll",D),t.startEvent&&window.addEventListener(t.startEvent,ge),xe(),it()}),o.onUnmounted(()=>{window.removeEventListener("resize",Re),window.removeEventListener("scroll",D),t.startEvent&&window.removeEventListener(t.startEvent,ge),c&&c.disconnect(),y&&y.disconnect()}),o.watch([p,N,d],()=>{d.value&&o.nextTick(()=>{le()})},{deep:!0}),o.watch([m,d],()=>{var g,s,k,h;d.value&&((g=w.value)!=null&&g.beforeScript&&((s=w.value)==null||s.beforeScript()),xe(),(k=w.value)!=null&&k.afterScript&&((h=w.value)==null||h.afterScript()))}),o.watch(f,()=>{d.value&&o.nextTick(()=>{Fe()})}),o.watch(()=>t.startTour,()=>{t.startTour&&ge()}),(g,s)=>{var k,h,I,V;return Q.value?(o.openBlock(),o.createElementBlock("div",{key:0,"data-test":"onboardingTour",class:o.normalizeClass(["vueOnboardingTour",{"fixed z-[9999] h-full w-full":g.overlay}])},[g.overlay?(o.openBlock(),o.createElementBlock("div",{key:0,style:o.normalizeStyle(C.value),"data-test":"overlay",class:"overlay"},null,4)):o.createCommentVNode("",!0),o.createElementVNode("div",{ref_key:"popup",ref:R,style:o.normalizeStyle(S.value),class:o.normalizeClass([[v.value?"opacity-100":"opacity-0"],"popupContainer z-[9999] fixed"]),"data-test":"popupContainer"},[o.renderSlot(g.$slots,"default",{currentStep:w.value,currentStepIndex:m.value}),g.defaultTemplate?(o.openBlock(),o.createElementBlock("div",Nn,[(k=w.value)!=null&&k.target?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(["chevronPointer w-4 h-4 absolute bg-white rotate-45",q.value]),"data-test":"chevronPointer"},null,2)):o.createCommentVNode("",!0),(h=w.value)!=null&&h.tag?(o.openBlock(),o.createElementBlock("div",Dn,o.toDisplayString(w.value.tag),1)):o.createCommentVNode("",!0),(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",class:"closeIcon absolute top-4 right-4 cursor-pointer w-5 h-5 fill-gray-500 hover:fill-gray-700 transition-colors",onClick:Le,"data-test":"closeIcon"},s[0]||(s[0]=[o.createElementVNode("path",{d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"},null,-1)]))),(I=w.value)!=null&&I.title?(o.openBlock(),o.createElementBlock("div",{key:2,innerHTML:o.unref(xt).sanitize(w.value.title),class:"stepTitle text-lg font-semibold text-gray-900","data-test":"stepTitle"},null,8,In)):o.createCommentVNode("",!0),(V=w.value)!=null&&V.description?(o.openBlock(),o.createElementBlock("div",{key:3,innerHTML:o.unref(xt).sanitize(w.value.description),class:"stepDescription text-sm text-gray-600 leading-relaxed","data-test":"stepDescription"},null,8,Mn)):o.createCommentVNode("",!0),o.createElementVNode("div",Pn,[de.value?(o.openBlock(),o.createElementBlock("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",class:"previousStepIcon mr-auto cursor-pointer fill-gray-500 hover:fill-gray-700 transition-colors w-4 h-4",onClick:me,"data-test":"previousStepIcon"},s[1]||(s[1]=[o.createElementVNode("path",{d:"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"},null,-1)]))):o.createCommentVNode("",!0),g.steps.length>1?(o.openBlock(),o.createElementBlock("div",Un,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(g.steps.length,(F,L)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",key:`dot_step_${L}`,class:o.normalizeClass([`stepIndicator_${L}`,"cursor-pointer w-2 h-2"]),onClick:Z=>he(L),"data-test":`stepIndicator_${L}`},[o.createElementVNode("path",{fill:L===m.value?"#3b82f6":"#d1d5db",d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512z"},null,8,Bn)],10,zn))),128))])):o.createCommentVNode("",!0),oe.value?(o.openBlock(),o.createElementBlock("svg",{key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",class:"nextStepIcon ml-auto cursor-pointer fill-gray-500 hover:fill-gray-700 transition-colors w-4 h-4",onClick:U,"data-test":"nextStepIcon"},s[2]||(s[2]=[o.createElementVNode("path",{d:"M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"},null,-1)]))):(o.openBlock(),o.createElementBlock("span",{key:3,class:"terminateTourButton ml-auto cursor-pointer text-blue-600 hover:text-blue-800 font-medium transition-colors",onClick:Le,"data-test":"terminateTourButton"},o.toDisplayString(t.labelTerminate),1))])])):o.createCommentVNode("",!0)],6)],2)):o.createCommentVNode("",!0)}}});/*! | ||
*/var mt;function an(){if(mt)return Me;mt=1,Me.parse=S,Me.serialize=k;var i=Object.prototype.toString,n=Object.prototype.hasOwnProperty,r=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,o=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,d=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,m=/^[\u0020-\u003A\u003D-\u007E]*$/;function S(u,y){if(typeof u!="string")throw new TypeError("argument str must be a string");var p={},v=u.length;if(v<2)return p;var N=y&&y.decode||_,l=0,A=0,w=0;do{if(A=u.indexOf("=",l),A===-1)break;if(w=u.indexOf(";",l),w===-1)w=v;else if(A>w){l=u.lastIndexOf(";",A-1)+1;continue}var X=C(u,l,A),ne=E(u,A,X),fe=u.slice(X,ne);if(!n.call(p,fe)){var se=C(u,A+1,w),oe=E(u,w,se);u.charCodeAt(se)===34&&u.charCodeAt(oe-1)===34&&(se++,oe--);var pe=u.slice(se,oe);p[fe]=O(pe,N)}l=w+1}while(l<v);return p}function C(u,y,p){do{var v=u.charCodeAt(y);if(v!==32&&v!==9)return y}while(++y<p);return p}function E(u,y,p){for(;y>p;){var v=u.charCodeAt(--y);if(v!==32&&v!==9)return y+1}return p}function k(u,y,p){var v=p&&p.encode||encodeURIComponent;if(typeof v!="function")throw new TypeError("option encode is invalid");if(!r.test(u))throw new TypeError("argument name is invalid");var N=v(y);if(!o.test(N))throw new TypeError("argument val is invalid");var l=u+"="+N;if(!p)return l;if(p.maxAge!=null){var A=Math.floor(p.maxAge);if(!isFinite(A))throw new TypeError("option maxAge is invalid");l+="; Max-Age="+A}if(p.domain){if(!d.test(p.domain))throw new TypeError("option domain is invalid");l+="; Domain="+p.domain}if(p.path){if(!m.test(p.path))throw new TypeError("option path is invalid");l+="; Path="+p.path}if(p.expires){var w=p.expires;if(!b(w)||isNaN(w.valueOf()))throw new TypeError("option expires is invalid");l+="; Expires="+w.toUTCString()}if(p.httpOnly&&(l+="; HttpOnly"),p.secure&&(l+="; Secure"),p.partitioned&&(l+="; Partitioned"),p.priority){var X=typeof p.priority=="string"?p.priority.toLowerCase():p.priority;switch(X){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(p.sameSite){var ne=typeof p.sameSite=="string"?p.sameSite.toLowerCase():p.sameSite;switch(ne){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return l}function _(u){return u.indexOf("%")!==-1?decodeURIComponent(u):u}function b(u){return i.call(u)==="[object Date]"}function O(u,y){try{return y(u)}catch{return u}}return Me}var Pe=an();function sn(){const i=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof i=="boolean"?i:typeof document=="object"&&typeof document.cookie=="string"}function ln(i){return typeof i=="string"?Pe.parse(i):typeof i=="object"&&i!==null?i:{}}function Ke(i,n={}){const r=cn(i);if(!n.doNotParse)try{return JSON.parse(r)}catch{}return i}function cn(i){return i&&i[0]==="j"&&i[1]===":"?i.substr(2):i}class un{constructor(n,r={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const d=this.cookies;this.cookies=Pe.parse(document.cookie),this._checkChanges(d)};const o=typeof document>"u"?"":document.cookie;this.cookies=ln(n||o),this.defaultSetOptions=r,this.HAS_DOCUMENT_COOKIE=sn()}_emitChange(n){for(let r=0;r<this.changeListeners.length;++r)this.changeListeners[r](n)}_checkChanges(n){new Set(Object.keys(n).concat(Object.keys(this.cookies))).forEach(o=>{n[o]!==this.cookies[o]&&this._emitChange({name:o,value:Ke(this.cookies[o])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(n,r={}){return r.doNotUpdate||this.update(),Ke(this.cookies[n],r)}getAll(n={}){n.doNotUpdate||this.update();const r={};for(let o in this.cookies)r[o]=Ke(this.cookies[o],n);return r}set(n,r,o){o?o=Object.assign(Object.assign({},this.defaultSetOptions),o):o=this.defaultSetOptions;const d=typeof r=="string"?r:JSON.stringify(r);this.cookies=Object.assign(Object.assign({},this.cookies),{[n]:d}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=Pe.serialize(n,d,o)),this._emitChange({name:n,value:r,options:o})}remove(n,r){const o=r=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),r),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[n],this.HAS_DOCUMENT_COOKIE&&(document.cookie=Pe.serialize(n,"",o)),this._emitChange({name:n,value:void 0,options:r})}addChangeListener(n){this.changeListeners.push(n),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(n){const r=this.changeListeners.indexOf(n);r>=0&&this.changeListeners.splice(r,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}function fn(i,{doNotParse:n=!1,autoUpdateDependencies:r=!1}={},o=new un){const d=r?[]:i;let m=o.getAll({doNotParse:!0});const S=t.ref(0),C=()=>{const E=o.getAll({doNotParse:!0});pn(d||null,E,m)&&S.value++,m=E};return o.addChangeListener(C),De(()=>{o.removeChangeListener(C)}),{get:(...E)=>(r&&d&&!d.includes(E[0])&&d.push(E[0]),S.value,o.get(E[0],{doNotParse:n,...E[1]})),getAll:(...E)=>(S.value,o.getAll({doNotParse:n,...E[0]})),set:(...E)=>o.set(...E),remove:(...E)=>o.remove(...E),addChangeListener:(...E)=>o.addChangeListener(...E),removeChangeListener:(...E)=>o.removeChangeListener(...E)}}function pn(i,n,r){if(!i)return!0;for(const o of i)if(n[o]!==r[o])return!0;return!1}/*! @license DOMPurify 3.2.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.3/LICENSE */const{entries:ht,setPrototypeOf:gt,isFrozen:dn,getPrototypeOf:mn,getOwnPropertyDescriptor:hn}=Object;let{freeze:F,seal:q,create:Et}=Object,{apply:Ze,construct:Je}=typeof Reflect<"u"&&Reflect;F||(F=function(n){return n}),q||(q=function(n){return n}),Ze||(Ze=function(n,r,o){return n.apply(r,o)}),Je||(Je=function(n,r){return new n(...r)});const Ue=$(Array.prototype.forEach),Tt=$(Array.prototype.pop),Se=$(Array.prototype.push),ze=$(String.prototype.toLowerCase),Qe=$(String.prototype.toString),_t=$(String.prototype.match),Ae=$(String.prototype.replace),gn=$(String.prototype.indexOf),En=$(String.prototype.trim),Z=$(Object.prototype.hasOwnProperty),W=$(RegExp.prototype.test),ve=Tn(TypeError);function $(i){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),d=1;d<r;d++)o[d-1]=arguments[d];return Ze(i,n,o)}}function Tn(i){return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Je(i,r)}}function T(i,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ze;gt&>(i,null);let o=n.length;for(;o--;){let d=n[o];if(typeof d=="string"){const m=r(d);m!==d&&(dn(n)||(n[o]=m),d=m)}i[d]=!0}return i}function _n(i){for(let n=0;n<i.length;n++)Z(i,n)||(i[n]=null);return i}function le(i){const n=Et(null);for(const[r,o]of ht(i))Z(i,r)&&(Array.isArray(o)?n[r]=_n(o):o&&typeof o=="object"&&o.constructor===Object?n[r]=le(o):n[r]=o);return n}function be(i,n){for(;i!==null;){const o=hn(i,n);if(o){if(o.get)return $(o.get);if(typeof o.value=="function")return $(o.value)}i=mn(i)}function r(){return null}return r}const wt=F(["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"]),et=F(["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"]),tt=F(["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"]),wn=F(["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=F(["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"]),yn=F(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),yt=F(["#text"]),St=F(["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"]),ot=F(["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"]),At=F(["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"]),Be=F(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Sn=q(/\{\{[\w\W]*|[\w\W]*\}\}/gm),An=q(/<%[\w\W]*|[\w\W]*%>/gm),vn=q(/\$\{[\w\W]*}/gm),bn=q(/^data-[\-\w.\u00B7-\uFFFF]+$/),On=q(/^aria-[\-\w]+$/),vt=q(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Cn=q(/^(?:\w+script|data):/i),Ln=q(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),bt=q(/^html$/i),xn=q(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ot=Object.freeze({__proto__:null,ARIA_ATTR:On,ATTR_WHITESPACE:Ln,CUSTOM_ELEMENT:xn,DATA_ATTR:bn,DOCTYPE_NAME:bt,ERB_EXPR:An,IS_ALLOWED_URI:vt,IS_SCRIPT_OR_DATA:Cn,MUSTACHE_EXPR:Sn,TMPLIT_EXPR:vn});const Oe={element:1,text:3,progressingInstruction:7,comment:8,document:9},Rn=function(){return typeof window>"u"?null:window},kn=function(n,r){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let o=null;const d="data-tt-policy-suffix";r&&r.hasAttribute(d)&&(o=r.getAttribute(d));const m="dompurify"+(o?"#"+o:"");try{return n.createPolicy(m,{createHTML(S){return S},createScriptURL(S){return S}})}catch{return console.warn("TrustedTypes policy "+m+" could not be created."),null}},Ct=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Lt(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Rn();const n=f=>Lt(f);if(n.version="3.2.3",n.removed=[],!i||!i.document||i.document.nodeType!==Oe.document)return n.isSupported=!1,n;let{document:r}=i;const o=r,d=o.currentScript,{DocumentFragment:m,HTMLTemplateElement:S,Node:C,Element:E,NodeFilter:k,NamedNodeMap:_=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:b,DOMParser:O,trustedTypes:u}=i,y=E.prototype,p=be(y,"cloneNode"),v=be(y,"remove"),N=be(y,"nextSibling"),l=be(y,"childNodes"),A=be(y,"parentNode");if(typeof S=="function"){const f=r.createElement("template");f.content&&f.content.ownerDocument&&(r=f.content.ownerDocument)}let w,X="";const{implementation:ne,createNodeIterator:fe,createDocumentFragment:se,getElementsByTagName:oe}=r,{importNode:pe}=o;let I=Ct();n.isSupported=typeof ht=="function"&&typeof A=="function"&&ne&&ne.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:de,ERB_EXPR:me,TMPLIT_EXPR:he,DATA_ATTR:it,ARIA_ATTR:ge,IS_SCRIPT_OR_DATA:Ce,ATTR_WHITESPACE:Le,CUSTOM_ELEMENT:He}=Ot;let{IS_ALLOWED_URI:Fe}=Ot,D=null;const xe=T({},[...wt,...et,...tt,...nt,...yt]);let c=null;const h=T({},[...St,...ot,...At,...Be]);let g=Object.seal(Et(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),L=null,P=null,Y=!0,z=!0,x=!1,J=!0,G=!1,K=!0,B=!1,Ee=!1,ce=!1,Q=!1,We=!1,Ge=!1,kt=!0,Nt=!1;const Fn="user-content-";let rt=!0,Re=!1,Te={},_e=null;const Dt=T({},["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"]);let It=null;const Mt=T({},["audio","video","img","source","image","track"]);let at=null;const Pt=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ve="http://www.w3.org/1998/Math/MathML",je="http://www.w3.org/2000/svg",ie="http://www.w3.org/1999/xhtml";let we=ie,st=!1,lt=null;const Wn=T({},[Ve,je,ie],Qe);let $e=T({},["mi","mo","mn","ms","mtext"]),Ye=T({},["annotation-xml"]);const Gn=T({},["title","style","font","a","script"]);let ke=null;const Vn=["application/xhtml+xml","text/html"],jn="text/html";let M=null,ye=null;const $n=r.createElement("form"),Ut=function(e){return e instanceof RegExp||e instanceof Function},ct=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ye&&ye===e)){if((!e||typeof e!="object")&&(e={}),e=le(e),ke=Vn.indexOf(e.PARSER_MEDIA_TYPE)===-1?jn:e.PARSER_MEDIA_TYPE,M=ke==="application/xhtml+xml"?Qe:ze,D=Z(e,"ALLOWED_TAGS")?T({},e.ALLOWED_TAGS,M):xe,c=Z(e,"ALLOWED_ATTR")?T({},e.ALLOWED_ATTR,M):h,lt=Z(e,"ALLOWED_NAMESPACES")?T({},e.ALLOWED_NAMESPACES,Qe):Wn,at=Z(e,"ADD_URI_SAFE_ATTR")?T(le(Pt),e.ADD_URI_SAFE_ATTR,M):Pt,It=Z(e,"ADD_DATA_URI_TAGS")?T(le(Mt),e.ADD_DATA_URI_TAGS,M):Mt,_e=Z(e,"FORBID_CONTENTS")?T({},e.FORBID_CONTENTS,M):Dt,L=Z(e,"FORBID_TAGS")?T({},e.FORBID_TAGS,M):{},P=Z(e,"FORBID_ATTR")?T({},e.FORBID_ATTR,M):{},Te=Z(e,"USE_PROFILES")?e.USE_PROFILES:!1,Y=e.ALLOW_ARIA_ATTR!==!1,z=e.ALLOW_DATA_ATTR!==!1,x=e.ALLOW_UNKNOWN_PROTOCOLS||!1,J=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,G=e.SAFE_FOR_TEMPLATES||!1,K=e.SAFE_FOR_XML!==!1,B=e.WHOLE_DOCUMENT||!1,Q=e.RETURN_DOM||!1,We=e.RETURN_DOM_FRAGMENT||!1,Ge=e.RETURN_TRUSTED_TYPE||!1,ce=e.FORCE_BODY||!1,kt=e.SANITIZE_DOM!==!1,Nt=e.SANITIZE_NAMED_PROPS||!1,rt=e.KEEP_CONTENT!==!1,Re=e.IN_PLACE||!1,Fe=e.ALLOWED_URI_REGEXP||vt,we=e.NAMESPACE||ie,$e=e.MATHML_TEXT_INTEGRATION_POINTS||$e,Ye=e.HTML_INTEGRATION_POINTS||Ye,g=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ut(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(g.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ut(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(g.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(g.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),G&&(z=!1),We&&(Q=!0),Te&&(D=T({},yt),c=[],Te.html===!0&&(T(D,wt),T(c,St)),Te.svg===!0&&(T(D,et),T(c,ot),T(c,Be)),Te.svgFilters===!0&&(T(D,tt),T(c,ot),T(c,Be)),Te.mathMl===!0&&(T(D,nt),T(c,At),T(c,Be))),e.ADD_TAGS&&(D===xe&&(D=le(D)),T(D,e.ADD_TAGS,M)),e.ADD_ATTR&&(c===h&&(c=le(c)),T(c,e.ADD_ATTR,M)),e.ADD_URI_SAFE_ATTR&&T(at,e.ADD_URI_SAFE_ATTR,M),e.FORBID_CONTENTS&&(_e===Dt&&(_e=le(_e)),T(_e,e.FORBID_CONTENTS,M)),rt&&(D["#text"]=!0),B&&T(D,["html","head","body"]),D.table&&(T(D,["tbody"]),delete L.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw ve('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ve('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=e.TRUSTED_TYPES_POLICY,X=w.createHTML("")}else w===void 0&&(w=kn(u,d)),w!==null&&typeof X=="string"&&(X=w.createHTML(""));F&&F(e),ye=e}},zt=T({},[...et,...tt,...wn]),Bt=T({},[...nt,...yn]),Yn=function(e){let a=A(e);(!a||!a.tagName)&&(a={namespaceURI:we,tagName:"template"});const s=ze(e.tagName),R=ze(a.tagName);return lt[e.namespaceURI]?e.namespaceURI===je?a.namespaceURI===ie?s==="svg":a.namespaceURI===Ve?s==="svg"&&(R==="annotation-xml"||$e[R]):!!zt[s]:e.namespaceURI===Ve?a.namespaceURI===ie?s==="math":a.namespaceURI===je?s==="math"&&Ye[R]:!!Bt[s]:e.namespaceURI===ie?a.namespaceURI===je&&!Ye[R]||a.namespaceURI===Ve&&!$e[R]?!1:!Bt[s]&&(Gn[s]||!zt[s]):!!(ke==="application/xhtml+xml"&<[e.namespaceURI]):!1},ee=function(e){Se(n.removed,{element:e});try{A(e).removeChild(e)}catch{v(e)}},qe=function(e,a){try{Se(n.removed,{attribute:a.getAttributeNode(e),from:a})}catch{Se(n.removed,{attribute:null,from:a})}if(a.removeAttribute(e),e==="is")if(Q||We)try{ee(a)}catch{}else try{a.setAttribute(e,"")}catch{}},Ht=function(e){let a=null,s=null;if(ce)e="<remove></remove>"+e;else{const U=_t(e,/^[\r\n\t ]+/);s=U&&U[0]}ke==="application/xhtml+xml"&&we===ie&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const R=w?w.createHTML(e):e;if(we===ie)try{a=new O().parseFromString(R,ke)}catch{}if(!a||!a.documentElement){a=ne.createDocument(we,"template",null);try{a.documentElement.innerHTML=st?X:R}catch{}}const H=a.body||a.documentElement;return e&&s&&H.insertBefore(r.createTextNode(s),H.childNodes[0]||null),we===ie?oe.call(a,B?"html":"body")[0]:B?a.documentElement:H},Ft=function(e){return fe.call(e.ownerDocument||e,e,k.SHOW_ELEMENT|k.SHOW_COMMENT|k.SHOW_TEXT|k.SHOW_PROCESSING_INSTRUCTION|k.SHOW_CDATA_SECTION,null)},ut=function(e){return e instanceof b&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof _)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},Wt=function(e){return typeof C=="function"&&e instanceof C};function re(f,e,a){Ue(f,s=>{s.call(n,e,a,ye)})}const Gt=function(e){let a=null;if(re(I.beforeSanitizeElements,e,null),ut(e))return ee(e),!0;const s=M(e.nodeName);if(re(I.uponSanitizeElement,e,{tagName:s,allowedTags:D}),e.hasChildNodes()&&!Wt(e.firstElementChild)&&W(/<[/\w]/g,e.innerHTML)&&W(/<[/\w]/g,e.textContent)||e.nodeType===Oe.progressingInstruction||K&&e.nodeType===Oe.comment&&W(/<[/\w]/g,e.data))return ee(e),!0;if(!D[s]||L[s]){if(!L[s]&&jt(s)&&(g.tagNameCheck instanceof RegExp&&W(g.tagNameCheck,s)||g.tagNameCheck instanceof Function&&g.tagNameCheck(s)))return!1;if(rt&&!_e[s]){const R=A(e)||e.parentNode,H=l(e)||e.childNodes;if(H&&R){const U=H.length;for(let j=U-1;j>=0;--j){const te=p(H[j],!0);te.__removalCount=(e.__removalCount||0)+1,R.insertBefore(te,N(e))}}}return ee(e),!0}return e instanceof E&&!Yn(e)||(s==="noscript"||s==="noembed"||s==="noframes")&&W(/<\/no(script|embed|frames)/i,e.innerHTML)?(ee(e),!0):(G&&e.nodeType===Oe.text&&(a=e.textContent,Ue([de,me,he],R=>{a=Ae(a,R," ")}),e.textContent!==a&&(Se(n.removed,{element:e.cloneNode()}),e.textContent=a)),re(I.afterSanitizeElements,e,null),!1)},Vt=function(e,a,s){if(kt&&(a==="id"||a==="name")&&(s in r||s in $n))return!1;if(!(z&&!P[a]&&W(it,a))){if(!(Y&&W(ge,a))){if(!c[a]||P[a]){if(!(jt(e)&&(g.tagNameCheck instanceof RegExp&&W(g.tagNameCheck,e)||g.tagNameCheck instanceof Function&&g.tagNameCheck(e))&&(g.attributeNameCheck instanceof RegExp&&W(g.attributeNameCheck,a)||g.attributeNameCheck instanceof Function&&g.attributeNameCheck(a))||a==="is"&&g.allowCustomizedBuiltInElements&&(g.tagNameCheck instanceof RegExp&&W(g.tagNameCheck,s)||g.tagNameCheck instanceof Function&&g.tagNameCheck(s))))return!1}else if(!at[a]){if(!W(Fe,Ae(s,Le,""))){if(!((a==="src"||a==="xlink:href"||a==="href")&&e!=="script"&&gn(s,"data:")===0&&It[e])){if(!(x&&!W(Ce,Ae(s,Le,"")))){if(s)return!1}}}}}}return!0},jt=function(e){return e!=="annotation-xml"&&_t(e,He)},$t=function(e){re(I.beforeSanitizeAttributes,e,null);const{attributes:a}=e;if(!a||ut(e))return;const s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:c,forceKeepAttr:void 0};let R=a.length;for(;R--;){const H=a[R],{name:U,namespaceURI:j,value:te}=H,Ne=M(U);let V=U==="value"?te:En(te);if(s.attrName=Ne,s.attrValue=V,s.keepAttr=!0,s.forceKeepAttr=void 0,re(I.uponSanitizeAttribute,e,s),V=s.attrValue,Nt&&(Ne==="id"||Ne==="name")&&(qe(U,e),V=Fn+V),K&&W(/((--!?|])>)|<\/(style|title)/i,V)){qe(U,e);continue}if(s.forceKeepAttr||(qe(U,e),!s.keepAttr))continue;if(!J&&W(/\/>/i,V)){qe(U,e);continue}G&&Ue([de,me,he],qt=>{V=Ae(V,qt," ")});const Yt=M(e.nodeName);if(Vt(Yt,Ne,V)){if(w&&typeof u=="object"&&typeof u.getAttributeType=="function"&&!j)switch(u.getAttributeType(Yt,Ne)){case"TrustedHTML":{V=w.createHTML(V);break}case"TrustedScriptURL":{V=w.createScriptURL(V);break}}try{j?e.setAttributeNS(j,U,V):e.setAttribute(U,V),ut(e)?ee(e):Tt(n.removed)}catch{}}}re(I.afterSanitizeAttributes,e,null)},qn=function f(e){let a=null;const s=Ft(e);for(re(I.beforeSanitizeShadowDOM,e,null);a=s.nextNode();)re(I.uponSanitizeShadowNode,a,null),Gt(a),$t(a),a.content instanceof m&&f(a.content);re(I.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(f){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=null,s=null,R=null,H=null;if(st=!f,st&&(f="<!-->"),typeof f!="string"&&!Wt(f))if(typeof f.toString=="function"){if(f=f.toString(),typeof f!="string")throw ve("dirty is not a string, aborting")}else throw ve("toString is not a function");if(!n.isSupported)return f;if(Ee||ct(e),n.removed=[],typeof f=="string"&&(Re=!1),Re){if(f.nodeName){const te=M(f.nodeName);if(!D[te]||L[te])throw ve("root node is forbidden and cannot be sanitized in-place")}}else if(f instanceof C)a=Ht("<!---->"),s=a.ownerDocument.importNode(f,!0),s.nodeType===Oe.element&&s.nodeName==="BODY"||s.nodeName==="HTML"?a=s:a.appendChild(s);else{if(!Q&&!G&&!B&&f.indexOf("<")===-1)return w&&Ge?w.createHTML(f):f;if(a=Ht(f),!a)return Q?null:Ge?X:""}a&&ce&&ee(a.firstChild);const U=Ft(Re?f:a);for(;R=U.nextNode();)Gt(R),$t(R),R.content instanceof m&&qn(R.content);if(Re)return f;if(Q){if(We)for(H=se.call(a.ownerDocument);a.firstChild;)H.appendChild(a.firstChild);else H=a;return(c.shadowroot||c.shadowrootmode)&&(H=pe.call(o,H,!0)),H}let j=B?a.outerHTML:a.innerHTML;return B&&D["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&W(bt,a.ownerDocument.doctype.name)&&(j="<!DOCTYPE "+a.ownerDocument.doctype.name+`> | ||
`+j),G&&Ue([de,me,he],te=>{j=Ae(j,te," ")}),w&&Ge?w.createHTML(j):j},n.setConfig=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ct(f),Ee=!0},n.clearConfig=function(){ye=null,Ee=!1},n.isValidAttribute=function(f,e,a){ye||ct({});const s=M(f),R=M(e);return Vt(s,R,a)},n.addHook=function(f,e){typeof e=="function"&&Se(I[f],e)},n.removeHook=function(f){return Tt(I[f])},n.removeHooks=function(f){I[f]=[]},n.removeAllHooks=function(){I=Ct()},n}var xt=Lt();const Nn={key:0,class:"defaultTemplateContent flex w-[320px] flex-col gap-4 rounded-lg bg-white p-6 shadow-lg border border-gray-200 relative max-w-full","data-test":"defaultTemplateContent"},Dn={key:1,class:"stepTag text-xs font-medium text-gray-500 uppercase tracking-wider","data-test":"stepTag"},In=["innerHTML"],Mn=["innerHTML"],Pn={class:"navigationControls flex w-full items-center mt-4","data-test":"navigationControls"},Un={key:1,class:"stepIndicators flex flex-1 justify-center gap-2","data-test":"stepIndicators"},zn=["onClick","data-test"],Bn=["fill"],Rt=t.defineComponent({__name:"VueOnboardingTour",props:{tourId:{},defaultTemplate:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},startTour:{type:Boolean,default:!1},startEvent:{default:void 0},scrollableContainerSelector:{default:void 0},cookieStorage:{type:Boolean,default:!1},endDate:{default:void 0},labelTerminate:{default:"close"},steps:{}},emits:["startTour","endTour"],setup(i,{expose:n,emit:r}){const o=i,d=t.ref(!1),m=t.ref(0),S=t.ref({}),C=t.ref({}),E=t.ref("left"),k=t.ref(null);let _=null;const b=fn(),O=r;let u,y;const p=t.ref(null),v=t.ref(null),N=t.computed(()=>o.steps.filter(c=>!c.disable)),l=t.computed(()=>{var c;return((c=N.value)==null?void 0:c.length)>0?N.value[m.value]:void 0}),A=t.computed(()=>dt(p.value)),w=t.computed(()=>v.value&&dt(v.value)),X=t.computed(()=>A.value&&(A.value.top.value>=0&&A.value.top.value<=window.innerHeight||A.value.bottom.value>=0&&A.value.bottom.value<=window.innerHeight||A.value.bottom.value>=window.innerHeight&&A.value.top.value<=0)&&(A.value.left.value>=0&&A.value.left.value<=window.innerWidth||A.value.right.value>=0&&A.value.right.value<=window.innerWidth||A.value.right.value>=window.innerWidth&&A.value.left.value<=0)),ne=t.computed(()=>{switch(E.value){case"left":return"-right-2 top-3";case"right":return"-left-2 top-3";case"top":return"left-3 -bottom-2";case"bottom":return"left-3 -top-2";default:return"-right-2 top-3"}}),fe=t.computed(()=>{var c;return m.value<((c=N.value)==null?void 0:c.length)-1}),se=t.computed(()=>m.value>0),oe=t.computed(()=>d.value&&N.value&&N.value.length>0&&p.value),pe=(c,h,g)=>{let L;h+g.height>window.innerHeight?L=window.innerHeight-g.height:h<=0?L=0:L=h,S.value={top:`${L}px`,left:`${c}px`}},I=()=>{var g,L,P,Y;const c=((g=l.value)==null?void 0:g.target)&&((P=document.querySelector((L=l.value)==null?void 0:L.target))==null?void 0:P.getBoundingClientRect()),h=(Y=k.value)==null?void 0:Y.getBoundingClientRect();if(c&&h){const{top:z,left:x,bottom:J,right:G,width:K,height:B}=c;C.value={position:"fixed",width:`${K+24}px`,height:`${B+24}px`,top:`${z-12}px`,left:`${x-12}px`,boxShadow:"inset 0px 0px 10px 0px rgba(255, 255, 255, 1), 0px 0px 0px 9999px rgba(0, 0, 0, 0.5)",userEvent:"none",borderRadius:"10px",zIndex:9999},x-h.width-40>0?(pe(x-h.width-40,z,h),E.value="left"):G+h.width+40<window.innerWidth?(pe(G+40,z,h),E.value="right"):z-h.height-40>0?(S.value={top:`${z-h.height-40}px`,left:`${x}px`,width:x+h.width>=window.innerWidth-10?`${window.innerWidth-x-10}px`:"auto"},E.value="top"):(S.value={top:J+h.height+40<window.innerHeight?`${J+40}px`:`${window.innerHeight-h.height}px`,left:`${x}px`,width:x+h.width>=window.innerWidth-10?`${window.innerWidth-x-10}px`:"auto"},E.value="bottom")}else h&&(S.value={top:`${(window.innerHeight-h.height)/2}px`,left:`${(window.innerWidth-h.width)/2}px`,position:"fixed"},C.value={position:"fixed",boxShadow:"inset 0px 0px 10px 0px rgba(255, 255, 255, 1), 0px 0px 0px 9999px rgba(0, 0, 0, 0.5)",userEvent:"none",borderRadius:"10px",zIndex:9999})},de=()=>{var c;m.value<((c=N.value)==null?void 0:c.length)-1&&(m.value+=1)},me=()=>{m.value>0&&(m.value-=1)},he=c=>{var h;c>=0&&c<=((h=N.value)==null?void 0:h.length)&&(m.value=c)},it=()=>o.endDate?new Date<=o.endDate?!(o.cookieStorage&&b.get(`vue_onboarding_tour_${o.tourId}`)):!1:!(o.cookieStorage&&b.get(`vue_onboarding_tour_${o.tourId}`)),ge=()=>{it()&&(d.value=!0,O("startTour"))},Ce=()=>{if(o.cookieStorage){const c={expires:o.endDate?o.endDate:(()=>{const h=new Date;return h.setDate(h.getDate()+365),h})()};b.set(`vue_onboarding_tour_${o.tourId}`,!0,c)}d.value=!1,m.value=0,S.value={},C.value={},p.value=null,_&&(_.remove(),_=null),O("endTour")},Le=()=>{var c,h,g,L,P,Y,z,x,J,G;if((c=l.value)!=null&&c.target){const{top:K,left:B}=((g=document.querySelector((h=l.value)==null?void 0:h.target))==null?void 0:g.getBoundingClientRect())??{},Ee=(L=k.value)==null?void 0:L.getBoundingClientRect();if(K!==void 0&&B!==void 0&&Ee&&(K<0||K>window.innerHeight||B<0||B>window.innerWidth)){const ce=K<0||K>window.innerHeight?K-Ee.height-60:void 0,Q=B<0||B>window.innerWidth?B:void 0;v.value?v.value.scrollBy({left:Q&&((P=w.value)!=null&&P.left)?Q-((z=(Y=w.value)==null?void 0:Y.left)==null?void 0:z.value):void 0,top:ce&&((x=w.value)!=null&&x.left)?ce-((G=(J=w.value)==null?void 0:J.left)==null?void 0:G.value):void 0,behavior:"smooth"}):window.scrollBy({left:Q,top:ce,behavior:"smooth"})}}},He=()=>{var c,h,g;if(_&&(_.remove(),_=null),(c=l.value)!=null&&c.target)if(document.querySelector((h=l.value)==null?void 0:h.target))p.value=document.querySelector((g=l.value)==null?void 0:g.target);else{const L=document.body,P={childList:!0,subtree:!0};u=new MutationObserver(Y=>{var z,x;for(const J of Y)if(J.type==="childList"){const G=((z=l.value)==null?void 0:z.target)&&document.querySelector((x=l.value)==null?void 0:x.target);G&&(p.value=G,u.disconnect())}}),u.observe(L,P)}else _=document.createElement("div"),_.style.position="fixed",_.style.top="50%",_.style.left="50%",_.style.width="0px",_.style.height="0px",_.style.transform="translate(-50%, -50%)",document.body.appendChild(_),p.value=_},Fe=()=>{if(o.scrollableContainerSelector)if(document.querySelector(o.scrollableContainerSelector))v.value=document.querySelector(o.scrollableContainerSelector);else{const c=document.body,h={childList:!0,subtree:!0};y=new MutationObserver(g=>{for(const L of g)if(L.type==="childList"){const P=o.scrollableContainerSelector&&document.querySelector(o.scrollableContainerSelector);P&&(v.value=P,y.disconnect())}}),y.observe(c,h)}},D=()=>{oe.value&&(I(),Le())},xe=()=>{oe.value&&I()};return n({startTour:ge,endTour:Ce,goNextStep:de,goPreviousStep:me,setStep:he}),t.onMounted(()=>{t.nextTick(()=>I()),window.addEventListener("resize",D),window.addEventListener("scroll",xe),o.startEvent&&window.addEventListener(o.startEvent,ge),He(),Fe()}),t.onUnmounted(()=>{window.removeEventListener("resize",D),window.removeEventListener("scroll",xe),o.startEvent&&window.removeEventListener(o.startEvent,ge),u&&u.disconnect(),y&&y.disconnect()}),t.watch([A,w,d],()=>{d.value&&t.nextTick(()=>{I()})},{deep:!0}),t.watch([m,d],()=>{var c,h,g,L;d.value&&((c=l.value)!=null&&c.beforeScript&&((h=l.value)==null||h.beforeScript()),He(),(g=l.value)!=null&&g.afterScript&&((L=l.value)==null||L.afterScript()))}),t.watch(p,()=>{d.value&&t.nextTick(()=>{Le()})}),t.watch(()=>o.startTour,()=>{o.startTour&&ge()}),(c,h)=>{var g,L,P,Y;return oe.value?(t.openBlock(),t.createElementBlock("div",{key:0,"data-test":"onboardingTour",class:t.normalizeClass(["vueOnboardingTour",{"fixed z-[9999] h-full w-full":c.overlay}])},[c.overlay?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(C.value),"data-test":"overlay",class:"overlay"},null,4)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_key:"popup",ref:k,style:t.normalizeStyle(S.value),class:t.normalizeClass([[X.value?"opacity-100":"opacity-0"],"popupContainer z-[9999] fixed"]),"data-test":"popupContainer"},[t.renderSlot(c.$slots,"default",{currentStep:l.value,currentStepIndex:m.value}),c.defaultTemplate?(t.openBlock(),t.createElementBlock("div",Nn,[(g=l.value)!=null&&g.target?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["chevronPointer w-4 h-4 absolute bg-white rotate-45",ne.value]),"data-test":"chevronPointer"},null,2)):t.createCommentVNode("",!0),(L=l.value)!=null&&L.tag?(t.openBlock(),t.createElementBlock("div",Dn,t.toDisplayString(l.value.tag),1)):t.createCommentVNode("",!0),(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",class:"closeIcon absolute top-4 right-4 cursor-pointer w-5 h-5 fill-gray-500 hover:fill-gray-700 transition-colors",onClick:Ce,"data-test":"closeIcon"},h[0]||(h[0]=[t.createElementVNode("path",{d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"},null,-1)]))),(P=l.value)!=null&&P.title?(t.openBlock(),t.createElementBlock("div",{key:2,innerHTML:t.unref(xt).sanitize(l.value.title),class:"stepTitle text-lg font-semibold text-gray-900","data-test":"stepTitle"},null,8,In)):t.createCommentVNode("",!0),(Y=l.value)!=null&&Y.description?(t.openBlock(),t.createElementBlock("div",{key:3,innerHTML:t.unref(xt).sanitize(l.value.description),class:"stepDescription text-sm text-gray-600 leading-relaxed","data-test":"stepDescription"},null,8,Mn)):t.createCommentVNode("",!0),t.createElementVNode("div",Pn,[se.value?(t.openBlock(),t.createElementBlock("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",class:"previousStepIcon mr-auto cursor-pointer fill-gray-500 hover:fill-gray-700 transition-colors w-4 h-4",onClick:me,"data-test":"previousStepIcon"},h[1]||(h[1]=[t.createElementVNode("path",{d:"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"},null,-1)]))):t.createCommentVNode("",!0),N.value.length>1?(t.openBlock(),t.createElementBlock("div",Un,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(N.value.length,(z,x)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",key:`dot_step_${x}`,class:t.normalizeClass([`stepIndicator_${x}`,"cursor-pointer w-2 h-2"]),onClick:J=>he(x),"data-test":`stepIndicator_${x}`},[t.createElementVNode("path",{fill:x===m.value?"#3b82f6":"#d1d5db",d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512z"},null,8,Bn)],10,zn))),128))])):t.createCommentVNode("",!0),fe.value?(t.openBlock(),t.createElementBlock("svg",{key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",class:"nextStepIcon ml-auto cursor-pointer fill-gray-500 hover:fill-gray-700 transition-colors w-4 h-4",onClick:de,"data-test":"nextStepIcon"},h[2]||(h[2]=[t.createElementVNode("path",{d:"M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"},null,-1)]))):(t.openBlock(),t.createElementBlock("span",{key:3,class:"terminateTourButton ml-auto cursor-pointer text-blue-600 hover:text-blue-800 font-medium transition-colors",onClick:Ce,"data-test":"terminateTourButton"},t.toDisplayString(o.labelTerminate),1))])])):t.createCommentVNode("",!0)],6)],2)):t.createCommentVNode("",!0)}}});/*! | ||
* Your Library Name v1.0.0 | ||
@@ -11,0 +11,0 @@ * (c) [Year] [Your Name or Organization] |
{ | ||
"name": "vue-onboarding-tour", | ||
"version": "0.0.8", | ||
"version": "0.0.9-beta.1", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -283,2 +283,3 @@ # VueOnboardingTour | ||
- `afterScript` (Function, optional): A function to be executed after displaying the step. | ||
- `disable` (Boolean optional): Disable step to be part of the tour | ||
@@ -285,0 +286,0 @@ **Example Steps Array:** |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
123395
0.43%1508
0.13%457
0.22%1
Infinity%