@unocss/runtime 0.42.1 → 0.43.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/mini.global.js CHANGED
@@ -1,3 +1,3 @@
1
- "use strict";(()=>{var Dn=Object.defineProperty;var Bn=(e,t)=>{for(var r in t)Dn(e,r,{get:t[r],enumerable:!0})};function N(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function je(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+="\\,";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 be=je;function J(e){return typeof e=="string"?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function ot(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>J(t)):[e]:[J(e)]}function Nn(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 K(e){return e==null?"":Nn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function xe(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Ae(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={...r};return xe(r)&&xe(n)&&Object.keys(n).forEach(i=>{xe(r[i])&&xe(n[i])||Array.isArray(r[i])&&Array.isArray(n[i])?o[i]=Ae(r[i],n[i]):Object.assign(o,{[i]:n[i]})}),o}function Y(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?Y(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Y(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Y(n):n;return r}return e}function it(e){return typeof e[0]=="string"}function st(e){return typeof e[0]=="string"}function M(e=[]){return Array.isArray(e)?e:[e]}function Q(e){return Array.from(new Set(e))}var Hn=/^\[(.+?)~?="(.*)"\]$/;var Kn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,Ve="$$shortcut-no-merge";function at(e){return e.match(Hn)}function ee(e=""){return Kn.test(e)}function ct(e){return typeof e=="function"?{match:e}:e}function Oe(e){return e.length===3}function lt(e){return e!=null}function Pe(){}var ye=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){var n;return(n=this._map.get(t))==null?void 0:n.has(r)}delete(t,r){var n;return((n=this._map.get(t))==null?void 0:n.delete(r))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>t(i,r,o)))}};var ft=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function ut(e){ft.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(ft,(n,o,i,s)=>s.split(/\s/g).map(a=>a==="~"?o:a.replace(/^(!?)(.*)/,`$1${o}${i}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var pt=new Set;function mt(e){pt.has(e)||(console.warn("[unocss]",e),pt.add(e))}function dt(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 In=e=>e.split(/[\s'"`;=]+/g).filter(ee),te={name:"split",order:0,extract({code:e}){return new Set(In(e))}};function ht(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}function qn(e){return M(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Gn={preflights:-100,shortcuts:-10,default:0};function Me(e={},t={}){let r=Object.assign({},t,e),n=(r.presets||[]).flatMap(M),o=[...n.filter(p=>p.enforce==="pre"),...n.filter(p=>!p.enforce),...n.filter(p=>p.enforce==="post")],i=Object.assign(Gn,...n.map(p=>p.layers),e.layers);function s(p){return Q([...o.flatMap(g=>M(g[p]||[])),...M(r[p]||[])])}let a=s("extractors");a.length||a.push(te),a.sort((p,g)=>(p.order||0)-(g.order||0));let l=s("rules"),f={},m=l.length;l.forEach((p,g)=>{it(p)&&(f[p[0]]=[g,p[1],p[2],p],delete l[g])});let u=Y([...o.map(p=>p.theme||{}),r.theme||{}].reduce((p,g)=>Ae(p,g),{}));s("extendTheme").forEach(p=>p(u));let h={templates:Q(o.map(p=>{var g;return M((g=p.autocomplete)==null?void 0:g.templates)}).flat()),extractors:o.map(p=>{var g;return M((g=p.autocomplete)==null?void 0:g.extractors)}).flat().sort((p,g)=>(p.order||0)-(g.order||0))};return{mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:p=>p,...r,presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:i,theme:u,rulesSize:m,rulesDynamic:l,rulesStaticMap:f,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:h,variants:s("variants").map(ct),shortcuts:qn(s("shortcuts")),extractors:a,safelist:s("safelist")}}var gt="0.42.1";var Ue=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Me(t,r),this.events.emit("config",this.config)}version=gt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=ht();setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Me(t,this.defaults),this.events.emit("config",this.config))}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}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){var l;if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this._cache.has(n))return this._cache.get(n);let o=t;for(let f of this.config.preprocess)o=f(t);if(this.isBlocked(o)){this.blocked.add(t),this._cache.set(n,null);return}let i=this.matchVariants(t,o);if(!i||this.isBlocked(i[1])){this.blocked.add(t),this._cache.set(n,null);return}let s=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(s.variants=[...i[3]]);let a=this.expandShortcut(s.currentSelector,s);if(a){let f=await this.stringifyShortcuts(s.variantMatch,s,a[0],a[1]);if(f!=null&&f.length)return this._cache.set(n,f),f}else{let f=(l=await this.parseUtil(s.variantMatch,s))==null?void 0:l.map(m=>this.stringifyUtil(m,s)).filter(lt);if(f!=null&&f.length)return this._cache.set(n,f),f}this._cache.set(n,null)}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(b=>a.add(b));let l=s?"":`
2
- `,f=new Set(["default"]),m=new Set,u=new Map,h={},p=Array.from(a).map(async b=>{var $;if(m.has(b))return;let y=await this.parseToken(b);if(y!=null){m.add(b);for(let R of y){let A=R[3]||"",d=($=R[4])==null?void 0:$.layer;u.has(A)||u.set(A,[]),u.get(A).push(R),d&&f.add(d)}}}),g=(async()=>{if(!o)return;let b={generator:this,theme:this.config.theme},y=new Set([]);this.config.preflights.forEach(({layer:$="preflights"})=>{f.add($),y.add($)}),h=Object.fromEntries(await Promise.all(Array.from(y).map(async $=>{let A=(await Promise.all(this.config.preflights.filter(d=>(d.layer||"preflights")===$).map(async d=>await d.getCSS(b)))).filter(Boolean).join(l);return[$,A]})))})();await Promise.all([...p,g]);let x=this.config.sortLayers(Array.from(f).sort((b,y)=>(this.config.layers[b]??0)-(this.config.layers[y]??0)||b.localeCompare(y))),j={},w=b=>{if(j[b])return j[b];let y=Array.from(u).sort(($,R)=>{var A;return(this.parentOrders.get($[0])??0)-(this.parentOrders.get(R[0])??0)||((A=$[0])==null?void 0:A.localeCompare(R[0]||""))||0}).map(([$,R])=>{let A=R.length,d=R.filter(S=>{var E;return(((E=S[4])==null?void 0:E.layer)||"default")===b}).sort((S,E)=>{var V,Z,X,_;return S[0]-E[0]||(((V=S[4])==null?void 0:V.sort)||0)-(((Z=E[4])==null?void 0:Z.sort)||0)||((X=S[1])==null?void 0:X.localeCompare(E[1]||""))||((_=S[2])==null?void 0:_.localeCompare(E[2]||""))||0}).map(([,S,E,,V])=>[[[(S&&Yn(S,n))??"",(V==null?void 0:V.sort)??0]],E,!!(V!=null&&V.noMerge)]);if(!d.length)return;let T=d.reverse().map(([S,E,V],Z)=>{if(!V&&this.config.mergeSelectors)for(let _=Z+1;_<A;_++){let L=d[_];if(L&&!L[2]&&(S&&L[0]||S==null&&L[0]==null)&&L[1]===E)return S&&L[0]&&L[0].push(...S),null}let X=S?[...new Set(S.sort((_,L)=>{var nt;return _[1]-L[1]||((nt=_[0])==null?void 0:nt.localeCompare(L[0]||""))||0}).map(_=>_[0]).filter(Boolean))]:[];return X.length?`${X.join(`,${l}`)}{${E}}`:E}).filter(Boolean).reverse().join(l);if(!$)return T;let O=$.split(" $$ ");return`${O.join("{")}{${l}${T}${l}}${O.map(S=>"").join("}")}`}).filter(Boolean).join(l);return o&&(y=[h[b],y].filter(Boolean).join(l)),j[b]=!s&&y?`/* layer: ${b} */${l}${y}`:y},v=(b=x,y)=>b.filter($=>!(y!=null&&y.includes($))).map($=>w($)||"").filter(Boolean).join(l);return{get css(){return v()},layers:x,getLayers:v,getLayer:w,matched:m}}matchVariants(t,r){let n=new Set,o=[],i=r||t,s=!1,a={rawSelector:t,theme:this.config.theme,generator:this};for(;;){s=!1;for(let l of this.config.variants){if(!l.multiPass&&n.has(l))continue;let f=l.match(i,a);if(!!f){typeof f=="string"&&(f={matcher:f}),i=f.matcher,o.unshift(f),n.add(l),s=!0;break}}if(!s)break;if(o.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,o,n]}applyVariants(t,r=t[4],n=t[1]){let i=[...r].sort((f,m)=>(f.order||0)-(m.order||0)).reverse().reduce((f,m)=>u=>{var g,x;let h=((g=m.body)==null?void 0:g.call(m,u.entries))||u.entries,p=Array.isArray(m.parent)?m.parent:[m.parent,void 0];return(m.handle??eo)({...u,entries:h,selector:((x=m.selector)==null?void 0:x.call(m,u.selector,h))||u.selector,parent:p[0]||u.parent,parentOrder:p[1]||u.parentOrder,layer:m.layer||u.layer,sort:m.sort||u.sort},f)},f=>f)({prefix:"",selector:Qn(n),pseudo:"",entries:t[2]}),{parent:s,parentOrder:a}=i;s!=null&&a!=null&&this.parentOrders.set(s,a);let l={selector:Jn([i.prefix,i.selector,i.pseudo].join("")),entries:i.entries,parent:s,layer:i.layer,sort:i.sort};for(let f of this.config.postprocess)f(l);return l}constructCustomCSS(t,r,n){let o=J(r);if(typeof o=="string")return o;let{selector:i,entries:s,parent:a}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),l=`${i}{${K(s)}}`;return a?`${a}{${l}}`:l}async parseUtil(t,r,n=!1){var u,h;let[o,i,s]=typeof t=="string"?this.matchVariants(t):t,a=this.config.details?p=>{r.rules=r.rules??[],r.rules.push(p)}:Pe,l=this.config.rulesStaticMap[i];if(l&&l[1]&&(n||!((u=l[2])!=null&&u.internal))){a(l[3]);let p=l[0],g=J(l[1]),x=l[2];return typeof g=="string"?[[p,g,x]]:[[p,o,g,x,s]]}r.variantHandlers=s;let{rulesDynamic:f,rulesSize:m}=this.config;for(let p=m-1;p>=0;p--){let g=f[p];if(!g||((h=g[2])==null?void 0:h.internal)&&!n)continue;let[x,j,w]=g,v=i.match(x);if(!v)continue;let b=await j(v,r);if(!b)continue;a(g);let y=ot(b).filter($=>$.length);if(y.length)return y.map($=>typeof $=="string"?[p,$,w]:[p,o,$,w,s])}}stringifyUtil(t,r){if(!t)return;if(Oe(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0];let{selector:n,entries:o,parent:i,layer:s,sort:a}=this.applyVariants(t),l=K(o);if(!l)return;let{layer:f,sort:m,...u}=t[3]??{},h={...u,layer:s??f,sort:a??m};return[t[0],n,l,i,h,this.config.details?r:void 0]}expandShortcut(t,r,n=3){if(n===0)return;let o=this.config.details?a=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(a)}:Pe,i,s;for(let a of this.config.shortcuts)if(st(a)){if(a[0]===t){i=i||a[2],s=a[1],o(a);break}}else{let l=t.match(a[0]);if(l&&(s=a[1](l,r)),s){i=i||a[2],o(a);break}}if(typeof s=="string"&&(s=ut(s).split(/\s+/g)),!s){let[a,l]=typeof t=="string"?this.matchVariants(t):t;if(a!==l){let f=this.expandShortcut(l,r,n-1);if(f)return f[0].forEach((m,u)=>{f[0][u]=a.replace(l,m)}),f}return}return[s.flatMap(a=>{var l;return((l=this.expandShortcut(a,r,n-1))==null?void 0:l[0])||[a]}).filter(a=>a!==""),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){var m;let i=new ye,s=(await Promise.all(Q(n).map(async u=>{let h=await this.parseUtil(u,r,!0);return h||mt(`unmatched utility "${u}" in shortcut "${t[1]}"`),h||[]}))).flat(1).filter(Boolean).sort((u,h)=>u[0]-h[0]),[a,,l]=t,f=[];for(let u of s){if(Oe(u)){f.push([u[0],void 0,u[1],void 0,u[2],r]);continue}let{selector:h,entries:p,parent:g,sort:x}=this.applyVariants(u,[...u[4],...l],a);i.getFallback(h,g,[[],u[0]])[0].push([p,!!((m=u[3])!=null&&m.noMerge),x??0])}return f.concat(i.map(([u,h],p,g)=>{let x=(w,v,b)=>{let y=Math.max(...b.map(R=>R[1])),$=b.map(R=>R[0]);return(w?[$.flat(1)]:$).map(R=>{let A=K(R);if(A)return[h,p,A,g,{...o,noMerge:v,sort:y},r]})};return[[u.filter(([,w])=>w).map(([w,,v])=>[w,v]),!0],[u.filter(([,w])=>!w).map(([w,,v])=>[w,v]),!1]].map(([w,v])=>[...x(!1,v,w.filter(([b])=>b.some(y=>y[0]===Ve))),...x(!0,v,w.filter(([b])=>b.every(y=>y[0]!==Ve)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function xt(e,t){return new Ue(e,t)}var yt=/ \$\$ /,Xn=e=>e.match(yt);function Yn(e,t){return Xn(e)?e.replace(yt,t?` ${t} `:" "):t?`${t} ${e}`:e}function Jn(e){let t=e.match(/::[\w-]+/g);return t&&(t.forEach(r=>e=e.replace(r,"")),e+=t.join("")),e}var bt=/^\[(.+?)(~?=)"(.*)"\]$/;function Qn(e){return bt.test(e)?e.replace(bt,(t,r,n,o)=>`[${be(r)}${n}"${be(o)}"]`):`.${be(e)}`}function eo(e,t){return t(e)}var $t=[{layer:"preflights",getCSS(e){if(e.theme.preflightBase){let t=K(Object.entries(e.theme.preflightBase));return`*,::before,::after{${t}}::backdrop{${t}}`}}}];var U={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},Fe={...U,s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]},_e={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},Le={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},wt=["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"],re=Object.assign({},...wt.map(e=>({[e.replace(/ /,"-")]:e})),...wt.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),C=["inherit","initial","revert","revert-layer","unset"];var vt={mid:"middle",base:"baseline",btm:"bottom",baseline:"baseline",top:"top",middle:"middle",bottom:"bottom","text-top":"text-top","text-bottom":"text-bottom",sub:"sub",super:"super",...Object.fromEntries(C.map(e=>[e,e]))},St=[[/^(?:vertical|align|v)-([-\w]+)$/,([,e])=>({"vertical-align":vt[e]}),{autocomplete:`(vertical|align|v)-(${Object.keys(vt).join("|")})`}]],kt=["center","left","right","justify","start","end",...C].map(e=>[`text-${e}`,{"text-align":e}]);var We=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],Ct=["%alpha","<alpha-value>"],to=new RegExp(Ct.map(e=>N(e)).join("|"));function De(e=""){let t=ro(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(["rgba","hsla"].includes(i)&&o==null)&&!(We.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n,alpha:o}}function oe(e){let t=e.alpha??1;return typeof t=="string"&&Ct.includes(t)?1:t}function W(e,t){if(typeof e=="string")return e.replace(to,`${t??1}`);let{components:r}=e,{alpha:n,type:o}=e;return n=t??n,o=o.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(o)?`${o.replace("a","")}a(${r.join(",")}${n==null?"":`,${n}`})`:(n=n==null?"":` / ${n}`,We.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function ro(e){if(!e)return;let t=no(e);if(t!=null||(t=oo(e),t!=null)||(t=io(e),t!=null)||(t=ao(e),t!=null)||(t=co(e),t!=null))return t}function no(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];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{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:t.length===6?void 0:Math.round((n&255)/255*100)/100}}}function oo(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function io(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=ne(n,",",5);if(o){if([3,4].includes(o.length))return{type:r,components:o.slice(0,3),alpha:o[3]};if(o.length!==1)return!1}}var so=new RegExp(`^(${We.join("|")})\\((.+)\\)$`,"i");function ao(e){let t=e.match(so);if(!t)return;let[,r,n]=t,o=Rt(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function co(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=Rt(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function Rt(e){let t=ne(e);if(!t)return;let r=t.length;if(t[r-2]==="/")return{components:t.slice(0,r-2),alpha:t[r-1]};if(t[r-2]!=null&&(t[r-2].endsWith("/")||t[r-1].startsWith("/"))){let i=t.splice(r-2);t.push(i.join(" ")),--r}let n=ne(t[r-1],"/",3);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:t};let o=n.pop();return t[r-1]=n.join("/"),{components:t,alpha:o}}function lo(e,t){if(e=e.trim(),e==="")return;let r=e.length,n=0;for(let o=0;o<r;o++)switch(e[o]){case"(":n++;break;case")":if(--n<0)return;break;case t:if(n===0){let i=e.slice(0,o).trim();return i===""?void 0:[i,e.slice(o+1).trim()]}}return[e,""]}function ne(e,t,r){if(t=t??" ",t.length!==1)return;r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=lo(e,t);if(!i)return;let[s,a]=i;n.push(s),e=a}if(n.length>0)return n}var Ne={};Bn(Ne,{auto:()=>mo,bracket:()=>wo,bracketOfColor:()=>vo,bracketOfLength:()=>So,bracketOfPosition:()=>ko,cssvar:()=>Co,degree:()=>Eo,fraction:()=>yo,global:()=>To,number:()=>bo,numberWithUnit:()=>po,percent:()=>xo,position:()=>jo,properties:()=>zo,px:()=>go,rem:()=>ho,time:()=>Ro});var fo=["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","border-radius"],Be=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|cqw|cqh|cqi|cqb|cqmin|cqmax|rpx)?$/i,uo=/^(-?[0-9.]+)$/i,Et=/^(px)$/i;function F(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function po(e){let t=e.match(Be);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(n&&!Number.isNaN(o))return`${F(o)}${n}`}function mo(e){if(e==="auto"||e==="a")return"auto"}function ho(e){if(e.match(Et))return`1${e}`;let t=e.match(Be);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${F(o)}${n}`:`${F(o/4)}rem`}function go(e){if(e.match(Et))return`1${e}`;let t=e.match(Be);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${F(o)}${n}`:`${F(o)}px`}function bo(e){if(!uo.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return F(t)}function xo(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${F(t/100)}`}function yo(e){if(e==="full")return"100%";let[t,r]=e.split("/"),n=parseFloat(t)/parseFloat(r);if(!Number.isNaN(n))return`${F(n*100)}%`}var $o=/^\[(color|length|position):/i;function $e(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,n=e.match($o);if(n?t&&n[1]===t&&(r=e.slice(n[0].length,-1)):r=e.slice(1,-1),r!==void 0)return r.replace(/(url\(.*?\))/g,o=>o.replace(/_/g,"\\_")).replace(/([^\\])_/g,"$1 ").replace(/(?:calc|clamp|max|min)\((.*)/g,o=>o.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}}function wo(e){return $e(e)}function vo(e){return $e(e,"color")}function So(e){return $e(e,"length")}function ko(e){return $e(e,"position")}function Co(e){if(e.match(/^\$\S/))return`var(--${je(e.slice(1))})`}function Ro(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?`${F(o)}${n}`:`${F(o)}ms`}function Eo(e){let t=e.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${F(o)}${n}`:`${F(o)}deg`}function To(e){if(C.includes(e))return e}function zo(e){if(e.split(",").every(t=>fo.includes(t)))return e}function jo(e){if(["top","left","right","bottom","center"].includes(e))return e}var c=dt(Ne);var I=(e,t)=>{let r=new RegExp(`^${N(e)}[:-]`);return{name:e,match:n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),handle:(i,s)=>s({...i,...t(i)})}},autocomplete:`${e}:`}},ie=(e,t)=>{let r=new RegExp(`^${N(e)}[:-]`);return{name:e,match:n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),handle:(i,s)=>s({...i,parent:`${i.parent?`${i.parent} $$ `:""}${t}`})}},autocomplete:`${e}:`}};var Tt="$$mini-no-negative",P=e=>([t,r,n],{theme:o})=>{var s;let i=((s=o.spacing)==null?void 0:s[n||"DEFAULT"])??c.bracket.cssvar.global.auto.fraction.rem(n);if(i!=null)return U[r].map(a=>[`${e}${a}`,i])},He=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,n=>n.slice(1).toUpperCase())]},we=(e,t)=>{let r=e.split(/(?:\/|:)/),n,o;r[0]==="[color"?(n=r.slice(0,2).join(":"),o=r[2]):[n,o]=r;let i=n.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[s]=i;if(!s)return;let a,l=c.bracketOfColor(n),f=l||n;f.startsWith("#")?a=f:f.startsWith("hex-")?a=`#${f.slice(4)}`:n.startsWith("$")&&(a=c.cssvar(n)),a=a||l;let m="DEFAULT";if(!a){let u,[h]=i.slice(-1);h.match(/^\d+$/)?(m=h,u=He(t,i.slice(0,-1))):(u=He(t,i),!u&&i.length<=2&&([,m=m]=i,u=He(t,[s]))),typeof u=="string"?a=u:m&&u&&(a=u[m])}return{opacity:o,name:s,no:m,color:a,cssColor:De(a),alpha:c.bracket.cssvar.percent(o??"")}},z=(e,t)=>([,r],{theme:n})=>{let o=we(r,n);if(!o)return;let{alpha:i,color:s,cssColor:a}=o;if(a)return i!=null?{[e]:W(a,i)}:{[`--un-${t}-opacity`]:oe(a),[e]:W(a,`var(--un-${t}-opacity)`)};if(s)return{[e]:W(s,i)}},ve=(e,t)=>{let r=[];e=M(e);for(let n=0;n<e.length;n++){let o=ne(e[n]," ",6);if(!o||o.length<3)return e;let i=De(o.pop());if(i==null)return e;r.push(`${o.join(" ")} var(${t}, ${W(i)})`)}return r},zt=(e,t)=>{var r;return e!=null&&!!((r=we(e,t))!=null&&r.color)},Se=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.breakpoints),r||(r=e.breakpoints),r},jt=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.verticalBreakpoints),r||(r=e.verticalBreakpoints),r},k=(e,t)=>C.map(r=>[`${e}-${r}`,{[t??e]:r}]);var At=[[/^outline-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r;return{"outline-width":((r=t.lineWidth)==null?void 0:r[e])??c.bracket.cssvar.global.px(e)}},{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,z("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,e],{theme:t})=>{var r;return{"outline-offset":((r=t.lineWidth)==null?void 0:r[e])??c.bracket.cssvar.global.px(e)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset",...C].map(e=>[`outline-${e}`,{"outline-style":e}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],Vt=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],Ao=e=>c.properties.auto.global(e)??{contents:"contents",scroll:"scroll-position"}[e],Ot=[[/^will-change-(.+)/,([,e])=>({"will-change":Ao(e)})]];var fe=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...C],Pt=[[/^(?:border|b)()(?:-(.+))?$/,se,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,se],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,se],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,se],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,se],[/^(?:border|b)-()(?:width|size)-(.+)$/,q,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,q],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,q],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,q],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,q],[/^(?:border|b)-()(?:color-)?(.+)$/,ae,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,ae],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,ae],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,ae],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,ae],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,ce,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,ce],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,ce],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,ce],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,ce],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,le,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,le],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,le],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,le],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,le],[/^(?:border|b)-(?:style-)?()(.+)$/,G,{autocomplete:["(border|b)-style",`(border|b)-(${fe.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${fe.join("|")})`,`(border|b)-<directions>-style-(${fe.join("|")})`,`(border|b)-style-(${fe.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,G],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,G],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,G],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,G]],Vo=e=>([,t],r)=>{let n=we(t,r);if(!n)return;let{alpha:o,color:i,cssColor:s}=n;if(s)return o!=null?{[`border${e}-color`]:W(s,o)}:e===""?{"--un-border-opacity":oe(s),"border-color":W(s,"var(--un-border-opacity)")}:{"--un-border-opacity":oe(s),[`--un-border${e}-opacity`]:"var(--un-border-opacity)",[`border${e}-color`]:W(s,`var(--un-border${e}-opacity)`)};if(i)return{[`border${e}-color`]:W(i,o)}};function se(e,t){let r=q(e,t),n=G(["",e[1],"solid"]);if(r&&n)return[...r,...n]}function q([,e="",t],{theme:r}){var o;let n=((o=r.lineWidth)==null?void 0:o[t||"DEFAULT"])??c.bracket.cssvar.global.px(t||"1");if(e in U&&n!=null)return U[e].map(i=>[`border${i}-width`,n])}function ae([,e="",t],{theme:r}){if(e in U&&zt(t,r))return Object.assign({},...U[e].map(n=>Vo(n)(["",t],r)))}function ce([,e="",t]){let r=c.bracket.percent(t);if(e in U&&r!=null)return U[e].map(n=>[`--un-border${n}-opacity`,r])}function le([,e="",t],{theme:r}){var o;let n=((o=r.borderRadius)==null?void 0:o[t||"DEFAULT"])||c.bracket.cssvar.global.fraction.rem(t||"1");if(e in _e&&n!=null)return _e[e].map(i=>[`border${i}-radius`,n])}function G([,e="",t]){if(fe.includes(t)&&e in U)return U[e].map(r=>[`border${r}-style`,t])}var Mt=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:c.bracket.percent.cssvar(e)})]],Ut=[[/^(?:text|color|c)-(.+)$/,z("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":c.bracket.percent(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],Ft=[[/^bg-(.+)$/,z("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":c.bracket.percent(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var ke={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},_t=e=>c.properties(e)??ke[e],Lt=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{var o;let n=e!=null?_t(e):[ke.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(n){let i=((o=r.duration)==null?void 0:o[t||"DEFAULT"])??c.time(t||"150");return{"transition-property":n,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":i}}},{autocomplete:`transition-(${Object.keys(ke).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>{var r;return{"transition-duration":((r=t.duration)==null?void 0:r[e||"DEFAULT"])??c.bracket.cssvar.time(e)}},{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,e],{theme:t})=>{var r;return{"transition-delay":((r=t.duration)==null?void 0:r[e||"DEFAULT"])??c.bracket.cssvar.time(e)}},{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"transition-timing-function":((r=t.easing)==null?void 0:r[e||"DEFAULT"])??c.bracket.cssvar(e)}},{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,e])=>({"transition-property":c.global(e)||_t(e)}),{autocomplete:[`transition-property-(${[...C,...Object.keys(ke)].join("|")})`]}],["transition-none",{transition:"none"}],...k("transition")];var Wt=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,e])=>({flex:c.bracket(e)!=null?c.bracket(e).split(" ").map(t=>c.cssvar.fraction(t)??t).join(" "):c.cssvar.fraction(e)})],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^(?: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],{theme:t})=>{var r;return{"flex-basis":((r=t.spacing)==null?void 0:r[e])??c.bracket.cssvar.auto.fraction.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 Dt={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Bt=[[/^font-(.+)$/,([,e],{theme:t})=>{var r;return{"font-family":((r=t.fontFamily)==null?void 0:r[e])||c.bracket.cssvar.global(e)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,e="base"],{theme:t})=>{var n;let r=M((n=t.fontSize)==null?void 0:n[e]);if(r!=null&&r[0]){let[o,i="1"]=r;return{"font-size":o,"line-height":i}}return{"font-size":c.bracketOfLength.rem(e)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,e],{theme:t})=>{var o;let r=M((o=t.fontSize)==null?void 0:o[e]),n=(r==null?void 0:r[0])??c.bracket.cssvar.global.rem(e);if(n!=null)return{"font-size":n}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,e])=>({"font-weight":Dt[e]||c.global.number(e)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(Dt).join("|")})`}],[/^(?:font-)?(?:leading|lh)-(.+)$/,([,e],{theme:t})=>{var r;return{"line-height":((r=t.lineHeight)==null?void 0:r[e])||c.bracket.cssvar.global.rem(e)}},{autocomplete:"(leading|lh)-$lineHeight"}],["font-synthesis-weight",{"font-synthesis":"weight"}],["font-synthesis-style",{"font-synthesis":"style"}],["font-synthesis-small-caps",{"font-synthesis":"small-caps"}],["font-synthesis-none",{"font-synthesis":"none"}],[/^font-synthesis-(.+)$/,([,e])=>({"font-synthesis":c.bracket.cssvar.global(e)})],[/^(?:font-)?tracking-(.+)$/,([,e],{theme:t})=>{var r;return{"letter-spacing":((r=t.letterSpacing)==null?void 0:r[e])||c.bracket.cssvar.global.rem(e)}},{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,e],{theme:t})=>{var r;return{"word-spacing":((r=t.wordSpacing)==null?void 0:r[e])||c.bracket.cssvar.global.rem(e)}},{autocomplete:"word-spacing-$wordSpacing"}]],Nt=[[/^tab(?:-(.+))?$/,([,e])=>{let t=c.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],Ht=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"text-indent":((r=t.textIndent)==null?void 0:r[e||"DEFAULT"])||c.bracket.cssvar.global.fraction.rem(e)}},{autocomplete:"indent-$textIndent"}]],Kt=[[/^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)}},{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,z("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":c.bracket.percent(e)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],It=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.textShadow)==null?void 0:n[e||"DEFAULT"];return r!=null?{"--un-text-shadow":ve(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":c.bracket.cssvar.global(e)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,z("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":c.bracket.percent(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var qt={"":"",x:"column-",y:"row-"},Gt=([,e="",t],{theme:r})=>{var o;let n=((o=r.spacing)==null?void 0:o[t])??c.bracket.cssvar.global.rem(t);if(n!=null)return{[`grid-${qt[e]}gap`]:n,[`${qt[e]}gap`]:n}},Zt=[[/^(?:flex-|grid-)?gap-?()(.+)$/,Gt,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,Gt,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var D=e=>e.replace("col","column"),Ke=e=>e[0]==="r"?"Row":"Column",Oo=(e,t,r)=>{var o;let n=(o=t[`gridAuto${Ke(e)}`])==null?void 0:o[r];if(n!=null)return n;switch(r){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return c.bracket.cssvar.auto.rem(r)},Xt=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:r})=>{var n;return{[`grid-${D(e)}`]:((n=r[`grid${Ke(e)}`])==null?void 0:n[t])??c.bracket.cssvar.auto(t)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${D(e)}`]:"1/-1"};let r=c.bracket.number(t);if(r!=null)return{[`grid-${D(e)}`]:`span ${r}/span ${r}`}},{autocomplete:["grid-(row|col)-span-<num>","(row|col)-span-<num>"]}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,e,t])=>({[`grid-${D(e)}-start`]:c.bracket.cssvar(t)??t})],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>({[`grid-${D(e)}-end`]:c.bracket.cssvar(t)??t})],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-auto-${D(e)}`]:Oo(e,r,t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":c.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,e])=>({"grid-auto-flow":D(e).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>{var n;return{[`grid-template-${D(e)}`]:((n=r[`gridTemplate${Ke(e)}`])==null?void 0:n[t])??c.bracket.cssvar(t)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${D(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${D(e)}`]:`repeat(${t},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var Ce=["auto","hidden","clip","visible","scroll",...C],Yt=[[/^(?:overflow|of)-(.+)$/,([,e])=>Ce.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-(${Ce.join("|")})`,`(overflow|of)-(x|y)-(${Ce.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>Ce.includes(t)?{[`overflow-${e}`]:t}:void 0]];var Jt=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)([-\w]+)$/,([,e])=>C.includes(e)?{position:e}:void 0],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],Qt=[["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"}],...k("justify","justify-content"),["justify-items-start",{"justify-items":"start"}],["justify-items-end",{"justify-items":"end"}],["justify-items-center",{"justify-items":"center"}],["justify-items-stretch",{"justify-items":"stretch"}],...k("justify-items"),["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"}],...k("justify-self")],er=[[/^order-(.+)$/,([,e])=>({order:c.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],tr=[["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"}],...k("content","align-content"),["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"}],...k("items","align-items"),["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"}],...k("self","align-self")],rr=[["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"}],...k("place-content"),["place-items-start",{"place-items":"start"}],["place-items-end",{"place-items":"end"}],["place-items-center",{"place-items":"center"}],["place-items-stretch",{"place-items":"stretch"}],...k("place-items"),["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"}],...k("place-self")];function Ie(e,{theme:t}){var r;return((r=t.spacing)==null?void 0:r[e])??c.bracket.cssvar.global.auto.fraction.rem(e)}function Re([,e,t],r){let n=Ie(t,r);if(n!=null&&e in Fe)return Fe[e].map(o=>[o.slice(1),n])}var nr=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:Ie(e,t)}),{autocomplete:["(position|pos)-inset-<directions>-$spacing","(position|pos)-inset-(block|inline)-$spacing","(position|pos)-inset-(bs|be|is|ie)-$spacing","(position|pos)-(top|left|right|bottom)-$spacing"]}],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,Re],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,Re],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,Re],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,Re],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:Ie(t,r)})]],or=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-none",{float:"none"}],...k("float"),["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-none",{clear:"none"}],...k("clear")],ir=[[/^z([\d.]+)$/,([,e])=>({"z-index":c.number(e)})],[/^z-(.+)$/,([,e])=>({"z-index":c.bracket.cssvar.global.auto.number(e)}),{autocomplete:"z-<num>"}]],sr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}],...k("box","box-sizing")];var Po=["auto","default","none","context-menu","help","pointer","progress","wait","cell","crosshair","text","vertical-text","alias","copy","move","no-drop","not-allowed","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out"],Ee="var(--un-empty,/*!*/ /*!*/)",ar=[["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"}],[/^display-(.+)$/,([,e])=>({display:c.bracket.cssvar.global(e)||e})]],cr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}],...k("backface","backface-visibility")],lr=[[/^cursor-(.+)$/,([,e])=>({cursor:c.bracket.cssvar.global(e)})],...Po.map(e=>[`cursor-${e}`,{cursor:e}])],fr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}],...k("pointer-events")],ur=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}],...k("resize")],pr=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}],...k("select","user-select")],mr=[[/^(?:whitespace-|ws-)([-\w]+)$/,([,e])=>["normal","nowrap","pre","pre-line","pre-wrap","break-spaces",...C].includes(e)?{"white-space":e}:void 0,{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],dr=[[/^content-\[(.+)\]$/,([,e])=>({content:`"${e}"`})],[/^content-(\$.+)]$/,([,e])=>({content:c.cssvar(e)})],["content-empty",{content:'""'}],["content-none",{content:'""'}]],hr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],gr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],br=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}],...k("case","text-transform")],xr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}],["oblique",{"font-style":"oblique"}],["not-oblique",{"font-style":"normal"}],["font-oblique",{"font-style":"oblique"}],["font-not-oblique",{"font-style":"normal"}]],yr=[["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 $r={"--un-ring-inset":Ee,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgba(147,197,253,0.5)","--un-shadow":"0 0 #0000"},wr=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=((n=t.ringWidth)==null?void 0:n[e||"DEFAULT"])??c.px(e||"1");if(r)return{"--un-ring-width":r,"--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(var(--un-ring-width) + 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)"}},{autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,([,e],{theme:t})=>{var r;return{"--un-ring-width":((r=t.lineWidth)==null?void 0:r[e])??c.bracket.cssvar.px(e)}},{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r;return{"--un-ring-offset-width":((r=t.lineWidth)==null?void 0:r[e])??c.bracket.cssvar.px(e)}},{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,z("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":c.bracket.percent(e)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,z("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":c.bracket.percent(e)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var vr={"--un-ring-offset-shadow":"0 0 #0000","--un-ring-shadow":"0 0 #0000","--un-shadow-inset":Ee,"--un-shadow":"0 0 #0000"},Sr=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.boxShadow)==null?void 0:n[e||"DEFAULT"];if(r)return{"--un-shadow":ve(r,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"}},{autocomplete:"shadow-$boxShadow"}],[/^shadow-(.+)$/,z("--un-shadow-color","shadow"),{autocomplete:"shadow-$colors"}],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":c.bracket.percent(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var Mo={h:"height",w:"width",inline:"inline-size",block:"block-size"};function ue(e,t){return`${e||""}${Mo[t]}`}function kr(e,t,r,n){var s;let o=ue(e,t).replace(/-(\w)/g,(a,l)=>l.toUpperCase()),i=(s=r[o])==null?void 0:s[n];if(i!=null)return i;switch(n){case"fit":case"max":case"min":return`${n}-content`}return c.bracket.cssvar.global.auto.fraction.rem(n)}var Cr=[[/^(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:n})=>({[ue(e,t)]:kr(e,t,n,r)})],[/^(min-|max-)?(block|inline)-(.+)$/,([,e,t,r],{theme:n})=>({[ue(e,t)]:kr(e,t,n,r)}),{autocomplete:["(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h|block|inline)","(max|min)-(w|h|block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"]}],[/^(min-|max-)?(h)-screen-(.+)$/,([,e,t,r],n)=>{var o;return{[ue(e,t)]:(o=jt(n))==null?void 0:o[r]}}],[/^(min-|max-)?(w)-screen-(.+)$/,([,e,t,r],n)=>{var o;return{[ue(e,t)]:(o=Se(n))==null?void 0:o[r]}},{autocomplete:["(w|h)-screen","(min|max)-(w|h)-screen","h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints","w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function Uo(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return c.bracket.cssvar.global.auto.number(e)}var Rr=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":Uo(e)}),{autocomplete:["aspect-(square|video|ratio)","aspect-ratio-(square|video)"]}]];var Er=[[/^pa?()-?(-?.+)$/,P("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,P("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(-?.+))?$/,P("padding")],[/^p-?([rltbse])(?:-?(-?.+))?$/,P("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(-?.+))?$/,P("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(-?.+))?$/,P("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],Tr=[[/^ma?()-?(-?.+)$/,P("margin")],[/^m-?xy()()$/,P("margin")],[/^m-?([xy])(?:-?(-?.+))?$/,P("margin")],[/^m-?([rltbse])(?:-?(-?.+))?$/,P("margin")],[/^m-(block|inline)(?:-(-?.+))?$/,P("margin")],[/^m-?([bi][se])(?:-?(-?.+))?$/,P("margin")]];var zr=["translate","rotate","scale"],H=["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","translateZ(var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" "),Fo=["translate3d(var(--un-translate-x), var(--un-translate-y), var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" "),Or={"--un-rotate":0,"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-scale-x":1,"--un-scale-y":1,"--un-scale-z":1,"--un-skew-x":0,"--un-skew-y":0,"--un-translate-x":0,"--un-translate-y":0,"--un-translate-z":0},Pr=[[/^(?:transform-)?origin-(.+)$/,([,e])=>({"transform-origin":re[e]??c.bracket.cssvar(e)}),{autocomplete:[`transform-origin-(${Object.keys(re).join("|")})`,`origin-(${Object.keys(re).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,e])=>{let t=c.bracket.cssvar.px.numberWithUnit(e);if(t!=null)return{"-webkit-perspective":t,perspective:t}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,e])=>{let t=c.bracket.cssvar(e)??(e.length>=3?re[e]:void 0);if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,jr],[/^(?:transform-)?translate-([xyz])-(.+)$/,jr],[/^(?:transform-)?rotate-()(.+)$/,Vr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Vr],[/^(?:transform-)?skew-([xy])-(.+)$/,_o,{autocomplete:["transform-skew-(x|y)-<percent>"]}],[/^(?:transform-)?scale-()(.+)$/,Ar],[/^(?:transform-)?scale-([xyz])-(.+)$/,Ar,{autocomplete:[`transform-(${zr.join("|")})-<percent>`,`transform-(${zr.join("|")})-(x|y|z)-<percent>`]}],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],["transform",{transform:H}],["transform-cpu",{transform:H}],["transform-gpu",{transform:Fo}],["transform-none",{transform:"none"}],...k("transform")];function jr([,e,t],{theme:r}){var o;let n=((o=r.spacing)==null?void 0:o[t])??c.bracket.cssvar.fraction.rem(t);if(n!=null)return[...Le[e].map(i=>[`--un-translate${i}`,n]),["transform",H]]}function Ar([,e,t]){let r=c.bracket.cssvar.fraction.percent(t);if(r!=null)return[...Le[e].map(n=>[`--un-scale${n}`,r]),["transform",H]]}function Vr([,e="",t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return e?{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:H}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:H}}function _o([,e,t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return{[`--un-skew-${e}`]:r,transform:H}}var Lo={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",fw:"font-weight",items:"align-items",justify:"justify-content",select:"user-select",self:"align-self",vertical:"vertical-align",visible:"visibility",whitespace:"white-space",ws:"white-space"},Mr=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=Lo[e];if(r)return{[r]:c.cssvar(t)}}]],Ur=[[/^\[([\w_-]+):([^'"]+)\]$/,([,e,t])=>({[e]:c.bracket(`[${t}]`)})]];var Fr=[[/^(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 _r=["solid","double","dotted","dashed","wavy",...C],Lr=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,e])=>({"text-decoration-line":e}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,([,e],{theme:t})=>{var r;return{"text-decoration-thickness":((r=t.lineWidth)==null?void 0:r[e])??c.bracket.cssvar.global.px(e)}},{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,e])=>({"text-decoration-thickness":e}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,(e,t)=>{let r=z("text-decoration-color","line")(e,t);if(r)return{"-webkit-text-decoration-color":r["text-decoration-color"],...r}},{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":c.bracket.percent(e)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,e],{theme:t})=>{var r;return{"text-underline-offset":((r=t.lineWidth)==null?void 0:r[e])??c.auto.bracket.cssvar.global.px(e)}},{autocomplete:"(underline|decoration)-(offset)-<num>"}],..._r.map(e=>[`underline-${e}`,{"text-decoration-style":e}]),..._r.map(e=>[`decoration-${e}`,{"text-decoration-style":e}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];var Wr=[[/^fill-(.+)$/,z("fill","fill"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":c.bracket.percent(e)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r;return{"stroke-width":((r=t.lineWidth)==null?void 0:r[e])??c.bracket.cssvar.fraction.px.number(e)}},{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":c.bracket.cssvar.number(e)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,e],{theme:t})=>{var r;return{"stroke-dashoffset":((r=t.lineWidth)==null?void 0:r[e])??c.bracket.cssvar.px.numberWithUnit(e)}},{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,z("stroke","stroke"),{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":c.bracket.percent(e)}),{autocomplete:"stroke-(op|opacity)-<percent>"}],["stroke-cap-square",{"stroke-linecap":"square"}],["stroke-cap-round",{"stroke-linecap":"round"}],["stroke-cap-auto",{"stroke-linecap":"butt"}],["stroke-join-arcs",{"stroke-linejoin":"arcs"}],["stroke-join-bevel",{"stroke-linejoin":"bevel"}],["stroke-join-clip",{"stroke-linejoin":"miter-clip"}],["stroke-join-round",{"stroke-linejoin":"round"}],["stroke-join-auto",{"stroke-linejoin":"miter"}],["stroke-none",{stroke:"none"}]];var Dr=[Mr,Ur,Er,Tr,ar,Mt,Ft,Wr,Pt,dr,Bt,Nt,Ht,gr,Lr,Kt,It,br,kt,Ut,xr,yr,Sr,wr,Wt,Xt,Zt,Jt,Cr,Rr,lr,cr,fr,ur,St,pr,mr,hr,Yt,At,Vt,er,Qt,tr,rr,nr,or,ir,sr,Lt,Pr,Ot,Fr].flat(1);var qe={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(qe).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 Br={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(",")},Nr={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"]},Hr={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},Kr={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},Ir={DEFAULT:["0 0 1px rgba(0,0,0,0.2)","0 0 1px rgba(1,0,5,0.1)"],none:"0 0 #0000",sm:"1px 1px 3px rgba(36,37,47,0.25)",md:["0 1px 2px rgba(30,29,39,0.19)","1px 2px 4px rgba(54,64,147,0.18)"],lg:["3px 3px 6px rgba(0,0,0,0.26)","0 0 5px rgba(15,3,86,0.22)"],xl:["1px 1px 3px rgba(0,0,0,0.29)","2px 4px 7px rgba(73,64,125,0.35)"]},qr={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},Ge={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},Gr=Ge;var Ze={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Zr={...Ze},Xr={DEFAULT:"1px",none:"0px"},Yr={DEFAULT:"1rem",none:"0rem",xs:"0.75rem",sm:"0.875rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},Jr={DEFAULT:"150ms",none:"0ms",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},Qr={DEFAULT:"0.25rem",none:"0rem",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},en={DEFAULT:["var(--un-shadow-inset) 0 1px 3px 0 rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 1px 2px -1px rgba(0,0,0,0.1)"],none:"0 0 #0000",sm:"var(--un-shadow-inset) 0 1px 2px 0 rgba(0,0,0,0.05)",md:["var(--un-shadow-inset) 0 4px 6px -1px rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 2px 4px -2px rgba(0,0,0,0.1)"],lg:["var(--un-shadow-inset) 0 10px 15px -3px rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 4px 6px -4px rgba(0,0,0,0.1)"],xl:["var(--un-shadow-inset) 0 20px 25px -5px rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 8px 10px -6px rgba(0,0,0,0.1)"],"2xl":"var(--un-shadow-inset) 0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)"},tn={DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},rn={DEFAULT:"1px",none:"0px"};var nn={DEFAULT:"8px",0:"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},on={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"},Xe={auto:"auto",...Te,screen:"100vw"},pe={none:"none",...Te,screen:"100vw"},Ye={auto:"auto",...Te,screen:"100vh"},me={none:"none",...Te,screen:"100vh"};var sn={...Or,...vr,...$r};var an={width:Xe,height:Ye,maxWidth:pe,maxHeight:me,minWidth:pe,minHeight:me,inlineSize:Xe,blockSize:Ye,maxInlineSize:pe,maxBlockSize:me,minInlineSize:pe,minBlockSize:me,colors:qe,fontFamily:Br,fontSize:Nr,breakpoints:Ze,verticalBreakpoints:Zr,borderRadius:Qr,lineHeight:qr,letterSpacing:Ge,wordSpacing:Gr,boxShadow:en,textIndent:Hr,textShadow:Ir,textStrokeWidth:Kr,blur:nn,dropShadow:on,easing:tn,lineWidth:Xr,spacing:Yr,duration:Jr,ringWidth:rn,preflightBase:sn};var Je={},cn=e=>{var o;let t=((o=e.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:o[0])||"",r=e.slice(t.length),n=parseFloat(t)-.1;return Number.isNaN(n)?e:`${n}${r}`},ln={name:"breakpoints",match(e,t){let r=Object.entries(Se(t)??{}).map(([n,o],i)=>[n,o,i]);for(let[n,o,i]of r){Je[n]||(Je[n]=new RegExp(`^((?:[al]t-)?${n}[:-])`));let s=e.match(Je[n]);if(!s)continue;let[,a]=s,l=e.slice(a.length);if(l==="container")continue;let f=a.startsWith("lt-"),m=a.startsWith("at-"),u=1e3;return f?(u-=i+1,{matcher:l,handle:(h,p)=>p({...h,parent:`${h.parent?`${h.parent} $$ `:""}@media (max-width: ${cn(o)})`,parentOrder:u})}):(u+=i+1,m&&i<r.length-1?{matcher:l,handle:(h,p)=>p({...h,parent:`${h.parent?`${h.parent} $$ `:""}@media (min-width: ${o}) and (max-width: ${cn(r[i+1][1])})`,parentOrder:u})}:{matcher:l,handle:(h,p)=>p({...h,parent:`${h.parent?`${h.parent} $$ `:""}@media (min-width: ${o})`,parentOrder:u})})}},multiPass:!0,autocomplete:"(at-|lt-|)$breakpoints:"};var B=(e,t,r)=>{let n=e?new RegExp(`^${t}(?:-\\[(.+?)\\])[:-]`):new RegExp(`^${t}(?:-\\[(.+?)\\])?[:-]`);return{name:`combinator:${t}`,match:o=>{let i=o.match(n);if(i)return{matcher:o.slice(i[0].length),selector:s=>r.replace("&&-s",s).replace("&&-c",i[1]??"*")}},multiPass:!0}},fn=[B(!1,"all","&&-s &&-c"),B(!1,"children","&&-s>&&-c"),B(!1,"next","&&-s+&&-c"),B(!1,"sibling","&&-s+&&-c"),B(!1,"siblings","&&-s~&&-c"),B(!0,"group","&&-c &&-s"),B(!0,"parent","&&-c>&&-s"),B(!0,"previous","&&-c+&&-s"),B(!0,"peer","&&-c~&&-s")];var un=ie("print","@media print"),pn={name:"media",match(e,{theme:t}){var n;let r=e.match(/^media-([_\d\w]+)[:-]/);if(r){let o=((n=t.media)==null?void 0:n[r[1]])??`(--${r[1]})`;return{matcher:e.slice(r[0].length),handle:(i,s)=>s({...i,parent:`${i.parent?`${i.parent} $$ `:""}@media ${o}`})}}},multiPass:!0};var mn=(e={})=>(e==null?void 0:e.dark)==="class"?[I("dark",t=>({prefix:`.dark $$ ${t.prefix}`})),I("light",t=>({prefix:`.light $$ ${t.prefix}`}))]:[ie("dark","@media (prefers-color-scheme: dark)"),ie("light","@media (prefers-color-scheme: light)")];var dn=[I("rtl",e=>({prefix:`[dir="rtl"] $$ ${e.prefix}`})),I("ltr",e=>({prefix:`[dir="ltr"] $$ ${e.prefix}`}))];var hn={name:"selector",match(e){let t=e.match(/^selector-\[(.+?)\][:-]/);if(t)return{matcher:e.slice(t[0].length),selector:()=>t[1]}}},gn={name:"layer",match(e){let t=e.match(/^layer-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),handle:(r,n)=>n({...r,parent:`${r.parent?`${r.parent} $$ `:""}@layer ${t[1]}`})}}},bn={name:"uno-layer",match(e){let t=e.match(/^uno-layer-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),layer:t[1]}}},xn={name:"scope",match(e){let t=e.match(/^scope-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),selector:r=>`.${t[1]} $$ ${r}`}}},yn={name:"variables",match(e){let t=e.match(/^(\[.+?\]):/);if(t){let r=c.bracket(t[1])??"";return{matcher:e.slice(t[0].length),handle(n,o){let i=r.startsWith("@")?{parent:`${n.parent?`${n.parent} $$ `:""}${r}`}:{selector:r.replace(/&/g,n.selector)};return o({...n,...i})}}}},multiPass:!0};var $n=/[0-9.]+(?:[a-z]+|%)?/,Wo=[/opacity|color|flex/],wn={name:"negative",match(e){if(!!e.startsWith("-"))return{matcher:e.slice(1),body:t=>{if(t.find(n=>n[0]===Tt))return;let r=!1;return t.forEach(n=>{var i;let o=(i=n[1])==null?void 0:i.toString();!o||o==="0"||Wo.some(s=>n[0].match(s))||$n.test(o)&&(n[1]=o.replace($n,s=>`-${s}`),r=!0)}),r?t:[]}}}};var vn={name:"important",match(e){let t,r=e.match(/^(important[:-]|!)/);if(r?t=e.slice(r[0].length):e.endsWith("!")&&(t=e.slice(0,-1)),t)return{matcher:t,body:n=>(n.forEach(o=>{o[1]&&(o[1]+=" !important")}),n)}}};var he=Object.fromEntries([["first-letter","::first-letter"],["first-line","::first-line"],"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",["placeholder","::placeholder"],["before","::before"],["after","::after"],["selection","::selection"],["marker","::marker"],["file","::file-selector-button"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),ge=Object.fromEntries([["backdrop","::backdrop"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),Do=["not","is","where","has"],Qe=Object.entries(he).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).join("|"),et=Object.entries(ge).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).join("|"),de=Do.join("|"),Sn=e=>{if(e==="active")return 1},ze=(e,t,r)=>{let n=new RegExp(`^(${N(t)}:)(\\S+)${N(r)}\\1`),o=new RegExp(`^${e}-((?:(${de})-)?(${Qe}))[:-]`),i=new RegExp(`^${e}-((?:(${de})-)?(${et}))[:]`);return{name:`pseudo:${e}`,match(s){let a=s.match(o)||s.match(i);if(a){let l=he[a[3]]||ge[a[3]]||`:${a[3]}`;return a[2]&&(l=`:${a[2]}(${l})`),{matcher:s.slice(a[0].length),handle:(f,m)=>m({...f,prefix:`${t}${l}${r}${f.prefix}`.replace(n,"$1$2:"),sort:Sn(a[3])})}}},multiPass:!0}},kn=Object.entries(he).map(([e])=>e).join("|"),Bo=Object.entries(ge).map(([e])=>e).join("|"),No=new RegExp(`^(${kn})[:-]`),Ho=new RegExp(`^(${Bo})[:]`),Cn={name:"pseudo",match:e=>{let t=e.match(No)||e.match(Ho);if(t){let r=he[t[1]]||ge[t[1]]||`:${t[1]}`;return{matcher:e.slice(t[0].length),handle:(n,o)=>{let i=r.startsWith("::")?{pseudo:`${n.pseudo}${r}`}:{selector:`${n.selector}${r}`};return o({...n,...i,sort:Sn(t[1])})}}}},multiPass:!0,autocomplete:`(${kn}):`},Ko=new RegExp(`^(${de})-(${Qe})[:-]`),Io=new RegExp(`^(${de})-(${et})[:]`),Rn={match:e=>{let t=e.match(Ko)||e.match(Io);if(t){let r=t[1],n=he[t[2]]||ge[t[2]]||`:${t[2]}`;return{matcher:e.slice(t[0].length),selector:o=>`${o}:${r}(${n})`}}},multiPass:!0,autocomplete:`(${de})-(${Qe}|${et}):`},En=(e={})=>{let t=!!(e!=null&&e.attributifyPseudo);return[ze("group",t?'[group=""]':".group"," "),ze("peer",t?'[peer=""]':".peer","~"),ze("parent",t?'[parent=""]':".parent",">"),ze("previous",t?'[previous=""]':".previous","+")]},qo=/(part-\[(.+)]:)(.+)/,Tn={match:e=>{let t=e.match(qo);if(t){let r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:n=>`${n}::${r}`}}},multiPass:!0};var zn=e=>[yn,gn,hn,bn,wn,vn,un,pn,ln,...fn,Cn,Rn,...En(e),Tn,...mn(e),...dn,xn];var Go=(e={})=>(e.dark=e.dark??"class",e.attributifyPseudo=e.attributifyPseudo??!1,{name:"@unocss/preset-mini",theme:an,rules:Dr,variants:zn(e),options:e,postprocess:e.variablePrefix&&e.variablePrefix!=="un-"?Zo(e.variablePrefix):void 0,preflights:$t}),jn=Go;function Zo(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 tt=/^(?!\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/,An=(e={})=>{let t=e.prefix??"un-",r=e.prefixedOnly??!1,n=e.trueToNonValued??!1;return{name:"attributify",match(o){let i=at(o);if(!i)return;let s=i[1];if(s.startsWith(t))s=s.slice(t.length);else if(r)return;let a=i[2],[,l="",f=a]=a.match(tt)||[];return f==="~"||n&&f==="true"||!f?`${l}${s}`:`${l}${s}-${f}`}}};var Xo=/(<\w[\w:\.$-]*\s)((?:'[^>]*?'|"[^>]*?"|`[^>]*?`|\{[^>]*?\}|[^>]*?)*)/g,Yo=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=("[^"]*|'[^']*))?/g,Vn=/[\s'"`;>]+/,On={name:"attributify",extract:({content:e,cursor:t})=>{let r=e.matchAll(Xo),n,o=0;for(let x of r){let[,j,w]=x,v=x.index+j.length;if(t>v&&t<=v+w.length){o=v,n=w;break}}if(!n)return null;let i=n.matchAll(Yo),s=0,a,l;for(let x of i){let[j,w,v]=x,b=o+x.index;if(t>b&&t<=b+j.length){s=b,a=w,l=v==null?void 0:v.slice(1);break}}if(!a||a==="class"||a==="className"||a===":class")return null;if(l===void 0)return{extracted:a,resolveReplacement(x){return{start:s,end:s+a.length,replacement:x}}};let f=s+a.length+2,m=Vn.exec(l),u=0,h;for(;m;){let[x]=m;if(t>f+u&&t<=f+u+m.index){h=l.slice(u,u+m.index);break}u+=m.index+x.length,m=Vn.exec(l.slice(u))}h===void 0&&(h=l.slice(u));let[,p="",g]=h.match(tt)||[];return{extracted:`${p}${a}-${g}`,transformSuggestions(x){return x.filter(j=>j.startsWith(`${p}${a}-`)).map(j=>p+j.slice(p.length+a.length+1))},resolveReplacement(x){return{start:u+f,end:u+f+h.length,replacement:p+x.slice(p.length+a.length+1)}}}}};var Jo=["v-bind:",":"],Pn=/[\s'"`;]+/g,Qo=/<\w(?=.*>)[\w:\.$-]*\s((?:['"`\{].*?['"`\}]|.*?)*?)>/gs,ei=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-]+)(?:=(["'])([^\2]*?)\2)?/g,Mn=e=>{let t=(e==null?void 0:e.ignoreAttributes)??[],r=(e==null?void 0:e.nonValuedAttribute)??!0,n=(e==null?void 0:e.trueToNonValued)??!1;return{name:"attributify",extract({code:o}){let i=Array.from(o.matchAll(Qo)).flatMap(s=>Array.from((s[1]||"").matchAll(ei))).flatMap(([,s,a,l])=>{if(t.includes(s))return[];for(let f of Jo)if(s.startsWith(f)){s=s.slice(f.length);break}if(!l){if(ee(s)&&r!==!1){let f=[`[${s}=""]`];return n&&f.push(`[${s}="true"]`),f}return[]}return["class","className"].includes(s)?l.split(Pn).filter(ee):l.split(Pn).filter(Boolean).map(f=>`[${s}~="${f}"]`)});return new Set(i)}}};var ti=(e={})=>{e.strict=e.strict??!1,e.prefix=e.prefix??"un-",e.prefixedOnly=e.prefixedOnly??!1,e.nonValuedAttribute=e.nonValuedAttribute??!0,e.ignoreAttributes=e.ignoreAttributes??[];let t=[An(e)],r=[Mn(e)],n=[On];return e.strict||r.unshift(te),{name:"@unocss/preset-attributify",variants:t,extractors:r,options:e,autocomplete:{extractors:n}}},Un=ti;var ri=e=>e.replace(/-(\w)/g,(t,r)=>r?r.toUpperCase():""),Fn=e=>e.charAt(0).toUpperCase()+e.slice(1),_n=e=>e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase(),Ln=["Webkit","Moz","ms"];function Wn(e){let t={};function r(n){let o=t[n];if(o)return o;let i=ri(n);if(i!=="filter"&&i in e)return t[n]=_n(i);i=Fn(i);for(let s=0;s<Ln.length;s++){let a=`${Ln[s]}${i}`;if(a in e)return t[n]=_n(Fn(a))}return n}return({entries:n})=>n.forEach(o=>{o[0].startsWith("--")||(o[0]=r(o[0]))})}function rt(e={}){var R,A;if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let t=window.__unocss||{},r=t==null?void 0:t.runtime,n=Object.assign(e.defaults||{},r);if(r!=null&&r.autoPrefix){let d=n.postprocess;d||(d=[]),Array.isArray(d)||(d=[d]),d.unshift(Wn(document.createElement("div").style)),n.postprocess=d}(R=r==null?void 0:r.configResolved)==null||R.call(r,t,n);let o,i=!0,s,a=xt(t,n),l=new Set,f,m=[],u=()=>new Promise(d=>{m.push(d),f!=null&&clearTimeout(f),f=setTimeout(()=>p().then(()=>{let T=m;m=[],T.forEach(O=>O())}),0)});function h(d=document.body){if(d.nodeType!==1)return;let T=d;T.hasAttribute("un-cloak")&&T.removeAttribute("un-cloak"),T.querySelectorAll("[un-cloak]").forEach(O=>{O.removeAttribute("un-cloak")})}async function p(){let d=await a.generate(l);o||(o=document.createElement("style"),document.documentElement.prepend(o)),o.innerHTML=d.css,l=d.matched}async function g(d){let T=l.size;await a.applyExtractors(d,void 0,l),T!==l.size&&await u()}async function x(){let d=document.body&&document.body.outerHTML;d&&(await g(d),h())}let j=new MutationObserver(d=>{i||d.forEach(async T=>{if(T.target.nodeType!==1)return;let O=T.target;if(O!==o)if(T.type==="childList")T.addedNodes.forEach(async S=>{if(S.nodeType!==1)return;let E=S;s&&!s(E)||(await g(E.outerHTML),h(E))});else{if(s&&!s(O))return;if(T.attributeName!=="un-cloak"){let S=Array.from(O.attributes).map(V=>V.value?`${V.name}="${V.value}"`:V.name).join(" "),E=`<${O.tagName.toLowerCase()} ${S}>`;await g(E)}O.hasAttribute("un-cloak")&&O.removeAttribute("un-cloak")}})}),w=!1;function v(){if(w)return;let d=document.documentElement||document.body;!d||(j.observe(d,{childList:!0,subtree:!0,attributes:!0}),w=!0)}function b(){x(),v()}function y(){document.readyState==="loading"?window.addEventListener("DOMContentLoaded",b):b()}let $=window.__unocss_runtime=window.__unocss_runtime={version:a.version,uno:a,async extract(d){typeof d!="string"&&(d.forEach(T=>l.add(T)),d=""),await g(d)},extractAll:x,inspect(d){s=d},toggleObserver(d){d===void 0?i=!i:i=!!d,!w&&!i&&y()}};((A=r==null?void 0:r.ready)==null?void 0:A.call(r,$))!==!1&&(i=!1,y())}rt({defaults:{presets:[jn(),Un()]}});})();
1
+ "use strict";(()=>{var Yn=Object.defineProperty;var Zn=(e,t)=>{for(var r in t)Yn(e,r,{get:t[r],enumerable:!0})};function K(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ue(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+="\\,";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 $e=Ue;function U(e=[]){return Array.isArray(e)?e:[e]}function G(e){return Array.from(new Set(e))}function z(e){return typeof e=="string"}function Y(e){return z(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function ft(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>Y(t)):[e]:[Y(e)]}function Xn(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 Z(e){return e==null?"":Xn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function we(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Me(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={...r};return we(r)&&we(n)&&Object.keys(n).forEach(i=>{we(r[i])&&we(n[i])||Array.isArray(r[i])&&Array.isArray(n[i])?o[i]=Me(r[i],n[i]):Object.assign(o,{[i]:n[i]})}),o}function re(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?re(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:re(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?re(n):n;return r}return e}function ut(e){return z(e[0])}function pt(e){return z(e[0])}var Jn=/^\[(.+?)~?="(.*)"\]$/;var Qn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,Fe="$$shortcut-no-merge";function mt(e){return e.match(Jn)}function ne(e=""){return Qn.test(e)}function dt(e){return typeof e=="function"?{match:e}:e}function _e(e){return e.length===3}function ht(e){return e!=null}function Le(){}var ve=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 gt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function xt(e){gt.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(gt,(n,o,i,s)=>s.split(/\s/g).map(a=>a==="~"?o:a.replace(/^(!?)(.*)/,`$1${o}${i}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var bt=new Set;function yt(e){bt.has(e)||(console.warn("[unocss]",e),bt.add(e))}function $t(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 eo=e=>e.split(/[\s'"`;=]+/g).filter(ne),oe={name:"split",order:0,extract({code:e}){return new Set(eo(e))}};function wt(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}var Se="default",ke="preflights",to="shortcuts",vt={[ke]:-100,[to]:-10,[Se]:0};function St(e){return U(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}function ro(e){var r;let t=e.shortcuts?St(e.shortcuts):void 0;if(e.shortcuts=t,e.prefix||e.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&e.prefix&&(i.prefix=e.prefix),i.layer==null&&e.layer&&(i.prefix=e.layer)};t==null||t.forEach(n),(r=e.rules)==null||r.forEach(n)}return e}function We(e={},t={}){let r=Object.assign({},t,e),n=(r.presets||[]).flatMap(U).map(ro),o=[...n.filter(p=>p.enforce==="pre"),...n.filter(p=>!p.enforce),...n.filter(p=>p.enforce==="post")],i=Object.assign(vt,...n.map(p=>p.layers),e.layers);function s(p){return G([...o.flatMap(g=>U(g[p]||[])),...U(r[p]||[])])}let a=s("extractors");a.length||a.push(oe),a.sort((p,g)=>(p.order||0)-(g.order||0));let l=s("rules"),f={},m=l.length;l.forEach((p,g)=>{var b;if(ut(p)){let T=((b=p[2])==null?void 0:b.prefix)||"";f[T+p[0]]=[g,p[1],p[2],p],delete l[g]}});let u=re([...o.map(p=>p.theme||{}),r.theme||{}].reduce((p,g)=>Me(p,g),{}));s("extendTheme").forEach(p=>p(u));let d={templates:G(o.map(p=>{var g;return U((g=p.autocomplete)==null?void 0:g.templates)}).flat()),extractors:o.map(p=>{var g;return U((g=p.autocomplete)==null?void 0:g.extractors)}).flat().sort((p,g)=>(p.order||0)-(g.order||0))};return{mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:p=>p,...r,presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:i,theme:u,rulesSize:m,rulesDynamic:l,rulesStaticMap:f,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:d,variants:s("variants").map(dt),shortcuts:St(s("shortcuts")),extractors:a,safelist:s("safelist")}}var kt="0.43.0";var De=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=We(t,r),this.events.emit("config",this.config)}version=kt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=wt();setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=We(t,this.defaults),this.events.emit("config",this.config))}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}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){var l;if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this._cache.has(n))return this._cache.get(n);let o=t;for(let f of this.config.preprocess)o=f(t);if(this.isBlocked(o)){this.blocked.add(t),this._cache.set(n,null);return}let i=this.matchVariants(t,o);if(!i||this.isBlocked(i[1])){this.blocked.add(t),this._cache.set(n,null);return}let s=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(s.variants=[...i[3]]);let a=this.expandShortcut(s.currentSelector,s);if(a){let f=await this.stringifyShortcuts(s.variantMatch,s,a[0],a[1]);if(f!=null&&f.length)return this._cache.set(n,f),f}else{let f=(l=await this.parseUtil(s.variantMatch,s))==null?void 0:l.map(m=>this.stringifyUtil(m,s)).filter(ht);if(f!=null&&f.length)return this._cache.set(n,f),f}this._cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1}=r,l=z(t)?await this.applyExtractors(t,n):Array.isArray(t)?new Set(t):t;s&&this.config.safelist.forEach(y=>l.add(y));let f=a?"":`
2
+ `,m=new Set([Se]),u=new Set,d=new Map,p={},g=Array.from(l).map(async y=>{var $;if(u.has(y))return;let v=await this.parseToken(y);if(v!=null){u.add(y);for(let j of v){let h=j[3]||"",w=($=j[4])==null?void 0:$.layer;d.has(h)||d.set(h,[]),d.get(h).push(j),w&&m.add(w)}}}),b=(async()=>{if(!i)return;let y={generator:this,theme:this.config.theme},v=new Set([]);this.config.preflights.forEach(({layer:$=ke})=>{m.add($),v.add($)}),p=Object.fromEntries(await Promise.all(Array.from(v).map(async $=>{let h=(await Promise.all(this.config.preflights.filter(w=>(w.layer||ke)===$).map(async w=>await w.getCSS(y)))).filter(Boolean).join(f);return[$,h]})))})();await Promise.all([...g,b]);let T=this.config.sortLayers(Array.from(m).sort((y,v)=>(this.config.layers[y]??0)-(this.config.layers[v]??0)||y.localeCompare(v))),x={},C=y=>{if(x[y])return x[y];let v=Array.from(d).sort((j,h)=>{var w;return(this.parentOrders.get(j[0])??0)-(this.parentOrders.get(h[0])??0)||((w=j[0])==null?void 0:w.localeCompare(h[0]||""))||0}).map(([j,h])=>{let w=h.length,V=h.filter(S=>{var P;return(((P=S[4])==null?void 0:P.layer)||Se)===y}).sort((S,P)=>{var _,ee,te,L;return S[0]-P[0]||(((_=S[4])==null?void 0:_.sort)||0)-(((ee=P[4])==null?void 0:ee.sort)||0)||((te=S[1])==null?void 0:te.localeCompare(P[1]||""))||((L=S[2])==null?void 0:L.localeCompare(P[2]||""))||0}).map(([,S,P,,_])=>[[[(S&&io(S,o))??"",(_==null?void 0:_.sort)??0]],P,!!(_!=null&&_.noMerge)]);if(!V.length)return;let I=V.reverse().map(([S,P,_],ee)=>{if(!_&&this.config.mergeSelectors)for(let L=ee+1;L<w;L++){let W=V[L];if(W&&!W[2]&&(S&&W[0]||S==null&&W[0]==null)&&W[1]===P)return S&&W[0]&&W[0].push(...S),null}let te=S?G(S.sort((L,W)=>{var lt;return L[1]-W[1]||((lt=L[0])==null?void 0:lt.localeCompare(W[0]||""))||0}).map(L=>L[0]).filter(Boolean)):[];return te.length?`${te.join(`,${f}`)}{${P}}`:P}).filter(Boolean).reverse().join(f);if(!j)return I;let H=j.split(" $$ ");return`${H.join("{")}{${f}${I}${f}}${H.map(S=>"").join("}")}`}).filter(Boolean).join(f);i&&(v=[p[y],v].filter(Boolean).join(f));let $=a?"":`/* layer: ${y} */${f}`;return x[y]=v?$+v:""},E=(y=T,v)=>y.filter($=>!(v!=null&&v.includes($))).map($=>C($)||"").filter(Boolean).join(f);return{get css(){return E()},layers:T,matched:u,getLayers:E,getLayer:C}}matchVariants(t,r){let n=new Set,o=[],i=r||t,s=!1,a={rawSelector:t,theme:this.config.theme,generator:this};for(;;){s=!1;for(let l of this.config.variants){if(!l.multiPass&&n.has(l))continue;let f=l.match(i,a);if(!!f){z(f)&&(f={matcher:f}),i=f.matcher,o.unshift(f),n.add(l),s=!0;break}}if(!s)break;if(o.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,o,n]}applyVariants(t,r=t[4],n=t[1]){let i=[...r].sort((f,m)=>(f.order||0)-(m.order||0)).reverse().reduce((f,m)=>u=>{var g,b;let d=((g=m.body)==null?void 0:g.call(m,u.entries))||u.entries,p=Array.isArray(m.parent)?m.parent:[m.parent,void 0];return(m.handle??co)({...u,entries:d,selector:((b=m.selector)==null?void 0:b.call(m,u.selector,d))||u.selector,parent:p[0]||u.parent,parentOrder:p[1]||u.parentOrder,layer:m.layer||u.layer,sort:m.sort||u.sort},f)},f=>f)({prefix:"",selector:ao(n),pseudo:"",entries:t[2]}),{parent:s,parentOrder:a}=i;s!=null&&a!=null&&this.parentOrders.set(s,a);let l={selector:so([i.prefix,i.selector,i.pseudo].join("")),entries:i.entries,parent:s,layer:i.layer,sort:i.sort};for(let f of this.config.postprocess)f(l);return l}constructCustomCSS(t,r,n){let o=Y(r);if(z(o))return o;let{selector:i,entries:s,parent:a}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),l=`${i}{${Z(s)}}`;return a?`${a}{${l}}`:l}async parseUtil(t,r,n=!1){var u,d;let[o,i,s]=z(t)?this.matchVariants(t):t,a=this.config.details?p=>{r.rules=r.rules??[],r.rules.push(p)}:Le,l=this.config.rulesStaticMap[i];if(l&&l[1]&&(n||!((u=l[2])!=null&&u.internal))){a(l[3]);let p=l[0],g=Y(l[1]),b=l[2];return z(g)?[[p,g,b]]:[[p,o,g,b,s]]}r.variantHandlers=s;let{rulesDynamic:f,rulesSize:m}=this.config;for(let p=m-1;p>=0;p--){let g=f[p];if(!g||((d=g[2])==null?void 0:d.internal)&&!n)continue;let[b,T,x]=g;if((x==null?void 0:x.prefix)&&!i.startsWith(x.prefix))continue;let E=(x!=null&&x.prefix?i.slice(x.prefix.length):i).match(b);if(!E)continue;let y=await T(E,r);if(!y)continue;a(g);let v=ft(y).filter($=>$.length);if(v.length)return v.map($=>z($)?[p,$,x]:[p,o,$,x,s])}}stringifyUtil(t,r){if(!t)return;if(_e(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0];let{selector:n,entries:o,parent:i,layer:s,sort:a}=this.applyVariants(t),l=Z(o);if(!l)return;let{layer:f,sort:m,...u}=t[3]??{},d={...u,layer:s??f,sort:a??m};return[t[0],n,l,i,d,this.config.details?r:void 0]}expandShortcut(t,r,n=5){var a;if(n===0)return;let o=this.config.details?l=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(l)}:Le,i,s;for(let l of this.config.shortcuts){let f=(a=l[2])!=null&&a.prefix?t.slice(l[2].prefix.length):t;if(pt(l)){if(l[0]===f){i=i||l[2],s=l[1],o(l);break}}else{let m=f.match(l[0]);if(m&&(s=l[1](m,r)),s){i=i||l[2],o(l);break}}}if(z(s)&&(s=xt(s).split(/\s+/g)),!s){let[l,f]=z(t)?this.matchVariants(t):t;if(l!==f){let m=this.expandShortcut(f,r,n-1);m&&(s=m[0].map(u=>z(u)?l.replace(f,u):u))}}if(!!s)return[s.flatMap(l=>{var f;return(z(l)?(f=this.expandShortcut(l,r,n-1))==null?void 0:f[0]:void 0)||[l]}).filter(Boolean),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){var m;let i=new ve,s=(await Promise.all(G(n).map(async u=>{let d=z(u)?await this.parseUtil(u,r,!0):[[1/0,"{inline}",Y(u),void 0,[]]];return d||yt(`unmatched utility "${u}" in shortcut "${t[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((u,d)=>u[0]-d[0]),[a,,l]=t,f=[];for(let u of s){if(_e(u)){f.push([u[0],void 0,u[1],void 0,u[2],r]);continue}let{selector:d,entries:p,parent:g,sort:b}=this.applyVariants(u,[...u[4],...l],a);i.getFallback(d,g,[[],u[0]])[0].push([p,!!((m=u[3])!=null&&m.noMerge),b??0])}return f.concat(i.map(([u,d],p,g)=>{let b=(x,C,E)=>{let y=Math.max(...E.map($=>$[1])),v=E.map($=>$[0]);return(x?[v.flat(1)]:v).map($=>{let j=Z($);if(j)return[d,p,j,g,{...o,noMerge:C,sort:y},r]})};return[[u.filter(([,x])=>x).map(([x,,C])=>[x,C]),!0],[u.filter(([,x])=>!x).map(([x,,C])=>[x,C]),!1]].map(([x,C])=>[...b(!1,C,x.filter(([E])=>E.some(y=>y[0]===Fe))),...b(!0,C,x.filter(([E])=>E.every(y=>y[0]!==Fe)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>z(r)?r===t:r.test(t))}};function Rt(e,t){return new De(e,t)}var Et=/ \$\$ /,oo=e=>e.match(Et);function io(e,t){return oo(e)?e.replace(Et,t?` ${t} `:" "):t?`${t} ${e}`:e}function so(e){let t=e.match(/::[\w-]+/g);return t&&(t.forEach(r=>e=e.replace(r,"")),e+=t.join("")),e}var Ct=/^\[(.+?)(~?=)"(.*)"\]$/;function ao(e){return Ct.test(e)?e.replace(Ct,(t,r,n,o)=>`[${$e(r)}${n}"${$e(o)}"]`):`.${$e(e)}`}function co(e,t){return t(e)}var Tt=[{layer:"preflights",getCSS(e){if(e.theme.preflightBase){let t=Z(Object.entries(e.theme.preflightBase));return`*,::before,::after{${t}}::backdrop{${t}}`}}}];var M={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},Be={...M,s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]},Ne={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},He={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},At=["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"],ie=Object.assign({},...At.map(e=>({[e.replace(/ /,"-")]:e})),...At.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),R=["inherit","initial","revert","revert-layer","unset"];var zt={mid:"middle",base:"baseline",btm:"bottom",baseline:"baseline",top:"top",middle:"middle",bottom:"bottom","text-top":"text-top","text-bottom":"text-bottom",sub:"sub",super:"super",...Object.fromEntries(R.map(e=>[e,e]))},jt=[[/^(?:vertical|align|v)-([-\w]+)$/,([,e])=>({"vertical-align":zt[e]}),{autocomplete:`(vertical|align|v)-(${Object.keys(zt).join("|")})`}]],Vt=["center","left","right","justify","start","end",...R].map(e=>[`text-${e}`,{"text-align":e}]);var Ie={};Zn(Ie,{auto:()=>po,bracket:()=>$o,bracketOfColor:()=>wo,bracketOfLength:()=>vo,bracketOfPosition:()=>So,cssvar:()=>ko,degree:()=>Ro,fraction:()=>bo,global:()=>Eo,number:()=>go,numberWithUnit:()=>uo,percent:()=>xo,position:()=>Ao,properties:()=>To,px:()=>ho,rem:()=>mo,time:()=>Co});var lo=["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","border-radius"],Ke=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|cqw|cqh|cqi|cqb|cqmin|cqmax|rpx)?$/i,fo=/^(-?[0-9.]+)$/i,Pt=/^(px)$/i;function F(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function uo(e){let t=e.match(Ke);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(n&&!Number.isNaN(o))return`${F(o)}${n}`}function po(e){if(e==="auto"||e==="a")return"auto"}function mo(e){if(e.match(Pt))return`1${e}`;let t=e.match(Ke);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${F(o)}${n}`:`${F(o/4)}rem`}function ho(e){if(e.match(Pt))return`1${e}`;let t=e.match(Ke);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${F(o)}${n}`:`${F(o)}px`}function go(e){if(!fo.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return F(t)}function xo(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${F(t/100)}`}function bo(e){if(e==="full")return"100%";let[t,r]=e.split("/"),n=parseFloat(t)/parseFloat(r);if(!Number.isNaN(n))return`${F(n*100)}%`}var yo=/^\[(color|length|position):/i;function Ce(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,n=e.match(yo);if(n?t&&n[1]===t&&(r=e.slice(n[0].length,-1)):r=e.slice(1,-1),r!==void 0)return r.replace(/(url\(.*?\))/g,o=>o.replace(/_/g,"\\_")).replace(/([^\\])_/g,"$1 ").replace(/(?:calc|clamp|max|min)\((.*)/g,o=>o.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}}function $o(e){return Ce(e)}function wo(e){return Ce(e,"color")}function vo(e){return Ce(e,"length")}function So(e){return Ce(e,"position")}function ko(e){if(e.match(/^\$\S/))return`var(--${Ue(e.slice(1))})`}function Co(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?`${F(o)}${n}`:`${F(o)}ms`}function Ro(e){let t=e.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${F(o)}${n}`:`${F(o)}deg`}function Eo(e){if(R.includes(e))return e}function To(e){if(e.split(",").every(t=>lo.includes(t)))return e}function Ao(e){if(["top","left","right","bottom","center"].includes(e))return e}var c=$t(Ie);var Ot="$$mini-no-negative",O=e=>([t,r,n],{theme:o})=>{var s;let i=((s=o.spacing)==null?void 0:s[n||"DEFAULT"])??c.bracket.cssvar.global.auto.fraction.rem(n);if(i!=null)return M[r].map(a=>[`${e}${a}`,i])},qe=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,n=>n.slice(1).toUpperCase())]},Re=(e,t)=>{let r=e.split(/(?:\/|:)/),n,o;r[0]==="[color"?(n=r.slice(0,2).join(":"),o=r[2]):[n,o]=r;let i=n.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[s]=i;if(!s)return;let a,l=c.bracketOfColor(n),f=l||n;f.startsWith("#")?a=f:f.startsWith("hex-")?a=`#${f.slice(4)}`:n.startsWith("$")&&(a=c.cssvar(n)),a=a||l;let m="DEFAULT";if(!a){let u,[d]=i.slice(-1);d.match(/^\d+$/)?(m=d,u=qe(t,i.slice(0,-1))):(u=qe(t,i),!u&&i.length<=2&&([,m=m]=i,u=qe(t,[s]))),typeof u=="string"?a=u:m&&u&&(a=u[m])}return{opacity:o,name:s,no:m,color:a,cssColor:Ye(a),alpha:c.bracket.cssvar.percent(o??"")}},A=(e,t)=>([,r],{theme:n})=>{let o=Re(r,n);if(!o)return;let{alpha:i,color:s,cssColor:a}=o;if(a)return i!=null?{[e]:D(a,i)}:{[`--un-${t}-opacity`]:ae(a),[e]:D(a,`var(--un-${t}-opacity)`)};if(s)return{[e]:D(s,i)}},Ee=(e,t)=>{let r=[];e=U(e);for(let n=0;n<e.length;n++){let o=se(e[n]," ",6);if(!o||o.length<3)return e;let i=Ye(o.pop());if(i==null)return e;r.push(`${o.join(" ")} var(${t}, ${D(i)})`)}return r},Ut=(e,t)=>{var r;return e!=null&&!!((r=Re(e,t))!=null&&r.color)},Te=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.breakpoints),r||(r=e.breakpoints),r},Mt=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.verticalBreakpoints),r||(r=e.verticalBreakpoints),r},k=(e,t)=>R.map(r=>[`${e}-${r}`,{[t??e]:r}]);function Ge(e,t,r,n){if(e==="")return;let o=e.length,i=0;for(let s=0;s<o;s++)switch(e[s]){case t:i++;break;case r:if(--i<0)return;break;case n:if(i===0)return s===0||s===o-1?void 0:[e.slice(0,s),e.slice(s+1)]}return[e,""]}function se(e,t,r){if(t.length!==1)return;r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=Ge(e,"(",")",t);if(!i)return;let[s,a]=i;n.push(s),e=a}if(n.length>0)return n}var Ze=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],Ft=["%alpha","<alpha-value>"],zo=new RegExp(Ft.map(e=>K(e)).join("|"));function Ye(e=""){let t=jo(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(["rgba","hsla"].includes(i)&&o==null)&&!(Ze.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof o=="string"?o.trim():o}}function ae(e){let t=e.alpha??1;return typeof t=="string"&&Ft.includes(t)?1:t}function D(e,t){if(typeof e=="string")return e.replace(zo,`${t??1}`);let{components:r}=e,{alpha:n,type:o}=e;return n=t??n,o=o.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(o)?`${o.replace("a","")}a(${r.join(",")}${n==null?"":`,${n}`})`:(n=n==null?"":` / ${n}`,Ze.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function jo(e){if(!e)return;let t=Vo(e);if(t!=null||(t=Po(e),t!=null)||(t=Oo(e),t!=null)||(t=Mo(e),t!=null)||(t=Fo(e),t!=null))return t}function Vo(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];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{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:t.length===6?void 0:Math.round((n&255)/255*100)/100}}}function Po(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Oo(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=se(n,",",5);if(o){if([3,4].includes(o.length))return{type:r,components:o.slice(0,3),alpha:o[3]};if(o.length!==1)return!1}}var Uo=new RegExp(`^(${Ze.join("|")})\\((.+)\\)$`,"i");function Mo(e){let t=e.match(Uo);if(!t)return;let[,r,n]=t,o=_t(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function Fo(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=_t(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function _t(e){let t=se(e," ");if(!t)return;let r=t.length;if(t[r-2]==="/")return{components:t.slice(0,r-2),alpha:t[r-1]};if(t[r-2]!=null&&(t[r-2].endsWith("/")||t[r-1].startsWith("/"))){let i=t.splice(r-2);t.push(i.join(" ")),--r}let n=se(t[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:t};let o=n.pop();return t[r-1]=n.join("/"),{components:t,alpha:o}}var X=(e,t)=>{let r=new RegExp(`^${K(e)}[:-]`);return{name:e,match:n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),handle:(i,s)=>s({...i,...t(i)})}},autocomplete:`${e}:`}},ce=(e,t)=>{let r=new RegExp(`^${K(e)}[:-]`);return{name:e,match:n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),handle:(i,s)=>s({...i,parent:`${i.parent?`${i.parent} $$ `:""}${t}`})}},autocomplete:`${e}:`}};var Lt=[[/^outline-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r;return{"outline-width":((r=t.lineWidth)==null?void 0:r[e])??c.bracket.cssvar.global.px(e)}},{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,A("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,e],{theme:t})=>{var r;return{"outline-offset":((r=t.lineWidth)==null?void 0:r[e])??c.bracket.cssvar.global.px(e)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset",...R].map(e=>[`outline-${e}`,{"outline-style":e}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],Wt=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],_o=e=>c.properties.auto.global(e)??{contents:"contents",scroll:"scroll-position"}[e],Dt=[[/^will-change-(.+)/,([,e])=>({"will-change":_o(e)})]];var me=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...R],Bt=[[/^(?:border|b)()(?:-(.+))?$/,le,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,le],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,le],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,le],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,le],[/^(?:border|b)-()(?:width|size)-(.+)$/,J,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,J],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,J],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,J],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,J],[/^(?:border|b)-()(?:color-)?(.+)$/,fe,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,fe],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,fe],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,fe],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,fe],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,ue,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,ue],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,ue],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,ue],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,ue],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,pe,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,pe],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,pe],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,pe],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,pe],[/^(?:border|b)-(?:style-)?()(.+)$/,Q,{autocomplete:["(border|b)-style",`(border|b)-(${me.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${me.join("|")})`,`(border|b)-<directions>-style-(${me.join("|")})`,`(border|b)-style-(${me.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,Q],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,Q],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,Q],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,Q]],Lo=e=>([,t],r)=>{let n=Re(t,r);if(!n)return;let{alpha:o,color:i,cssColor:s}=n;if(s)return o!=null?{[`border${e}-color`]:D(s,o)}:e===""?{"--un-border-opacity":ae(s),"border-color":D(s,"var(--un-border-opacity)")}:{"--un-border-opacity":ae(s),[`--un-border${e}-opacity`]:"var(--un-border-opacity)",[`border${e}-color`]:D(s,`var(--un-border${e}-opacity)`)};if(i)return{[`border${e}-color`]:D(i,o)}};function le(e,t){let r=J(e,t),n=Q(["",e[1],"solid"]);if(r&&n)return[...r,...n]}function J([,e="",t],{theme:r}){var o;let n=((o=r.lineWidth)==null?void 0:o[t||"DEFAULT"])??c.bracket.cssvar.global.px(t||"1");if(e in M&&n!=null)return M[e].map(i=>[`border${i}-width`,n])}function fe([,e="",t],{theme:r}){if(e in M&&Ut(t,r))return Object.assign({},...M[e].map(n=>Lo(n)(["",t],r)))}function ue([,e="",t]){let r=c.bracket.percent(t);if(e in M&&r!=null)return M[e].map(n=>[`--un-border${n}-opacity`,r])}function pe([,e="",t],{theme:r}){var o;let n=((o=r.borderRadius)==null?void 0:o[t||"DEFAULT"])||c.bracket.cssvar.global.fraction.rem(t||"1");if(e in Ne&&n!=null)return Ne[e].map(i=>[`border${i}-radius`,n])}function Q([,e="",t]){if(me.includes(t)&&e in M)return M[e].map(r=>[`border${r}-style`,t])}var Nt=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:c.bracket.percent.cssvar(e)})]],Ht=[[/^(?:text|color|c)-(.+)$/,A("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":c.bracket.percent(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],Kt=[[/^bg-(.+)$/,A("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":c.bracket.percent(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var Ae={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},It=e=>c.properties(e)??Ae[e],qt=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{var o;let n=e!=null?It(e):[Ae.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(n){let i=((o=r.duration)==null?void 0:o[t||"DEFAULT"])??c.time(t||"150");return{"transition-property":n,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":i}}},{autocomplete:`transition-(${Object.keys(Ae).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>{var r;return{"transition-duration":((r=t.duration)==null?void 0:r[e||"DEFAULT"])??c.bracket.cssvar.time(e)}},{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,e],{theme:t})=>{var r;return{"transition-delay":((r=t.duration)==null?void 0:r[e||"DEFAULT"])??c.bracket.cssvar.time(e)}},{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"transition-timing-function":((r=t.easing)==null?void 0:r[e||"DEFAULT"])??c.bracket.cssvar(e)}},{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,e])=>({"transition-property":c.global(e)||It(e)}),{autocomplete:[`transition-property-(${[...R,...Object.keys(Ae)].join("|")})`]}],["transition-none",{transition:"none"}],...k("transition")];var Gt=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,e])=>({flex:c.bracket(e)!=null?c.bracket(e).split(" ").map(t=>c.cssvar.fraction(t)??t).join(" "):c.cssvar.fraction(e)})],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^(?: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],{theme:t})=>{var r;return{"flex-basis":((r=t.spacing)==null?void 0:r[e])??c.bracket.cssvar.auto.fraction.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 Yt={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Zt=[[/^font-(.+)$/,([,e],{theme:t})=>{var r;return{"font-family":((r=t.fontFamily)==null?void 0:r[e])||c.bracket.cssvar.global(e)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,e="base"],{theme:t})=>{var n;let r=U((n=t.fontSize)==null?void 0:n[e]);if(r!=null&&r[0]){let[o,i="1"]=r;return{"font-size":o,"line-height":i}}return{"font-size":c.bracketOfLength.rem(e)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,e],{theme:t})=>{var o;let r=U((o=t.fontSize)==null?void 0:o[e]),n=(r==null?void 0:r[0])??c.bracket.cssvar.global.rem(e);if(n!=null)return{"font-size":n}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,e])=>({"font-weight":Yt[e]||c.global.number(e)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(Yt).join("|")})`}],[/^(?:font-)?(?:leading|lh)-(.+)$/,([,e],{theme:t})=>{var r;return{"line-height":((r=t.lineHeight)==null?void 0:r[e])||c.bracket.cssvar.global.rem(e)}},{autocomplete:"(leading|lh)-$lineHeight"}],["font-synthesis-weight",{"font-synthesis":"weight"}],["font-synthesis-style",{"font-synthesis":"style"}],["font-synthesis-small-caps",{"font-synthesis":"small-caps"}],["font-synthesis-none",{"font-synthesis":"none"}],[/^font-synthesis-(.+)$/,([,e])=>({"font-synthesis":c.bracket.cssvar.global(e)})],[/^(?:font-)?tracking-(.+)$/,([,e],{theme:t})=>{var r;return{"letter-spacing":((r=t.letterSpacing)==null?void 0:r[e])||c.bracket.cssvar.global.rem(e)}},{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,e],{theme:t})=>{var r;return{"word-spacing":((r=t.wordSpacing)==null?void 0:r[e])||c.bracket.cssvar.global.rem(e)}},{autocomplete:"word-spacing-$wordSpacing"}]],Xt=[[/^tab(?:-(.+))?$/,([,e])=>{let t=c.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],Jt=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"text-indent":((r=t.textIndent)==null?void 0:r[e||"DEFAULT"])||c.bracket.cssvar.global.fraction.rem(e)}},{autocomplete:"indent-$textIndent"}]],Qt=[[/^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)}},{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,A("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":c.bracket.percent(e)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],er=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.textShadow)==null?void 0:n[e||"DEFAULT"];return r!=null?{"--un-text-shadow":Ee(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":c.bracket.cssvar.global(e)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,A("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":c.bracket.percent(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var tr={"":"",x:"column-",y:"row-"},rr=([,e="",t],{theme:r})=>{var o;let n=((o=r.spacing)==null?void 0:o[t])??c.bracket.cssvar.global.rem(t);if(n!=null)return{[`grid-${tr[e]}gap`]:n,[`${tr[e]}gap`]:n}},nr=[[/^(?:flex-|grid-)?gap-?()(.+)$/,rr,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,rr,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var B=e=>e.replace("col","column"),Xe=e=>e[0]==="r"?"Row":"Column",Wo=(e,t,r)=>{var o;let n=(o=t[`gridAuto${Xe(e)}`])==null?void 0:o[r];if(n!=null)return n;switch(r){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return c.bracket.cssvar.auto.rem(r)},or=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:r})=>{var n;return{[`grid-${B(e)}`]:((n=r[`grid${Xe(e)}`])==null?void 0:n[t])??c.bracket.cssvar.auto(t)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${B(e)}`]:"1/-1"};let r=c.bracket.number(t);if(r!=null)return{[`grid-${B(e)}`]:`span ${r}/span ${r}`}},{autocomplete:["grid-(row|col)-span-<num>","(row|col)-span-<num>"]}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,e,t])=>({[`grid-${B(e)}-start`]:c.bracket.cssvar(t)??t})],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>({[`grid-${B(e)}-end`]:c.bracket.cssvar(t)??t}),{autocomplete:["grid-(row|col)-(start|end)-<num>"]}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-auto-${B(e)}`]:Wo(e,r,t)}),{autocomplete:["grid-auto-(rows|cols)-<num>"]}],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":c.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,e])=>({"grid-auto-flow":B(e).replace("-"," ")}),{autocomplete:["(grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)"]}],[/^grid-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>{var n;return{[`grid-template-${B(e)}`]:((n=r[`gridTemplate${Xe(e)}`])==null?void 0:n[t])??c.bracket.cssvar(t)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${B(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${B(e)}`]:`repeat(${t},minmax(0,1fr))`}),{autocomplete:["grid-(rows|cols)-<num>","grid-(rows|cols)-none"]}],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var ze=["auto","hidden","clip","visible","scroll",...R],ir=[[/^(?:overflow|of)-(.+)$/,([,e])=>ze.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-(${ze.join("|")})`,`(overflow|of)-(x|y)-(${ze.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>ze.includes(t)?{[`overflow-${e}`]:t}:void 0]];var sr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)([-\w]+)$/,([,e])=>R.includes(e)?{position:e}:void 0],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],ar=[["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"}],...k("justify","justify-content"),["justify-items-start",{"justify-items":"start"}],["justify-items-end",{"justify-items":"end"}],["justify-items-center",{"justify-items":"center"}],["justify-items-stretch",{"justify-items":"stretch"}],...k("justify-items"),["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"}],...k("justify-self")],cr=[[/^order-(.+)$/,([,e])=>({order:c.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],lr=[["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"}],...k("content","align-content"),["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"}],...k("items","align-items"),["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"}],...k("self","align-self")],fr=[["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"}],...k("place-content"),["place-items-start",{"place-items":"start"}],["place-items-end",{"place-items":"end"}],["place-items-center",{"place-items":"center"}],["place-items-stretch",{"place-items":"stretch"}],...k("place-items"),["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"}],...k("place-self")];function Je(e,{theme:t}){var r;return((r=t.spacing)==null?void 0:r[e])??c.bracket.cssvar.global.auto.fraction.rem(e)}function je([,e,t],r){let n=Je(t,r);if(n!=null&&e in Be)return Be[e].map(o=>[o.slice(1),n])}var ur=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:Je(e,t)}),{autocomplete:["(position|pos)-inset-<directions>-$spacing","(position|pos)-inset-(block|inline)-$spacing","(position|pos)-inset-(bs|be|is|ie)-$spacing","(position|pos)-(top|left|right|bottom)-$spacing"]}],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,je],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,je],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,je],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,je],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:Je(t,r)})]],pr=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-none",{float:"none"}],...k("float"),["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-none",{clear:"none"}],...k("clear")],mr=[[/^z([\d.]+)$/,([,e])=>({"z-index":c.number(e)})],[/^z-(.+)$/,([,e])=>({"z-index":c.bracket.cssvar.global.auto.number(e)}),{autocomplete:"z-<num>"}]],dr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}],...k("box","box-sizing")];var Do=["auto","default","none","context-menu","help","pointer","progress","wait","cell","crosshair","text","vertical-text","alias","copy","move","no-drop","not-allowed","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out"],Ve=" ",hr=[["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"}],[/^display-(.+)$/,([,e])=>({display:c.bracket.cssvar.global(e)||e})]],gr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}],...k("backface","backface-visibility")],xr=[[/^cursor-(.+)$/,([,e])=>({cursor:c.bracket.cssvar.global(e)})],...Do.map(e=>[`cursor-${e}`,{cursor:e}])],br=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}],...k("pointer-events")],yr=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}],...k("resize")],$r=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}],...k("select","user-select")],wr=[[/^(?:whitespace-|ws-)([-\w]+)$/,([,e])=>["normal","nowrap","pre","pre-line","pre-wrap","break-spaces",...R].includes(e)?{"white-space":e}:void 0,{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],vr=[[/^content-\[(.+)\]$/,([,e])=>({content:`"${e}"`})],[/^content-(\$.+)]$/,([,e])=>({content:c.cssvar(e)})],["content-empty",{content:'""'}],["content-none",{content:'""'}]],Sr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],kr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],Cr=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}],...k("case","text-transform")],Rr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}],["oblique",{"font-style":"oblique"}],["not-oblique",{"font-style":"normal"}],["font-oblique",{"font-style":"oblique"}],["font-not-oblique",{"font-style":"normal"}]],Er=[["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 Tr={"--un-ring-inset":Ve,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgba(147,197,253,0.5)","--un-shadow":"0 0 rgba(0,0,0,0)"},Ar=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=((n=t.ringWidth)==null?void 0:n[e||"DEFAULT"])??c.px(e||"1");if(r)return{"--un-ring-width":r,"--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(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color)","box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}},{autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,([,e],{theme:t})=>{var r;return{"--un-ring-width":((r=t.lineWidth)==null?void 0:r[e])??c.bracket.cssvar.px(e)}},{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r;return{"--un-ring-offset-width":((r=t.lineWidth)==null?void 0:r[e])??c.bracket.cssvar.px(e)}},{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,A("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":c.bracket.percent(e)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,A("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":c.bracket.percent(e)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var zr={"--un-ring-offset-shadow":"0 0 rgba(0,0,0,0)","--un-ring-shadow":"0 0 rgba(0,0,0,0)","--un-shadow-inset":Ve,"--un-shadow":"0 0 rgba(0,0,0,0)"},jr=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.boxShadow)==null?void 0:n[e||"DEFAULT"];if(r)return{"--un-shadow":Ee(r,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}},{autocomplete:"shadow-$boxShadow"}],[/^shadow-(.+)$/,A("--un-shadow-color","shadow"),{autocomplete:"shadow-$colors"}],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":c.bracket.percent(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var Bo={h:"height",w:"width",inline:"inline-size",block:"block-size"};function de(e,t){return`${e||""}${Bo[t]}`}function Vr(e,t,r,n){var s;let o=de(e,t).replace(/-(\w)/g,(a,l)=>l.toUpperCase()),i=(s=r[o])==null?void 0:s[n];if(i!=null)return i;switch(n){case"fit":case"max":case"min":return`${n}-content`}return c.bracket.cssvar.global.auto.fraction.rem(n)}var Pr=[[/^(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:n})=>({[de(e,t)]:Vr(e,t,n,r)})],[/^(min-|max-)?(block|inline)-(.+)$/,([,e,t,r],{theme:n})=>({[de(e,t)]:Vr(e,t,n,r)}),{autocomplete:["(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h|block|inline)","(max|min)-(w|h|block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"]}],[/^(min-|max-)?(h)-screen-(.+)$/,([,e,t,r],n)=>{var o;return{[de(e,t)]:(o=Mt(n))==null?void 0:o[r]}}],[/^(min-|max-)?(w)-screen-(.+)$/,([,e,t,r],n)=>{var o;return{[de(e,t)]:(o=Te(n))==null?void 0:o[r]}},{autocomplete:["(w|h)-screen","(min|max)-(w|h)-screen","h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints","w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function No(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return c.bracket.cssvar.global.auto.number(e)}var Or=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":No(e)}),{autocomplete:["aspect-(square|video|ratio)","aspect-ratio-(square|video)"]}]];var Ur=[[/^pa?()-?(-?.+)$/,O("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,O("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(-?.+))?$/,O("padding")],[/^p-?([rltbse])(?:-?(-?.+))?$/,O("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(-?.+))?$/,O("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(-?.+))?$/,O("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],Mr=[[/^ma?()-?(-?.+)$/,O("margin")],[/^m-?xy()()$/,O("margin")],[/^m-?([xy])(?:-?(-?.+))?$/,O("margin")],[/^m-?([rltbse])(?:-?(-?.+))?$/,O("margin")],[/^m-(block|inline)(?:-(-?.+))?$/,O("margin")],[/^m-?([bi][se])(?:-?(-?.+))?$/,O("margin")]];var Fr=["translate","rotate","scale"],q=["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","translateZ(var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" "),Ho=["translate3d(var(--un-translate-x), var(--un-translate-y), var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" "),Dr={"--un-rotate":0,"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-scale-x":1,"--un-scale-y":1,"--un-scale-z":1,"--un-skew-x":0,"--un-skew-y":0,"--un-translate-x":0,"--un-translate-y":0,"--un-translate-z":0},Br=[[/^(?:transform-)?origin-(.+)$/,([,e])=>({"transform-origin":ie[e]??c.bracket.cssvar(e)}),{autocomplete:[`transform-origin-(${Object.keys(ie).join("|")})`,`origin-(${Object.keys(ie).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,e])=>{let t=c.bracket.cssvar.px.numberWithUnit(e);if(t!=null)return{"-webkit-perspective":t,perspective:t}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,e])=>{let t=c.bracket.cssvar(e)??(e.length>=3?ie[e]:void 0);if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,_r],[/^(?:transform-)?translate-([xyz])-(.+)$/,_r],[/^(?:transform-)?rotate-()(.+)$/,Wr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Wr],[/^(?:transform-)?skew-([xy])-(.+)$/,Ko,{autocomplete:["transform-skew-(x|y)-<percent>"]}],[/^(?:transform-)?scale-()(.+)$/,Lr],[/^(?:transform-)?scale-([xyz])-(.+)$/,Lr,{autocomplete:[`transform-(${Fr.join("|")})-<percent>`,`transform-(${Fr.join("|")})-(x|y|z)-<percent>`]}],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],["transform",{transform:q}],["transform-cpu",{transform:q}],["transform-gpu",{transform:Ho}],["transform-none",{transform:"none"}],...k("transform")];function _r([,e,t],{theme:r}){var o;let n=((o=r.spacing)==null?void 0:o[t])??c.bracket.cssvar.fraction.rem(t);if(n!=null)return[...He[e].map(i=>[`--un-translate${i}`,n]),["transform",q]]}function Lr([,e,t]){let r=c.bracket.cssvar.fraction.percent(t);if(r!=null)return[...He[e].map(n=>[`--un-scale${n}`,r]),["transform",q]]}function Wr([,e="",t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return e?{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:q}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:q}}function Ko([,e,t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return{[`--un-skew-${e}`]:r,transform:q}}var Io={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",fw:"font-weight",items:"align-items",justify:"justify-content",select:"user-select",self:"align-self",vertical:"vertical-align",visible:"visibility",whitespace:"white-space",ws:"white-space"},Nr=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=Io[e];if(r)return{[r]:c.cssvar(t)}}]],Hr=[[/^\[([\w_-]+):([^'"]+)\]$/,([,e,t])=>({[e]:c.bracket(`[${t}]`)})]];var Kr=[[/^(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 Ir=["solid","double","dotted","dashed","wavy",...R],qr=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,e])=>({"text-decoration-line":e}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,([,e],{theme:t})=>{var r;return{"text-decoration-thickness":((r=t.lineWidth)==null?void 0:r[e])??c.bracket.cssvar.global.px(e)}},{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,e])=>({"text-decoration-thickness":e}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,(e,t)=>{let r=A("text-decoration-color","line")(e,t);if(r)return{"-webkit-text-decoration-color":r["text-decoration-color"],...r}},{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":c.bracket.percent(e)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,e],{theme:t})=>{var r;return{"text-underline-offset":((r=t.lineWidth)==null?void 0:r[e])??c.auto.bracket.cssvar.global.px(e)}},{autocomplete:"(underline|decoration)-(offset)-<num>"}],...Ir.map(e=>[`underline-${e}`,{"text-decoration-style":e}]),...Ir.map(e=>[`decoration-${e}`,{"text-decoration-style":e}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];var Gr=[[/^fill-(.+)$/,A("fill","fill"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":c.bracket.percent(e)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r;return{"stroke-width":((r=t.lineWidth)==null?void 0:r[e])??c.bracket.cssvar.fraction.px.number(e)}},{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":c.bracket.cssvar.number(e)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,e],{theme:t})=>{var r;return{"stroke-dashoffset":((r=t.lineWidth)==null?void 0:r[e])??c.bracket.cssvar.px.numberWithUnit(e)}},{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,A("stroke","stroke"),{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":c.bracket.percent(e)}),{autocomplete:"stroke-(op|opacity)-<percent>"}],["stroke-cap-square",{"stroke-linecap":"square"}],["stroke-cap-round",{"stroke-linecap":"round"}],["stroke-cap-auto",{"stroke-linecap":"butt"}],["stroke-join-arcs",{"stroke-linejoin":"arcs"}],["stroke-join-bevel",{"stroke-linejoin":"bevel"}],["stroke-join-clip",{"stroke-linejoin":"miter-clip"}],["stroke-join-round",{"stroke-linejoin":"round"}],["stroke-join-auto",{"stroke-linejoin":"miter"}],["stroke-none",{stroke:"none"}]];var Yr=[Nr,Hr,Ur,Mr,hr,Nt,Kt,Gr,Bt,vr,Zt,Xt,Jt,kr,qr,Qt,er,Cr,Vt,Ht,Rr,Er,jr,Ar,Gt,or,nr,sr,Pr,Or,xr,gr,br,yr,jt,$r,wr,Sr,ir,Lt,Wt,cr,ar,lr,fr,ur,pr,mr,dr,qt,Br,Dt,Kr].flat(1);var Qe={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(Qe).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 Zr={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(",")},Xr={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"]},Jr={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},Qr={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},en={DEFAULT:["0 0 1px rgba(0,0,0,0.2)","0 0 1px rgba(1,0,5,0.1)"],none:"0 0 rgba(0,0,0,0)",sm:"1px 1px 3px rgba(36,37,47,0.25)",md:["0 1px 2px rgba(30,29,39,0.19)","1px 2px 4px rgba(54,64,147,0.18)"],lg:["3px 3px 6px rgba(0,0,0,0.26)","0 0 5px rgba(15,3,86,0.22)"],xl:["1px 1px 3px rgba(0,0,0,0.29)","2px 4px 7px rgba(73,64,125,0.35)"]},tn={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},et={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},rn=et;var tt={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},nn={...tt},on={DEFAULT:"1px",none:"0px"},sn={DEFAULT:"1rem",none:"0rem",xs:"0.75rem",sm:"0.875rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},an={DEFAULT:"150ms",none:"0ms",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},cn={DEFAULT:"0.25rem",none:"0rem",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},ln={DEFAULT:["var(--un-shadow-inset) 0 1px 3px 0 rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 1px 2px -1px rgba(0,0,0,0.1)"],none:"0 0 rgba(0,0,0,0)",sm:"var(--un-shadow-inset) 0 1px 2px 0 rgba(0,0,0,0.05)",md:["var(--un-shadow-inset) 0 4px 6px -1px rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 2px 4px -2px rgba(0,0,0,0.1)"],lg:["var(--un-shadow-inset) 0 10px 15px -3px rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 4px 6px -4px rgba(0,0,0,0.1)"],xl:["var(--un-shadow-inset) 0 20px 25px -5px rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 8px 10px -6px rgba(0,0,0,0.1)"],"2xl":"var(--un-shadow-inset) 0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)"},fn={DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},un={DEFAULT:"1px",none:"0px"};var pn={DEFAULT:"8px",0:"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},mn={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 rgba(0,0,0,0)"};var Pe={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},rt={auto:"auto",...Pe,screen:"100vw"},he={none:"none",...Pe,screen:"100vw"},nt={auto:"auto",...Pe,screen:"100vh"},ge={none:"none",...Pe,screen:"100vh"};var dn={...Dr,...zr,...Tr};var hn={width:rt,height:nt,maxWidth:he,maxHeight:ge,minWidth:he,minHeight:ge,inlineSize:rt,blockSize:nt,maxInlineSize:he,maxBlockSize:ge,minInlineSize:he,minBlockSize:ge,colors:Qe,fontFamily:Zr,fontSize:Xr,breakpoints:tt,verticalBreakpoints:nn,borderRadius:cn,lineHeight:tn,letterSpacing:et,wordSpacing:rn,boxShadow:ln,textIndent:Jr,textShadow:en,textStrokeWidth:Qr,blur:pn,dropShadow:mn,easing:fn,lineWidth:on,spacing:sn,duration:an,ringWidth:un,preflightBase:dn};var ot={},gn=e=>{var o;let t=((o=e.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:o[0])||"",r=e.slice(t.length),n=parseFloat(t)-.1;return Number.isNaN(n)?e:`${n}${r}`},xn={name:"breakpoints",match(e,t){let r=Object.entries(Te(t)??{}).map(([n,o],i)=>[n,o,i]);for(let[n,o,i]of r){ot[n]||(ot[n]=new RegExp(`^((?:[al]t-)?${n}[:-])`));let s=e.match(ot[n]);if(!s)continue;let[,a]=s,l=e.slice(a.length);if(l==="container")continue;let f=a.startsWith("lt-"),m=a.startsWith("at-"),u=1e3;return f?(u-=i+1,{matcher:l,handle:(d,p)=>p({...d,parent:`${d.parent?`${d.parent} $$ `:""}@media (max-width: ${gn(o)})`,parentOrder:u})}):(u+=i+1,m&&i<r.length-1?{matcher:l,handle:(d,p)=>p({...d,parent:`${d.parent?`${d.parent} $$ `:""}@media (min-width: ${o}) and (max-width: ${gn(r[i+1][1])})`,parentOrder:u})}:{matcher:l,handle:(d,p)=>p({...d,parent:`${d.parent?`${d.parent} $$ `:""}@media (min-width: ${o})`,parentOrder:u})})}},multiPass:!0,autocomplete:"(at-|lt-|)$breakpoints:"};var N=(e,t,r)=>{let n=e?new RegExp(`^${t}(?:-\\[(.+?)\\])[:-]`):new RegExp(`^${t}(?:-\\[(.+?)\\])?[:-]`);return{name:`combinator:${t}`,match:o=>{let i=o.match(n);if(i)return{matcher:o.slice(i[0].length),selector:s=>r.replace("&&-s",s).replace("&&-c",i[1]??"*")}},multiPass:!0}},bn=[N(!1,"all","&&-s &&-c"),N(!1,"children","&&-s>&&-c"),N(!1,"next","&&-s+&&-c"),N(!1,"sibling","&&-s+&&-c"),N(!1,"siblings","&&-s~&&-c"),N(!0,"group","&&-c &&-s"),N(!0,"parent","&&-c>&&-s"),N(!0,"previous","&&-c+&&-s"),N(!0,"peer","&&-c~&&-s")];var yn=ce("print","@media print"),$n={name:"media",match(e,{theme:t}){var n;let r=e.match(/^media-([_\d\w]+)[:-]/);if(r){let o=((n=t.media)==null?void 0:n[r[1]])??`(--${r[1]})`;return{matcher:e.slice(r[0].length),handle:(i,s)=>s({...i,parent:`${i.parent?`${i.parent} $$ `:""}@media ${o}`})}}},multiPass:!0};var wn=(e={})=>(e==null?void 0:e.dark)==="class"?[X("dark",t=>({prefix:`.dark $$ ${t.prefix}`})),X("light",t=>({prefix:`.light $$ ${t.prefix}`}))]:[ce("dark","@media (prefers-color-scheme: dark)"),ce("light","@media (prefers-color-scheme: light)")];var vn=[X("rtl",e=>({prefix:`[dir="rtl"] $$ ${e.prefix}`})),X("ltr",e=>({prefix:`[dir="ltr"] $$ ${e.prefix}`}))];var Sn={name:"selector",match(e){let t=e.match(/^selector-\[(.+?)\][:-]/);if(t)return{matcher:e.slice(t[0].length),selector:()=>t[1]}}},kn={name:"layer",match(e){let t=e.match(/^layer-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),handle:(r,n)=>n({...r,parent:`${r.parent?`${r.parent} $$ `:""}@layer ${t[1]}`})}}},Cn={name:"uno-layer",match(e){let t=e.match(/^uno-layer-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),layer:t[1]}}},Rn={name:"scope",match(e){let t=e.match(/^scope-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),selector:r=>`.${t[1]} $$ ${r}`}}},En={name:"variables",match(e){if(!e.startsWith("["))return;let[t,r]=Ge(e,"[","]",":")??[];if(!(t&&r&&r!==""))return;let n=c.bracket(t)??"";if(!!(n.startsWith("@")||n.includes("&")))return{matcher:r,handle(o,i){let s=n.startsWith("@")?{parent:`${o.parent?`${o.parent} $$ `:""}${n}`}:{selector:n.replace(/&/g,o.selector)};return i({...o,...s})}}},multiPass:!0};var Tn=/[0-9.]+(?:[a-z]+|%)?/,qo=[/opacity|color|flex/],An={name:"negative",match(e){if(!!e.startsWith("-"))return{matcher:e.slice(1),body:t=>{if(t.find(n=>n[0]===Ot))return;let r=!1;return t.forEach(n=>{var i;let o=(i=n[1])==null?void 0:i.toString();!o||o==="0"||qo.some(s=>n[0].match(s))||Tn.test(o)&&(n[1]=o.replace(Tn,s=>`-${s}`),r=!0)}),r?t:[]}}}};var zn={name:"important",match(e){let t,r=e.match(/^(important[:-]|!)/);if(r?t=e.slice(r[0].length):e.endsWith("!")&&(t=e.slice(0,-1)),t)return{matcher:t,body:n=>(n.forEach(o=>{o[1]&&(o[1]+=" !important")}),n)}}};var be=Object.fromEntries([["first-letter","::first-letter"],["first-line","::first-line"],"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",["placeholder","::placeholder"],["before","::before"],["after","::after"],["selection","::selection"],["marker","::marker"],["file","::file-selector-button"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),ye=Object.fromEntries([["backdrop","::backdrop"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),Go=["not","is","where","has"],it=Object.entries(be).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).join("|"),st=Object.entries(ye).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).join("|"),xe=Go.join("|"),jn=e=>{if(e==="active")return 1},Oe=(e,t,r)=>{let n=new RegExp(`^(${K(t)}:)(\\S+)${K(r)}\\1`),o=new RegExp(`^${e}-((?:(${xe})-)?(${it}))[:-]`),i=new RegExp(`^${e}-((?:(${xe})-)?(${st}))[:]`);return{name:`pseudo:${e}`,match(s){let a=s.match(o)||s.match(i);if(a){let l=be[a[3]]||ye[a[3]]||`:${a[3]}`;return a[2]&&(l=`:${a[2]}(${l})`),{matcher:s.slice(a[0].length),handle:(f,m)=>m({...f,prefix:`${t}${l}${r}${f.prefix}`.replace(n,"$1$2:"),sort:jn(a[3])})}}},multiPass:!0}},Vn=Object.entries(be).map(([e])=>e).join("|"),Yo=Object.entries(ye).map(([e])=>e).join("|"),Zo=new RegExp(`^(${Vn})[:-]`),Xo=new RegExp(`^(${Yo})[:]`),Pn={name:"pseudo",match:e=>{let t=e.match(Zo)||e.match(Xo);if(t){let r=be[t[1]]||ye[t[1]]||`:${t[1]}`;return{matcher:e.slice(t[0].length),handle:(n,o)=>{let i=r.startsWith("::")?{pseudo:`${n.pseudo}${r}`}:{selector:`${n.selector}${r}`};return o({...n,...i,sort:jn(t[1])})}}}},multiPass:!0,autocomplete:`(${Vn}):`},Jo=new RegExp(`^(${xe})-(${it})[:-]`),Qo=new RegExp(`^(${xe})-(${st})[:]`),On={match:e=>{let t=e.match(Jo)||e.match(Qo);if(t){let r=t[1],n=be[t[2]]||ye[t[2]]||`:${t[2]}`;return{matcher:e.slice(t[0].length),selector:o=>`${o}:${r}(${n})`}}},multiPass:!0,autocomplete:`(${xe})-(${it}|${st}):`},Un=(e={})=>{let t=!!(e!=null&&e.attributifyPseudo);return[Oe("group",t?'[group=""]':".group"," "),Oe("peer",t?'[peer=""]':".peer","~"),Oe("parent",t?'[parent=""]':".parent",">"),Oe("previous",t?'[previous=""]':".previous","+")]},ei=/(part-\[(.+)]:)(.+)/,Mn={match:e=>{let t=e.match(ei);if(t){let r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:n=>`${n}::${r}`}}},multiPass:!0};var Fn=e=>[En,kn,Sn,Cn,An,zn,yn,$n,xn,...bn,Pn,On,...Un(e),Mn,...wn(e),...vn,Rn];var ti=(e={})=>(e.dark=e.dark??"class",e.attributifyPseudo=e.attributifyPseudo??!1,{name:"@unocss/preset-mini",theme:hn,rules:Yr,variants:Fn(e),options:e,postprocess:e.variablePrefix&&e.variablePrefix!=="un-"?ri(e.variablePrefix):void 0,preflights:Tt,prefix:e.prefix}),_n=ti;function ri(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 at=/^(?!\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/,Ln=(e={})=>{let t=e.prefix??"un-",r=e.prefixedOnly??!1,n=e.trueToNonValued??!1;return{name:"attributify",match(o){let i=mt(o);if(!i)return;let s=i[1];if(s.startsWith(t))s=s.slice(t.length);else if(r)return;let a=i[2],[,l="",f=a]=a.match(at)||[];return f==="~"||n&&f==="true"||!f?`${l}${s}`:`${l}${s}-${f}`}}};var ni=/(<\w[\w:\.$-]*\s)((?:'[^>]*?'|"[^>]*?"|`[^>]*?`|\{[^>]*?\}|[^>]*?)*)/g,oi=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=("[^"]*|'[^']*))?/g,Wn=/[\s'"`;>]+/,Dn={name:"attributify",extract:({content:e,cursor:t})=>{let r=e.matchAll(ni),n,o=0;for(let b of r){let[,T,x]=b,C=b.index+T.length;if(t>C&&t<=C+x.length){o=C,n=x;break}}if(!n)return null;let i=n.matchAll(oi),s=0,a,l;for(let b of i){let[T,x,C]=b,E=o+b.index;if(t>E&&t<=E+T.length){s=E,a=x,l=C==null?void 0:C.slice(1);break}}if(!a||a==="class"||a==="className"||a===":class")return null;if(l===void 0)return{extracted:a,resolveReplacement(b){return{start:s,end:s+a.length,replacement:b}}};let f=s+a.length+2,m=Wn.exec(l),u=0,d;for(;m;){let[b]=m;if(t>f+u&&t<=f+u+m.index){d=l.slice(u,u+m.index);break}u+=m.index+b.length,m=Wn.exec(l.slice(u))}d===void 0&&(d=l.slice(u));let[,p="",g]=d.match(at)||[];return{extracted:`${p}${a}-${g}`,transformSuggestions(b){return b.filter(T=>T.startsWith(`${p}${a}-`)).map(T=>p+T.slice(p.length+a.length+1))},resolveReplacement(b){return{start:u+f,end:u+f+d.length,replacement:p+b.slice(p.length+a.length+1)}}}}};var ii=["v-bind:",":"],Bn=/[\s'"`;]+/g,si=/<\w(?=.*>)[\w:\.$-]*\s((?:['"`\{].*?['"`\}]|.*?)*?)>/gs,ai=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-]+)(?:=(["'])([^\2]*?)\2)?/g,Nn=e=>{let t=(e==null?void 0:e.ignoreAttributes)??[],r=(e==null?void 0:e.nonValuedAttribute)??!0,n=(e==null?void 0:e.trueToNonValued)??!1;return{name:"attributify",extract({code:o}){let i=Array.from(o.matchAll(si)).flatMap(s=>Array.from((s[1]||"").matchAll(ai))).flatMap(([,s,a,l])=>{if(t.includes(s))return[];for(let f of ii)if(s.startsWith(f)){s=s.slice(f.length);break}if(!l){if(ne(s)&&r!==!1){let f=[`[${s}=""]`];return n&&f.push(`[${s}="true"]`),f}return[]}return["class","className"].includes(s)?l.split(Bn).filter(ne):l.split(Bn).filter(Boolean).map(f=>`[${s}~="${f}"]`)});return new Set(i)}}};var ci=(e={})=>{e.strict=e.strict??!1,e.prefix=e.prefix??"un-",e.prefixedOnly=e.prefixedOnly??!1,e.nonValuedAttribute=e.nonValuedAttribute??!0,e.ignoreAttributes=e.ignoreAttributes??[];let t=[Ln(e)],r=[Nn(e)],n=[Dn];return e.strict||r.unshift(oe),{name:"@unocss/preset-attributify",variants:t,extractors:r,options:e,autocomplete:{extractors:n}}},Hn=ci;var li=e=>e.replace(/-(\w)/g,(t,r)=>r?r.toUpperCase():""),Kn=e=>e.charAt(0).toUpperCase()+e.slice(1),In=e=>e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase(),qn=["Webkit","Moz","ms"];function Gn(e){let t={};function r(n){let o=t[n];if(o)return o;let i=li(n);if(i!=="filter"&&i in e)return t[n]=In(i);i=Kn(i);for(let s=0;s<qn.length;s++){let a=`${qn[s]}${i}`;if(a in e)return t[n]=In(Kn(a))}return n}return({entries:n})=>n.forEach(o=>{o[0].startsWith("--")||(o[0]=r(o[0]))})}function ct(e={}){var $,j;if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let t=window.__unocss||{},r=t==null?void 0:t.runtime,n=Object.assign(e.defaults||{},r);if(r!=null&&r.autoPrefix){let h=n.postprocess;h||(h=[]),Array.isArray(h)||(h=[h]),h.unshift(Gn(document.createElement("div").style)),n.postprocess=h}($=r==null?void 0:r.configResolved)==null||$.call(r,t,n);let o,i=!0,s,a=Rt(t,n),l=new Set,f,m=[],u=()=>new Promise(h=>{m.push(h),f!=null&&clearTimeout(f),f=setTimeout(()=>p().then(()=>{let w=m;m=[],w.forEach(V=>V())}),0)});function d(h=document.body){if(h.nodeType!==1)return;let w=h;w.hasAttribute("un-cloak")&&w.removeAttribute("un-cloak"),w.querySelectorAll("[un-cloak]").forEach(V=>{V.removeAttribute("un-cloak")})}async function p(){let h=await a.generate(l);o||(o=document.createElement("style"),document.documentElement.prepend(o)),o.innerHTML=h.css,l=h.matched}async function g(h){let w=l.size;await a.applyExtractors(h,void 0,l),w!==l.size&&await u()}async function b(){let h=document.body&&document.body.outerHTML;h&&(await g(h),d())}let T=new MutationObserver(h=>{i||h.forEach(async w=>{if(w.target.nodeType!==1)return;let V=w.target;if(V!==o)if(w.type==="childList")w.addedNodes.forEach(async I=>{if(I.nodeType!==1)return;let H=I;s&&!s(H)||(await g(H.outerHTML),d(H))});else{if(s&&!s(V))return;if(w.attributeName!=="un-cloak"){let I=Array.from(V.attributes).map(S=>S.value?`${S.name}="${S.value}"`:S.name).join(" "),H=`<${V.tagName.toLowerCase()} ${I}>`;await g(H)}V.hasAttribute("un-cloak")&&V.removeAttribute("un-cloak")}})}),x=!1;function C(){if(x)return;let h=document.documentElement||document.body;!h||(T.observe(h,{childList:!0,subtree:!0,attributes:!0}),x=!0)}function E(){b(),C()}function y(){document.readyState==="loading"?window.addEventListener("DOMContentLoaded",E):E()}let v=window.__unocss_runtime=window.__unocss_runtime={version:a.version,uno:a,async extract(h){typeof h!="string"&&(h.forEach(w=>l.add(w)),h=""),await g(h)},extractAll:b,inspect(h){s=h},toggleObserver(h){h===void 0?i=!i:i=!!h,!x&&!i&&y()}};((j=r==null?void 0:r.ready)==null?void 0:j.call(r,v))!==!1&&(i=!1,y())}ct({defaults:{presets:[_n(),Hn()]}});})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/runtime",
3
- "version": "0.42.1",
3
+ "version": "0.43.0",
4
4
  "description": "CSS-in-JS Runtime for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -34,9 +34,9 @@
34
34
  "dist"
35
35
  ],
36
36
  "dependencies": {
37
- "@unocss/core": "0.42.1",
38
- "@unocss/preset-attributify": "0.42.1",
39
- "@unocss/preset-uno": "0.42.1"
37
+ "@unocss/core": "0.43.0",
38
+ "@unocss/preset-attributify": "0.43.0",
39
+ "@unocss/preset-uno": "0.43.0"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "pnpm run build:node && pnpm run build:cdn",