@unocss/runtime 0.20.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core.global.js CHANGED
@@ -1,2 +1,2 @@
1
- (()=>{var st=Object.defineProperty,ot=Object.defineProperties;var at=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var ct=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable;var H=(r,t,e)=>t in r?st(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,_=(r,t)=>{for(var e in t||(t={}))ct.call(t,e)&&H(r,e,t[e]);if(z)for(var e of z(t))lt.call(t,e)&&H(r,e,t[e]);return r},I=(r,t)=>ot(r,at(t));function ut(r){let t=r.length,e=-1,n,i="",o=r.charCodeAt(0);for(;++e<t;){if(n=r.charCodeAt(e),n===0){i+="\uFFFD";continue}if(n===44){i+="\\2c ";continue}if(n>=1&&n<=31||n===127||e===0&&n>=48&&n<=57||e===1&&n>=48&&n<=57&&o===45){i+=`\\${n.toString(16)} `;continue}if(e===0&&t===1&&n===45){i+=`\\${r.charAt(e)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){i+=r.charAt(e);continue}i+=`\\${r.charAt(e)}`}return i}var M=ut;function E(r){return(Array.isArray(r)?r:Object.entries(r)).filter(t=>t[1]!=null)}function q(r){return Array.isArray(r)?r.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?r.map(t=>E(t)):[r]:[E(r)]}function ft(r){return r.filter(([t,e],n)=>{if(t.startsWith("$$"))return!1;for(let i=n-1;i>=0;i--)if(r[i][0]===t&&r[i][1]===e)return!1;return!0})}function v(r){return r==null?"":ft(r).map(([t,e])=>e!=null?`${t}:${e};`:void 0).filter(Boolean).join("")}function K(r){return r&&typeof r=="object"&&!Array.isArray(r)}function D(r,t){let e=r,n=t;if(Array.isArray(e)&&Array.isArray(n))return[...e,...n];if(Array.isArray(e))return[...e];let i=_({},e);return K(e)&&K(n)&&Object.keys(n).forEach(o=>{K(n[o])?o in e?i[o]=D(e[o],n[o]):Object.assign(i,{[o]:n[o]}):Object.assign(i,{[o]:n[o]})}),i}function N(r){return typeof r[0]=="string"}function W(r){return typeof r[0]=="string"}function O(r=[]){return Array.isArray(r)?r:[r]}function j(r){return Array.from(new Set(r))}var pt=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/;function Z(r=""){return pt.test(r)}function J(r){return typeof r=="function"?{match:r}:r}function k(r){return r.length===3}function Q(r){return r!=null}var L=class{_map=new Map;get(t,e){let n=this._map.get(t);if(n)return n.get(e)}getFallback(t,e,n){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.has(e)||i.set(e,n),i.get(e)}set(t,e,n){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.set(e,n),this}has(t,e){var n;return(n=this._map.get(t))==null?void 0:n.has(e)}delete(t,e){var n;return((n=this._map.get(t))==null?void 0:n.delete(e))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,n])=>Array.from(n.entries()).map(([i,o])=>t(o,e,i)))}};var dt=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function X(r){let t=[],e;for(;e=dt.exec(r);){let i=e.index,o=i+e[0].length,[,s,c,p]=e,u=p.split(/\s/g).map(g=>g.replace(/^(!?)(.*)/,`$1${s}${c}$2`)).join(" ");t.unshift([i,o,u])}let n=r;return t.forEach(([i,o,s])=>{n=n.slice(0,i)+s+n.slice(o)}),n}var Y=new Set;function tt(r){Y.has(r)||(console.warn("[unocss]",r),Y.add(r))}var ht=r=>r.split(/[\s'"`;>=]+/g).filter(Z),F={name:"split",order:0,extract({code:r}){return new Set(ht(r))}};function gt(r){return O(r).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var mt={shortcuts:-1,default:0};function B(r={},t={}){var C;let e=Object.assign({},t,r),n=(e.presets||[]).flatMap(O),i=[...n.filter(l=>l.enforce==="pre"),...n.filter(l=>!l.enforce),...n.filter(l=>l.enforce==="post")],o=Object.assign(mt,...n.map(l=>l.layers),r.layers);function s(l){return j([...i.flatMap(y=>O(y[l]||[])),...O(e[l]||[])])}let c=s("extractors");c.length||c.push(F),c.sort((l,y)=>(l.order||0)-(y.order||0));let p=s("rules"),u={},g=p.length;p.forEach((l,y)=>{N(l)&&(u[l[0]]=[y,l[1],l[2]],delete p[y])});let U=[...i.map(l=>l.theme||{}),e.theme||{}].reduce((l,y)=>D(l,y),{}),x=Object.assign({},...((C=e.presets)==null?void 0:C.map(l=>Array.isArray(l)?l:[l]).flat(1).map(l=>{var y;return(y=l.options)!=null?y:{}}))||[]);return I(_({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:l=>l},e),{presets:i,envMode:e.envMode||"build",shortcutsLayer:e.shortcutsLayer||"shortcuts",layers:o,theme:U,rulesSize:g,rulesDynamic:p,rulesStaticMap:u,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),variants:s("variants").map(J),shortcuts:gt(s("shortcuts")),extractors:c,options:x})}var et="0.20.0";var rt=class{constructor(t={},e={}){this.userConfig=t;this.defaults=e;this.config=B(t,e)}version=et;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,e){!t||(e&&(this.defaults=e),this.userConfig=t,this.config=B(t,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(t,e,n=new Set){let i={get original(){return t},code:t,id:e,options:this.config.options};for(let o of this.config.extractors){let s=await o.extract(i);s==null||s.forEach(c=>n.add(c))}return n}async generate(t,{id:e,scope:n,preflights:i=!0,safelist:o=!0,minify:s=!1}={}){let c=typeof t=="string"?await this.applyExtractors(t,e):t;o&&this.config.safelist.forEach(a=>c.add(a));let p=s?"":`
2
- `,u=new Set(["default"]),g=new Set,U=new Map,x=(a,d)=>{var f;this._cache.set(a,d),g.add(a);for(let h of d){let w=h[3]||"";U.has(w)||U.set(w,[]),U.get(w).push(h),((f=h[4])==null?void 0:f.layer)&&u.add(h[4].layer)}},C=a=>{this.blocked.add(a),this._cache.set(a,null)};await Promise.all(Array.from(c).map(async a=>{var R;if(g.has(a)||this.blocked.has(a))return;if(this._cache.has(a)){let S=this._cache.get(a);S&&x(a,S);return}let d=a;for(let S of this.config.preprocess)d=S(a);if(this.isBlocked(d))return C(d);let f=this.matchVariants(a,d);if(!f||this.isBlocked(f[1]))return C(a);let h={rawSelector:a,currentSelector:f[1],theme:this.config.theme,generator:this,variantHandlers:f[2],constructCSS:(...S)=>this.constructCustomCSS(h,...S),options:this.config.options},w=this.expandShortcut(f[1],h);if(w){let S=await this.stringifyShortcuts(f,h,w[0],w[1]);if(S==null?void 0:S.length)return x(a,S)}else{let S=(R=await this.parseUtil(f,h))==null?void 0:R.map(b=>this.stringifyUtil(b)).filter(Q);if(S==null?void 0:S.length)return x(a,S)}this._cache.set(a,null)})),i&&this.config.preflights.forEach(a=>{a.layer&&u.add(a.layer)});let l={},y=this.config.sortLayers(Array.from(u).sort((a,d)=>{var f,h;return((f=this.config.layers[a])!=null?f:0)-((h=this.config.layers[d])!=null?h:0)||a.localeCompare(d)})),m=a=>{if(l[a])return l[a];let d=Array.from(U).sort((f,h)=>{var S;let w=this.parentOrders.get(f[0]),R=this.parentOrders.get(h[0]);return w!==void 0&&R!==void 0?w-R:(S=f[0])==null?void 0:S.localeCompare(h[0]||"")}).map(([f,h])=>{let w=h.length,R=h.filter(b=>{var A;return(((A=b[4])==null?void 0:A.layer)||"default")===a}).sort((b,A)=>{var T;return b[0]-A[0]||((T=b[1])==null?void 0:T.localeCompare(A[1]||""))||0}).map(b=>[b[1]?xt(b[1],n):b[1],b[2]]);if(!R.length)return;let S=R.reverse().map(([b,A],T)=>{if(b&&this.config.mergeSelectors)for(let P=T+1;P<w;P++){let V=R[P];if(V&&V[0]&&V[1]===A)return V[0]=`${V[0]},${b}`,null}return b?`${b}{${A}}`:A}).filter(Boolean).reverse().join(p);return f?`${f}{${p}${S}${p}}`:S}).filter(Boolean).join(p);return i&&(d=[...this.config.preflights.filter(f=>(f.layer||"default")===a).map(f=>f.getCSS()).filter(Boolean),d].join(p)),l[a]=!s&&d?`/* layer: ${a} */${p}${d}`:d},$=(a=y,d)=>a.filter(f=>!(d==null?void 0:d.includes(f))).map(f=>m(f)||"").filter(Boolean).join(p);return{get css(){return $()},layers:y,getLayers:$,getLayer:m,matched:g}}matchVariants(t,e){let n=new Set,i=[],o=e||t,s=!1,c={rawSelector:t,theme:this.config.theme,generator:this,options:this.config.options};for(;;){s=!1;for(let p of this.config.variants){if(!p.multiPass&&n.has(p))continue;let u=p.match(o,c);if(!!u&&(typeof u=="string"&&(u={matcher:u}),u)){o=u.matcher,Array.isArray(u.parent)&&this.parentOrders.set(u.parent[0],u.parent[1]),i.push(u),n.add(p),s=!0;break}}if(!s)break;if(i.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,o,i]}applyVariants(t,e=t[4],n=t[1]){let i=e.reduce((s,c)=>{var p;return((p=c.body)==null?void 0:p.call(c,s))||s},t[2]),o={selector:e.reduce((s,c)=>{var p;return((p=c.selector)==null?void 0:p.call(c,s,i))||s},Ct(n)),entries:i,parent:e.reduce((s,c)=>Array.isArray(c.parent)?c.parent[0]:c.parent||s,void 0)};for(let s of this.config.postprocess)s(o);return o}constructCustomCSS(t,e,n){e=E(e);let{selector:i,entries:o,parent:s}=this.applyVariants([0,n||t.rawSelector,e,void 0,t.variantHandlers]),c=`${i}{${v(o)}}`;return s?`${s}{${c}}`:c}async parseUtil(t,e,n=!1){var g,U;let[i,o,s]=typeof t=="string"?this.matchVariants(t):t,c=this.config.rulesStaticMap[o];if(c&&c[1]&&(n||!((g=c[2])==null?void 0:g.internal)))return[[c[0],i,E(c[1]),c[2],s]];e.variantHandlers=s;let{rulesDynamic:p,rulesSize:u}=this.config;for(let x=u;x>=0;x--){let C=p[x];if(!C||((U=C[2])==null?void 0:U.internal)&&!n)continue;let[l,y,m]=C,$=o.match(l);if(!$)continue;let a=await y($,e);if(!a)continue;if(typeof a=="string")return[[x,a,m]];let d=q(a).filter(f=>f.length);if(d.length)return d.map(f=>[x,i,f,m,s])}}stringifyUtil(t){if(!t)return;if(k(t))return[t[0],void 0,t[1],void 0,t[2]];let{selector:e,entries:n,parent:i}=this.applyVariants(t),o=v(n);if(!!o)return[t[0],e,o,i,t[3]]}expandShortcut(t,e,n=3){if(n===0)return;let i,o;for(let s of this.config.shortcuts)if(W(s)){if(s[0]===t){i=i||s[2],o=s[1];break}}else{let c=t.match(s[0]);if(c&&(o=s[1](c,e)),o){i=i||s[2];break}}if(typeof o=="string"&&(o=X(o).split(/\s+/g)),!!o)return[o.flatMap(s=>{var c;return((c=this.expandShortcut(s,e,n-1))==null?void 0:c[0])||[s]}).filter(s=>s!==""),i]}async stringifyShortcuts(t,e,n,i={layer:this.config.shortcutsLayer}){let o=new L,s=(await Promise.all(j(n).map(async u=>{let g=await this.parseUtil(u,e,!0);return g||tt(`unmatched utility "${u}" in shortcut "${t[1]}"`),g||[]}))).flat(1).filter(Boolean).sort((u,g)=>u[0]-g[0]),[c,,p]=t;for(let u of s){if(k(u))continue;let{selector:g,entries:U,parent:x}=this.applyVariants(u,[...u[4],...p],c),C=o.getFallback(g,x,[[],u[0]]);C[0].push(...U),u[0]>C[1]&&(C[1]=u[0])}return o.map(([u,g],U,x)=>{let C=v(u);if(C)return[g,U,C,x,i]}).filter(Boolean)}isBlocked(t){return!t||this.config.blocklist.some(e=>typeof e=="string"?e===t:e.test(t))}};function nt(r,t){return new rt(r,t)}var it=/ \$\$ /,yt=r=>r.match(it);function xt(r,t){return yt(r)?r.replace(it,t?` ${t} `:" "):t?`${t} ${r}`:r}function Ct(r){return r.startsWith("[")?r.replace(/^\[(.+?)(~?=)"(.*)"\]$/,(t,e,n,i)=>`[${M(e)}${n}"${M(i)}"]`):`.${M(r)}`}function G(r={}){var y;if(typeof window=="undefined"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}Object.assign(r,(y=window.__unocss)==null?void 0:y.runtime);let t,e=!1,n,i=nt(window.__unocss||{},r.defaults),o=new Set,s;function c(){s!=null&&clearTimeout(s),s=setTimeout(p,0)}async function p(){let m=await i.generate(o);t||(t=document.createElement("style"),document.head.appendChild(t)),t.innerHTML=m.css}async function u(m){await i.applyExtractors(m,void 0,o),c()}async function g(){let m=document.body&&document.body.outerHTML;m&&await u(m)}let U=new MutationObserver(m=>{e||m.forEach($=>{let a=$.target;if(a===t||n&&!n(a))return;let d=Array.from(a.attributes).map(h=>h.value?`${h.name}="${h.value}"`:h.name).join(" "),f=`<${a.tagName.toLowerCase()} ${d}>`;u(f)})}),x=!1;function C(){if(!x)return;let m=document.documentElement||document.body;!m||(U.observe(m,{childList:!0,subtree:!0,attributes:!0}),x=!0)}function l(){g(),C()}window.__unocss_runtime=window.__unocss_runtime={version:i.version,uno:i,extractAll:g,inspect(m){n=m},toggleObserver(m){m===void 0?e=!e:e=!!m}},l(),window.addEventListener("load",l),window.addEventListener("DOMContentLoaded",l)}G();})();
1
+ (()=>{var st=Object.defineProperty,ot=Object.defineProperties;var at=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var ct=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable;var H=(r,t,e)=>t in r?st(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,v=(r,t)=>{for(var e in t||(t={}))ct.call(t,e)&&H(r,e,t[e]);if(z)for(var e of z(t))lt.call(t,e)&&H(r,e,t[e]);return r},I=(r,t)=>ot(r,at(t));function ut(r){let t=r.length,e=-1,n,i="",s=r.charCodeAt(0);for(;++e<t;){if(n=r.charCodeAt(e),n===0){i+="\uFFFD";continue}if(n===44){i+="\\2c ";continue}if(n>=1&&n<=31||n===127||e===0&&n>=48&&n<=57||e===1&&n>=48&&n<=57&&s===45){i+=`\\${n.toString(16)} `;continue}if(e===0&&t===1&&n===45){i+=`\\${r.charAt(e)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){i+=r.charAt(e);continue}i+=`\\${r.charAt(e)}`}return i}var M=ut;function E(r){return(Array.isArray(r)?r:Object.entries(r)).filter(t=>t[1]!=null)}function q(r){return Array.isArray(r)?r.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?r.map(t=>E(t)):[r]:[E(r)]}function ft(r){return r.filter(([t,e],n)=>{if(t.startsWith("$$"))return!1;for(let i=n-1;i>=0;i--)if(r[i][0]===t&&r[i][1]===e)return!1;return!0})}function O(r){return r==null?"":ft(r).map(([t,e])=>e!=null?`${t}:${e};`:void 0).filter(Boolean).join("")}function K(r){return r&&typeof r=="object"&&!Array.isArray(r)}function D(r,t){let e=r,n=t;if(Array.isArray(e)&&Array.isArray(n))return[...e,...n];if(Array.isArray(e))return[...e];let i=v({},e);return K(e)&&K(n)&&Object.keys(n).forEach(s=>{K(n[s])?s in e?i[s]=D(e[s],n[s]):Object.assign(i,{[s]:n[s]}):Object.assign(i,{[s]:n[s]})}),i}function N(r){return typeof r[0]=="string"}function W(r){return typeof r[0]=="string"}function T(r=[]){return Array.isArray(r)?r:[r]}function j(r){return Array.from(new Set(r))}var pt=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/;function Z(r=""){return pt.test(r)}function J(r){return typeof r=="function"?{match:r}:r}function k(r){return r.length===3}function Q(r){return r!=null}var L=class{_map=new Map;get(t,e){let n=this._map.get(t);if(n)return n.get(e)}getFallback(t,e,n){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.has(e)||i.set(e,n),i.get(e)}set(t,e,n){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.set(e,n),this}has(t,e){var n;return(n=this._map.get(t))==null?void 0:n.has(e)}delete(t,e){var n;return((n=this._map.get(t))==null?void 0:n.delete(e))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,n])=>Array.from(n.entries()).map(([i,s])=>t(s,e,i)))}};var dt=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function X(r){let t=[],e;for(;e=dt.exec(r);){let i=e.index,s=i+e[0].length,[,o,c,u]=e,l=u.split(/\s/g).map(m=>m.replace(/^(!?)(.*)/,`$1${o}${c}$2`)).join(" ");t.unshift([i,s,l])}let n=r;return t.forEach(([i,s,o])=>{n=n.slice(0,i)+o+n.slice(s)}),n}var Y=new Set;function tt(r){Y.has(r)||(console.warn("[unocss]",r),Y.add(r))}var ht=r=>r.split(/[\s'"`;>=]+/g).filter(Z),F={name:"split",order:0,extract({code:r}){return new Set(ht(r))}};function gt(r){return T(r).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var mt={shortcuts:-1,default:0};function B(r={},t={}){let e=Object.assign({},t,r),n=(e.presets||[]).flatMap(T),i=[...n.filter(f=>f.enforce==="pre"),...n.filter(f=>!f.enforce),...n.filter(f=>f.enforce==="post")],s=Object.assign(mt,...n.map(f=>f.layers),r.layers);function o(f){return j([...i.flatMap(h=>T(h[f]||[])),...T(e[f]||[])])}let c=o("extractors");c.length||c.push(F),c.sort((f,h)=>(f.order||0)-(h.order||0));let u=o("rules"),l={},m=u.length;u.forEach((f,h)=>{N(f)&&(l[f[0]]=[h,f[1],f[2]],delete u[h])});let C=[...i.map(f=>f.theme||{}),e.theme||{}].reduce((f,h)=>D(f,h),{});return I(v({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:f=>f},e),{presets:i,envMode:e.envMode||"build",shortcutsLayer:e.shortcutsLayer||"shortcuts",layers:s,theme:C,rulesSize:m,rulesDynamic:u,rulesStaticMap:l,preprocess:o("preprocess"),postprocess:o("postprocess"),preflights:o("preflights"),variants:o("variants").map(J),shortcuts:gt(o("shortcuts")),extractors:c})}var et="0.21.0";var rt=class{constructor(t={},e={}){this.userConfig=t;this.defaults=e;this.config=B(t,e)}version=et;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,e){!t||(e&&(this.defaults=e),this.userConfig=t,this.config=B(t,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(t,e,n=new Set){let i={get original(){return t},code:t,id:e};for(let s of this.config.extractors){let o=await s.extract(i);o==null||o.forEach(c=>n.add(c))}return n}async generate(t,{id:e,scope:n,preflights:i=!0,safelist:s=!0,minify:o=!1}={}){let c=typeof t=="string"?await this.applyExtractors(t,e):t;s&&this.config.safelist.forEach(a=>c.add(a));let u=o?"":`
2
+ `,l=new Set(["default"]),m=new Set,C=new Map,f=(a,d)=>{var p;this._cache.set(a,d),m.add(a);for(let g of d){let b=g[3]||"";C.has(b)||C.set(b,[]),C.get(b).push(g),((p=g[4])==null?void 0:p.layer)&&l.add(g[4].layer)}},h=a=>{this.blocked.add(a),this._cache.set(a,null)};await Promise.all(Array.from(c).map(async a=>{var w;if(m.has(a)||this.blocked.has(a))return;if(this._cache.has(a)){let y=this._cache.get(a);y&&f(a,y);return}let d=a;for(let y of this.config.preprocess)d=y(a);if(this.isBlocked(d))return h(d);let p=this.matchVariants(a,d);if(!p||this.isBlocked(p[1]))return h(a);let g={rawSelector:a,currentSelector:p[1],theme:this.config.theme,generator:this,variantHandlers:p[2],constructCSS:(...y)=>this.constructCustomCSS(g,...y)},b=this.expandShortcut(p[1],g);if(b){let y=await this.stringifyShortcuts(p,g,b[0],b[1]);if(y==null?void 0:y.length)return f(a,y)}else{let y=(w=await this.parseUtil(p,g))==null?void 0:w.map(x=>this.stringifyUtil(x)).filter(Q);if(y==null?void 0:y.length)return f(a,y)}this._cache.set(a,null)})),i&&this.config.preflights.forEach(a=>{a.layer&&l.add(a.layer)});let U={},$=this.config.sortLayers(Array.from(l).sort((a,d)=>{var p,g;return((p=this.config.layers[a])!=null?p:0)-((g=this.config.layers[d])!=null?g:0)||a.localeCompare(d)})),S=a=>{if(U[a])return U[a];let d=Array.from(C).sort((p,g)=>{var b,w,y;return((b=this.parentOrders.get(p[0]))!=null?b:0)-((w=this.parentOrders.get(g[0]))!=null?w:0)||((y=p[0])==null?void 0:y.localeCompare(g[0]||""))||0}).map(([p,g])=>{let b=g.length,w=g.filter(x=>{var R;return(((R=x[4])==null?void 0:R.layer)||"default")===a}).sort((x,R)=>{var _;return x[0]-R[0]||((_=x[1])==null?void 0:_.localeCompare(R[1]||""))||0}).map(x=>[x[1]?xt(x[1],n):x[1],x[2]]);if(!w.length)return;let y=w.reverse().map(([x,R],_)=>{if(x&&this.config.mergeSelectors)for(let P=_+1;P<b;P++){let V=w[P];if(V&&V[0]&&V[1]===R)return V[0]=`${V[0]},${u}${x}`,null}return x?`${x}{${R}}`:R}).filter(Boolean).reverse().join(u);return p?`${p}{${u}${y}${u}}`:y}).filter(Boolean).join(u);return i&&(d=[...this.config.preflights.filter(p=>(p.layer||"default")===a).map(p=>p.getCSS()).filter(Boolean),d].join(u)),U[a]=!o&&d?`/* layer: ${a} */${u}${d}`:d},A=(a=$,d)=>a.filter(p=>!(d==null?void 0:d.includes(p))).map(p=>S(p)||"").filter(Boolean).join(u);return{get css(){return A()},layers:$,getLayers:A,getLayer:S,matched:m}}matchVariants(t,e){let n=new Set,i=[],s=e||t,o=!1,c={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,c);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,e=t[4],n=t[1]){let i=[...e].sort((c,u)=>(c.order||0)-(u.order||0)),s=i.reduce((c,u)=>{var l;return((l=u.body)==null?void 0:l.call(u,c))||c},t[2]),o={selector:i.reduce((c,u)=>{var l;return((l=u.selector)==null?void 0:l.call(u,c,s))||c},Ct(n)),entries:s,parent:i.reduce((c,u)=>Array.isArray(u.parent)?u.parent[0]:u.parent||c,void 0)};for(let c of this.config.postprocess)c(o);return o}constructCustomCSS(t,e,n){e=E(e);let{selector:i,entries:s,parent:o}=this.applyVariants([0,n||t.rawSelector,e,void 0,t.variantHandlers]),c=`${i}{${O(s)}}`;return o?`${o}{${c}}`:c}async parseUtil(t,e,n=!1){var m,C;let[i,s,o]=typeof t=="string"?this.matchVariants(t):t,c=this.config.rulesStaticMap[s];if(c&&c[1]&&(n||!((m=c[2])==null?void 0:m.internal)))return[[c[0],i,E(c[1]),c[2],o]];e.variantHandlers=o;let{rulesDynamic:u,rulesSize:l}=this.config;for(let f=l;f>=0;f--){let h=u[f];if(!h||((C=h[2])==null?void 0:C.internal)&&!n)continue;let[U,$,S]=h,A=s.match(U);if(!A)continue;let a=await $(A,e);if(!a)continue;if(typeof a=="string")return[[f,a,S]];let d=q(a).filter(p=>p.length);if(d.length)return d.map(p=>[f,i,p,S,o])}}stringifyUtil(t){if(!t)return;if(k(t))return[t[0],void 0,t[1],void 0,t[2]];let{selector:e,entries:n,parent:i}=this.applyVariants(t),s=O(n);if(!!s)return[t[0],e,s,i,t[3]]}expandShortcut(t,e,n=3){if(n===0)return;let i,s;for(let o of this.config.shortcuts)if(W(o)){if(o[0]===t){i=i||o[2],s=o[1];break}}else{let c=t.match(o[0]);if(c&&(s=o[1](c,e)),s){i=i||o[2];break}}if(typeof s=="string"&&(s=X(s).split(/\s+/g)),!!s)return[s.flatMap(o=>{var c;return((c=this.expandShortcut(o,e,n-1))==null?void 0:c[0])||[o]}).filter(o=>o!==""),i]}async stringifyShortcuts(t,e,n,i={layer:this.config.shortcutsLayer}){let s=new L,o=(await Promise.all(j(n).map(async l=>{let m=await this.parseUtil(l,e,!0);return m||tt(`unmatched utility "${l}" in shortcut "${t[1]}"`),m||[]}))).flat(1).filter(Boolean).sort((l,m)=>l[0]-m[0]),[c,,u]=t;for(let l of o){if(k(l))continue;let{selector:m,entries:C,parent:f}=this.applyVariants(l,[...l[4],...u],c),h=s.getFallback(m,f,[[],l[0]]);h[0].push(...C),l[0]>h[1]&&(h[1]=l[0])}return s.map(([l,m],C,f)=>{let h=O(l);if(h)return[m,C,h,f,i]}).filter(Boolean)}isBlocked(t){return!t||this.config.blocklist.some(e=>typeof e=="string"?e===t:e.test(t))}};function nt(r,t){return new rt(r,t)}var it=/ \$\$ /,yt=r=>r.match(it);function xt(r,t){return yt(r)?r.replace(it,t?` ${t} `:" "):t?`${t} ${r}`:r}function Ct(r){return r.startsWith("[")?r.replace(/^\[(.+?)(~?=)"(.*)"\]$/,(t,e,n,i)=>`[${M(e)}${n}"${M(i)}"]`):`.${M(r)}`}function G(r={}){var $;if(typeof window=="undefined"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}Object.assign(r,($=window.__unocss)==null?void 0:$.runtime);let t,e=!1,n,i=nt(window.__unocss||{},r.defaults),s=new Set,o;function c(){o!=null&&clearTimeout(o),o=setTimeout(u,0)}async function u(){let S=await i.generate(s);t||(t=document.createElement("style"),document.head.appendChild(t)),t.innerHTML=S.css}async function l(S){await i.applyExtractors(S,void 0,s),c()}async function m(){let S=document.body&&document.body.outerHTML;S&&await l(S)}let C=new MutationObserver(S=>{e||S.forEach(A=>{let a=A.target;if(a===t||n&&!n(a))return;let d=Array.from(a.attributes).map(g=>g.value?`${g.name}="${g.value}"`:g.name).join(" "),p=`<${a.tagName.toLowerCase()} ${d}>`;l(p)})}),f=!1;function h(){if(!f)return;let S=document.documentElement||document.body;!S||(C.observe(S,{childList:!0,subtree:!0,attributes:!0}),f=!0)}function U(){m(),h()}window.__unocss_runtime=window.__unocss_runtime={version:i.version,uno:i,extractAll:m,inspect(S){n=S},toggleObserver(S){S===void 0?e=!e:e=!!S}},U(),window.addEventListener("load",U),window.addEventListener("DOMContentLoaded",U)}G();})();
package/mini.global.js CHANGED
@@ -1,3 +1,3 @@
1
- (()=>{var be=Object.defineProperty,Tr=Object.defineProperties;var Ar=Object.getOwnPropertyDescriptors;var ye=Object.getOwnPropertySymbols;var zr=Object.prototype.hasOwnProperty,Vr=Object.prototype.propertyIsEnumerable;var we=(e,t,r)=>t in e?be(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,v=(e,t)=>{for(var r in t||(t={}))zr.call(t,r)&&we(e,r,t[r]);if(ye)for(var r of ye(t))Vr.call(t,r)&&we(e,r,t[r]);return e},A=(e,t)=>Tr(e,Ar(t));var jr=(e,t)=>{for(var r in t)be(e,r,{get:t[r],enumerable:!0})};var Pr={mid:"middle",base:"baseline",btm:"bottom"},$e=[[/^(?:vertical|align|v)-(baseline|top|bottom|middle|text-top|text-bottom|mid|base|btm)$/,([,e])=>({"vertical-align":Pr[e]||e})]],Se=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var C={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],a:[""]},Z={t:["-top-left","-top-right"],r:["-top-right","-bottom-right"],b:["-bottom-left","-bottom-right"],l:["-bottom-left","-top-left"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""]},J={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]};function ve(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ur(e){let t=e.length,r=-1,n,o="",s=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&&s===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 K=Ur;function _(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Re(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>_(t)):[e]:[_(e)]}function Or(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 H(e){return e==null?"":Or(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Q(e){return e&&typeof e=="object"&&!Array.isArray(e)}function ee(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=v({},r);return Q(r)&&Q(n)&&Object.keys(n).forEach(s=>{Q(n[s])?s in r?o[s]=ee(r[s],n[s]):Object.assign(o,{[s]:n[s]}):Object.assign(o,{[s]:n[s]})}),o}function ke(e){return typeof e[0]=="string"}function Ce(e){return typeof e[0]=="string"}function z(e=[]){return Array.isArray(e)?e:[e]}function B(e){return Array.from(new Set(e))}var Mr=/^#?([\da-f]+)$/i;function Ee(e=""){let[,t]=e.match(Mr)||[];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 Fr=/^\[(.+?)~?="(.*)"\]$/,_r=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/;function Te(e){return e.match(Fr)}function D(e=""){return _r.test(e)}function Ae(e){return typeof e=="function"?{match:e}:e}function te(e){return e.length===3}function ze(e){return e!=null}var re=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,s])=>t(s,r,o)))}};var Dr=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function Ve(e){let t=[],r;for(;r=Dr.exec(e);){let o=r.index,s=o+r[0].length,[,i,a,l]=r,f=l.split(/\s/g).map(d=>d.replace(/^(!?)(.*)/,`$1${i}${a}$2`)).join(" ");t.unshift([o,s,f])}let n=e;return t.forEach(([o,s,i])=>{n=n.slice(0,o)+i+n.slice(s)}),n}var je=new Set;function Pe(e){je.has(e)||(console.warn("[unocss]",e),je.add(e))}function Ue(e){let t=function(n){var s;let o=((s=this.__options)==null?void 0:s.sequence)||[];this.__options.sequence=[];for(let i of o){let a=e[i](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 Nr=e=>e.split(/[\s'"`;>=]+/g).filter(D),N={name:"split",order:0,extract({code:e}){return new Set(Nr(e))}};function Lr(e){return z(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Kr={shortcuts:-1,default:0};function ne(e={},t={}){var S;let r=Object.assign({},t,e),n=(r.presets||[]).flatMap(z),o=[...n.filter(p=>p.enforce==="pre"),...n.filter(p=>!p.enforce),...n.filter(p=>p.enforce==="post")],s=Object.assign(Kr,...n.map(p=>p.layers),e.layers);function i(p){return B([...o.flatMap(y=>z(y[p]||[])),...z(r[p]||[])])}let a=i("extractors");a.length||a.push(N),a.sort((p,y)=>(p.order||0)-(y.order||0));let l=i("rules"),f={},d=l.length;l.forEach((p,y)=>{ke(p)&&(f[p[0]]=[y,p[1],p[2]],delete l[y])});let w=[...o.map(p=>p.theme||{}),r.theme||{}].reduce((p,y)=>ee(p,y),{}),$=Object.assign({},...((S=r.presets)==null?void 0:S.map(p=>Array.isArray(p)?p:[p]).flat(1).map(p=>{var y;return(y=p.options)!=null?y:{}}))||[]);return A(v({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:p=>p},r),{presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:s,theme:w,rulesSize:d,rulesDynamic:l,rulesStaticMap:f,preprocess:i("preprocess"),postprocess:i("postprocess"),preflights:i("preflights"),variants:i("variants").map(Ae),shortcuts:Lr(i("shortcuts")),extractors:a,options:$})}var Oe="0.20.0";var Me=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=ne(t,r)}version=Oe;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.config=ne(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,options:this.config.options};for(let s of this.config.extractors){let i=await s.extract(o);i==null||i.forEach(a=>n.add(a))}return n}async generate(t,{id:r,scope:n,preflights:o=!0,safelist:s=!0,minify:i=!1}={}){let a=typeof t=="string"?await this.applyExtractors(t,r):t;s&&this.config.safelist.forEach(u=>a.add(u));let l=i?"":`
2
- `,f=new Set(["default"]),d=new Set,w=new Map,$=(u,g)=>{var m;this._cache.set(u,g),d.add(u);for(let h of g){let T=h[3]||"";w.has(T)||w.set(T,[]),w.get(T).push(h),((m=h[4])==null?void 0:m.layer)&&f.add(h[4].layer)}},S=u=>{this.blocked.add(u),this._cache.set(u,null)};await Promise.all(Array.from(a).map(async u=>{var V;if(d.has(u)||this.blocked.has(u))return;if(this._cache.has(u)){let b=this._cache.get(u);b&&$(u,b);return}let g=u;for(let b of this.config.preprocess)g=b(u);if(this.isBlocked(g))return S(g);let m=this.matchVariants(u,g);if(!m||this.isBlocked(m[1]))return S(u);let h={rawSelector:u,currentSelector:m[1],theme:this.config.theme,generator:this,variantHandlers:m[2],constructCSS:(...b)=>this.constructCustomCSS(h,...b),options:this.config.options},T=this.expandShortcut(m[1],h);if(T){let b=await this.stringifyShortcuts(m,h,T[0],T[1]);if(b==null?void 0:b.length)return $(u,b)}else{let b=(V=await this.parseUtil(m,h))==null?void 0:V.map(R=>this.stringifyUtil(R)).filter(ze);if(b==null?void 0:b.length)return $(u,b)}this._cache.set(u,null)})),o&&this.config.preflights.forEach(u=>{u.layer&&f.add(u.layer)});let p={},y=this.config.sortLayers(Array.from(f).sort((u,g)=>{var m,h;return((m=this.config.layers[u])!=null?m:0)-((h=this.config.layers[g])!=null?h:0)||u.localeCompare(g)})),x=u=>{if(p[u])return p[u];let g=Array.from(w).sort((m,h)=>{var b;let T=this.parentOrders.get(m[0]),V=this.parentOrders.get(h[0]);return T!==void 0&&V!==void 0?T-V:(b=m[0])==null?void 0:b.localeCompare(h[0]||"")}).map(([m,h])=>{let T=h.length,V=h.filter(R=>{var j;return(((j=R[4])==null?void 0:j.layer)||"default")===u}).sort((R,j)=>{var L;return R[0]-j[0]||((L=R[1])==null?void 0:L.localeCompare(j[1]||""))||0}).map(R=>[R[1]?Wr(R[1],n):R[1],R[2]]);if(!V.length)return;let b=V.reverse().map(([R,j],L)=>{if(R&&this.config.mergeSelectors)for(let X=L+1;X<T;X++){let F=V[X];if(F&&F[0]&&F[1]===j)return F[0]=`${F[0]},${R}`,null}return R?`${R}{${j}}`:j}).filter(Boolean).reverse().join(l);return m?`${m}{${l}${b}${l}}`:b}).filter(Boolean).join(l);return o&&(g=[...this.config.preflights.filter(m=>(m.layer||"default")===u).map(m=>m.getCSS()).filter(Boolean),g].join(l)),p[u]=!i&&g?`/* layer: ${u} */${l}${g}`:g},P=(u=y,g)=>u.filter(m=>!(g==null?void 0:g.includes(m))).map(m=>x(m)||"").filter(Boolean).join(l);return{get css(){return P()},layers:y,getLayers:P,getLayer:x,matched:d}}matchVariants(t,r){let n=new Set,o=[],s=r||t,i=!1,a={rawSelector:t,theme:this.config.theme,generator:this,options:this.config.options};for(;;){i=!1;for(let l of this.config.variants){if(!l.multiPass&&n.has(l))continue;let f=l.match(s,a);if(!!f&&(typeof f=="string"&&(f={matcher:f}),f)){s=f.matcher,Array.isArray(f.parent)&&this.parentOrders.set(f.parent[0],f.parent[1]),o.push(f),n.add(l),i=!0;break}}if(!i)break;if(o.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,s,o]}applyVariants(t,r=t[4],n=t[1]){let o=r.reduce((i,a)=>{var l;return((l=a.body)==null?void 0:l.call(a,i))||i},t[2]),s={selector:r.reduce((i,a)=>{var l;return((l=a.selector)==null?void 0:l.call(a,i,o))||i},Ir(n)),entries:o,parent:r.reduce((i,a)=>Array.isArray(a.parent)?a.parent[0]:a.parent||i,void 0)};for(let i of this.config.postprocess)i(s);return s}constructCustomCSS(t,r,n){r=_(r);let{selector:o,entries:s,parent:i}=this.applyVariants([0,n||t.rawSelector,r,void 0,t.variantHandlers]),a=`${o}{${H(s)}}`;return i?`${i}{${a}}`:a}async parseUtil(t,r,n=!1){var d,w;let[o,s,i]=typeof t=="string"?this.matchVariants(t):t,a=this.config.rulesStaticMap[s];if(a&&a[1]&&(n||!((d=a[2])==null?void 0:d.internal)))return[[a[0],o,_(a[1]),a[2],i]];r.variantHandlers=i;let{rulesDynamic:l,rulesSize:f}=this.config;for(let $=f;$>=0;$--){let S=l[$];if(!S||((w=S[2])==null?void 0:w.internal)&&!n)continue;let[p,y,x]=S,P=s.match(p);if(!P)continue;let u=await y(P,r);if(!u)continue;if(typeof u=="string")return[[$,u,x]];let g=Re(u).filter(m=>m.length);if(g.length)return g.map(m=>[$,o,m,x,i])}}stringifyUtil(t){if(!t)return;if(te(t))return[t[0],void 0,t[1],void 0,t[2]];let{selector:r,entries:n,parent:o}=this.applyVariants(t),s=H(n);if(!!s)return[t[0],r,s,o,t[3]]}expandShortcut(t,r,n=3){if(n===0)return;let o,s;for(let i of this.config.shortcuts)if(Ce(i)){if(i[0]===t){o=o||i[2],s=i[1];break}}else{let a=t.match(i[0]);if(a&&(s=i[1](a,r)),s){o=o||i[2];break}}if(typeof s=="string"&&(s=Ve(s).split(/\s+/g)),!!s)return[s.flatMap(i=>{var a;return((a=this.expandShortcut(i,r,n-1))==null?void 0:a[0])||[i]}).filter(i=>i!==""),o]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let s=new re,i=(await Promise.all(B(n).map(async f=>{let d=await this.parseUtil(f,r,!0);return d||Pe(`unmatched utility "${f}" in shortcut "${t[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((f,d)=>f[0]-d[0]),[a,,l]=t;for(let f of i){if(te(f))continue;let{selector:d,entries:w,parent:$}=this.applyVariants(f,[...f[4],...l],a),S=s.getFallback(d,$,[[],f[0]]);S[0].push(...w),f[0]>S[1]&&(S[1]=f[0])}return s.map(([f,d],w,$)=>{let S=H(f);if(S)return[d,w,S,$,o]}).filter(Boolean)}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function Fe(e,t){return new Me(e,t)}var _e=/ \$\$ /,Br=e=>e.match(_e);function Wr(e,t){return Br(e)?e.replace(_e,t?` ${t} `:" "):t?`${t} ${e}`:e}function Ir(e){return e.startsWith("[")?e.replace(/^\[(.+?)(~?=)"(.*)"\]$/,(t,r,n,o)=>`[${K(r)}${n}"${K(o)}"]`):`.${K(e)}`}var ie={};jr(ie,{auto:()=>en,bracket:()=>an,cssvar:()=>cn,fraction:()=>sn,global:()=>fn,number:()=>nn,numberWithUnit:()=>Qr,percent:()=>on,properties:()=>un,px:()=>rn,rem:()=>tn,time:()=>ln});var Gr=["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"],qr=["backround-position","left","right","top","bottom","object-position"],Yr=["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"],Xr=["stroke","filter","backdrop-filter","fill","mask","mask-size","mask-border","clip-path","clip"],Zr=[...Gr,...qr,...Yr,...Xr],oe=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax)?$/i,Jr=/^(-?[0-9.]+)$/i,De=/^(px)$/i;function Qr(e){let t=e.match(oe);if(!t)return;let[,,r]=t;if(r)return e}function en(e){if(e==="auto"||e==="a")return"auto"}function tn(e){if(e.match(De))return`1${e}`;let t=e.match(oe);if(!t)return;let[,r,n]=t;if(n)return e;let o=parseFloat(r);if(!Number.isNaN(o))return`${o/4}rem`}function rn(e){if(e.match(De))return`1${e}`;let t=e.match(oe);if(!t)return;let[,r,n]=t;if(n)return e;let o=parseFloat(r);if(!Number.isNaN(o))return`${o}px`}function nn(e){if(!Jr.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return t}function on(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${t/100}`}function sn(e){if(e==="full")return"100%";let[t,r]=e.split("/"),n=parseFloat(t)/parseFloat(r);if(!Number.isNaN(n))return`${n*100}%`}function an(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 cn(e){if(e.startsWith("$"))return`var(--${e.slice(1)})`}function ln(e){let t=Number(e.replace(/(s|ms)$/,""));if(!isNaN(t))return/(s|ms)$/.test(e)?e:`${e}ms`}function fn(e){if(["inherit","initial","revert","unset"].includes(e))return e}function un(e){if(e!==void 0){for(let t of e.split(","))if(!Zr.includes(t))return;return e}}var c=Ue(ie);var E=(e,t)=>{let r=new RegExp(`^(${e})[:-]`);return n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[1].length+1),selector:t}}};function Ne(e){return e.charAt(0).toUpperCase()+e.slice(1)}var U=e=>([t,r,n])=>{let o=c.bracket.auto.rem.fraction.cssvar(n);if(o!==void 0)return C[r].map(s=>[`${e}${s}`,o])},se=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,n=>n.slice(1).toUpperCase())]},M=(e,t)=>{let[r,n]=e.split(/(?:\/|:)/),o=r.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[s]=o;if(!s)return;let i,a=c.bracket(r),l=a||r;l.startsWith("#")&&(i=l.slice(1)),l.startsWith("hex-")&&(i=l.slice(4)),i=i||a;let f="DEFAULT";if(!i){let d,[w]=o.slice(-1);w.match(/^\d+$/)?(f=w,d=se(t,o.slice(0,-1))):(d=se(t,o),d||([,f=f]=o,d=se(t,[s]))),typeof d=="string"?i=d:f&&d&&(i=d[f])}return{opacity:n,name:s,no:f,color:i,rgba:Ee(i)}},k=(e,t)=>([,r],{theme:n})=>{let o=M(r,n);if(!o)return;let{opacity:s,color:i,rgba:a}=o;if(!i)return;let l=s?s[0]==="["?c.bracket.percent(s):parseFloat(s)/100:a==null?void 0:a[3];return a?l!=null&&!Number.isNaN(l)?(a[3]=typeof l=="string"&&!l.includes("%")?parseFloat(l):l,{[e]:`rgba(${a.join(",")})`}):{[`--un-${t}-opacity`]:1,[e]:`rgba(${a.slice(0,3).join(",")},var(--un-${t}-opacity))`}:{[e]:i.replace("%alpha",`${l||1}`)}};var Le=[[/^outline-(?:width-|size-)?(.+)$/,([,e])=>({"outline-width":c.bracket.fraction.auto.rem(e)})],[/^outline-(?:color-)?(.+)$/,k("outline-color","outline-color")],[/^outline-offset-(.+)$/,([,e])=>({"outline-offset":c.bracket.fraction.auto.rem(e)})],["outline",{"outline-style":"solid"}],[/^outline-(auto|dotted|dashed|solid|double|groove|ridge|inset|outset|inherit|initial|revert|unset)$/,([,e])=>({"outline-style":e})],["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],Ke=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],He=[[/^will-change-(.+)/,([,e])=>({"will-change":c.properties.global(e)})]];var Be=[[/^border$/,ae],[/^(?:border|b)()-(.+)$/,ae],[/^(?:border|b)-([^-]+)(?:-(.+))?$/,ae],[/^(?:border|b)()-size-(.+)$/,ce],[/^(?:border|b)-([^-]+)-size-(.+)$/,ce],[/^(?:border|b)()-(.+)$/,We],[/^(?:border|b)-([^-]+)(?:-(.+))?$/,We],[/^(?:border|b)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-border-opacity":c.bracket.percent(e)})],[/^(?:border|b)-([^-]+)-op(?:acity)?-?(.+)$/,([,e,t])=>{let r=c.bracket.percent(t),n=C[e];if(r!==void 0&&n)return n.map(o=>[`--un-border${o}-opacity`,r])}],[/^(?:border-)?(?:rounded|rd)$/,le],[/^(?:border-)?(?:rounded|rd)(?:-(.+))?$/,le],[/^(?:border-)?(?:rounded|rd)(?:-([^-]+))?(?:-(.+))?$/,le],["border-solid",{"border-style":"solid"}],["border-dashed",{"border-style":"dashed"}],["border-dotted",{"border-style":"dotted"}],["border-double",{"border-style":"double"}],["border-none",{"border-style":"none"}]],pn=(e,{theme:t})=>{var r;return e!==void 0&&!!((r=M(e,t))==null?void 0:r.color)},dn=e=>([,t],{theme:r})=>{let n=M(t,r);if(!n)return;let{opacity:o,color:s,rgba:i}=n;if(!s)return;let a=o?o[0]==="["?c.bracket.percent(o):parseFloat(o)/100:i==null?void 0:i[3];return i?a!=null&&!Number.isNaN(a)?(i[3]=typeof a=="string"&&!a.includes("%")?parseFloat(a):a,{[`border${e}-color`]:`rgba(${i.join(",")})`}):e===""?{"--un-border-opacity":1,[`border${e}-color`]:`rgba(${i.slice(0,3).join(",")},var(--un-border${e}-opacity))`}:{"--un-border-opacity":1,[`--un-border${e}-opacity`]:"var(--un-border-opacity)",[`border${e}-color`]:`rgba(${i.slice(0,3).join(",")},var(--un-border${e}-opacity))`}:{[`border${e}-color`]:s.replace("%alpha",`${a||1}`)}};function ae(e){let t=ce(e);if(t)return[...t,["border-style","solid"]]}function ce([,e,t]){let[r,n="1"]=C[e]?[e,t]:["",e],o=c.bracket.px(n);if(o!==void 0)return C[r].map(s=>[`border${s}-width`,o])}function We([,e,t],r){if(pn(t,r))return Object.assign({},...C[C[e]?e:""].map(n=>dn(n)(["",t],r)))}function le([,e,t],{theme:r}){var i;let[n,o="DEFAULT"]=Z[e]?[e,t]:["",e],s=((i=r.borderRadius)==null?void 0:i[o])||c.auto.rem.fraction.bracket.cssvar(o);if(s!==void 0)return Z[n].map(a=>[`border${a}-radius`,s])}var Ie=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:c.bracket.percent.cssvar(e)})]],Ge=[[/^(?:text|color|c)-(.+)$/,k("color","text")],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":c.bracket.percent.cssvar(e)})]],qe=[[/^bg-(.+)$/,k("background-color","bg")],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":c.bracket.percent(e)})]];var Ye=e=>c.properties(e)||(e==="all"?e:void 0),Xe=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e="all",t="150"])=>{let r=Ye(e);if(r)return{"transition-property":r,"transition-timing-function":"cubic-bezier(0.4,0,0.2,1)","transition-duration":`${t}ms`}}],[/^duration-(\d+)$/,([,e="150"])=>({"transition-duration":`${e}ms`})],["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-delay-(\d+)$/,([,e])=>({"transition-delay":`${e}ms`})],[/^transition-duration-(\d+)$/,([,e])=>({"transition-duration":`${e}ms`})],[/^(?:transition-)?property-(.+)$/,([,e])=>({"transition-property":c.global(e)||Ye(e)})],["transition-property-none",{"transition-property":"none"}],["property-none",{"transition-property":"none"}],["transition-none",{transition:"none"}]];var Ze=[["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-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 mn={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Je=[[/^font-(\w+)$/,([,e],{theme:t})=>{var n;let r=(n=t.fontFamily)==null?void 0:n[e];if(r)return{"font-family":r}}],[/^text-(.+)$/,([,e="base"],{theme:t})=>{var o;let r=c.bracket.auto.rem(e);if(r)return{"font-size":r};let n=z((o=t.fontSize)==null?void 0:o[e]);if(n==null?void 0:n[0]){let[s,i]=n;return{"font-size":s,"line-height":i}}}],[/^text-size-(.+)$/,([,e])=>{let t=c.bracket.auto.rem(e);if(t)return{"font-size":t}}],[/^(?:font|fw)-?([^-]+)$/,([,e])=>{let t=mn[e]||c.number(e);if(t)return{"font-weight":t}}],[/^(?:leading|lh)-([^-]+)$/,([,e],{theme:t})=>{var n;let r=((n=t.lineHeight)==null?void 0:n[e])||c.bracket.auto.rem(e);if(r!==null)return{"line-height":r}}],[/^tracking-([^-]+)$/,([,e],{theme:t})=>{var n;let r=((n=t.letterSpacing)==null?void 0:n[e])||c.bracket.auto.rem(e);if(r!==null)return{"letter-spacing":r}}],[/^word-spacing-([^-]+)$/,([,e],{theme:t})=>{var n;let r=((n=t.wordSpacing)==null?void 0:n[e])||c.bracket.auto.rem(e);if(r!==null)return{"word-spacing":r}}]],Qe=[[/^tab-?([^-]*)$/,([,e])=>{e=e||"4";let t=c.bracket.global.number(e);if(t!==null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],et=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=((n=t.textIndent)==null?void 0:n[e||"DEFAULT"])||c.bracket.cssvar.fraction.auto.rem(e);if(r!=null)return{"text-indent":r}}]],tt=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=((n=t.textStrokeWidth)==null?void 0:n[e||"DEFAULT"])||c.bracket.cssvar.px(e);if(r!=null)return{"-webkit-text-stroke-width":r}}],[/^text-stroke-(.+)$/,k("-webkit-text-stroke-color","text-stroke")],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":c.bracket.percent(e)})]],rt=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=((n=t.textShadow)==null?void 0:n[e||"DEFAULT"])||c.bracket.cssvar(e);if(r!=null)return{"text-shadow":r}}]];var nt=[[/^(?:flex-|grid-)?gap-(x-|y-)?([^-]+)$/,([,e="",t])=>{let r=c.bracket.auto.rem(t);if(r!=null){let n={"":"","x-":"column-","y-":"row-"}[e];return{[`grid-${n}gap`]:r,[`${n}gap`]:r}}}]];var gn=(e,t)=>{var r;return z(((r=t.fontSize)==null?void 0:r[e])||c.bracket.auto.rem(e))[0]},ot=(e,t)=>e==="min"?"min-content":e==="max"?"max-content":e==="fr"?"minmax(0,1fr)":gn(e,t),it=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?col-start-([\w.-]+)$/,([,e])=>({"grid-column-start":e})],[/^(?:grid-)?col-end-([\w.]+)$/,([,e])=>({"grid-column-end":e})],[/^(?:grid-)?row-start-([\w.-]+)$/,([,e])=>({"grid-row-start":e})],[/^(?:grid-)?row-end-([\w.-]+)$/,([,e])=>({"grid-row-end":e})],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t])=>{let r=e==="row"?"grid-row":"grid-column",n=c.bracket(t);if(n)return{[r]:n};let o=t.split("-");if(o.length===1&&o[0]==="auto")return{[r]:o[0]};if(o[0]==="span"){if(o[1]==="full")return{[r]:"1/-1"};if(n=c.number.bracket(o[1]),n)return{[r]:`span ${n}/span ${n}`}}}],[/^(?:grid-)?auto-cols-([\w.-]+)$/,([,e],{theme:t})=>({"grid-auto-columns":ot(e,t)})],[/^(?:grid-)?auto-flow-([\w.-]+)$/,([,e])=>({"grid-auto-flow":e.replace("col","column").split("-").join(" ")})],[/^(?:grid-)?auto-rows-([\w.-]+)$/,([,e],{theme:t})=>({"grid-auto-rows":ot(e,t)})],[/^grid-cols-(.+)$/,([,e])=>({"grid-template-columns":c.bracket(e)})],[/^grid-rows-(.+)$/,([,e])=>({"grid-template-rows":c.bracket(e)})],[/^grid-cols-minmax-([\w.-]+)$/,([,e])=>({"grid-template-columns":`repeat(auto-fill,minmax(${e},1fr))`})],[/^grid-rows-minmax-([\w.-]+)$/,([,e])=>({"grid-template-rows":`repeat(auto-fill,minmax(${e},1fr))`})],[/^grid-cols-(\d+)$/,([,e])=>({"grid-template-columns":`repeat(${e},minmax(0,1fr))`})],[/^grid-rows-(\d+)$/,([,e])=>({"grid-template-rows":`repeat(${e},minmax(0,1fr))`})]];var st=["auto","hidden","visible","scroll"],at=[[/^(?:overflow|of)-(.+)$/,([,e])=>st.includes(e)?{overflow:e}:void 0],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>st.includes(t)?{[`overflow-${e}`]:t}:void 0]];var W=["auto","start","end","center","stretch"],fe=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],ct=[["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"}],...W.map(e=>[`justify-items-${e}`,{"justify-items":e}]),...W.map(e=>[`justify-self-${e}`,{"justify-self":e}])],lt=[[/^order-(.+)$/,([,e])=>({order:c.bracket.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],ft=[["content-start",{"align-content":"flex-start"}],["content-end",{"align-content":"flex-end"}],["content-center",{"align-content":"center"}],["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"}]],ut=[["place-content-start",{"place-content":"start"}],["place-content-end",{"place-content":"end"}],["place-content-center",{"place-content":"center"}],["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"}],...W.map(e=>[`place-items-${e}`,{"place-items":e}]),...W.map(e=>[`place-self-${e}`,{"place-self":e}])];function pt(e){var t;return(t={auto:"auto",full:"100%"}[e])!=null?t:c.bracket.fraction.cssvar.auto.rem(e)}var dt=[[/^(?:position-|pos-)?(top|left|right|bottom|inset)-(.+)$/,([,e,t])=>({[e]:pt(t)})],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,([,e,t])=>{let r=pt(t);if(r!=null&&e in C)return C[e].map(n=>[n.slice(1),r])}]],mt=[["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)})]],ht=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var xt="var(--un-empty,/*!*/ /*!*/)",bt=[["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"}]],yt=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],wt=[[/^cursor-(.+)$/,([,e])=>({cursor:e})]],$t=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],St=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],vt=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],Rt=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,e])=>({"white-space":e})]],kt=[["content-empty",{content:'""'}]],Ct=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-word",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Et=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],Tt=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}]],At=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}]],zt=[["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 Vt=[[/^ring-?(.*)$/,([,e])=>{let t=c.px(e||"1");if(t)return{"--un-ring-inset":xt,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-color":"rgba(59, 130, 246, .5)","--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)`,"-webkit-box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow, 0 0 #0000)","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])=>{let t=c.px(e||"1");if(t)return{"--un-ring-offset-width":t}}],[/^ring-(.+)$/,k("--un-ring-color","ring")],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":c.bracket.percent(e)})],[/^ring-offset-(.+)$/,k("--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 hn=(e,t)=>{let r=M(e,t);if(!r)return;let{color:n,rgba:o}=r;if(!!n)return o?{"--un-shadow-color":`${o.slice(0,3).join(",")}`}:{"--un-shadow-color":n}},jt=[[/^shadow-?(.*)$/,([,e],{theme:t})=>{var n;let r=(n=t.boxShadow)==null?void 0:n[e||"DEFAULT"];if(r)return{"--un-shadow-color":"0,0,0","--un-shadow":r,"box-shadow":"var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"}}],[/^shadow-(.+)$/,([,e],{theme:t})=>hn(e,t)]];function Pt(e,t){return`${e?`${e}-`:""}${t==="h"?"height":"width"}`}function xn(e,t,r,n){var s;let o=`${t==="h"?"height":"width"}`;return e&&(o=`${e}${Ne(o)}`),(s=r[o])==null?void 0:s[n]}var Ut=[[/^(?:(min|max)-)?(w|h)-(.+)$/,([,e,t,r],{theme:n})=>{let o=xn(e,t,n,r)||c.bracket.cssvar.fraction.auto.rem(r);if(o!=null)return{[Pt(e,t)]:o}}],[/^(?:(min|max)-)?(w)-screen-(.+)$/,([,e,t,r],{theme:n})=>{var s;let o=(s=n.breakpoints)==null?void 0:s[r];if(o!=null)return{[Pt(e,t)]:o}}]],Ot=[["aspect-ratio-auto",{"aspect-ratio":"auto"}],[/^aspect-ratio-(.+)$/,([,e])=>{let t=(/^\d+\/\d+$/.test(e)?e:null)||c.bracket.cssvar.number(e);if(t!=null)return{"aspect-ratio":t}}]];var Mt=[[/^pa?()-?(-?.+)$/,U("padding")],[/^p-?([xy])-?(-?.+)$/,U("padding")],[/^p-?([rltbse])-?(-?.+)$/,U("padding")]],Ft=[[/^ma?()-?(-?.+)$/,U("margin")],[/^m-?([xy])-?(-?.+)$/,U("margin")],[/^m-?([rltbse])-?(-?.+)$/,U("margin")]];var I="$$no-pseudo",G=Object.fromEntries(["any-link","link","visited","target","hover","active","focus-visible","focus-within","focus","autofill","enabled","disabled","read-only","read-write","placeholder-shown","default","checked","indeterminate","valid","invalid","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(z)),bn=["placeholder","before","after","first-letter","first-line","selection"],yn=["not","is","where","has"],wn=/(part-\[(.+)]:)(.+)/,$n=new RegExp(`^(${bn.join("|")})[:-]`),ue=Object.keys(G).join("|"),_t=yn.join("|"),Sn=new RegExp(`^(${ue})[:-]`),vn=new RegExp(`^(${_t})-(${ue})[:-]`);function q(e){return!e.find(t=>t[0]===I)||void 0}var Dt=(e,t,r)=>{let n=new RegExp(`^${e}-((?:(${_t})-)?(${ue}))[:-]`),o=new RegExp(`^${ve(t)}:`);return s=>{let i=s.match(n);if(i){let a=G[i[3]]||i[3];return i[2]&&(a=`${i[2]}(:${a})`),{matcher:s.slice(i[1].length+e.length+2),selector:(l,f)=>q(f)&&o.test(l)?l.replace(o,`${t}:${a}:`):`${t}:${a}${r}${l}`}}}},Nt=e=>{let t=e.match($n);if(t)return{matcher:e.slice(t[1].length+1),selector:r=>`${r}::${t[1]}`}},Lt={match:e=>{let t=e.match(Sn);if(t){let r=G[t[1]]||t[1];return{matcher:e.slice(t[1].length+1),selector:(n,o)=>q(o)&&`${n}:${r}`}}},multiPass:!0},Kt={match:e=>{let t=e.match(vn);if(t){let r=t[1],n=G[t[2]]||t[2];return{matcher:e.slice(t[1].length+t[2].length+2),selector:(o,s)=>q(s)&&`${o}:${r}(:${n})`}}},multiPass:!0},Ht={match:(e,{options:{attributifyPseudo:t}})=>{let r=Dt("group",t?'[group=""]':".group"," ")(e);if(r)return r;let n=Dt("peer",t?'[peer=""]':".peer","~")(e);if(n)return n},multiPass:!0},Bt={match:e=>{let t=e.match(wn);if(t){let r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:(n,o)=>q(o)&&`${n}::${r}`}}},multiPass:!0};var Rn={transform:"rotate(var(--un-rotate)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) translate3d(var(--un-translate-x), var(--un-translate-y), var(--un-translate-z))",[I]:""},Wt={transform:"rotate(var(--un-rotate)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z))",[I]:""},O=v({"--un-rotate":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},Wt),It=[["transform",O],[/^preserve-(3d|flat)$/,([,e])=>({"transform-style":e==="3d"?`preserve-${e}`:e})],[/^translate()-(.+)$/,Gt],[/^translate-([xyz])-(.+)$/,Gt],[/^scale()-(.+)$/,qt],[/^scale-([xyz])-(.+)$/,qt],[/^rotate-(.+)$/,Cn],[/^rotate-((?!\[)[^-]+?)(?:deg)?$/,kn],[/^skew-([xy])-(.+)$/,Tn],[/^skew-([xy])-((?!\[)[^-]+?)(?:deg)?$/,En],["transform-gpu",Rn],["transform-cpu",Wt],["transform-none",{transform:"none"}],["origin-center",{"transform-origin":"center"}],["origin-top",{"transform-origin":"top"}],["origin-top-right",{"transform-origin":"top right"}],["origin-right",{"transform-origin":"right"}],["origin-bottom-right",{"transform-origin":"bottom right"}],["origin-bottom",{"transform-origin":"bottom"}],["origin-bottom-left",{"transform-origin":"bottom left"}],["origin-left",{"transform-origin":"left"}],["origin-top-left",{"transform-origin":"top left"}]];function Gt([,e,t]){let r=c.bracket.fraction.auto.rem(t);if(r!=null)return[O,[...J[e].map(n=>[`--un-translate${n}`,r])]]}function qt([,e,t]){let r=c.bracket.fraction.percent(t);if(r!=null)return[O,[...J[e].map(n=>[`--un-scale${n}`,r])]]}function kn([,e]){let t=c.bracket.number(e);if(t!=null)return[O,{"--un-rotate":`${t}deg`}]}function Cn([,e]){let t=c.bracket(e);if(t!=null)return[O,{"--un-rotate":t}]}function En([,e,t]){let r=c.bracket.number(t);if(r!=null)return[O,{[`--un-skew-${e}`]:`${r}deg`}]}function Tn([,e,t]){let r=c.bracket(t);if(r!=null)return[O,{[`--un-skew-${e}`]:r}]}var An={visible:"visibility",select:"user-select",vertical:"vertical-align",backface:"backface-visibility",whitespace:"white-space",break:"word-break",b:"border-color",border:"border-color",color:"color",case:"text-transform",origin:"transform-origin",bg:"background-color","bg-opacity":"background-opacity",tab:"tab-size",underline:"text-decoration-thickness","underline-offset":"text-underline-offset",text:"color","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"},Yt=[[/^(.+)-\$(.+)$/,([,e,t])=>{let r=An[e];if(r)return{[r]:`var(--${t})`}}],[/^(?:border|b)-([^-]+)-\$(.+)$/,([,e,t])=>{if(e in C)return C[e].map(r=>[`border${r}-color`,`var(--${t})`])}]];var Xt=[[/^(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 Zt=[["underline",{"text-decoration":"underline"}],["line-through",{"text-decoration":"line-through"}],["decoration-underline",{"text-decoration":"underline"}],["decoration-line-through",{"text-decoration":"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=k("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 Jt=[[/^fill-(.+)$/,k("fill","fill")],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":c.bracket.percent(e)})],["fill-none",{fill:"none"}],[/^stroke-(?:size-|width-)?(.+)$/,([,e])=>{let t=c.bracket.fraction.px.number(e);if(t)return{"stroke-width":t}}],[/^stroke-(.+)$/,k("stroke","stroke")],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":c.bracket.percent(e)})],["stroke-none",{stroke:"none"}]];var Qt=[Yt,Mt,Ft,bt,Ie,qe,Jt,Be,kt,Je,Qe,et,Et,Zt,tt,rt,Tt,Se,Ge,At,zt,jt,Vt,Ze,it,nt,fe,Ut,Ot,wt,yt,$t,St,$e,vt,Rt,Ct,at,Le,Ke,fe,lt,ct,ft,ut,dt,mt,gt,ht,Xe,It,He,Xt].flat(1);var pe={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(pe).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 er={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(",")},tr={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"]},rr={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},nr={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},or={DEFAULT:"0px 0px 1px rgb(0 0 0/20%), 0px 0px 1px rgb(1 0 5/10%)",sm:"1px 1px 3px rgb(36 37 47 / 25%)",md:"0px 1px 2px rgb(30 29 39 / 19%), 1px 2px 4px rgb(54 64 147 / 18%)",lg:"3px 3px 6px rgb(0 0 0 / 26%), 0 0 5px rgb(15 3 86 / 22%)",xl:"1px 1px 3px rgb(0 0 0 / 29%), 2px 4px 7px rgb(73 64 125 / 35%)",none:"none"},ir={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},de={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},sr=de;var ar={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},cr={DEFAULT:"0.25rem",none:"0px",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},lr={DEFAULT:"0 1px 3px 0 rgba(var(--un-shadow-color), 0.1), 0 1px 2px 0 rgba(var(--un-shadow-color), 0.06)",sm:"0 1px 2px 0 rgba(var(--un-shadow-color), 0.05)",md:"0 4px 6px -1px rgba(var(--un-shadow-color), 0.1), 0 2px 4px -1px rgba(var(--un-shadow-color), 0.06)",lg:"0 10px 15px -3px rgba(var(--un-shadow-color), 0.1), 0 4px 6px -2px rgba(var(--un-shadow-color), 0.05)",xl:"0 20px 25px -5px rgba(var(--un-shadow-color), 0.1), 0 10px 10px -5px rgba(var(--un-shadow-color), 0.04)","2xl":"25px 50px -12px rgba(var(--un-shadow-color), 0.25)",inner:"inset 0 2px 4px 0 rgba(var(--un-shadow-color), 0.06)",none:"none"};var fr={DEFAULT:"8px","0":"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},ur={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 Y={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",min:"min-content",max:"max-content",prose:"65ch"},pr=A(v({auto:"auto"},Y),{screen:"100vw"}),me=A(v({none:"none"},Y),{screen:"100vw"}),dr=A(v({auto:"auto"},Y),{screen:"100vh"}),ge=A(v({none:"none"},Y),{screen:"100vh"});var mr={width:pr,height:dr,maxWidth:me,maxHeight:ge,minWidth:me,minHeight:ge,colors:pe,fontFamily:er,fontSize:tr,breakpoints:ar,borderRadius:cr,lineHeight:ir,letterSpacing:de,wordSpacing:sr,boxShadow:lr,textIndent:rr,textShadow:or,textStrokeWidth:nr,blur:fr,dropShadow:ur};var he={},gr=(e,{theme:t})=>{let r=Object.entries(t.breakpoints||{}).map(([n,o],s)=>[n,o,s]);for(let[n,o,s]of r){he[n]||(he[n]=new RegExp(`^((?:[al]t-)?${n}[:-])`));let i=e.match(he[n]);if(!i)continue;let[,a]=i,l=e.slice(a.length);if(l==="container")continue;let f="min",d=1e3;return a.startsWith("lt-")?(f="max",d-=s+1):d+=s+1,a.startsWith("at-")&&s<r.length-1?{matcher:l,parent:[`@media (min-width: ${o}) and (max-width: ${r[s+1][1]})`,d]}:{matcher:l,parent:[`@media (${f}-width: ${o})`,d]}}};var hr=[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 xr=[(e,{options:{dark:t}})=>{if(t==="class"){let r=E("dark",n=>`.dark $$ ${n}`)(e);if(r)return r}},(e,{options:{dark:t}})=>{if(t==="class"){let r=E("light",n=>`.light $$ ${n}`)(e);if(r)return r}},(e,{options:{dark:t}})=>{if(t==="media"){let r=E("dark")(e);if(r)return A(v({},r),{parent:"@media (prefers-color-scheme: dark)"})}},(e,{options:{dark:t}})=>{if(t==="media"){let r=E("light")(e);if(r)return A(v({},r),{parent:"@media (prefers-color-scheme: light)"})}}];var br={match(e){if(e.startsWith("!"))return{matcher:e.slice(1),body:t=>(t.forEach(r=>{r[1]&&(r[1]+=" !important")}),t)}}},yr={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]+|%)?/,s=>`-${s}`))}),t)}}},wr=e=>{if(/^space-?([xy])-?(-?.+)$/.test(e)||/^divide-/.test(e))return{matcher:e,selector:t=>`${t}>:not([hidden])~:not([hidden])`}};var $r=e=>{let t=E("print")(e);if(t)return A(v({},t),{parent:"@media print"})};var Sr=[wr,yr,br,$r,gr,...hr,Lt,Kt,Ht,Nt,Bt,...xr];var zn=(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:mr,rules:Qt,variants:Sr,options:e,postprocess:e.variablePrefix&&e.variablePrefix!=="un-"?Vn(e.variablePrefix):void 0}},vr=zn;function Vn(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 jn=["v-bind:",":"],Rr=/[\s'"`;]+/g,Pn=/<\w[\w:\.$-]*\s((?:'[\s\S]*?'|"[\s\S]*?"|`[\s\S]*?`|\{[\s\S]*?\}|[\s\S]*?)*?)>/g,Un=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=(["'])([^\2]*?)\2)?/g,kr={name:"attributify",extract({code:e,options:{ignoreAttributes:t,nonValuedAttribute:r}}){let n=Array.from(e.matchAll(Pn)).flatMap(o=>Array.from((o[1]||"").matchAll(Un))).flatMap(([,o,s,i])=>{if(t==null?void 0:t.includes(o))return[];for(let a of jn)if(o.startsWith(a)){o=o.slice(a.length);break}return i?["class","className"].includes(o)?i.split(Rr).filter(D):i.split(Rr).filter(Boolean).map(a=>`[${o}~="${a}"]`):D(o)&&r!==!1?[`[${o}=""]`]:[]});return new Set(n)}};var On=/^(.+\:\!?)?(.*?)$/,Cr=(e,{options:{prefix:t,prefixedOnly:r}})=>{let n=Te(e);if(!n)return;let o=n[1];if(o.startsWith(t))o=o.slice(t.length);else if(r)return;let s=n[2],[,i="",a=s]=s.match(On)||[];return a==="~"||!a?`${i}${o}`:`${i}${o}-${a}`};var Mn=(e={})=>{var n,o,s,i,a;e.strict=(n=e.strict)!=null?n:!1,e.prefix=(o=e.prefix)!=null?o:"un-",e.prefixedOnly=(s=e.prefixedOnly)!=null?s:!1,e.nonValuedAttribute=(i=e.nonValuedAttribute)!=null?i:!0,e.ignoreAttributes=(a=e.ignoreAttributes)!=null?a:[];let t=[Cr],r=[kr];return e.strict||r.unshift(N),{name:"@unocss/preset-attributify",variants:t,extractors:r,options:e}},Er=Mn;function xe(e={}){var y;if(typeof window=="undefined"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}Object.assign(e,(y=window.__unocss)==null?void 0:y.runtime);let t,r=!1,n,o=Fe(window.__unocss||{},e.defaults),s=new Set,i;function a(){i!=null&&clearTimeout(i),i=setTimeout(l,0)}async function l(){let x=await o.generate(s);t||(t=document.createElement("style"),document.head.appendChild(t)),t.innerHTML=x.css}async function f(x){await o.applyExtractors(x,void 0,s),a()}async function d(){let x=document.body&&document.body.outerHTML;x&&await f(x)}let w=new MutationObserver(x=>{r||x.forEach(P=>{let u=P.target;if(u===t||n&&!n(u))return;let g=Array.from(u.attributes).map(h=>h.value?`${h.name}="${h.value}"`:h.name).join(" "),m=`<${u.tagName.toLowerCase()} ${g}>`;f(m)})}),$=!1;function S(){if(!$)return;let x=document.documentElement||document.body;!x||(w.observe(x,{childList:!0,subtree:!0,attributes:!0}),$=!0)}function p(){d(),S()}window.__unocss_runtime=window.__unocss_runtime={version:o.version,uno:o,extractAll:d,inspect(x){n=x},toggleObserver(x){x===void 0?r=!r:r=!!x}},p(),window.addEventListener("load",p),window.addEventListener("DOMContentLoaded",p)}xe({defaults:{presets:[vr(),Er()]}});})();
1
+ (()=>{var ke=Object.defineProperty,Dr=Object.defineProperties;var Nr=Object.getOwnPropertyDescriptors;var Ce=Object.getOwnPropertySymbols;var Lr=Object.prototype.hasOwnProperty,Hr=Object.prototype.propertyIsEnumerable;var Ee=(e,t,r)=>t in e?ke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))Lr.call(t,r)&&Ee(e,r,t[r]);if(Ce)for(var r of Ce(t))Hr.call(t,r)&&Ee(e,r,t[r]);return e},U=(e,t)=>Dr(e,Nr(t));var Kr=(e,t)=>{for(var r in t)ke(e,r,{get:t[r],enumerable:!0})};var Br={mid:"middle",base:"baseline",btm:"bottom"},Ae=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,e])=>({"vertical-align":Br[e]||e})]],Te=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var E={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],a:[""]},ne={t:["-top-left","-top-right"],r:["-top-right","-bottom-right"],b:["-bottom-left","-bottom-right"],l:["-bottom-left","-top-left"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""]},oe={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Ve=["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"],je=Object.assign({},...Ve.map(e=>({[e.replace(/ /,"-")]:e})),...Ve.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e})));function N(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Wr(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 I=Wr;function L(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function ze(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>L(t)):[e]:[L(e)]}function Ir(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 G(e){return e==null?"":Ir(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function ie(e){return e&&typeof e=="object"&&!Array.isArray(e)}function se(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 ie(r)&&ie(n)&&Object.keys(n).forEach(i=>{ie(n[i])?i in r?o[i]=se(r[i],n[i]):Object.assign(o,{[i]:n[i]}):Object.assign(o,{[i]:n[i]})}),o}function Pe(e){return typeof e[0]=="string"}function Oe(e){return typeof e[0]=="string"}function A(e=[]){return Array.isArray(e)?e:[e]}function q(e){return Array.from(new Set(e))}var Gr=/^#?([\da-f]+)$/i;function Me(e=""){let[,t]=e.match(Gr)||[];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 qr=/^\[(.+?)~?="(.*)"\]$/,Yr=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/;function Ue(e){return e.match(qr)}function H(e=""){return Yr.test(e)}function Fe(e){return typeof e=="function"?{match:e}:e}function ae(e){return e.length===3}function _e(e){return e!=null}var ce=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 Xr=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function De(e){let t=[],r;for(;r=Xr.exec(e);){let o=r.index,i=o+r[0].length,[,s,a,f]=r,l=f.split(/\s/g).map(p=>p.replace(/^(!?)(.*)/,`$1${s}${a}$2`)).join(" ");t.unshift([o,i,l])}let n=e;return t.forEach(([o,i,s])=>{n=n.slice(0,o)+s+n.slice(i)}),n}var Ne=new Set;function Le(e){Ne.has(e)||(console.warn("[unocss]",e),Ne.add(e))}function He(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 Zr=e=>e.split(/[\s'"`;>=]+/g).filter(H),K={name:"split",order:0,extract({code:e}){return new Set(Zr(e))}};function Jr(e){return A(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Qr={shortcuts:-1,default:0};function le(e={},t={}){let r=Object.assign({},t,e),n=(r.presets||[]).flatMap(A),o=[...n.filter(d=>d.enforce==="pre"),...n.filter(d=>!d.enforce),...n.filter(d=>d.enforce==="post")],i=Object.assign(Qr,...n.map(d=>d.layers),e.layers);function s(d){return q([...o.flatMap(m=>A(m[d]||[])),...A(r[d]||[])])}let a=s("extractors");a.length||a.push(K),a.sort((d,m)=>(d.order||0)-(m.order||0));let f=s("rules"),l={},p=f.length;f.forEach((d,m)=>{Pe(d)&&(l[d[0]]=[m,d[1],d[2]],delete f[m])});let x=[...o.map(d=>d.theme||{}),r.theme||{}].reduce((d,m)=>se(d,m),{});return U(S({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:d=>d},r),{presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:i,theme:x,rulesSize:p,rulesDynamic:f,rulesStaticMap:l,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),variants:s("variants").map(Fe),shortcuts:Jr(s("shortcuts")),extractors:a})}var Ke="0.21.0";var Be=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=le(t,r)}version=Ke;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.config=le(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 f=s?"":`
2
+ `,l=new Set(["default"]),p=new Set,x=new Map,d=(u,h)=>{var g;this._cache.set(u,h),p.add(u);for(let b of h){let C=b[3]||"";x.has(C)||x.set(C,[]),x.get(C).push(b),((g=b[4])==null?void 0:g.layer)&&l.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 z;if(p.has(u)||this.blocked.has(u))return;if(this._cache.has(u)){let $=this._cache.get(u);$&&d(u,$);return}let h=u;for(let $ of this.config.preprocess)h=$(u);if(this.isBlocked(h))return m(h);let g=this.matchVariants(u,h);if(!g||this.isBlocked(g[1]))return m(u);let b={rawSelector:u,currentSelector:g[1],theme:this.config.theme,generator:this,variantHandlers:g[2],constructCSS:(...$)=>this.constructCustomCSS(b,...$)},C=this.expandShortcut(g[1],b);if(C){let $=await this.stringifyShortcuts(g,b,C[0],C[1]);if($==null?void 0:$.length)return d(u,$)}else{let $=(z=await this.parseUtil(g,b))==null?void 0:z.map(w=>this.stringifyUtil(w)).filter(_e);if($==null?void 0:$.length)return d(u,$)}this._cache.set(u,null)})),o&&this.config.preflights.forEach(u=>{u.layer&&l.add(u.layer)});let k={},O=this.config.sortLayers(Array.from(l).sort((u,h)=>{var g,b;return((g=this.config.layers[u])!=null?g:0)-((b=this.config.layers[h])!=null?b:0)||u.localeCompare(h)})),y=u=>{if(k[u])return k[u];let h=Array.from(x).sort((g,b)=>{var C,z,$;return((C=this.parentOrders.get(g[0]))!=null?C:0)-((z=this.parentOrders.get(b[0]))!=null?z:0)||(($=g[0])==null?void 0:$.localeCompare(b[0]||""))||0}).map(([g,b])=>{let C=b.length,z=b.filter(w=>{var P;return(((P=w[4])==null?void 0:P.layer)||"default")===u}).sort((w,P)=>{var W;return w[0]-P[0]||((W=w[1])==null?void 0:W.localeCompare(P[1]||""))||0}).map(w=>[w[1]?rn(w[1],n):w[1],w[2]]);if(!z.length)return;let $=z.reverse().map(([w,P],W)=>{if(w&&this.config.mergeSelectors)for(let re=W+1;re<C;re++){let D=z[re];if(D&&D[0]&&D[1]===P)return D[0]=`${D[0]},${f}${w}`,null}return w?`${w}{${P}}`:P}).filter(Boolean).reverse().join(f);return g?`${g}{${f}${$}${f}}`:$}).filter(Boolean).join(f);return o&&(h=[...this.config.preflights.filter(g=>(g.layer||"default")===u).map(g=>g.getCSS()).filter(Boolean),h].join(f)),k[u]=!s&&h?`/* layer: ${u} */${f}${h}`:h},M=(u=O,h)=>u.filter(g=>!(h==null?void 0:h.includes(g))).map(g=>y(g)||"").filter(Boolean).join(f);return{get css(){return M()},layers:O,getLayers:M,getLayer:y,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},nn(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}{${G(i)}}`;return s?`${s}{${a}}`:a}async parseUtil(t,r,n=!1){var p,x;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 d=l;d>=0;d--){let m=f[d];if(!m||((x=m[2])==null?void 0:x.internal)&&!n)continue;let[k,O,y]=m,M=i.match(k);if(!M)continue;let u=await O(M,r);if(!u)continue;if(typeof u=="string")return[[d,u,y]];let h=ze(u).filter(g=>g.length);if(h.length)return h.map(g=>[d,o,g,y,s])}}stringifyUtil(t){if(!t)return;if(ae(t))return[t[0],void 0,t[1],void 0,t[2]];let{selector:r,entries:n,parent:o}=this.applyVariants(t),i=G(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(Oe(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=De(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 ce,s=(await Promise.all(q(n).map(async l=>{let p=await this.parseUtil(l,r,!0);return p||Le(`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(ae(l))continue;let{selector:p,entries:x,parent:d}=this.applyVariants(l,[...l[4],...f],a),m=i.getFallback(p,d,[[],l[0]]);m[0].push(...x),l[0]>m[1]&&(m[1]=l[0])}return i.map(([l,p],x,d)=>{let m=G(l);if(m)return[p,x,m,d,o]}).filter(Boolean)}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function We(e,t){return new Be(e,t)}var Ie=/ \$\$ /,tn=e=>e.match(Ie);function rn(e,t){return tn(e)?e.replace(Ie,t?` ${t} `:" "):t?`${t} ${e}`:e}function nn(e){return e.startsWith("[")?e.replace(/^\[(.+?)(~?=)"(.*)"\]$/,(t,r,n,o)=>`[${I(r)}${n}"${I(o)}"]`):`.${I(e)}`}var ue={};Kr(ue,{auto:()=>cn,bracket:()=>mn,cssvar:()=>gn,degree:()=>xn,fraction:()=>dn,global:()=>bn,number:()=>un,numberWithUnit:()=>an,percent:()=>pn,properties:()=>yn,px:()=>fn,rem:()=>ln,time:()=>hn});var on=["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"],fe=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax)?$/i,sn=/^(-?[0-9.]+)$/i,Ge=/^(px)$/i;function T(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function an(e){let t=e.match(fe);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(n&&!Number.isNaN(o))return`${T(o)}${n}`}function cn(e){if(e==="auto"||e==="a")return"auto"}function ln(e){if(e.match(Ge))return`1${e}`;let t=e.match(fe);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${T(o)}${n}`:`${T(o/4)}rem`}function fn(e){if(e.match(Ge))return`1${e}`;let t=e.match(fe);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${T(o)}${n}`:`${T(o)}px`}function un(e){if(!sn.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return T(t)}function pn(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${T(t/100)}`}function dn(e){if(e==="full")return"100%";let[t,r]=e.split("/"),n=parseFloat(t)/parseFloat(r);if(!Number.isNaN(n))return`${T(n*100)}%`}function mn(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 gn(e){if(e.startsWith("$"))return`var(--${e.slice(1)})`}function hn(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?`${T(o)}${n}`:`${T(o)}ms`}function xn(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?`${T(o)}${n}`:`${T(o)}deg`}function bn(e){if(["inherit","initial","revert","unset"].includes(e))return e}function yn(e){for(let t of e.split(","))if(!on.includes(t))return;return e}var c=He(ue);var R=(e,t)=>{let r=new RegExp(`^${N(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(`^${N(e)}[:-]`);return n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),parent:t}}};function qe(e){return e.charAt(0).toUpperCase()+e.slice(1)}var F=e=>([t,r,n])=>{let o=c.bracket.auto.rem.fraction.cssvar(n);if(o!==void 0)return E[r].map(i=>[`${e}${i}`,o])},pe=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,n=>n.slice(1).toUpperCase())]},_=(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 m,[k]=o.slice(-1);k.match(/^\d+$/)?(l=k,m=pe(t,o.slice(0,-1))):(m=pe(t,o),m||([,l=l]=o,m=pe(t,[i]))),typeof m=="string"?s=m:l&&m&&(s=m[l])}let p=Me(s),x=n?n[0]==="["?c.bracket.percent(n):parseFloat(n)/100:p==null?void 0:p[3],d=x!=null&&!Number.isNaN(x);return p&&(d?p[3]=typeof x=="string"&&!x.includes("%")?parseFloat(x):x:p.splice(3)),{opacity:n,name:i,no:l,color:s,rgba:p,alpha:d?x:void 0}},v=(e,t)=>([,r],{theme:n})=>{var l;let o=_(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 Ye=[[/^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"}]],Xe=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],Ze=[[/^will-change-(.+)/,([,e])=>({"will-change":c.properties.auto.global(e)})]];var Je=[[/^(?:border|b)()(?:-(.+))?$/,de],[/^(?:border|b)-([xy])(?:-(.+))?$/,de],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,de],[/^(?:border|b)-()size-(.+)$/,Y],[/^(?:border|b)-([xy])-size-(.+)$/,Y],[/^(?:border|b)-([rltbse])-size-(.+)$/,Y],[/^(?:border|b)-()(?:color-)?(.+)$/,me],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,me],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,me],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,ge],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,ge],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,ge],[/^(?:border-)?(?:rounded|rd)()(?:-(.+))?$/,X],[/^(?:border-)?(?:rounded|rd)-([xy])(?:-(.+))?$/,X],[/^(?:border-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,X],[/^(?:border-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,X],["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"}]],$n=(e,{theme:t})=>{var r;return e!==void 0&&!!((r=_(e,t))==null?void 0:r.color)},wn=e=>([,t],{theme:r})=>{var f,l;let n=_(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 de(e){let t=Y(e);if(t)return[...t,["border-style","solid"]]}function Y([,e="",t="1"]){let r=c.bracket.px(t);if(e in E&&r!=null)return E[e].map(n=>[`border${n}-width`,r])}function me([,e="",t],r){if(e in E&&$n(t,r))return Object.assign({},...E[e].map(n=>wn(n)(["",t],r)))}function ge([,e="",t]){let r=c.bracket.percent(t);if(e in E&&r!=null)return E[e].map(n=>[`--un-border${n}-opacity`,r])}function X([,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 ne&&n!=null)return ne[e].map(i=>[`border${i}-radius`,n])}var Qe=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:c.bracket.percent.cssvar(e)})]],et=[[/^(?:text|color|c)-(.+)$/,v("color","text")],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":c.bracket.percent.cssvar(e)})]],tt=[[/^bg-(.+)$/,v("background-color","bg")],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":c.bracket.percent(e)})]];var rt={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),opacity:"opacity",shadow:"box-shadow",transform:"transform"},nt=e=>{var t;return(t=c.properties(e))!=null?t:rt[e]},ot=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t="150"])=>{let r=e!=null?nt(e):[rt.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)||nt(e)})],["transition-property-none",{"transition-property":"none"}],["property-none",{"transition-property":"none"}],["transition-none",{transition:"none"}]];var it=[["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 vn={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},st=[[/^font-(\w+)$/,([,e],{theme:t})=>{var r;return{"font-family":(r=t.fontFamily)==null?void 0:r[e]}}],[/^text-(.+)$/,([,e="base"],{theme:t})=>{var o;let r=c.bracket.auto.rem(e);if(r)return{"font-size":r};let n=A((o=t.fontSize)==null?void 0:o[e]);if(n==null?void 0:n[0]){let[i,s]=n;return{"font-size":i,"line-height":s}}}],[/^text-size-(.+)$/,([,e])=>({"font-size":c.bracket.auto.rem(e)})],[/^(?:font|fw)-?([^-]+)$/,([,e])=>({"font-weight":vn[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}}]],ct=[[/^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)}}]],lt=[[/^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)})]],ft=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"text-shadow":((r=t.textShadow)==null?void 0:r[e||"DEFAULT"])||c.bracket.cssvar(e)}}]];var ut={"":"",x:"column-",y:"row-"},pt=([,e="",t])=>{let r=c.bracket.auto.rem(t);if(r!=null)return{[`grid-${ut[e]}gap`]:r,[`${ut[e]}gap`]:r}},dt=[[/^(?:flex-|grid-)?gap-()([^-]+)$/,pt],[/^(?:flex-|grid-)?gap-([xy])-([^-]+)$/,pt]];var j=e=>e.replace("col","column"),Sn=(e,t)=>{var n;let r=(n=t.fontSize)==null?void 0:n[e];if(r!=null)return A(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)},mt=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t])=>({[`grid-${j(e)}`]:c.bracket.auto(t)})],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${j(e)}`]:"1/-1"};let r=c.bracket.number(t);if(r!=null)return{[`grid-${j(e)}`]:`span ${r}/span ${r}`}}],[/^(?:grid-)?(row|col)-start-([\w.-]+)$/,([,e,t])=>({[`grid-${j(e)}-start`]:t})],[/^(?:grid-)?(row|col)-end-([\w.-]+)$/,([,e,t])=>({[`grid-${j(e)}-end`]:t})],[/^(?:grid-)?auto-(rows|cols)-([\w.-]+)$/,([,e,t],{theme:r})=>({[`grid-auto-${j(e)}`]:Sn(t,r)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-((?:row|col)(?:-dense)?)$/,([,e])=>({"grid-auto-flow":j(e).replace("-"," ")})],[/^grid-(rows|cols)-(\[.+\])$/,([,e,t])=>({[`grid-template-${j(e)}`]:c.bracket(t)})],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${j(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${j(e)}`]:`repeat(${t},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var gt=["auto","hidden","clip","visible","scroll"],ht=[[/^(?:overflow|of)-(.+)$/,([,e])=>gt.includes(e)?{overflow:e}:void 0],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>gt.includes(t)?{[`overflow-${e}`]:t}:void 0]];var he=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],xt=[["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"}]],bt=[[/^order-(.+)$/,([,e])=>({order:c.bracket.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],yt=[["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"}]],$t=[["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 xe(e){var t;return(t={auto:"auto",full:"100%"}[e])!=null?t:c.bracket.fraction.cssvar.auto.rem(e)}function Rn([,e,t]){let r=xe(t);if(r!=null&&e in E)return E[e].map(n=>[n.slice(1),r])}var wt=[[/^(?:position-|pos-)?inset-(.+)$/,([,e])=>({inset:xe(e)})],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,Rn],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t])=>({[e]:xe(t)})]],vt=[["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"}]],St=[["z-auto",{"z-index":"auto"}],[/^z-([^-]+)$/,([,e])=>({"z-index":c.number(e)})]],Rt=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var Z="var(--un-empty,/*!*/ /*!*/)",kt=[["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"}]],Ct=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],Et=[[/^cursor-(.+)$/,([,e])=>({cursor:e})]],At=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],Tt=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],Vt=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],jt=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,e])=>({"white-space":e})]],zt=[["content-empty",{content:'""'}]],Pt=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Ot=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],Mt=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}]],Ut=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}]],Ft=[["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 _t=[[/^ring(?:-(.+))?$/,([,e])=>{let t=c.px(e||"1");if(t)return{"--un-ring-inset":Z,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-color":"rgba(147, 197, 253, .5)","--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 kn=(e,t)=>{let r=_(e,t);if(!r)return;let{color:n,rgba:o}=r;if(!!n)return o?{"--un-shadow-color":`${o.slice(0,3).join(",")}`}:{"--un-shadow-color":n}},Dt=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.boxShadow)==null?void 0:n[e||"DEFAULT"];if(r)return{"--un-shadow-inset":Z,"--un-shadow-color":"0,0,0","--un-shadow":r,"box-shadow":"var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"}}],[/^shadow-(.+)$/,([,e],{theme:t})=>kn(e,t)],["shadow-inset",{"--un-shadow-inset":"inset"}]];function Nt(e,t){return`${e?`${e}-`:""}${t==="h"?"height":"width"}`}function Cn(e,t,r,n){var s;let o=`${t==="h"?"height":"width"}`;e&&(o=`${e}${qe(o)}`);let 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 Lt=[[/^(?:(min|max)-)?(w|h)-(.+)$/,([,e,t,r],{theme:n})=>({[Nt(e,t)]:Cn(e,t,n,r)})],[/^(?:(min|max)-)?(w)-screen-(.+)$/,([,e,t,r],{theme:n})=>{var o;return{[Nt(e,t)]:(o=n.breakpoints)==null?void 0:o[r]}}]];function En(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 Ht=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":En(e)})]];var Kt=[[/^pa?()-?(-?.+)$/,F("padding")],[/^p-?([xy])-?(-?.+)$/,F("padding")],[/^p-?([rltbse])-?(-?.+)$/,F("padding")]],Bt=[[/^ma?()-?(-?.+)$/,F("margin")],[/^m-?([xy])-?(-?.+)$/,F("margin")],[/^m-?([rltbse])-?(-?.+)$/,F("margin")]];var J="$$no-pseudo",Q=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(A)),Wt=Object.fromEntries(["placeholder","before","after","first-letter","first-line","selection","marker",["file","::file-selector-button"]].map(A)),An=["not","is","where","has"],Tn=Object.keys(Wt).join("|"),be=Object.keys(Q).join("|"),It=An.join("|"),Vn=/(part-\[(.+)]:)(.+)/,jn=new RegExp(`^(${Tn})[:-]`),zn=new RegExp(`^(${be})[:-]`),Pn=new RegExp(`^(${It})-(${be})[:-]`);function ee(e){return!e.find(t=>t[0]===J)||void 0}var Gt=(e,t,r)=>{let n=new RegExp(`^${e}-((?:(${It})-)?(${be}))[:-]`),o=new RegExp(`^${N(t)}:`);return i=>{let s=i.match(n);if(s){let a=Q[s[3]]||`:${s[3]}`;return s[2]&&(a=`:${s[2]}(${a})`),{matcher:i.slice(s[1].length+e.length+2),selector:(f,l)=>ee(l)&&o.test(f)?f.replace(o,`${t}${a}:`):`${t}${a}${r}${f}`}}}},qt=e=>{let t=e.match(jn);if(t){let r=Wt[t[1]]||`::${t[1]}`;return{matcher:e.slice(t[1].length+1),selector:n=>`${n}${r}`}}},Yt={match:e=>{let t=e.match(zn);if(t){let r=Q[t[1]]||`:${t[1]}`;return{matcher:e.slice(t[1].length+1),selector:(n,o)=>ee(o)&&`${n}${r}`}}},multiPass:!0},Xt={match:e=>{let t=e.match(Pn);if(t){let r=t[1],n=Q[t[2]]||`:${t[2]}`;return{matcher:e.slice(t[1].length+t[2].length+2),selector:(o,i)=>ee(i)&&`${o}:${r}(${n})`}}},multiPass:!0},Zt=(e={})=>{let t=!!(e==null?void 0:e.attributifyPseudo);return[{match:Gt("group",t?'[group=""]':".group"," "),multiPass:!0},{match:Gt("peer",t?'[peer=""]':".peer","~"),multiPass:!0}]},Jt={match:e=>{let t=e.match(Vn);if(t){let r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:(n,o)=>ee(o)&&`${n}::${r}`}}},multiPass:!0};var On={transform:"rotate(var(--un-rotate)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) translate3d(var(--un-translate-x), var(--un-translate-y), var(--un-translate-z))",[J]:""},Qt={transform:"rotate(var(--un-rotate)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z))",[J]:""},B=S({"--un-rotate":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),er=[["transform",B],[/^origin-([-\w]{3,})$/,([,e])=>({"transform-origin":je[e]})],[/^translate-()(.+)$/,tr],[/^translate-([xyz])-(.+)$/,tr],[/^rotate-(.+)$/,Mn],[/^skew-()(.+)$/,nr],[/^skew-([xy])-(.+)$/,nr],[/^scale-()(.+)$/,rr],[/^scale-([xyz])-(.+)$/,rr],["preserve-3d",{"transform-style":"preserve-3d"}],["preserve-flat",{"transform-style":"flat"}],["transform-gpu",On],["transform-cpu",Qt],["transform-none",{transform:"none"}]];function tr([,e,t]){let r=c.bracket.fraction.auto.rem(t);if(r!=null)return[B,oe[e].map(n=>[`--un-translate${n}`,r])]}function rr([,e,t]){let r=c.bracket.fraction.percent(t);if(r!=null)return[B,oe[e].map(n=>[`--un-scale${n}`,r])]}function Mn([,e]){let t=c.bracket.degree(e);if(t!=null)return[B,{"--un-rotate":t}]}function nr([,e,t]){let r=c.bracket.degree(t);if(r!=null)return[B,{[`--un-skew-${e}`]:r}]}var Un={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"},or=[[/^(.+)-\$(.+)$/,([,e,t])=>{let r=Un[e];if(r)return{[r]:`var(--${t})`}}]];var ir=[[/^(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 sr=[["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 ar=[[/^fill-(.+)$/,v("fill","fill")],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":c.bracket.percent(e)})],["fill-none",{fill:"none"}],[/^stroke-(?:size-|width-)?(.+)$/,([,e])=>({"stroke-width":c.bracket.fraction.px.number(e)})],[/^stroke-(.+)$/,v("stroke","stroke")],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":c.bracket.percent(e)})],["stroke-none",{stroke:"none"}]];var cr=[or,Kt,Bt,kt,Qe,tt,ar,Je,zt,st,at,ct,Ot,sr,lt,ft,Mt,Te,et,Ut,Ft,Dt,_t,it,mt,dt,he,Lt,Ht,Et,Ct,At,Tt,Ae,Vt,jt,Pt,ht,Ye,Xe,he,bt,xt,yt,$t,wt,vt,St,Rt,ot,er,Ze,ir].flat(1);var ye={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(ye).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 lr={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(",")},fr={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"]},ur={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},pr={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},dr={DEFAULT:"0px 0px 1px rgb(0 0 0/20%), 0px 0px 1px rgb(1 0 5/10%)",sm:"1px 1px 3px rgb(36 37 47 / 25%)",md:"0px 1px 2px rgb(30 29 39 / 19%), 1px 2px 4px rgb(54 64 147 / 18%)",lg:"3px 3px 6px rgb(0 0 0 / 26%), 0px 0px 5px rgb(15 3 86 / 22%)",xl:"1px 1px 3px rgb(0 0 0 / 29%), 2px 4px 7px rgb(73 64 125 / 35%)",none:"none"},mr={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},$e={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},gr=$e;var hr={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},xr={DEFAULT:"0.25rem",none:"0px",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},br={DEFAULT:"var(--un-shadow-inset) 0 1px 3px 0 rgba(var(--un-shadow-color), 0.1), var(--un-shadow-inset) 0 1px 2px -1px rgba(var(--un-shadow-color), 0.1)",sm:"var(--un-shadow-inset) 0 1px 2px 0 rgba(var(--un-shadow-color), 0.05)",md:"var(--un-shadow-inset) 0 4px 6px -1px rgba(var(--un-shadow-color), 0.1), var(--un-shadow-inset) 0 2px 4px -2px rgba(var(--un-shadow-color), 0.1)",lg:"var(--un-shadow-inset) 0 10px 15px -3px rgba(var(--un-shadow-color), 0.1), var(--un-shadow-inset) 0 4px 6px -4px rgba(var(--un-shadow-color), 0.1)",xl:"var(--un-shadow-inset) 0 20px 25px -5px rgba(var(--un-shadow-color), 0.1), var(--un-shadow-inset) 0 8px 10px -6px rgba(var(--un-shadow-color), 0.1)","2xl":"var(--un-shadow-inset) 0 25px 50px -12px rgba(var(--un-shadow-color), 0.25)",inner:"inset 0 2px 4px 0 rgba(var(--un-shadow-color), 0.05)",none:"0 0 #0000"};var yr={DEFAULT:"8px","0":"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},$r={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 te={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},wr=U(S({auto:"auto"},te),{screen:"100vw"}),we=U(S({none:"none"},te),{screen:"100vw"}),vr=U(S({auto:"auto"},te),{screen:"100vh"}),ve=U(S({none:"none"},te),{screen:"100vh"});var Sr={width:wr,height:vr,maxWidth:we,maxHeight:ve,minWidth:we,minHeight:ve,colors:ye,fontFamily:lr,fontSize:fr,breakpoints:hr,borderRadius:xr,lineHeight:mr,letterSpacing:$e,wordSpacing:gr,boxShadow:br,textIndent:ur,textShadow:dr,textStrokeWidth:pr,blur:yr,dropShadow:$r};var Se={},Rr=(e,{theme:t})=>{let r=Object.entries(t.breakpoints||{}).map(([n,o],i)=>[n,o,i]);for(let[n,o,i]of r){Se[n]||(Se[n]=new RegExp(`^((?:[al]t-)?${n}[:-])`));let s=e.match(Se[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 kr=[R("all",e=>`${e} *`),R("children",e=>`${e}>*`),R("next",e=>`${e}+*`),R("sibling",e=>`${e}+*`),R("siblings",e=>`${e}~*`),R("svg",e=>`${e} svg *`)];var Cr=(e={})=>(e==null?void 0:e.dark)==="class"?[R("dark",t=>`.dark $$ ${t}`),R("light",t=>`.light $$ ${t}`)]:[V("dark","@media (prefers-color-scheme: dark)"),V("light","@media (prefers-color-scheme: light)")];var Er=[R("rtl",e=>`[dir="rtl"] $$ ${e}`),R("ltr",e=>`[dir="ltr"] $$ ${e}`)];var Ar={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 Vr=[V("motion-reduce","@media (prefers-reduced-motion: reduce)"),V("motion-safe","@media (prefers-reduced-motion: no-preference)")];var jr=[V("landscape","@media (orientation: landscape)"),V("portrait","@media (orientation: portrait)")];var zr=V("print","@media print");var Pr=e=>[Tr,Ar,zr,...jr,...Vr,Rr,...kr,Yt,Xt,...Zt(e),qt,Jt,...Cr(e),...Er];var Fn=(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:cr,variants:Pr(e),options:e,postprocess:e.variablePrefix&&e.variablePrefix!=="un-"?_n(e.variablePrefix):void 0}},Or=Fn;function _n(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 Dn=["v-bind:",":"],Mr=/[\s'"`;]+/g,Nn=/<\w[\w:\.$-]*\s((?:'[\s\S]*?'|"[\s\S]*?"|`[\s\S]*?`|\{[\s\S]*?\}|[\s\S]*?)*?)>/g,Ln=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=(["'])([^\2]*?)\2)?/g,Ur=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(Nn)).flatMap(a=>Array.from((a[1]||"").matchAll(Ln))).flatMap(([,a,f,l])=>{if(t.includes(a))return[];for(let p of Dn)if(a.startsWith(p)){a=a.slice(p.length);break}return l?["class","className"].includes(a)?l.split(Mr).filter(H):l.split(Mr).filter(Boolean).map(p=>`[${a}~="${p}"]`):H(a)&&r!==!1?[`[${a}=""]`]:[]});return new Set(s)}}};var Hn=/^(.+\:\!?)?(.*?)$/,Fr=(e={})=>{var n,o;let t=(n=e.prefix)!=null?n:"un-",r=(o=e.prefixedOnly)!=null?o:!1;return i=>{let s=Ue(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(Hn)||[];return p==="~"||!p?`${l}${a}`:`${l}${a}-${p}`}};var Kn=(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=[Fr(e)],r=[Ur(e)];return e.strict||r.unshift(K),{name:"@unocss/preset-attributify",variants:t,extractors:r,options:e}},_r=Kn;function Re(e={}){var O;if(typeof window=="undefined"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}Object.assign(e,(O=window.__unocss)==null?void 0:O.runtime);let t,r=!1,n,o=We(window.__unocss||{},e.defaults),i=new Set,s;function a(){s!=null&&clearTimeout(s),s=setTimeout(f,0)}async function f(){let y=await o.generate(i);t||(t=document.createElement("style"),document.head.appendChild(t)),t.innerHTML=y.css}async function l(y){await o.applyExtractors(y,void 0,i),a()}async function p(){let y=document.body&&document.body.outerHTML;y&&await l(y)}let x=new MutationObserver(y=>{r||y.forEach(M=>{let u=M.target;if(u===t||n&&!n(u))return;let h=Array.from(u.attributes).map(b=>b.value?`${b.name}="${b.value}"`:b.name).join(" "),g=`<${u.tagName.toLowerCase()} ${h}>`;l(g)})}),d=!1;function m(){if(!d)return;let y=document.documentElement||document.body;!y||(x.observe(y,{childList:!0,subtree:!0,attributes:!0}),d=!0)}function k(){p(),m()}window.__unocss_runtime=window.__unocss_runtime={version:o.version,uno:o,extractAll:p,inspect(y){n=y},toggleObserver(y){y===void 0?r=!r:r=!!y}},k(),window.addEventListener("load",k),window.addEventListener("DOMContentLoaded",k)}Re({defaults:{presets:[Or(),_r()]}});})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/runtime",
3
- "version": "0.20.0",
3
+ "version": "0.21.0",
4
4
  "description": "CSS-in-JS Runtime for UnoCSS",
5
5
  "keywords": [
6
6
  "unocss",
@@ -34,9 +34,9 @@
34
34
  "dist"
35
35
  ],
36
36
  "dependencies": {
37
- "@unocss/core": "0.20.0",
38
- "@unocss/preset-attributify": "0.20.0",
39
- "@unocss/preset-uno": "0.20.0"
37
+ "@unocss/core": "0.21.0",
38
+ "@unocss/preset-attributify": "0.21.0",
39
+ "@unocss/preset-uno": "0.21.0"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "pnpm run build:node && pnpm run build:cdn",