UNPKG

@glance-networks/agent-plugin

Version:

Glance Networks Agent Plugin

1,874 lines (1,873 loc) 113 kB
var eo = Object.defineProperty; var oo = (e, o, r) => o in e ? eo(e, o, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[o] = r; var ee = (e, o, r) => oo(e, typeof o != "symbol" ? o + "" : o, r); var Ge = (e) => { throw TypeError(e); }, Te = (e, o, r) => o.has(e) || Ge("Cannot " + r), ro = (e, o, r) => (Te(e, o, "read from private field"), r ? r.call(e) : o.get(e)), to = (e, o, r) => o.has(e) ? Ge("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(e) : o.set(e, r), so = (e, o, r, t) => (Te(e, o, "write to private field"), o.set(e, r), r); const no = /* @__PURE__ */ new Set(["string", "number", "boolean"]), ao = (e) => { let o; return { // Create c() { o = document.createElement("slot"), e && o.setAttribute("name", e); }, // Mount m(r, t) { r.insertBefore(o, t || null); }, // Props changed p() { }, // Detach d(r) { r && o.parentNode && o.parentNode.removeChild(o); } }; }; function lo(e, { name: o, mode: r, styles: t }) { var s; if (!globalThis.customElements) { console.log( `Component ${o} not registered as there is no customElements in this environment. Perhaps this is an SSR compile, which is not supported for Leo components yet.` ); return; } if (customElements.get(o)) { console.log(`Attempted to register ${o} component multiple times.`); return; } const n = new e({ target: document.createElement("div") }), a = Object.keys(n.$$.props), l = a.reduce((h, g) => (h.set(g.toLowerCase(), g), h), /* @__PURE__ */ new Map()), d = Array.from(l.keys()), c = new Set( a.filter((h) => typeof n.$$.ctx[n.$$.props[h]] == "boolean") ); class b extends HTMLElement { constructor() { super(), to(this, s), this.listenerRemovers = /* @__PURE__ */ new Map(); const g = this.shadowRoot ?? this.attachShadow({ mode: r }); if (t) { const i = new CSSStyleSheet(); i.replaceSync((t == null ? void 0 : t.default) || t), g.adoptedStyleSheets && (g.adoptedStyleSheets = [i]); } g.replaceChildren(); let y = /* @__PURE__ */ new Set(); const m = () => { var i; const f = Array.from(this.children).map( (k) => k.getAttribute("slot") ); if (this.childNodes.length && f.push(void 0), this.component && // If the size is the same, and every one of our last slots // is present, then nothing has changed, and we don't need // to do anything here. y.size === f.length && f.every((k) => y.has(k))) return; y = new Set(f); const x = f.reduce( (k, U) => ({ ...k, // @ts-ignore [U ?? "default"]: [() => ao(U)] }), {} ), _ = Object.keys(((i = this.component) == null ? void 0 : i.$$.props) ?? {}).map((k) => [k, this[k]]).reduce((k, [U, p]) => ({ ...k, [U]: p }), {}); this.component && this.component.$destroy(), this.component = new e({ // Target this shadowDOM, so we get nicely encapsulated // styles target: g, props: { // Copy over existing props (there might be none, if // this is our first render). ..._, // Create WebComponent slots for each Svelte slot we // have content for. This has to be done at render or // Svelte won't support fallback content. $$slots: x, // Not sure what this is needed for but Svelte crashes // without it. I think this might be related to slot // props: // https://svelte.dev/tutorial/slot-props $$scope: { ctx: [] } } }); }; new MutationObserver(m).observe(this, { childList: !0, attributes: !1, attributeOldValue: !1, subtree: !1, characterData: !1, characterDataOldValue: !1 }), m(); for (const i of a) Object.defineProperty(this, i, { enumerable: !0, get() { const f = this.component.$$.props[i]; return this.component.$$.ctx[f]; }, set(f) { no.has(typeof f) && (c.has(i) ? f ? this.setAttribute(i, "") : this.removeAttribute(i) : this.setAttribute(i, f)), this.component.$set({ [i]: f }); } }); } get component() { return ro(this, s); } set component(g) { so(this, s, g); for (const [y, m] of this.listenerRemovers.entries()) for (const [i, f] of m.entries()) f(), this.addEventListener(y, i); } static get observedAttributes() { return d; } attributeChangedCallback(g, y, m) { const i = l.get(g); i && y !== m && (this[i] = c.has(i) ? m !== null : m); } addEventListener(g, y) { this.listenerRemovers.has(g) || this.listenerRemovers.set(g, /* @__PURE__ */ new Map()); const m = this.component.$on(g, y); this.listenerRemovers.get(g).set(y, m); } removeEventListener(g, y) { var m, i, f; (i = (m = this.listenerRemovers.get(g)) == null ? void 0 : m.get(y)) == null || i(), (f = this.listenerRemovers.get(g)) == null || f.delete(y); } } s = /* @__PURE__ */ new WeakMap(), customElements.define(o, b); } function ae() { } function V(e, o) { for (const r in o) e[r] = o[r]; return ( /** @type {T & S} */ e ); } function je(e) { return e(); } function Fe() { return /* @__PURE__ */ Object.create(null); } function D(e) { e.forEach(je); } function Pe(e) { return typeof e == "function"; } function Oe(e, o) { return e != e ? o == o : e !== o || e && typeof e == "object" || typeof e == "function"; } function co(e) { return Object.keys(e).length === 0; } function fe(e, o, r, t) { if (e) { const s = qe(e, o, r, t); return e[0](s); } } function qe(e, o, r, t) { return e[1] && t ? V(r.ctx.slice(), e[1](t(o))) : r.ctx; } function ge(e, o, r, t) { if (e[2] && t) { const s = e[2](t(r)); if (o.dirty === void 0) return s; if (typeof s == "object") { const n = [], a = Math.max(o.dirty.length, s.length); for (let l = 0; l < a; l += 1) n[l] = o.dirty[l] | s[l]; return n; } return o.dirty | s; } return o.dirty; } function ue(e, o, r, t, s, n) { if (s) { const a = qe(o, r, t, n); e.p(a, s); } } function be(e) { if (e.ctx.length > 32) { const o = [], r = e.ctx.length / 32; for (let t = 0; t < r; t++) o[t] = -1; return o; } return -1; } function ze(e) { const o = {}; for (const r in e) r[0] !== "$" && (o[r] = e[r]); return o; } function Ae(e, o) { const r = {}; o = new Set(o); for (const t in e) !o.has(t) && t[0] !== "$" && (r[t] = e[t]); return r; } function io(e) { const o = {}; for (const r in e) o[r] = !0; return o; } function We(e, o) { e.appendChild(o); } function G(e, o, r) { e.insertBefore(o, r || null); } function L(e) { e.parentNode && e.parentNode.removeChild(e); } function pe(e) { return document.createElement(e); } function me(e) { return document.createTextNode(e); } function De() { return me(" "); } function Ke() { return me(""); } function H(e, o, r) { r == null ? e.removeAttribute(o) : e.getAttribute(o) !== r && e.setAttribute(o, r); } const fo = ["width", "height"]; function go(e, o) { const r = Object.getOwnPropertyDescriptors(e.__proto__); for (const t in o) o[t] == null ? e.removeAttribute(t) : t === "style" ? e.style.cssText = o[t] : t === "__value" ? e.value = e[t] = o[t] : r[t] && r[t].set && fo.indexOf(t) === -1 ? e[t] = o[t] : H(e, t, o[t]); } function uo(e, o) { Object.keys(o).forEach((r) => { bo(e, r, o[r]); }); } function bo(e, o, r) { const t = o.toLowerCase(); t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : o in e ? e[o] = typeof e[o] == "boolean" && r === "" ? !0 : r : H(e, o, r); } function Se(e) { return /-/.test(e) ? uo : go; } function po(e) { return Array.from(e.childNodes); } function mo(e, o) { o = "" + o, e.data !== o && (e.data = /** @type {string} */ o); } let he; function q(e) { he = e; } const R = [], le = []; let B = []; const Ee = [], ho = /* @__PURE__ */ Promise.resolve(); let ce = !1; function yo() { ce || (ce = !0, ho.then(Qe)); } function de(e) { B.push(e); } const oe = /* @__PURE__ */ new Set(); let I = 0; function Qe() { if (I !== 0) return; const e = he; do { try { for (; I < R.length; ) { const o = R[I]; I++, q(o), wo(o.$$); } } catch (o) { throw R.length = 0, I = 0, o; } for (q(null), R.length = 0, I = 0; le.length; ) le.pop()(); for (let o = 0; o < B.length; o += 1) { const r = B[o]; oe.has(r) || (oe.add(r), r()); } B.length = 0; } while (R.length); for (; Ee.length; ) Ee.pop()(); ce = !1, oe.clear(), q(e); } function wo(e) { if (e.fragment !== null) { e.update(), D(e.before_update); const o = e.dirty; e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, o), e.after_update.forEach(de); } } function xo(e) { const o = [], r = []; B.forEach((t) => e.indexOf(t) === -1 ? o.push(t) : r.push(t)), r.forEach((t) => t()), B = o; } const Z = /* @__PURE__ */ new Set(); let M; function Ze() { M = { r: 0, c: [], p: M // parent group }; } function Ve() { M.r || D(M.c), M = M.p; } function C(e, o) { e && e.i && (Z.delete(e), e.i(o)); } function E(e, o, r, t) { if (e && e.o) { if (Z.has(e)) return; Z.add(e), M.c.push(() => { Z.delete(e), t && (r && e.d(1), t()); }), e.o(o); } else t && t(); } function vo(e, o) { const r = {}, t = {}, s = { $$scope: 1 }; let n = e.length; for (; n--; ) { const a = e[n], l = o[n]; if (l) { for (const d in a) d in l || (t[d] = 1); for (const d in l) s[d] || (r[d] = l[d], s[d] = 1); e[n] = l; } else for (const d in a) s[d] = 1; } for (const a in t) a in r || (r[a] = void 0); return r; } function ko(e, o, r) { const { fragment: t, after_update: s } = e.$$; t && t.m(o, r), de(() => { const n = e.$$.on_mount.map(je).filter(Pe); e.$$.on_destroy ? e.$$.on_destroy.push(...n) : D(n), e.$$.on_mount = []; }), s.forEach(de); } function _o(e, o) { const r = e.$$; r.fragment !== null && (xo(r.after_update), D(r.on_destroy), r.fragment && r.fragment.d(o), r.on_destroy = r.fragment = null, r.ctx = []); } function Uo(e, o) { e.$$.dirty[0] === -1 && (R.push(e), yo(), e.$$.dirty.fill(0)), e.$$.dirty[o / 31 | 0] |= 1 << o % 31; } function Co(e, o, r, t, s, n, a = null, l = [-1]) { const d = he; q(e); const c = e.$$ = { fragment: null, ctx: [], // state props: n, update: ae, not_equal: s, bound: Fe(), // lifecycle on_mount: [], on_destroy: [], on_disconnect: [], before_update: [], after_update: [], context: new Map(o.context || (d ? d.$$.context : [])), // everything else callbacks: Fe(), dirty: l, skip_bound: !1, root: o.target || d.$$.root }; a && a(c.root); let b = !1; if (c.ctx = r ? r(e, o.props || {}, (h, g, ...y) => { const m = y.length ? y[0] : g; return c.ctx && s(c.ctx[h], c.ctx[h] = m) && (!c.skip_bound && c.bound[h] && c.bound[h](m), b && Uo(e, h)), g; }) : [], c.update(), b = !0, D(c.before_update), c.fragment = t ? t(c.ctx) : !1, o.target) { if (o.hydrate) { const h = po(o.target); c.fragment && c.fragment.l(h), h.forEach(L); } else c.fragment && c.fragment.c(); o.intro && C(e.$$.fragment), ko(e, o.target, o.anchor), Qe(); } q(d); } class Fo { constructor() { /** * ### PRIVATE API * * Do not use, may change at any time * * @type {any} */ ee(this, "$$"); /** * ### PRIVATE API * * Do not use, may change at any time * * @type {any} */ ee(this, "$$set"); } /** @returns {void} */ $destroy() { _o(this, 1), this.$destroy = ae; } /** * @template {Extract<keyof Events, string>} K * @param {K} type * @param {((e: Events[K]) => void) | null | undefined} callback * @returns {() => void} */ $on(o, r) { if (!Pe(r)) return ae; const t = this.$$.callbacks[o] || (this.$$.callbacks[o] = []); return t.push(r), () => { const s = t.indexOf(r); s !== -1 && t.splice(s, 1); }; } /** * @param {Partial<Props>} props * @returns {void} */ $set(o) { this.$$set && !co(o) && (this.$$.skip_bound = !0, this.$$set(o), this.$$.skip_bound = !1); } } const zo = "4"; typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(zo); const ye = "-", Ao = (e) => { const o = Eo(e), { conflictingClassGroups: r, conflictingClassGroupModifiers: t } = e; return { getClassGroupId: (a) => { const l = a.split(ye); return l[0] === "" && l.length !== 1 && l.shift(), He(l, o) || So(a); }, getConflictingClassGroupIds: (a, l) => { const d = r[a] || []; return l && t[a] ? [...d, ...t[a]] : d; } }; }, He = (e, o) => { var a; if (e.length === 0) return o.classGroupId; const r = e[0], t = o.nextPart.get(r), s = t ? He(e.slice(1), t) : void 0; if (s) return s; if (o.validators.length === 0) return; const n = e.join(ye); return (a = o.validators.find(({ validator: l }) => l(n))) == null ? void 0 : a.classGroupId; }, Me = /^\[(.+)\]$/, So = (e) => { if (Me.test(e)) { const o = Me.exec(e)[1], r = o == null ? void 0 : o.substring(0, o.indexOf(":")); if (r) return "arbitrary.." + r; } }, Eo = (e) => { const { theme: o, prefix: r } = e, t = { nextPart: /* @__PURE__ */ new Map(), validators: [] }; return Lo(Object.entries(e.classGroups), r).forEach(([n, a]) => { ie(a, t, n, o); }), t; }, ie = (e, o, r, t) => { e.forEach((s) => { if (typeof s == "string") { const n = s === "" ? o : Le(o, s); n.classGroupId = r; return; } if (typeof s == "function") { if (Mo(s)) { ie(s(t), o, r, t); return; } o.validators.push({ validator: s, classGroupId: r }); return; } Object.entries(s).forEach(([n, a]) => { ie(a, Le(o, n), r, t); }); }); }, Le = (e, o) => { let r = e; return o.split(ye).forEach((t) => { r.nextPart.has(t) || r.nextPart.set(t, { nextPart: /* @__PURE__ */ new Map(), validators: [] }), r = r.nextPart.get(t); }), r; }, Mo = (e) => e.isThemeGetter, Lo = (e, o) => o ? e.map(([r, t]) => { const s = t.map((n) => typeof n == "string" ? o + n : typeof n == "object" ? Object.fromEntries(Object.entries(n).map(([a, l]) => [o + a, l])) : n); return [r, s]; }) : e, Io = (e) => { if (e < 1) return { get: () => { }, set: () => { } }; let o = 0, r = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(); const s = (n, a) => { r.set(n, a), o++, o > e && (o = 0, t = r, r = /* @__PURE__ */ new Map()); }; return { get(n) { let a = r.get(n); if (a !== void 0) return a; if ((a = t.get(n)) !== void 0) return s(n, a), a; }, set(n, a) { r.has(n) ? r.set(n, a) : s(n, a); } }; }, Xe = "!", Ro = (e) => { const { separator: o, experimentalParseClassName: r } = e, t = o.length === 1, s = o[0], n = o.length, a = (l) => { const d = []; let c = 0, b = 0, h; for (let f = 0; f < l.length; f++) { let x = l[f]; if (c === 0) { if (x === s && (t || l.slice(f, f + n) === o)) { d.push(l.slice(b, f)), b = f + n; continue; } if (x === "/") { h = f; continue; } } x === "[" ? c++ : x === "]" && c--; } const g = d.length === 0 ? l : l.substring(b), y = g.startsWith(Xe), m = y ? g.substring(1) : g, i = h && h > b ? h - b : void 0; return { modifiers: d, hasImportantModifier: y, baseClassName: m, maybePostfixModifierPosition: i }; }; return r ? (l) => r({ className: l, parseClassName: a }) : a; }, Bo = (e) => { if (e.length <= 1) return e; const o = []; let r = []; return e.forEach((t) => { t[0] === "[" ? (o.push(...r.sort(), t), r = []) : r.push(t); }), o.push(...r.sort()), o; }, No = (e) => ({ cache: Io(e.cacheSize), parseClassName: Ro(e), ...Ao(e) }), Go = /\s+/, To = (e, o) => { const { parseClassName: r, getClassGroupId: t, getConflictingClassGroupIds: s } = o, n = [], a = e.trim().split(Go); let l = ""; for (let d = a.length - 1; d >= 0; d -= 1) { const c = a[d], { modifiers: b, hasImportantModifier: h, baseClassName: g, maybePostfixModifierPosition: y } = r(c); let m = !!y, i = t(m ? g.substring(0, y) : g); if (!i) { if (!m) { l = c + (l.length > 0 ? " " + l : l); continue; } if (i = t(g), !i) { l = c + (l.length > 0 ? " " + l : l); continue; } m = !1; } const f = Bo(b).join(":"), x = h ? f + Xe : f, _ = x + i; if (n.includes(_)) continue; n.push(_); const k = s(i, m); for (let U = 0; U < k.length; ++U) { const p = k[U]; n.push(x + p); } l = c + (l.length > 0 ? " " + l : l); } return l; }; function jo() { let e = 0, o, r, t = ""; for (; e < arguments.length; ) (o = arguments[e++]) && (r = Je(o)) && (t && (t += " "), t += r); return t; } const Je = (e) => { if (typeof e == "string") return e; let o, r = ""; for (let t = 0; t < e.length; t++) e[t] && (o = Je(e[t])) && (r && (r += " "), r += o); return r; }; function Po(e, ...o) { let r, t, s, n = a; function a(d) { const c = o.reduce((b, h) => h(b), e()); return r = No(c), t = r.cache.get, s = r.cache.set, n = l, l(d); } function l(d) { const c = t(d); if (c) return c; const b = To(d, r); return s(d, b), b; } return function() { return n(jo.apply(null, arguments)); }; } const w = (e) => { const o = (r) => r[e] || []; return o.isThemeGetter = !0, o; }, Ye = /^\[(?:([a-z-]+):)?(.+)\]$/i, Oo = /^\d+\/\d+$/, qo = /* @__PURE__ */ new Set(["px", "full", "screen"]), Wo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Do = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ko = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Qo = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Zo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, z = (e) => N(e) || qo.has(e) || Oo.test(e), A = (e) => T(e, "length", or), N = (e) => !!e && !Number.isNaN(Number(e)), re = (e) => T(e, "number", N), P = (e) => !!e && Number.isInteger(Number(e)), Vo = (e) => e.endsWith("%") && N(e.slice(0, -1)), u = (e) => Ye.test(e), S = (e) => Wo.test(e), Ho = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Xo = (e) => T(e, Ho, $e), Jo = (e) => T(e, "position", $e), Yo = /* @__PURE__ */ new Set(["image", "url"]), $o = (e) => T(e, Yo, tr), er = (e) => T(e, "", rr), O = () => !0, T = (e, o, r) => { const t = Ye.exec(e); return t ? t[1] ? typeof o == "string" ? t[1] === o : o.has(t[1]) : r(t[2]) : !1; }, or = (e) => ( // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths. // For example, `hsl(0 0% 0%)` would be classified as a length without this check. // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough. Do.test(e) && !Ko.test(e) ), $e = () => !1, rr = (e) => Qo.test(e), tr = (e) => Zo.test(e), sr = () => { const e = w("colors"), o = w("spacing"), r = w("blur"), t = w("brightness"), s = w("borderColor"), n = w("borderRadius"), a = w("borderSpacing"), l = w("borderWidth"), d = w("contrast"), c = w("grayscale"), b = w("hueRotate"), h = w("invert"), g = w("gap"), y = w("gradientColorStops"), m = w("gradientColorStopPositions"), i = w("inset"), f = w("margin"), x = w("opacity"), _ = w("padding"), k = w("saturate"), U = w("scale"), p = w("sepia"), we = w("skew"), xe = w("space"), ve = w("translate"), X = () => ["auto", "contain", "none"], J = () => ["auto", "hidden", "clip", "visible", "scroll"], Y = () => ["auto", u, o], v = () => [u, o], ke = () => ["", z, A], K = () => ["auto", N, u], _e = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Q = () => ["solid", "dashed", "dotted", "double", "none"], Ue = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], $ = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], j = () => ["", "0", u], Ce = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], F = () => [N, u]; return { cacheSize: 500, separator: ":", theme: { colors: [O], spacing: [z, A], blur: ["none", "", S, u], brightness: F(), borderColor: [e], borderRadius: ["none", "", "full", S, u], borderSpacing: v(), borderWidth: ke(), contrast: F(), grayscale: j(), hueRotate: F(), invert: j(), gap: v(), gradientColorStops: [e], gradientColorStopPositions: [Vo, A], inset: Y(), margin: Y(), opacity: F(), padding: v(), saturate: F(), scale: F(), sepia: j(), skew: F(), space: v(), translate: v() }, classGroups: { // Layout /** * Aspect Ratio * @see https://tailwindcss.com/docs/aspect-ratio */ aspect: [{ aspect: ["auto", "square", "video", u] }], /** * Container * @see https://tailwindcss.com/docs/container */ container: ["container"], /** * Columns * @see https://tailwindcss.com/docs/columns */ columns: [{ columns: [S] }], /** * Break After * @see https://tailwindcss.com/docs/break-after */ "break-after": [{ "break-after": Ce() }], /** * Break Before * @see https://tailwindcss.com/docs/break-before */ "break-before": [{ "break-before": Ce() }], /** * Break Inside * @see https://tailwindcss.com/docs/break-inside */ "break-inside": [{ "break-inside": ["auto", "avoid", "avoid-page", "avoid-column"] }], /** * Box Decoration Break * @see https://tailwindcss.com/docs/box-decoration-break */ "box-decoration": [{ "box-decoration": ["slice", "clone"] }], /** * Box Sizing * @see https://tailwindcss.com/docs/box-sizing */ box: [{ box: ["border", "content"] }], /** * Display * @see https://tailwindcss.com/docs/display */ display: ["block", "inline-block", "inline", "flex", "inline-flex", "table", "inline-table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row-group", "table-row", "flow-root", "grid", "inline-grid", "contents", "list-item", "hidden"], /** * Floats * @see https://tailwindcss.com/docs/float */ float: [{ float: ["right", "left", "none", "start", "end"] }], /** * Clear * @see https://tailwindcss.com/docs/clear */ clear: [{ clear: ["left", "right", "both", "none", "start", "end"] }], /** * Isolation * @see https://tailwindcss.com/docs/isolation */ isolation: ["isolate", "isolation-auto"], /** * Object Fit * @see https://tailwindcss.com/docs/object-fit */ "object-fit": [{ object: ["contain", "cover", "fill", "none", "scale-down"] }], /** * Object Position * @see https://tailwindcss.com/docs/object-position */ "object-position": [{ object: [..._e(), u] }], /** * Overflow * @see https://tailwindcss.com/docs/overflow */ overflow: [{ overflow: J() }], /** * Overflow X * @see https://tailwindcss.com/docs/overflow */ "overflow-x": [{ "overflow-x": J() }], /** * Overflow Y * @see https://tailwindcss.com/docs/overflow */ "overflow-y": [{ "overflow-y": J() }], /** * Overscroll Behavior * @see https://tailwindcss.com/docs/overscroll-behavior */ overscroll: [{ overscroll: X() }], /** * Overscroll Behavior X * @see https://tailwindcss.com/docs/overscroll-behavior */ "overscroll-x": [{ "overscroll-x": X() }], /** * Overscroll Behavior Y * @see https://tailwindcss.com/docs/overscroll-behavior */ "overscroll-y": [{ "overscroll-y": X() }], /** * Position * @see https://tailwindcss.com/docs/position */ position: ["static", "fixed", "absolute", "relative", "sticky"], /** * Top / Right / Bottom / Left * @see https://tailwindcss.com/docs/top-right-bottom-left */ inset: [{ inset: [i] }], /** * Right / Left * @see https://tailwindcss.com/docs/top-right-bottom-left */ "inset-x": [{ "inset-x": [i] }], /** * Top / Bottom * @see https://tailwindcss.com/docs/top-right-bottom-left */ "inset-y": [{ "inset-y": [i] }], /** * Start * @see https://tailwindcss.com/docs/top-right-bottom-left */ start: [{ start: [i] }], /** * End * @see https://tailwindcss.com/docs/top-right-bottom-left */ end: [{ end: [i] }], /** * Top * @see https://tailwindcss.com/docs/top-right-bottom-left */ top: [{ top: [i] }], /** * Right * @see https://tailwindcss.com/docs/top-right-bottom-left */ right: [{ right: [i] }], /** * Bottom * @see https://tailwindcss.com/docs/top-right-bottom-left */ bottom: [{ bottom: [i] }], /** * Left * @see https://tailwindcss.com/docs/top-right-bottom-left */ left: [{ left: [i] }], /** * Visibility * @see https://tailwindcss.com/docs/visibility */ visibility: ["visible", "invisible", "collapse"], /** * Z-Index * @see https://tailwindcss.com/docs/z-index */ z: [{ z: ["auto", P, u] }], // Flexbox and Grid /** * Flex Basis * @see https://tailwindcss.com/docs/flex-basis */ basis: [{ basis: Y() }], /** * Flex Direction * @see https://tailwindcss.com/docs/flex-direction */ "flex-direction": [{ flex: ["row", "row-reverse", "col", "col-reverse"] }], /** * Flex Wrap * @see https://tailwindcss.com/docs/flex-wrap */ "flex-wrap": [{ flex: ["wrap", "wrap-reverse", "nowrap"] }], /** * Flex * @see https://tailwindcss.com/docs/flex */ flex: [{ flex: ["1", "auto", "initial", "none", u] }], /** * Flex Grow * @see https://tailwindcss.com/docs/flex-grow */ grow: [{ grow: j() }], /** * Flex Shrink * @see https://tailwindcss.com/docs/flex-shrink */ shrink: [{ shrink: j() }], /** * Order * @see https://tailwindcss.com/docs/order */ order: [{ order: ["first", "last", "none", P, u] }], /** * Grid Template Columns * @see https://tailwindcss.com/docs/grid-template-columns */ "grid-cols": [{ "grid-cols": [O] }], /** * Grid Column Start / End * @see https://tailwindcss.com/docs/grid-column */ "col-start-end": [{ col: ["auto", { span: ["full", P, u] }, u] }], /** * Grid Column Start * @see https://tailwindcss.com/docs/grid-column */ "col-start": [{ "col-start": K() }], /** * Grid Column End * @see https://tailwindcss.com/docs/grid-column */ "col-end": [{ "col-end": K() }], /** * Grid Template Rows * @see https://tailwindcss.com/docs/grid-template-rows */ "grid-rows": [{ "grid-rows": [O] }], /** * Grid Row Start / End * @see https://tailwindcss.com/docs/grid-row */ "row-start-end": [{ row: ["auto", { span: [P, u] }, u] }], /** * Grid Row Start * @see https://tailwindcss.com/docs/grid-row */ "row-start": [{ "row-start": K() }], /** * Grid Row End * @see https://tailwindcss.com/docs/grid-row */ "row-end": [{ "row-end": K() }], /** * Grid Auto Flow * @see https://tailwindcss.com/docs/grid-auto-flow */ "grid-flow": [{ "grid-flow": ["row", "col", "dense", "row-dense", "col-dense"] }], /** * Grid Auto Columns * @see https://tailwindcss.com/docs/grid-auto-columns */ "auto-cols": [{ "auto-cols": ["auto", "min", "max", "fr", u] }], /** * Grid Auto Rows * @see https://tailwindcss.com/docs/grid-auto-rows */ "auto-rows": [{ "auto-rows": ["auto", "min", "max", "fr", u] }], /** * Gap * @see https://tailwindcss.com/docs/gap */ gap: [{ gap: [g] }], /** * Gap X * @see https://tailwindcss.com/docs/gap */ "gap-x": [{ "gap-x": [g] }], /** * Gap Y * @see https://tailwindcss.com/docs/gap */ "gap-y": [{ "gap-y": [g] }], /** * Justify Content * @see https://tailwindcss.com/docs/justify-content */ "justify-content": [{ justify: ["normal", ...$()] }], /** * Justify Items * @see https://tailwindcss.com/docs/justify-items */ "justify-items": [{ "justify-items": ["start", "end", "center", "stretch"] }], /** * Justify Self * @see https://tailwindcss.com/docs/justify-self */ "justify-self": [{ "justify-self": ["auto", "start", "end", "center", "stretch"] }], /** * Align Content * @see https://tailwindcss.com/docs/align-content */ "align-content": [{ content: ["normal", ...$(), "baseline"] }], /** * Align Items * @see https://tailwindcss.com/docs/align-items */ "align-items": [{ items: ["start", "end", "center", "baseline", "stretch"] }], /** * Align Self * @see https://tailwindcss.com/docs/align-self */ "align-self": [{ self: ["auto", "start", "end", "center", "stretch", "baseline"] }], /** * Place Content * @see https://tailwindcss.com/docs/place-content */ "place-content": [{ "place-content": [...$(), "baseline"] }], /** * Place Items * @see https://tailwindcss.com/docs/place-items */ "place-items": [{ "place-items": ["start", "end", "center", "baseline", "stretch"] }], /** * Place Self * @see https://tailwindcss.com/docs/place-self */ "place-self": [{ "place-self": ["auto", "start", "end", "center", "stretch"] }], // Spacing /** * Padding * @see https://tailwindcss.com/docs/padding */ p: [{ p: [_] }], /** * Padding X * @see https://tailwindcss.com/docs/padding */ px: [{ px: [_] }], /** * Padding Y * @see https://tailwindcss.com/docs/padding */ py: [{ py: [_] }], /** * Padding Start * @see https://tailwindcss.com/docs/padding */ ps: [{ ps: [_] }], /** * Padding End * @see https://tailwindcss.com/docs/padding */ pe: [{ pe: [_] }], /** * Padding Top * @see https://tailwindcss.com/docs/padding */ pt: [{ pt: [_] }], /** * Padding Right * @see https://tailwindcss.com/docs/padding */ pr: [{ pr: [_] }], /** * Padding Bottom * @see https://tailwindcss.com/docs/padding */ pb: [{ pb: [_] }], /** * Padding Left * @see https://tailwindcss.com/docs/padding */ pl: [{ pl: [_] }], /** * Margin * @see https://tailwindcss.com/docs/margin */ m: [{ m: [f] }], /** * Margin X * @see https://tailwindcss.com/docs/margin */ mx: [{ mx: [f] }], /** * Margin Y * @see https://tailwindcss.com/docs/margin */ my: [{ my: [f] }], /** * Margin Start * @see https://tailwindcss.com/docs/margin */ ms: [{ ms: [f] }], /** * Margin End * @see https://tailwindcss.com/docs/margin */ me: [{ me: [f] }], /** * Margin Top * @see https://tailwindcss.com/docs/margin */ mt: [{ mt: [f] }], /** * Margin Right * @see https://tailwindcss.com/docs/margin */ mr: [{ mr: [f] }], /** * Margin Bottom * @see https://tailwindcss.com/docs/margin */ mb: [{ mb: [f] }], /** * Margin Left * @see https://tailwindcss.com/docs/margin */ ml: [{ ml: [f] }], /** * Space Between X * @see https://tailwindcss.com/docs/space */ "space-x": [{ "space-x": [xe] }], /** * Space Between X Reverse * @see https://tailwindcss.com/docs/space */ "space-x-reverse": ["space-x-reverse"], /** * Space Between Y * @see https://tailwindcss.com/docs/space */ "space-y": [{ "space-y": [xe] }], /** * Space Between Y Reverse * @see https://tailwindcss.com/docs/space */ "space-y-reverse": ["space-y-reverse"], // Sizing /** * Width * @see https://tailwindcss.com/docs/width */ w: [{ w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", u, o] }], /** * Min-Width * @see https://tailwindcss.com/docs/min-width */ "min-w": [{ "min-w": [u, o, "min", "max", "fit"] }], /** * Max-Width * @see https://tailwindcss.com/docs/max-width */ "max-w": [{ "max-w": [u, o, "none", "full", "min", "max", "fit", "prose", { screen: [S] }, S] }], /** * Height * @see https://tailwindcss.com/docs/height */ h: [{ h: [u, o, "auto", "min", "max", "fit", "svh", "lvh", "dvh"] }], /** * Min-Height * @see https://tailwindcss.com/docs/min-height */ "min-h": [{ "min-h": [u, o, "min", "max", "fit", "svh", "lvh", "dvh"] }], /** * Max-Height * @see https://tailwindcss.com/docs/max-height */ "max-h": [{ "max-h": [u, o, "min", "max", "fit", "svh", "lvh", "dvh"] }], /** * Size * @see https://tailwindcss.com/docs/size */ size: [{ size: [u, o, "auto", "min", "max", "fit"] }], // Typography /** * Font Size * @see https://tailwindcss.com/docs/font-size */ "font-size": [{ text: ["base", S, A] }], /** * Font Smoothing * @see https://tailwindcss.com/docs/font-smoothing */ "font-smoothing": ["antialiased", "subpixel-antialiased"], /** * Font Style * @see https://tailwindcss.com/docs/font-style */ "font-style": ["italic", "not-italic"], /** * Font Weight * @see https://tailwindcss.com/docs/font-weight */ "font-weight": [{ font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", re] }], /** * Font Family * @see https://tailwindcss.com/docs/font-family */ "font-family": [{ font: [O] }], /** * Font Variant Numeric * @see https://tailwindcss.com/docs/font-variant-numeric */ "fvn-normal": ["normal-nums"], /** * Font Variant Numeric * @see https://tailwindcss.com/docs/font-variant-numeric */ "fvn-ordinal": ["ordinal"], /** * Font Variant Numeric * @see https://tailwindcss.com/docs/font-variant-numeric */ "fvn-slashed-zero": ["slashed-zero"], /** * Font Variant Numeric * @see https://tailwindcss.com/docs/font-variant-numeric */ "fvn-figure": ["lining-nums", "oldstyle-nums"], /** * Font Variant Numeric * @see https://tailwindcss.com/docs/font-variant-numeric */ "fvn-spacing": ["proportional-nums", "tabular-nums"], /** * Font Variant Numeric * @see https://tailwindcss.com/docs/font-variant-numeric */ "fvn-fraction": ["diagonal-fractions", "stacked-fractions"], /** * Letter Spacing * @see https://tailwindcss.com/docs/letter-spacing */ tracking: [{ tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", u] }], /** * Line Clamp * @see https://tailwindcss.com/docs/line-clamp */ "line-clamp": [{ "line-clamp": ["none", N, re] }], /** * Line Height * @see https://tailwindcss.com/docs/line-height */ leading: [{ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", z, u] }], /** * List Style Image * @see https://tailwindcss.com/docs/list-style-image */ "list-image": [{ "list-image": ["none", u] }], /** * List Style Type * @see https://tailwindcss.com/docs/list-style-type */ "list-style-type": [{ list: ["none", "disc", "decimal", u] }], /** * List Style Position * @see https://tailwindcss.com/docs/list-style-position */ "list-style-position": [{ list: ["inside", "outside"] }], /** * Placeholder Color * @deprecated since Tailwind CSS v3.0.0 * @see https://tailwindcss.com/docs/placeholder-color */ "placeholder-color": [{ placeholder: [e] }], /** * Placeholder Opacity * @see https://tailwindcss.com/docs/placeholder-opacity */ "placeholder-opacity": [{ "placeholder-opacity": [x] }], /** * Text Alignment * @see https://tailwindcss.com/docs/text-align */ "text-alignment": [{ text: ["left", "center", "right", "justify", "start", "end"] }], /** * Text Color * @see https://tailwindcss.com/docs/text-color */ "text-color": [{ text: [e] }], /** * Text Opacity * @see https://tailwindcss.com/docs/text-opacity */ "text-opacity": [{ "text-opacity": [x] }], /** * Text Decoration * @see https://tailwindcss.com/docs/text-decoration */ "text-decoration": ["underline", "overline", "line-through", "no-underline"], /** * Text Decoration Style * @see https://tailwindcss.com/docs/text-decoration-style */ "text-decoration-style": [{ decoration: [...Q(), "wavy"] }], /** * Text Decoration Thickness * @see https://tailwindcss.com/docs/text-decoration-thickness */ "text-decoration-thickness": [{ decoration: ["auto", "from-font", z, A] }], /** * Text Underline Offset * @see https://tailwindcss.com/docs/text-underline-offset */ "underline-offset": [{ "underline-offset": ["auto", z, u] }], /** * Text Decoration Color * @see https://tailwindcss.com/docs/text-decoration-color */ "text-decoration-color": [{ decoration: [e] }], /** * Text Transform * @see https://tailwindcss.com/docs/text-transform */ "text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"], /** * Text Overflow * @see https://tailwindcss.com/docs/text-overflow */ "text-overflow": ["truncate", "text-ellipsis", "text-clip"], /** * Text Wrap * @see https://tailwindcss.com/docs/text-wrap */ "text-wrap": [{ text: ["wrap", "nowrap", "balance", "pretty"] }], /** * Text Indent * @see https://tailwindcss.com/docs/text-indent */ indent: [{ indent: v() }], /** * Vertical Alignment * @see https://tailwindcss.com/docs/vertical-align */ "vertical-align": [{ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", u] }], /** * Whitespace * @see https://tailwindcss.com/docs/whitespace */ whitespace: [{ whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"] }], /** * Word Break * @see https://tailwindcss.com/docs/word-break */ break: [{ break: ["normal", "words", "all", "keep"] }], /** * Hyphens * @see https://tailwindcss.com/docs/hyphens */ hyphens: [{ hyphens: ["none", "manual", "auto"] }], /** * Content * @see https://tailwindcss.com/docs/content */ content: [{ content: ["none", u] }], // Backgrounds /** * Background Attachment * @see https://tailwindcss.com/docs/background-attachment */ "bg-attachment": [{ bg: ["fixed", "local", "scroll"] }], /** * Background Clip * @see https://tailwindcss.com/docs/background-clip */ "bg-clip": [{ "bg-clip": ["border", "padding", "content", "text"] }], /** * Background Opacity * @deprecated since Tailwind CSS v3.0.0 * @see https://tailwindcss.com/docs/background-opacity */ "bg-opacity": [{ "bg-opacity": [x] }], /** * Background Origin * @see https://tailwindcss.com/docs/background-origin */ "bg-origin": [{ "bg-origin": ["border", "padding", "content"] }], /** * Background Position * @see https://tailwindcss.com/docs/background-position */ "bg-position": [{ bg: [..._e(), Jo] }], /** * Background Repeat * @see https://tailwindcss.com/docs/background-repeat */ "bg-repeat": [{ bg: ["no-repeat", { repeat: ["", "x", "y", "round", "space"] }] }], /** * Background Size * @see https://tailwindcss.com/docs/background-size */ "bg-size": [{ bg: ["auto", "cover", "contain", Xo] }], /** * Background Image * @see https://tailwindcss.com/docs/background-image */ "bg-image": [{ bg: ["none", { "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"] }, $o] }], /** * Background Color * @see https://tailwindcss.com/docs/background-color */ "bg-color": [{ bg: [e] }], /** * Gradient Color Stops From Position * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-from-pos": [{ from: [m] }], /** * Gradient Color Stops Via Position * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-via-pos": [{ via: [m] }], /** * Gradient Color Stops To Position * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-to-pos": [{ to: [m] }], /** * Gradient Color Stops From * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-from": [{ from: [y] }], /** * Gradient Color Stops Via * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-via": [{ via: [y] }], /** * Gradient Color Stops To * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-to": [{ to: [y] }], // Borders /** * Border Radius * @see https://tailwindcss.com/docs/border-radius */ rounded: [{ rounded: [n] }], /** * Border Radius Start * @see https://tailwindcss.com/docs/border-radius */ "rounded-s": [{ "rounded-s": [n] }], /** * Border Radius End * @see https://tailwindcss.com/docs/border-radius */ "rounded-e": [{ "rounded-e": [n] }], /** * Border Radius Top * @see https://tailwindcss.com/docs/border-radius */ "rounded-t": [{ "rounded-t": [n] }], /** * Border Radius Right * @see https://tailwindcss.com/docs/border-radius */ "rounded-r": [{ "rounded-r": [n] }], /** * Border Radius Bottom * @see https://tailwindcss.com/docs/border-radius */ "rounded-b": [{ "rounded-b": [n] }], /** * Border Radius Left * @see https://tailwindcss.com/docs/border-radius */ "rounded-l": [{ "rounded-l": [n] }], /** * Border Radius Start Start * @see https://tailwindcss.com/docs/border-radius */ "rounded-ss": [{ "rounded-ss": [n] }], /** * Border Radius Start End * @see https://tailwindcss.com/docs/border-radius */ "rounded-se": [{ "rounded-se": [n] }], /** * Border Radius End End * @see https://tailwindcss.com/docs/border-radius */ "rounded-ee": [{ "rounded-ee": [n] }], /** * Border Radius End Start * @see https://tailwindcss.com/docs/border-radius */ "rounded-es": [{ "rounded-es": [n] }], /** * Border Radius Top Left * @see https://tailwindcss.com/docs/border-radius */ "rounded-tl": [{ "rounded-tl": [n] }], /** * Border Radius Top Right * @see https://tailwindcss.com/docs/border-radius */ "rounded-tr": [{ "rounded-tr": [n] }], /** * Border Radius Bottom Right * @see https://tailwindcss.com/docs/border-radius */ "rounded-br": [{ "rounded-br": [n] }], /** * Border Radius Bottom Left * @see https://tailwindcss.com/docs/border-radius */ "rounded-bl": [{ "rounded-bl": [n] }], /** * Border Width * @see https://tailwindcss.com/docs/border-width */ "border-w": [{ border: [l] }], /** * Border Width X * @see https://tailwindcss.com/docs/border-width */ "border-w-x": [{ "border-x": [l] }], /** * Border Width Y * @see https://tailwindcss.com/docs/border-width */ "border-w-y": [{ "border-y": [l] }], /** * Border Width Start * @see https://tailwindcss.com/docs/border-width */ "border-w-s": [{ "border-s": [l] }], /** * Border Width End * @see https://tailwindcss.com/docs/border-width */ "border-w-e": [{ "border-e": [l] }], /** * Border Width Top * @see https://tailwindcss.com/docs/border-width */ "border-w-t": [{ "border-t": [l] }], /** * Border Width Right * @see https://tailwindcss.com/docs/border-width */ "border-w-r": [{ "border-r": [l] }], /** * Border Width Bottom * @see https://tailwindcss.com/docs/border-width */ "border-w-b": [{ "border-b": [l] }], /** * Border Width Left * @see https://tailwindcss.com/docs/border-width */ "border-w-l": [{ "border-l": [l] }], /** * Border Opacity