@unocss/runtime 66.6.1 → 66.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributify.global.js +2 -2
- package/core.global.js +1 -1
- package/full.global.js +2 -2
- package/mini.global.js +2 -2
- package/package.json +4 -4
- package/preset-mini.global.js +1 -1
- package/preset-uno.global.js +1 -1
- package/preset-wind.global.js +1 -1
- package/preset-wind3.global.js +1 -1
- package/uno.global.js +2 -2
package/mini.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var jr=Object.defineProperty;var Rr=(e,t)=>{for(var n in t)jr(e,n,{get:t[n],enumerable:!0})};var Ue="default",ut="preflights",zr="shortcuts",_r="imports",Pr={[_r]:-200,[ut]:-100,[zr]:-10,[Ue]:0},ht=/[\\:]?[\s'"`;{}]+/g;function Or(e){return e.split(ht)}var Mr={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Or(e)}};function j(e=[]){return Array.isArray(e)?e:[e]}function ee(e){return Array.from(new Set(e))}function Ht(e,t){return e.reduce((n,r)=>(n.findIndex(s=>t(r,s))===-1&&n.push(r),n),[])}function M(e){return typeof e=="string"}var Qt=class extends Set{constructor(e){if(super(),this._map=new Map,e)for(let t of e)this.add(t)}add(e){return this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.has(e)?(this._map.delete(e),super.delete(e)):!1}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,t){return this._map.set(e,t),super.add(e)}};function ct(e){return e instanceof Qt}function K(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Y(e){let t=e.length,n=-1,r,s="",i=e.charCodeAt(0);for(;++n<t;){if(r=e.charCodeAt(n),r===0){s+="\uFFFD";continue}if(r===37){s+="\\%";continue}if(r===44){s+="\\,";continue}if(r>=1&&r<=31||r===127||n===0&&r>=48&&r<=57||n===1&&r>=48&&r<=57&&i===45){s+=`\\${r.toString(16)} `;continue}if(n===0&&t===1&&r===45){s+=`\\${e.charAt(n)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){s+=e.charAt(n);continue}s+=`\\${e.charAt(n)}`}return s}var ft=Y;function Lr(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(n=>n(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(n=>n!==t)}}}var Tr=/^\[(.+?)~?="(.*)"\]$/;var Fr=/[\w\u00A0-\uFFFF%-?]/;function en(e){return e.match(Tr)}function ve(e=""){return Fr.test(e)}function Nr(e){return typeof e=="function"?{match:e}:e}function qt(e){return e.length===3}function We(e){return e!=null}function Wr(){}var Br=class{constructor(){this._map=new Map}get(e,t){let n=this._map.get(e);if(n)return n.get(t)}getFallback(e,t,n){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.has(t)||r.set(t,n),r.get(t)}set(e,t,n){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.set(t,n),this}has(e,t){return this._map.get(e)?.has(t)}delete(e,t){return this._map.get(e)?.delete(t)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([t,n])=>Array.from(n.entries()).map(([r,s])=>e(s,t,r)))}},Ir=class extends Map{getFallback(e,t){let n=this.get(e);return n===void 0?(this.set(e,t),t):n}map(e){let t=[];return this.forEach((n,r)=>{t.push(e(n,r))}),t}flatMap(e){let t=[];return this.forEach((n,r)=>{t.push(...e(n,r))}),t}};function Ve(e){return M(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Ur(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>Ve(t)):[e]:[Ve(e)]}function Dr(e){return e.filter(([t,n],r)=>{if(t.startsWith("$$"))return!1;for(let s=r-1;s>=0;s--)if(e[s][0]===t&&e[s][1]===n)return!1;return!0})}var tn="__virtual_key__";function we(e){return e==null?"":Dr(e).map(([t,n])=>n!=null&&typeof n!="function"?t!==tn?`${t}:${n};`:n:void 0).filter(Boolean).join("")}function Be(e){return e&&typeof e=="object"&&!Array.isArray(e)}function nn(e,t,n=!1){let r=e,s=t;if(Array.isArray(s))return n&&Array.isArray(s)?[...r,...s]:[...s];let i={...r};return Be(r)&&Be(s)&&Object.keys(s).forEach(o=>{Be(r[o])&&Be(s[o])||Array.isArray(r[o])&&Array.isArray(s[o])?i[o]=nn(r[o],s[o],n):Object.assign(i,{[o]:s[o]})}),i}function De(e){let t,n,r;if(Array.isArray(e)){for(n=Array.from({length:t=e.length});t--;)n[t]=(r=e[t])&&typeof r=="object"?De(r):r;return n}if(Object.prototype.toString.call(e)==="[object Object]"){n={};for(t in e)t==="__proto__"?Object.defineProperty(n,t,{value:De(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=(r=e[t])&&typeof r=="object"?De(r):r;return n}return e}function Vr(e){return M(e[0])}function Gr(e){return M(e[0])}var Ie={};function Hr(e=["-",":"]){let t=e.join("|");return Ie[t]||(Ie[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Ie[t].lastIndex=0,Ie[t]}function qr(e,t=["-",":"],n=5){let r=Hr(t),s,i=e.toString(),o=new Set,l=new Map;do s=!1,i=i.replace(r,(c,f,h,d,m)=>{if(!t.includes(h))return c;s=!0,o.add(f+h);let p=m+f.length+h.length+1,y={length:c.length,items:[]};l.set(m,y);for(let w of[...d.matchAll(/\S+/g)]){let v=p+w.index,x=l.get(v)?.items;x?l.delete(v):x=[{offset:v,length:w[0].length,className:w[0]}];for(let b of x)b.className=b.className==="~"?f:b.className.replace(/^(!?)(.*)/,`$1${f}${h}$2`),y.items.push(b)}return"$".repeat(c.length)}),n-=1;while(s&&n);let a;if(typeof e=="string"){a="";let c=0;for(let[f,h]of l)a+=e.slice(c,f),a+=h.items.map(d=>d.className).join(" "),c=f+h.length;a+=e.slice(c)}else{a=e;for(let[c,f]of l)a.overwrite(c,c+f.length,f.items.map(h=>h.className).join(" "))}return{prefixes:Array.from(o),hasChanged:s,groupsByOffset:l,get expanded(){return a.toString()}}}function Kr(e,t=["-",":"],n=5){let r=qr(e,t,n);return typeof e=="string"?r.expanded:e}var Kt=new Set;function Yr(e){Kt.has(e)||(console.warn("[unocss]",e),Kt.add(e))}function rn(e){return j(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Yt="_uno_resolved";async function Xr(e){let t=typeof e=="function"?await e():await e;if(Yt in t)return t;t={...t},Object.defineProperty(t,Yt,{value:!0,enumerable:!1});let n=t.shortcuts?rn(t.shortcuts):void 0;if(t.shortcuts=n,t.prefix||t.layer){let r=s=>{s[2]||(s[2]={});let i=s[2];i.prefix==null&&t.prefix&&(i.prefix=j(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};n?.forEach(r),t.rules?.forEach(r)}return t}async function sn(e){let t=await Xr(e);return t.presets?[t,...(await Promise.all((t.presets||[]).flatMap(j).flatMap(sn))).flat()]:[t]}function Zr(e){if(e.length===0)return{};let t=[],n=[],r=!1,s=[],i=[];for(let l of e){if(l.pipeline===!1){r=!0;break}else l.pipeline?.include&&t.push(l.pipeline.include),l.pipeline?.exclude&&n.push(l.pipeline.exclude);l.filesystem&&s.push(l.filesystem),l.inline&&i.push(l.inline)}let o={pipeline:r?!1:{include:ee(Zt(...t)),exclude:ee(Zt(...n))}};return s.length&&(o.filesystem=ee(s.flat())),i.length&&(o.inline=ee(i.flat())),o}async function Xt(e={},t={}){let n=Object.assign({},t,e),r=Ht((await Promise.all((n.presets||[]).flatMap(j).flatMap(sn))).flat(),(g,$)=>g.name===$.name),s=[...r.filter(g=>g.enforce==="pre"),...r.filter(g=>!g.enforce),...r.filter(g=>g.enforce==="post")],i=[...s,n],o=[...i].reverse(),l=Object.assign({},Pr,...i.map(g=>g.layers));function a(g){return ee(i.flatMap($=>j($[g]||[])))}let c=a("extractors"),f=o.find(g=>g.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Mr),f&&!c.includes(f)&&c.unshift(f),c.sort((g,$)=>(g.order||0)-($.order||0));let h=a("rules"),d=h.length,m={},p=[];for(let[g,$]of h.entries()){let z=$[2]??($[2]={});z.__index=g,Vr($)?j(z.prefix??"").forEach(G=>{m[G+$[0]]=$}):p.unshift($)}let y={templates:ee(i.flatMap(g=>j(g.autocomplete?.templates))),extractors:i.flatMap(g=>j(g.autocomplete?.extractors)).sort((g,$)=>(g.order||0)-($.order||0)),shorthands:Qr(i.map(g=>g.autocomplete?.shorthands||{}))},w=a("separators");w.length||(w=[":","-"]);let v=Zr(a("content")),x={mergeSelectors:!0,warn:!0,sortLayers:g=>g,...n,blocklist:a("blocklist"),presets:s,envMode:n.envMode||"build",shortcutsLayer:n.shortcutsLayer||"shortcuts",layers:l,theme:Jr(i.map(g=>g.theme)),rules:h,rulesSize:d,rulesDynamic:p,rulesStaticMap:m,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:y,variants:a("variants").map(Nr).sort((g,$)=>(g.order||0)-($.order||0)),shortcuts:rn(a("shortcuts")).reverse(),extractors:c,safelist:a("safelist"),separators:w,details:n.details??n.envMode==="dev",content:v,transformers:Ht(a("transformers"),(g,$)=>g.name===$.name)},b=a("extendTheme");for(let g of b)x.theme=g(x.theme,x)||x.theme;for(let g of i)g?.configResolved?.(x);return x}function Jr(e){return e.map(t=>t?De(t):{}).reduce((t,n)=>nn(t,n),{})}function Qr(e){return e.reduce((t,n)=>{let r={};for(let s in n){let i=n[s];Array.isArray(i)?r[s]=`(${i.join("|")})`:r[s]=i}return{...t,...r}},{})}function Zt(...e){return e.flatMap(es)}function es(e){return Array.isArray(e)?e:e?[e]:[]}var ts="66.6.1",q={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort",body:"$$symbol-body"},ns=class on{constructor(t={},n={}){this.userConfig=t,this.defaults=n,this.version=ts,this.events=Lr(),this.config=void 0,this.cache=new Map,this.blocked=new Set,this.parentOrders=new Map,this.activatedRules=new Set,this.resolveCSSResult=(r,s,i,o)=>{let l=Ur(s).filter(a=>a.length);if(l.length){this.config.details&&o.rules.push(i),o.generator.activatedRules.add(i);let a=i[2];return l.map(c=>{if(M(c))return[a.__index,c,a];let f=o.variantHandlers,h=a;for(let d of c)d[0]===q.variants?typeof d[1]=="function"?f=d[1](f)||f:f=[...j(d[1]),...f]:d[0]===q.parent?f=[{parent:d[1]},...f]:d[0]===q.selector?f=[{selector:d[1]},...f]:d[0]===q.layer?f=[{layer:d[1]},...f]:d[0]===q.sort?h={...h,sort:d[1]}:d[0]===q.noMerge?h={...h,noMerge:d[1]}:d[0]===q.body&&(d[0]=tn);return[a.__index,r,c,h,f]})}}}static async create(t={},n={}){let r=new on(t,n);return r.config=await Xt(r.userConfig,r.defaults),r.events.emit("config",r.config),r}async setConfig(t,n){t&&(n&&(this.defaults=n),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Xt(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,n,r=new Set){let s={original:t,code:t,id:n,extracted:r,envMode:this.config.envMode};for(let i of this.config.extractors){let o=await i.extract?.(s);if(o)if(ct(o)&&ct(r))for(let l of o)r.setCount(l,r.getCount(l)+o.getCount(l));else for(let l of o)r.add(l)}return r}makeContext(t,n){let r={rawSelector:t,currentSelector:n[1],theme:this.config.theme,generator:this,symbols:q,variantHandlers:n[2],constructCSS:(...s)=>this.constructCustomCSS(r,...s),variantMatch:n};return r}async parseToken(t,n){if(this.blocked.has(t))return;let r=`${t}${n?` ${n}`:""}`;if(this.cache.has(r))return this.cache.get(r);let s=this.config.preprocess.reduce((a,c)=>c(a)??a,t);if(this.isBlocked(s)){this.blocked.add(t),this.cache.set(r,null);return}let i=await this.matchVariants(t,s);if(i.every(a=>!a||this.isBlocked(a[1]))){this.blocked.add(t),this.cache.set(r,null);return}let o=async a=>{let c=this.makeContext(t,[n||a[0],a[1],a[2],a[3]]);this.config.details&&(c.variants=[...a[3]]);let f=await this.expandShortcut(c.currentSelector,c);return f?await this.stringifyShortcuts(c.variantMatch,c,f[0],f[1]):(await this.parseUtil(c.variantMatch,c))?.flatMap(h=>this.stringifyUtil(h,c)).filter(We)},l=(await Promise.all(i.map(a=>o(a)))).flat().filter(a=>!!a);if(l?.length)return this.cache.set(r,l),l;this.cache.set(r,null)}async generate(t,n={}){let{id:r,scope:s,preflights:i=!0,safelist:o=!0,minify:l=!1,extendedInfo:a=!1}=n,c=M(t)?await this.applyExtractors(t,r,a?new Qt:new Set):Array.isArray(t)?new Set(t):t;if(o){let S={generator:this,theme:this.config.theme};this.config.safelist.flatMap(C=>typeof C=="function"?C(S):C).forEach(C=>{let E=C.trim();E&&!c.has(E)&&c.add(E)})}let f=l?"":`
|
|
1
|
+
"use strict";(()=>{var jr=Object.defineProperty;var Rr=(e,t)=>{for(var n in t)jr(e,n,{get:t[n],enumerable:!0})};var Ue="default",ut="preflights",zr="shortcuts",_r="imports",Pr={[_r]:-200,[ut]:-100,[zr]:-10,[Ue]:0},ht=/[\\:]?[\s'"`;{}]+/g;function Or(e){return e.split(ht)}var Mr={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Or(e)}};function j(e=[]){return Array.isArray(e)?e:[e]}function ee(e){return Array.from(new Set(e))}function Ht(e,t){return e.reduce((n,r)=>(n.findIndex(s=>t(r,s))===-1&&n.push(r),n),[])}function M(e){return typeof e=="string"}var Qt=class extends Set{constructor(e){if(super(),this._map=new Map,e)for(let t of e)this.add(t)}add(e){return this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.has(e)?(this._map.delete(e),super.delete(e)):!1}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,t){return this._map.set(e,t),super.add(e)}};function ct(e){return e instanceof Qt}function K(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Y(e){let t=e.length,n=-1,r,s="",i=e.charCodeAt(0);for(;++n<t;){if(r=e.charCodeAt(n),r===0){s+="\uFFFD";continue}if(r===37){s+="\\%";continue}if(r===44){s+="\\,";continue}if(r>=1&&r<=31||r===127||n===0&&r>=48&&r<=57||n===1&&r>=48&&r<=57&&i===45){s+=`\\${r.toString(16)} `;continue}if(n===0&&t===1&&r===45){s+=`\\${e.charAt(n)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){s+=e.charAt(n);continue}s+=`\\${e.charAt(n)}`}return s}var ft=Y;function Lr(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(n=>n(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(n=>n!==t)}}}var Tr=/^\[(.+?)~?="(.*)"\]$/;var Fr=/[\w\u00A0-\uFFFF%-?]/;function en(e){return e.match(Tr)}function ve(e=""){return Fr.test(e)}function Nr(e){return typeof e=="function"?{match:e}:e}function qt(e){return e.length===3}function We(e){return e!=null}function Wr(){}var Br=class{constructor(){this._map=new Map}get(e,t){let n=this._map.get(e);if(n)return n.get(t)}getFallback(e,t,n){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.has(t)||r.set(t,n),r.get(t)}set(e,t,n){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.set(t,n),this}has(e,t){return this._map.get(e)?.has(t)}delete(e,t){return this._map.get(e)?.delete(t)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([t,n])=>Array.from(n.entries()).map(([r,s])=>e(s,t,r)))}},Ir=class extends Map{getFallback(e,t){let n=this.get(e);return n===void 0?(this.set(e,t),t):n}map(e){let t=[];return this.forEach((n,r)=>{t.push(e(n,r))}),t}flatMap(e){let t=[];return this.forEach((n,r)=>{t.push(...e(n,r))}),t}};function Ve(e){return M(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Ur(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>Ve(t)):[e]:[Ve(e)]}function Dr(e){return e.filter(([t,n],r)=>{if(t.startsWith("$$"))return!1;for(let s=r-1;s>=0;s--)if(e[s][0]===t&&e[s][1]===n)return!1;return!0})}var tn="__virtual_key__";function we(e){return e==null?"":Dr(e).map(([t,n])=>n!=null&&typeof n!="function"?t!==tn?`${t}:${n};`:n:void 0).filter(Boolean).join("")}function Be(e){return e&&typeof e=="object"&&!Array.isArray(e)}function nn(e,t,n=!1){let r=e,s=t;if(Array.isArray(s))return n&&Array.isArray(s)?[...r,...s]:[...s];let i={...r};return Be(r)&&Be(s)&&Object.keys(s).forEach(o=>{Be(r[o])&&Be(s[o])||Array.isArray(r[o])&&Array.isArray(s[o])?i[o]=nn(r[o],s[o],n):Object.assign(i,{[o]:s[o]})}),i}function De(e){let t,n,r;if(Array.isArray(e)){for(n=Array.from({length:t=e.length});t--;)n[t]=(r=e[t])&&typeof r=="object"?De(r):r;return n}if(Object.prototype.toString.call(e)==="[object Object]"){n={};for(t in e)t==="__proto__"?Object.defineProperty(n,t,{value:De(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=(r=e[t])&&typeof r=="object"?De(r):r;return n}return e}function Vr(e){return M(e[0])}function Gr(e){return M(e[0])}var Ie={};function Hr(e=["-",":"]){let t=e.join("|");return Ie[t]||(Ie[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Ie[t].lastIndex=0,Ie[t]}function qr(e,t=["-",":"],n=5){let r=Hr(t),s,i=e.toString(),o=new Set,l=new Map;do s=!1,i=i.replace(r,(c,f,h,d,m)=>{if(!t.includes(h))return c;s=!0,o.add(f+h);let p=m+f.length+h.length+1,y={length:c.length,items:[]};l.set(m,y);for(let w of[...d.matchAll(/\S+/g)]){let v=p+w.index,x=l.get(v)?.items;x?l.delete(v):x=[{offset:v,length:w[0].length,className:w[0]}];for(let b of x)b.className=b.className==="~"?f:b.className.replace(/^(!?)(.*)/,`$1${f}${h}$2`),y.items.push(b)}return"$".repeat(c.length)}),n-=1;while(s&&n);let a;if(typeof e=="string"){a="";let c=0;for(let[f,h]of l)a+=e.slice(c,f),a+=h.items.map(d=>d.className).join(" "),c=f+h.length;a+=e.slice(c)}else{a=e;for(let[c,f]of l)a.overwrite(c,c+f.length,f.items.map(h=>h.className).join(" "))}return{prefixes:Array.from(o),hasChanged:s,groupsByOffset:l,get expanded(){return a.toString()}}}function Kr(e,t=["-",":"],n=5){let r=qr(e,t,n);return typeof e=="string"?r.expanded:e}var Kt=new Set;function Yr(e){Kt.has(e)||(console.warn("[unocss]",e),Kt.add(e))}function rn(e){return j(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Yt="_uno_resolved";async function Xr(e){let t=typeof e=="function"?await e():await e;if(Yt in t)return t;t={...t},Object.defineProperty(t,Yt,{value:!0,enumerable:!1});let n=t.shortcuts?rn(t.shortcuts):void 0;if(t.shortcuts=n,t.prefix||t.layer){let r=s=>{s[2]||(s[2]={});let i=s[2];i.prefix==null&&t.prefix&&(i.prefix=j(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};n?.forEach(r),t.rules?.forEach(r)}return t}async function sn(e){let t=await Xr(e);return t.presets?[t,...(await Promise.all((t.presets||[]).flatMap(j).flatMap(sn))).flat()]:[t]}function Zr(e){if(e.length===0)return{};let t=[],n=[],r=!1,s=[],i=[];for(let l of e){if(l.pipeline===!1){r=!0;break}else l.pipeline?.include&&t.push(l.pipeline.include),l.pipeline?.exclude&&n.push(l.pipeline.exclude);l.filesystem&&s.push(l.filesystem),l.inline&&i.push(l.inline)}let o={pipeline:r?!1:{include:ee(Zt(...t)),exclude:ee(Zt(...n))}};return s.length&&(o.filesystem=ee(s.flat())),i.length&&(o.inline=ee(i.flat())),o}async function Xt(e={},t={}){let n=Object.assign({},t,e),r=Ht((await Promise.all((n.presets||[]).flatMap(j).flatMap(sn))).flat(),(g,$)=>g.name===$.name),s=[...r.filter(g=>g.enforce==="pre"),...r.filter(g=>!g.enforce),...r.filter(g=>g.enforce==="post")],i=[...s,n],o=[...i].reverse(),l=Object.assign({},Pr,...i.map(g=>g.layers));function a(g){return ee(i.flatMap($=>j($[g]||[])))}let c=a("extractors"),f=o.find(g=>g.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Mr),f&&!c.includes(f)&&c.unshift(f),c.sort((g,$)=>(g.order||0)-($.order||0));let h=a("rules"),d=h.length,m={},p=[];for(let[g,$]of h.entries()){let z=$[2]??($[2]={});z.__index=g,Vr($)?j(z.prefix??"").forEach(G=>{m[G+$[0]]=$}):p.unshift($)}let y={templates:ee(i.flatMap(g=>j(g.autocomplete?.templates))),extractors:i.flatMap(g=>j(g.autocomplete?.extractors)).sort((g,$)=>(g.order||0)-($.order||0)),shorthands:Qr(i.map(g=>g.autocomplete?.shorthands||{}))},w=a("separators");w.length||(w=[":","-"]);let v=Zr(a("content")),x={mergeSelectors:!0,warn:!0,sortLayers:g=>g,...n,blocklist:a("blocklist"),presets:s,envMode:n.envMode||"build",shortcutsLayer:n.shortcutsLayer||"shortcuts",layers:l,theme:Jr(i.map(g=>g.theme)),rules:h,rulesSize:d,rulesDynamic:p,rulesStaticMap:m,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:y,variants:a("variants").map(Nr).sort((g,$)=>(g.order||0)-($.order||0)),shortcuts:rn(a("shortcuts")).reverse(),extractors:c,safelist:a("safelist"),separators:w,details:n.details??n.envMode==="dev",content:v,transformers:Ht(a("transformers"),(g,$)=>g.name===$.name)},b=a("extendTheme");for(let g of b)x.theme=g(x.theme,x)||x.theme;for(let g of i)g?.configResolved?.(x);return x}function Jr(e){return e.map(t=>t?De(t):{}).reduce((t,n)=>nn(t,n),{})}function Qr(e){return e.reduce((t,n)=>{let r={};for(let s in n){let i=n[s];Array.isArray(i)?r[s]=`(${i.join("|")})`:r[s]=i}return{...t,...r}},{})}function Zt(...e){return e.flatMap(es)}function es(e){return Array.isArray(e)?e:e?[e]:[]}var ts="66.6.2",q={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort",body:"$$symbol-body"},ns=class on{constructor(t={},n={}){this.userConfig=t,this.defaults=n,this.version=ts,this.events=Lr(),this.config=void 0,this.cache=new Map,this.blocked=new Set,this.parentOrders=new Map,this.activatedRules=new Set,this.resolveCSSResult=(r,s,i,o)=>{let l=Ur(s).filter(a=>a.length);if(l.length){this.config.details&&o.rules.push(i),o.generator.activatedRules.add(i);let a=i[2];return l.map(c=>{if(M(c))return[a.__index,c,a];let f=o.variantHandlers,h=a;for(let d of c)d[0]===q.variants?typeof d[1]=="function"?f=d[1](f)||f:f=[...j(d[1]),...f]:d[0]===q.parent?f=[{parent:d[1]},...f]:d[0]===q.selector?f=[{selector:d[1]},...f]:d[0]===q.layer?f=[{layer:d[1]},...f]:d[0]===q.sort?h={...h,sort:d[1]}:d[0]===q.noMerge?h={...h,noMerge:d[1]}:d[0]===q.body&&(d[0]=tn);return[a.__index,r,c,h,f]})}}}static async create(t={},n={}){let r=new on(t,n);return r.config=await Xt(r.userConfig,r.defaults),r.events.emit("config",r.config),r}async setConfig(t,n){t&&(n&&(this.defaults=n),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Xt(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,n,r=new Set){let s={original:t,code:t,id:n,extracted:r,envMode:this.config.envMode};for(let i of this.config.extractors){let o=await i.extract?.(s);if(o)if(ct(o)&&ct(r))for(let l of o)r.setCount(l,r.getCount(l)+o.getCount(l));else for(let l of o)r.add(l)}return r}makeContext(t,n){let r={rawSelector:t,currentSelector:n[1],theme:this.config.theme,generator:this,symbols:q,variantHandlers:n[2],constructCSS:(...s)=>this.constructCustomCSS(r,...s),variantMatch:n};return r}async parseToken(t,n){if(this.blocked.has(t))return;let r=`${t}${n?` ${n}`:""}`;if(this.cache.has(r))return this.cache.get(r);let s=this.config.preprocess.reduce((a,c)=>c(a)??a,t);if(this.isBlocked(s)){this.blocked.add(t),this.cache.set(r,null);return}let i=await this.matchVariants(t,s);if(i.every(a=>!a||this.isBlocked(a[1]))){this.blocked.add(t),this.cache.set(r,null);return}let o=async a=>{let c=this.makeContext(t,[n||a[0],a[1],a[2],a[3]]);this.config.details&&(c.variants=[...a[3]]);let f=await this.expandShortcut(c.currentSelector,c);return f?await this.stringifyShortcuts(c.variantMatch,c,f[0],f[1]):(await this.parseUtil(c.variantMatch,c))?.flatMap(h=>this.stringifyUtil(h,c)).filter(We)},l=(await Promise.all(i.map(a=>o(a)))).flat().filter(a=>!!a);if(l?.length)return this.cache.set(r,l),l;this.cache.set(r,null)}async generate(t,n={}){let{id:r,scope:s,preflights:i=!0,safelist:o=!0,minify:l=!1,extendedInfo:a=!1}=n,c=M(t)?await this.applyExtractors(t,r,a?new Qt:new Set):Array.isArray(t)?new Set(t):t;if(o){let S={generator:this,theme:this.config.theme};this.config.safelist.flatMap(C=>typeof C=="function"?C(S):C).forEach(C=>{let E=C.trim();E&&!c.has(E)&&c.add(E)})}let f=l?"":`
|
|
2
2
|
`,h=new Set([Ue]),d=a?new Map:new Set,m=new Map,p={},y=Array.from(c).map(async S=>{if(d.has(S))return;let C=await this.parseToken(S);if(C!=null){d instanceof Map?d.set(S,{data:C,count:ct(c)?c.getCount(S):-1}):d.add(S);for(let E of C){let N=E[3]||"",F=E[4]?.layer;m.has(N)||m.set(N,[]),m.get(N).push(E),F&&h.add(F)}}});await Promise.all(y),await(async()=>{if(!i)return;let S={generator:this,theme:this.config.theme},C=new Set([]);this.config.preflights.forEach(({layer:E=ut})=>{h.add(E),C.add(E)}),p=Object.fromEntries(await Promise.all(Array.from(C).map(async E=>[E,(await Promise.all(this.config.preflights.filter(N=>(N.layer||ut)===E).map(async N=>await N.getCSS(S)))).filter(Boolean).join(f)])))})();let w=S=>this.config.sortLayers(S.sort((C,E)=>(this.config.layers[C]??0)-(this.config.layers[E]??0)||C.localeCompare(E))),v=w(Array.from(h)),x={},b=this.config.outputToCssLayers,g=S=>{let C=S;return typeof b=="object"&&(C=b.cssLayerName?.(S)),C===null?null:C??S},$=(S=Ue)=>{if(x[S])return x[S];let C=Array.from(m).sort((F,k)=>(this.parentOrders.get(F[0])??0)-(this.parentOrders.get(k[0])??0)||F[0]?.localeCompare(k[0]||"")||0).map(([F,k])=>{let A=k.length,_=k.filter(L=>(L[4]?.layer||Ue)===S).sort((L,H)=>L[0]-H[0]||(L[4]?.sort||0)-(H[4]?.sort||0)||L[5]?.currentSelector?.localeCompare(H[5]?.currentSelector??"")||L[1]?.localeCompare(H[1]||"")||L[2]?.localeCompare(H[2]||"")||0).map(([,L,H,,Ne,,lt])=>[[[(L&&ss(L,s))??"",Ne?.sort??0]],H,!!(lt??Ne?.noMerge)]);if(!_.length)return;let O=_.reverse().map(([L,H,Ne],lt)=>{if(!Ne&&this.config.mergeSelectors)for(let se=lt+1;se<A;se++){let Z=_[se];if(Z&&!Z[2]&&(L&&Z[0]||L==null&&Z[0]==null)&&Z[1]===H)return L&&Z[0]&&Z[0].push(...L),null}let Gt=L?ee(L.sort((se,Z)=>se[1]-Z[1]||se[0]?.localeCompare(Z[0]||"")||0).map(se=>se[0]).filter(Boolean)):[];return Gt.length?`${Gt.join(`,${f}`)}{${H}}`:H}).filter(Boolean),W=Array.from(new Set(O)).reverse().join(f);if(!F)return W;let ae=F.split(" $$ ");return`${ae.join("{")}{${f}${W}${f}${"}".repeat(ae.length)}`}).filter(Boolean).join(f);i&&(C=[p[S],C].filter(Boolean).join(f));let E;b&&C&&(E=g(S),E!==null&&(C=`@layer ${E}{${f}${C}${f}}`));let N=l?"":`/* layer: ${S}${E&&E!==S?`, alias: ${E}`:""} */${f}`;return x[S]=C?N+C:""},z=(S=v,C)=>{let E=S.filter(F=>!C?.includes(F)),N=E.map($).filter(Boolean);if(b){let F=E;typeof b=="object"&&b.allLayers&&(F=w(Object.keys(this.config.layers))),F.length>0&&N.unshift(`@layer ${F.map(g).filter(We).join(", ")};`)}return N.join(f)};return{get css(){return z()},layers:v,matched:d,getLayers:z,getLayer:$,setLayer:async(S,C)=>{let E=await C($(S));return x[S]=E,E}}}async matchVariants(t,n){let r={rawSelector:t,theme:this.config.theme,generator:this},s=async i=>{let o=!0,[,,l,a]=i;for(;o;){o=!1;let c=i[1];for(let f of this.config.variants){if(!f.multiPass&&a.has(f))continue;let h=await f.match(c,r);if(h){if(M(h)){if(h===c)continue;h={matcher:h}}if(Array.isArray(h)){if(!h.length)continue;if(h.length===1)h=h[0];else{if(f.multiPass)throw new Error("multiPass can not be used together with array return variants");let d=h.map(m=>{let p=m.matcher??c,y=[m,...l],w=new Set(a);return w.add(f),[i[0],p,y,w]});return(await Promise.all(d.map(m=>s(m)))).flat()}}i[1]=h.matcher??c,l.unshift(h),a.add(f),o=!0;break}}if(!o)break;if(l.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[i]};return await s([t,n||t,[],new Set])}applyVariants(t,n=t[4],r=t[1]){let s=n.slice().sort((a,c)=>(a.order||0)-(c.order||0)).reduceRight((a,c)=>f=>{let h=c.body?.(f.entries)||f.entries,d=Array.isArray(c.parent)?c.parent:[c.parent,void 0],m=c.selector?.(f.selector,h);return(c.handle??os)({...f,entries:h,selector:m||f.selector,parent:d[0]||f.parent,parentOrder:d[1]||f.parentOrder,layer:c.layer||f.layer,sort:c.sort||f.sort},a)},a=>a)({prefix:"",selector:is(r),pseudo:"",entries:t[2]}),{parent:i,parentOrder:o}=s;i!=null&&o!=null&&this.parentOrders.set(i,o);let l={selector:[s.prefix,s.selector,s.pseudo].join(""),entries:s.entries,parent:i,layer:s.layer,sort:s.sort,noMerge:s.noMerge};return this.config.postprocess.reduce((a,c)=>{let f=[];for(let h of a){let d=c(h);Array.isArray(d)?f.push(...d.filter(We)):f.push(d||h)}return f},[l])}constructCustomCSS(t,n,r){let s=Ve(n);return M(s)?s:this.applyVariants([0,r||t.rawSelector,s,void 0,t.variantHandlers]).map(({selector:i,entries:o,parent:l})=>{let a=`${i}{${we(o)}}`;return l?`${l}{${a}}`:a}).join("")}async parseUtil(t,n,r=!1,s){let i=M(t)?await this.matchVariants(t):[t],o=async([a,c,f])=>{this.config.details&&(n.rules=n.rules??[]);let h={...n,variantHandlers:f},d=this.config.rulesStaticMap[c];if(d&&d[1]&&(r||!d[2]?.internal))return this.resolveCSSResult(a,d[1],d,h);for(let m of this.config.rulesDynamic){let[p,y,w]=m;if(w?.internal&&!r)continue;let v=c;if(w?.prefix){let $=j(w.prefix);if(s){let z=j(s);if(!$.some(G=>z.includes(G)))continue}else{let z=$.find(G=>c.startsWith(G));if(z==null)continue;v=c.slice(z.length)}}let x=v.match(p);if(!x)continue;let b=await y(x,h);if(!b)continue;if(typeof b!="string")if(Symbol.asyncIterator in b){let $=[];for await(let z of b)z&&$.push(z);b=$}else Symbol.iterator in b&&!Array.isArray(b)&&(b=Array.from(b).filter(We));let g=this.resolveCSSResult(a,b,m,h);if(g)return g}},l=(await Promise.all(i.map(a=>o(a)))).flat().filter(a=>!!a);if(l.length)return l}stringifyUtil(t,n){if(!t)return;if(qt(t))return[[t[0],void 0,t[1],void 0,t[2],this.config.details?n:void 0,void 0]];let r=this.applyVariants(t),s=[];for(let i of r){let{selector:o,entries:l,parent:a,layer:c,sort:f,noMerge:h}=i,d=we(l);if(!d)continue;let{layer:m,sort:p,...y}=t[3]??{},w={...y,layer:c??m,sort:f??p};s.push([t[0],o,d,a,w,this.config.details?n:void 0,h])}return s}async expandShortcut(t,n,r=5){if(r===0)return;let s=this.config.details?c=>{n.shortcuts=n.shortcuts??[],n.shortcuts.push(c)}:Wr,i,o,l,a;for(let c of this.config.shortcuts){let f=t;if(c[2]?.prefix){let h=j(c[2].prefix).find(d=>t.startsWith(d));if(h==null)continue;f=t.slice(h.length)}if(Gr(c)){if(c[0]===f){i=i||c[2],o=c[1],s(c);break}}else{let h=f.match(c[0]);if(h&&(o=c[1](h,n)),o){i=i||c[2],s(c);break}}}if(o&&(l=ee(j(o).filter(M).map(c=>Kr(c.trim()).split(/\s+/g)).flat()),a=j(o).filter(c=>!M(c)).map(c=>({handles:[],value:c}))),!o){let c=M(t)?await this.matchVariants(t):[t];for(let f of c){let[h,d,m]=f;if(h!==d){let p=await this.expandShortcut(d,n,r-1);p&&(l=p[0].filter(M).map(y=>h.replace(d,y)),a=p[0].filter(y=>!M(y)).map(y=>({handles:[...y.handles,...m],value:y.value})))}}}if(!(!l?.length&&!a?.length))return[[await Promise.all(j(l).map(async c=>(await this.expandShortcut(c,n,r-1))?.[0]||[c])),a].flat(2).filter(c=>!!c),i]}async stringifyShortcuts(t,n,r,s={layer:this.config.shortcutsLayer}){let i=new Ir,o=(await Promise.all(ee(r).map(async f=>{let h=M(f)?await this.parseUtil(f,n,!0,s.prefix):[[Number.POSITIVE_INFINITY,"{inline}",Ve(f.value),void 0,f.handles]];return!h&&this.config.warn&&Yr(`unmatched utility "${f}" in shortcut "${t[1]}"`),h||[]}))).flat(1).filter(Boolean).sort((f,h)=>f[0]-h[0]),[l,,a]=t,c=[];for(let f of o){if(qt(f)){c.push([f[0],void 0,f[1],void 0,f[2],n,void 0]);continue}let h=Object.fromEntries(f[2])[q.shortcutsNoMerge],d=[...f[4],...h?[]:a];for(let{selector:m,entries:p,parent:y,sort:w,noMerge:v,layer:x}of this.applyVariants(f,d,l))i.getFallback(x??s.layer,new Br).getFallback(m,y,[[],f[0]])[0].push([p,!!(v??f[3]?.noMerge),w??0])}return c.concat(i.flatMap((f,h)=>f.map(([d,m],p,y)=>{let w=(v,x,b)=>{let g=Math.max(...b.map(z=>z[1])),$=b.map(z=>z[0]);return(v?[$.flat(1)]:$).map(z=>{let G=we(z);if(G)return[m,p,G,y,{...s,noMerge:x,sort:g,layer:h},n,void 0]})};return[[d.filter(([,v])=>v).map(([v,,x])=>[v,x]),!0],[d.filter(([,v])=>!v).map(([v,,x])=>[v,x]),!1]].map(([v,x])=>[...w(!1,x,v.filter(([b])=>b.some(g=>g[0]===q.shortcutsNoMerge))),...w(!0,x,v.filter(([b])=>b.every(g=>g[0]!==q.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(t){return!t||this.config.blocklist.map(n=>Array.isArray(n)?n[0]:n).some(n=>typeof n=="function"?n(t):M(n)?n===t:n.test(t))}getBlocked(t){let n=this.config.blocklist.find(r=>{let s=Array.isArray(r)?r[0]:r;return typeof s=="function"?s(t):M(s)?s===t:s.test(t)});return n?Array.isArray(n)?n:[n,void 0]:void 0}};async function an(e,t){return await ns.create(e,t)}var ln=/\s\$\$\s+/g;function rs(e){return ln.test(e)}function ss(e,t){return rs(e)?e.replace(ln,t?` ${t} `:" "):t?`${t} ${e}`:e}var Jt=/^\[(.+?)(~?=)"(.*)"\]$/;function is(e){return Jt.test(e)?e.replace(Jt,(t,n,r,s)=>`[${ft(n)}${r}"${ft(s)}"]`):`.${ft(e)}`}function os(e,t){return t(e)}var un=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function ls(e={}){let t=e.prefix??"un-",n=e.prefixedOnly??!1,r=e.trueToNonValued??!1,s;return{name:"attributify",match(i,{generator:o}){let l=en(i);if(!l)return;let a=l[1];if(a.startsWith(t))a=a.slice(t.length);else if(n)return;let c=l[2],[,f="",h=c]=c.match(un)||[];if(h==="~"||r&&h==="true"||!h)return`${f}${a}`;if(s==null){let d=o?.config?.separators?.join("|");d?s=new RegExp(`^(.*\\](?:${d}))(\\[[^\\]]+?\\])$`):s=!1}if(s){let[,d,m]=c.match(s)||[];if(m)return`${d}${f}${a}-${m}`}if(f&&h.match(/^[\d.]+$/)){let d=f.split(/([^:]*:)/g).filter(Boolean),m=d.pop()+h,p=d.join("");return[{matcher:`${f}${a}-${h}`},{matcher:`${p}${a}-${m}`}]}return`${f}${a}-${h}`}}}var cs=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,fs=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,cn=/[\s'"`;>]+/;function us(e){return{name:"attributify",extract:({content:t,cursor:n})=>{let r=t.matchAll(cs),s,i=0;for(let x of r){let[,b,g]=x,$=x.index+b.length;if(n>$&&n<=$+g.length){i=$,s=g;break}}if(!s)return null;let o=s.matchAll(fs),l=0,a,c;for(let x of o){let[b,g,$]=x,z=i+x.index;if(n>z&&n<=z+b.length){l=z,a=g,c=$?.slice(1);break}}if(!a||a==="class"||a==="className"||a===":class")return null;let f=!!e?.prefix&&a.startsWith(e.prefix);if(e?.prefixedOnly&&!f)return null;let h=f?a.slice(e.prefix.length):a;if(c===void 0)return{extracted:h,resolveReplacement(x){let b=f?e.prefix.length:0;return{start:l+b,end:l+a.length,replacement:x}}};let d=l+a.length+2,m=cn.exec(c),p=0,y;for(;m;){let[x]=m;if(n>d+p&&n<=d+p+m.index){y=c.slice(p,p+m.index);break}p+=m.index+x.length,m=cn.exec(c.slice(p))}y===void 0&&(y=c.slice(p));let[,w="",v]=y.match(un)||[];return{extracted:`${w}${h}-${v}`,transformSuggestions(x){return x.filter(b=>b.startsWith(`${w}${h}-`)).map(b=>w+b.slice(w.length+h.length+1))},resolveReplacement(x){return{start:p+d,end:p+d+y.length,replacement:w+x.slice(w.length+h.length+1)}}}}}}var hs=["v-bind:",":"],fn=/[\s'"`;]+/g,dt=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,ds=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,hn=["placeholder","fill","opacity","stroke-opacity"];function ps(e){let t=e?.ignoreAttributes??hn,n=e?.nonValuedAttribute??!0,r=e?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:s}){return Array.from(s.matchAll(dt)).flatMap(i=>Array.from((i[1]||"").matchAll(ds))).flatMap(([,i,...o])=>{let l=o.filter(Boolean).join("");if(t.includes(i))return[];for(let a of hs)if(i.startsWith(a)){i=i.slice(a.length);break}if(!l){if(ve(i)&&n!==!1){let a=[`[${i}=""]`];return r&&a.push(`[${i}="true"]`),a}return[]}return["class","className"].includes(i)?l.split(fn).filter(ve):dt.test(l)?(dt.lastIndex=0,this.extract({code:l})):e?.prefixedOnly&&e.prefix&&!i.startsWith(e.prefix)?[]:l.split(fn).filter(a=>!!a&&a!==":").map(a=>`[${i}~="${a}"]`)})}}}var ms=(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??hn,{name:"@unocss/preset-attributify",enforce:"post",variants:[ls(e)],extractors:[ps(e)],options:e,autocomplete:{extractors:[us(e)]},extractorDefault:e.strict?!1:void 0}),dn=ms;var pt=Object.defineProperty,gs=Object.getOwnPropertyDescriptor,bs=Object.getOwnPropertyNames,xs=Object.prototype.hasOwnProperty,Ge=(e,t)=>{let n={};for(var r in e)pt(n,r,{get:e[r],enumerable:!0});return t&&pt(n,Symbol.toStringTag,{value:"Module"}),n},pn=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var s=bs(t),i=0,o=s.length,l;i<o;i++)l=s[i],!xs.call(e,l)&&l!==n&&pt(e,l,{get:(a=>t[a]).bind(null,l),enumerable:!(r=gs(t,l))||r.enumerable});return e},mt=(e,t,n)=>(pn(e,t,"default"),n&&pn(n,t,"default"));var zt={};Rr(zt,{PseudoClassFunctions:()=>zn,PseudoClassFunctionsStr:()=>ie,PseudoClasses:()=>ce,PseudoClassesAndElementsColonStr:()=>$t,PseudoClassesAndElementsStr:()=>yt,PseudoClassesColon:()=>fe,PseudoClassesColonKeys:()=>St,PseudoClassesColonStr:()=>Xe,PseudoClassesKeys:()=>kt,PseudoClassesMulti:()=>Ct,PseudoClassesMultiStr:()=>xt,PseudoClassesStr:()=>Ye,alphaPlaceholders:()=>wt,alphaPlaceholdersRE:()=>Cn,calcMaxWidthBySize:()=>Bs,colorOpacityToString:()=>xe,colorToString:()=>D,createPartClasses:()=>Rt,createPseudoClassFunctions:()=>At,createPseudoClassesAndElements:()=>Et,createTaggedPseudoClassMatcher:()=>Pn,createTaggedPseudoClasses:()=>jt,createValueHandler:()=>vt,cssColorFunctions:()=>Ze,excludedPseudo:()=>_n,getBracket:()=>wn,getStringComponent:()=>le,getStringComponents:()=>be,hasIconFn:()=>Us,hasThemeFn:()=>Ns,hex2rgba:()=>_s,hueInterpolationMethods:()=>Sn,iconFnRE:()=>Is,isInterpolatedMethod:()=>zs,parseCssColor:()=>oe,polarColorSpace:()=>kn,rectangularColorSpace:()=>vn,themeFnRE:()=>jn,transformThemeFn:()=>Ws,transformThemeString:()=>Rn,variantGetBracket:()=>On,variantGetParameter:()=>Mn,variantMatcher:()=>Vs,variantParentMatcher:()=>Gs});var ys=44,$s=59,mn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xn=new Uint8Array(64),ws=new Uint8Array(128);for(let e=0;e<mn.length;e++){let t=mn.charCodeAt(e);xn[e]=t,ws[t]=e}function ke(e,t,n){let r=t-n;r=r<0?-r<<1|1:r<<1;do{let s=r&31;r>>>=5,r>0&&(s|=32),e.write(xn[s])}while(r>0);return t}var gn=1024*16,bn=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}},vs=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(gn)}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===gn&&(this.out+=bn.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:n}=this;return n>0?t+bn.decode(e.subarray(0,n)):t}};function yn(e){let t=new vs,n=0,r=0,s=0,i=0;for(let o=0;o<e.length;o++){let l=e[o];if(o>0&&t.write($s),l.length===0)continue;let a=0;for(let c=0;c<l.length;c++){let f=l[c];c>0&&t.write(ys),a=ke(t,f[0],a),f.length!==1&&(n=ke(t,f[1],n),r=ke(t,f[2],r),s=ke(t,f[3],s),f.length!==4&&(i=ke(t,f[4],i)))}}return t.flush()}var He=class e{constructor(t){this.bits=t instanceof e?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}},qe=class e{constructor(t,n,r){this.start=t,this.end=n,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let n=this;for(;n;)t(n),n=n.next}eachPrevious(t){let n=this;for(;n;)t(n),n=n.previous}edit(t,n,r){return this.content=t,r||(this.intro="",this.outro=""),this.storeName=n,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(t){let n=t-this.start,r=this.original.slice(0,n),s=this.original.slice(n);this.original=r;let i=new e(t,this.end,s);return i.outro=this.outro,this.outro="",this.end=t,this.edited?(i.edit("",!1),this.content=""):this.content=r,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let n=this.content.replace(t,"");if(n.length)return n!==this.content&&(this.split(this.start+n.length).edit("",void 0,!0),this.edited&&this.edit(n,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let n=this.content.replace(t,"");if(n.length){if(n!==this.content){let r=this.split(this.end-n.length);this.edited&&r.edit(n,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}};function ks(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var Ss=ks(),gt=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=yn(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList),typeof t.debugId<"u"&&(this.debugId=t.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Ss(this.toString())}};function Cs(e){let t=e.split(`
|
|
3
3
|
`),n=t.filter(i=>/^\t+/.test(i)),r=t.filter(i=>/^ {2,}/.test(i));if(n.length===0&&r.length===0)return null;if(n.length>=r.length)return" ";let s=r.reduce((i,o)=>{let l=/^ +/.exec(o)[0].length;return Math.min(l,i)},1/0);return new Array(s+1).join(" ")}function Es(e,t){let n=e.split(/[/\\]/),r=t.split(/[/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length){let s=n.length;for(;s--;)n[s]=".."}return n.concat(r).join("/")}var As=Object.prototype.toString;function js(e){return As.call(e)==="[object Object]"}function $n(e){let t=e.split(`
|
|
4
4
|
`),n=[];for(let r=0,s=0;r<t.length;r++)n.push(s),s+=t[r].length+1;return function(s){let i=0,o=n.length;for(;i<o;){let c=i+o>>1;s<n[c]?o=c:i=c+1}let l=i-1,a=s-n[l];return{line:l,column:a}}}var Rs=/\w/,bt=class{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(t,n,r,s){if(n.length){let i=n.length-1,o=n.indexOf(`
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
`);if(n.length>1){for(let r=0;r<n.length-1;r++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=n[n.length-1].length}},Se=`
|
|
9
9
|
`,ge={insertLeft:!1,insertRight:!1,storeName:!1},Ke=class e{constructor(t,n={}){let r=new qe(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:r},lastChunk:{writable:!0,value:r},lastSearchedChunk:{writable:!0,value:r},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:n.filename},indentExclusionRanges:{writable:!0,value:n.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new He},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:n.ignoreList},offset:{writable:!0,value:n.offset||0}}),this.byStart[0]=r,this.byEnd[t.length]=r}addSourcemapLocation(t){this.sourcemapLocations.add(t)}append(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.outro+=t,this}appendLeft(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byEnd[t];return r?r.appendLeft(n):this.intro+=n,this}appendRight(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byStart[t];return r?r.appendRight(n):this.outro+=n,this}clone(){let t=new e(this.original,{filename:this.filename,offset:this.offset}),n=this.firstChunk,r=t.firstChunk=t.lastSearchedChunk=n.clone();for(;n;){t.byStart[r.start]=r,t.byEnd[r.end]=r;let s=n.next,i=s&&s.clone();i&&(r.next=i,i.previous=r,r=i),n=s}return t.lastChunk=r,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new He(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(t){t=t||{};let n=0,r=Object.keys(this.storedNames),s=new bt(t.hires),i=$n(this.original);return this.intro&&s.advance(this.intro),this.firstChunk.eachNext(o=>{let l=i(o.start);o.intro.length&&s.advance(o.intro),o.edited?s.addEdit(n,o.content,l,o.storeName?r.indexOf(o.original):-1):s.addUneditedChunk(n,o,this.original,l,this.sourcemapLocations),o.outro.length&&s.advance(o.outro)}),this.outro&&s.advance(this.outro),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:[t.source?Es(t.file||"",t.source):t.file||""],sourcesContent:t.includeContent?[this.original]:void 0,names:r,mappings:s.raw,x_google_ignoreList:this.ignoreList?[n]:void 0}}generateMap(t){return new gt(this.generateDecodedMap(t))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=Cs(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(t,n){let r=/^[^\r\n]/gm;if(js(t)&&(n=t,t=void 0),t===void 0&&(this._ensureindentStr(),t=this.indentStr||" "),t==="")return this;n=n||{};let s={};n.exclude&&(typeof n.exclude[0]=="number"?[n.exclude]:n.exclude).forEach(f=>{for(let h=f[0];h<f[1];h+=1)s[h]=!0});let i=n.indentStart!==!1,o=c=>i?`${t}${c}`:(i=!0,c);this.intro=this.intro.replace(r,o);let l=0,a=this.firstChunk;for(;a;){let c=a.end;if(a.edited)s[l]||(a.content=a.content.replace(r,o),a.content.length&&(i=a.content[a.content.length-1]===`
|
|
10
10
|
`));else for(l=a.start;l<c;){if(!s[l]){let f=this.original[l];f===`
|
|
11
|
-
`?i=!0:f!=="\r"&&i&&(i=!1,l===a.start||(this._splitChunk(a,l),a=a.next),a.prependRight(t))}l+=1}l=a.end,a=a.next}return this.outro=this.outro.replace(r,o),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,n){return ge.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),ge.insertLeft=!0),this.appendLeft(t,n)}insertRight(t,n){return ge.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),ge.insertRight=!0),this.prependRight(t,n)}move(t,n,r){if(t=t+this.offset,n=n+this.offset,r=r+this.offset,r>=t&&r<=n)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(n),this._split(r);let s=this.byStart[t],i=this.byEnd[n],o=s.previous,l=i.next,a=this.byStart[r];if(!a&&i===this.lastChunk)return this;let c=a?a.previous:this.lastChunk;return o&&(o.next=l),l&&(l.previous=o),c&&(c.next=s),a&&(a.previous=i),s.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=s.previous,this.lastChunk.next=null),s.previous=c,i.next=a||null,c||(this.firstChunk=s),a||(this.lastChunk=i),this}overwrite(t,n,r,s){return s=s||{},this.update(t,n,r,{...s,overwrite:!s.contentOnly})}update(t,n,r,s){if(t=t+this.offset,n=n+this.offset,typeof r!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length}if(n>this.original.length)throw new Error("end is out of bounds");if(t===n)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(t),this._split(n),s===!0&&(ge.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),ge.storeName=!0),s={storeName:!0});let i=s!==void 0?s.storeName:!1,o=s!==void 0?s.overwrite:!1;if(i){let c=this.original.slice(t,n);Object.defineProperty(this.storedNames,c,{writable:!0,value:!0,enumerable:!0})}let l=this.byStart[t],a=this.byEnd[n];if(l){let c=l;for(;c!==a;){if(c.next!==this.byStart[c.end])throw new Error("Cannot overwrite across a split point");c=c.next,c.edit("",!1)}l.edit(r,i,!o)}else{let c=new qe(t,n,"").edit(r,i);a.next=c,c.previous=a}return this}prepend(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this}prependLeft(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byEnd[t];return r?r.prependLeft(n):this.intro=n+this.intro,this}prependRight(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byStart[t];return r?r.prependRight(n):this.outro=n+this.outro,this}remove(t,n){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length}if(t===n)return this;if(t<0||n>this.original.length)throw new Error("Character is out of bounds");if(t>n)throw new Error("end must be greater than start");this._split(t),this._split(n);let r=this.byStart[t];for(;r;)r.intro="",r.outro="",r.edit(""),r=n>r.end?this.byStart[r.end]:null;return this}reset(t,n){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length}if(t===n)return this;if(t<0||n>this.original.length)throw new Error("Character is out of bounds");if(t>n)throw new Error("end must be greater than start");this._split(t),this._split(n);let r=this.byStart[t];for(;r;)r.reset(),r=n>r.end?this.byStart[r.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let t=this.outro.lastIndexOf(Se);if(t!==-1)return this.outro.substr(t+1);let n=this.outro,r=this.lastChunk;do{if(r.outro.length>0){if(t=r.outro.lastIndexOf(Se),t!==-1)return r.outro.substr(t+1)+n;n=r.outro+n}if(r.content.length>0){if(t=r.content.lastIndexOf(Se),t!==-1)return r.content.substr(t+1)+n;n=r.content+n}if(r.intro.length>0){if(t=r.intro.lastIndexOf(Se),t!==-1)return r.intro.substr(t+1)+n;n=r.intro+n}}while(r=r.previous);return t=this.intro.lastIndexOf(Se),t!==-1?this.intro.substr(t+1)+n:this.intro+n}slice(t=0,n=this.original.length-this.offset){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length}let r="",s=this.firstChunk;for(;s&&(s.start>t||s.end<=t);){if(s.start<n&&s.end>=n)return r;s=s.next}if(s&&s.edited&&s.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);let i=s;for(;s;){s.intro&&(i!==s||s.start===t)&&(r+=s.intro);let o=s.start<n&&s.end>=n;if(o&&s.edited&&s.end!==n)throw new Error(`Cannot use replaced character ${n} as slice end anchor.`);let l=i===s?t-s.start:0,a=o?s.content.length+n-s.end:s.content.length;if(r+=s.content.slice(l,a),s.outro&&(!o||s.end===n)&&(r+=s.outro),o)break;s=s.next}return r}snip(t,n){let r=this.clone();return r.remove(0,t),r.remove(n,r.original.length),r}_split(t){if(this.byStart[t]||this.byEnd[t])return;let n=this.lastSearchedChunk,r=n,s=t>n.end;for(;n;){if(n.contains(t))return this._splitChunk(n,t);if(n=s?this.byStart[n.end]:this.byEnd[n.start],n===r)return;r=n}}_splitChunk(t,n){if(t.edited&&t.content.length){let s=$n(this.original)(n);throw new Error(`Cannot split a chunk that has already been edited (${s.line}:${s.column} \u2013 "${t.original}")`)}let r=t.split(n);return this.byEnd[n]=t,this.byStart[n]=r,this.byEnd[r.end]=r,t===this.lastChunk&&(this.lastChunk=r),this.lastSearchedChunk=t,!0}toString(){let t=this.intro,n=this.firstChunk;for(;n;)t+=n.toString(),n=n.next;return t+this.outro}isEmpty(){let t=this.firstChunk;do if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return!1;while(t=t.next);return!0}length(){let t=this.firstChunk,n=0;do n+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return n}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){let n=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(n,""),this.outro.length)return!0;let r=this.lastChunk;do{let s=r.end,i=r.trimEnd(n);if(r.end!==s&&(this.lastChunk===r&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return!0;r=r.previous}while(r);return!1}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){let n=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(n,""),this.intro.length)return!0;let r=this.firstChunk;do{let s=r.end,i=r.trimStart(n);if(r.end!==s&&(r===this.lastChunk&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return!0;r=r.next}while(r);return!1}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(t,n){function r(i,o){return typeof n=="string"?n.replace(/\$(\$|&|\d+)/g,(l,a)=>a==="$"?"$":a==="&"?i[0]:+a<i.length?i[+a]:`$${a}`):n(...i,i.index,o,i.groups)}function s(i,o){let l,a=[];for(;l=i.exec(o);)a.push(l);return a}if(t.global)s(t,this.original).forEach(o=>{if(o.index!=null){let l=r(o,this.original);l!==o[0]&&this.overwrite(o.index,o.index+o[0].length,l)}});else{let i=this.original.match(t);if(i&&i.index!=null){let o=r(i,this.original);o!==i[0]&&this.overwrite(i.index,i.index+i[0].length,o)}}return this}_replaceString(t,n){let{original:r}=this,s=r.indexOf(t);return s!==-1&&(typeof n=="function"&&(n=n(t,s,r)),t!==n&&this.overwrite(s,s+t.length,n)),this}replace(t,n){return typeof t=="string"?this._replaceString(t,n):this._replaceRegexp(t,n)}_replaceAllString(t,n){let{original:r}=this,s=t.length;for(let i=r.indexOf(t);i!==-1;i=r.indexOf(t,i+s)){let o=r.slice(i,i+s),l=n;typeof n=="function"&&(l=n(o,i,r)),o!==l&&this.overwrite(i,i+s,l)}return this}replaceAll(t,n){if(typeof t=="string")return this._replaceAllString(t,n);if(!t.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(t,n)}};function wn(e,t,n){if(e==="")return;let r=e.length,s=0,i=!1,o=0;for(let l=0;l<r;l++)switch(e[l]){case t:i||(i=!0,o=l),s++;break;case n:if(--s,s<0)return;if(s===0)return[e.slice(o,l+1),e.slice(l+1),e.slice(0,o)];break}}function le(e,t,n,r){if(e===""||(M(r)&&(r=[r]),r.length===0))return;let s=e.length,i=0;for(let o=0;o<s;o++)switch(e[o]){case t:i++;break;case n:if(--i<0)return;break;default:for(let l of r){let a=l.length;if(a&&l===e.slice(o,o+a)&&i===0)return o===0||o===s-a?void 0:[e.slice(0,o),e.slice(o+a)]}}return[e,""]}function be(e,t,n,r="(",s=")"){n=n??10;let i=[],o=0;for(;e!=="";){if(++o>n)return;let l=le(e,r,s,t);if(!l)return;let[a,c]=l;i.push(a),e=c}if(i.length>0)return i}var Ze=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],vn=["srgb","srgb-linear","display-p3","a98-rgb","prophoto-rgb","rec2020","lab","oklab","xyz","xyz-d50","xyz-d65"],kn=["hsl","hwb","lch","oklch"],Sn=["shorter","longer","increasing","decreasing"],wt=["%alpha","<alpha-value>"],Cn=new RegExp(wt.map(e=>K(e)).join("|"),"g");function zs(e){return e?vn.some(t=>e.includes(t))||kn.some(t=>e.includes(t))||Sn.some(t=>e.includes(t)):!1}function _s(e=""){let t=En(e);if(t!=null){let{components:n,alpha:r}=t;return r==null?n:[...n,r]}}function oe(e=""){let t=Ps(e);if(t==null||t===!1)return;let{type:n,components:r,alpha:s}=t,i=n.toLowerCase();if(r.length!==0&&!(Ze.includes(i)&&![1,3].includes(r.length)))return{type:i,components:r.map(o=>typeof o=="string"?o.trim():o),alpha:typeof s=="string"?s.trim():s}}function xe(e){let t=e.alpha??1;return typeof t=="string"&&wt.includes(t)?1:t}function D(e,t){if(typeof e=="string")return e.replace(Cn,`${t??1}`);let{components:n}=e,{alpha:r,type:s}=e;return r=t??r,s=s.toLowerCase(),["hsla","rgba"].includes(s)?`${s}(${n.join(", ")}${r==null?"":`, ${r}`})`:(r=r==null?"":` / ${r}`,Ze.includes(s)?`${s}(${n.join(" ")}${r})`:`color(${s} ${n.join(" ")}${r})`)}function Ps(e){if(!e)return;let t=En(e);if(t!=null||(t=Os(e),t!=null)||(t=Ms(e),t!=null)||(t=Ts(e),t!=null)||(t=Fs(e),t!=null))return t}function En(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:{let n=Array.from(t,r=>Number.parseInt(r,16)).map(r=>r<<4|r);return{type:"rgb",components:n.slice(0,3),alpha:t.length===3?void 0:Math.round(n[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 Os(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Ms(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,n,r]=t,s=be(r,",",5);if(s){if([3,4].includes(s.length))return{type:n,components:s.slice(0,3),alpha:s[3]};if(s.length!==1)return!1}}var Ls=new RegExp(`^(${Ze.join("|")})\\((.+)\\)$`,"i");function Ts(e){let t=e.match(Ls);if(!t)return;let[,n,r]=t,s=An(`${n} ${r}`);if(s){let{alpha:i,components:[o,...l]}=s;return{type:o,components:l,alpha:i}}}function Fs(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let n=An(t[1]);if(n){let{alpha:r,components:[s,...i]}=n;return{type:s,components:i,alpha:r}}}function An(e){let t=be(e," ");if(!t)return;let n=t.length;if(t[n-2]==="/")return{components:t.slice(0,n-2),alpha:t[n-1]};if(t[n-2]!=null&&(t[n-2].endsWith("/")||t[n-1].startsWith("/"))){let i=t.splice(n-2);t.push(i.join(" ")),--n}let r=be(t[n-1],"/",2);if(!r)return;if(r.length===1||r[r.length-1]==="")return{components:t};let s=r.pop();return t[n-1]=r.join("/"),{components:t,alpha:s}}var jn=/theme\(\s*(['"])?(.*?)\1?\s*\)/g;function Ns(e){return e.includes("theme(")&&e.includes(")")}function Ws(e,t,n=!0){let r=Array.from(e.toString().matchAll(jn));if(!r.length)return e;let s=new Ke(e);for(let i of r){let o=i[2];if(!o)throw new Error("theme() expect exact one argument, but got 0");let l=Rn(o,t,n);l&&s.overwrite(i.index,i.index+i[0].length,l)}return s.toString()}function Rn(e,t,n=!0){let[r,s]=e.split("/"),i=r.trim().split(".").reduce((o,l)=>o?.[l],t);if(typeof i=="object"&&(i=i.DEFAULT),typeof i=="string"){if(s){let o=oe(i);o&&(i=D(o,s))}return i}else if(n)throw new Error(`theme of "${e}" did not found`)}function Bs(e){var t;let n=((t=e.match(/^-?\d+\.?\d*/))===null||t===void 0?void 0:t[0])||"",r=e.slice(n.length);if(r==="px"){let s=Number.parseFloat(n)-.1;return Number.isNaN(s)?e:`${s}${r}`}return`calc(${e} - 0.1px)`}function vt(e){let t=function(r,s){var i;let o=((i=this.__options)===null||i===void 0?void 0:i.sequence)||[];this.__options.sequence=[];for(let l of o){let a=e[l](r,s);if(a!=null)return a}};function n(r,s){return r.__options||(r.__options={sequence:[]}),r.__options.sequence.push(s),r}for(let r of Object.keys(e))Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get(){return n(this,r)}});return t}var Is=/icon\(\s*(['"])?(.*?)\1?\s*\)/g;function Us(e){return e.includes("icon(")&&e.includes(")")}var Ce="__pseudo_placeholder__",ce=Object.fromEntries([["first-letter","::first-letter"],["first-line","::first-line"],"any-link","link","visited","target",["open","[open]"],"default","checked","indeterminate","placeholder-shown","autofill","optional","required","valid","invalid","user-valid","user-invalid","in-range","out-of-range","read-only","read-write","empty","focus-within","hover","focus","focus-visible","active","enabled","disabled","popover-open","root","empty",["even-of-type",":nth-of-type(even)"],["even",":nth-child(even)"],["odd-of-type",":nth-of-type(odd)"],["odd",":nth-child(odd)"],["nth",`:nth-child(${Ce})`],["nth-last",`:nth-last-child(${Ce})`],["nth-last-of-type",`:nth-last-of-type(${Ce})`],["nth-of-type",`:nth-of-type(${Ce})`],"first-of-type",["first",":first-child"],"last-of-type",["last",":last-child"],"only-child","only-of-type",["backdrop-element","::backdrop"],["placeholder","::placeholder"],["before","::before"],["after","::after"],["file","::file-selector-button"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),kt=Object.keys(ce),fe=Object.fromEntries([["backdrop","::backdrop"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),St=Object.keys(fe),zn=["not","is","where","has"],Ct=Object.fromEntries([["selection",["::selection"," *::selection"]],["marker",["::marker"," *::marker"]]]),Ye=Object.entries(ce).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),Xe=Object.entries(fe).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),ie=zn.join("|"),xt=Object.keys(Ct).sort((e,t)=>t.length-e.length).join("|"),_n=["::-webkit-resizer","::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-corner","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::file-selector-button"],yt=Object.entries(ce).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),$t=Object.entries(fe).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|");function Pn(e,t,n,r){let{h:s,variantGetBracket:i}=r,o=new RegExp(`^(${K(t)}:)(\\S+)${K(n)}\\1`),l,a,c,f,h=p=>{var y;let w=i(`${e}-`,p,[]);if(!w)return;let[v,x]=w,b=s.bracket(v);if(b==null)return;let g=((y=x.split(l,1))===null||y===void 0?void 0:y[0])??"",$=`${t}${Y(g)}`;return[g,p.slice(p.length-(x.length-g.length-1)),b.includes("&")?b.replace(/&/g,$):`${$}${b}`]},d=p=>{let y=p.match(a)||p.match(c);if(!y)return;let[w,v,x]=y,b=y[3]??"",g=ce[x]||fe[x]||`:${x}`;return v&&(g=`:${v}(${g})`),[b,p.slice(w.length),`${t}${Y(b)}${g}`,x]},m=p=>{let y=p.match(f);if(!y)return;let[w,v,x]=y,b=y[3]??"",g=`:${v}(${x})`;return[b,p.slice(w.length),`${t}${Y(b)}${g}`]};return{name:`pseudo:${e}`,match(p,y){if(l&&a&&c||(l=new RegExp(`(?:${y.generator.config.separators.join("|")})`),a=new RegExp(`^${e}-(?:(?:(${ie})-)?(${Ye}))(?:(/[\\w-]+))?(?:${y.generator.config.separators.join("|")})`),c=new RegExp(`^${e}-(?:(?:(${ie})-)?(${Xe}))(?:(/[\\w-]+))?(?:${y.generator.config.separators.filter($=>$!=="-").join("|")})`),f=new RegExp(`^${e}-(?:(${ie})-)?\\[(.+)\\](?:(/[\\w-]+))?(?:${y.generator.config.separators.filter($=>$!=="-").join("|")})`)),!p.startsWith(e))return;let w=h(p)||d(p)||m(p);if(!w)return;let[v,x,b,g=""]=w;return{matcher:x,handle:($,z)=>z({...$,prefix:`${b}${n}${$.prefix}`.replace(o,"$1$2:"),sort:kt.indexOf(g)??St.indexOf(g)})}},multiPass:!0}}function Et(e){let{h:t}=e,n,r,s;return[{name:"pseudo",match(i,o){n&&r||(n=new RegExp(`^(${yt})(?:-(\\d+|\\[(\\w|[+-.])+\\]))?(?:${o.generator.config.separators.join("|")})`),r=new RegExp(`^(${$t})(?:${o.generator.config.separators.filter(a=>a!=="-").join("|")})`));let l=i.match(n)||i.match(r);if(l){let a=ce[l[1]]||fe[l[1]]||`:${l[1]}`;if(l[2]){let f;l[2].startsWith("[")&&l[2].endsWith("]")?f=t.bracket(l[2]):f=l[2],f&&(a=a.replace(Ce,f))}let c=kt.indexOf(l[1]);return c===-1&&(c=St.indexOf(l[1])),c===-1&&(c=void 0),{matcher:i.slice(l[0].length),handle:(f,h)=>{let d=a.includes("::")&&!_n.includes(a)?{pseudo:`${f.pseudo}${a}`}:{selector:`${f.selector}${a}`};return h({...f,...d,sort:c,noMerge:!0})}}}},multiPass:!0,autocomplete:`(${yt}|${$t}):`},{name:"pseudo:multi",match(i,o){s||(s=new RegExp(`^(${xt})(?:${o.generator.config.separators.join("|")})`));let l=i.match(s);if(l)return Ct[l[1]].map(a=>({matcher:i.slice(l[0].length),handle:(c,f)=>f({...c,pseudo:`${c.pseudo}${a}`})}))},multiPass:!1,autocomplete:`(${xt}):`}]}function At(e){let{getBracket:t,h:n}=e,r,s,i;return{match(o,l){r&&s||(r=new RegExp(`^(${ie})-(${Ye})(?:${l.generator.config.separators.join("|")})`),s=new RegExp(`^(${ie})-(${Xe})(?:${l.generator.config.separators.filter(c=>c!=="-").join("|")})`),i=new RegExp(`^(${ie})-(\\[.+\\])(?:${l.generator.config.separators.filter(c=>c!=="-").join("|")})`));let a=o.match(r)||o.match(s)||o.match(i);if(a){let c=a[1],f=t(a[2],"[","]")?n.bracket(a[2]):ce[a[2]]||fe[a[2]]||`:${a[2]}`;return{matcher:o.slice(a[0].length),selector:h=>`${h}:${c}(${f})`}}},multiPass:!0,autocomplete:`(${ie})-(${Ye}|${Xe}):`}}function jt(e,t){let n=!!e?.attributifyPseudo,r=e?.prefix??"";r=Y((Array.isArray(r)?r:[r]).filter(Boolean)[0]??"");let s=(i,o)=>Pn(i,n?`[${r}${i}=""]`:`.${r}${i}`,o,t);return[s("group"," "),s("peer","~"),s("parent",">"),s("previous","+")]}var Ds=/(part-\[(.+)\]:)(.+)/;function Rt(){return{match(e){let t=e.match(Ds);if(t){let n=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:r=>`${r}::${n}`}}},multiPass:!0}}function Vs(e,t,n={}){let r;return{name:e,match(s,i){r||(r=new RegExp(`^${K(e)}(?:${i.generator.config.separators.join("|")})`));let o=s.match(r);if(o){let l=s.slice(o[0].length),a=j(t).map(c=>({matcher:l,handle:(f,h)=>h({...f,...c(f)}),...n}));return a.length===1?a[0]:a}},autocomplete:`${e}:`}}function Gs(e,t){let n;return{name:e,match(r,s){n||(n=new RegExp(`^${K(e)}(?:${s.generator.config.separators.join("|")})`));let i=r.match(n);if(i)return{matcher:r.slice(i[0].length),handle:(o,l)=>l({...o,parent:`${o.parent?`${o.parent} $$ `:""}${t}`})}},autocomplete:`${e}:`}}function On(e,t,n){if(t.startsWith(`${e}[`)){let[r,s]=wn(t.slice(e.length),"[","]")??[];if(r&&s){for(let i of n)if(s.startsWith(i))return[r,s.slice(i.length),i];return[r,s,""]}}}function Mn(e,t,n){for(let r of j(e))if(t.startsWith(r)){let s=On(r,t,n);if(s){let[i="",o=s[1]]=Mn("/",s[1],n)??[];return[s[0],o,i]}for(let i of n.filter(o=>o!=="/")){let o=t.indexOf(i,r.length);if(o!==-1){let l=t.indexOf("/",r.length),a=l===-1||o<=l;return[t.slice(r.length,a?o:l),t.slice(o+i.length),a?"":t.slice(l+1,o)]}}}}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"]},Ee={...U,s:["-inset-inline-start"],start:["-inset-inline-start"],e:["-inset-inline-end"],end:["-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"]},Ae={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"],s:["-end-start","-start-start"],is:["-end-start","-start-start"],e:["-start-end","-end-end"],ie:["-start-end","-end-end"],ss:["-start-start"],"bs-is":["-start-start"],"is-bs":["-start-start"],se:["-start-end"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],es:["-end-start"],"be-is":["-end-start"],"is-be":["-end-start"],ee:["-end-end"],"be-ie":["-end-end"],"ie-be":["-end-end"]},Pt={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Ot=["x","y","z"],Ln=["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"],ue=Object.assign({},...Ln.map(e=>({[e.replace(/ /,"-")]:e})),...Ln.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),T=["inherit","initial","revert","revert-layer","unset"],ye=/^(calc|clamp|min|max)\s*\((.+)\)(.*)/,Je=/^(var)\s*\((.+)\)(.*)/,Qe=/^(-?\d*(?:\.\d+)?)(px|pt|pc|%|r?(?:em|ex|lh|cap|ch|ic)|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i,Wn=/^(-?\d*(?:\.\d+)?)$/,Bn=/^(px|[sld]?v[wh])$/i,In={px:1,vw:100,vh:100,svw:100,svh:100,dvw:100,dvh:100,lvh:100,lvw:100},Un=/^\[(color|image|length|size|position|quoted|string):/i,Hs=/,(?![^()]*\))/g,Mt=Ge({auto:()=>Ys,bracket:()=>ti,bracketOfColor:()=>ni,bracketOfLength:()=>ri,bracketOfPosition:()=>si,cssvar:()=>ii,degree:()=>ai,fraction:()=>ei,global:()=>li,number:()=>Js,numberWithUnit:()=>Ks,percent:()=>Qs,position:()=>fi,properties:()=>ci,px:()=>Zs,rem:()=>Xs,time:()=>oi}),qs=["color","border-color","background-color","outline-color","text-decoration-color","flex-grow","flex","flex-shrink","grid","grid-template-columns","grid-template-rows","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","border","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 V(e){return+e.toFixed(10)}function Ks(e){let t=e.match(Qe);if(!t)return;let[,n,r]=t,s=Number.parseFloat(n);if(r&&!Number.isNaN(s))return`${V(s)}${r}`}function Ys(e){if(e==="auto"||e==="a")return"auto"}function Xs(e){if(!e)return;if(Bn.test(e))return`${In[e]}${e}`;let t=e.match(Qe);if(!t)return;let[,n,r]=t,s=Number.parseFloat(n);if(!Number.isNaN(s))return s===0?"0":r?`${V(s)}${r}`:`${V(s/4)}rem`}function Zs(e){if(Bn.test(e))return`${In[e]}${e}`;let t=e.match(Qe);if(!t)return;let[,n,r]=t,s=Number.parseFloat(n);if(!Number.isNaN(s))return r?`${V(s)}${r}`:`${V(s)}px`}function Js(e){if(!Wn.test(e))return;let t=Number.parseFloat(e);if(!Number.isNaN(t))return V(t)}function Qs(e){if(e.endsWith("%")&&(e=e.slice(0,-1)),!Wn.test(e))return;let t=Number.parseFloat(e);if(!Number.isNaN(t))return`${V(t/100)}`}function ei(e){if(!e)return;if(e==="full")return"100%";let[t,n]=e.split("/"),r=Number.parseFloat(t)/Number.parseFloat(n);if(!Number.isNaN(r))return r===0?"0":`${V(r*100)}%`}function et(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let n,r,s=e.match(Un);if(s?(t||(r=s[1]),n=e.slice(s[0].length,-1)):n=e.slice(1,-1),!n||n==='=""')return;n.startsWith("--")&&(n=`var(${n})`);let i=0;for(let o of n)if(o==="[")i+=1;else if(o==="]"&&(i-=1,i<0))return;if(i)return;switch(r){case"string":return n.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_");case"quoted":return n.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(["\\])/g,"\\$1").replace(/^(.+)$/,'"$1"')}return n.replace(/(url\(.*?\))/g,o=>o.replace(/_/g,"\\_")).replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(?:calc|clamp|max|min)\((.*)/g,o=>{let l=[];return o.replace(/var\((--.+?)[,)]/g,(a,c)=>(l.push(c),a.replace(c,"--un-calc"))).replace(/(-?\d*\.?\d(?!-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ").replace(/--un-calc/g,()=>l.shift())})}}function ti(e){return et(e)}function ni(e){return et(e,"color")}function ri(e){return et(e,"length")}function si(e){return et(e,"position")}function ii(e){if(/^\$[^\s'"`;{}]/.test(e)){let[t,n]=e.slice(1).split(",");return`var(--${Y(t)}${n?`, ${n}`:""})`}}function oi(e){let t=e.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!t)return;let[,n,r]=t,s=Number.parseFloat(n);if(!Number.isNaN(s))return s===0&&!r?"0s":r?`${V(s)}${r}`:`${V(s)}ms`}function ai(e){let t=e.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!t)return;let[,n,r]=t,s=Number.parseFloat(n);if(!Number.isNaN(s))return s===0?"0deg":r?`${V(s)}${r}`:`${V(s)}deg`}function li(e){if(T.includes(e))return e}function ci(e){if(e.split(",").every(t=>qs.includes(t)))return e}function fi(e){if(["top","left","right","bottom","center"].includes(e))return e}var Lt=vt(Mt),u=Lt,tt="$$mini-no-negative";function B(e){return([t,n,r],{theme:s})=>{let i=s.spacing?.[r||"DEFAULT"]??u.bracket.cssvar.global.auto.fraction.rem(r);if(i!=null)return U[n].map(o=>[`${e}${o}`,i]);if(r?.startsWith("-")){let o=s.spacing?.[r.slice(1)];if(o!=null)return U[n].map(l=>[`${e}${l}`,`calc(${o} * -1)`])}}}function Tn(e,t,n="colors"){let r=e[n];function s(i,o){if(o.length===0)return i;if(!(!i||typeof i!="object"))for(let l=o.length;l>0;l--){let a=o.slice(0,l).join("-"),c=i[a.replace(/(-[a-z])/g,f=>f.slice(1).toUpperCase())]??i[a];if(c!=null)return l===o.length?c:s(c,o.slice(l))}}return s(r,t)}function Fn(e,t,n){return Tn(e,t,n)||Tn(e,t,"colors")}function je(e,t){let[n,r]=le(e,"[","]",["/",":"])??[];if(n!=null){let s=(n.match(Un)??[])[1];if(s==null||s===t)return[n,r]}}function he(e,t,n){let r=je(e,"color");if(!r)return;let[s,i]=r,o=s.replace(/([a-z])(\d)/g,"$1-$2").split(/-/g),[l]=o;if(!l)return;let a,c=u.bracketOfColor(s),f=c||s;if(u.numberWithUnit(f))return;if(/^#[\da-f]+$/i.test(f)?a=f:/^hex-[\da-fA-F]+$/.test(f)?a=`#${f.slice(4)}`:s.startsWith("$")&&(a=u.cssvar(s)),a=a||c,!a){let d=Fn(t,[s],n);typeof d=="string"&&(a=d)}let h="DEFAULT";if(!a){let d=o,m,[p]=o.slice(-1);/^\d+$/.test(p)&&(h=m=p,d=o.slice(0,-1));let y=Fn(t,d,n);typeof y=="object"?a=y[m??h]:typeof y=="string"&&!m&&(a=y)}return{opacity:i,name:l,no:h,color:a,cssColor:oe(a),alpha:u.bracket.cssvar.percent(i??"")}}function I(e,t,n,r){return([,s],{theme:i,generator:o})=>{let l=he(s??"",i,n);if(!l)return;let{alpha:a,color:c,cssColor:f}=l,h=o.config.envMode==="dev"&&c?` /* ${c} */`:"",d={};if(f)if(a!=null)d[e]=D(f,a)+h;else{let m=`--un-${t}-opacity`,p=D(f,`var(${m})`);p.includes(m)&&(d[m]=xe(f)),d[e]=p+h}else if(c)if(a!=null)d[e]=D(c,a)+h;else{let m=`--un-${t}-opacity`,p=D(c,`var(${m})`);p.includes(m)&&(d[m]=1),d[e]=p+h}if(r?.(d)!==!1)return d}}function Re(e,t){let n=[];e=j(e);for(let r=0;r<e.length;r++){let s=be(e[r]," ",6);if(!s||s.length<3)return e;let i=!1,o=s.indexOf("inset");o!==-1&&(s.splice(o,1),i=!0);let l="",a=s.at(-1);if(oe(s.at(0))){let c=oe(s.shift());c&&(l=`, ${D(c)}`)}else if(oe(a)){let c=oe(s.pop());c&&(l=`, ${D(c)}`)}else a&&a.startsWith("var(")&&(l=`, ${s.pop()}`);n.push(`${i?"inset ":""}${s.join(" ")} var(${t}${l})`)}return n}function ze(e,t,n){return e!=null&&!!he(e,t,n)?.color}var Nn=/[a-z]+/gi,_t=new WeakMap;function de({theme:e,generator:t},n="breakpoints"){let r=t?.userConfig?.theme?.[n]||e[n];if(!r)return;if(_t.has(e))return _t.get(e);let s=Object.entries(r).sort((i,o)=>Number.parseInt(i[1].replace(Nn,""))-Number.parseInt(o[1].replace(Nn,""))).map(([i,o])=>({point:i,size:o}));return _t.set(e,s),s}function Dn(e){return de(e,"verticalBreakpoints")}function P(e,t){return T.map(n=>[`${e}-${n}`,{[t??e]:n}])}function te(e){return e!=null&&ye.test(e)}function nt(e){return e[0]==="["&&e.slice(-1)==="]"&&(e=e.slice(1,-1)),ye.test(e)||Qe.test(e)}function $e(e,t,n){let r=t.split(Hs);return e||!e&&r.length===1?Pt[e].map(s=>[`--un-${n}${s}`,t]):r.map((s,i)=>[`--un-${n}-${Ot[i]}`,s])}var ne=Ge({CONTROL_MINI_NO_NEGATIVE:()=>tt,colorResolver:()=>I,colorableShadows:()=>Re,cornerMap:()=>Ae,cssMathFnRE:()=>ye,cssVarFnRE:()=>Je,directionMap:()=>U,directionSize:()=>B,globalKeywords:()=>T,h:()=>u,handler:()=>Lt,hasParseableColor:()=>ze,insetMap:()=>Ee,isCSSMathFn:()=>te,isSize:()=>nt,makeGlobalStaticRules:()=>P,parseColor:()=>he,positionMap:()=>ue,resolveBreakpoints:()=>de,resolveVerticalBreakpoints:()=>Dn,splitShorthand:()=>je,transformXYZ:()=>$e,valueHandlers:()=>Mt,xyzArray:()=>Ot,xyzMap:()=>Pt});mt(ne,zt);var R=Ge({CONTROL_MINI_NO_NEGATIVE:()=>tt,colorResolver:()=>I,colorableShadows:()=>Re,cornerMap:()=>Ae,cssMathFnRE:()=>ye,cssVarFnRE:()=>Je,directionMap:()=>U,directionSize:()=>B,globalKeywords:()=>T,h:()=>u,handler:()=>Lt,hasParseableColor:()=>ze,insetMap:()=>Ee,isCSSMathFn:()=>te,isSize:()=>nt,makeGlobalStaticRules:()=>P,parseColor:()=>he,positionMap:()=>ue,resolveBreakpoints:()=>de,resolveVerticalBreakpoints:()=>Dn,splitShorthand:()=>je,transformXYZ:()=>$e,valueHandlers:()=>Mt,xyzArray:()=>Ot,xyzMap:()=>Pt});mt(R,ne);var Vn={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]))},ui=[[/^(?:vertical|align|v)-(.+)$/,([,e])=>({"vertical-align":Vn[e]??u.bracket.cssvar.numberWithUnit(e)}),{autocomplete:[`(vertical|align|v)-(${Object.keys(Vn).join("|")})`,"(vertical|align|v)-<percentage>"]}]],Gn=["center","left","right","justify","start","end"],hi=[...Gn.map(e=>[`text-${e}`,{"text-align":e}]),...[...T,...Gn].map(e=>[`text-align-${e}`,{"text-align":e}])],di=[[/^outline-(?:width-|size-)?(.+)$/,er,{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,pi,{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,e],{theme:t})=>({"outline-offset":t.lineWidth?.[e]??u.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"}]];function er([,e],{theme:t}){return{"outline-width":t.lineWidth?.[e]??u.bracket.cssvar.global.px(e)}}function pi(e,t){return te(u.bracket(e[1]))?er(e,t):I("outline-color","outline-color","borderColor")(e,t)}var mi=[["appearance-auto",{"-webkit-appearance":"auto",appearance:"auto"}],["appearance-none",{"-webkit-appearance":"none",appearance:"none"}]];function gi(e){return u.properties.auto.global(e)??{contents:"contents",scroll:"scroll-position"}[e]}var bi=[[/^will-change-(.+)/,([,e])=>({"will-change":gi(e)})]],Te=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...T],xi=[[/^(?:border|b)()(?:-(.+))?$/,X,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,X],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,X],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,X],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,X],[/^(?:border|b)-()(?:width|size)-(.+)$/,X,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,X],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,X],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,X],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,X],[/^(?:border|b)-()(?:color-)?(.+)$/,_e,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,_e],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,_e],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,_e],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,_e],[/^(?: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)()(?:-(.+))?$/,Oe,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-$borderRadius","(rounded|rd)","(rounded|rd)-$borderRadius"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltbse])(?:-(.+))?$/,Oe],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,Oe],[/^(?:border-|b-)?(?:rounded|rd)-([bise][se])(?:-(.+))?$/,Oe],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,Oe],[/^(?:border|b)-(?:style-)?()(.+)$/,Me,{autocomplete:["(border|b)-style",`(border|b)-(${Te.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${Te.join("|")})`,`(border|b)-<directions>-style-(${Te.join("|")})`,`(border|b)-style-(${Te.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,Me],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,Me],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,Me],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,Me]];function Hn(e,t,n){if(t!=null)return{[`border${n}-color`]:D(e,t)};if(n===""){let r={},s="--un-border-opacity",i=D(e,`var(${s})`);return i.includes(s)&&(r[s]=typeof e=="string"?1:xe(e)),r["border-color"]=i,r}else{let r={},s="--un-border-opacity",i=`--un-border${n}-opacity`,o=D(e,`var(${i})`);return o.includes(i)&&(r[s]=typeof e=="string"?1:xe(e),r[i]=`var(${s})`),r[`border${n}-color`]=o,r}}function yi(e){return([,t],n)=>{let r=he(t,n,"borderColor");if(!r)return;let{alpha:s,color:i,cssColor:o}=r;if(o)return Hn(o,s,e);if(i)return Hn(i,s,e)}}function X([,e="",t],{theme:n}){let r=n.lineWidth?.[t||"DEFAULT"]??u.bracket.cssvar.global.px(t||"1");if(e in U&&r!=null)return U[e].map(s=>[`border${s}-width`,r])}function _e([,e="",t],n){if(e in U){if(te(u.bracket(t)))return X(["",e,t],n);if(ze(t,n.theme,"borderColor"))return Object.assign({},...U[e].map(r=>yi(r)(["",t],n.theme)))}}function Pe([,e="",t]){let n=u.bracket.percent.cssvar(t);if(e in U&&n!=null)return U[e].map(r=>[`--un-border${r}-opacity`,n])}function Oe([,e="",t],{theme:n}){let r=n.borderRadius?.[t||"DEFAULT"]||u.bracket.cssvar.global.fraction.rem(t||"1");if(e in Ae&&r!=null)return Ae[e].map(s=>[`border${s}-radius`,r])}function Me([,e="",t]){if(Te.includes(t)&&e in U)return U[e].map(n=>[`border${n}-style`,t])}var $i=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:u.bracket.percent.cssvar(e)})]],wi=/^\[url\(.+\)\]$/,vi=/^\[(?:length|size):.+\]$/,ki=/^\[position:.+\]$/,Si=/^\[(?:linear|conic|radial)-gradient\(.+\)\]$/,Ci=/^\[image:.+\]$/,Ei=[[/^bg-(.+)$/,(...e)=>{let t=e[0][1];if(wi.test(t))return{"--un-url":u.bracket(t),"background-image":"var(--un-url)"};if(vi.test(t)&&u.bracketOfLength(t)!=null)return{"background-size":u.bracketOfLength(t).split(" ").map(n=>u.fraction.auto.px.cssvar(n)??n).join(" ")};if((nt(t)||ki.test(t))&&u.bracketOfPosition(t)!=null)return{"background-position":u.bracketOfPosition(t).split(" ").map(n=>u.position.fraction.auto.px.cssvar(n)??n).join(" ")};if(Si.test(t)||Ci.test(t)){let n=u.bracket(t);if(n)return{"background-image":(n.startsWith("http")?`url(${n})`:u.cssvar(n))??n}}return I("background-color","bg","backgroundColor")(...e)},{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":u.bracket.percent.cssvar(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]],Ai=[[/^color-scheme-(\w+)$/,([,e])=>({"color-scheme":e})]],ji=[[/^@container(?:\/(\w+))?(?:-(normal|inline-size|size))?$/,([,e,t])=>({"container-type":t??"inline-size","container-name":e})]],qn=["solid","double","dotted","dashed","wavy",...T],Ri=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,e])=>({"text-decoration-line":e}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,tr,{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,e])=>({"text-decoration-thickness":e}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,zi,{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":u.bracket.percent.cssvar(e)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,e],{theme:t})=>({"text-underline-offset":t.lineWidth?.[e]??u.auto.bracket.cssvar.global.px(e)}),{autocomplete:"(underline|decoration)-(offset)-<num>"}],...qn.map(e=>[`underline-${e}`,{"text-decoration-style":e}]),...qn.map(e=>[`decoration-${e}`,{"text-decoration-style":e}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];function tr([,e],{theme:t}){return{"text-decoration-thickness":t.lineWidth?.[e]??u.bracket.cssvar.global.px(e)}}function zi(e,t){if(te(u.bracket(e[1])))return tr(e,t);let n=I("text-decoration-color","line","borderColor")(e,t);if(n)return{"-webkit-text-decoration-color":n["text-decoration-color"],...n}}var _i=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,e])=>({flex:u.bracket(e)!=null?u.bracket(e).split(" ").map(t=>u.cssvar.fraction(t)??t).join(" "):u.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":u.bracket.cssvar.number(e)??1}),{autocomplete:["flex-shrink-<num>","shrink-<num>"]}],[/^(?:flex-)?grow(?:-(.*))?$/,([,e=""])=>({"flex-grow":u.bracket.cssvar.number(e)??1}),{autocomplete:["flex-grow-<num>","grow-<num>"]}],[/^(?:flex-)?basis-(.+)$/,([,e],{theme:t})=>({"flex-basis":t.spacing?.[e]??u.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"}]],Pi={"":"",x:"column-",y:"row-",col:"column-",row:"row-"};function Tt([,e="",t],{theme:n}){let r=n.spacing?.[t]??u.bracket.cssvar.global.rem(t);if(r!=null)return{[`${Pi[e]}gap`]:r}}var Oi=[[/^(?:flex-|grid-)?gap-?()(.+)$/,Tt,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,Tt,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}],[/^(?:flex-|grid-)?gap-(col|row)-?(.+)$/,Tt,{autocomplete:["gap-(col|row)-$spacing","gap-(col|row)-<num>"]}]];function J(e){return e.replace("col","column")}function Ft(e){return e[0]==="r"?"Row":"Column"}function Mi(e,t,n){let r=t[`gridAuto${Ft(e)}`]?.[n];if(r!=null)return r;switch(n){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return u.bracket.cssvar.auto.rem(n)}var Li=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:n})=>({[`grid-${J(e)}`]:n[`grid${Ft(e)}`]?.[t]??u.bracket.cssvar.auto(t)})],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${J(e)}`]:"1/-1"};let n=u.bracket.number(t);if(n!=null)return{[`grid-${J(e)}`]:`span ${n}/span ${n}`}},{autocomplete:"(grid-row|grid-col|row|col)-span-<num>"}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,e,t])=>({[`grid-${J(e)}-start`]:u.bracket.cssvar(t)??t})],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>({[`grid-${J(e)}-end`]:u.bracket.cssvar(t)??t}),{autocomplete:"(grid-row|grid-col|row|col)-(start|end)-<num>"}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:n})=>({[`grid-auto-${J(e)}`]:Mi(e,n,t)}),{autocomplete:"(grid-auto|auto)-(rows|cols)-<num>"}],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":u.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,e])=>({"grid-auto-flow":J(e).replace("-"," ")}),{autocomplete:["(grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)"]}],[/^(?:grid-)?(rows|cols)-(.+)$/,([,e,t],{theme:n})=>({[`grid-template-${J(e)}`]:n[`gridTemplate${Ft(e)}`]?.[t]??u.bracket.cssvar(t)})],[/^(?:grid-)?(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${J(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^(?:grid-)?(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${J(e)}`]:`repeat(${t},minmax(0,1fr))`}),{autocomplete:"(grid-rows|grid-cols|rows|cols)-<num>"}],[/^grid-area(s)?-(.+)$/,([,e,t])=>e!=null?{"grid-template-areas":u.cssvar(t)??t.split("-").map(n=>`"${u.bracket(n)}"`).join(" ")}:{"grid-area":u.bracket.cssvar(t)}],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}],["grid-rows-subgrid",{"grid-template-rows":"subgrid"}],["grid-cols-subgrid",{"grid-template-columns":"subgrid"}]],rt=["auto","hidden","clip","visible","scroll","overlay",...T],Ti=[[/^(?:overflow|of)-(.+)$/,([,e])=>rt.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-(${rt.join("|")})`,`(overflow|of)-(x|y)-(${rt.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>rt.includes(t)?{[`overflow-${e}`]:t}:void 0]],Fi=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e}),{autocomplete:["(position|pos)-<position>","(position|pos)-<globalKeyword>","<position>"]}],[/^(?:position-|pos-)([-\w]+)$/,([,e])=>T.includes(e)?{position:e}:void 0],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],nr=[["justify-start",{"justify-content":"flex-start"}],["justify-end",{"justify-content":"flex-end"}],["justify-center",{"justify-content":"center"}],["justify-between",{"justify-content":"space-between"}],["justify-around",{"justify-content":"space-around"}],["justify-evenly",{"justify-content":"space-evenly"}],["justify-stretch",{"justify-content":"stretch"}],["justify-left",{"justify-content":"left"}],["justify-right",{"justify-content":"right"}],["justify-center-safe",{"justify-content":"safe center"}],["justify-end-safe",{"justify-content":"safe flex-end"}],["justify-normal",{"justify-content":"normal"}],...P("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"}],["justify-items-center-safe",{"justify-items":"safe center"}],["justify-items-end-safe",{"justify-items":"safe flex-end"}],...P("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"}],["justify-self-baseline",{"justify-self":"baseline"}],["justify-self-center-safe",{"justify-self":"safe center"}],["justify-self-end-safe",{"justify-self":"safe flex-end"}],...P("justify-self")],Ni=[[/^order-(.+)$/,([,e])=>({order:u.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],rr=[["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"}],["content-baseline",{"align-content":"baseline"}],["content-center-safe",{"align-content":"safe center"}],["content-end-safe",{"align-content":"safe flex-end"}],["content-stretch",{"align-content":"stretch"}],["content-normal",{"align-content":"normal"}],...P("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"}],["items-baseline-last",{"align-items":"last baseline"}],["items-center-safe",{"align-items":"safe center"}],["items-end-safe",{"align-items":"safe flex-end"}],...P("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"}],["self-baseline-last",{"align-self":"last baseline"}],["self-center-safe",{"align-self":"safe center"}],["self-end-safe",{"align-self":"safe flex-end"}],...P("self","align-self")],sr=[["place-content-center",{"place-content":"center"}],["place-content-start",{"place-content":"start"}],["place-content-end",{"place-content":"end"}],["place-content-between",{"place-content":"space-between"}],["place-content-around",{"place-content":"space-around"}],["place-content-evenly",{"place-content":"space-evenly"}],["place-content-stretch",{"place-content":"stretch"}],["place-content-baseline",{"place-content":"baseline"}],["place-content-center-safe",{"place-content":"safe center"}],["place-content-end-safe",{"place-content":"safe flex-end"}],...P("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"}],["place-items-baseline",{"place-items":"baseline"}],["place-items-center-safe",{"place-items":"safe center"}],["place-items-end-safe",{"place-items":"safe flex-end"}],...P("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"}],["place-self-center-safe",{"place-self":"safe center"}],["place-self-end-safe",{"place-self":"safe flex-end"}],...P("place-self")],Wi=[...nr,...rr,...sr].flatMap(([e,t])=>[[`flex-${e}`,t],[`grid-${e}`,t]]);function Nt(e,{theme:t}){return t.spacing?.[e]??u.bracket.cssvar.global.auto.fraction.rem(e)}function Le([,e,t],n){let r=Nt(t,n);if(r!=null&&e in Ee)return Ee[e].map(s=>[s.slice(1),r])}var Bi=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:Nt(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-)?(start|end)-(.+)$/,Le],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,Le],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,Le],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,Le],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,Le],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],n)=>({[e]:Nt(t,n)})]],Ii=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-start",{float:"inline-start"}],["float-end",{float:"inline-end"}],["float-none",{float:"none"}],...P("float"),["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-start",{clear:"inline-start"}],["clear-end",{clear:"inline-end"}],["clear-none",{clear:"none"}],...P("clear")],Ui=[[/^(?:position-|pos-)?z([\d.]+)$/,([,e])=>({"z-index":u.number(e)})],[/^(?:position-|pos-)?z-(.+)$/,([,e],{theme:t})=>({"z-index":t.zIndex?.[e]??u.bracket.cssvar.global.auto.number(e)}),{autocomplete:"z-<num>"}]],Di=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}],...P("box","box-sizing")],Vi=[[/^(where|\?)$/,(e,{constructCSS:t,generator:n})=>{if(n.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}} ${t({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]],Gi=["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"],Hi=["none","strict","content","size","inline-size","layout","style","paint"],ir=" ",qi=[["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:u.bracket.cssvar.global(e)})]],Ki=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}],...P("backface","backface-visibility")],Yi=[[/^cursor-(.+)$/,([,e])=>({cursor:u.bracket.cssvar.global(e)})],...Gi.map(e=>[`cursor-${e}`,{cursor:e}])],Xi=[[/^contain-(.*)$/,([,e])=>u.bracket(e)!=null?{contain:u.bracket(e).split(" ").map(t=>u.cssvar.fraction(t)??t).join(" ")}:Hi.includes(e)?{contain:e}:void 0]],Zi=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}],...P("pointer-events")],Ji=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}],...P("resize")],Qi=[["select-auto",{"-webkit-user-select":"auto","user-select":"auto"}],["select-all",{"-webkit-user-select":"all","user-select":"all"}],["select-text",{"-webkit-user-select":"text","user-select":"text"}],["select-none",{"-webkit-user-select":"none","user-select":"none"}],...P("select","user-select")],eo=[[/^(?: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)"}]],to=[[/^intrinsic(?:-(block|inline|w|h))?(?:-size)?-(.+)$/,([,e,t])=>({[`contain-intrinsic-${{block:"block-size",inline:"inline-size",w:"width",h:"height"}[e]??"size"}`]:u.bracket.cssvar.global.fraction.rem(t)}),{autocomplete:["intrinsic-size-<num>","intrinsic-<num>","intrinsic-(block|inline|w|h)-<num>"]}],["content-visibility-visible",{"content-visibility":"visible"}],["content-visibility-hidden",{"content-visibility":"hidden"}],["content-visibility-auto",{"content-visibility":"auto"}],...P("content-visibility")],no=[[/^content-(.+)$/,([,e])=>({content:u.bracket.cssvar(e)})],["content-empty",{content:'""'}],["content-none",{content:"none"}]],ro=[["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"}],["break-anywhere",{"overflow-wrap":"anywhere"}]],so=[["text-wrap",{"text-wrap":"wrap"}],["text-nowrap",{"text-wrap":"nowrap"}],["text-balance",{"text-wrap":"balance"}],["text-pretty",{"text-wrap":"pretty"}]],io=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],oo=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}],...P("case","text-transform")],ao=[["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"}]],lo=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"}]],co=[["field-sizing-fixed",{"field-sizing":"fixed"}],["field-sizing-content",{"field-sizing":"content"}]],Bt={"--un-ring-inset":ir,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgb(147 197 253 / 0.5)","--un-shadow":"0 0 rgb(0 0 0 / 0)"},fo=Object.keys(Bt),uo=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{let n=t.ringWidth?.[e||"DEFAULT"]??u.px(e||"1");if(n)return{"--un-ring-width":n,"--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)"}},{custom:{preflightKeys:fo},autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,or,{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]??u.bracket.cssvar.px(e)}),{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,ho,{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":u.bracket.percent.cssvar(e)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,I("--un-ring-offset-color","ring-offset","borderColor"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":u.bracket.percent.cssvar(e)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];function or([,e],{theme:t}){return{"--un-ring-width":t.ringWidth?.[e]??u.bracket.cssvar.px(e)}}function ho(e,t){return te(u.bracket(e[1]))?or(e,t):I("--un-ring-color","ring","borderColor")(e,t)}var It={"--un-ring-offset-shadow":"0 0 rgb(0 0 0 / 0)","--un-ring-shadow":"0 0 rgb(0 0 0 / 0)","--un-shadow-inset":ir,"--un-shadow":"0 0 rgb(0 0 0 / 0)"},po=Object.keys(It),mo=[[/^shadow(?:-(.+))?$/,(e,t)=>{let[,n]=e,{theme:r}=t,s=r.boxShadow?.[n||"DEFAULT"],i=n?u.bracket.cssvar(n):void 0;return(s!=null||i!=null)&&!ze(i,r,"shadowColor")?{"--un-shadow":Re(s||i,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}:I("--un-shadow-color","shadow","shadowColor")(e,t)},{custom:{preflightKeys:po},autocomplete:["shadow-$colors","shadow-$boxShadow"]}],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":u.bracket.percent.cssvar(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]],go={h:"height",w:"width",inline:"inline-size",block:"block-size"};function pe(e,t){return`${e||""}${go[t]}`}function st(e,t,n,r){let s=n[pe(e,t).replace(/-(\w)/g,(i,o)=>o.toUpperCase())]?.[r];if(s!=null)return s;switch(r){case"fit":case"max":case"min":return`${r}-content`;case"stretch":return"stretch"}return u.bracket.cssvar.global.auto.fraction.rem(r)}var bo=[[/^size-(min-|max-)?(.+)$/,([,e,t],{theme:n})=>({[pe(e,"w")]:st(e,"w",n,t),[pe(e,"h")]:st(e,"h",n,t)})],[/^(?:size-)?(min-|max-)?([wh])-?(.+)$/,([,e,t,n],{theme:r})=>({[pe(e,t)]:st(e,t,r,n)})],[/^(?:size-)?(min-|max-)?(block|inline)-(.+)$/,([,e,t,n],{theme:r})=>({[pe(e,t)]:st(e,t,r,n)}),{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","(w|h)-full","(max|min)-(w|h)-full"]}],[/^(?:size-)?(min-|max-)?(h)-screen-(.+)$/,([,e,t,n],r)=>({[pe(e,t)]:Kn(r,n,"verticalBreakpoints")})],[/^(?:size-)?(min-|max-)?(w)-screen-(.+)$/,([,e,t,n],r)=>({[pe(e,t)]:Kn(r,n)}),{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 Kn(e,t,n="breakpoints"){let r=de(e,n);if(r)return r.find(s=>s.point===t)?.size}function xo(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return u.bracket.cssvar.global.auto.number(e)}var yo=[[/^(?:size-)?aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":xo(e)}),{autocomplete:["aspect-(square|video|ratio)","aspect-ratio-(square|video)"]}]],$o=[[/^pa?()-?(.+)$/,B("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,B("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(.+))?$/,B("padding")],[/^p-?([rltbse])(?:-?(.+))?$/,B("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(.+))?$/,B("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(.+))?$/,B("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],wo=[[/^ma?()-?(.+)$/,B("margin")],[/^m-?xy()()$/,B("margin")],[/^m-?([xy])(?:-?(.+))?$/,B("margin")],[/^m-?([rltbse])(?:-?(.+))?$/,B("margin")],[/^m-(block|inline)(?:-(.+))?$/,B("margin")],[/^m-?([bi][se])(?:-?(.+))?$/,B("margin")]],vo=[[/^fill-(.+)$/,I("fill","fill","backgroundColor"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":u.bracket.percent.cssvar(e)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,ar,{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":u.bracket.cssvar.number(e)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,e],{theme:t})=>({"stroke-dashoffset":t.lineWidth?.[e]??u.bracket.cssvar.px.numberWithUnit(e)}),{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,ko,{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":u.bracket.percent.cssvar(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"}]];function ar([,e],{theme:t}){return{"stroke-width":t.lineWidth?.[e]??u.bracket.cssvar.fraction.px.number(e)}}function ko(e,t){return te(u.bracket(e[1]))?ar(e,t):I("stroke","stroke","borderColor")(e,t)}var it=["translate","rotate","scale"],So=["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","rotate(var(--un-rotate))","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))"].join(" "),me=["perspective(var(--un-perspective))","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(" "),Co=["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(" "),Ut={"--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},Q=Object.keys(Ut),Eo=[[/^(?:transform-)?origin-(.+)$/,([,e])=>({"transform-origin":ue[e]??u.bracket.cssvar(e)}),{autocomplete:[`transform-origin-(${Object.keys(ue).join("|")})`,`origin-(${Object.keys(ue).join("|")})`]}],[/^(transform-)?perspect(?:ive)?-(.+)$/,([,e,t])=>{let n=u.bracket.cssvar.px.numberWithUnit(t);if(n!=null)return e?{"--un-perspective":`perspective(${n})`,transform:me}:{"-webkit-perspective":n,perspective:n}}],[/^perspect(?:ive)?-origin-(.+)$/,([,e])=>{let t=u.bracket.cssvar(e)??(e.length>=3?ue[e]:void 0);if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,Yn,{custom:{preflightKeys:Q}}],[/^(?:transform-)?translate-([xyz])-(.+)$/,Yn,{custom:{preflightKeys:Q}}],[/^(?:transform-)?rotate-()(.+)$/,Zn,{custom:{preflightKeys:Q}}],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Zn,{custom:{preflightKeys:Q}}],[/^(?:transform-)?skew-()(.+)$/,Jn,{custom:{preflightKeys:Q}}],[/^(?:transform-)?skew-([xy])-(.+)$/,Jn,{custom:{preflightKeys:Q},autocomplete:["transform-skew-(x|y)-<percent>","skew-(x|y)-<percent>"]}],[/^(?:transform-)?scale-()(.+)$/,Xn,{custom:{preflightKeys:Q}}],[/^(?:transform-)?scale-([xyz])-(.+)$/,Xn,{custom:{preflightKeys:Q},autocomplete:[`transform-(${it.join("|")})-<percent>`,`transform-(${it.join("|")})-(x|y|z)-<percent>`,`(${it.join("|")})-<percent>`,`(${it.join("|")})-(x|y|z)-<percent>`]}],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],["transform",{transform:me},{custom:{preflightKeys:Q}}],["transform-cpu",{transform:So},{custom:{preflightKeys:["--un-translate-x","--un-translate-y","--un-rotate","--un-rotate-z","--un-skew-x","--un-skew-y","--un-scale-x","--un-scale-y"]}}],["transform-gpu",{transform:Co},{custom:{preflightKeys:Q}}],["transform-none",{transform:"none"}],...P("transform")];function Yn([,e,t],{theme:n}){let r=n.spacing?.[t]??u.bracket.cssvar.fraction.rem(t);if(r!=null)return[...$e(e,r,"translate"),["transform",me]]}function Xn([,e,t]){let n=u.bracket.cssvar.fraction.percent(t);if(n!=null)return[...$e(e,n,"scale"),["transform",me]]}function Zn([,e="",t]){let n=u.bracket.cssvar.degree(t);if(n!=null)return e?{"--un-rotate":0,[`--un-rotate-${e}`]:n,transform:me}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":n,transform:me}}function Jn([,e,t]){let n=u.bracket.cssvar.degree(t);if(n!=null)return[...$e(e,n,"skew"),["transform",me]]}function Qn(e,t){let n;if(u.cssvar(e)!=null)n=u.cssvar(e);else{e.startsWith("[")&&e.endsWith("]")&&(e=e.slice(1,-1));let r=e.split(",").map(s=>t.transitionProperty?.[s]??u.properties(s));r.every(Boolean)&&(n=r.join(","))}return n}var Ao=[[/^transition(?:-(\D+?))?(?:-(\d+))?$/,([,e,t],{theme:n})=>{if(!e&&!t)return{"transition-property":n.transitionProperty?.DEFAULT,"transition-timing-function":n.easing?.DEFAULT,"transition-duration":n.duration?.DEFAULT??u.time("150")};if(e!=null){let r=Qn(e,n),s=n.duration?.[t||"DEFAULT"]??u.time(t||"150");if(r)return{"transition-property":r,"transition-timing-function":n.easing?.DEFAULT,"transition-duration":s}}else if(t!=null)return{"transition-property":n.transitionProperty?.DEFAULT,"transition-timing-function":n.easing?.DEFAULT,"transition-duration":n.duration?.[t]??u.time(t)}},{autocomplete:"transition-$transitionProperty-$duration"}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>({"transition-duration":t.duration?.[e||"DEFAULT"]??u.bracket.cssvar.time(e)}),{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,e],{theme:t})=>({"transition-delay":t.duration?.[e||"DEFAULT"]??u.bracket.cssvar.time(e)}),{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,e],{theme:t})=>({"transition-timing-function":t.easing?.[e||"DEFAULT"]??u.bracket.cssvar(e)}),{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,e],{theme:t})=>{let n=u.global(e)||Qn(e,t);if(n)return{"transition-property":n}},{autocomplete:[`transition-property-(${[...T].join("|")})`,"transition-property-$transitionProperty","property-$transitionProperty"]}],["transition-none",{transition:"none"}],...P("transition"),["transition-discrete",{"transition-behavior":"allow-discrete"}],["transition-normal",{"transition-behavior":"normal"}]],jo=[[/^text-(.+)$/,Mo,{autocomplete:"text-$fontSize"}],[/^(?:text|font)-size-(.+)$/,lr,{autocomplete:"text-size-$fontSize"}],[/^text-(?:color-)?(.+)$/,Oo,{autocomplete:"text-$colors"}],[/^(?:color|c)-(.+)$/,I("color","text","textColor"),{autocomplete:"(color|c)-$colors"}],[/^(?:text|color|c)-(.+)$/,([,e])=>T.includes(e)?{color:e}:void 0,{autocomplete:`(text|color|c)-(${T.join("|")})`}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":u.bracket.percent.cssvar(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}],[/^(?:font|fw)-?([^-]+)$/,([,e],{theme:t})=>({"font-weight":t.fontWeight?.[e]||u.bracket.global.number(e)}),{autocomplete:["(font|fw)-(100|200|300|400|500|600|700|800|900)","(font|fw)-$fontWeight"]}],[/^(?:font-)?(?:leading|lh|line-height)-(.+)$/,([,e],{theme:t})=>({"line-height":Wt(e,t,"lineHeight")}),{autocomplete:"(leading|lh|line-height)-$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":u.bracket.cssvar.global(e)})],[/^(?:font-)?tracking-(.+)$/,([,e],{theme:t})=>({"letter-spacing":t.letterSpacing?.[e]||u.bracket.cssvar.global.rem(e)}),{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,e],{theme:t})=>({"word-spacing":t.wordSpacing?.[e]||u.bracket.cssvar.global.rem(e)}),{autocomplete:"word-spacing-$wordSpacing"}],["font-stretch-normal",{"font-stretch":"normal"}],["font-stretch-ultra-condensed",{"font-stretch":"ultra-condensed"}],["font-stretch-extra-condensed",{"font-stretch":"extra-condensed"}],["font-stretch-condensed",{"font-stretch":"condensed"}],["font-stretch-semi-condensed",{"font-stretch":"semi-condensed"}],["font-stretch-semi-expanded",{"font-stretch":"semi-expanded"}],["font-stretch-expanded",{"font-stretch":"expanded"}],["font-stretch-extra-expanded",{"font-stretch":"extra-expanded"}],["font-stretch-ultra-expanded",{"font-stretch":"ultra-expanded"}],[/^font-stretch-(.+)$/,([,e])=>({"font-stretch":u.bracket.cssvar.fraction.global(e)}),{autocomplete:"font-stretch-<percentage>"}],[/^font-(.+)$/,([,e],{theme:t})=>({"font-family":t.fontFamily?.[e]||u.bracket.cssvar.global(e)}),{autocomplete:"font-$fontFamily"}]],Ro=[[/^tab(?:-(.+))?$/,([,e])=>{let t=u.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],zo=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>({"text-indent":t.textIndent?.[e||"DEFAULT"]||u.bracket.cssvar.global.fraction.rem(e)}),{autocomplete:"indent-$textIndent"}]],_o=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>({"-webkit-text-stroke-width":t.textStrokeWidth?.[e||"DEFAULT"]||u.bracket.cssvar.px(e)}),{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,I("-webkit-text-stroke-color","text-stroke","borderColor"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":u.bracket.percent.cssvar(e)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],Po=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{let n=t.textShadow?.[e||"DEFAULT"];return n!=null?{"--un-text-shadow":Re(n,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":u.bracket.cssvar.global(e)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,I("--un-text-shadow-color","text-shadow","shadowColor"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":u.bracket.percent.cssvar(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];function Wt(e,t,n){return t[n]?.[e]||u.bracket.cssvar.global.rem(e)}function lr([,e],{theme:t}){let n=j(t.fontSize?.[e])?.[0]??u.bracket.cssvar.global.rem(e);if(n!=null)return{"font-size":n}}function Oo(e,t){return te(u.bracket(e[1]))?lr(e,t):I("color","text","textColor")(e,t)}function Mo([,e="base"],{theme:t}){let n=je(e,"length");if(!n)return;let[r,s]=n,i=j(t.fontSize?.[r]),o=s?Wt(s,t,"lineHeight"):void 0;if(i?.[0]){let[a,c,f]=i;return typeof c=="object"?{"font-size":a,...c}:{"font-size":a,"line-height":o??c??"1","letter-spacing":f?Wt(f,t,"letterSpacing"):void 0}}let l=u.bracketOfLength.rem(r);return o&&l?{"font-size":l,"line-height":o}:{"font-size":u.bracketOfLength.rem(e)}}var Lo={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",fw:"font-weight",items:"align-items",justify:"justify-content",select:"user-select",self:"align-self",vertical:"vertical-align",visible:"visibility",whitespace:"white-space",ws:"white-space"},To=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let n=Lo[e];if(n)return{[n]:u.cssvar(t)}}]],Fo=[[/^\[(.*)\]$/,([e,t])=>{if(!t.includes(":"))return;let[n,...r]=t.split(":"),s=r.join(":");if(!Wo(t)&&/^[\w-]+$/.test(n)&&No(s)){let i=u.bracket(`[${s}]`);if(i)return{[n]:i}}}]];function No(e){let t=0;function n(r){for(;t<e.length;)if(t+=1,e[t]===r)return!0;return!1}for(t=0;t<e.length;t++){let r=e[t];if("\"`'".includes(r)){if(!n(r))return!1}else if(r==="("){if(!n(")"))return!1}else if("[]{}:".includes(r))return!1}return!0}function Wo(e){if(!e.includes("://"))return!1;try{return new URL(e).host!==""}catch{return!1}}var cr=[To,Fo,Xi,Zi,Ki,Fi,Bi,Ui,Ni,Li,Ii,wo,Di,qi,yo,bo,_i,Eo,Yi,Qi,Ji,mi,sr,rr,nr,Oi,Wi,Ti,io,eo,ro,xi,Ei,Ai,vo,$o,hi,zo,so,ui,jo,oo,ao,Ri,lo,Ro,_o,Po,$i,mo,di,uo,Ao,bi,to,no,ji,co,Vi].flat(1);var Dt={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",950:"#4c0519"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},light:{50:"#fdfdfd",100:"#fcfcfc",200:"#fafafa",300:"#f8f9fa",400:"#f6f6f6",500:"#f2f2f2",600:"#f1f3f5",700:"#e9ecef",800:"#dee2e6",900:"#dde1e3",950:"#d8dcdf"},dark:{50:"#4a4a4a",100:"#3c3c3c",200:"#323232",300:"#2d2d2d",400:"#222222",500:"#1f1f1f",600:"#1c1c1e",700:"#1b1b1b",800:"#181818",900:"#0f0f0f",950:"#080808"},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(Dt).forEach(e=>{typeof e!="string"&&e!==void 0&&(e.DEFAULT=e.DEFAULT||e[400],Object.keys(e).forEach(t=>{let n=+t/100;n===Math.round(n)&&(e[n]=e[t])}))});var Bo={DEFAULT:"8px",0:"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Io={DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],sm:"0 1px 1px rgb(0 0 0 / 0.05)",md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 rgb(0 0 0 / 0)"},Uo={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(",")},Do={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"]},Vo={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},Go={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},Ho={DEFAULT:["0 0 1px rgb(0 0 0 / 0.2)","0 0 1px rgb(1 0 5 / 0.1)"],none:"0 0 rgb(0 0 0 / 0)",sm:"1px 1px 3px rgb(36 37 47 / 0.25)",md:["0 1px 2px rgb(30 29 39 / 0.19)","1px 2px 4px rgb(54 64 147 / 0.18)"],lg:["3px 3px 6px rgb(0 0 0 / 0.26)","0 0 5px rgb(15 3 86 / 0.22)"],xl:["1px 1px 3px rgb(0 0 0 / 0.29)","2px 4px 7px rgb(73 64 125 / 0.35)"]},qo={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},pr={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},Ko={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Yo=pr,mr={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Xo={...mr},Zo={DEFAULT:"1px",none:"0"},Jo={DEFAULT:"1rem",none:"0",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"},Qo={DEFAULT:"150ms",none:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},ea={DEFAULT:"0.25rem",none:"0",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},ta={DEFAULT:["var(--un-shadow-inset) 0 1px 3px 0 rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 1px 2px -1px rgb(0 0 0 / 0.1)"],none:"0 0 rgb(0 0 0 / 0)",sm:"var(--un-shadow-inset) 0 1px 2px 0 rgb(0 0 0 / 0.05)",md:["var(--un-shadow-inset) 0 4px 6px -1px rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 2px 4px -2px rgb(0 0 0 / 0.1)"],lg:["var(--un-shadow-inset) 0 10px 15px -3px rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 4px 6px -4px rgb(0 0 0 / 0.1)"],xl:["var(--un-shadow-inset) 0 20px 25px -5px rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 8px 10px -6px rgb(0 0 0 / 0.1)"],"2xl":"var(--un-shadow-inset) 0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"},na={DEFAULT:"3px",none:"0"},ra={auto:"auto"},sa={mouse:"(hover) and (pointer: fine)"},ia={...Ut,...It,...Bt},re={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},oa={auto:"auto",...re,screen:"100vw"},fr={none:"none",...re,screen:"100vw"},aa={auto:"auto",...re,screen:"100vb"},la={auto:"auto",...re,screen:"100vi"},ca={auto:"auto",...re,screen:"100vh"},ur={none:"none",...re,screen:"100vh"},hr={none:"none",...re,screen:"100vb"},dr={none:"none",...re,screen:"100vi"},fa={...re},ua={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)"},ha={none:"none",all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),opacity:"opacity",shadow:"box-shadow",transform:"transform",get DEFAULT(){return[this.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",")}},gr={width:oa,height:ca,maxWidth:fr,maxHeight:ur,minWidth:fr,minHeight:ur,inlineSize:la,blockSize:aa,maxInlineSize:dr,maxBlockSize:hr,minInlineSize:dr,minBlockSize:hr,colors:Dt,fontFamily:Uo,fontSize:Do,fontWeight:Ko,breakpoints:mr,verticalBreakpoints:Xo,borderRadius:ea,lineHeight:qo,letterSpacing:pr,wordSpacing:Yo,boxShadow:ta,textIndent:Vo,textShadow:Ho,textStrokeWidth:Go,blur:Bo,dropShadow:Io,easing:ua,transitionProperty:ha,lineWidth:Zo,spacing:Jo,duration:Qo,ringWidth:na,preflightBase:ia,containers:fa,zIndex:ra,media:sa};var da={name:"aria",match(e,t){let n=(0,R.variantGetParameter)("aria-",e,t.generator.config.separators);if(n){let[r,s]=n,i=u.bracket(r)??t.theme.aria?.[r]??"";if(i)return{matcher:s,selector:o=>`${o}[aria-${i}]`}}},multiPass:!0};function ot(e,t,n={}){return{name:`${e}-aria`,match(r,s){let i=(0,R.variantGetParameter)(`${e}-aria-`,r,s.generator.config.separators);if(i){let[o,l,a]=i,c=u.bracket(o)??s.theme.aria?.[o]??"";if(c){let f=!!n?.attributifyPseudo,h=n?.prefix??"";h=(Array.isArray(h)?h:[h]).filter(Boolean)[0]??"";let d=`${f?`[${h}${e}=""]`:`.${h}${e}`}`,m=Y(a?`/${a}`:"");return{matcher:l,handle:(p,y)=>{let w=new RegExp(`${K(d)}${K(m)}(?:\\[.+?\\])+`),v=p.prefix.match(w),x;if(v){let b=(v.index??0)+d.length+m.length;x=[p.prefix.slice(0,b),`[aria-${c}]`,p.prefix.slice(b)].join("")}else{let b=Math.max(p.prefix.indexOf(d),0);x=[p.prefix.slice(0,b),d,m,`[aria-${c}]`,t,p.prefix.slice(b)].join("")}return y({...p,prefix:x})}}}}},multiPass:!0}}function pa(){return{name:"has-aria",match(e,t){let n=(0,R.variantGetParameter)("has-aria-",e,t.generator.config.separators);if(n){let[r,s]=n,i=u.bracket(r)??t.theme.aria?.[r]??"";if(i)return{matcher:s,handle:(o,l)=>l({...o,pseudo:`${o.pseudo}:has([aria-${i}])`})}}},multiPass:!0}}function ma(e={}){return[ot("group"," ",e),ot("peer","~",e),ot("parent",">",e),ot("previous","+",e),pa()]}var br=/(max|min)-\[([^\]]*)\]:/;function ga(){let e={};return{name:"breakpoints",match(t,n){if(br.test(t)){let s=t.match(br);return{matcher:t.replace(s[0],""),handle:(i,o)=>o({...i,parent:`${i.parent?`${i.parent} $$ `:""}@media (${s[1]}-width: ${s[2]})`})}}let r=(de(n)??[]).map(({point:s,size:i},o)=>[s,i,o]);for(let[s,i,o]of r){e[s]||(e[s]=new RegExp(`^((?:([al]t-|[<~]|max-))?${s}(?:${n.generator.config.separators.join("|")}))`));let l=t.match(e[s]);if(!l)continue;let[,a]=l,c=t.slice(a.length);if(c==="container")continue;let f=a.startsWith("lt-")||a.startsWith("<")||a.startsWith("max-"),h=a.startsWith("at-")||a.startsWith("~"),d=3e3;return f?(d-=o+1,{matcher:c,handle:(m,p)=>p({...m,parent:`${m.parent?`${m.parent} $$ `:""}@media (max-width: ${(0,R.calcMaxWidthBySize)(i)})`,parentOrder:d})}):(d+=o+1,h&&o<r.length-1?{matcher:c,handle:(m,p)=>p({...m,parent:`${m.parent?`${m.parent} $$ `:""}@media (min-width: ${i}) and (max-width: ${(0,R.calcMaxWidthBySize)(r[o+1][1])})`,parentOrder:d})}:{matcher:c,handle:(m,p)=>p({...m,parent:`${m.parent?`${m.parent} $$ `:""}@media (min-width: ${i})`,parentOrder:d})})}},multiPass:!0,autocomplete:"(at-|lt-|max-|)$breakpoints:"}}var ba=[(0,R.variantMatcher)("*",e=>({selector:`${e.selector} > *`}),{order:-1})];function Fe(e,t){return{name:`combinator:${e}`,match(n,r){if(!n.startsWith(e))return;let s=r.generator.config.separators,i=(0,R.variantGetBracket)(`${e}-`,n,s);if(!i){for(let l of s)if(n.startsWith(`${e}${l}`)){i=["",n.slice(e.length+l.length)];break}if(!i)return}let o=u.bracket(i[0])??"";return o===""&&(o="*"),{matcher:i[1],selector:l=>`${l}${t}${o}`}},multiPass:!0}}var xa=[Fe("all"," "),Fe("children",">"),Fe("next","+"),Fe("sibling","+"),Fe("siblings","~")],ya={name:"@",match(e,t){if(e.startsWith("@container"))return;let n=(0,R.variantGetParameter)("@",e,t.generator.config.separators);if(n){let[r,s,i]=n,o=u.bracket(r),l;if(o?l=u.numberWithUnit(o):l=t.theme.containers?.[r]??"",l){let a=1e3+Object.keys(t.theme.containers??{}).indexOf(r);return i&&(a+=1e3),{matcher:s,handle:(c,f)=>f({...c,parent:`${c.parent?`${c.parent} $$ `:""}@container${i?` ${i} `:" "}(min-width: ${l})`,parentOrder:a})}}}},multiPass:!0};function $a(e={}){if(e?.dark==="class"||typeof e.dark=="object"){let{dark:t=".dark",light:n=".light"}=typeof e.dark=="string"?{}:e.dark;return[(0,R.variantMatcher)("dark",j(t).map(r=>s=>({prefix:`${r} $$ ${s.prefix}`}))),(0,R.variantMatcher)("light",j(n).map(r=>s=>({prefix:`${r} $$ ${s.prefix}`})))]}return[(0,R.variantParentMatcher)("dark","@media (prefers-color-scheme: dark)"),(0,R.variantParentMatcher)("light","@media (prefers-color-scheme: light)")]}var wa={name:"data",match(e,t){let n=(0,R.variantGetParameter)("data-",e,t.generator.config.separators);if(n){let[r,s]=n,i=u.bracket(r)??t.theme.data?.[r]??"";if(i)return{matcher:s,selector:o=>`${o}[data-${i}]`}}},multiPass:!0};function at(e,t,n={}){return{name:`${e}-data`,match(r,s){let i=(0,R.variantGetParameter)(`${e}-data-`,r,s.generator.config.separators);if(i){let[o,l,a]=i,c=u.bracket(o)??s.theme.data?.[o]??"";if(c){let f=!!n?.attributifyPseudo,h=n?.prefix??"";h=(Array.isArray(h)?h:[h]).filter(Boolean)[0]??"";let d=`${f?`[${h}${e}=""]`:`.${h}${e}`}`,m=Y(a?`/${a}`:"");return{matcher:l,handle:(p,y)=>{let w=new RegExp(`${K(d)}${K(m)}(?:\\[.+?\\])+`),v=p.prefix.match(w),x;if(v){let b=(v.index??0)+d.length+m.length;x=[p.prefix.slice(0,b),`[data-${c}]`,p.prefix.slice(b)].join("")}else{let b=Math.max(p.prefix.indexOf(d),0);x=[p.prefix.slice(0,b),d,m,`[data-${c}]`,t,p.prefix.slice(b)].join("")}return y({...p,prefix:x})}}}}},multiPass:!0}}function va(){return{name:"has-data",match(e,t){let n=(0,R.variantGetParameter)("has-data-",e,t.generator.config.separators);if(n){let[r,s]=n,i=u.bracket(r)??t.theme.data?.[r]??"";if(i)return{matcher:s,handle:(o,l)=>l({...o,pseudo:`${o.pseudo}:has([data-${i}])`})}}},multiPass:!0}}function ka(e={}){return[at("group"," ",e),at("peer","~",e),at("parent",">",e),at("previous","+",e),va()]}var Sa=[(0,R.variantMatcher)("rtl",e=>({prefix:`[dir="rtl"] $$ ${e.prefix}`})),(0,R.variantMatcher)("ltr",e=>({prefix:`[dir="ltr"] $$ ${e.prefix}`}))];function Ca(){let e;return{name:"important",match(t,n){e||(e=new RegExp(`^(important(?:${n.generator.config.separators.join("|")})|!)`));let r,s=t.match(e);if(s?r=t.slice(s[0].length):t.endsWith("!")&&(r=t.slice(0,-1)),r)return{matcher:r,body:i=>(i.forEach(o=>{o[1]!=null&&(o[1]+=" !important")}),i)}}}}var Ea=(0,R.variantParentMatcher)("print","@media print"),Aa={name:"media",match(e,t){let n=(0,R.variantGetParameter)("media-",e,t.generator.config.separators);if(n){let[r,s]=n,i=u.bracket(r)??"";if(i===""&&(i=t.theme.media?.[r]??""),i)return{matcher:s,handle:(o,l)=>l({...o,parent:`${o.parent?`${o.parent} $$ `:""}@media ${i}`})}}},multiPass:!0},ja={name:"selector",match(e,t){let n=(0,R.variantGetBracket)("selector-",e,t.generator.config.separators);if(n){let[r,s]=n,i=u.bracket(r);if(i)return{matcher:s,selector:()=>i}}}},Ra={name:"layer",match(e,t){let n=(0,R.variantGetParameter)("layer-",e,t.generator.config.separators);if(n){let[r,s]=n,i=u.bracket(r)??r;if(i)return{matcher:s,handle:(o,l)=>l({...o,parent:`${o.parent?`${o.parent} $$ `:""}@layer ${i}`})}}}},za={name:"uno-layer",match(e,t){let n=(0,R.variantGetParameter)("uno-layer-",e,t.generator.config.separators);if(n){let[r,s]=n,i=u.bracket(r)??r;if(i)return{matcher:s,layer:i}}}},_a={name:"scope",match(e,t){let n=(0,R.variantGetBracket)("scope-",e,t.generator.config.separators);if(n){let[r,s]=n,i=u.bracket(r);if(i)return{matcher:s,selector:o=>`${i} $$ ${o}`}}}},Pa={name:"variables",match(e,t){if(!e.startsWith("["))return;let[n,r]=(0,R.getBracket)(e,"[","]")??[];if(!(n&&r))return;let s;for(let l of t.generator.config.separators)if(r.startsWith(l)){s=r.slice(l.length);break}if(s==null)return;let i=u.bracket(n)??"",o=i.startsWith("@");if(o||i.includes("&"))return{matcher:s,handle(l,a){let c=o?{parent:`${l.parent?`${l.parent} $$ `:""}${i}`}:{selector:i.replace(/&/g,l.selector)};return a({...l,...c})}}},multiPass:!0},Oa={name:"theme-variables",match(e,t){if((0,R.hasThemeFn)(e))return{matcher:e,handle(n,r){return r({...n,entries:JSON.parse((0,R.transformThemeFn)(JSON.stringify(n.entries),t.theme))})}}}},xr=/^-?[0-9.]+(?:[a-z]+|%)?$/,yr=/-?[0-9.]+(?:[a-z]+|%)?/,Ma=[/\b(opacity|color|flex|backdrop-filter|^filter|transform)\b/];function La(e){let t=e.match(ye)||e.match(Je);if(t){let[n,r]=le(`(${t[2]})${t[3]}`,"(",")"," ")??[];if(n)return`calc(${t[1]}${n} * -1)${r?` ${r}`:""}`}}var Ta=/\b(hue-rotate)\s*(\(.*)/;function Fa(e){let t=e.match(Ta);if(t){let[n,r]=le(t[2],"(",")"," ")??[];if(n){let s=xr.test(n.slice(1,-1))?n.replace(yr,i=>i.startsWith("-")?i.slice(1):`-${i}`):`(calc(${n} * -1))`;return`${t[1]}${s}${r?` ${r}`:""}`}}}var Na={name:"negative",match(e){if(e.startsWith("-"))return{matcher:e.slice(1),body:t=>{if(t.find(r=>r[0]===tt))return;let n=!1;return t.forEach(r=>{let s=r[1]?.toString();if(!s||s==="0"||Ma.some(l=>l.test(r[0])))return;let i=La(s);if(i){r[1]=i,n=!0;return}let o=Fa(s);if(o){r[1]=o,n=!0;return}xr.test(s)&&(r[1]=s.replace(yr,l=>l.startsWith("-")?l.slice(1):`-${l}`),n=!0)}),n?t:[]}}}};function Wa(){return Et({getBracket:ne.getBracket,h:u,variantGetBracket:ne.variantGetBracket})}function Ba(){return At({getBracket:ne.getBracket,h:u,variantGetBracket:ne.variantGetBracket})}function Ia(e={}){return jt(e,{getBracket:ne.getBracket,h:u,variantGetBracket:ne.variantGetBracket})}var Ua=Rt(),Da={name:"starting",match(e){if(e.startsWith("starting:"))return{matcher:e.slice(9),handle:(t,n)=>n({...t,parent:"@starting-style"})}}},Va={name:"supports",match(e,t){let n=(0,R.variantGetParameter)("supports-",e,t.generator.config.separators);if(n){let[r,s]=n,i=u.bracket(r)??"";if(i===""&&(i=t.theme.supports?.[r]??""),i)return i.startsWith("(")&&i.endsWith(")")||(i=`(${i})`),{matcher:s,handle:(o,l)=>l({...o,parent:`${o.parent?`${o.parent} $$ `:""}@supports ${i}`})}}},multiPass:!0};function $r(e){return[da,wa,Ra,ja,za,Na,Da,Ca(),Va,Ea,Aa,ga(),...xa,...Wa(),Ba(),...Ia(e),Ua,...$a(e),...Sa,_a,...ba,ya,Pa,...ka(e),...ma(e),Oa]}function Ga(e){let t,n,r=2166136261;for(t=0,n=e.length;t<n;t++)r^=e.charCodeAt(t),r+=(r<<1)+(r<<4)+(r<<7)+(r<<8)+(r<<24);return`00000${(r>>>0).toString(36)}`.slice(-6)}function Ha(e,t,n,r){for(let s of Array.from(e.matchAll(n)))if(s!=null){let i=s[0],o=`${r}${Ga(i)}`;t.set(o,i),e=e.replace(i,o)}return e}function qa(e,t){for(let[n,r]of t.entries())e=e.replaceAll(n,r);return e}var Ka=/\/\/#\s*sourceMappingURL=.*\n?/g;function Ya(e){return e.includes("sourceMappingURL=")?e.replace(Ka,""):e}var Xa=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,Za=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,Ja=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function Qa(e){let t=[];for(let s of e.matchAll(Za))s.index!==0&&!/^[\s'"`]/.test(e[s.index-1]??"")||t.push(s[0]);for(let s of e.matchAll(Xa))t.push(s[0]);let n=new Map,r="@unocss-skip-arbitrary-brackets";return e=Ha(e,n,/-\[(?!&.+?;)[^\]]*\]/g,r),e&&e.split(ht).forEach(s=>{s.includes(r)&&(s=qa(s,n)),ve(s)&&!Ja.test(s)&&t.push(s)}),t}function wr(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return Qa(Ya(e))}}}function el(e){if(e.preflight)return[{layer:"preflights",getCSS({theme:t,generator:n}){if(t.preflightBase){let r=Object.entries(t.preflightBase);if(e.preflight==="on-demand"){let s=new Set(Array.from(n.activatedRules).map(i=>i[2]?.custom?.preflightKeys).filter(Boolean).flat());r=r.filter(([i])=>s.has(i))}if(r.length>0){let s=we(r);return e.variablePrefix!=="un-"&&(s=s.replace(/--un-/g,`--${e.variablePrefix}`)),j(t.preflightRoot??["*,::before,::after","::backdrop"]).map(i=>`${i}{${s}}`).join("")}}}}]}var tl={position:["relative","absolute","fixed","sticky","static"],globalKeyword:T},nl=(e={})=>(e.dark=e.dark??"class",e.attributifyPseudo=e.attributifyPseudo??!1,e.preflight=e.preflight??!0,e.variablePrefix=e.variablePrefix??"un-",{name:"@unocss/preset-mini",theme:gr,rules:cr,variants:$r(e),options:e,prefix:e.prefix,postprocess:rl(e.variablePrefix),preflights:el(e),extractorDefault:e.arbitraryVariants===!1?void 0:wr(),autocomplete:{shorthands:tl}}),vr=nl;function rl(e){if(e!=="un-")return t=>{t.entries.forEach(n=>{n[0]=n[0].replace(/^--un-/,`--${e}`),typeof n[1]=="string"&&(n[1]=n[1].replace(/var\(--un-/g,`var(--${e}`))})}}function sl(e){return e.replace(/-(\w)/g,(t,n)=>n?n.toUpperCase():"")}function kr(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Sr(e){return e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var Cr=["Webkit","Moz","ms"];function Er(e){let t={};function n(r){let s=t[r];if(s)return s;let i=sl(r);if(i!=="filter"&&i in e)return t[r]=Sr(i);i=kr(i);for(let o=0;o<Cr.length;o++){let l=`${Cr[o]}${i}`;if(l in e)return t[r]=Sr(kr(l))}return r}return({entries:r})=>r.forEach(s=>{s[0].startsWith("--")||(s[0]=n(s[0]))})}function Ar(e){return e.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<")}async function Vt(e={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let t=window,n=window.document,r=()=>n.documentElement,s=t.__unocss||{},i=Object.assign({},e,s.runtime),o=i.defaults||{},l=i.cloakAttribute??"un-cloak";i.autoPrefix&&(o.postprocess=j(o.postprocess)).unshift(Er(n.createElement("div").style)),i.configResolved?.(s,o);let a=await an(s,o),c=k=>{let A=e.rootElement?.();if(A){A.appendChild(k);return}i.inject?i.inject(k):r().prepend(k)},f=()=>i.rootElement?i.rootElement():n.body,h=new Map,d=!0,m=new Set,p,y,w=[],v=()=>new Promise(k=>{w.push(k),y!=null&&clearTimeout(y),y=setTimeout(()=>g().then(()=>{let A=w;w=[],A.forEach(_=>_())}),0)});function x(k,A=!1){if(k.nodeType!==1)return;let _=k;_.hasAttribute(l)&&_.removeAttribute(l),A&&_.querySelectorAll(`[${l}]`).forEach(O=>{O.removeAttribute(l)})}function b(k,A){let _=h.get(k);if(!_)if(_=n.createElement("style"),_.setAttribute("data-unocss-runtime-layer",k),h.set(k,_),A==null)c(_);else{let O=b(A),W=O.parentNode;W?W.insertBefore(_,O.nextSibling):c(_)}return _}async function g(){let k=[...m],A=await a.generate(k);return A.layers.reduce((O,W)=>(b(W,O).innerHTML=A.getLayer(W)??"",W),void 0),k.filter(O=>!A.matched.has(O)).forEach(O=>m.delete(O)),{...A,getStyleElement:O=>h.get(O),getStyleElements:()=>h}}async function $(k){let A=m.size;await a.applyExtractors(k,void 0,m),A!==m.size&&await v()}async function z(k=f()){let A=k&&k.outerHTML;A&&(await $(`${A} ${Ar(A)}`),x(r()),x(k,!0))}let G=new MutationObserver(k=>{d||k.forEach(async A=>{if(A.target.nodeType!==1)return;let _=A.target;for(let O of h)if(_===O[1])return;if(A.type==="childList")A.addedNodes.forEach(async O=>{if(O.nodeType!==1)return;let W=O;p&&!p(W)||(await $(W.outerHTML),x(W))});else{if(p&&!p(_))return;if(A.attributeName!==l){let O=Array.from(_.attributes).map(ae=>ae.value?`${ae.name}="${ae.value}"`:ae.name).join(" "),W=`<${_.tagName.toLowerCase()} ${O}>`;await $(W)}x(_)}})}),S=!1;function C(){if(S)return;let k=i.observer?.target?i.observer.target():f();k&&(G.observe(k,{childList:!0,subtree:!0,attributes:!0,attributeFilter:i.observer?.attributeFilter}),S=!0)}function E(){i.bypassDefined&&il(a.blocked),z(),C()}function N(){n.readyState==="loading"?t.addEventListener("DOMContentLoaded",E):E()}let F=t.__unocss_runtime=t.__unocss_runtime={version:a.version,uno:a,async extract(k){M(k)||(k.forEach(A=>m.add(A)),k=""),await $(k)},extractAll:z,inspect(k){p=k},toggleObserver(k){k===void 0?d=!d:d=!!k,!S&&!d&&N()},update:g,presets:t.__unocss_runtime?.presets??{}};i.ready?.(F)!==!1&&(d=!1,N())}function il(e=new Set){for(let t=0;t<document.styleSheets.length;t++){let n=document.styleSheets[t],r;try{if(r=n.cssRules||n.rules,!r)continue;Array.from(r).flatMap(s=>s.selectorText?.split(/,/g)||[]).forEach(s=>{s&&(s=s.trim(),s.startsWith(".")&&(s=s.slice(1)),e.add(s))})}catch{continue}}return e}Vt({defaults:{presets:[vr(),dn()]}});})();
|
|
11
|
+
`?i=!0:f!=="\r"&&i&&(i=!1,l===a.start||(this._splitChunk(a,l),a=a.next),a.prependRight(t))}l+=1}l=a.end,a=a.next}return this.outro=this.outro.replace(r,o),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,n){return ge.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),ge.insertLeft=!0),this.appendLeft(t,n)}insertRight(t,n){return ge.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),ge.insertRight=!0),this.prependRight(t,n)}move(t,n,r){if(t=t+this.offset,n=n+this.offset,r=r+this.offset,r>=t&&r<=n)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(n),this._split(r);let s=this.byStart[t],i=this.byEnd[n],o=s.previous,l=i.next,a=this.byStart[r];if(!a&&i===this.lastChunk)return this;let c=a?a.previous:this.lastChunk;return o&&(o.next=l),l&&(l.previous=o),c&&(c.next=s),a&&(a.previous=i),s.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=s.previous,this.lastChunk.next=null),s.previous=c,i.next=a||null,c||(this.firstChunk=s),a||(this.lastChunk=i),this}overwrite(t,n,r,s){return s=s||{},this.update(t,n,r,{...s,overwrite:!s.contentOnly})}update(t,n,r,s){if(t=t+this.offset,n=n+this.offset,typeof r!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length}if(n>this.original.length)throw new Error("end is out of bounds");if(t===n)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(t),this._split(n),s===!0&&(ge.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),ge.storeName=!0),s={storeName:!0});let i=s!==void 0?s.storeName:!1,o=s!==void 0?s.overwrite:!1;if(i){let c=this.original.slice(t,n);Object.defineProperty(this.storedNames,c,{writable:!0,value:!0,enumerable:!0})}let l=this.byStart[t],a=this.byEnd[n];if(l){let c=l;for(;c!==a;){if(c.next!==this.byStart[c.end])throw new Error("Cannot overwrite across a split point");c=c.next,c.edit("",!1)}l.edit(r,i,!o)}else{let c=new qe(t,n,"").edit(r,i);a.next=c,c.previous=a}return this}prepend(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this}prependLeft(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byEnd[t];return r?r.prependLeft(n):this.intro=n+this.intro,this}prependRight(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byStart[t];return r?r.prependRight(n):this.outro=n+this.outro,this}remove(t,n){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length}if(t===n)return this;if(t<0||n>this.original.length)throw new Error("Character is out of bounds");if(t>n)throw new Error("end must be greater than start");this._split(t),this._split(n);let r=this.byStart[t];for(;r;)r.intro="",r.outro="",r.edit(""),r=n>r.end?this.byStart[r.end]:null;return this}reset(t,n){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length}if(t===n)return this;if(t<0||n>this.original.length)throw new Error("Character is out of bounds");if(t>n)throw new Error("end must be greater than start");this._split(t),this._split(n);let r=this.byStart[t];for(;r;)r.reset(),r=n>r.end?this.byStart[r.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let t=this.outro.lastIndexOf(Se);if(t!==-1)return this.outro.substr(t+1);let n=this.outro,r=this.lastChunk;do{if(r.outro.length>0){if(t=r.outro.lastIndexOf(Se),t!==-1)return r.outro.substr(t+1)+n;n=r.outro+n}if(r.content.length>0){if(t=r.content.lastIndexOf(Se),t!==-1)return r.content.substr(t+1)+n;n=r.content+n}if(r.intro.length>0){if(t=r.intro.lastIndexOf(Se),t!==-1)return r.intro.substr(t+1)+n;n=r.intro+n}}while(r=r.previous);return t=this.intro.lastIndexOf(Se),t!==-1?this.intro.substr(t+1)+n:this.intro+n}slice(t=0,n=this.original.length-this.offset){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length}let r="",s=this.firstChunk;for(;s&&(s.start>t||s.end<=t);){if(s.start<n&&s.end>=n)return r;s=s.next}if(s&&s.edited&&s.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);let i=s;for(;s;){s.intro&&(i!==s||s.start===t)&&(r+=s.intro);let o=s.start<n&&s.end>=n;if(o&&s.edited&&s.end!==n)throw new Error(`Cannot use replaced character ${n} as slice end anchor.`);let l=i===s?t-s.start:0,a=o?s.content.length+n-s.end:s.content.length;if(r+=s.content.slice(l,a),s.outro&&(!o||s.end===n)&&(r+=s.outro),o)break;s=s.next}return r}snip(t,n){let r=this.clone();return r.remove(0,t),r.remove(n,r.original.length),r}_split(t){if(this.byStart[t]||this.byEnd[t])return;let n=this.lastSearchedChunk,r=n,s=t>n.end;for(;n;){if(n.contains(t))return this._splitChunk(n,t);if(n=s?this.byStart[n.end]:this.byEnd[n.start],n===r)return;r=n}}_splitChunk(t,n){if(t.edited&&t.content.length){let s=$n(this.original)(n);throw new Error(`Cannot split a chunk that has already been edited (${s.line}:${s.column} \u2013 "${t.original}")`)}let r=t.split(n);return this.byEnd[n]=t,this.byStart[n]=r,this.byEnd[r.end]=r,t===this.lastChunk&&(this.lastChunk=r),this.lastSearchedChunk=t,!0}toString(){let t=this.intro,n=this.firstChunk;for(;n;)t+=n.toString(),n=n.next;return t+this.outro}isEmpty(){let t=this.firstChunk;do if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return!1;while(t=t.next);return!0}length(){let t=this.firstChunk,n=0;do n+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return n}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){let n=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(n,""),this.outro.length)return!0;let r=this.lastChunk;do{let s=r.end,i=r.trimEnd(n);if(r.end!==s&&(this.lastChunk===r&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return!0;r=r.previous}while(r);return!1}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){let n=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(n,""),this.intro.length)return!0;let r=this.firstChunk;do{let s=r.end,i=r.trimStart(n);if(r.end!==s&&(r===this.lastChunk&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return!0;r=r.next}while(r);return!1}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(t,n){function r(i,o){return typeof n=="string"?n.replace(/\$(\$|&|\d+)/g,(l,a)=>a==="$"?"$":a==="&"?i[0]:+a<i.length?i[+a]:`$${a}`):n(...i,i.index,o,i.groups)}function s(i,o){let l,a=[];for(;l=i.exec(o);)a.push(l);return a}if(t.global)s(t,this.original).forEach(o=>{if(o.index!=null){let l=r(o,this.original);l!==o[0]&&this.overwrite(o.index,o.index+o[0].length,l)}});else{let i=this.original.match(t);if(i&&i.index!=null){let o=r(i,this.original);o!==i[0]&&this.overwrite(i.index,i.index+i[0].length,o)}}return this}_replaceString(t,n){let{original:r}=this,s=r.indexOf(t);return s!==-1&&(typeof n=="function"&&(n=n(t,s,r)),t!==n&&this.overwrite(s,s+t.length,n)),this}replace(t,n){return typeof t=="string"?this._replaceString(t,n):this._replaceRegexp(t,n)}_replaceAllString(t,n){let{original:r}=this,s=t.length;for(let i=r.indexOf(t);i!==-1;i=r.indexOf(t,i+s)){let o=r.slice(i,i+s),l=n;typeof n=="function"&&(l=n(o,i,r)),o!==l&&this.overwrite(i,i+s,l)}return this}replaceAll(t,n){if(typeof t=="string")return this._replaceAllString(t,n);if(!t.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(t,n)}};function wn(e,t,n){if(e==="")return;let r=e.length,s=0,i=!1,o=0;for(let l=0;l<r;l++)switch(e[l]){case t:i||(i=!0,o=l),s++;break;case n:if(--s,s<0)return;if(s===0)return[e.slice(o,l+1),e.slice(l+1),e.slice(0,o)];break}}function le(e,t,n,r){if(e===""||(M(r)&&(r=[r]),r.length===0))return;let s=e.length,i=0;for(let o=0;o<s;o++)switch(e[o]){case t:i++;break;case n:if(--i<0)return;break;default:for(let l of r){let a=l.length;if(a&&l===e.slice(o,o+a)&&i===0)return o===0||o===s-a?void 0:[e.slice(0,o),e.slice(o+a)]}}return[e,""]}function be(e,t,n,r="(",s=")"){n=n??10;let i=[],o=0;for(;e!=="";){if(++o>n)return;let l=le(e,r,s,t);if(!l)return;let[a,c]=l;i.push(a),e=c}if(i.length>0)return i}var Ze=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],vn=["srgb","srgb-linear","display-p3","a98-rgb","prophoto-rgb","rec2020","lab","oklab","xyz","xyz-d50","xyz-d65"],kn=["hsl","hwb","lch","oklch"],Sn=["shorter","longer","increasing","decreasing"],wt=["%alpha","<alpha-value>"],Cn=new RegExp(wt.map(e=>K(e)).join("|"),"g");function zs(e){return e?vn.some(t=>e.includes(t))||kn.some(t=>e.includes(t))||Sn.some(t=>e.includes(t)):!1}function _s(e=""){let t=En(e);if(t!=null){let{components:n,alpha:r}=t;return r==null?n:[...n,r]}}function oe(e=""){let t=Ps(e);if(t==null||t===!1)return;let{type:n,components:r,alpha:s}=t,i=n.toLowerCase();if(r.length!==0&&!(Ze.includes(i)&&![1,3].includes(r.length)))return{type:i,components:r.map(o=>typeof o=="string"?o.trim():o),alpha:typeof s=="string"?s.trim():s}}function xe(e){let t=e.alpha??1;return typeof t=="string"&&wt.includes(t)?1:t}function D(e,t){if(typeof e=="string")return e.replace(Cn,`${t??1}`);let{components:n}=e,{alpha:r,type:s}=e;return r=t??r,s=s.toLowerCase(),["hsla","rgba"].includes(s)?`${s}(${n.join(", ")}${r==null?"":`, ${r}`})`:(r=r==null?"":` / ${r}`,Ze.includes(s)?`${s}(${n.join(" ")}${r})`:`color(${s} ${n.join(" ")}${r})`)}function Ps(e){if(!e)return;let t=En(e);if(t!=null||(t=Os(e),t!=null)||(t=Ms(e),t!=null)||(t=Ts(e),t!=null)||(t=Fs(e),t!=null))return t}function En(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:{let n=Array.from(t,r=>Number.parseInt(r,16)).map(r=>r<<4|r);return{type:"rgb",components:n.slice(0,3),alpha:t.length===3?void 0:Math.round(n[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 Os(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Ms(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,n,r]=t,s=be(r,",",5);if(s){if([3,4].includes(s.length))return{type:n,components:s.slice(0,3),alpha:s[3]};if(s.length!==1)return!1}}var Ls=new RegExp(`^(${Ze.join("|")})\\((.+)\\)$`,"i");function Ts(e){let t=e.match(Ls);if(!t)return;let[,n,r]=t,s=An(`${n} ${r}`);if(s){let{alpha:i,components:[o,...l]}=s;return{type:o,components:l,alpha:i}}}function Fs(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let n=An(t[1]);if(n){let{alpha:r,components:[s,...i]}=n;return{type:s,components:i,alpha:r}}}function An(e){let t=be(e," ");if(!t)return;let n=t.length;if(t[n-2]==="/")return{components:t.slice(0,n-2),alpha:t[n-1]};if(t[n-2]!=null&&(t[n-2].endsWith("/")||t[n-1].startsWith("/"))){let i=t.splice(n-2);t.push(i.join(" ")),--n}let r=be(t[n-1],"/",2);if(!r)return;if(r.length===1||r[r.length-1]==="")return{components:t};let s=r.pop();return t[n-1]=r.join("/"),{components:t,alpha:s}}var jn=/theme\(\s*(['"])?(.*?)\1?\s*\)/g;function Ns(e){return e.includes("theme(")&&e.includes(")")}function Ws(e,t,n=!0){let r=Array.from(e.toString().matchAll(jn));if(!r.length)return e;let s=new Ke(e);for(let i of r){let o=i[2];if(!o)throw new Error("theme() expect exact one argument, but got 0");let l=Rn(o,t,n);l&&s.overwrite(i.index,i.index+i[0].length,l)}return s.toString()}function Rn(e,t,n=!0){let[r,s]=e.split("/"),i=r.trim().split(".").reduce((o,l)=>o?.[l],t);if(typeof i=="object"&&(i=i.DEFAULT),typeof i=="string"){if(s){let o=oe(i);o&&(i=D(o,s))}return i}else if(n)throw new Error(`theme of "${e}" did not found`)}function Bs(e){var t;let n=((t=e.match(/^-?\d+\.?\d*/))===null||t===void 0?void 0:t[0])||"",r=e.slice(n.length);if(r==="px"){let s=Number.parseFloat(n)-.1;return Number.isNaN(s)?e:`${s}${r}`}return`calc(${e} - 0.1px)`}function vt(e){let t=function(r,s){var i;let o=((i=this.__options)===null||i===void 0?void 0:i.sequence)||[];this.__options.sequence=[];for(let l of o){let a=e[l](r,s);if(a!=null)return a}};function n(r,s){return r.__options||(r.__options={sequence:[]}),r.__options.sequence.push(s),r}for(let r of Object.keys(e))Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get(){return n(this,r)}});return t}var Is=/icon\(\s*(['"])?(.*?)\1?\s*\)/g;function Us(e){return e.includes("icon(")&&e.includes(")")}var Ce="__pseudo_placeholder__",ce=Object.fromEntries([["first-letter","::first-letter"],["first-line","::first-line"],"any-link","link","visited","target",["open","[open]"],"default","checked","indeterminate","placeholder-shown","autofill","optional","required","valid","invalid","user-valid","user-invalid","in-range","out-of-range","read-only","read-write","empty","focus-within","hover","focus","focus-visible","active","enabled","disabled","popover-open","root","empty",["even-of-type",":nth-of-type(even)"],["even",":nth-child(even)"],["odd-of-type",":nth-of-type(odd)"],["odd",":nth-child(odd)"],["nth",`:nth-child(${Ce})`],["nth-last",`:nth-last-child(${Ce})`],["nth-last-of-type",`:nth-last-of-type(${Ce})`],["nth-of-type",`:nth-of-type(${Ce})`],"first-of-type",["first",":first-child"],"last-of-type",["last",":last-child"],"only-child","only-of-type",["backdrop-element","::backdrop"],["placeholder","::placeholder"],["before","::before"],["after","::after"],["file","::file-selector-button"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),kt=Object.keys(ce),fe=Object.fromEntries([["backdrop","::backdrop"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),St=Object.keys(fe),zn=["not","is","where","has"],Ct=Object.fromEntries([["selection",["::selection"," *::selection"]],["marker",["::marker"," *::marker"]]]),Ye=Object.entries(ce).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),Xe=Object.entries(fe).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),ie=zn.join("|"),xt=Object.keys(Ct).sort((e,t)=>t.length-e.length).join("|"),_n=["::-webkit-resizer","::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-corner","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::file-selector-button"],yt=Object.entries(ce).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),$t=Object.entries(fe).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|");function Pn(e,t,n,r){let{h:s,variantGetBracket:i}=r,o=new RegExp(`^(${K(t)}:)(\\S+)${K(n)}\\1`),l,a,c,f,h=p=>{var y;let w=i(`${e}-`,p,[]);if(!w)return;let[v,x]=w,b=s.bracket(v);if(b==null)return;let g=((y=x.split(l,1))===null||y===void 0?void 0:y[0])??"",$=`${t}${Y(g)}`;return[g,p.slice(p.length-(x.length-g.length-1)),b.includes("&")?b.replace(/&/g,$):`${$}${b}`]},d=p=>{let y=p.match(a)||p.match(c);if(!y)return;let[w,v,x]=y,b=y[3]??"",g=ce[x]||fe[x]||`:${x}`;return v&&(g=`:${v}(${g})`),[b,p.slice(w.length),`${t}${Y(b)}${g}`,x]},m=p=>{let y=p.match(f);if(!y)return;let[w,v,x]=y,b=y[3]??"",g=`:${v}(${x})`;return[b,p.slice(w.length),`${t}${Y(b)}${g}`]};return{name:`pseudo:${e}`,match(p,y){if(l&&a&&c||(l=new RegExp(`(?:${y.generator.config.separators.join("|")})`),a=new RegExp(`^${e}-(?:(?:(${ie})-)?(${Ye}))(?:(/[\\w-]+))?(?:${y.generator.config.separators.join("|")})`),c=new RegExp(`^${e}-(?:(?:(${ie})-)?(${Xe}))(?:(/[\\w-]+))?(?:${y.generator.config.separators.filter($=>$!=="-").join("|")})`),f=new RegExp(`^${e}-(?:(${ie})-)?\\[(.+)\\](?:(/[\\w-]+))?(?:${y.generator.config.separators.filter($=>$!=="-").join("|")})`)),!p.startsWith(e))return;let w=h(p)||d(p)||m(p);if(!w)return;let[v,x,b,g=""]=w;return{matcher:x,handle:($,z)=>z({...$,prefix:`${b}${n}${$.prefix}`.replace(o,"$1$2:"),sort:kt.indexOf(g)??St.indexOf(g)})}},multiPass:!0}}function Et(e){let{h:t}=e,n,r,s;return[{name:"pseudo",match(i,o){n&&r||(n=new RegExp(`^(${yt})(?:-(\\d+|\\[(\\w|[+-.])+\\]))?(?:${o.generator.config.separators.join("|")})`),r=new RegExp(`^(${$t})(?:${o.generator.config.separators.filter(a=>a!=="-").join("|")})`));let l=i.match(n)||i.match(r);if(l){let a=ce[l[1]]||fe[l[1]]||`:${l[1]}`;if(l[2]){let f;l[2].startsWith("[")&&l[2].endsWith("]")?f=t.bracket(l[2]):f=l[2],f&&(a=a.replace(Ce,f))}let c=kt.indexOf(l[1]);return c===-1&&(c=St.indexOf(l[1])),c===-1&&(c=void 0),{matcher:i.slice(l[0].length),handle:(f,h)=>{let d=a.includes("::")&&!_n.includes(a)?{pseudo:`${f.pseudo}${a}`}:{selector:`${f.selector}${a}`};return h({...f,...d,sort:c,noMerge:!0})}}}},multiPass:!0,autocomplete:`(${yt}|${$t}):`},{name:"pseudo:multi",match(i,o){s||(s=new RegExp(`^(${xt})(?:${o.generator.config.separators.join("|")})`));let l=i.match(s);if(l)return Ct[l[1]].map(a=>({matcher:i.slice(l[0].length),handle:(c,f)=>f({...c,pseudo:`${c.pseudo}${a}`})}))},multiPass:!1,autocomplete:`(${xt}):`}]}function At(e){let{getBracket:t,h:n}=e,r,s,i;return{match(o,l){r&&s||(r=new RegExp(`^(${ie})-(${Ye})(?:${l.generator.config.separators.join("|")})`),s=new RegExp(`^(${ie})-(${Xe})(?:${l.generator.config.separators.filter(c=>c!=="-").join("|")})`),i=new RegExp(`^(${ie})-(\\[.+\\])(?:${l.generator.config.separators.filter(c=>c!=="-").join("|")})`));let a=o.match(r)||o.match(s)||o.match(i);if(a){let c=a[1],f=t(a[2],"[","]")?n.bracket(a[2]):ce[a[2]]||fe[a[2]]||`:${a[2]}`;return{matcher:o.slice(a[0].length),selector:h=>`${h}:${c}(${f})`}}},multiPass:!0,autocomplete:`(${ie})-(${Ye}|${Xe}):`}}function jt(e,t){let n=!!e?.attributifyPseudo,r=e?.prefix??"";r=Y((Array.isArray(r)?r:[r]).filter(Boolean)[0]??"");let s=(i,o)=>Pn(i,n?`[${r}${i}=""]`:`.${r}${i}`,o,t);return[s("group"," "),s("peer","~"),s("parent",">"),s("previous","+")]}var Ds=/(part-\[(.+)\]:)(.+)/;function Rt(){return{match(e){let t=e.match(Ds);if(t){let n=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:r=>`${r}::${n}`}}},multiPass:!0}}function Vs(e,t,n={}){let r;return{name:e,match(s,i){r||(r=new RegExp(`^${K(e)}(?:${i.generator.config.separators.join("|")})`));let o=s.match(r);if(o){let l=s.slice(o[0].length),a=j(t).map(c=>({matcher:l,handle:(f,h)=>h({...f,...c(f)}),...n}));return a.length===1?a[0]:a}},autocomplete:`${e}:`}}function Gs(e,t){let n;return{name:e,match(r,s){n||(n=new RegExp(`^${K(e)}(?:${s.generator.config.separators.join("|")})`));let i=r.match(n);if(i)return{matcher:r.slice(i[0].length),handle:(o,l)=>l({...o,parent:`${o.parent?`${o.parent} $$ `:""}${t}`})}},autocomplete:`${e}:`}}function On(e,t,n){if(t.startsWith(`${e}[`)){let[r,s]=wn(t.slice(e.length),"[","]")??[];if(r&&s){for(let i of n)if(s.startsWith(i))return[r,s.slice(i.length),i];return[r,s,""]}}}function Mn(e,t,n){for(let r of j(e))if(t.startsWith(r)){let s=On(r,t,n);if(s){let[i="",o=s[1]]=Mn("/",s[1],n)??[];return[s[0],o,i]}for(let i of n.filter(o=>o!=="/")){let o=t.indexOf(i,r.length);if(o!==-1){let l=t.indexOf("/",r.length),a=l===-1||o<=l;return[t.slice(r.length,a?o:l),t.slice(o+i.length),a?"":t.slice(l+1,o)]}}}}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"]},Ee={...U,s:["-inset-inline-start"],start:["-inset-inline-start"],e:["-inset-inline-end"],end:["-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"]},Ae={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"],s:["-end-start","-start-start"],is:["-end-start","-start-start"],e:["-start-end","-end-end"],ie:["-start-end","-end-end"],ss:["-start-start"],"bs-is":["-start-start"],"is-bs":["-start-start"],se:["-start-end"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],es:["-end-start"],"be-is":["-end-start"],"is-be":["-end-start"],ee:["-end-end"],"be-ie":["-end-end"],"ie-be":["-end-end"]},Pt={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Ot=["x","y","z"],Ln=["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"],ue=Object.assign({},...Ln.map(e=>({[e.replace(/ /,"-")]:e})),...Ln.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),T=["inherit","initial","revert","revert-layer","unset"],ye=/^(calc|clamp|min|max)\s*\((.+)\)(.*)/,Je=/^(var)\s*\((.+)\)(.*)/,Qe=/^(-?\d*(?:\.\d+)?)(px|pt|pc|%|r?(?:em|ex|lh|cap|ch|ic)|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i,Wn=/^(-?\d*(?:\.\d+)?)$/,Bn=/^(px|[sld]?v[wh])$/i,In={px:1,vw:100,vh:100,svw:100,svh:100,dvw:100,dvh:100,lvh:100,lvw:100},Un=/^\[(color|image|length|size|position|quoted|string):/i,Hs=/,(?![^()]*\))/g,Mt=Ge({auto:()=>Ys,bracket:()=>ti,bracketOfColor:()=>ni,bracketOfLength:()=>ri,bracketOfPosition:()=>si,cssvar:()=>ii,degree:()=>ai,fraction:()=>ei,global:()=>li,number:()=>Js,numberWithUnit:()=>Ks,percent:()=>Qs,position:()=>fi,properties:()=>ci,px:()=>Zs,rem:()=>Xs,time:()=>oi}),qs=["color","border-color","background-color","outline-color","text-decoration-color","flex-grow","flex","flex-shrink","grid","grid-template-columns","grid-template-rows","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","border","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 V(e){return+e.toFixed(10)}function Ks(e){let t=e.match(Qe);if(!t)return;let[,n,r]=t,s=Number.parseFloat(n);if(r&&!Number.isNaN(s))return`${V(s)}${r}`}function Ys(e){if(e==="auto"||e==="a")return"auto"}function Xs(e){if(!e)return;if(Bn.test(e))return`${In[e]}${e}`;let t=e.match(Qe);if(!t)return;let[,n,r]=t,s=Number.parseFloat(n);if(!Number.isNaN(s))return s===0?"0":r?`${V(s)}${r}`:`${V(s/4)}rem`}function Zs(e){if(Bn.test(e))return`${In[e]}${e}`;let t=e.match(Qe);if(!t)return;let[,n,r]=t,s=Number.parseFloat(n);if(!Number.isNaN(s))return r?`${V(s)}${r}`:`${V(s)}px`}function Js(e){if(!Wn.test(e))return;let t=Number.parseFloat(e);if(!Number.isNaN(t))return V(t)}function Qs(e){if(e.endsWith("%")&&(e=e.slice(0,-1)),!Wn.test(e))return;let t=Number.parseFloat(e);if(!Number.isNaN(t))return`${V(t/100)}`}function ei(e){if(!e)return;if(e==="full")return"100%";let[t,n]=e.split("/"),r=Number.parseFloat(t)/Number.parseFloat(n);if(!Number.isNaN(r))return r===0?"0":`${V(r*100)}%`}function et(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let n,r,s=e.match(Un);if(s?(t||(r=s[1]),n=e.slice(s[0].length,-1)):n=e.slice(1,-1),!n||n==='=""')return;n.startsWith("--")&&(n=`var(${n})`);let i=0;for(let o of n)if(o==="[")i+=1;else if(o==="]"&&(i-=1,i<0))return;if(i)return;switch(r){case"string":return n.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_");case"quoted":return n.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(["\\])/g,"\\$1").replace(/^(.+)$/,'"$1"')}return n.replace(/(url\(.*?\))/g,o=>o.replace(/_/g,"\\_")).replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(?:calc|clamp|max|min)\((.*)/g,o=>{let l=[];return o.replace(/var\((--.+?)[,)]/g,(a,c)=>(l.push(c),a.replace(c,"--un-calc"))).replace(/(-?\d*\.?\d(?!-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ").replace(/--un-calc/g,()=>l.shift())})}}function ti(e){return et(e)}function ni(e){return et(e,"color")}function ri(e){return et(e,"length")}function si(e){return et(e,"position")}function ii(e){if(/^\$[^\s'"`;{}]/.test(e)){let[t,n]=e.slice(1).split(",");return`var(--${Y(t)}${n?`, ${n}`:""})`}}function oi(e){let t=e.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!t)return;let[,n,r]=t,s=Number.parseFloat(n);if(!Number.isNaN(s))return s===0&&!r?"0s":r?`${V(s)}${r}`:`${V(s)}ms`}function ai(e){let t=e.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!t)return;let[,n,r]=t,s=Number.parseFloat(n);if(!Number.isNaN(s))return s===0?"0deg":r?`${V(s)}${r}`:`${V(s)}deg`}function li(e){if(T.includes(e))return e}function ci(e){if(e.split(",").every(t=>qs.includes(t)))return e}function fi(e){if(["top","left","right","bottom","center"].includes(e))return e}var Lt=vt(Mt),u=Lt,tt="$$mini-no-negative";function B(e){return([t,n,r],{theme:s})=>{let i=s.spacing?.[r||"DEFAULT"]??u.bracket.cssvar.global.auto.fraction.rem(r);if(i!=null)return U[n].map(o=>[`${e}${o}`,i]);if(r?.startsWith("-")){let o=s.spacing?.[r.slice(1)];if(o!=null)return U[n].map(l=>[`${e}${l}`,`calc(${o} * -1)`])}}}function Tn(e,t,n="colors"){let r=e[n];function s(i,o){if(o.length===0)return i;if(!(!i||typeof i!="object"))for(let l=o.length;l>0;l--){let a=o.slice(0,l).join("-"),c=i[a.replace(/(-[a-z])/g,f=>f.slice(1).toUpperCase())]??i[a];if(c!=null)return l===o.length?c:s(c,o.slice(l))}}return s(r,t)}function Fn(e,t,n){return Tn(e,t,n)||Tn(e,t,"colors")}function je(e,t){let[n,r]=le(e,"[","]",["/",":"])??[];if(n!=null){let s=(n.match(Un)??[])[1];if(s==null||s===t)return[n,r]}}function he(e,t,n){let r=je(e,"color");if(!r)return;let[s,i]=r,o=s.replace(/([a-z])(\d)/g,"$1-$2").split(/-/g),[l]=o;if(!l)return;let a,c=u.bracketOfColor(s),f=c||s;if(u.numberWithUnit(f))return;if(/^#[\da-f]+$/i.test(f)?a=f:/^hex-[\da-fA-F]+$/.test(f)?a=`#${f.slice(4)}`:s.startsWith("$")&&(a=u.cssvar(s)),a=a||c,!a){let d=Fn(t,[s],n);typeof d=="string"&&(a=d)}let h="DEFAULT";if(!a){let d=o,m,[p]=o.slice(-1);/^\d+$/.test(p)&&(h=m=p,d=o.slice(0,-1));let y=Fn(t,d,n);typeof y=="object"?a=y[m??h]:typeof y=="string"&&!m&&(a=y)}return{opacity:i,name:l,no:h,color:a,cssColor:oe(a),alpha:u.bracket.cssvar.percent(i??"")}}function I(e,t,n,r){return([,s],{theme:i,generator:o})=>{let l=he(s??"",i,n);if(!l)return;let{alpha:a,color:c,cssColor:f}=l,h=o.config.envMode==="dev"&&c?` /* ${c} */`:"",d={};if(f)if(a!=null)d[e]=D(f,a)+h;else{let m=`--un-${t}-opacity`,p=D(f,`var(${m})`);p.includes(m)&&(d[m]=xe(f)),d[e]=p+h}else if(c)if(a!=null)d[e]=D(c,a)+h;else{let m=`--un-${t}-opacity`,p=D(c,`var(${m})`);p.includes(m)&&(d[m]=1),d[e]=p+h}if(r?.(d)!==!1)return d}}function Re(e,t){let n=[];e=j(e);for(let r=0;r<e.length;r++){let s=be(e[r]," ",6);if(!s||s.length<3)return e;let i=!1,o=s.indexOf("inset");o!==-1&&(s.splice(o,1),i=!0);let l="",a=s.at(-1);if(oe(s.at(0))){let c=oe(s.shift());c&&(l=`, ${D(c)}`)}else if(oe(a)){let c=oe(s.pop());c&&(l=`, ${D(c)}`)}else a&&a.startsWith("var(")&&(l=`, ${s.pop()}`);n.push(`${i?"inset ":""}${s.join(" ")} var(${t}${l})`)}return n}function ze(e,t,n){return e!=null&&!!he(e,t,n)?.color}var Nn=/[a-z]+/gi,_t=new WeakMap;function de({theme:e,generator:t},n="breakpoints"){let r=t?.userConfig?.theme?.[n]||e[n];if(!r)return;if(_t.has(e))return _t.get(e);let s=Object.entries(r).sort((i,o)=>Number.parseInt(i[1].replace(Nn,""))-Number.parseInt(o[1].replace(Nn,""))).map(([i,o])=>({point:i,size:o}));return _t.set(e,s),s}function Dn(e){return de(e,"verticalBreakpoints")}function P(e,t){return T.map(n=>[`${e}-${n}`,{[t??e]:n}])}function te(e){return e!=null&&ye.test(e)}function nt(e){return e[0]==="["&&e.slice(-1)==="]"&&(e=e.slice(1,-1)),ye.test(e)||Qe.test(e)}function $e(e,t,n){let r=t.split(Hs);return e||!e&&r.length===1?Pt[e].map(s=>[`--un-${n}${s}`,t]):r.map((s,i)=>[`--un-${n}-${Ot[i]}`,s])}var ne=Ge({CONTROL_MINI_NO_NEGATIVE:()=>tt,colorResolver:()=>I,colorableShadows:()=>Re,cornerMap:()=>Ae,cssMathFnRE:()=>ye,cssVarFnRE:()=>Je,directionMap:()=>U,directionSize:()=>B,globalKeywords:()=>T,h:()=>u,handler:()=>Lt,hasParseableColor:()=>ze,insetMap:()=>Ee,isCSSMathFn:()=>te,isSize:()=>nt,makeGlobalStaticRules:()=>P,parseColor:()=>he,positionMap:()=>ue,resolveBreakpoints:()=>de,resolveVerticalBreakpoints:()=>Dn,splitShorthand:()=>je,transformXYZ:()=>$e,valueHandlers:()=>Mt,xyzArray:()=>Ot,xyzMap:()=>Pt});mt(ne,zt);var R=Ge({CONTROL_MINI_NO_NEGATIVE:()=>tt,colorResolver:()=>I,colorableShadows:()=>Re,cornerMap:()=>Ae,cssMathFnRE:()=>ye,cssVarFnRE:()=>Je,directionMap:()=>U,directionSize:()=>B,globalKeywords:()=>T,h:()=>u,handler:()=>Lt,hasParseableColor:()=>ze,insetMap:()=>Ee,isCSSMathFn:()=>te,isSize:()=>nt,makeGlobalStaticRules:()=>P,parseColor:()=>he,positionMap:()=>ue,resolveBreakpoints:()=>de,resolveVerticalBreakpoints:()=>Dn,splitShorthand:()=>je,transformXYZ:()=>$e,valueHandlers:()=>Mt,xyzArray:()=>Ot,xyzMap:()=>Pt});mt(R,ne);var Vn={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]))},ui=[[/^(?:vertical|align|v)-(.+)$/,([,e])=>({"vertical-align":Vn[e]??u.bracket.cssvar.numberWithUnit(e)}),{autocomplete:[`(vertical|align|v)-(${Object.keys(Vn).join("|")})`,"(vertical|align|v)-<percentage>"]}]],Gn=["center","left","right","justify","start","end"],hi=[...Gn.map(e=>[`text-${e}`,{"text-align":e}]),...[...T,...Gn].map(e=>[`text-align-${e}`,{"text-align":e}])],di=[[/^outline-(?:width-|size-)?(.+)$/,er,{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,pi,{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,e],{theme:t})=>({"outline-offset":t.lineWidth?.[e]??u.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"}]];function er([,e],{theme:t}){return{"outline-width":t.lineWidth?.[e]??u.bracket.cssvar.global.px(e)}}function pi(e,t){return te(u.bracket(e[1]))?er(e,t):I("outline-color","outline-color","borderColor")(e,t)}var mi=[["appearance-auto",{"-webkit-appearance":"auto",appearance:"auto"}],["appearance-none",{"-webkit-appearance":"none",appearance:"none"}]];function gi(e){return u.properties.auto.global(e)??{contents:"contents",scroll:"scroll-position"}[e]}var bi=[[/^will-change-(.+)/,([,e])=>({"will-change":gi(e)})]],Te=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...T],xi=[[/^(?:border|b)()(?:-(.+))?$/,X,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,X],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,X],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,X],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,X],[/^(?:border|b)-()(?:width|size)-(.+)$/,X,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,X],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,X],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,X],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,X],[/^(?:border|b)-()(?:color-)?(.+)$/,_e,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,_e],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,_e],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,_e],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,_e],[/^(?: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)()(?:-(.+))?$/,Oe,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-$borderRadius","(rounded|rd)","(rounded|rd)-$borderRadius"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltbse])(?:-(.+))?$/,Oe],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,Oe],[/^(?:border-|b-)?(?:rounded|rd)-([bise][se])(?:-(.+))?$/,Oe],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,Oe],[/^(?:border|b)-(?:style-)?()(.+)$/,Me,{autocomplete:["(border|b)-style",`(border|b)-(${Te.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${Te.join("|")})`,`(border|b)-<directions>-style-(${Te.join("|")})`,`(border|b)-style-(${Te.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,Me],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,Me],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,Me],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,Me]];function Hn(e,t,n){if(t!=null)return{[`border${n}-color`]:D(e,t)};if(n===""){let r={},s="--un-border-opacity",i=D(e,`var(${s})`);return i.includes(s)&&(r[s]=typeof e=="string"?1:xe(e)),r["border-color"]=i,r}else{let r={},s="--un-border-opacity",i=`--un-border${n}-opacity`,o=D(e,`var(${i})`);return o.includes(i)&&(r[s]=typeof e=="string"?1:xe(e),r[i]=`var(${s})`),r[`border${n}-color`]=o,r}}function yi(e){return([,t],n)=>{let r=he(t,n,"borderColor");if(!r)return;let{alpha:s,color:i,cssColor:o}=r;if(o)return Hn(o,s,e);if(i)return Hn(i,s,e)}}function X([,e="",t],{theme:n}){let r=n.lineWidth?.[t||"DEFAULT"]??u.bracket.cssvar.global.px(t||"1");if(e in U&&r!=null)return U[e].map(s=>[`border${s}-width`,r])}function _e([,e="",t],n){if(e in U){if(te(u.bracket(t)))return X(["",e,t],n);if(ze(t,n.theme,"borderColor"))return Object.assign({},...U[e].map(r=>yi(r)(["",t],n.theme)))}}function Pe([,e="",t]){let n=u.bracket.percent.cssvar(t);if(e in U&&n!=null)return U[e].map(r=>[`--un-border${r}-opacity`,n])}function Oe([,e="",t],{theme:n}){let r=n.borderRadius?.[t||"DEFAULT"]||u.bracket.cssvar.global.fraction.rem(t||"1");if(e in Ae&&r!=null)return Ae[e].map(s=>[`border${s}-radius`,r])}function Me([,e="",t]){if(Te.includes(t)&&e in U)return U[e].map(n=>[`border${n}-style`,t])}var $i=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:u.bracket.percent.cssvar(e)})]],wi=/^\[url\(.+\)\]$/,vi=/^\[(?:length|size):.+\]$/,ki=/^\[position:.+\]$/,Si=/^\[(?:linear|conic|radial)-gradient\(.+\)\]$/,Ci=/^\[image:.+\]$/,Ei=[[/^bg-(.+)$/,(...e)=>{let t=e[0][1];if(wi.test(t))return{"--un-url":u.bracket(t),"background-image":"var(--un-url)"};if(vi.test(t)&&u.bracketOfLength(t)!=null)return{"background-size":u.bracketOfLength(t).split(" ").map(n=>u.fraction.auto.px.cssvar(n)??n).join(" ")};if((nt(t)||ki.test(t))&&u.bracketOfPosition(t)!=null)return{"background-position":u.bracketOfPosition(t).split(" ").map(n=>u.position.fraction.auto.px.cssvar(n)??n).join(" ")};if(Si.test(t)||Ci.test(t)){let n=u.bracket(t);if(n)return{"background-image":(n.startsWith("http")?`url(${n})`:u.cssvar(n))??n}}return I("background-color","bg","backgroundColor")(...e)},{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":u.bracket.percent.cssvar(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]],Ai=[[/^color-scheme-(\w+)$/,([,e])=>({"color-scheme":e})]],ji=[[/^@container(?:\/(\w+))?(?:-(normal|inline-size|size))?$/,([,e,t])=>({"container-type":t??"inline-size","container-name":e})]],qn=["solid","double","dotted","dashed","wavy",...T],Ri=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,e])=>({"text-decoration-line":e}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,tr,{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,e])=>({"text-decoration-thickness":e}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,zi,{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":u.bracket.percent.cssvar(e)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,e],{theme:t})=>({"text-underline-offset":t.lineWidth?.[e]??u.auto.bracket.cssvar.global.px(e)}),{autocomplete:"(underline|decoration)-(offset)-<num>"}],...qn.map(e=>[`underline-${e}`,{"text-decoration-style":e}]),...qn.map(e=>[`decoration-${e}`,{"text-decoration-style":e}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];function tr([,e],{theme:t}){return{"text-decoration-thickness":t.lineWidth?.[e]??u.bracket.cssvar.global.px(e)}}function zi(e,t){if(te(u.bracket(e[1])))return tr(e,t);let n=I("text-decoration-color","line","borderColor")(e,t);if(n)return{"-webkit-text-decoration-color":n["text-decoration-color"],...n}}var _i=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,e])=>({flex:u.bracket(e)!=null?u.bracket(e).split(" ").map(t=>u.cssvar.fraction(t)??t).join(" "):u.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":u.bracket.cssvar.number(e)??1}),{autocomplete:["flex-shrink-<num>","shrink-<num>"]}],[/^(?:flex-)?grow(?:-(.*))?$/,([,e=""])=>({"flex-grow":u.bracket.cssvar.number(e)??1}),{autocomplete:["flex-grow-<num>","grow-<num>"]}],[/^(?:flex-)?basis-(.+)$/,([,e],{theme:t})=>({"flex-basis":t.spacing?.[e]??u.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"}]],Pi={"":"",x:"column-",y:"row-",col:"column-",row:"row-"};function Tt([,e="",t],{theme:n}){let r=n.spacing?.[t]??u.bracket.cssvar.global.rem(t);if(r!=null)return{[`${Pi[e]}gap`]:r}}var Oi=[[/^(?:flex-|grid-)?gap-?()(.+)$/,Tt,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,Tt,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}],[/^(?:flex-|grid-)?gap-(col|row)-?(.+)$/,Tt,{autocomplete:["gap-(col|row)-$spacing","gap-(col|row)-<num>"]}]];function J(e){return e.replace("col","column")}function Ft(e){return e[0]==="r"?"Row":"Column"}function Mi(e,t,n){let r=t[`gridAuto${Ft(e)}`]?.[n];if(r!=null)return r;switch(n){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return u.bracket.cssvar.auto.rem(n)}var Li=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:n})=>({[`grid-${J(e)}`]:n[`grid${Ft(e)}`]?.[t]??u.bracket.cssvar.auto(t)})],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${J(e)}`]:"1/-1"};let n=u.bracket.number(t);if(n!=null)return{[`grid-${J(e)}`]:`span ${n}/span ${n}`}},{autocomplete:"(grid-row|grid-col|row|col)-span-<num>"}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,e,t])=>({[`grid-${J(e)}-start`]:u.bracket.cssvar(t)??t})],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>({[`grid-${J(e)}-end`]:u.bracket.cssvar(t)??t}),{autocomplete:"(grid-row|grid-col|row|col)-(start|end)-<num>"}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:n})=>({[`grid-auto-${J(e)}`]:Mi(e,n,t)}),{autocomplete:"(grid-auto|auto)-(rows|cols)-<num>"}],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":u.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,e])=>({"grid-auto-flow":J(e).replace("-"," ")}),{autocomplete:["(grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)"]}],[/^(?:grid-)?(rows|cols)-(.+)$/,([,e,t],{theme:n})=>({[`grid-template-${J(e)}`]:n[`gridTemplate${Ft(e)}`]?.[t]??u.bracket.cssvar(t)})],[/^(?:grid-)?(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${J(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^(?:grid-)?(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${J(e)}`]:`repeat(${t},minmax(0,1fr))`}),{autocomplete:"(grid-rows|grid-cols|rows|cols)-<num>"}],[/^grid-area(s)?-(.+)$/,([,e,t])=>e!=null?{"grid-template-areas":u.cssvar(t)??t.split("-").map(n=>`"${u.bracket(n)}"`).join(" ")}:{"grid-area":u.bracket.cssvar(t)}],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}],["grid-rows-subgrid",{"grid-template-rows":"subgrid"}],["grid-cols-subgrid",{"grid-template-columns":"subgrid"}]],rt=["auto","hidden","clip","visible","scroll","overlay",...T],Ti=[[/^(?:overflow|of)-(.+)$/,([,e])=>rt.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-(${rt.join("|")})`,`(overflow|of)-(x|y)-(${rt.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>rt.includes(t)?{[`overflow-${e}`]:t}:void 0]],Fi=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e}),{autocomplete:["(position|pos)-<position>","(position|pos)-<globalKeyword>","<position>"]}],[/^(?:position-|pos-)([-\w]+)$/,([,e])=>T.includes(e)?{position:e}:void 0],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],nr=[["justify-start",{"justify-content":"flex-start"}],["justify-end",{"justify-content":"flex-end"}],["justify-center",{"justify-content":"center"}],["justify-between",{"justify-content":"space-between"}],["justify-around",{"justify-content":"space-around"}],["justify-evenly",{"justify-content":"space-evenly"}],["justify-stretch",{"justify-content":"stretch"}],["justify-left",{"justify-content":"left"}],["justify-right",{"justify-content":"right"}],["justify-center-safe",{"justify-content":"safe center"}],["justify-end-safe",{"justify-content":"safe flex-end"}],["justify-normal",{"justify-content":"normal"}],...P("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"}],["justify-items-center-safe",{"justify-items":"safe center"}],["justify-items-end-safe",{"justify-items":"safe flex-end"}],...P("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"}],["justify-self-baseline",{"justify-self":"baseline"}],["justify-self-center-safe",{"justify-self":"safe center"}],["justify-self-end-safe",{"justify-self":"safe flex-end"}],...P("justify-self")],Ni=[[/^order-(.+)$/,([,e])=>({order:u.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],rr=[["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"}],["content-baseline",{"align-content":"baseline"}],["content-center-safe",{"align-content":"safe center"}],["content-end-safe",{"align-content":"safe flex-end"}],["content-stretch",{"align-content":"stretch"}],["content-normal",{"align-content":"normal"}],...P("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"}],["items-baseline-last",{"align-items":"last baseline"}],["items-center-safe",{"align-items":"safe center"}],["items-end-safe",{"align-items":"safe flex-end"}],...P("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"}],["self-baseline-last",{"align-self":"last baseline"}],["self-center-safe",{"align-self":"safe center"}],["self-end-safe",{"align-self":"safe flex-end"}],...P("self","align-self")],sr=[["place-content-center",{"place-content":"center"}],["place-content-start",{"place-content":"start"}],["place-content-end",{"place-content":"end"}],["place-content-between",{"place-content":"space-between"}],["place-content-around",{"place-content":"space-around"}],["place-content-evenly",{"place-content":"space-evenly"}],["place-content-stretch",{"place-content":"stretch"}],["place-content-baseline",{"place-content":"baseline"}],["place-content-center-safe",{"place-content":"safe center"}],["place-content-end-safe",{"place-content":"safe flex-end"}],...P("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"}],["place-items-baseline",{"place-items":"baseline"}],["place-items-center-safe",{"place-items":"safe center"}],["place-items-end-safe",{"place-items":"safe flex-end"}],...P("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"}],["place-self-center-safe",{"place-self":"safe center"}],["place-self-end-safe",{"place-self":"safe flex-end"}],...P("place-self")],Wi=[...nr,...rr,...sr].flatMap(([e,t])=>[[`flex-${e}`,t],[`grid-${e}`,t]]);function Nt(e,{theme:t}){return t.spacing?.[e]??u.bracket.cssvar.global.auto.fraction.rem(e)}function Le([,e,t],n){let r=Nt(t,n);if(r!=null&&e in Ee)return Ee[e].map(s=>[s.slice(1),r])}var Bi=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:Nt(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-)?(start|end)-(.+)$/,Le],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,Le],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,Le],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,Le],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,Le],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],n)=>({[e]:Nt(t,n)})]],Ii=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-start",{float:"inline-start"}],["float-end",{float:"inline-end"}],["float-none",{float:"none"}],...P("float"),["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-start",{clear:"inline-start"}],["clear-end",{clear:"inline-end"}],["clear-none",{clear:"none"}],...P("clear")],Ui=[[/^(?:position-|pos-)?z([\d.]+)$/,([,e])=>({"z-index":u.number(e)})],[/^(?:position-|pos-)?z-(.+)$/,([,e],{theme:t})=>({"z-index":t.zIndex?.[e]??u.bracket.cssvar.global.auto.number(e)}),{autocomplete:"z-<num>"}]],Di=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}],...P("box","box-sizing")],Vi=[[/^(where|\?)$/,(e,{constructCSS:t,generator:n})=>{if(n.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}} ${t({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]],Gi=["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"],Hi=["none","strict","content","size","inline-size","layout","style","paint"],ir=" ",qi=[["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:u.bracket.cssvar.global(e)})]],Ki=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}],...P("backface","backface-visibility")],Yi=[[/^cursor-(.+)$/,([,e])=>({cursor:u.bracket.cssvar.global(e)})],...Gi.map(e=>[`cursor-${e}`,{cursor:e}])],Xi=[[/^contain-(.*)$/,([,e])=>u.bracket(e)!=null?{contain:u.bracket(e).split(" ").map(t=>u.cssvar.fraction(t)??t).join(" ")}:Hi.includes(e)?{contain:e}:void 0]],Zi=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}],...P("pointer-events")],Ji=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}],...P("resize")],Qi=[["select-auto",{"-webkit-user-select":"auto","user-select":"auto"}],["select-all",{"-webkit-user-select":"all","user-select":"all"}],["select-text",{"-webkit-user-select":"text","user-select":"text"}],["select-none",{"-webkit-user-select":"none","user-select":"none"}],...P("select","user-select")],eo=[[/^(?: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)"}]],to=[[/^intrinsic(?:-(block|inline|w|h))?(?:-size)?-(.+)$/,([,e,t])=>({[`contain-intrinsic-${{block:"block-size",inline:"inline-size",w:"width",h:"height"}[e]??"size"}`]:u.bracket.cssvar.global.fraction.rem(t)}),{autocomplete:["intrinsic-size-<num>","intrinsic-<num>","intrinsic-(block|inline|w|h)-<num>"]}],["content-visibility-visible",{"content-visibility":"visible"}],["content-visibility-hidden",{"content-visibility":"hidden"}],["content-visibility-auto",{"content-visibility":"auto"}],...P("content-visibility")],no=[[/^content-(.+)$/,([,e])=>({content:u.bracket.cssvar(e)})],["content-empty",{content:'""'}],["content-none",{content:"none"}]],ro=[["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"}],["break-anywhere",{"overflow-wrap":"anywhere"}]],so=[["text-wrap",{"text-wrap":"wrap"}],["text-nowrap",{"text-wrap":"nowrap"}],["text-balance",{"text-wrap":"balance"}],["text-pretty",{"text-wrap":"pretty"}]],io=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],oo=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}],...P("case","text-transform")],ao=[["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"}]],lo=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"}]],co=[["field-sizing-fixed",{"field-sizing":"fixed"}],["field-sizing-content",{"field-sizing":"content"}]],Bt={"--un-ring-inset":ir,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgb(147 197 253 / 0.5)","--un-shadow":"0 0 rgb(0 0 0 / 0)"},fo=Object.keys(Bt),uo=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{let n=t.ringWidth?.[e||"DEFAULT"]??u.px(e||"1");if(n)return{"--un-ring-width":n,"--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)"}},{custom:{preflightKeys:fo},autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,or,{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]??u.bracket.cssvar.px(e)}),{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,ho,{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":u.bracket.percent.cssvar(e)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,I("--un-ring-offset-color","ring-offset","borderColor"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":u.bracket.percent.cssvar(e)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];function or([,e],{theme:t}){return{"--un-ring-width":t.ringWidth?.[e]??u.bracket.cssvar.px(e)}}function ho(e,t){return te(u.bracket(e[1]))?or(e,t):I("--un-ring-color","ring","borderColor")(e,t)}var It={"--un-ring-offset-shadow":"0 0 rgb(0 0 0 / 0)","--un-ring-shadow":"0 0 rgb(0 0 0 / 0)","--un-shadow-inset":ir,"--un-shadow":"0 0 rgb(0 0 0 / 0)"},po=Object.keys(It),mo=[[/^shadow(?:-(.+))?$/,(e,t)=>{let[,n]=e,{theme:r}=t,s=r.boxShadow?.[n||"DEFAULT"],i=n?u.bracket.cssvar(n):void 0;return(s!=null||i!=null)&&!ze(i,r,"shadowColor")?{"--un-shadow":Re(s||i,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}:I("--un-shadow-color","shadow","shadowColor")(e,t)},{custom:{preflightKeys:po},autocomplete:["shadow-$colors","shadow-$boxShadow"]}],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":u.bracket.percent.cssvar(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]],go={h:"height",w:"width",inline:"inline-size",block:"block-size"};function pe(e,t){return`${e||""}${go[t]}`}function st(e,t,n,r){let s=n[pe(e,t).replace(/-(\w)/g,(i,o)=>o.toUpperCase())]?.[r];if(s!=null)return s;switch(r){case"fit":case"max":case"min":return`${r}-content`;case"stretch":return"stretch"}return u.bracket.cssvar.global.auto.fraction.rem(r)}var bo=[[/^size-(min-|max-)?(.+)$/,([,e,t],{theme:n})=>({[pe(e,"w")]:st(e,"w",n,t),[pe(e,"h")]:st(e,"h",n,t)})],[/^(?:size-)?(min-|max-)?([wh])-?(.+)$/,([,e,t,n],{theme:r})=>({[pe(e,t)]:st(e,t,r,n)})],[/^(?:size-)?(min-|max-)?(block|inline)-(.+)$/,([,e,t,n],{theme:r})=>({[pe(e,t)]:st(e,t,r,n)}),{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","(w|h)-full","(max|min)-(w|h)-full"]}],[/^(?:size-)?(min-|max-)?(h)-screen-(.+)$/,([,e,t,n],r)=>({[pe(e,t)]:Kn(r,n,"verticalBreakpoints")})],[/^(?:size-)?(min-|max-)?(w)-screen-(.+)$/,([,e,t,n],r)=>({[pe(e,t)]:Kn(r,n)}),{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 Kn(e,t,n="breakpoints"){let r=de(e,n);if(r)return r.find(s=>s.point===t)?.size}function xo(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return u.bracket.cssvar.global.auto.number(e)}var yo=[[/^(?:size-)?aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":xo(e)}),{autocomplete:["aspect-(square|video|ratio)","aspect-ratio-(square|video)"]}]],$o=[[/^pa?()-?(.+)$/,B("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,B("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(.+))?$/,B("padding")],[/^p-?([rltbse])(?:-?(.+))?$/,B("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(.+))?$/,B("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(.+))?$/,B("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],wo=[[/^ma?()-?(.+)$/,B("margin")],[/^m-?xy()()$/,B("margin")],[/^m-?([xy])(?:-?(.+))?$/,B("margin")],[/^m-?([rltbse])(?:-?(.+))?$/,B("margin")],[/^m-(block|inline)(?:-(.+))?$/,B("margin")],[/^m-?([bi][se])(?:-?(.+))?$/,B("margin")]],vo=[[/^fill-(.+)$/,I("fill","fill","backgroundColor"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":u.bracket.percent.cssvar(e)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,ar,{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":u.bracket.cssvar.number(e)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,e],{theme:t})=>({"stroke-dashoffset":t.lineWidth?.[e]??u.bracket.cssvar.px.numberWithUnit(e)}),{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,ko,{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":u.bracket.percent.cssvar(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"}]];function ar([,e],{theme:t}){return{"stroke-width":t.lineWidth?.[e]??u.bracket.cssvar.fraction.px.number(e)}}function ko(e,t){return te(u.bracket(e[1]))?ar(e,t):I("stroke","stroke","borderColor")(e,t)}var it=["translate","rotate","scale"],So=["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","rotate(var(--un-rotate))","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))"].join(" "),me=["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(" "),Co=["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(" "),Ut={"--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},Q=Object.keys(Ut),Eo=[[/^(?:transform-)?origin-(.+)$/,([,e])=>({"transform-origin":ue[e]??u.bracket.cssvar(e)}),{autocomplete:[`transform-origin-(${Object.keys(ue).join("|")})`,`origin-(${Object.keys(ue).join("|")})`]}],[/^(transform-)?perspect(?:ive)?-(.+)$/,([,e,t])=>{let n=u.bracket.cssvar.px.numberWithUnit(t);if(n!=null)return e?{"--un-perspective":`perspective(${n})`,transform:`var(--un-perspective) ${me}`}:{"-webkit-perspective":n,perspective:n}}],[/^perspect(?:ive)?-origin-(.+)$/,([,e])=>{let t=u.bracket.cssvar(e)??(e.length>=3?ue[e]:void 0);if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,Yn,{custom:{preflightKeys:Q}}],[/^(?:transform-)?translate-([xyz])-(.+)$/,Yn,{custom:{preflightKeys:Q}}],[/^(?:transform-)?rotate-()(.+)$/,Zn,{custom:{preflightKeys:Q}}],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Zn,{custom:{preflightKeys:Q}}],[/^(?:transform-)?skew-()(.+)$/,Jn,{custom:{preflightKeys:Q}}],[/^(?:transform-)?skew-([xy])-(.+)$/,Jn,{custom:{preflightKeys:Q},autocomplete:["transform-skew-(x|y)-<percent>","skew-(x|y)-<percent>"]}],[/^(?:transform-)?scale-()(.+)$/,Xn,{custom:{preflightKeys:Q}}],[/^(?:transform-)?scale-([xyz])-(.+)$/,Xn,{custom:{preflightKeys:Q},autocomplete:[`transform-(${it.join("|")})-<percent>`,`transform-(${it.join("|")})-(x|y|z)-<percent>`,`(${it.join("|")})-<percent>`,`(${it.join("|")})-(x|y|z)-<percent>`]}],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],["transform",{transform:me},{custom:{preflightKeys:Q}}],["transform-cpu",{transform:So},{custom:{preflightKeys:["--un-translate-x","--un-translate-y","--un-rotate","--un-rotate-z","--un-skew-x","--un-skew-y","--un-scale-x","--un-scale-y"]}}],["transform-gpu",{transform:Co},{custom:{preflightKeys:Q}}],["transform-none",{transform:"none"}],...P("transform")];function Yn([,e,t],{theme:n}){let r=n.spacing?.[t]??u.bracket.cssvar.fraction.rem(t);if(r!=null)return[...$e(e,r,"translate"),["transform",me]]}function Xn([,e,t]){let n=u.bracket.cssvar.fraction.percent(t);if(n!=null)return[...$e(e,n,"scale"),["transform",me]]}function Zn([,e="",t]){let n=u.bracket.cssvar.degree(t);if(n!=null)return e?{"--un-rotate":0,[`--un-rotate-${e}`]:n,transform:me}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":n,transform:me}}function Jn([,e,t]){let n=u.bracket.cssvar.degree(t);if(n!=null)return[...$e(e,n,"skew"),["transform",me]]}function Qn(e,t){let n;if(u.cssvar(e)!=null)n=u.cssvar(e);else{e.startsWith("[")&&e.endsWith("]")&&(e=e.slice(1,-1));let r=e.split(",").map(s=>t.transitionProperty?.[s]??u.properties(s));r.every(Boolean)&&(n=r.join(","))}return n}var Ao=[[/^transition(?:-(\D+?))?(?:-(\d+))?$/,([,e,t],{theme:n})=>{if(!e&&!t)return{"transition-property":n.transitionProperty?.DEFAULT,"transition-timing-function":n.easing?.DEFAULT,"transition-duration":n.duration?.DEFAULT??u.time("150")};if(e!=null){let r=Qn(e,n),s=n.duration?.[t||"DEFAULT"]??u.time(t||"150");if(r)return{"transition-property":r,"transition-timing-function":n.easing?.DEFAULT,"transition-duration":s}}else if(t!=null)return{"transition-property":n.transitionProperty?.DEFAULT,"transition-timing-function":n.easing?.DEFAULT,"transition-duration":n.duration?.[t]??u.time(t)}},{autocomplete:"transition-$transitionProperty-$duration"}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>({"transition-duration":t.duration?.[e||"DEFAULT"]??u.bracket.cssvar.time(e)}),{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,e],{theme:t})=>({"transition-delay":t.duration?.[e||"DEFAULT"]??u.bracket.cssvar.time(e)}),{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,e],{theme:t})=>({"transition-timing-function":t.easing?.[e||"DEFAULT"]??u.bracket.cssvar(e)}),{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,e],{theme:t})=>{let n=u.global(e)||Qn(e,t);if(n)return{"transition-property":n}},{autocomplete:[`transition-property-(${[...T].join("|")})`,"transition-property-$transitionProperty","property-$transitionProperty"]}],["transition-none",{transition:"none"}],...P("transition"),["transition-discrete",{"transition-behavior":"allow-discrete"}],["transition-normal",{"transition-behavior":"normal"}]],jo=[[/^text-(.+)$/,Mo,{autocomplete:"text-$fontSize"}],[/^(?:text|font)-size-(.+)$/,lr,{autocomplete:"text-size-$fontSize"}],[/^text-(?:color-)?(.+)$/,Oo,{autocomplete:"text-$colors"}],[/^(?:color|c)-(.+)$/,I("color","text","textColor"),{autocomplete:"(color|c)-$colors"}],[/^(?:text|color|c)-(.+)$/,([,e])=>T.includes(e)?{color:e}:void 0,{autocomplete:`(text|color|c)-(${T.join("|")})`}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":u.bracket.percent.cssvar(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}],[/^(?:font|fw)-?([^-]+)$/,([,e],{theme:t})=>({"font-weight":t.fontWeight?.[e]||u.bracket.global.number(e)}),{autocomplete:["(font|fw)-(100|200|300|400|500|600|700|800|900)","(font|fw)-$fontWeight"]}],[/^(?:font-)?(?:leading|lh|line-height)-(.+)$/,([,e],{theme:t})=>({"line-height":Wt(e,t,"lineHeight")}),{autocomplete:"(leading|lh|line-height)-$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":u.bracket.cssvar.global(e)})],[/^(?:font-)?tracking-(.+)$/,([,e],{theme:t})=>({"letter-spacing":t.letterSpacing?.[e]||u.bracket.cssvar.global.rem(e)}),{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,e],{theme:t})=>({"word-spacing":t.wordSpacing?.[e]||u.bracket.cssvar.global.rem(e)}),{autocomplete:"word-spacing-$wordSpacing"}],["font-stretch-normal",{"font-stretch":"normal"}],["font-stretch-ultra-condensed",{"font-stretch":"ultra-condensed"}],["font-stretch-extra-condensed",{"font-stretch":"extra-condensed"}],["font-stretch-condensed",{"font-stretch":"condensed"}],["font-stretch-semi-condensed",{"font-stretch":"semi-condensed"}],["font-stretch-semi-expanded",{"font-stretch":"semi-expanded"}],["font-stretch-expanded",{"font-stretch":"expanded"}],["font-stretch-extra-expanded",{"font-stretch":"extra-expanded"}],["font-stretch-ultra-expanded",{"font-stretch":"ultra-expanded"}],[/^font-stretch-(.+)$/,([,e])=>({"font-stretch":u.bracket.cssvar.fraction.global(e)}),{autocomplete:"font-stretch-<percentage>"}],[/^font-(.+)$/,([,e],{theme:t})=>({"font-family":t.fontFamily?.[e]||u.bracket.cssvar.global(e)}),{autocomplete:"font-$fontFamily"}]],Ro=[[/^tab(?:-(.+))?$/,([,e])=>{let t=u.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],zo=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>({"text-indent":t.textIndent?.[e||"DEFAULT"]||u.bracket.cssvar.global.fraction.rem(e)}),{autocomplete:"indent-$textIndent"}]],_o=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>({"-webkit-text-stroke-width":t.textStrokeWidth?.[e||"DEFAULT"]||u.bracket.cssvar.px(e)}),{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,I("-webkit-text-stroke-color","text-stroke","borderColor"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":u.bracket.percent.cssvar(e)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],Po=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{let n=t.textShadow?.[e||"DEFAULT"];return n!=null?{"--un-text-shadow":Re(n,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":u.bracket.cssvar.global(e)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,I("--un-text-shadow-color","text-shadow","shadowColor"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":u.bracket.percent.cssvar(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];function Wt(e,t,n){return t[n]?.[e]||u.bracket.cssvar.global.rem(e)}function lr([,e],{theme:t}){let n=j(t.fontSize?.[e])?.[0]??u.bracket.cssvar.global.rem(e);if(n!=null)return{"font-size":n}}function Oo(e,t){return te(u.bracket(e[1]))?lr(e,t):I("color","text","textColor")(e,t)}function Mo([,e="base"],{theme:t}){let n=je(e,"length");if(!n)return;let[r,s]=n,i=j(t.fontSize?.[r]),o=s?Wt(s,t,"lineHeight"):void 0;if(i?.[0]){let[a,c,f]=i;return typeof c=="object"?{"font-size":a,...c}:{"font-size":a,"line-height":o??c??"1","letter-spacing":f?Wt(f,t,"letterSpacing"):void 0}}let l=u.bracketOfLength.rem(r);return o&&l?{"font-size":l,"line-height":o}:{"font-size":u.bracketOfLength.rem(e)}}var Lo={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",fw:"font-weight",items:"align-items",justify:"justify-content",select:"user-select",self:"align-self",vertical:"vertical-align",visible:"visibility",whitespace:"white-space",ws:"white-space"},To=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let n=Lo[e];if(n)return{[n]:u.cssvar(t)}}]],Fo=[[/^\[(.*)\]$/,([e,t])=>{if(!t.includes(":"))return;let[n,...r]=t.split(":"),s=r.join(":");if(!Wo(t)&&/^[\w-]+$/.test(n)&&No(s)){let i=u.bracket(`[${s}]`);if(i)return{[n]:i}}}]];function No(e){let t=0;function n(r){for(;t<e.length;)if(t+=1,e[t]===r)return!0;return!1}for(t=0;t<e.length;t++){let r=e[t];if("\"`'".includes(r)){if(!n(r))return!1}else if(r==="("){if(!n(")"))return!1}else if("[]{}:".includes(r))return!1}return!0}function Wo(e){if(!e.includes("://"))return!1;try{return new URL(e).host!==""}catch{return!1}}var cr=[To,Fo,Xi,Zi,Ki,Fi,Bi,Ui,Ni,Li,Ii,wo,Di,qi,yo,bo,_i,Eo,Yi,Qi,Ji,mi,sr,rr,nr,Oi,Wi,Ti,io,eo,ro,xi,Ei,Ai,vo,$o,hi,zo,so,ui,jo,oo,ao,Ri,lo,Ro,_o,Po,$i,mo,di,uo,Ao,bi,to,no,ji,co,Vi].flat(1);var Dt={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",950:"#4c0519"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},light:{50:"#fdfdfd",100:"#fcfcfc",200:"#fafafa",300:"#f8f9fa",400:"#f6f6f6",500:"#f2f2f2",600:"#f1f3f5",700:"#e9ecef",800:"#dee2e6",900:"#dde1e3",950:"#d8dcdf"},dark:{50:"#4a4a4a",100:"#3c3c3c",200:"#323232",300:"#2d2d2d",400:"#222222",500:"#1f1f1f",600:"#1c1c1e",700:"#1b1b1b",800:"#181818",900:"#0f0f0f",950:"#080808"},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(Dt).forEach(e=>{typeof e!="string"&&e!==void 0&&(e.DEFAULT=e.DEFAULT||e[400],Object.keys(e).forEach(t=>{let n=+t/100;n===Math.round(n)&&(e[n]=e[t])}))});var Bo={DEFAULT:"8px",0:"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Io={DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],sm:"0 1px 1px rgb(0 0 0 / 0.05)",md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 rgb(0 0 0 / 0)"},Uo={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(",")},Do={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"]},Vo={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},Go={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},Ho={DEFAULT:["0 0 1px rgb(0 0 0 / 0.2)","0 0 1px rgb(1 0 5 / 0.1)"],none:"0 0 rgb(0 0 0 / 0)",sm:"1px 1px 3px rgb(36 37 47 / 0.25)",md:["0 1px 2px rgb(30 29 39 / 0.19)","1px 2px 4px rgb(54 64 147 / 0.18)"],lg:["3px 3px 6px rgb(0 0 0 / 0.26)","0 0 5px rgb(15 3 86 / 0.22)"],xl:["1px 1px 3px rgb(0 0 0 / 0.29)","2px 4px 7px rgb(73 64 125 / 0.35)"]},qo={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},pr={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},Ko={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Yo=pr,mr={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Xo={...mr},Zo={DEFAULT:"1px",none:"0"},Jo={DEFAULT:"1rem",none:"0",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"},Qo={DEFAULT:"150ms",none:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},ea={DEFAULT:"0.25rem",none:"0",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},ta={DEFAULT:["var(--un-shadow-inset) 0 1px 3px 0 rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 1px 2px -1px rgb(0 0 0 / 0.1)"],none:"0 0 rgb(0 0 0 / 0)",sm:"var(--un-shadow-inset) 0 1px 2px 0 rgb(0 0 0 / 0.05)",md:["var(--un-shadow-inset) 0 4px 6px -1px rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 2px 4px -2px rgb(0 0 0 / 0.1)"],lg:["var(--un-shadow-inset) 0 10px 15px -3px rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 4px 6px -4px rgb(0 0 0 / 0.1)"],xl:["var(--un-shadow-inset) 0 20px 25px -5px rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 8px 10px -6px rgb(0 0 0 / 0.1)"],"2xl":"var(--un-shadow-inset) 0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"},na={DEFAULT:"3px",none:"0"},ra={auto:"auto"},sa={mouse:"(hover) and (pointer: fine)"},ia={...Ut,...It,...Bt},re={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},oa={auto:"auto",...re,screen:"100vw"},fr={none:"none",...re,screen:"100vw"},aa={auto:"auto",...re,screen:"100vb"},la={auto:"auto",...re,screen:"100vi"},ca={auto:"auto",...re,screen:"100vh"},ur={none:"none",...re,screen:"100vh"},hr={none:"none",...re,screen:"100vb"},dr={none:"none",...re,screen:"100vi"},fa={...re},ua={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)"},ha={none:"none",all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),opacity:"opacity",shadow:"box-shadow",transform:"transform",get DEFAULT(){return[this.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",")}},gr={width:oa,height:ca,maxWidth:fr,maxHeight:ur,minWidth:fr,minHeight:ur,inlineSize:la,blockSize:aa,maxInlineSize:dr,maxBlockSize:hr,minInlineSize:dr,minBlockSize:hr,colors:Dt,fontFamily:Uo,fontSize:Do,fontWeight:Ko,breakpoints:mr,verticalBreakpoints:Xo,borderRadius:ea,lineHeight:qo,letterSpacing:pr,wordSpacing:Yo,boxShadow:ta,textIndent:Vo,textShadow:Ho,textStrokeWidth:Go,blur:Bo,dropShadow:Io,easing:ua,transitionProperty:ha,lineWidth:Zo,spacing:Jo,duration:Qo,ringWidth:na,preflightBase:ia,containers:fa,zIndex:ra,media:sa};var da={name:"aria",match(e,t){let n=(0,R.variantGetParameter)("aria-",e,t.generator.config.separators);if(n){let[r,s]=n,i=u.bracket(r)??t.theme.aria?.[r]??"";if(i)return{matcher:s,selector:o=>`${o}[aria-${i}]`}}},multiPass:!0};function ot(e,t,n={}){return{name:`${e}-aria`,match(r,s){let i=(0,R.variantGetParameter)(`${e}-aria-`,r,s.generator.config.separators);if(i){let[o,l,a]=i,c=u.bracket(o)??s.theme.aria?.[o]??"";if(c){let f=!!n?.attributifyPseudo,h=n?.prefix??"";h=(Array.isArray(h)?h:[h]).filter(Boolean)[0]??"";let d=`${f?`[${h}${e}=""]`:`.${h}${e}`}`,m=Y(a?`/${a}`:"");return{matcher:l,handle:(p,y)=>{let w=new RegExp(`${K(d)}${K(m)}(?:\\[.+?\\])+`),v=p.prefix.match(w),x;if(v){let b=(v.index??0)+d.length+m.length;x=[p.prefix.slice(0,b),`[aria-${c}]`,p.prefix.slice(b)].join("")}else{let b=Math.max(p.prefix.indexOf(d),0);x=[p.prefix.slice(0,b),d,m,`[aria-${c}]`,t,p.prefix.slice(b)].join("")}return y({...p,prefix:x})}}}}},multiPass:!0}}function pa(){return{name:"has-aria",match(e,t){let n=(0,R.variantGetParameter)("has-aria-",e,t.generator.config.separators);if(n){let[r,s]=n,i=u.bracket(r)??t.theme.aria?.[r]??"";if(i)return{matcher:s,handle:(o,l)=>l({...o,pseudo:`${o.pseudo}:has([aria-${i}])`})}}},multiPass:!0}}function ma(e={}){return[ot("group"," ",e),ot("peer","~",e),ot("parent",">",e),ot("previous","+",e),pa()]}var br=/(max|min)-\[([^\]]*)\]:/;function ga(){let e={};return{name:"breakpoints",match(t,n){if(br.test(t)){let s=t.match(br);return{matcher:t.replace(s[0],""),handle:(i,o)=>o({...i,parent:`${i.parent?`${i.parent} $$ `:""}@media (${s[1]}-width: ${s[2]})`})}}let r=(de(n)??[]).map(({point:s,size:i},o)=>[s,i,o]);for(let[s,i,o]of r){e[s]||(e[s]=new RegExp(`^((?:([al]t-|[<~]|max-))?${s}(?:${n.generator.config.separators.join("|")}))`));let l=t.match(e[s]);if(!l)continue;let[,a]=l,c=t.slice(a.length);if(c==="container")continue;let f=a.startsWith("lt-")||a.startsWith("<")||a.startsWith("max-"),h=a.startsWith("at-")||a.startsWith("~"),d=3e3;return f?(d-=o+1,{matcher:c,handle:(m,p)=>p({...m,parent:`${m.parent?`${m.parent} $$ `:""}@media (max-width: ${(0,R.calcMaxWidthBySize)(i)})`,parentOrder:d})}):(d+=o+1,h&&o<r.length-1?{matcher:c,handle:(m,p)=>p({...m,parent:`${m.parent?`${m.parent} $$ `:""}@media (min-width: ${i}) and (max-width: ${(0,R.calcMaxWidthBySize)(r[o+1][1])})`,parentOrder:d})}:{matcher:c,handle:(m,p)=>p({...m,parent:`${m.parent?`${m.parent} $$ `:""}@media (min-width: ${i})`,parentOrder:d})})}},multiPass:!0,autocomplete:"(at-|lt-|max-|)$breakpoints:"}}var ba=[(0,R.variantMatcher)("*",e=>({selector:`${e.selector} > *`}),{order:-1})];function Fe(e,t){return{name:`combinator:${e}`,match(n,r){if(!n.startsWith(e))return;let s=r.generator.config.separators,i=(0,R.variantGetBracket)(`${e}-`,n,s);if(!i){for(let l of s)if(n.startsWith(`${e}${l}`)){i=["",n.slice(e.length+l.length)];break}if(!i)return}let o=u.bracket(i[0])??"";return o===""&&(o="*"),{matcher:i[1],selector:l=>`${l}${t}${o}`}},multiPass:!0}}var xa=[Fe("all"," "),Fe("children",">"),Fe("next","+"),Fe("sibling","+"),Fe("siblings","~")],ya={name:"@",match(e,t){if(e.startsWith("@container"))return;let n=(0,R.variantGetParameter)("@",e,t.generator.config.separators);if(n){let[r,s,i]=n,o=u.bracket(r),l;if(o?l=u.numberWithUnit(o):l=t.theme.containers?.[r]??"",l){let a=1e3+Object.keys(t.theme.containers??{}).indexOf(r);return i&&(a+=1e3),{matcher:s,handle:(c,f)=>f({...c,parent:`${c.parent?`${c.parent} $$ `:""}@container${i?` ${i} `:" "}(min-width: ${l})`,parentOrder:a})}}}},multiPass:!0};function $a(e={}){if(e?.dark==="class"||typeof e.dark=="object"){let{dark:t=".dark",light:n=".light"}=typeof e.dark=="string"?{}:e.dark;return[(0,R.variantMatcher)("dark",j(t).map(r=>s=>({prefix:`${r} $$ ${s.prefix}`}))),(0,R.variantMatcher)("light",j(n).map(r=>s=>({prefix:`${r} $$ ${s.prefix}`})))]}return[(0,R.variantParentMatcher)("dark","@media (prefers-color-scheme: dark)"),(0,R.variantParentMatcher)("light","@media (prefers-color-scheme: light)")]}var wa={name:"data",match(e,t){let n=(0,R.variantGetParameter)("data-",e,t.generator.config.separators);if(n){let[r,s]=n,i=u.bracket(r)??t.theme.data?.[r]??"";if(i)return{matcher:s,selector:o=>`${o}[data-${i}]`}}},multiPass:!0};function at(e,t,n={}){return{name:`${e}-data`,match(r,s){let i=(0,R.variantGetParameter)(`${e}-data-`,r,s.generator.config.separators);if(i){let[o,l,a]=i,c=u.bracket(o)??s.theme.data?.[o]??"";if(c){let f=!!n?.attributifyPseudo,h=n?.prefix??"";h=(Array.isArray(h)?h:[h]).filter(Boolean)[0]??"";let d=`${f?`[${h}${e}=""]`:`.${h}${e}`}`,m=Y(a?`/${a}`:"");return{matcher:l,handle:(p,y)=>{let w=new RegExp(`${K(d)}${K(m)}(?:\\[.+?\\])+`),v=p.prefix.match(w),x;if(v){let b=(v.index??0)+d.length+m.length;x=[p.prefix.slice(0,b),`[data-${c}]`,p.prefix.slice(b)].join("")}else{let b=Math.max(p.prefix.indexOf(d),0);x=[p.prefix.slice(0,b),d,m,`[data-${c}]`,t,p.prefix.slice(b)].join("")}return y({...p,prefix:x})}}}}},multiPass:!0}}function va(){return{name:"has-data",match(e,t){let n=(0,R.variantGetParameter)("has-data-",e,t.generator.config.separators);if(n){let[r,s]=n,i=u.bracket(r)??t.theme.data?.[r]??"";if(i)return{matcher:s,handle:(o,l)=>l({...o,pseudo:`${o.pseudo}:has([data-${i}])`})}}},multiPass:!0}}function ka(e={}){return[at("group"," ",e),at("peer","~",e),at("parent",">",e),at("previous","+",e),va()]}var Sa=[(0,R.variantMatcher)("rtl",e=>({prefix:`[dir="rtl"] $$ ${e.prefix}`})),(0,R.variantMatcher)("ltr",e=>({prefix:`[dir="ltr"] $$ ${e.prefix}`}))];function Ca(){let e;return{name:"important",match(t,n){e||(e=new RegExp(`^(important(?:${n.generator.config.separators.join("|")})|!)`));let r,s=t.match(e);if(s?r=t.slice(s[0].length):t.endsWith("!")&&(r=t.slice(0,-1)),r)return{matcher:r,body:i=>(i.forEach(o=>{o[1]!=null&&(o[1]+=" !important")}),i)}}}}var Ea=(0,R.variantParentMatcher)("print","@media print"),Aa={name:"media",match(e,t){let n=(0,R.variantGetParameter)("media-",e,t.generator.config.separators);if(n){let[r,s]=n,i=u.bracket(r)??"";if(i===""&&(i=t.theme.media?.[r]??""),i)return{matcher:s,handle:(o,l)=>l({...o,parent:`${o.parent?`${o.parent} $$ `:""}@media ${i}`})}}},multiPass:!0},ja={name:"selector",match(e,t){let n=(0,R.variantGetBracket)("selector-",e,t.generator.config.separators);if(n){let[r,s]=n,i=u.bracket(r);if(i)return{matcher:s,selector:()=>i}}}},Ra={name:"layer",match(e,t){let n=(0,R.variantGetParameter)("layer-",e,t.generator.config.separators);if(n){let[r,s]=n,i=u.bracket(r)??r;if(i)return{matcher:s,handle:(o,l)=>l({...o,parent:`${o.parent?`${o.parent} $$ `:""}@layer ${i}`})}}}},za={name:"uno-layer",match(e,t){let n=(0,R.variantGetParameter)("uno-layer-",e,t.generator.config.separators);if(n){let[r,s]=n,i=u.bracket(r)??r;if(i)return{matcher:s,layer:i}}}},_a={name:"scope",match(e,t){let n=(0,R.variantGetBracket)("scope-",e,t.generator.config.separators);if(n){let[r,s]=n,i=u.bracket(r);if(i)return{matcher:s,selector:o=>`${i} $$ ${o}`}}}},Pa={name:"variables",match(e,t){if(!e.startsWith("["))return;let[n,r]=(0,R.getBracket)(e,"[","]")??[];if(!(n&&r))return;let s;for(let l of t.generator.config.separators)if(r.startsWith(l)){s=r.slice(l.length);break}if(s==null)return;let i=u.bracket(n)??"",o=i.startsWith("@");if(o||i.includes("&"))return{matcher:s,handle(l,a){let c=o?{parent:`${l.parent?`${l.parent} $$ `:""}${i}`}:{selector:i.replace(/&/g,l.selector)};return a({...l,...c})}}},multiPass:!0},Oa={name:"theme-variables",match(e,t){if((0,R.hasThemeFn)(e))return{matcher:e,handle(n,r){return r({...n,entries:JSON.parse((0,R.transformThemeFn)(JSON.stringify(n.entries),t.theme))})}}}},xr=/^-?[0-9.]+(?:[a-z]+|%)?$/,yr=/-?[0-9.]+(?:[a-z]+|%)?/,Ma=[/\b(opacity|color|flex|backdrop-filter|^filter|transform)\b/];function La(e){let t=e.match(ye)||e.match(Je);if(t){let[n,r]=le(`(${t[2]})${t[3]}`,"(",")"," ")??[];if(n)return`calc(${t[1]}${n} * -1)${r?` ${r}`:""}`}}var Ta=/\b(hue-rotate)\s*(\(.*)/;function Fa(e){let t=e.match(Ta);if(t){let[n,r]=le(t[2],"(",")"," ")??[];if(n){let s=xr.test(n.slice(1,-1))?n.replace(yr,i=>i.startsWith("-")?i.slice(1):`-${i}`):`(calc(${n} * -1))`;return`${t[1]}${s}${r?` ${r}`:""}`}}}var Na={name:"negative",match(e){if(e.startsWith("-"))return{matcher:e.slice(1),body:t=>{if(t.find(r=>r[0]===tt))return;let n=!1;return t.forEach(r=>{let s=r[1]?.toString();if(!s||s==="0"||Ma.some(l=>l.test(r[0])))return;let i=La(s);if(i){r[1]=i,n=!0;return}let o=Fa(s);if(o){r[1]=o,n=!0;return}xr.test(s)&&(r[1]=s.replace(yr,l=>l.startsWith("-")?l.slice(1):`-${l}`),n=!0)}),n?t:[]}}}};function Wa(){return Et({getBracket:ne.getBracket,h:u,variantGetBracket:ne.variantGetBracket})}function Ba(){return At({getBracket:ne.getBracket,h:u,variantGetBracket:ne.variantGetBracket})}function Ia(e={}){return jt(e,{getBracket:ne.getBracket,h:u,variantGetBracket:ne.variantGetBracket})}var Ua=Rt(),Da={name:"starting",match(e){if(e.startsWith("starting:"))return{matcher:e.slice(9),handle:(t,n)=>n({...t,parent:"@starting-style"})}}},Va={name:"supports",match(e,t){let n=(0,R.variantGetParameter)("supports-",e,t.generator.config.separators);if(n){let[r,s]=n,i=u.bracket(r)??"";if(i===""&&(i=t.theme.supports?.[r]??""),i)return i.startsWith("(")&&i.endsWith(")")||(i=`(${i})`),{matcher:s,handle:(o,l)=>l({...o,parent:`${o.parent?`${o.parent} $$ `:""}@supports ${i}`})}}},multiPass:!0};function $r(e){return[da,wa,Ra,ja,za,Na,Da,Ca(),Va,Ea,Aa,ga(),...xa,...Wa(),Ba(),...Ia(e),Ua,...$a(e),...Sa,_a,...ba,ya,Pa,...ka(e),...ma(e),Oa]}function Ga(e){let t,n,r=2166136261;for(t=0,n=e.length;t<n;t++)r^=e.charCodeAt(t),r+=(r<<1)+(r<<4)+(r<<7)+(r<<8)+(r<<24);return`00000${(r>>>0).toString(36)}`.slice(-6)}function Ha(e,t,n,r){for(let s of Array.from(e.matchAll(n)))if(s!=null){let i=s[0],o=`${r}${Ga(i)}`;t.set(o,i),e=e.replace(i,o)}return e}function qa(e,t){for(let[n,r]of t.entries())e=e.replaceAll(n,r);return e}var Ka=/\/\/#\s*sourceMappingURL=.*\n?/g;function Ya(e){return e.includes("sourceMappingURL=")?e.replace(Ka,""):e}var Xa=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,Za=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,Ja=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function Qa(e){let t=[];for(let s of e.matchAll(Za))s.index!==0&&!/^[\s'"`]/.test(e[s.index-1]??"")||t.push(s[0]);for(let s of e.matchAll(Xa))t.push(s[0]);let n=new Map,r="@unocss-skip-arbitrary-brackets";return e=Ha(e,n,/-\[(?!&.+?;)[^\]]*\]/g,r),e&&e.split(ht).forEach(s=>{s.includes(r)&&(s=qa(s,n)),ve(s)&&!Ja.test(s)&&t.push(s)}),t}function wr(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return Qa(Ya(e))}}}function el(e){if(e.preflight)return[{layer:"preflights",getCSS({theme:t,generator:n}){if(t.preflightBase){let r=Object.entries(t.preflightBase);if(e.preflight==="on-demand"){let s=new Set(Array.from(n.activatedRules).map(i=>i[2]?.custom?.preflightKeys).filter(Boolean).flat());r=r.filter(([i])=>s.has(i))}if(r.length>0){let s=we(r);return e.variablePrefix!=="un-"&&(s=s.replace(/--un-/g,`--${e.variablePrefix}`)),j(t.preflightRoot??["*,::before,::after","::backdrop"]).map(i=>`${i}{${s}}`).join("")}}}}]}var tl={position:["relative","absolute","fixed","sticky","static"],globalKeyword:T},nl=(e={})=>(e.dark=e.dark??"class",e.attributifyPseudo=e.attributifyPseudo??!1,e.preflight=e.preflight??!0,e.variablePrefix=e.variablePrefix??"un-",{name:"@unocss/preset-mini",theme:gr,rules:cr,variants:$r(e),options:e,prefix:e.prefix,postprocess:rl(e.variablePrefix),preflights:el(e),extractorDefault:e.arbitraryVariants===!1?void 0:wr(),autocomplete:{shorthands:tl}}),vr=nl;function rl(e){if(e!=="un-")return t=>{t.entries.forEach(n=>{n[0]=n[0].replace(/^--un-/,`--${e}`),typeof n[1]=="string"&&(n[1]=n[1].replace(/var\(--un-/g,`var(--${e}`))})}}function sl(e){return e.replace(/-(\w)/g,(t,n)=>n?n.toUpperCase():"")}function kr(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Sr(e){return e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var Cr=["Webkit","Moz","ms"];function Er(e){let t={};function n(r){let s=t[r];if(s)return s;let i=sl(r);if(i!=="filter"&&i in e)return t[r]=Sr(i);i=kr(i);for(let o=0;o<Cr.length;o++){let l=`${Cr[o]}${i}`;if(l in e)return t[r]=Sr(kr(l))}return r}return({entries:r})=>r.forEach(s=>{s[0].startsWith("--")||(s[0]=n(s[0]))})}function Ar(e){return e.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<")}async function Vt(e={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let t=window,n=window.document,r=()=>n.documentElement,s=t.__unocss||{},i=Object.assign({},e,s.runtime),o=i.defaults||{},l=i.cloakAttribute??"un-cloak";i.autoPrefix&&(o.postprocess=j(o.postprocess)).unshift(Er(n.createElement("div").style)),i.configResolved?.(s,o);let a=await an(s,o),c=k=>{let A=e.rootElement?.();if(A){A.appendChild(k);return}i.inject?i.inject(k):r().prepend(k)},f=()=>i.rootElement?i.rootElement():n.body,h=new Map,d=!0,m=new Set,p,y,w=[],v=()=>new Promise(k=>{w.push(k),y!=null&&clearTimeout(y),y=setTimeout(()=>g().then(()=>{let A=w;w=[],A.forEach(_=>_())}),0)});function x(k,A=!1){if(k.nodeType!==1)return;let _=k;_.hasAttribute(l)&&_.removeAttribute(l),A&&_.querySelectorAll(`[${l}]`).forEach(O=>{O.removeAttribute(l)})}function b(k,A){let _=h.get(k);if(!_)if(_=n.createElement("style"),_.setAttribute("data-unocss-runtime-layer",k),h.set(k,_),A==null)c(_);else{let O=b(A),W=O.parentNode;W?W.insertBefore(_,O.nextSibling):c(_)}return _}async function g(){let k=[...m],A=await a.generate(k);return A.layers.reduce((O,W)=>(b(W,O).innerHTML=A.getLayer(W)??"",W),void 0),k.filter(O=>!A.matched.has(O)).forEach(O=>m.delete(O)),{...A,getStyleElement:O=>h.get(O),getStyleElements:()=>h}}async function $(k){let A=m.size;await a.applyExtractors(k,void 0,m),A!==m.size&&await v()}async function z(k=f()){let A=k&&k.outerHTML;A&&(await $(`${A} ${Ar(A)}`),x(r()),x(k,!0))}let G=new MutationObserver(k=>{d||k.forEach(async A=>{if(A.target.nodeType!==1)return;let _=A.target;for(let O of h)if(_===O[1])return;if(A.type==="childList")A.addedNodes.forEach(async O=>{if(O.nodeType!==1)return;let W=O;p&&!p(W)||(await $(W.outerHTML),x(W))});else{if(p&&!p(_))return;if(A.attributeName!==l){let O=Array.from(_.attributes).map(ae=>ae.value?`${ae.name}="${ae.value}"`:ae.name).join(" "),W=`<${_.tagName.toLowerCase()} ${O}>`;await $(W)}x(_)}})}),S=!1;function C(){if(S)return;let k=i.observer?.target?i.observer.target():f();k&&(G.observe(k,{childList:!0,subtree:!0,attributes:!0,attributeFilter:i.observer?.attributeFilter}),S=!0)}function E(){i.bypassDefined&&il(a.blocked),z(),C()}function N(){n.readyState==="loading"?t.addEventListener("DOMContentLoaded",E):E()}let F=t.__unocss_runtime=t.__unocss_runtime={version:a.version,uno:a,async extract(k){M(k)||(k.forEach(A=>m.add(A)),k=""),await $(k)},extractAll:z,inspect(k){p=k},toggleObserver(k){k===void 0?d=!d:d=!!k,!S&&!d&&N()},update:g,presets:t.__unocss_runtime?.presets??{}};i.ready?.(F)!==!1&&(d=!1,N())}function il(e=new Set){for(let t=0;t<document.styleSheets.length;t++){let n=document.styleSheets[t],r;try{if(r=n.cssRules||n.rules,!r)continue;Array.from(r).flatMap(s=>s.selectorText?.split(/,/g)||[]).forEach(s=>{s&&(s=s.trim(),s.startsWith(".")&&(s=s.slice(1)),e.add(s))})}catch{continue}}return e}Vt({defaults:{presets:[vr(),dn()]}});})();
|