@unocss/runtime 0.47.6 → 0.48.1

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