@unocss/runtime 0.22.1 → 0.22.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributify.global.js +5 -5
- package/core.global.js +2 -2
- package/dist/index.d.ts +5 -0
- package/dist/index.js +46 -1
- package/dist/index.mjs +46 -1
- package/mini.global.js +3 -3
- package/package.json +4 -4
- package/uno.global.js +5 -5
package/core.global.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{var
|
|
2
|
-
`,l=new Set(["default"]),
|
|
1
|
+
(()=>{var ht=Object.defineProperty,gt=Object.defineProperties;var mt=Object.getOwnPropertyDescriptors;var q=Object.getOwnPropertySymbols;var yt=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable;var N=(e,t,r)=>t in e?ht(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,j=(e,t)=>{for(var r in t||(t={}))yt.call(t,r)&&N(e,r,t[r]);if(q)for(var r of q(t))St.call(t,r)&&N(e,r,t[r]);return e},Z=(e,t)=>gt(e,mt(t));function xt(e){let t=e.length,r=-1,n,i="",s=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){i+="\uFFFD";continue}if(n===44){i+="\\2c ";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&s===45){i+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){i+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){i+=e.charAt(r);continue}i+=`\\${e.charAt(r)}`}return i}var P=xt;function A(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function J(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>A(t)):[e]:[A(e)]}function Ct(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let i=n-1;i>=0;i--)if(e[i][0]===t&&e[i][1]===r)return!1;return!0})}function v(e){return e==null?"":Ct(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function K(e){return e&&typeof e=="object"&&!Array.isArray(e)}function L(e,t){let r=e,n=t;if(Array.isArray(r)&&Array.isArray(n))return[...r,...n];if(Array.isArray(r))return[...r];let i=j({},r);return K(r)&&K(n)&&Object.keys(n).forEach(s=>{K(n[s])?s in r?i[s]=L(r[s],n[s]):Object.assign(i,{[s]:n[s]}):Object.assign(i,{[s]:n[s]})}),i}function O(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?O(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:O(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?O(n):n;return r}return e}function Q(e){return typeof e[0]=="string"}function X(e){return typeof e[0]=="string"}function _(e=[]){return Array.isArray(e)?e:[e]}function D(e){return Array.from(new Set(e))}var bt=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,z="$$shortcut-no-merge";function Y(e=""){return bt.test(e)}function tt(e){return typeof e=="function"?{match:e}:e}function F(e){return e.length===3}function et(e){return e!=null}var B=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.has(r)||i.set(r,n),i.get(r)}set(t,r,n){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.set(r,n),this}has(t,r){var n;return(n=this._map.get(t))==null?void 0:n.has(r)}delete(t,r){var n;return((n=this._map.get(t))==null?void 0:n.delete(r))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([i,s])=>t(s,r,i)))}};var Rt=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function rt(e){let t=[],r;for(;r=Rt.exec(e);){let i=r.index,s=i+r[0].length,[,o,a,u]=r,l=u.split(/\s/g).map(y=>y.replace(/^(!?)(.*)/,`$1${o}${a}$2`)).join(" ");t.unshift([i,s,l])}let n=e;return t.forEach(([i,s,o])=>{n=n.slice(0,i)+o+n.slice(s)}),n}var nt=new Set;function it(e){nt.has(e)||(console.warn("[unocss]",e),nt.add(e))}var Ut=e=>e.split(/[\s'"`;>=]+/g).filter(Y),G={name:"split",order:0,extract({code:e}){return new Set(Ut(e))}};function $t(e){return _(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var wt={shortcuts:-1,default:0};function H(e={},t={}){let r=Object.assign({},t,e),n=(r.presets||[]).flatMap(_),i=[...n.filter(f=>f.enforce==="pre"),...n.filter(f=>!f.enforce),...n.filter(f=>f.enforce==="post")],s=Object.assign(wt,...n.map(f=>f.layers),e.layers);function o(f){return D([...i.flatMap(x=>_(x[f]||[])),..._(r[f]||[])])}let a=o("extractors");a.length||a.push(G),a.sort((f,x)=>(f.order||0)-(x.order||0));let u=o("rules"),l={},y=u.length;u.forEach((f,x)=>{Q(f)&&(l[f[0]]=[x,f[1],f[2]],delete u[x])});let C=O([...i.map(f=>f.theme||{}),r.theme||{}].reduce((f,x)=>L(f,x),{}));return o("extendTheme").forEach(f=>f(C)),Z(j({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:f=>f},r),{presets:i,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:s,theme:C,rulesSize:y,rulesDynamic:u,rulesStaticMap:l,preprocess:o("preprocess"),postprocess:o("postprocess"),preflights:o("preflights"),variants:o("variants").map(tt),shortcuts:$t(o("shortcuts")),extractors:a})}var st="0.22.2";var ot=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=H(t,r)}version=st;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.config=H(t,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(t,r,n=new Set){let i={get original(){return t},code:t,id:r};for(let s of this.config.extractors){let o=await s.extract(i);o==null||o.forEach(a=>n.add(a))}return n}async generate(t,{id:r,scope:n,preflights:i=!0,safelist:s=!0,minify:o=!1}={}){let a=typeof t=="string"?await this.applyExtractors(t,r):t;s&&this.config.safelist.forEach(c=>a.add(c));let u=o?"":`
|
|
2
|
+
`,l=new Set(["default"]),y=new Set,C=new Map,f=(c,d)=>{var h;this._cache.set(c,d),y.add(c);for(let g of d){let U=g[3]||"";C.has(U)||C.set(U,[]),C.get(U).push(g),((h=g[4])==null?void 0:h.layer)&&l.add(g[4].layer)}},x=c=>{this.blocked.add(c),this._cache.set(c,null)};await Promise.all(Array.from(a).map(async c=>{var E;if(y.has(c)||this.blocked.has(c))return;if(this._cache.has(c)){let S=this._cache.get(c);S&&f(c,S);return}let d=c;for(let S of this.config.preprocess)d=S(c);if(this.isBlocked(d))return x(d);let h=this.matchVariants(c,d);if(!h||this.isBlocked(h[1]))return x(c);let g={rawSelector:c,currentSelector:h[1],theme:this.config.theme,generator:this,variantHandlers:h[2],constructCSS:(...S)=>this.constructCustomCSS(g,...S)},U=this.expandShortcut(h[1],g);if(U){let S=await this.stringifyShortcuts(h,g,U[0],U[1]);if(S==null?void 0:S.length)return f(c,S)}else{let S=(E=await this.parseUtil(h,g))==null?void 0:E.map(m=>this.stringifyUtil(m)).filter(et);if(S==null?void 0:S.length)return f(c,S)}this._cache.set(c,null)})),i&&this.config.preflights.forEach(c=>{c.layer&&l.add(c.layer)});let w={},b=this.config.sortLayers(Array.from(l).sort((c,d)=>{var h,g;return((h=this.config.layers[c])!=null?h:0)-((g=this.config.layers[d])!=null?g:0)||c.localeCompare(d)})),R={};i&&(R=Object.fromEntries(await Promise.all(b.map(async c=>{let h=(await Promise.all(this.config.preflights.filter(g=>(g.layer||"default")===c).map(async g=>await g.getCSS()))).filter(Boolean).join(u);return[c,h]}))));let p=c=>{if(w[c])return w[c];let d=Array.from(C).sort((h,g)=>{var U,E,S;return((U=this.parentOrders.get(h[0]))!=null?U:0)-((E=this.parentOrders.get(g[0]))!=null?E:0)||((S=h[0])==null?void 0:S.localeCompare(g[0]||""))||0}).map(([h,g])=>{let U=g.length,E=g.filter(m=>{var $;return((($=m[4])==null?void 0:$.layer)||"default")===c}).sort((m,$)=>{var V;return m[0]-$[0]||((V=m[1])==null?void 0:V.localeCompare($[1]||""))||0}).map(m=>{var $;return[m[1]?At(m[1],n):m[1],m[2],!!(($=m[4])==null?void 0:$.noMerge)]}).map(m=>[m[0]==null?m[0]:[m[0]],m[1],m[2]]);if(!E.length)return;let S=E.reverse().map(([m,$,V],dt)=>{if(m&&this.config.mergeSelectors)for(let k=dt+1;k<U;k++){let M=E[k];if(!V&&M&&M[0]&&M[1]===$)return M[0].push(...m),null}return m?`${[...new Set(m)].join(`,${u}`)}{${$}}`:$}).filter(Boolean).reverse().join(u);return h?`${h}{${u}${S}${u}}`:S}).filter(Boolean).join(u);return i&&(d=[R[c],d].filter(Boolean).join(u)),w[c]=!o&&d?`/* layer: ${c} */${u}${d}`:d},T=(c=b,d)=>c.filter(h=>!(d==null?void 0:d.includes(h))).map(h=>p(h)||"").filter(Boolean).join(u);return{get css(){return T()},layers:b,getLayers:T,getLayer:p,matched:y}}matchVariants(t,r){let n=new Set,i=[],s=r||t,o=!1,a={rawSelector:t,theme:this.config.theme,generator:this};for(;;){o=!1;for(let u of this.config.variants){if(!u.multiPass&&n.has(u))continue;let l=u.match(s,a);if(!!l&&(typeof l=="string"&&(l={matcher:l}),l)){s=l.matcher,Array.isArray(l.parent)&&this.parentOrders.set(l.parent[0],l.parent[1]),i.push(l),n.add(u),o=!0;break}}if(!o)break;if(i.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,s,i]}applyVariants(t,r=t[4],n=t[1]){let i=[...r].sort((a,u)=>(a.order||0)-(u.order||0)),s=i.reduce((a,u)=>{var l;return((l=u.body)==null?void 0:l.call(u,a))||a},t[2]),o={selector:i.reduce((a,u)=>{var l;return((l=u.selector)==null?void 0:l.call(u,a,s))||a},Ot(n)),entries:s,parent:i.reduce((a,u)=>Array.isArray(u.parent)?u.parent[0]:u.parent||a,void 0)};for(let a of this.config.postprocess)a(o);return o}constructCustomCSS(t,r,n){r=A(r);let{selector:i,entries:s,parent:o}=this.applyVariants([0,n||t.rawSelector,r,void 0,t.variantHandlers]),a=`${i}{${v(s)}}`;return o?`${o}{${a}}`:a}async parseUtil(t,r,n=!1){var y,C;let[i,s,o]=typeof t=="string"?this.matchVariants(t):t,a=this.config.rulesStaticMap[s];if(a&&a[1]&&(n||!((y=a[2])==null?void 0:y.internal)))return[[a[0],i,A(a[1]),a[2],o]];r.variantHandlers=o;let{rulesDynamic:u,rulesSize:l}=this.config;for(let f=l;f>=0;f--){let x=u[f];if(!x||((C=x[2])==null?void 0:C.internal)&&!n)continue;let[w,b,R]=x,p=s.match(w);if(!p)continue;let T=await b(p,r);if(!T)continue;if(typeof T=="string")return[[f,T,R]];let c=J(T).filter(d=>d.length);if(c.length)return c.map(d=>[f,i,d,R,o])}}stringifyUtil(t){if(!t)return;if(F(t))return[t[0],void 0,t[1],void 0,t[2]];let{selector:r,entries:n,parent:i}=this.applyVariants(t),s=v(n);if(!!s)return[t[0],r,s,i,t[3]]}expandShortcut(t,r,n=3){if(n===0)return;let i,s;for(let o of this.config.shortcuts)if(X(o)){if(o[0]===t){i=i||o[2],s=o[1];break}}else{let a=t.match(o[0]);if(a&&(s=o[1](a,r)),s){i=i||o[2];break}}if(typeof s=="string"&&(s=rt(s).split(/\s+/g)),!!s)return[s.flatMap(o=>{var a;return((a=this.expandShortcut(o,r,n-1))==null?void 0:a[0])||[o]}).filter(o=>o!==""),i]}async stringifyShortcuts(t,r,n,i={layer:this.config.shortcutsLayer}){let s=new B,o=(await Promise.all(D(n).map(async l=>{let y=await this.parseUtil(l,r,!0);return y||it(`unmatched utility "${l}" in shortcut "${t[1]}"`),y||[]}))).flat(1).filter(Boolean).sort((l,y)=>l[0]-y[0]),[a,,u]=t;for(let l of o){if(F(l))continue;let{selector:y,entries:C,parent:f}=this.applyVariants(l,[...l[4],...u],a);s.getFallback(y,f,[[],l[0]])[0].push(C)}return s.map(([l,y],C,f)=>{let x=l.filter(b=>b.some(R=>R[0]===z)),w=l.filter(b=>b.every(R=>R[0]!==z));return[...x,w.flat(1)].map(b=>{let R=v(b);if(R)return[y,C,R,f,i]})}).flat(1).filter(Boolean)}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function at(e,t){return new ot(e,t)}var ct=/ \$\$ /,Et=e=>e.match(ct);function At(e,t){return Et(e)?e.replace(ct,t?` ${t} `:" "):t?`${t} ${e}`:e}var lt=/^\[(.+?)(~?=)"(.*)"\]$/;function Ot(e){return e.startsWith("[")&<.test(e)?e.replace(lt,(t,r,n,i)=>`[${P(r)}${n}"${P(i)}"]`):`.${P(e)}`}function W(e){return e.charAt(0).toUpperCase()+e.slice(1)}var _t=e=>e.replace(/-(\w)/g,(t,r)=>r?r.toUpperCase():""),ut=e=>e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase(),ft=["Webkit","Moz","ms"];function pt(e){let t={};function r(n){let i=t[n];if(i)return i;let s=_t(n);if(s!=="filter"&&s in e)return t[n]=ut(s);s=W(s);for(let o=0;o<ft.length;o++){let a=`${ft[o]}${s}`;if(a in e)return t[n]=ut(W(a))}return n}return({entries:n})=>n.forEach(i=>{i[0].startsWith("--")||(i[0]=r(i[0]))})}function I(e={}){var R;if(typeof window=="undefined"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let t=e.defaults||{};if(e.autoPrefix){let p=t.postprocess;p||(p=[]),Array.isArray(p)||(p=[p]),p.unshift(pt(document.createElement("div").style)),t.postprocess=p}Object.assign(e,(R=window.__unocss)==null?void 0:R.runtime);let r,n=!1,i,s=at(window.__unocss||{},t),o=new Set,a;function u(){a!=null&&clearTimeout(a),a=setTimeout(l,0)}async function l(){let p=await s.generate(o);r||(r=document.createElement("style"),document.documentElement.prepend(r)),r.innerHTML=p.css}async function y(p){await s.applyExtractors(p,void 0,o),u()}async function C(){let p=document.body&&document.body.outerHTML;p&&await y(p)}let f=new MutationObserver(p=>{n||p.forEach(T=>{let c=T.target;if(c===r||i&&!i(c))return;let d=Array.from(c.attributes).map(g=>g.value?`${g.name}="${g.value}"`:g.name).join(" "),h=`<${c.tagName.toLowerCase()} ${d}>`;y(h)})}),x=!1;function w(){if(!x)return;let p=document.documentElement||document.body;!p||(f.observe(p,{childList:!0,subtree:!0,attributes:!0}),x=!0)}function b(){C(),w()}window.__unocss_runtime=window.__unocss_runtime={version:s.version,uno:s,extractAll:C,inspect(p){i=p},toggleObserver(p){p===void 0?n=!n:n=!!p}},b(),window.addEventListener("load",b),window.addEventListener("DOMContentLoaded",b)}I();})();
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,11 @@ interface RuntimeOptions {
|
|
|
5
5
|
* Default config of UnoCSS
|
|
6
6
|
*/
|
|
7
7
|
defaults?: UserConfigDefaults;
|
|
8
|
+
/**
|
|
9
|
+
* Enable css property auto prefixer
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
autoPrefix?: boolean;
|
|
8
13
|
}
|
|
9
14
|
declare type RuntimeInspectorCallback = (element: Element) => boolean;
|
|
10
15
|
declare global {
|
package/dist/index.js
CHANGED
|
@@ -31,18 +31,63 @@ var src_exports = {};
|
|
|
31
31
|
__export(src_exports, {
|
|
32
32
|
default: () => init
|
|
33
33
|
});
|
|
34
|
+
var import_core2 = __toESM(require("@unocss/core"));
|
|
35
|
+
|
|
36
|
+
// ../preset-mini/src/utils/utilities.ts
|
|
34
37
|
var import_core = __toESM(require("@unocss/core"));
|
|
38
|
+
function capitalize(str) {
|
|
39
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// src/utils.ts
|
|
43
|
+
var camelize = (str) => str.replace(/-(\w)/g, (_, c) => c ? c.toUpperCase() : "");
|
|
44
|
+
var hyphenate = (str) => str.replace(/(?:^|\B)([A-Z])/g, "-$1").toLowerCase();
|
|
45
|
+
var prefixes = ["Webkit", "Moz", "ms"];
|
|
46
|
+
function autoPrefixer(style) {
|
|
47
|
+
const prefixCache = {};
|
|
48
|
+
function autoPrefix(rawName) {
|
|
49
|
+
const cached = prefixCache[rawName];
|
|
50
|
+
if (cached)
|
|
51
|
+
return cached;
|
|
52
|
+
let name = camelize(rawName);
|
|
53
|
+
if (name !== "filter" && name in style)
|
|
54
|
+
return prefixCache[rawName] = hyphenate(name);
|
|
55
|
+
name = capitalize(name);
|
|
56
|
+
for (let i = 0; i < prefixes.length; i++) {
|
|
57
|
+
const prefixed = `${prefixes[i]}${name}`;
|
|
58
|
+
if (prefixed in style)
|
|
59
|
+
return prefixCache[rawName] = hyphenate(capitalize(prefixed));
|
|
60
|
+
}
|
|
61
|
+
return rawName;
|
|
62
|
+
}
|
|
63
|
+
return ({ entries }) => entries.forEach((e) => {
|
|
64
|
+
if (!e[0].startsWith("--"))
|
|
65
|
+
e[0] = autoPrefix(e[0]);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// src/index.ts
|
|
35
70
|
function init(options = {}) {
|
|
36
71
|
var _a;
|
|
37
72
|
if (typeof window == "undefined") {
|
|
38
73
|
console.warn("@unocss/runtime been used in non-browser environment, skipped.");
|
|
39
74
|
return;
|
|
40
75
|
}
|
|
76
|
+
const defaultOptions = options.defaults || {};
|
|
77
|
+
if (options.autoPrefix) {
|
|
78
|
+
let postprocess = defaultOptions.postprocess;
|
|
79
|
+
if (!postprocess)
|
|
80
|
+
postprocess = [];
|
|
81
|
+
if (!Array.isArray(postprocess))
|
|
82
|
+
postprocess = [postprocess];
|
|
83
|
+
postprocess.unshift(autoPrefixer(document.createElement("div").style));
|
|
84
|
+
defaultOptions.postprocess = postprocess;
|
|
85
|
+
}
|
|
41
86
|
Object.assign(options, (_a = window.__unocss) == null ? void 0 : _a.runtime);
|
|
42
87
|
let styleElement;
|
|
43
88
|
let paused = false;
|
|
44
89
|
let inspector;
|
|
45
|
-
const uno = (0,
|
|
90
|
+
const uno = (0, import_core2.createGenerator)(window.__unocss || {}, defaultOptions);
|
|
46
91
|
const tokens = /* @__PURE__ */ new Set();
|
|
47
92
|
let _timer;
|
|
48
93
|
function scheduleUpdate() {
|
package/dist/index.mjs
CHANGED
|
@@ -1,16 +1,61 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
2
|
import { createGenerator } from "@unocss/core";
|
|
3
|
+
|
|
4
|
+
// ../preset-mini/src/utils/utilities.ts
|
|
5
|
+
import { hex2rgba } from "@unocss/core";
|
|
6
|
+
function capitalize(str) {
|
|
7
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// src/utils.ts
|
|
11
|
+
var camelize = (str) => str.replace(/-(\w)/g, (_, c) => c ? c.toUpperCase() : "");
|
|
12
|
+
var hyphenate = (str) => str.replace(/(?:^|\B)([A-Z])/g, "-$1").toLowerCase();
|
|
13
|
+
var prefixes = ["Webkit", "Moz", "ms"];
|
|
14
|
+
function autoPrefixer(style) {
|
|
15
|
+
const prefixCache = {};
|
|
16
|
+
function autoPrefix(rawName) {
|
|
17
|
+
const cached = prefixCache[rawName];
|
|
18
|
+
if (cached)
|
|
19
|
+
return cached;
|
|
20
|
+
let name = camelize(rawName);
|
|
21
|
+
if (name !== "filter" && name in style)
|
|
22
|
+
return prefixCache[rawName] = hyphenate(name);
|
|
23
|
+
name = capitalize(name);
|
|
24
|
+
for (let i = 0; i < prefixes.length; i++) {
|
|
25
|
+
const prefixed = `${prefixes[i]}${name}`;
|
|
26
|
+
if (prefixed in style)
|
|
27
|
+
return prefixCache[rawName] = hyphenate(capitalize(prefixed));
|
|
28
|
+
}
|
|
29
|
+
return rawName;
|
|
30
|
+
}
|
|
31
|
+
return ({ entries }) => entries.forEach((e) => {
|
|
32
|
+
if (!e[0].startsWith("--"))
|
|
33
|
+
e[0] = autoPrefix(e[0]);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// src/index.ts
|
|
3
38
|
function init(options = {}) {
|
|
4
39
|
var _a;
|
|
5
40
|
if (typeof window == "undefined") {
|
|
6
41
|
console.warn("@unocss/runtime been used in non-browser environment, skipped.");
|
|
7
42
|
return;
|
|
8
43
|
}
|
|
44
|
+
const defaultOptions = options.defaults || {};
|
|
45
|
+
if (options.autoPrefix) {
|
|
46
|
+
let postprocess = defaultOptions.postprocess;
|
|
47
|
+
if (!postprocess)
|
|
48
|
+
postprocess = [];
|
|
49
|
+
if (!Array.isArray(postprocess))
|
|
50
|
+
postprocess = [postprocess];
|
|
51
|
+
postprocess.unshift(autoPrefixer(document.createElement("div").style));
|
|
52
|
+
defaultOptions.postprocess = postprocess;
|
|
53
|
+
}
|
|
9
54
|
Object.assign(options, (_a = window.__unocss) == null ? void 0 : _a.runtime);
|
|
10
55
|
let styleElement;
|
|
11
56
|
let paused = false;
|
|
12
57
|
let inspector;
|
|
13
|
-
const uno = createGenerator(window.__unocss || {},
|
|
58
|
+
const uno = createGenerator(window.__unocss || {}, defaultOptions);
|
|
14
59
|
const tokens = /* @__PURE__ */ new Set();
|
|
15
60
|
let _timer;
|
|
16
61
|
function scheduleUpdate() {
|
package/mini.global.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(()=>{var
|
|
2
|
-
`,l=new Set(["default"]),p=new Set,b=new Map,u=(d,x)=>{var m;this._cache.set(d,x),p.add(d);for(let $ of x){let z=$[3]||"";b.has(z)||b.set(z,[]),b.get(z).push($),((m=$[4])==null?void 0:m.layer)&&l.add($[4].layer)}},g=d=>{this.blocked.add(d),this._cache.set(d,null)};await Promise.all(Array.from(a).map(async d=>{var _;if(p.has(d)||this.blocked.has(d))return;if(this._cache.has(d)){let w=this._cache.get(d);w&&u(d,w);return}let x=d;for(let w of this.config.preprocess)x=w(d);if(this.isBlocked(x))return g(x);let m=this.matchVariants(d,x);if(!m||this.isBlocked(m[1]))return g(d);let $={rawSelector:d,currentSelector:m[1],theme:this.config.theme,generator:this,variantHandlers:m[2],constructCSS:(...w)=>this.constructCustomCSS($,...w)},z=this.expandShortcut(m[1],$);if(z){let w=await this.stringifyShortcuts(m,$,z[0],z[1]);if(w==null?void 0:w.length)return u(d,w)}else{let w=(_=await this.parseUtil(m,$))==null?void 0:_.map(y=>this.stringifyUtil(y)).filter(We);if(w==null?void 0:w.length)return u(d,w)}this._cache.set(d,null)})),o&&this.config.preflights.forEach(d=>{d.layer&&l.add(d.layer)});let C={},j=this.config.sortLayers(Array.from(l).sort((d,x)=>{var m,$;return((m=this.config.layers[d])!=null?m:0)-(($=this.config.layers[x])!=null?$:0)||d.localeCompare(x)})),h={};o&&(h=Object.fromEntries(await Promise.all(j.map(async d=>{let m=(await Promise.all(this.config.preflights.filter($=>($.layer||"default")===d).map(async $=>await $.getCSS()))).filter(Boolean).join(f);return[d,m]}))));let F=d=>{if(C[d])return C[d];let x=Array.from(b).sort((m,$)=>{var z,_,w;return((z=this.parentOrders.get(m[0]))!=null?z:0)-((_=this.parentOrders.get($[0]))!=null?_:0)||((w=m[0])==null?void 0:w.localeCompare($[0]||""))||0}).map(([m,$])=>{let z=$.length,_=$.filter(y=>{var A;return(((A=y[4])==null?void 0:A.layer)||"default")===d}).sort((y,A)=>{var Q;return y[0]-A[0]||((Q=y[1])==null?void 0:Q.localeCompare(A[1]||""))||0}).map(y=>{var A;return[y[1]?pn(y[1],n):y[1],y[2],!!((A=y[4])==null?void 0:A.noMerge)]}).map(y=>[y[0]==null?y[0]:[y[0]],y[1],y[2]]);if(!_.length)return;let w=_.reverse().map(([y,A,Q],Gr)=>{if(y&&this.config.mergeSelectors)for(let fe=Gr+1;fe<z;fe++){let ee=_[fe];if(!Q&&ee&&ee[0]&&ee[1]===A)return ee[0].push(...y),null}return y?`${[...new Set(y)].join(`,${f}`)}{${A}}`:A}).filter(Boolean).reverse().join(f);return m?`${m}{${f}${w}${f}}`:w}).filter(Boolean).join(f);return o&&(x=[h[d],x].filter(Boolean).join(f)),C[d]=!s&&x?`/* layer: ${d} */${f}${x}`:x},T=(d=j,x)=>d.filter(m=>!(x==null?void 0:x.includes(m))).map(m=>F(m)||"").filter(Boolean).join(f);return{get css(){return T()},layers:j,getLayers:T,getLayer:F,matched:p}}matchVariants(t,r){let n=new Set,o=[],i=r||t,s=!1,a={rawSelector:t,theme:this.config.theme,generator:this};for(;;){s=!1;for(let f of this.config.variants){if(!f.multiPass&&n.has(f))continue;let l=f.match(i,a);if(!!l&&(typeof l=="string"&&(l={matcher:l}),l)){i=l.matcher,Array.isArray(l.parent)&&this.parentOrders.set(l.parent[0],l.parent[1]),o.push(l),n.add(f),s=!0;break}}if(!s)break;if(o.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,o]}applyVariants(t,r=t[4],n=t[1]){let o=[...r].sort((a,f)=>(a.order||0)-(f.order||0)),i=o.reduce((a,f)=>{var l;return((l=f.body)==null?void 0:l.call(f,a))||a},t[2]),s={selector:o.reduce((a,f)=>{var l;return((l=f.selector)==null?void 0:l.call(f,a,i))||a},dn(n)),entries:i,parent:o.reduce((a,f)=>Array.isArray(f.parent)?f.parent[0]:f.parent||a,void 0)};for(let a of this.config.postprocess)a(s);return s}constructCustomCSS(t,r,n){r=L(r);let{selector:o,entries:i,parent:s}=this.applyVariants([0,n||t.rawSelector,r,void 0,t.variantHandlers]),a=`${o}{${re(i)}}`;return s?`${s}{${a}}`:a}async parseUtil(t,r,n=!1){var p,b;let[o,i,s]=typeof t=="string"?this.matchVariants(t):t,a=this.config.rulesStaticMap[i];if(a&&a[1]&&(n||!((p=a[2])==null?void 0:p.internal)))return[[a[0],o,L(a[1]),a[2],s]];r.variantHandlers=s;let{rulesDynamic:f,rulesSize:l}=this.config;for(let u=l;u>=0;u--){let g=f[u];if(!g||((b=g[2])==null?void 0:b.internal)&&!n)continue;let[C,j,h]=g,F=i.match(C);if(!F)continue;let T=await j(F,r);if(!T)continue;if(typeof T=="string")return[[u,T,h]];let d=Ne(T).filter(x=>x.length);if(d.length)return d.map(x=>[u,o,x,h,s])}}stringifyUtil(t){if(!t)return;if(xe(t))return[t[0],void 0,t[1],void 0,t[2]];let{selector:r,entries:n,parent:o}=this.applyVariants(t),i=re(n);if(!!i)return[t[0],r,i,o,t[3]]}expandShortcut(t,r,n=3){if(n===0)return;let o,i;for(let s of this.config.shortcuts)if(Le(s)){if(s[0]===t){o=o||s[2],i=s[1];break}}else{let a=t.match(s[0]);if(a&&(i=s[1](a,r)),i){o=o||s[2];break}}if(typeof i=="string"&&(i=Ge(i).split(/\s+/g)),!!i)return[i.flatMap(s=>{var a;return((a=this.expandShortcut(s,r,n-1))==null?void 0:a[0])||[s]}).filter(s=>s!==""),o]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new be,s=(await Promise.all(ne(n).map(async l=>{let p=await this.parseUtil(l,r,!0);return p||Ye(`unmatched utility "${l}" in shortcut "${t[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((l,p)=>l[0]-p[0]),[a,,f]=t;for(let l of s){if(xe(l))continue;let{selector:p,entries:b,parent:u}=this.applyVariants(l,[...l[4],...f],a);i.getFallback(p,u,[[],l[0]])[0].push(b)}return i.map(([l,p],b,u)=>{let g=l.filter(j=>j.some(h=>h[0]===D)),C=l.filter(j=>j.every(h=>h[0]!==D));return[...g,C.flat(1)].map(j=>{let h=re(j);if(h)return[p,b,h,u,o]})}).flat(1).filter(Boolean)}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function Qe(e,t){return new Je(e,t)}var et=/ \$\$ /,un=e=>e.match(et);function pn(e,t){return un(e)?e.replace(et,t?` ${t} `:" "):t?`${t} ${e}`:e}var tt=/^\[(.+?)(~?=)"(.*)"\]$/;function dn(e){return e.startsWith("[")&&tt.test(e)?e.replace(tt,(t,r,n,o)=>`[${te(r)}${n}"${te(o)}"]`):`.${te(e)}`}var we={};Jr(we,{auto:()=>xn,bracket:()=>Sn,cssvar:()=>kn,degree:()=>Cn,fraction:()=>vn,global:()=>jn,number:()=>$n,numberWithUnit:()=>hn,percent:()=>wn,properties:()=>En,px:()=>yn,rem:()=>bn,time:()=>Rn});var mn=["color","border-color","background-color","flex-grow","flex","flex-shrink","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","backround-position","left","right","top","bottom","object-position","max-height","min-height","max-width","min-width","height","width","border-width","margin","padding","outline-width","outline-offset","font-size","line-height","text-indent","vertical-align","border-spacing","letter-spacing","word-spacing","stroke","filter","backdrop-filter","fill","mask","mask-size","mask-border","clip-path","clip"],$e=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax)?$/i,gn=/^(-?[0-9.]+)$/i,rt=/^(px)$/i;function O(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function hn(e){let t=e.match($e);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(n&&!Number.isNaN(o))return`${O(o)}${n}`}function xn(e){if(e==="auto"||e==="a")return"auto"}function bn(e){if(e.match(rt))return`1${e}`;let t=e.match($e);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${O(o)}${n}`:`${O(o/4)}rem`}function yn(e){if(e.match(rt))return`1${e}`;let t=e.match($e);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${O(o)}${n}`:`${O(o)}px`}function $n(e){if(!gn.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return O(t)}function wn(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${O(t/100)}`}function vn(e){if(e==="full")return"100%";let[t,r]=e.split("/"),n=parseFloat(t)/parseFloat(r);if(!Number.isNaN(n))return`${O(n*100)}%`}function Sn(e){if(e&&e[0]==="["&&e[e.length-1]==="]")return e.slice(1,-1).replace(/_/g," ").replace(/calc\((.*)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}function kn(e){if(e.startsWith("$"))return`var(--${e.slice(1)})`}function Rn(e){let t=e.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${O(o)}${n}`:`${O(o)}ms`}function Cn(e){let t=e.match(/^(-?[0-9.]+)(deg)?$/i);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${O(o)}${n}`:`${O(o)}deg`}function jn(e){if(["inherit","initial","revert","unset"].includes(e))return e}function En(e){for(let t of e.split(","))if(!mn.includes(t))return;return e}var c=Xe(we);var E=(e,t)=>{let r=new RegExp(`^${H(e)}[:-]`);return n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),selector:t}}},V=(e,t)=>{let r=new RegExp(`^${H(e)}[:-]`);return n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),parent:t}}};var P=e=>([t,r,n])=>{let o=c.bracket.auto.rem.fraction.cssvar(n);if(o!==void 0)return M[r].map(i=>[`${e}${i}`,o])},ve=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,n=>n.slice(1).toUpperCase())]},oe=(e,t)=>{let[r,n]=e.split(/(?:\/|:)/),o=r.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[i]=o;if(!i)return;let s,a=c.bracket(r),f=a||r;f.startsWith("#")?s=f.slice(1):f.startsWith("hex-")?s=f.slice(4):r.startsWith("$")&&(s=c.cssvar(r)),s=s||a;let l="DEFAULT";if(!s){let g,[C]=o.slice(-1);C.match(/^\d+$/)?(l=C,g=ve(t,o.slice(0,-1))):(g=ve(t,o),g||([,l=l]=o,g=ve(t,[i]))),typeof g=="string"?s=g:l&&g&&(s=g[l])}let p=Ke(s),b=n?n[0]==="["?c.bracket.percent(n):parseFloat(n)/100:p==null?void 0:p[3],u=b!=null&&!Number.isNaN(b);return p&&(u?p[3]=typeof b=="string"&&!b.includes("%")?parseFloat(b):b:p.splice(3)),{opacity:n,name:i,no:l,color:s,rgba:p,alpha:u?b:void 0}},S=(e,t)=>([,r],{theme:n})=>{var l;let o=oe(r,n);if(!o)return;let{alpha:i,opacity:s,color:a,rgba:f}=o;if(!!a)return f?i!=null?{[e]:`rgba(${f.join(",")})`}:{[`--un-${t}-opacity`]:(l=s&&c.cssvar(s))!=null?l:1,[e]:`rgba(${f.join(",")},var(--un-${t}-opacity))`}:{[e]:a.replace("%alpha",`${i||1}`)}};var nt=[[/^outline-(?:width-|size-)?(.+)$/,([,e])=>({"outline-width":c.bracket.fraction.auto.rem(e)})],[/^outline-(?:color-)?(.+)$/,S("outline-color","outline-color")],[/^outline-offset-(.+)$/,([,e])=>({"outline-offset":c.bracket.fraction.auto.rem(e)})],["outline",{"outline-style":"solid"}],[/^outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)$/,([,e])=>({"outline-style":e})],["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],ot=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],Tn=e=>{var t;return(t=c.properties.auto.global(e))!=null?t:{contents:"contents",scroll:"scroll-position"}[e]},it=[[/^will-change-(.+)/,([,e])=>({"will-change":Tn(e)})]];var st=[[/^(?:border|b)()(?:-(.+))?$/,W],[/^(?:border|b)-([xy])(?:-(.+))?$/,W],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,W],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,W],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,W],[/^(?:border|b)-()(?:width|size)-(.+)$/,N],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,N],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,N],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,N],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,N],[/^(?:border|b)-()(?:color-)?(.+)$/,G],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,G],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,G],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,G],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,G],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,q],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,q],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,q],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,q],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,q],[/^(?:border-)?(?:rounded|rd)()(?:-(.+))?$/,Y],[/^(?:border-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,Y],[/^(?:border-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,Y],[/^(?:border-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,Y],[/^(?:border-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,Y],["border-solid",{"border-style":"solid"}],["border-dashed",{"border-style":"dashed"}],["border-dotted",{"border-style":"dotted"}],["border-double",{"border-style":"double"}],["border-hidden",{"border-style":"hidden"}],["border-none",{"border-style":"none"}]],zn=(e,{theme:t})=>{var r;return e!==void 0&&!!((r=oe(e,t))==null?void 0:r.color)},An=e=>([,t],{theme:r})=>{var f,l;let n=oe(t,r);if(!n)return;let{alpha:o,opacity:i,color:s,rgba:a}=n;if(!!s)return a?o!=null?{[`border${e}-color`]:`rgba(${a.join(",")})`}:e===""?{"--un-border-opacity":(f=i&&c.cssvar(i))!=null?f:1,[`border${e}-color`]:`rgba(${a.join(",")},var(--un-border${e}-opacity))`}:{"--un-border-opacity":(l=i&&c.cssvar(i))!=null?l:1,[`--un-border${e}-opacity`]:"var(--un-border-opacity)",[`border${e}-color`]:`rgba(${a.join(",")},var(--un-border${e}-opacity))`}:{[`border${e}-color`]:s.replace("%alpha",`${o||1}`)}};function W(e){let t=N(e);if(t)return[...t,["border-style","solid"]]}function N([,e="",t="1"]){let r=c.bracket.px(t);if(e in M&&r!=null)return M[e].map(n=>[`border${n}-width`,r])}function G([,e="",t],r){if(e in M&&zn(t,r))return Object.assign({},...M[e].map(n=>An(n)(["",t],r)))}function q([,e="",t]){let r=c.bracket.percent(t);if(e in M&&r!=null)return M[e].map(n=>[`--un-border${n}-opacity`,r])}function Y([,e="",t="DEFAULT"],{theme:r}){var o;let n=((o=r.borderRadius)==null?void 0:o[t])||c.auto.rem.fraction.bracket.cssvar(t);if(e in pe&&n!=null)return pe[e].map(i=>[`border${i}-radius`,n])}var at=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:c.bracket.percent.cssvar(e)})]],ct=[[/^(?:text|color|c)-(.+)$/,S("color","text")],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":c.bracket.percent.cssvar(e)})]],lt=[[/^bg-(.+)$/,S("background-color","bg")],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":c.bracket.percent(e)})]];var ft={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),opacity:"opacity",shadow:"box-shadow",transform:"transform"},ut=e=>{var t;return(t=c.properties(e))!=null?t:ft[e]},pt=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t="150"])=>{let r=e!=null?ut(e):[ft.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(r)return{"transition-property":r,"transition-timing-function":"cubic-bezier(0.4,0,0.2,1)","transition-duration":`${t}ms`}}],[/^(?:transition-)?delay-(.+)(?:s|ms)?$/,([,e])=>({"transition-delay":c.bracket.time(e)})],[/^(?:transition-)?duration-(.+)(?:s|ms)?$/,([,e])=>({"transition-duration":c.bracket.time(e)})],[/^ease-(.+)$/,([,e])=>({"transition-timing-function":c.bracket(e)})],["ease",{"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)"}],["ease-linear",{"transition-timing-function":"linear"}],["ease-in",{"transition-timing-function":"cubic-bezier(0.4, 0, 1, 1)"}],["ease-out",{"transition-timing-function":"cubic-bezier(0, 0, 0.2, 1)"}],["ease-in-out",{"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)"}],[/^(?:transition-)?property-(.+)$/,([,e])=>({"transition-property":c.global(e)||ut(e)})],["transition-property-none",{"transition-property":"none"}],["property-none",{"transition-property":"none"}],["transition-none",{transition:"none"}]];var dt=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^flex-(\[.+\])$/,([,e])=>({flex:c.bracket(e).replace(/\d+\/\d+/,t=>c.fraction(t))})],[/^(?:flex-)?shrink$/,()=>({"flex-shrink":1})],[/^(?:flex-)?shrink-0$/,()=>({"flex-shrink":0})],[/^(?:flex-)?grow$/,()=>({"flex-grow":1})],[/^(?:flex-)?grow-0$/,()=>({"flex-grow":0})],[/^(?:flex-)?basis-(.+)$/,([,e])=>({"flex-basis":c.bracket.fraction.auto.rem(e)})],["flex-row",{"flex-direction":"row"}],["flex-row-reverse",{"flex-direction":"row-reverse"}],["flex-col",{"flex-direction":"column"}],["flex-col-reverse",{"flex-direction":"column-reverse"}],["flex-wrap",{"flex-wrap":"wrap"}],["flex-wrap-reverse",{"flex-wrap":"wrap-reverse"}],["flex-nowrap",{"flex-wrap":"nowrap"}]];var On={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},mt=[[/^font-(\w+)$/,([,e],{theme:t})=>{var r;return{"font-family":(r=t.fontFamily)==null?void 0:r[e]}}],[/^text-(.+)$/,([,e="base"],{theme:t})=>{var n;let r=R((n=t.fontSize)==null?void 0:n[e]);if(r==null?void 0:r[0]){let[o,i="1"]=r;return{"font-size":o,"line-height":i}}return{"font-size":c.bracket.auto.rem(e)}}],[/^text-size-(.+)$/,([,e])=>({"font-size":c.bracket.auto.rem(e)})],[/^(?:font|fw)-?([^-]+)$/,([,e])=>({"font-weight":On[e]||c.number(e)})],[/^(?:leading|lh)-([^-]+)$/,([,e],{theme:t})=>{var r;return{"line-height":((r=t.lineHeight)==null?void 0:r[e])||c.bracket.auto.rem(e)}}],[/^tracking-([^-]+)$/,([,e],{theme:t})=>{var r;return{"letter-spacing":((r=t.letterSpacing)==null?void 0:r[e])||c.bracket.auto.rem(e)}}],[/^word-spacing-([^-]+)$/,([,e],{theme:t})=>{var r;return{"word-spacing":((r=t.wordSpacing)==null?void 0:r[e])||c.bracket.auto.rem(e)}}]],gt=[[/^tab(?:-([^-]+))?$/,([,e])=>{let t=c.bracket.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],ht=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"text-indent":((r=t.textIndent)==null?void 0:r[e||"DEFAULT"])||c.bracket.cssvar.fraction.auto.rem(e)}}]],xt=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"-webkit-text-stroke-width":((r=t.textStrokeWidth)==null?void 0:r[e||"DEFAULT"])||c.bracket.cssvar.px(e)}}],[/^text-stroke-(.+)$/,S("-webkit-text-stroke-color","text-stroke")],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":c.bracket.percent(e)})]],bt=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.textShadow)==null?void 0:n[e||"DEFAULT"];if(r!=null){let o=R(r),i=o.map(s=>s.replace(/\s\S+$/," var(--un-text-shadow-color)"));return{"--un-text-shadow":o.join(","),"--un-text-shadow-colored":i.join(","),"text-shadow":"var(--un-text-shadow)"}}return{"text-shadow":c.bracket.cssvar(e)}}],[/^text-shadow-color-(.+)$/,(e,t)=>{let r=S("--un-text-shadow-color","text-shadow")(e,t);if(r)return k(v({},r),{"--un-text-shadow":"var(--un-text-shadow-colored)"})}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":c.bracket.percent(e)})]];var yt={"":"",x:"column-",y:"row-"},$t=([,e="",t])=>{let r=c.bracket.auto.rem(t);if(r!=null)return{[`grid-${yt[e]}gap`]:r,[`${yt[e]}gap`]:r}},wt=[[/^(?:flex-|grid-)?gap-()([^-]+)$/,$t],[/^(?:flex-|grid-)?gap-([xy])-([^-]+)$/,$t]];var U=e=>e.replace("col","column"),Vn=(e,t)=>{var n;let r=(n=t.fontSize)==null?void 0:n[e];if(r!=null)return R(r)[0];switch(e){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return c.bracket.auto.rem(e)},vt=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t])=>({[`grid-${U(e)}`]:c.bracket.auto(t)})],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${U(e)}`]:"1/-1"};let r=c.bracket.number(t);if(r!=null)return{[`grid-${U(e)}`]:`span ${r}/span ${r}`}}],[/^(?:grid-)?(row|col)-start-([\w.-]+)$/,([,e,t])=>({[`grid-${U(e)}-start`]:t})],[/^(?:grid-)?(row|col)-end-([\w.-]+)$/,([,e,t])=>({[`grid-${U(e)}-end`]:t})],[/^(?:grid-)?auto-(rows|cols)-([\w.-]+)$/,([,e,t],{theme:r})=>({[`grid-auto-${U(e)}`]:Vn(t,r)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-((?:row|col)(?:-dense)?)$/,([,e])=>({"grid-auto-flow":U(e).replace("-"," ")})],[/^grid-(rows|cols)-(\[.+\])$/,([,e,t])=>({[`grid-template-${U(e)}`]:c.bracket(t)})],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${U(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${U(e)}`]:`repeat(${t},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var St=["auto","hidden","clip","visible","scroll"],kt=[[/^(?:overflow|of)-(.+)$/,([,e])=>St.includes(e)?{overflow:e}:void 0],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>St.includes(t)?{[`overflow-${e}`]:t}:void 0]];var Se=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],Rt=[["justify-start",{"justify-content":"flex-start"}],["justify-end",{"justify-content":"flex-end"}],["justify-center",{"justify-content":"center"}],["justify-between",{"justify-content":"space-between"}],["justify-around",{"justify-content":"space-around"}],["justify-evenly",{"justify-content":"space-evenly"}],["justify-items-start",{"justify-items":"start"}],["justify-items-end",{"justify-items":"end"}],["justify-items-center",{"justify-items":"center"}],["justify-items-stretch",{"justify-items":"stretch"}],["justify-self-auto",{"justify-self":"auto"}],["justify-self-start",{"justify-self":"start"}],["justify-self-end",{"justify-self":"end"}],["justify-self-center",{"justify-self":"center"}],["justify-self-stretch",{"justify-self":"stretch"}]],Ct=[[/^order-(.+)$/,([,e])=>({order:c.bracket.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],jt=[["content-center",{"align-content":"center"}],["content-start",{"align-content":"flex-start"}],["content-end",{"align-content":"flex-end"}],["content-between",{"align-content":"space-between"}],["content-around",{"align-content":"space-around"}],["content-evenly",{"align-content":"space-evenly"}],["items-start",{"align-items":"flex-start"}],["items-end",{"align-items":"flex-end"}],["items-center",{"align-items":"center"}],["items-baseline",{"align-items":"baseline"}],["items-stretch",{"align-items":"stretch"}],["self-auto",{"align-self":"auto"}],["self-start",{"align-self":"flex-start"}],["self-end",{"align-self":"flex-end"}],["self-center",{"align-self":"center"}],["self-stretch",{"align-self":"stretch"}],["self-baseline",{"align-self":"baseline"}]],Et=[["place-content-center",{"place-content":"center"}],["place-content-start",{"place-content":"start"}],["place-content-end",{"place-content":"end"}],["place-content-between",{"place-content":"space-between"}],["place-content-around",{"place-content":"space-around"}],["place-content-evenly",{"place-content":"space-evenly"}],["place-content-stretch",{"place-content":"stretch"}],["place-items-start",{"place-items":"start"}],["place-items-end",{"place-items":"end"}],["place-items-center",{"place-items":"center"}],["place-items-stretch",{"place-items":"stretch"}],["place-self-auto",{"place-self":"auto"}],["place-self-start",{"place-self":"start"}],["place-self-end",{"place-self":"end"}],["place-self-center",{"place-self":"center"}],["place-self-stretch",{"place-self":"stretch"}]];function ke(e){return c.bracket.fraction.cssvar.auto.rem(e)}function Re([,e,t]){let r=ke(t);if(r!=null&&e in ue)return ue[e].map(n=>[n.slice(1),r])}var Tt=[[/^(?:position-|pos-)?inset-(.+)$/,([,e])=>({inset:ke(e)})],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,Re],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,Re],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,Re],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t])=>({[e]:ke(t)})]],zt=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-none",{float:"none"}],["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-none",{clear:"none"}]],At=[["z-auto",{"z-index":"auto"}],[/^z-([^-]+)$/,([,e])=>({"z-index":c.number(e)})]],Ot=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var ie="var(--un-empty,/*!*/ /*!*/)",Vt=[["inline",{display:"inline"}],["block",{display:"block"}],["inline-block",{display:"inline-block"}],["contents",{display:"contents"}],["flow-root",{display:"flow-root"}],["list-item",{display:"list-item"}],["hidden",{display:"none"}]],Pt=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],Mt=[[/^cursor-(.+)$/,([,e])=>({cursor:e})]],Ut=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],_t=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],Ft=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],Dt=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,e])=>({"white-space":e})]],Nt=[["content-empty",{content:'""'}],["content-none",{content:'""'}]],Ht=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Lt=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],Kt=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}]],Bt=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}]],It=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto","font-smoothing":"auto"}]];var Ce={[D]:"","--un-ring-offset-shadow":"0 0 #0000","--un-ring-shadow":"0 0 #0000","--un-shadow-inset":ie,"--un-shadow":"0 0 #0000","--un-shadow-colored":"0 0 #0000"},Wt=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.boxShadow)==null?void 0:n[e||"DEFAULT"];if(r){let o=R(r),i=o.map(s=>s.replace(/\s\S+$/," var(--un-shadow-color)"));return[Ce,{"--un-shadow":o.join(","),"--un-shadow-colored":i.join(","),"box-shadow":"var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"}]}}],[/^shadow-(.+)$/,(e,t)=>{let r=S("--un-shadow-color","shadow")(e,t);if(r)return k(v({},r),{"--un-shadow":"var(--un-shadow-colored)"})}],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":c.bracket.percent.cssvar(e)})],["shadow-inset",{"--un-shadow-inset":"inset"}]];var Pn=v({"--un-ring-inset":ie,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-color":"rgba(147,197,253,0.5)"},Ce),Gt=[[/^ring(?:-(.+))?$/,([,e])=>{let t=c.px(e||"1");if(t)return[Pn,{"--un-ring-offset-shadow":"var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)","--un-ring-shadow":`var(--un-ring-inset) 0 0 0 calc(${t} + var(--un-ring-offset-width)) var(--un-ring-color)`,"box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow, 0 0 #0000)"}]}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(.+)$/,([,e])=>({"--un-ring-offset-width":c.px(e||"1")})],[/^ring-(.+)$/,S("--un-ring-color","ring")],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":c.bracket.percent(e)})],[/^ring-offset-(.+)$/,S("--un-ring-offset-color","ring-offset")],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":c.bracket.percent(e)})],["ring-inset",{"--un-ring-inset":"inset"}]];var Mn={h:"height",w:"width",inline:"inline-size",block:"block-size"};function se(e,t){return`${e||""}${Mn[t]}`}function qt(e,t,r,n){var s;let o=se(e,t).replace(/-(\w)/g,(a,f)=>f.toUpperCase()),i=(s=r[o])==null?void 0:s[n];if(i!=null)return i;switch(n){case"fit":case"max":case"min":return`${n}-content`}return c.bracket.cssvar.fraction.auto.rem(n)}var Yt=[[/^(min-|max-)?([wh])-(.+)$/,([,e,t,r],{theme:n})=>({[se(e,t)]:qt(e,t,n,r)})],[/^(min-|max-)?(block|inline)-(.+)$/,([,e,t,r],{theme:n})=>({[se(e,t)]:qt(e,t,n,r)})],[/^(min-|max-)?(w)-screen-(.+)$/,([,e,t,r],{theme:n})=>{var o;return{[se(e,t)]:(o=n.breakpoints)==null?void 0:o[r]}}]];function Un(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return c.bracket.cssvar.auto.number(e)}var Xt=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":Un(e)})]];var Zt=[[/^pa?()-?(-?.+)$/,P("padding")],[/^p-?([xy])-?(-?.+)$/,P("padding")],[/^p-?([rltbse])-?(-?.+)$/,P("padding")],[/^p-(inline|block)-(-?.+)$/,P("padding")],[/^p-?([bi][se])-?(-?.+)$/,P("padding")]],Jt=[[/^ma?()-?(-?.+)$/,P("margin")],[/^m-?([xy])-?(-?.+)$/,P("margin")],[/^m-?([rltbse])-?(-?.+)$/,P("margin")],[/^m-(inline|block)-(-?.+)$/,P("margin")],[/^m-?([bi][se])-?(-?.+)$/,P("margin")]];var _n={"--un-transform":["translate3d(var(--un-translate-x), var(--un-translate-y), var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" ")},Qt={"--un-transform":["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","translateZ(var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" ")},X=k(v({"--un-rotate":0,"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-scale-x":1,"--un-scale-y":1,"--un-scale-z":1,"--un-skew-x":0,"--un-skew-y":0,"--un-translate-x":0,"--un-translate-y":0,"--un-translate-z":0},Qt),{[D]:""}),er=[[/^origin-([-\w]{3,})$/,([,e])=>({"transform-origin":me[e]})],[/^perspect-(.+)$/,([,e])=>{let t=c.px.numberWithUnit(e);if(t!=null)return{"-webkit-perspective":t,perspective:t}}],[/^perspect-origin-(.+)$/,([,e])=>{var r;let t=(r=c.bracket(e))!=null?r:e.length>=3?me[e]:void 0;if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^translate-()(.+)$/,tr],[/^translate-([xyz])-(.+)$/,tr],[/^rotate-()(.+)$/,nr],[/^rotate(-[xyz])-(.+)$/,nr],[/^skew-()(.+)$/,or],[/^skew-([xy])-(.+)$/,or],[/^scale-()(.+)$/,rr],[/^scale-([xyz])-(.+)$/,rr],["preserve-3d",{"transform-style":"preserve-3d"}],["preserve-flat",{"transform-style":"flat"}],[/^transform$/,()=>[X,{transform:"var(--un-transform)"}]],["transform-gpu",_n],["transform-cpu",Qt],["transform-none",{transform:"none"}]];function tr([,e,t]){let r=c.bracket.fraction.auto.rem(t);if(r!=null)return[X,[...de[e].map(n=>[`--un-translate${n}`,r]),["transform","var(--un-transform)"]]]}function rr([,e,t]){let r=c.bracket.fraction.percent(t);if(r!=null)return[X,[...de[e].map(n=>[`--un-scale${n}`,r]),["transform","var(--un-transform)"]]]}function nr([,e,t]){let r=c.bracket.degree(t);if(r!=null)return[X,{[`--un-rotate${e||""}`]:r,transform:"var(--un-transform)"}]}function or([,e,t]){let r=c.bracket.degree(t);if(r!=null)return[X,{[`--un-skew-${e}`]:r,transform:"var(--un-transform)"}]}var Fn={visible:"visibility",select:"user-select",vertical:"vertical-align",backface:"backface-visibility",whitespace:"white-space",break:"word-break",case:"text-transform",origin:"transform-origin","bg-opacity":"background-opacity",tab:"tab-size",underline:"text-decoration-thickness","underline-offset":"text-underline-offset","grid-cols":"grid-template-columns","grid-rows":"grid-template-rows","auto-flow":"grid-auto-flow","row-start":"grid-row-start","row-end":"grid-row-end",justify:"justify-content",content:"align-content",items:"align-items",self:"align-self",object:"object-fit"},ir=[[/^(.+)-\$(.+)$/,([,e,t])=>{let r=Fn[e];if(r)return{[r]:`var(--${t})`}}]],sr=[[/^\[(.+):(.+)\]$/,([,e,t])=>({[e]:c.bracket(`[${t}]`)})]];var ar=[[/^(where|\?)$/,(e,{constructCSS:t,generator:r})=>{if(r.userConfig.envMode==="dev")return`@keyframes __un_qm{0%{box-shadow:inset 4px 4px #ff1e90, inset -4px -4px #ff1e90}100%{box-shadow:inset 8px 8px #3399ff, inset -8px -8px #3399ff}}
|
|
3
|
-
${t({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]];var cr=[["underline",{"text-decoration-line":"underline"}],["overline",{"text-decoration-line":"overline"}],["line-through",{"text-decoration-line":"line-through"}],["decoration-underline",{"text-decoration-line":"underline"}],["decoration-line-through",{"text-decoration-line":"line-through"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,([,e])=>({"text-decoration-thickness":c.bracket.px(e)})],[/^(?:underline|decoration)-(auto|from-font)$/,([,e])=>({"text-decoration-thickness":e})],[/^(?:underline|decoration)-(.+)$/,(e,t)=>{let r=S("text-decoration-color","line")(e,t);if(r)return v({"-webkit-text-decoration-color":r["text-decoration-color"]},r)}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":c.bracket.percent(e)})],[/^underline-offset-(.+)$/,([,e])=>({"text-underline-offset":c.auto.bracket.px(e)})],[/^(?:underline|decoration)-(solid|double|dotted|dashed|wavy|inherit|initial|revert|unset)$/,([,e])=>({"text-decoration-style":e})],["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];var lr=[[/^fill-(.+)$/,S("fill","fill")],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":c.bracket.percent(e)})],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,([,e])=>({"stroke-width":c.bracket.fraction.px.number(e)})],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":c.bracket.number(e)})],[/^stroke-offset-(.+)$/,([,e])=>({"stroke-dashoffset":c.bracket.px.numberWithUnit(e)})],[/^stroke-(.+)$/,S("stroke","stroke")],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":c.bracket.percent(e)})],["stroke-cap-square",{"stroke-linecap":"square"}],["stroke-cap-round",{"stroke-linecap":"round"}],["stroke-cap-auto",{"stroke-linecap":"butt"}],["stroke-join-arcs",{"stroke-linejoin":"arcs"}],["stroke-join-bevel",{"stroke-linejoin":"bevel"}],["stroke-join-clip",{"stroke-linejoin":"miter-clip"}],["stroke-join-round",{"stroke-linejoin":"round"}],["stroke-join-auto",{"stroke-linejoin":"miter"}],["stroke-none",{stroke:"none"}]];var fr=[ir,sr,Zt,Jt,Vt,at,lt,lr,st,Nt,mt,gt,ht,Lt,cr,xt,bt,Kt,Fe,ct,Bt,It,Wt,Gt,dt,vt,wt,Se,Yt,Xt,Mt,Pt,Ut,_t,_e,Ft,Dt,Ht,kt,nt,ot,Se,Ct,Rt,jt,Et,Tt,zt,At,Ot,pt,er,it,ar].flat(1);var je={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},light:{50:"#fdfdfd",100:"#fcfcfc",200:"#fafafa",300:"#f8f9fa",400:"#f6f6f6",500:"#f2f2f2",600:"#f1f3f5",700:"#e9ecef",800:"#dee2e6",900:"#dde1e3"},dark:{50:"#4a4a4a",100:"#3c3c3c",200:"#323232",300:"#2d2d2d",400:"#222222",500:"#1f1f1f",600:"#1c1c1e",700:"#1b1b1b",800:"#181818",900:"#0f0f0f"},get lightblue(){return this.sky},get lightBlue(){return this.sky},get warmgray(){return this.stone},get warmGray(){return this.stone},get truegray(){return this.neutral},get trueGray(){return this.neutral},get coolgray(){return this.gray},get coolGray(){return this.gray},get bluegray(){return this.slate},get blueGray(){return this.slate}};Object.values(je).forEach(e=>{typeof e!="string"&&(e.DEFAULT=e.DEFAULT||e[400],Object.keys(e).forEach(t=>{let r=+t/100;r===Math.round(r)&&(e[r]=e[t])}))});var ur={sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'].join(","),serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"].join(","),mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"].join(",")},pr={xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},dr={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},mr={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},gr={DEFAULT:["0 0 1px rgba(0,0,0,0.2)","0 0 1px rgba(1,0,5,0.1)"],sm:"1px 1px 3px rgba(36,37,47,0.25)",md:["0 1px 2px rgba(30,29,39,0.19)","1px 2px 4px rgba(54,64,147,0.18)"],lg:["3px 3px 6px rgba(0,0,0,0.26)","0 0 5px rgba(15,3,86,0.22)"],xl:["1px 1px 3px rgba(0,0,0,0.29)","2px 4px 7px rgba(73,64,125,0.35)"],none:"0 0 #0000"},hr={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},Ee={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},xr=Ee;var br={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},yr={DEFAULT:"0.25rem",none:"0px",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},$r={DEFAULT:["var(--un-shadow-inset) 0 1px 3px 0 rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 1px 2px -1px rgba(0,0,0,0.1)"],sm:"var(--un-shadow-inset) 0 1px 2px 0 rgba(0,0,0,0.05)",md:["var(--un-shadow-inset) 0 4px 6px -1px rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 2px 4px -2px rgba(0,0,0,0.1)"],lg:["var(--un-shadow-inset) 0 10px 15px -3px rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 4px 6px -4px rgba(0,0,0,0.1)"],xl:["var(--un-shadow-inset) 0 20px 25px -5px rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 8px 10px -6px rgba(0,0,0,0.1)"],"2xl":"var(--un-shadow-inset) 0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"};var wr={DEFAULT:"8px","0":"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},vr={DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],sm:"0 1px 1px rgba(0,0,0,0.05)",md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"};var ae={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},Te=k(v({auto:"auto"},ae),{screen:"100vw"}),Z=k(v({none:"none"},ae),{screen:"100vw"}),ze=k(v({auto:"auto"},ae),{screen:"100vh"}),J=k(v({none:"none"},ae),{screen:"100vh"});var Sr={width:Te,height:ze,maxWidth:Z,maxHeight:J,minWidth:Z,minHeight:J,inlineSize:Te,blockSize:ze,maxInlineSize:Z,maxBlockSize:J,minInlineSize:Z,minBlockSize:J,colors:je,fontFamily:ur,fontSize:pr,breakpoints:br,borderRadius:yr,lineHeight:hr,letterSpacing:Ee,wordSpacing:xr,boxShadow:$r,textIndent:dr,textShadow:gr,textStrokeWidth:mr,blur:wr,dropShadow:vr};var Ae={},kr=(e,{theme:t})=>{let r=Object.entries(t.breakpoints||{}).map(([n,o],i)=>[n,o,i]);for(let[n,o,i]of r){Ae[n]||(Ae[n]=new RegExp(`^((?:[al]t-)?${n}[:-])`));let s=e.match(Ae[n]);if(!s)continue;let[,a]=s,f=e.slice(a.length);if(f==="container")continue;let l="min",p=1e3;return a.startsWith("lt-")?(l="max",p-=i+1):p+=i+1,a.startsWith("at-")&&i<r.length-1?{matcher:f,parent:[`@media (min-width: ${o}) and (max-width: ${r[i+1][1]})`,p]}:{matcher:f,parent:[`@media (${l}-width: ${o})`,p]}}};var Rr=[E("all",e=>`${e} *`),E("children",e=>`${e}>*`),E("next",e=>`${e}+*`),E("sibling",e=>`${e}+*`),E("siblings",e=>`${e}~*`),E("svg",e=>`${e} svg *`)];var Cr=(e={})=>(e==null?void 0:e.dark)==="class"?[E("dark",t=>`.dark $$ ${t}`),E("light",t=>`.light $$ ${t}`)]:[V("dark","@media (prefers-color-scheme: dark)"),V("light","@media (prefers-color-scheme: light)")];var jr=[E("rtl",e=>`[dir="rtl"] $$ ${e}`),E("ltr",e=>`[dir="ltr"] $$ ${e}`)];var Er={match(e){if(e.startsWith("!"))return{matcher:e.slice(1),body:t=>(t.forEach(r=>{r[1]&&(r[1]+=" !important")}),t)}}},Tr={match(e){if(e.startsWith("-"))return{matcher:e.slice(1),body:t=>(t.forEach(r=>{var n,o;r[0].startsWith("--un-scale")||((n=r[1])==null?void 0:n.toString())==="0"||(r[1]=(o=r[1])==null?void 0:o.toString().replace(/[0-9.]+(?:[a-z]+|%)?/,i=>`-${i}`))}),t)}}};var zr=[V("motion-reduce","@media (prefers-reduced-motion: reduce)"),V("motion-safe","@media (prefers-reduced-motion: no-preference)")];var Ar=[V("landscape","@media (orientation: landscape)"),V("portrait","@media (orientation: portrait)")];var Or=V("print","@media print");var Dn="$$no-pseudo",ce=Object.fromEntries(["any-link","link","visited","target",["open","[open]"],"hover","active","focus-visible","focus-within","focus","autofill","enabled","disabled","read-only","read-write","placeholder-shown","default","checked","indeterminate","valid","invalid","in-range","out-of-range","required","optional","root","empty",["even-of-type",":nth-of-type(even)"],["even",":nth-child(even)"],["odd-of-type",":nth-of-type(odd)"],["odd",":nth-child(odd)"],"first-of-type",["first",":first-child"],"last-of-type",["last",":last-child"],"only-child","only-of-type"].map(R)),Vr=Object.fromEntries(["placeholder","before","after","first-letter","first-line","selection","marker",["file","::file-selector-button"]].map(R)),Nn=["not","is","where","has"],Hn=Object.keys(Vr).join("|"),Oe=Object.keys(ce).join("|"),Pr=Nn.join("|"),Ln=/(part-\[(.+)]:)(.+)/,Kn=new RegExp(`^(${Hn})[:-]`),Bn=new RegExp(`^(${Oe})[:-]`),In=new RegExp(`^(${Pr})-(${Oe})[:-]`);function le(e){return!e.find(t=>t[0]===Dn)||void 0}var Mr=(e,t,r)=>{let n=new RegExp(`^${e}-((?:(${Pr})-)?(${Oe}))[:-]`),o=new RegExp(`^${H(t)}:`);return i=>{let s=i.match(n);if(s){let a=ce[s[3]]||`:${s[3]}`;return s[2]&&(a=`:${s[2]}(${a})`),{matcher:i.slice(s[1].length+e.length+2),selector:(f,l)=>le(l)&&o.test(f)?f.replace(o,`${t}${a}:`):`${t}${a}${r}${f}`}}}},Ur=e=>{let t=e.match(Kn);if(t){let r=Vr[t[1]]||`::${t[1]}`;return{matcher:e.slice(t[1].length+1),selector:n=>`${n}${r}`}}},_r={match:e=>{let t=e.match(Bn);if(t){let r=ce[t[1]]||`:${t[1]}`;return{matcher:e.slice(t[1].length+1),selector:(n,o)=>le(o)&&`${n}${r}`}}},multiPass:!0},Fr={match:e=>{let t=e.match(In);if(t){let r=t[1],n=ce[t[2]]||`:${t[2]}`;return{matcher:e.slice(t[1].length+t[2].length+2),selector:(o,i)=>le(i)&&`${o}:${r}(${n})`}}},multiPass:!0},Dr=(e={})=>{let t=!!(e==null?void 0:e.attributifyPseudo);return[{match:Mr("group",t?'[group=""]':".group"," "),multiPass:!0},{match:Mr("peer",t?'[peer=""]':".peer","~"),multiPass:!0}]},Nr={match:e=>{let t=e.match(Ln);if(t){let r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:(n,o)=>le(o)&&`${n}::${r}`}}},multiPass:!0};var Hr=e=>[Tr,Er,Or,...Ar,...zr,kr,...Rr,_r,Fr,...Dr(e),Ur,Nr,...Cr(e),...jr];var Wn=(e={})=>{var t,r;return e.dark=(t=e.dark)!=null?t:"class",e.attributifyPseudo=(r=e.attributifyPseudo)!=null?r:!1,{name:"@unocss/preset-mini",theme:Sr,rules:fr,variants:Hr(e),options:e,postprocess:e.variablePrefix&&e.variablePrefix!=="un-"?Gn(e.variablePrefix):void 0}},Lr=Wn;function Gn(e){return t=>{t.entries.forEach(r=>{r[0]=r[0].replace(/^--un-/,`--${e}`),typeof r[1]=="string"&&(r[1]=r[1].replace(/var\(--un-/g,`var(--${e}`))})}}var qn=["v-bind:",":"],Kr=/[\s'"`;]+/g,Yn=/<\w[\w:\.$-]*\s((?:'[\s\S]*?'|"[\s\S]*?"|`[\s\S]*?`|\{[\s\S]*?\}|[\s\S]*?)*?)>/g,Xn=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=(["'])([^\2]*?)\2)?/g,Br=e=>{var n,o;let t=(n=e==null?void 0:e.ignoreAttributes)!=null?n:[],r=(o=e==null?void 0:e.nonValuedAttribute)!=null?o:!0;return{name:"attributify",extract({code:i}){let s=Array.from(i.matchAll(Yn)).flatMap(a=>Array.from((a[1]||"").matchAll(Xn))).flatMap(([,a,f,l])=>{if(t.includes(a))return[];for(let p of qn)if(a.startsWith(p)){a=a.slice(p.length);break}return l?["class","className"].includes(a)?l.split(Kr).filter(B):l.split(Kr).filter(Boolean).map(p=>`[${a}~="${p}"]`):B(a)&&r!==!1?[`[${a}=""]`]:[]});return new Set(s)}}};var Zn=/^(.+\:\!?)?(.*?)$/,Ir=(e={})=>{var n,o;let t=(n=e.prefix)!=null?n:"un-",r=(o=e.prefixedOnly)!=null?o:!1;return i=>{let s=Be(i);if(!s)return;let a=s[1];if(a.startsWith(t))a=a.slice(t.length);else if(r)return;let f=s[2],[,l="",p=f]=f.match(Zn)||[];return p==="~"||!p?`${l}${a}`:`${l}${a}-${p}`}};var Jn=(e={})=>{var n,o,i,s,a;e.strict=(n=e.strict)!=null?n:!1,e.prefix=(o=e.prefix)!=null?o:"un-",e.prefixedOnly=(i=e.prefixedOnly)!=null?i:!1,e.nonValuedAttribute=(s=e.nonValuedAttribute)!=null?s:!0,e.ignoreAttributes=(a=e.ignoreAttributes)!=null?a:[];let t=[Ir(e)],r=[Br(e)];return e.strict||r.unshift(I),{name:"@unocss/preset-attributify",variants:t,extractors:r,options:e}},Wr=Jn;function Ve(e={}){var j;if(typeof window=="undefined"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}Object.assign(e,(j=window.__unocss)==null?void 0:j.runtime);let t,r=!1,n,o=Qe(window.__unocss||{},e.defaults),i=new Set,s;function a(){s!=null&&clearTimeout(s),s=setTimeout(f,0)}async function f(){let h=await o.generate(i);t||(t=document.createElement("style"),document.documentElement.prepend(t)),t.innerHTML=h.css}async function l(h){await o.applyExtractors(h,void 0,i),a()}async function p(){let h=document.body&&document.body.outerHTML;h&&await l(h)}let b=new MutationObserver(h=>{r||h.forEach(F=>{let T=F.target;if(T===t||n&&!n(T))return;let d=Array.from(T.attributes).map(m=>m.value?`${m.name}="${m.value}"`:m.name).join(" "),x=`<${T.tagName.toLowerCase()} ${d}>`;l(x)})}),u=!1;function g(){if(!u)return;let h=document.documentElement||document.body;!h||(b.observe(h,{childList:!0,subtree:!0,attributes:!0}),u=!0)}function C(){p(),g()}window.__unocss_runtime=window.__unocss_runtime={version:o.version,uno:o,extractAll:p,inspect(h){n=h},toggleObserver(h){h===void 0?r=!r:r=!!h}},C(),window.addEventListener("load",C),window.addEventListener("DOMContentLoaded",C)}Ve({defaults:{presets:[Lr(),Wr()]}});})();
|
|
1
|
+
(()=>{var Ue=Object.defineProperty,Qr=Object.defineProperties;var en=Object.getOwnPropertyDescriptors;var _e=Object.getOwnPropertySymbols;var tn=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable;var Fe=(e,t,r)=>t in e?Ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))tn.call(t,r)&&Fe(e,r,t[r]);if(_e)for(var r of _e(t))rn.call(t,r)&&Fe(e,r,t[r]);return e},O=(e,t)=>Qr(e,en(t));var nn=(e,t)=>{for(var r in t)Ue(e,r,{get:t[r],enumerable:!0})};var on={mid:"middle",base:"baseline",btm:"bottom"},De=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,e])=>({"vertical-align":on[e]||e})]],Ne=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var M={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},pe=O(S({},M),{s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]}),de={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},me={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Le=["top","top center","top left","top right","bottom","bottom center","bottom left","bottom right","left","left center","left top","left bottom","right","right center","right top","right bottom","center","center top","center bottom","center left","center right","center center"],ge=Object.assign({},...Le.map(e=>({[e.replace(/ /,"-")]:e})),...Le.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e})));function L(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function sn(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===44){o+="\\2c ";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var te=sn;function H(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function He(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>H(t)):[e]:[H(e)]}function an(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function re(e){return e==null?"":an(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function he(e){return e&&typeof e=="object"&&!Array.isArray(e)}function xe(e,t){let r=e,n=t;if(Array.isArray(r)&&Array.isArray(n))return[...r,...n];if(Array.isArray(r))return[...r];let o=S({},r);return he(r)&&he(n)&&Object.keys(n).forEach(i=>{he(n[i])?i in r?o[i]=xe(r[i],n[i]):Object.assign(o,{[i]:n[i]}):Object.assign(o,{[i]:n[i]})}),o}function B(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?B(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:B(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?B(n):n;return r}return e}function Be(e){return typeof e[0]=="string"}function Ke(e){return typeof e[0]=="string"}function C(e=[]){return Array.isArray(e)?e:[e]}function ne(e){return Array.from(new Set(e))}var cn=/^#?([\da-f]+)$/i;function We(e=""){let[,t]=e.match(cn)||[];if(!!t)switch(t.length){case 3:case 4:let r=Array.from(t,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return t.length===3||(r[3]=Math.round(r[3]/255*100)/100),r;case 6:case 8:let n=Number.parseInt(t,16);return t.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255,Math.round((n&255)/255*100)/100]}}var ln=/^\[(.+?)~?="(.*)"\]$/,fn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,D="$$shortcut-no-merge";function Ie(e){return e.match(ln)}function K(e=""){return fn.test(e)}function Ge(e){return typeof e=="function"?{match:e}:e}function be(e){return e.length===3}function qe(e){return e!=null}var ye=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){var n;return(n=this._map.get(t))==null?void 0:n.has(r)}delete(t,r){var n;return((n=this._map.get(t))==null?void 0:n.delete(r))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>t(i,r,o)))}};var un=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function Ye(e){let t=[],r;for(;r=un.exec(e);){let o=r.index,i=o+r[0].length,[,s,a,l]=r,f=l.split(/\s/g).map(p=>p.replace(/^(!?)(.*)/,`$1${s}${a}$2`)).join(" ");t.unshift([o,i,f])}let n=e;return t.forEach(([o,i,s])=>{n=n.slice(0,o)+s+n.slice(i)}),n}var Ze=new Set;function Xe(e){Ze.has(e)||(console.warn("[unocss]",e),Ze.add(e))}function Je(e){let t=function(n){var i;let o=((i=this.__options)==null?void 0:i.sequence)||[];this.__options.sequence=[];for(let s of o){let a=e[s](n);if(a!=null)return a}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,get(){return r(this,n)}});return t}var pn=e=>e.split(/[\s'"`;>=]+/g).filter(K),W={name:"split",order:0,extract({code:e}){return new Set(pn(e))}};function dn(e){return C(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var mn={shortcuts:-1,default:0};function $e(e={},t={}){let r=Object.assign({},t,e),n=(r.presets||[]).flatMap(C),o=[...n.filter(d=>d.enforce==="pre"),...n.filter(d=>!d.enforce),...n.filter(d=>d.enforce==="post")],i=Object.assign(mn,...n.map(d=>d.layers),e.layers);function s(d){return ne([...o.flatMap(m=>C(m[d]||[])),...C(r[d]||[])])}let a=s("extractors");a.length||a.push(W),a.sort((d,m)=>(d.order||0)-(m.order||0));let l=s("rules"),f={},p=l.length;l.forEach((d,m)=>{Be(d)&&(f[d[0]]=[m,d[1],d[2]],delete l[m])});let y=B([...o.map(d=>d.theme||{}),r.theme||{}].reduce((d,m)=>xe(d,m),{}));return s("extendTheme").forEach(d=>d(y)),O(S({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:d=>d},r),{presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:i,theme:y,rulesSize:p,rulesDynamic:l,rulesStaticMap:f,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),variants:s("variants").map(Ge),shortcuts:dn(s("shortcuts")),extractors:a})}var Qe="0.22.2";var et=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=$e(t,r)}version=Qe;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.config=$e(t,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(t,r,n=new Set){let o={get original(){return t},code:t,id:r};for(let i of this.config.extractors){let s=await i.extract(o);s==null||s.forEach(a=>n.add(a))}return n}async generate(t,{id:r,scope:n,preflights:o=!0,safelist:i=!0,minify:s=!1}={}){let a=typeof t=="string"?await this.applyExtractors(t,r):t;i&&this.config.safelist.forEach(u=>a.add(u));let l=s?"":`
|
|
2
|
+
`,f=new Set(["default"]),p=new Set,y=new Map,d=(u,h)=>{var x;this._cache.set(u,h),p.add(u);for(let b of h){let T=b[3]||"";y.has(T)||y.set(T,[]),y.get(T).push(b),((x=b[4])==null?void 0:x.layer)&&f.add(b[4].layer)}},m=u=>{this.blocked.add(u),this._cache.set(u,null)};await Promise.all(Array.from(a).map(async u=>{var F;if(p.has(u)||this.blocked.has(u))return;if(this._cache.has(u)){let w=this._cache.get(u);w&&d(u,w);return}let h=u;for(let w of this.config.preprocess)h=w(u);if(this.isBlocked(h))return m(h);let x=this.matchVariants(u,h);if(!x||this.isBlocked(x[1]))return m(u);let b={rawSelector:u,currentSelector:x[1],theme:this.config.theme,generator:this,variantHandlers:x[2],constructCSS:(...w)=>this.constructCustomCSS(b,...w)},T=this.expandShortcut(x[1],b);if(T){let w=await this.stringifyShortcuts(x,b,T[0],T[1]);if(w==null?void 0:w.length)return d(u,w)}else{let w=(F=await this.parseUtil(x,b))==null?void 0:F.map($=>this.stringifyUtil($)).filter(qe);if(w==null?void 0:w.length)return d(u,w)}this._cache.set(u,null)})),o&&this.config.preflights.forEach(u=>{u.layer&&f.add(u.layer)});let j={},k=this.config.sortLayers(Array.from(f).sort((u,h)=>{var x,b;return((x=this.config.layers[u])!=null?x:0)-((b=this.config.layers[h])!=null?b:0)||u.localeCompare(h)})),R={};o&&(R=Object.fromEntries(await Promise.all(k.map(async u=>{let x=(await Promise.all(this.config.preflights.filter(b=>(b.layer||"default")===u).map(async b=>await b.getCSS()))).filter(Boolean).join(l);return[u,x]}))));let g=u=>{if(j[u])return j[u];let h=Array.from(y).sort((x,b)=>{var T,F,w;return((T=this.parentOrders.get(x[0]))!=null?T:0)-((F=this.parentOrders.get(b[0]))!=null?F:0)||((w=x[0])==null?void 0:w.localeCompare(b[0]||""))||0}).map(([x,b])=>{let T=b.length,F=b.filter($=>{var z;return(((z=$[4])==null?void 0:z.layer)||"default")===u}).sort(($,z)=>{var Q;return $[0]-z[0]||((Q=$[1])==null?void 0:Q.localeCompare(z[1]||""))||0}).map($=>{var z;return[$[1]?xn($[1],n):$[1],$[2],!!((z=$[4])==null?void 0:z.noMerge)]}).map($=>[$[0]==null?$[0]:[$[0]],$[1],$[2]]);if(!F.length)return;let w=F.reverse().map(([$,z,Q],Jr)=>{if($&&this.config.mergeSelectors)for(let ue=Jr+1;ue<T;ue++){let ee=F[ue];if(!Q&&ee&&ee[0]&&ee[1]===z)return ee[0].push(...$),null}return $?`${[...new Set($)].join(`,${l}`)}{${z}}`:z}).filter(Boolean).reverse().join(l);return x?`${x}{${l}${w}${l}}`:w}).filter(Boolean).join(l);return o&&(h=[R[u],h].filter(Boolean).join(l)),j[u]=!s&&h?`/* layer: ${u} */${l}${h}`:h},_=(u=k,h)=>u.filter(x=>!(h==null?void 0:h.includes(x))).map(x=>g(x)||"").filter(Boolean).join(l);return{get css(){return _()},layers:k,getLayers:_,getLayer:g,matched:p}}matchVariants(t,r){let n=new Set,o=[],i=r||t,s=!1,a={rawSelector:t,theme:this.config.theme,generator:this};for(;;){s=!1;for(let l of this.config.variants){if(!l.multiPass&&n.has(l))continue;let f=l.match(i,a);if(!!f&&(typeof f=="string"&&(f={matcher:f}),f)){i=f.matcher,Array.isArray(f.parent)&&this.parentOrders.set(f.parent[0],f.parent[1]),o.push(f),n.add(l),s=!0;break}}if(!s)break;if(o.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,o]}applyVariants(t,r=t[4],n=t[1]){let o=[...r].sort((a,l)=>(a.order||0)-(l.order||0)),i=o.reduce((a,l)=>{var f;return((f=l.body)==null?void 0:f.call(l,a))||a},t[2]),s={selector:o.reduce((a,l)=>{var f;return((f=l.selector)==null?void 0:f.call(l,a,i))||a},bn(n)),entries:i,parent:o.reduce((a,l)=>Array.isArray(l.parent)?l.parent[0]:l.parent||a,void 0)};for(let a of this.config.postprocess)a(s);return s}constructCustomCSS(t,r,n){r=H(r);let{selector:o,entries:i,parent:s}=this.applyVariants([0,n||t.rawSelector,r,void 0,t.variantHandlers]),a=`${o}{${re(i)}}`;return s?`${s}{${a}}`:a}async parseUtil(t,r,n=!1){var p,y;let[o,i,s]=typeof t=="string"?this.matchVariants(t):t,a=this.config.rulesStaticMap[i];if(a&&a[1]&&(n||!((p=a[2])==null?void 0:p.internal)))return[[a[0],o,H(a[1]),a[2],s]];r.variantHandlers=s;let{rulesDynamic:l,rulesSize:f}=this.config;for(let d=f;d>=0;d--){let m=l[d];if(!m||((y=m[2])==null?void 0:y.internal)&&!n)continue;let[j,k,R]=m,g=i.match(j);if(!g)continue;let _=await k(g,r);if(!_)continue;if(typeof _=="string")return[[d,_,R]];let u=He(_).filter(h=>h.length);if(u.length)return u.map(h=>[d,o,h,R,s])}}stringifyUtil(t){if(!t)return;if(be(t))return[t[0],void 0,t[1],void 0,t[2]];let{selector:r,entries:n,parent:o}=this.applyVariants(t),i=re(n);if(!!i)return[t[0],r,i,o,t[3]]}expandShortcut(t,r,n=3){if(n===0)return;let o,i;for(let s of this.config.shortcuts)if(Ke(s)){if(s[0]===t){o=o||s[2],i=s[1];break}}else{let a=t.match(s[0]);if(a&&(i=s[1](a,r)),i){o=o||s[2];break}}if(typeof i=="string"&&(i=Ye(i).split(/\s+/g)),!!i)return[i.flatMap(s=>{var a;return((a=this.expandShortcut(s,r,n-1))==null?void 0:a[0])||[s]}).filter(s=>s!==""),o]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new ye,s=(await Promise.all(ne(n).map(async f=>{let p=await this.parseUtil(f,r,!0);return p||Xe(`unmatched utility "${f}" in shortcut "${t[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((f,p)=>f[0]-p[0]),[a,,l]=t;for(let f of s){if(be(f))continue;let{selector:p,entries:y,parent:d}=this.applyVariants(f,[...f[4],...l],a);i.getFallback(p,d,[[],f[0]])[0].push(y)}return i.map(([f,p],y,d)=>{let m=f.filter(k=>k.some(R=>R[0]===D)),j=f.filter(k=>k.every(R=>R[0]!==D));return[...m,j.flat(1)].map(k=>{let R=re(k);if(R)return[p,y,R,d,o]})}).flat(1).filter(Boolean)}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function tt(e,t){return new et(e,t)}var rt=/ \$\$ /,hn=e=>e.match(rt);function xn(e,t){return hn(e)?e.replace(rt,t?` ${t} `:" "):t?`${t} ${e}`:e}var nt=/^\[(.+?)(~?=)"(.*)"\]$/;function bn(e){return e.startsWith("[")&&nt.test(e)?e.replace(nt,(t,r,n,o)=>`[${te(r)}${n}"${te(o)}"]`):`.${te(e)}`}var ve={};nn(ve,{auto:()=>vn,bracket:()=>jn,cssvar:()=>Tn,degree:()=>An,fraction:()=>En,global:()=>On,number:()=>Rn,numberWithUnit:()=>wn,percent:()=>Cn,properties:()=>Pn,px:()=>kn,rem:()=>Sn,time:()=>zn});var yn=["color","border-color","background-color","flex-grow","flex","flex-shrink","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","backround-position","left","right","top","bottom","object-position","max-height","min-height","max-width","min-width","height","width","border-width","margin","padding","outline-width","outline-offset","font-size","line-height","text-indent","vertical-align","border-spacing","letter-spacing","word-spacing","stroke","filter","backdrop-filter","fill","mask","mask-size","mask-border","clip-path","clip"],we=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax)?$/i,$n=/^(-?[0-9.]+)$/i,ot=/^(px)$/i;function A(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function wn(e){let t=e.match(we);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(n&&!Number.isNaN(o))return`${A(o)}${n}`}function vn(e){if(e==="auto"||e==="a")return"auto"}function Sn(e){if(e.match(ot))return`1${e}`;let t=e.match(we);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${A(o)}${n}`:`${A(o/4)}rem`}function kn(e){if(e.match(ot))return`1${e}`;let t=e.match(we);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${A(o)}${n}`:`${A(o)}px`}function Rn(e){if(!$n.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return A(t)}function Cn(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${A(t/100)}`}function En(e){if(e==="full")return"100%";let[t,r]=e.split("/"),n=parseFloat(t)/parseFloat(r);if(!Number.isNaN(n))return`${A(n*100)}%`}function jn(e){if(e&&e[0]==="["&&e[e.length-1]==="]")return e.slice(1,-1).replace(/_/g," ").replace(/calc\((.*)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}function Tn(e){if(e.startsWith("$"))return`var(--${e.slice(1)})`}function zn(e){let t=e.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${A(o)}${n}`:`${A(o)}ms`}function An(e){let t=e.match(/^(-?[0-9.]+)(deg)?$/i);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${A(o)}${n}`:`${A(o)}deg`}function On(e){if(["inherit","initial","revert","unset"].includes(e))return e}function Pn(e){for(let t of e.split(","))if(!yn.includes(t))return;return e}var c=Je(ve);var E=(e,t)=>{let r=new RegExp(`^${L(e)}[:-]`);return n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),selector:t}}},P=(e,t)=>{let r=new RegExp(`^${L(e)}[:-]`);return n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),parent:t}}};function Se(e){return e.charAt(0).toUpperCase()+e.slice(1)}var V=e=>([t,r,n])=>{let o=c.bracket.auto.rem.fraction.cssvar(n);if(o!==void 0)return M[r].map(i=>[`${e}${i}`,o])},ke=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,n=>n.slice(1).toUpperCase())]},oe=(e,t)=>{let[r,n]=e.split(/(?:\/|:)/),o=r.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[i]=o;if(!i)return;let s,a=c.bracket(r),l=a||r;l.startsWith("#")?s=l.slice(1):l.startsWith("hex-")?s=l.slice(4):r.startsWith("$")&&(s=c.cssvar(r)),s=s||a;let f="DEFAULT";if(!s){let m,[j]=o.slice(-1);j.match(/^\d+$/)?(f=j,m=ke(t,o.slice(0,-1))):(m=ke(t,o),m||([,f=f]=o,m=ke(t,[i]))),typeof m=="string"?s=m:f&&m&&(s=m[f])}let p=We(s),y=n?n[0]==="["?c.bracket.percent(n):parseFloat(n)/100:p==null?void 0:p[3],d=y!=null&&!Number.isNaN(y);return p&&(d?p[3]=typeof y=="string"&&!y.includes("%")?parseFloat(y):y:p.splice(3)),{opacity:n,name:i,no:f,color:s,rgba:p,alpha:d?y:void 0}},v=(e,t)=>([,r],{theme:n})=>{var f;let o=oe(r,n);if(!o)return;let{alpha:i,opacity:s,color:a,rgba:l}=o;if(!!a)return l?i!=null?{[e]:`rgba(${l.join(",")})`}:{[`--un-${t}-opacity`]:(f=s&&c.cssvar(s))!=null?f:1,[e]:`rgba(${l.join(",")},var(--un-${t}-opacity))`}:{[e]:a.replace("%alpha",`${i||1}`)}};var it=[[/^outline-(?:width-|size-)?(.+)$/,([,e])=>({"outline-width":c.bracket.fraction.auto.rem(e)})],[/^outline-(?:color-)?(.+)$/,v("outline-color","outline-color")],[/^outline-offset-(.+)$/,([,e])=>({"outline-offset":c.bracket.fraction.auto.rem(e)})],["outline",{"outline-style":"solid"}],[/^outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)$/,([,e])=>({"outline-style":e})],["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],st=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],Vn=e=>{var t;return(t=c.properties.auto.global(e))!=null?t:{contents:"contents",scroll:"scroll-position"}[e]},at=[[/^will-change-(.+)/,([,e])=>({"will-change":Vn(e)})]];var ct=[[/^(?:border|b)()(?:-(.+))?$/,I],[/^(?:border|b)-([xy])(?:-(.+))?$/,I],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,I],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,I],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,I],[/^(?:border|b)-()(?:width|size)-(.+)$/,N],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,N],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,N],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,N],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,N],[/^(?:border|b)-()(?:color-)?(.+)$/,G],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,G],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,G],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,G],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,G],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,q],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,q],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,q],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,q],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,q],[/^(?:border-)?(?:rounded|rd)()(?:-(.+))?$/,Y],[/^(?:border-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,Y],[/^(?:border-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,Y],[/^(?:border-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,Y],[/^(?:border-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,Y],["border-solid",{"border-style":"solid"}],["border-dashed",{"border-style":"dashed"}],["border-dotted",{"border-style":"dotted"}],["border-double",{"border-style":"double"}],["border-hidden",{"border-style":"hidden"}],["border-none",{"border-style":"none"}]],Mn=(e,{theme:t})=>{var r;return e!==void 0&&!!((r=oe(e,t))==null?void 0:r.color)},Un=e=>([,t],{theme:r})=>{var l,f;let n=oe(t,r);if(!n)return;let{alpha:o,opacity:i,color:s,rgba:a}=n;if(!!s)return a?o!=null?{[`border${e}-color`]:`rgba(${a.join(",")})`}:e===""?{"--un-border-opacity":(l=i&&c.cssvar(i))!=null?l:1,[`border${e}-color`]:`rgba(${a.join(",")},var(--un-border${e}-opacity))`}:{"--un-border-opacity":(f=i&&c.cssvar(i))!=null?f:1,[`--un-border${e}-opacity`]:"var(--un-border-opacity)",[`border${e}-color`]:`rgba(${a.join(",")},var(--un-border${e}-opacity))`}:{[`border${e}-color`]:s.replace("%alpha",`${o||1}`)}};function I(e){let t=N(e);if(t)return[...t,["border-style","solid"]]}function N([,e="",t="1"]){let r=c.bracket.px(t);if(e in M&&r!=null)return M[e].map(n=>[`border${n}-width`,r])}function G([,e="",t],r){if(e in M&&Mn(t,r))return Object.assign({},...M[e].map(n=>Un(n)(["",t],r)))}function q([,e="",t]){let r=c.bracket.percent(t);if(e in M&&r!=null)return M[e].map(n=>[`--un-border${n}-opacity`,r])}function Y([,e="",t="DEFAULT"],{theme:r}){var o;let n=((o=r.borderRadius)==null?void 0:o[t])||c.auto.rem.fraction.bracket.cssvar(t);if(e in de&&n!=null)return de[e].map(i=>[`border${i}-radius`,n])}var lt=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:c.bracket.percent.cssvar(e)})]],ft=[[/^(?:text|color|c)-(.+)$/,v("color","text")],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":c.bracket.percent.cssvar(e)})]],ut=[[/^bg-(.+)$/,v("background-color","bg")],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":c.bracket.percent(e)})]];var pt={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),opacity:"opacity",shadow:"box-shadow",transform:"transform"},dt=e=>{var t;return(t=c.properties(e))!=null?t:pt[e]},mt=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t="150"])=>{let r=e!=null?dt(e):[pt.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(r)return{"transition-property":r,"transition-timing-function":"cubic-bezier(0.4,0,0.2,1)","transition-duration":`${t}ms`}}],[/^(?:transition-)?delay-(.+)(?:s|ms)?$/,([,e])=>({"transition-delay":c.bracket.time(e)})],[/^(?:transition-)?duration-(.+)(?:s|ms)?$/,([,e])=>({"transition-duration":c.bracket.time(e)})],[/^ease-(.+)$/,([,e])=>({"transition-timing-function":c.bracket(e)})],["ease",{"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)"}],["ease-linear",{"transition-timing-function":"linear"}],["ease-in",{"transition-timing-function":"cubic-bezier(0.4, 0, 1, 1)"}],["ease-out",{"transition-timing-function":"cubic-bezier(0, 0, 0.2, 1)"}],["ease-in-out",{"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)"}],[/^(?:transition-)?property-(.+)$/,([,e])=>({"transition-property":c.global(e)||dt(e)})],["transition-property-none",{"transition-property":"none"}],["property-none",{"transition-property":"none"}],["transition-none",{transition:"none"}]];var gt=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^flex-(\[.+\])$/,([,e])=>({flex:c.bracket(e).replace(/\d+\/\d+/,t=>c.fraction(t))})],[/^(?:flex-)?shrink$/,()=>({"flex-shrink":1})],[/^(?:flex-)?shrink-0$/,()=>({"flex-shrink":0})],[/^(?:flex-)?grow$/,()=>({"flex-grow":1})],[/^(?:flex-)?grow-0$/,()=>({"flex-grow":0})],[/^(?:flex-)?basis-(.+)$/,([,e])=>({"flex-basis":c.bracket.fraction.auto.rem(e)})],["flex-row",{"flex-direction":"row"}],["flex-row-reverse",{"flex-direction":"row-reverse"}],["flex-col",{"flex-direction":"column"}],["flex-col-reverse",{"flex-direction":"column-reverse"}],["flex-wrap",{"flex-wrap":"wrap"}],["flex-wrap-reverse",{"flex-wrap":"wrap-reverse"}],["flex-nowrap",{"flex-wrap":"nowrap"}]];var ie="var(--un-empty,/*!*/ /*!*/)",ht=[["inline",{display:"inline"}],["block",{display:"block"}],["inline-block",{display:"inline-block"}],["contents",{display:"contents"}],["flow-root",{display:"flow-root"}],["list-item",{display:"list-item"}],["hidden",{display:"none"}]],xt=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],bt=[[/^cursor-(.+)$/,([,e])=>({cursor:e})]],yt=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],$t=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],wt=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],vt=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,e])=>({"white-space":e})]],St=[["content-empty",{content:'""'}],["content-none",{content:'""'}]],kt=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Rt=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],Ct=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}]],Et=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}]],jt=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto","font-smoothing":"auto"}]];var Re={[D]:"","--un-ring-offset-shadow":"0 0 #0000","--un-ring-shadow":"0 0 #0000","--un-shadow-inset":ie,"--un-shadow":"0 0 #0000"},Ce=(e,t)=>{let r=[];e=C(e);for(let n=0;n<e.length;n++){let[o,i]=e[n].split(/\s(\S+)$/);if(i.split("(").length!==i.split(")").length)return e;r.push(`${o} var(${t}, ${i})`)}return r},Tt=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.boxShadow)==null?void 0:n[e||"DEFAULT"];if(r)return[Re,{"--un-shadow":Ce(r,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"}]}],[/^shadow-(.+)$/,v("--un-shadow-color","shadow")],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":c.bracket.percent.cssvar(e)})],["shadow-inset",{"--un-shadow-inset":"inset"}]];var _n={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},zt=[[/^font-(\w+)$/,([,e],{theme:t})=>{var r;return{"font-family":(r=t.fontFamily)==null?void 0:r[e]}}],[/^text-(.+)$/,([,e="base"],{theme:t})=>{var n;let r=C((n=t.fontSize)==null?void 0:n[e]);if(r==null?void 0:r[0]){let[o,i="1"]=r;return{"font-size":o,"line-height":i}}return{"font-size":c.bracket.auto.rem(e)}}],[/^text-size-(.+)$/,([,e])=>({"font-size":c.bracket.auto.rem(e)})],[/^(?:font|fw)-?([^-]+)$/,([,e])=>({"font-weight":_n[e]||c.number(e)})],[/^(?:leading|lh)-([^-]+)$/,([,e],{theme:t})=>{var r;return{"line-height":((r=t.lineHeight)==null?void 0:r[e])||c.bracket.auto.rem(e)}}],[/^tracking-([^-]+)$/,([,e],{theme:t})=>{var r;return{"letter-spacing":((r=t.letterSpacing)==null?void 0:r[e])||c.bracket.auto.rem(e)}}],[/^word-spacing-([^-]+)$/,([,e],{theme:t})=>{var r;return{"word-spacing":((r=t.wordSpacing)==null?void 0:r[e])||c.bracket.auto.rem(e)}}]],At=[[/^tab(?:-([^-]+))?$/,([,e])=>{let t=c.bracket.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],Ot=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"text-indent":((r=t.textIndent)==null?void 0:r[e||"DEFAULT"])||c.bracket.cssvar.fraction.auto.rem(e)}}]],Pt=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"-webkit-text-stroke-width":((r=t.textStrokeWidth)==null?void 0:r[e||"DEFAULT"])||c.bracket.cssvar.px(e)}}],[/^text-stroke-(.+)$/,v("-webkit-text-stroke-color","text-stroke")],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":c.bracket.percent(e)})]],Vt=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.textShadow)==null?void 0:n[e||"DEFAULT"];return r!=null?{"--un-text-shadow":Ce(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":c.bracket.cssvar(e)}}],[/^text-shadow-color-(.+)$/,v("--un-text-shadow-color","text-shadow")],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":c.bracket.percent(e)})]];var Mt={"":"",x:"column-",y:"row-"},Ut=([,e="",t])=>{let r=c.bracket.auto.rem(t);if(r!=null)return{[`grid-${Mt[e]}gap`]:r,[`${Mt[e]}gap`]:r}},_t=[[/^(?:flex-|grid-)?gap-()([^-]+)$/,Ut],[/^(?:flex-|grid-)?gap-([xy])-([^-]+)$/,Ut]];var U=e=>e.replace("col","column"),Fn=(e,t)=>{var n;let r=(n=t.fontSize)==null?void 0:n[e];if(r!=null)return C(r)[0];switch(e){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return c.bracket.auto.rem(e)},Ft=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t])=>({[`grid-${U(e)}`]:c.bracket.auto(t)})],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${U(e)}`]:"1/-1"};let r=c.bracket.number(t);if(r!=null)return{[`grid-${U(e)}`]:`span ${r}/span ${r}`}}],[/^(?:grid-)?(row|col)-start-([\w.-]+)$/,([,e,t])=>({[`grid-${U(e)}-start`]:t})],[/^(?:grid-)?(row|col)-end-([\w.-]+)$/,([,e,t])=>({[`grid-${U(e)}-end`]:t})],[/^(?:grid-)?auto-(rows|cols)-([\w.-]+)$/,([,e,t],{theme:r})=>({[`grid-auto-${U(e)}`]:Fn(t,r)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-((?:row|col)(?:-dense)?)$/,([,e])=>({"grid-auto-flow":U(e).replace("-"," ")})],[/^grid-(rows|cols)-(\[.+\])$/,([,e,t])=>({[`grid-template-${U(e)}`]:c.bracket(t)})],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${U(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${U(e)}`]:`repeat(${t},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var Dt=["auto","hidden","clip","visible","scroll"],Nt=[[/^(?:overflow|of)-(.+)$/,([,e])=>Dt.includes(e)?{overflow:e}:void 0],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>Dt.includes(t)?{[`overflow-${e}`]:t}:void 0]];var Ee=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],Lt=[["justify-start",{"justify-content":"flex-start"}],["justify-end",{"justify-content":"flex-end"}],["justify-center",{"justify-content":"center"}],["justify-between",{"justify-content":"space-between"}],["justify-around",{"justify-content":"space-around"}],["justify-evenly",{"justify-content":"space-evenly"}],["justify-items-start",{"justify-items":"start"}],["justify-items-end",{"justify-items":"end"}],["justify-items-center",{"justify-items":"center"}],["justify-items-stretch",{"justify-items":"stretch"}],["justify-self-auto",{"justify-self":"auto"}],["justify-self-start",{"justify-self":"start"}],["justify-self-end",{"justify-self":"end"}],["justify-self-center",{"justify-self":"center"}],["justify-self-stretch",{"justify-self":"stretch"}]],Ht=[[/^order-(.+)$/,([,e])=>({order:c.bracket.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],Bt=[["content-center",{"align-content":"center"}],["content-start",{"align-content":"flex-start"}],["content-end",{"align-content":"flex-end"}],["content-between",{"align-content":"space-between"}],["content-around",{"align-content":"space-around"}],["content-evenly",{"align-content":"space-evenly"}],["items-start",{"align-items":"flex-start"}],["items-end",{"align-items":"flex-end"}],["items-center",{"align-items":"center"}],["items-baseline",{"align-items":"baseline"}],["items-stretch",{"align-items":"stretch"}],["self-auto",{"align-self":"auto"}],["self-start",{"align-self":"flex-start"}],["self-end",{"align-self":"flex-end"}],["self-center",{"align-self":"center"}],["self-stretch",{"align-self":"stretch"}],["self-baseline",{"align-self":"baseline"}]],Kt=[["place-content-center",{"place-content":"center"}],["place-content-start",{"place-content":"start"}],["place-content-end",{"place-content":"end"}],["place-content-between",{"place-content":"space-between"}],["place-content-around",{"place-content":"space-around"}],["place-content-evenly",{"place-content":"space-evenly"}],["place-content-stretch",{"place-content":"stretch"}],["place-items-start",{"place-items":"start"}],["place-items-end",{"place-items":"end"}],["place-items-center",{"place-items":"center"}],["place-items-stretch",{"place-items":"stretch"}],["place-self-auto",{"place-self":"auto"}],["place-self-start",{"place-self":"start"}],["place-self-end",{"place-self":"end"}],["place-self-center",{"place-self":"center"}],["place-self-stretch",{"place-self":"stretch"}]];function je(e){return c.bracket.fraction.cssvar.auto.rem(e)}function se([,e,t]){let r=je(t);if(r!=null&&e in pe)return pe[e].map(n=>[n.slice(1),r])}var Wt=[[/^(?:position-|pos-)?inset-(.+)$/,([,e])=>({inset:je(e)})],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,se],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,se],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,se],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,se],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t])=>({[e]:je(t)})]],It=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-none",{float:"none"}],["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-none",{clear:"none"}]],Gt=[["z-auto",{"z-index":"auto"}],[/^z-([^-]+)$/,([,e])=>({"z-index":c.number(e)})]],qt=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var Dn=S({"--un-ring-inset":ie,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-color":"rgba(147,197,253,0.5)"},Re),Yt=[[/^ring(?:-(.+))?$/,([,e])=>{let t=c.px(e||"1");if(t)return[Dn,{"--un-ring-offset-shadow":"var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)","--un-ring-shadow":`var(--un-ring-inset) 0 0 0 calc(${t} + var(--un-ring-offset-width)) var(--un-ring-color)`,"box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow, 0 0 #0000)"}]}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(.+)$/,([,e])=>({"--un-ring-offset-width":c.px(e||"1")})],[/^ring-(.+)$/,v("--un-ring-color","ring")],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":c.bracket.percent(e)})],[/^ring-offset-(.+)$/,v("--un-ring-offset-color","ring-offset")],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":c.bracket.percent(e)})],["ring-inset",{"--un-ring-inset":"inset"}]];var Nn={h:"height",w:"width",inline:"inline-size",block:"block-size"};function ae(e,t){return`${e||""}${Nn[t]}`}function Zt(e,t,r,n){var s;let o=ae(e,t).replace(/-(\w)/g,(a,l)=>l.toUpperCase()),i=(s=r[o])==null?void 0:s[n];if(i!=null)return i;switch(n){case"fit":case"max":case"min":return`${n}-content`}return c.bracket.cssvar.fraction.auto.rem(n)}var Xt=[[/^(min-|max-)?([wh])-(.+)$/,([,e,t,r],{theme:n})=>({[ae(e,t)]:Zt(e,t,n,r)})],[/^(min-|max-)?(block|inline)-(.+)$/,([,e,t,r],{theme:n})=>({[ae(e,t)]:Zt(e,t,n,r)})],[/^(min-|max-)?(w)-screen-(.+)$/,([,e,t,r],{theme:n})=>{var o;return{[ae(e,t)]:(o=n.breakpoints)==null?void 0:o[r]}}]];function Ln(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return c.bracket.cssvar.auto.number(e)}var Jt=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":Ln(e)})]];var Qt=[[/^pa?()-?(-?.+)$/,V("padding")],[/^p-?([xy])-?(-?.+)$/,V("padding")],[/^p-?([rltbse])-?(-?.+)$/,V("padding")],[/^p-(inline|block)-(-?.+)$/,V("padding")],[/^p-?([bi][se])-?(-?.+)$/,V("padding")]],er=[[/^ma?()-?(-?.+)$/,V("margin")],[/^m-?([xy])-?(-?.+)$/,V("margin")],[/^m-?([rltbse])-?(-?.+)$/,V("margin")],[/^m-(inline|block)-(-?.+)$/,V("margin")],[/^m-?([bi][se])-?(-?.+)$/,V("margin")]];var Hn={"--un-transform":["translate3d(var(--un-translate-x), var(--un-translate-y), var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" ")},tr={"--un-transform":["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","translateZ(var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" ")},Z=O(S({"--un-rotate":0,"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-scale-x":1,"--un-scale-y":1,"--un-scale-z":1,"--un-skew-x":0,"--un-skew-y":0,"--un-translate-x":0,"--un-translate-y":0,"--un-translate-z":0},tr),{[D]:""}),rr=[[/^origin-([-\w]{3,})$/,([,e])=>({"transform-origin":ge[e]})],[/^perspect-(.+)$/,([,e])=>{let t=c.px.numberWithUnit(e);if(t!=null)return{"-webkit-perspective":t,perspective:t}}],[/^perspect-origin-(.+)$/,([,e])=>{var r;let t=(r=c.bracket(e))!=null?r:e.length>=3?ge[e]:void 0;if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^translate-()(.+)$/,nr],[/^translate-([xyz])-(.+)$/,nr],[/^rotate-()(.+)$/,ir],[/^rotate(-[xyz])-(.+)$/,ir],[/^skew-()(.+)$/,sr],[/^skew-([xy])-(.+)$/,sr],[/^scale-()(.+)$/,or],[/^scale-([xyz])-(.+)$/,or],["preserve-3d",{"transform-style":"preserve-3d"}],["preserve-flat",{"transform-style":"flat"}],[/^transform$/,()=>[Z,{transform:"var(--un-transform)"}]],["transform-gpu",Hn],["transform-cpu",tr],["transform-none",{transform:"none"}]];function nr([,e,t]){let r=c.bracket.fraction.auto.rem(t);if(r!=null)return[Z,[...me[e].map(n=>[`--un-translate${n}`,r]),["transform","var(--un-transform)"]]]}function or([,e,t]){let r=c.bracket.fraction.percent(t);if(r!=null)return[Z,[...me[e].map(n=>[`--un-scale${n}`,r]),["transform","var(--un-transform)"]]]}function ir([,e,t]){let r=c.bracket.degree(t);if(r!=null)return[Z,{[`--un-rotate${e||""}`]:r,transform:"var(--un-transform)"}]}function sr([,e,t]){let r=c.bracket.degree(t);if(r!=null)return[Z,{[`--un-skew-${e}`]:r,transform:"var(--un-transform)"}]}var Bn={visible:"visibility",select:"user-select",vertical:"vertical-align",backface:"backface-visibility",whitespace:"white-space",break:"word-break",case:"text-transform",origin:"transform-origin","bg-opacity":"background-opacity",tab:"tab-size",underline:"text-decoration-thickness","underline-offset":"text-underline-offset","grid-cols":"grid-template-columns","grid-rows":"grid-template-rows","auto-flow":"grid-auto-flow","row-start":"grid-row-start","row-end":"grid-row-end",justify:"justify-content",content:"align-content",items:"align-items",self:"align-self",object:"object-fit"},ar=[[/^(.+)-\$(.+)$/,([,e,t])=>{let r=Bn[e];if(r)return{[r]:`var(--${t})`}}]],cr=[[/^\[(.+):(.+)\]$/,([,e,t])=>({[e]:c.bracket(`[${t}]`)})]];var lr=[[/^(where|\?)$/,(e,{constructCSS:t,generator:r})=>{if(r.userConfig.envMode==="dev")return`@keyframes __un_qm{0%{box-shadow:inset 4px 4px #ff1e90, inset -4px -4px #ff1e90}100%{box-shadow:inset 8px 8px #3399ff, inset -8px -8px #3399ff}}
|
|
3
|
+
${t({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]];var fr=[["underline",{"text-decoration-line":"underline"}],["overline",{"text-decoration-line":"overline"}],["line-through",{"text-decoration-line":"line-through"}],["decoration-underline",{"text-decoration-line":"underline"}],["decoration-line-through",{"text-decoration-line":"line-through"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,([,e])=>({"text-decoration-thickness":c.bracket.px(e)})],[/^(?:underline|decoration)-(auto|from-font)$/,([,e])=>({"text-decoration-thickness":e})],[/^(?:underline|decoration)-(.+)$/,(e,t)=>{let r=v("text-decoration-color","line")(e,t);if(r)return S({"-webkit-text-decoration-color":r["text-decoration-color"]},r)}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":c.bracket.percent(e)})],[/^underline-offset-(.+)$/,([,e])=>({"text-underline-offset":c.auto.bracket.px(e)})],[/^(?:underline|decoration)-(solid|double|dotted|dashed|wavy|inherit|initial|revert|unset)$/,([,e])=>({"text-decoration-style":e})],["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];var ur=[[/^fill-(.+)$/,v("fill","fill")],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":c.bracket.percent(e)})],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,([,e])=>({"stroke-width":c.bracket.fraction.px.number(e)})],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":c.bracket.number(e)})],[/^stroke-offset-(.+)$/,([,e])=>({"stroke-dashoffset":c.bracket.px.numberWithUnit(e)})],[/^stroke-(.+)$/,v("stroke","stroke")],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":c.bracket.percent(e)})],["stroke-cap-square",{"stroke-linecap":"square"}],["stroke-cap-round",{"stroke-linecap":"round"}],["stroke-cap-auto",{"stroke-linecap":"butt"}],["stroke-join-arcs",{"stroke-linejoin":"arcs"}],["stroke-join-bevel",{"stroke-linejoin":"bevel"}],["stroke-join-clip",{"stroke-linejoin":"miter-clip"}],["stroke-join-round",{"stroke-linejoin":"round"}],["stroke-join-auto",{"stroke-linejoin":"miter"}],["stroke-none",{stroke:"none"}]];var pr=[ar,cr,Qt,er,ht,lt,ut,ur,ct,St,zt,At,Ot,Rt,fr,Pt,Vt,Ct,Ne,ft,Et,jt,Tt,Yt,gt,Ft,_t,Ee,Xt,Jt,bt,xt,yt,$t,De,wt,vt,kt,Nt,it,st,Ee,Ht,Lt,Bt,Kt,Wt,It,Gt,qt,mt,rr,at,lr].flat(1);var Te={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},light:{50:"#fdfdfd",100:"#fcfcfc",200:"#fafafa",300:"#f8f9fa",400:"#f6f6f6",500:"#f2f2f2",600:"#f1f3f5",700:"#e9ecef",800:"#dee2e6",900:"#dde1e3"},dark:{50:"#4a4a4a",100:"#3c3c3c",200:"#323232",300:"#2d2d2d",400:"#222222",500:"#1f1f1f",600:"#1c1c1e",700:"#1b1b1b",800:"#181818",900:"#0f0f0f"},get lightblue(){return this.sky},get lightBlue(){return this.sky},get warmgray(){return this.stone},get warmGray(){return this.stone},get truegray(){return this.neutral},get trueGray(){return this.neutral},get coolgray(){return this.gray},get coolGray(){return this.gray},get bluegray(){return this.slate},get blueGray(){return this.slate}};Object.values(Te).forEach(e=>{typeof e!="string"&&(e.DEFAULT=e.DEFAULT||e[400],Object.keys(e).forEach(t=>{let r=+t/100;r===Math.round(r)&&(e[r]=e[t])}))});var dr={sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'].join(","),serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"].join(","),mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"].join(",")},mr={xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},gr={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},hr={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},xr={DEFAULT:["0 0 1px rgba(0,0,0,0.2)","0 0 1px rgba(1,0,5,0.1)"],sm:"1px 1px 3px rgba(36,37,47,0.25)",md:["0 1px 2px rgba(30,29,39,0.19)","1px 2px 4px rgba(54,64,147,0.18)"],lg:["3px 3px 6px rgba(0,0,0,0.26)","0 0 5px rgba(15,3,86,0.22)"],xl:["1px 1px 3px rgba(0,0,0,0.29)","2px 4px 7px rgba(73,64,125,0.35)"],none:"0 0 #0000"},br={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},ze={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},yr=ze;var $r={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},wr={DEFAULT:"0.25rem",none:"0px",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},vr={DEFAULT:["var(--un-shadow-inset) 0 1px 3px 0 rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 1px 2px -1px rgba(0,0,0,0.1)"],sm:"var(--un-shadow-inset) 0 1px 2px 0 rgba(0,0,0,0.05)",md:["var(--un-shadow-inset) 0 4px 6px -1px rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 2px 4px -2px rgba(0,0,0,0.1)"],lg:["var(--un-shadow-inset) 0 10px 15px -3px rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 4px 6px -4px rgba(0,0,0,0.1)"],xl:["var(--un-shadow-inset) 0 20px 25px -5px rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 8px 10px -6px rgba(0,0,0,0.1)"],"2xl":"var(--un-shadow-inset) 0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"};var Sr={DEFAULT:"8px","0":"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},kr={DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],sm:"0 1px 1px rgba(0,0,0,0.05)",md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"};var ce={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},Ae=O(S({auto:"auto"},ce),{screen:"100vw"}),X=O(S({none:"none"},ce),{screen:"100vw"}),Oe=O(S({auto:"auto"},ce),{screen:"100vh"}),J=O(S({none:"none"},ce),{screen:"100vh"});var Rr={width:Ae,height:Oe,maxWidth:X,maxHeight:J,minWidth:X,minHeight:J,inlineSize:Ae,blockSize:Oe,maxInlineSize:X,maxBlockSize:J,minInlineSize:X,minBlockSize:J,colors:Te,fontFamily:dr,fontSize:mr,breakpoints:$r,borderRadius:wr,lineHeight:br,letterSpacing:ze,wordSpacing:yr,boxShadow:vr,textIndent:gr,textShadow:xr,textStrokeWidth:hr,blur:Sr,dropShadow:kr};var Pe={},Cr=(e,{theme:t})=>{let r=Object.entries(t.breakpoints||{}).map(([n,o],i)=>[n,o,i]);for(let[n,o,i]of r){Pe[n]||(Pe[n]=new RegExp(`^((?:[al]t-)?${n}[:-])`));let s=e.match(Pe[n]);if(!s)continue;let[,a]=s,l=e.slice(a.length);if(l==="container")continue;let f="min",p=1e3;return a.startsWith("lt-")?(f="max",p-=i+1):p+=i+1,a.startsWith("at-")&&i<r.length-1?{matcher:l,parent:[`@media (min-width: ${o}) and (max-width: ${r[i+1][1]})`,p]}:{matcher:l,parent:[`@media (${f}-width: ${o})`,p]}}};var Er=[E("all",e=>`${e} *`),E("children",e=>`${e}>*`),E("next",e=>`${e}+*`),E("sibling",e=>`${e}+*`),E("siblings",e=>`${e}~*`),E("svg",e=>`${e} svg *`)];var jr=(e={})=>(e==null?void 0:e.dark)==="class"?[E("dark",t=>`.dark $$ ${t}`),E("light",t=>`.light $$ ${t}`)]:[P("dark","@media (prefers-color-scheme: dark)"),P("light","@media (prefers-color-scheme: light)")];var Tr=[E("rtl",e=>`[dir="rtl"] $$ ${e}`),E("ltr",e=>`[dir="ltr"] $$ ${e}`)];var zr={match(e){if(e.startsWith("!"))return{matcher:e.slice(1),body:t=>(t.forEach(r=>{r[1]&&(r[1]+=" !important")}),t)}}},Ar={match(e){if(e.startsWith("-"))return{matcher:e.slice(1),body:t=>(t.forEach(r=>{var n,o;r[0].startsWith("--un-scale")||((n=r[1])==null?void 0:n.toString())==="0"||(r[1]=(o=r[1])==null?void 0:o.toString().replace(/[0-9.]+(?:[a-z]+|%)?/,i=>`-${i}`))}),t)}}};var Or=[P("motion-reduce","@media (prefers-reduced-motion: reduce)"),P("motion-safe","@media (prefers-reduced-motion: no-preference)")];var Pr=[P("landscape","@media (orientation: landscape)"),P("portrait","@media (orientation: portrait)")];var Vr=P("print","@media print");var Kn="$$no-pseudo",le=Object.fromEntries(["any-link","link","visited","target",["open","[open]"],"hover","active","focus-visible","focus-within","focus","autofill","enabled","disabled","read-only","read-write","placeholder-shown","default","checked","indeterminate","valid","invalid","in-range","out-of-range","required","optional","root","empty",["even-of-type",":nth-of-type(even)"],["even",":nth-child(even)"],["odd-of-type",":nth-of-type(odd)"],["odd",":nth-child(odd)"],"first-of-type",["first",":first-child"],"last-of-type",["last",":last-child"],"only-child","only-of-type"].map(C)),Mr=Object.fromEntries(["placeholder","before","after","first-letter","first-line","selection","marker",["file","::file-selector-button"]].map(C)),Wn=["not","is","where","has"],In=Object.keys(Mr).join("|"),Ve=Object.keys(le).join("|"),Ur=Wn.join("|"),Gn=/(part-\[(.+)]:)(.+)/,qn=new RegExp(`^(${In})[:-]`),Yn=new RegExp(`^(${Ve})[:-]`),Zn=new RegExp(`^(${Ur})-(${Ve})[:-]`);function fe(e){return!e.find(t=>t[0]===Kn)||void 0}var _r=(e,t,r)=>{let n=new RegExp(`^${e}-((?:(${Ur})-)?(${Ve}))[:-]`),o=new RegExp(`^${L(t)}:`);return i=>{let s=i.match(n);if(s){let a=le[s[3]]||`:${s[3]}`;return s[2]&&(a=`:${s[2]}(${a})`),{matcher:i.slice(s[1].length+e.length+2),selector:(l,f)=>fe(f)&&o.test(l)?l.replace(o,`${t}${a}:`):`${t}${a}${r}${l}`}}}},Fr=e=>{let t=e.match(qn);if(t){let r=Mr[t[1]]||`::${t[1]}`;return{matcher:e.slice(t[1].length+1),selector:n=>`${n}${r}`}}},Dr={match:e=>{let t=e.match(Yn);if(t){let r=le[t[1]]||`:${t[1]}`;return{matcher:e.slice(t[1].length+1),selector:(n,o)=>fe(o)&&`${n}${r}`}}},multiPass:!0},Nr={match:e=>{let t=e.match(Zn);if(t){let r=t[1],n=le[t[2]]||`:${t[2]}`;return{matcher:e.slice(t[1].length+t[2].length+2),selector:(o,i)=>fe(i)&&`${o}:${r}(${n})`}}},multiPass:!0},Lr=(e={})=>{let t=!!(e==null?void 0:e.attributifyPseudo);return[{match:_r("group",t?'[group=""]':".group"," "),multiPass:!0},{match:_r("peer",t?'[peer=""]':".peer","~"),multiPass:!0}]},Hr={match:e=>{let t=e.match(Gn);if(t){let r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:(n,o)=>fe(o)&&`${n}::${r}`}}},multiPass:!0};var Br=e=>[Ar,zr,Vr,...Pr,...Or,Cr,...Er,Dr,Nr,...Lr(e),Fr,Hr,...jr(e),...Tr];var Xn=(e={})=>{var t,r;return e.dark=(t=e.dark)!=null?t:"class",e.attributifyPseudo=(r=e.attributifyPseudo)!=null?r:!1,{name:"@unocss/preset-mini",theme:Rr,rules:pr,variants:Br(e),options:e,postprocess:e.variablePrefix&&e.variablePrefix!=="un-"?Jn(e.variablePrefix):void 0}},Kr=Xn;function Jn(e){return t=>{t.entries.forEach(r=>{r[0]=r[0].replace(/^--un-/,`--${e}`),typeof r[1]=="string"&&(r[1]=r[1].replace(/var\(--un-/g,`var(--${e}`))})}}var Qn=["v-bind:",":"],Wr=/[\s'"`;]+/g,eo=/<\w[\w:\.$-]*\s((?:'[\s\S]*?'|"[\s\S]*?"|`[\s\S]*?`|\{[\s\S]*?\}|[\s\S]*?)*?)>/g,to=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=(["'])([^\2]*?)\2)?/g,Ir=e=>{var n,o;let t=(n=e==null?void 0:e.ignoreAttributes)!=null?n:[],r=(o=e==null?void 0:e.nonValuedAttribute)!=null?o:!0;return{name:"attributify",extract({code:i}){let s=Array.from(i.matchAll(eo)).flatMap(a=>Array.from((a[1]||"").matchAll(to))).flatMap(([,a,l,f])=>{if(t.includes(a))return[];for(let p of Qn)if(a.startsWith(p)){a=a.slice(p.length);break}return f?["class","className"].includes(a)?f.split(Wr).filter(K):f.split(Wr).filter(Boolean).map(p=>`[${a}~="${p}"]`):K(a)&&r!==!1?[`[${a}=""]`]:[]});return new Set(s)}}};var ro=/^(.+\:\!?)?(.*?)$/,Gr=(e={})=>{var n,o;let t=(n=e.prefix)!=null?n:"un-",r=(o=e.prefixedOnly)!=null?o:!1;return i=>{let s=Ie(i);if(!s)return;let a=s[1];if(a.startsWith(t))a=a.slice(t.length);else if(r)return;let l=s[2],[,f="",p=l]=l.match(ro)||[];return p==="~"||!p?`${f}${a}`:`${f}${a}-${p}`}};var no=(e={})=>{var n,o,i,s,a;e.strict=(n=e.strict)!=null?n:!1,e.prefix=(o=e.prefix)!=null?o:"un-",e.prefixedOnly=(i=e.prefixedOnly)!=null?i:!1,e.nonValuedAttribute=(s=e.nonValuedAttribute)!=null?s:!0,e.ignoreAttributes=(a=e.ignoreAttributes)!=null?a:[];let t=[Gr(e)],r=[Ir(e)];return e.strict||r.unshift(W),{name:"@unocss/preset-attributify",variants:t,extractors:r,options:e}},qr=no;var oo=e=>e.replace(/-(\w)/g,(t,r)=>r?r.toUpperCase():""),Yr=e=>e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase(),Zr=["Webkit","Moz","ms"];function Xr(e){let t={};function r(n){let o=t[n];if(o)return o;let i=oo(n);if(i!=="filter"&&i in e)return t[n]=Yr(i);i=Se(i);for(let s=0;s<Zr.length;s++){let a=`${Zr[s]}${i}`;if(a in e)return t[n]=Yr(Se(a))}return n}return({entries:n})=>n.forEach(o=>{o[0].startsWith("--")||(o[0]=r(o[0]))})}function Me(e={}){var R;if(typeof window=="undefined"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let t=e.defaults||{};if(e.autoPrefix){let g=t.postprocess;g||(g=[]),Array.isArray(g)||(g=[g]),g.unshift(Xr(document.createElement("div").style)),t.postprocess=g}Object.assign(e,(R=window.__unocss)==null?void 0:R.runtime);let r,n=!1,o,i=tt(window.__unocss||{},t),s=new Set,a;function l(){a!=null&&clearTimeout(a),a=setTimeout(f,0)}async function f(){let g=await i.generate(s);r||(r=document.createElement("style"),document.documentElement.prepend(r)),r.innerHTML=g.css}async function p(g){await i.applyExtractors(g,void 0,s),l()}async function y(){let g=document.body&&document.body.outerHTML;g&&await p(g)}let d=new MutationObserver(g=>{n||g.forEach(_=>{let u=_.target;if(u===r||o&&!o(u))return;let h=Array.from(u.attributes).map(b=>b.value?`${b.name}="${b.value}"`:b.name).join(" "),x=`<${u.tagName.toLowerCase()} ${h}>`;p(x)})}),m=!1;function j(){if(!m)return;let g=document.documentElement||document.body;!g||(d.observe(g,{childList:!0,subtree:!0,attributes:!0}),m=!0)}function k(){y(),j()}window.__unocss_runtime=window.__unocss_runtime={version:i.version,uno:i,extractAll:y,inspect(g){o=g},toggleObserver(g){g===void 0?n=!n:n=!!g}},k(),window.addEventListener("load",k),window.addEventListener("DOMContentLoaded",k)}Me({defaults:{presets:[Kr(),qr()]}});})();
|