@unocss/runtime 0.65.0-beta.2 → 0.65.0-beta.3
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 +10 -10
- package/core.global.js +2 -2
- package/full.global.js +8 -8
- package/mini.global.js +11 -11
- package/package.json +4 -4
- package/preset-mini.global.js +7 -7
- package/preset-uno.global.js +10 -10
- package/preset-wind.global.js +10 -10
- package/uno.global.js +10 -10
package/mini.global.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";(()=>{var vi=Object.defineProperty;var Ci=(t,e)=>{for(var r in e)vi(t,r,{get:e[r],enumerable:!0})};var ge="default",Le="preflights",ki="shortcuts",Ri="imports",Gt={[Ri]:-200,[Le]:-100,[ki]:-10,[ge]:0};var Fe=/[\\:]?[\s'"`;{}]+/g;function Ti(t){return t.split(Fe)}var Ue={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Ti(t)}};function A(t=[]){return Array.isArray(t)?t:[t]}function B(t){return Array.from(new Set(t))}function ut(t,e){return t.reduce((r,n)=>(r.findIndex(i=>e(n,i))===-1&&r.push(n),r),[])}function P(t){return typeof t=="string"}var be=class extends Set{_map;constructor(e){super(e),this._map??=new Map}add(e){return this._map??=new Map,this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.delete(e),super.delete(e)}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,r){return this._map.set(e,r),super.add(e)}};function _e(t){return t instanceof be}function Z(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function te(t){let e=t.length,r=-1,n,o="",i=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){o+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=t.charAt(r);continue}o+=`\\${t.charAt(r)}`}return o}var Ie=te;var Ei=/^\[(.+?)~?="(.*)"\]$/;var ji=/[\w\u00A0-\uFFFF%-?]/;function Ht(t){return t.match(Ei)}function xe(t=""){return ji.test(t)}function qt(t){return typeof t=="function"?{match:t}:t}function ft(t){return t.length===3}function pt(t){return t!=null}function Yt(){}var We=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.has(r)||o.set(r,n),o.get(r)}set(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.set(r,n),this}has(e,r){return this._map.get(e)?.has(r)}delete(e,r){return this._map.get(e)?.delete(r)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>e(i,r,o)))}},De=class extends Map{getFallback(e,r){let n=this.get(e);return n===void 0?(this.set(e,r),r):n}map(e){let r=[];return this.forEach((n,o)=>{r.push(e(n,o))}),r}flatMap(e){let r=[];return this.forEach((n,o)=>{r.push(...e(n,o))}),r}};function ie(t){return P(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Xt(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>ie(e)):[t]:[ie(t)]}function Ai(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(t[o][0]===e&&t[o][1]===r)return!1;return!0})}function se(t){return t==null?"":Ai(t).map(([e,r])=>r!=null&&typeof r!="function"?`${e}:${r};`:void 0).filter(Boolean).join("")}function Ne(t){return t&&typeof t=="object"&&!Array.isArray(t)}function dt(t,e,r=!1){let n=t,o=e;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return Ne(n)&&Ne(o)&&Object.keys(o).forEach(s=>{Ne(n[s])&&Ne(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=dt(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function ye(t){let e,r,n;if(Array.isArray(t)){for(r=Array.from({length:e=t.length});e--;)r[e]=(n=t[e])&&typeof n=="object"?ye(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:ye(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?ye(n):n;return r}return t}function Zt(t){return P(t[0])}function Jt(t){return P(t[0])}var Be={};function Oi(t=["-",":"]){let e=t.join("|");return Be[e]||(Be[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Be[e].lastIndex=0,Be[e]}function Vi(t,e=["-",":"],r=5){let n=Oi(e),o,i=t.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(c,f,p,h,m)=>{if(!e.includes(p))return c;o=!0,s.add(f+p);let b=m+f.length+p.length+1,y={length:c.length,items:[]};a.set(m,y);for(let w of[...h.matchAll(/\S+/g)]){let R=b+w.index,x=a.get(R)?.items;x?a.delete(R):x=[{offset:R,length:w[0].length,className:w[0]}];for(let $ of x)$.className=$.className==="~"?f:$.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),y.items.push($)}return"$".repeat(c.length)}),r-=1;while(o&&r);let l;if(typeof t=="string"){l="";let c=0;for(let[f,p]of a)l+=t.slice(c,f),l+=p.items.map(h=>h.className).join(" "),c=f+p.length;l+=t.slice(c)}else{l=t;for(let[c,f]of a)l.overwrite(c,c+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return l.toString()}}}function Qt(t,e=["-",":"],r=5){let n=Vi(t,e,r);return typeof t=="string"?n.expanded:t}var er=new Set;function tr(t){er.has(t)||(console.warn("[unocss]",t),er.add(t))}function or(t){return A(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var rr="_uno_resolved";async function Pi(t){let e=typeof t=="function"?await t():await t;if(rr in e)return e;e={...e},Object.defineProperty(e,rr,{value:!0,enumerable:!1});let r=e.shortcuts?or(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&e.prefix&&(i.prefix=A(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}async function ir(t){let e=await Pi(t);if(!e.presets)return[e];let r=(await Promise.all((e.presets||[]).flatMap(A).flatMap(ir))).flat();return[e,...r]}function Mi(t){if(t.length===0)return{};let e=[],r=[],n=!1,o=[],i=[],s=[];for(let l of t){if(l.pipeline===!1){n=!0;break}else l.pipeline?.include&&e.push(l.pipeline.include),l.pipeline?.exclude&&r.push(l.pipeline.exclude);l.filesystem&&o.push(l.filesystem),l.inline&&i.push(l.inline),l.plain&&s.push(l.plain)}let a={pipeline:n?!1:{include:B(nr(...e)),exclude:B(nr(...r))}};return o.length&&(a.filesystem=B(o.flat())),i.length&&(a.inline=B(i.flat())),s.length&&(a.plain=B(s.flat())),a}async function ht(t={},e={}){let r=Object.assign({},e,t),n=ut((await Promise.all((r.presets||[]).flatMap(A).flatMap(ir))).flat(),(d,g)=>d.name===g.name),o=[...n.filter(d=>d.enforce==="pre"),...n.filter(d=>!d.enforce),...n.filter(d=>d.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Gt,...i.map(d=>d.layers));function l(d){return B(i.flatMap(g=>A(g[d]||[])))}let c=l("extractors"),f=s.find(d=>d.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Ue),f&&!c.includes(f)&&c.unshift(f),c.sort((d,g)=>(d.order||0)-(g.order||0));let p=l("rules"),h={},m=p.length,b=p.map((d,g)=>{if(Zt(d)){A(d[2]?.prefix||"").forEach(M=>{h[M+d[0]]=[g,d[1],d[2],d]});return}return[g,...d]}).filter(Boolean).reverse(),y=zi(i.map(d=>d.theme)),w=l("extendTheme");for(let d of w)y=d(y)||y;let R={templates:B(i.flatMap(d=>A(d.autocomplete?.templates))),extractors:i.flatMap(d=>A(d.autocomplete?.extractors)).sort((d,g)=>(d.order||0)-(g.order||0)),shorthands:Li(i.map(d=>d.autocomplete?.shorthands||{}))},x=l("separators");x.length||(x=[":","-"]);let $=l("content"),V=Mi($),C={mergeSelectors:!0,warn:!0,sortLayers:d=>d,...r,blocklist:l("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:y,rulesSize:m,rulesDynamic:b,rulesStaticMap:h,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:R,variants:l("variants").map(qt).sort((d,g)=>(d.order||0)-(g.order||0)),shortcuts:or(l("shortcuts")).reverse(),extractors:c,safelist:l("safelist"),separators:x,details:r.details??r.envMode==="dev",content:V,transformers:ut(l("transformers"),(d,g)=>d.name===g.name)};for(let d of i)d?.configResolved?.(C);return C}function zi(t){return t.map(e=>e?ye(e):{}).reduce((e,r)=>dt(e,r),{})}function Li(t){return t.reduce((e,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...e,...n}},{})}function nr(...t){return t.flatMap(Fi)}function Fi(t){return Array.isArray(t)?t:t?[t]:[]}var sr="0.65.0-beta.2";function ar(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(r=>r(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(r=>r!==e)}}}var re={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer"},mt=class t{constructor(e={},r={}){this.userConfig=e;this.defaults=r}version=sr;_cache=new Map;config=void 0;blocked=new Set;parentOrders=new Map;events=ar();static async create(e={},r={}){let n=new t(e,r);return n.config=await ht(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(e,r){e&&(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=await ht(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let o={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(_e(s)&&_e(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:re,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(e,r){if(this.blocked.has(e))return;let n=`${e}${r?` ${r}`:""}`;if(this._cache.has(n))return this._cache.get(n);let o=e;for(let l of this.config.preprocess)o=l(e);if(this.isBlocked(o)){this.blocked.add(e),this._cache.set(n,null);return}let i=await this.matchVariants(e,o);if(i.every(l=>!l||this.isBlocked(l[1]))){this.blocked.add(e),this._cache.set(n,null);return}let s=async l=>{let c=this.makeContext(e,[r||l[0],l[1],l[2],l[3]]);this.config.details&&(c.variants=[...l[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))?.map(h=>this.stringifyUtil(h,c)).filter(pt)},a=(await Promise.all(i.map(l=>s(l)))).flat().filter(l=>!!l);if(a?.length)return this._cache.set(n,a),a;this._cache.set(n,null)}async generate(e,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:l=!1}=r,c=this.config.outputToCssLayers,f=P(e)?await this.applyExtractors(e,n,l?new be:new Set):Array.isArray(e)?new Set(e):e;if(s){let d={generator:this,theme:this.config.theme};this.config.safelist.flatMap(g=>typeof g=="function"?g(d):g).forEach(g=>{f.has(g)||f.add(g)})}let p=a?"":`
|
|
2
|
-
`,h=new Set([ge]),m=l?new Map:new Set,b=new Map,y={},w=Array.from(f).map(async d=>{if(m.has(d))return;let g=await this.parseToken(d);if(g!=null){m instanceof Map?m.set(d,{data:g,count:_e(f)?f.getCount(d):-1}):m.add(d);for(let E of g){let M=E[3]||"",U=E[4]?.layer;b.has(M)||b.set(M,[]),b.get(M).push(E),U&&h.add(U)}}});await Promise.all(w),await(async()=>{if(!i)return;let d={generator:this,theme:this.config.theme},g=new Set([]);this.config.preflights.forEach(({layer:E=Le})=>{h.add(E),g.add(E)}),y=Object.fromEntries(await Promise.all(Array.from(g).map(async E=>{let U=(await Promise.all(this.config.preflights.filter(q=>(q.layer||Le)===E).map(async q=>await q.getCSS(d)))).filter(Boolean).join(p);return[E,U]})))})();let R=this.config.sortLayers(Array.from(h).sort((d,g)=>(this.config.layers[d]??0)-(this.config.layers[g]??0)||d.localeCompare(g))),x={},$=(d=ge)=>{if(x[d])return x[d];let g=Array.from(b).sort((M,U)=>(this.parentOrders.get(M[0])??0)-(this.parentOrders.get(U[0])??0)||M[0]?.localeCompare(U[0]||"")||0).map(([M,U])=>{let q=U.length,me=U.filter(S=>(S[4]?.layer||ge)===d).sort((S,k)=>S[0]-k[0]||(S[4]?.sort||0)-(k[4]?.sort||0)||S[5]?.currentSelector?.localeCompare(k[5]?.currentSelector??"")||S[1]?.localeCompare(k[1]||"")||S[2]?.localeCompare(k[2]||"")||0).map(([,S,k,,L,,Y])=>[[[(S&&Ii(S,o))??"",L?.sort??0]],k,!!(Y??L?.noMerge)]);if(!me.length)return;let v=me.reverse().map(([S,k,L],Y)=>{if(!L&&this.config.mergeSelectors)for(let X=Y+1;X<q;X++){let G=me[X];if(G&&!G[2]&&(S&&G[0]||S==null&&G[0]==null)&&G[1]===k)return S&&G[0]&&G[0].push(...S),null}let ct=S?B(S.sort((X,G)=>X[1]-G[1]||X[0]?.localeCompare(G[0]||"")||0).map(X=>X[0]).filter(Boolean)):[];return ct.length?`${ct.join(`,${p}`)}{${k}}`:k}).filter(Boolean).reverse().join(p);if(!M)return v;let T=M.split(" $$ ");return`${T.join("{")}{${p}${v}${p}${"}".repeat(T.length)}`}).filter(Boolean).join(p);if(i&&(g=[y[d],g].filter(Boolean).join(p)),c&&g){let M=typeof c=="object"?c.cssLayerName?.(d):void 0;M!==null&&(M||(M=d),g=`@layer ${M}{${p}${g}${p}}`)}let E=a?"":`/* layer: ${d} */${p}`;return x[d]=g?E+g:""},V=(d=R,g)=>d.filter(E=>!g?.includes(E)).map(E=>$(E)||"").filter(Boolean).join(p);return{get css(){return V()},layers:R,matched:m,getLayers:V,getLayer:$,setLayer:async(d,g)=>{let E=await g($(d));return x[d]=E,E}}}async matchVariants(e,r){let n={rawSelector:e,theme:this.config.theme,generator:this},o=async i=>{let s=!0,[,,a,l]=i;for(;s;){s=!1;let c=i[1];for(let f of this.config.variants){if(!f.multiPass&&l.has(f))continue;let p=await f.match(c,n);if(p){if(P(p)){if(p===c)continue;p={matcher:p}}if(Array.isArray(p)){if(!p.length)continue;if(p.length===1)p=p[0];else{if(f.multiPass)throw new Error("multiPass can not be used together with array return variants");let h=p.map(m=>{let b=m.matcher??c,y=[m,...a],w=new Set(l);return w.add(f),[i[0],b,y,w]});return(await Promise.all(h.map(m=>o(m)))).flat()}}i[1]=p.matcher??c,a.unshift(p),l.add(f),s=!0;break}}if(!s)break;if(a.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[i]};return await o([e,r||e,[],new Set])}applyVariants(e,r=e[4],n=e[1]){let i=r.slice().sort((c,f)=>(c.order||0)-(f.order||0)).reduceRight((c,f)=>p=>{let h=f.body?.(p.entries)||p.entries,m=Array.isArray(f.parent)?f.parent:[f.parent,void 0];return(f.handle??Di)({...p,entries:h,selector:f.selector?.(p.selector,h)||p.selector,parent:m[0]||p.parent,parentOrder:m[1]||p.parentOrder,layer:f.layer||p.layer,sort:f.sort||p.sort},c)},c=>c)({prefix:"",selector:Wi(n),pseudo:"",entries:e[2]}),{parent:s,parentOrder:a}=i;s!=null&&a!=null&&this.parentOrders.set(s,a);let l={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:s,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let c of this.config.postprocess)c(l);return l}constructCustomCSS(e,r,n){let o=ie(r);if(P(o))return o;let{selector:i,entries:s,parent:a}=this.applyVariants([0,n||e.rawSelector,o,void 0,e.variantHandlers]),l=`${i}{${se(s)}}`;return a?`${a}{${l}}`:l}async parseUtil(e,r,n=!1,o){let i=P(e)?await this.matchVariants(e):[e],s=async([l,c,f])=>{this.config.details&&(r.rules=r.rules??[]);let p=this.config.rulesStaticMap[c];if(p&&p[1]&&(n||!p[2]?.internal)){this.config.details&&r.rules.push(p[3]);let m=p[0],b=ie(p[1]),y=p[2];return P(b)?[[m,b,y]]:[[m,l,b,y,f]]}r.variantHandlers=f;let{rulesDynamic:h}=this.config;for(let[m,b,y,w]of h){if(w?.internal&&!n)continue;let R=c;if(w?.prefix){let C=A(w.prefix);if(o){let d=A(o);if(!C.some(g=>d.includes(g)))continue}else{let d=C.find(g=>c.startsWith(g));if(d==null)continue;R=c.slice(d.length)}}let x=R.match(b);if(!x)continue;let $=await y(x,r);if(!$)continue;if(this.config.details&&r.rules.push([b,y,w]),typeof $!="string")if(Symbol.asyncIterator in $){let C=[];for await(let d of $)d&&C.push(d);$=C}else Symbol.iterator in $&&!Array.isArray($)&&($=Array.from($).filter(pt));let V=Xt($).filter(C=>C.length);if(V.length)return V.map(C=>{if(P(C))return[m,C,w];let d=f;for(let g of C)g[0]===re.variants?d=[...A(g[1]),...d]:g[0]===re.parent?d=[{parent:g[1]},...d]:g[0]===re.selector?d=[{selector:g[1]},...d]:g[0]===re.layer&&(d=[{layer:g[1]},...d]);return[m,l,C,w,d]})}},a=(await Promise.all(i.map(l=>s(l)))).flat().filter(l=>!!l);if(a.length)return a}stringifyUtil(e,r){if(!e)return;if(ft(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?r:void 0,void 0];let{selector:n,entries:o,parent:i,layer:s,sort:a,noMerge:l}=this.applyVariants(e),c=se(o);if(!c)return;let{layer:f,sort:p,...h}=e[3]??{},m={...h,layer:s??f,sort:a??p};return[e[0],n,c,i,m,this.config.details?r:void 0,l]}async expandShortcut(e,r,n=5){if(n===0)return;let o=this.config.details?a=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(a)}:Yt,i,s;for(let a of this.config.shortcuts){let l=e;if(a[2]?.prefix){let f=A(a[2].prefix).find(p=>e.startsWith(p));if(f==null)continue;l=e.slice(f.length)}if(Jt(a)){if(a[0]===l){i=i||a[2],s=a[1],o(a);break}}else{let c=l.match(a[0]);if(c&&(s=a[1](c,r)),s){i=i||a[2],o(a);break}}}if(s&&(s=A(s).map(a=>P(a)?Qt(a.trim()).split(/\s+/g):a).flat()),!s){let a=P(e)?await this.matchVariants(e):[e];for(let l of a){let[c,f]=l;if(c!==f){let p=await this.expandShortcut(f,r,n-1);p&&(s=p[0].map(h=>P(h)?c.replace(f,h):h))}}}if(s)return[(await Promise.all(s.map(async a=>(P(a)?(await this.expandShortcut(a,r,n-1))?.[0]:void 0)||[a]))).flat(1).filter(a=>!!a),i]}async stringifyShortcuts(e,r,n,o={layer:this.config.shortcutsLayer}){let i=new De,s=(await Promise.all(B(n).map(async f=>{let p=P(f)?await this.parseUtil(f,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",ie(f),void 0,[]]];return!p&&this.config.warn&&tr(`unmatched utility "${f}" in shortcut "${e[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((f,p)=>f[0]-p[0]),[a,,l]=e,c=[];for(let f of s){if(ft(f)){c.push([f[0],void 0,f[1],void 0,f[2],r,void 0]);continue}let{selector:p,entries:h,parent:m,sort:b,noMerge:y,layer:w}=this.applyVariants(f,[...f[4],...l],a);i.getFallback(w??o.layer,new We).getFallback(p,m,[[],f[0]])[0].push([h,!!(y??f[3]?.noMerge),b??0])}return c.concat(i.flatMap((f,p)=>f.map(([h,m],b,y)=>{let w=(x,$,V)=>{let C=Math.max(...V.map(g=>g[1])),d=V.map(g=>g[0]);return(x?[d.flat(1)]:d).map(g=>{let E=se(g);if(E)return[m,b,E,y,{...o,noMerge:$,sort:C,layer:p},r,void 0]})};return[[h.filter(([,x])=>x).map(([x,,$])=>[x,$]),!0],[h.filter(([,x])=>!x).map(([x,,$])=>[x,$]),!1]].map(([x,$])=>[...w(!1,$,x.filter(([V])=>V.some(C=>C[0]===re.shortcutsNoMerge))),...w(!0,$,x.filter(([V])=>V.every(C=>C[0]!==re.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(e):P(r)?r===e:r.test(e))}getBlocked(e){let r=this.config.blocklist.find(n=>{let o=Array.isArray(n)?n[0]:n;return typeof o=="function"?o(e):P(o)?o===e:o.test(e)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function cr(t,e){return await mt.create(t,e)}var ur=/\s\$\$\s+/g;function _i(t){return ur.test(t)}function Ii(t,e){return _i(t)?t.replace(ur,e?` ${e} `:" "):e?`${e} ${t}`:t}var lr=/^\[(.+?)(~?=)"(.*)"\]$/;function Wi(t){return lr.test(t)?t.replace(lr,(e,r,n,o)=>`[${Ie(r)}${n}"${Ie(o)}"]`):`.${Ie(t)}`}function Di(t,e){return e(t)}var gt=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function fr(t={}){let e=t.prefix??"un-",r=t.prefixedOnly??!1,n=t.trueToNonValued??!1,o;return{name:"attributify",match(i,{generator:s}){let a=Ht(i);if(!a)return;let l=a[1];if(l.startsWith(e))l=l.slice(e.length);else if(r)return;let c=a[2],[,f="",p=c]=c.match(gt)||[];if(p==="~"||n&&p==="true"||!p)return`${f}${l}`;if(o==null){let h=s?.config?.separators?.join("|");h?o=new RegExp(`^(.*\\](?:${h}))(\\[[^\\]]+?\\])$`):o=!1}if(o){let[,h,m]=c.match(o)||[];if(m)return`${h}${f}${l}-${m}`}if(f&&p.match(/^[\d.]+$/)){let h=f.split(/([^:]*:)/g).filter(Boolean),m=h.pop()+p,b=h.join("");return[{matcher:`${f}${l}-${p}`},{matcher:`${b}${l}-${m}`}]}return`${f}${l}-${p}`}}}var Ni=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,Bi=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,pr=/[\s'"`;>]+/;function dr(t){return{name:"attributify",extract:({content:e,cursor:r})=>{let n=e.matchAll(Ni),o,i=0;for(let x of n){let[,$,V]=x,C=x.index+$.length;if(r>C&&r<=C+V.length){i=C,o=V;break}}if(!o)return null;let s=o.matchAll(Bi),a=0,l,c;for(let x of s){let[$,V,C]=x,d=i+x.index;if(r>d&&r<=d+$.length){a=d,l=V,c=C?.slice(1);break}}if(!l||l==="class"||l==="className"||l===":class")return null;let f=!!t?.prefix&&l.startsWith(t.prefix);if(t?.prefixedOnly&&!f)return null;let p=f?l.slice(t.prefix.length):l;if(c===void 0)return{extracted:p,resolveReplacement(x){let $=f?t.prefix.length:0;return{start:a+$,end:a+l.length,replacement:x}}};let h=a+l.length+2,m=pr.exec(c),b=0,y;for(;m;){let[x]=m;if(r>h+b&&r<=h+b+m.index){y=c.slice(b,b+m.index);break}b+=m.index+x.length,m=pr.exec(c.slice(b))}y===void 0&&(y=c.slice(b));let[,w="",R]=y.match(gt)||[];return{extracted:`${w}${p}-${R}`,transformSuggestions(x){return x.filter($=>$.startsWith(`${w}${p}-`)).map($=>w+$.slice(w.length+p.length+1))},resolveReplacement(x){return{start:b+h,end:b+h+y.length,replacement:w+x.slice(w.length+p.length+1)}}}}}}var Ki=["v-bind:",":"],hr=/[\s'"`;]+/g,bt=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,Gi=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,xt=["placeholder","fill","opacity","stroke-opacity"];function mr(t){let e=t?.ignoreAttributes??xt,r=t?.nonValuedAttribute??!0,n=t?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(bt)).flatMap(i=>Array.from((i[1]||"").matchAll(Gi))).flatMap(([,i,...s])=>{let a=s.filter(Boolean).join("");if(e.includes(i))return[];for(let l of Ki)if(i.startsWith(l)){i=i.slice(l.length);break}if(!a){if(xe(i)&&r!==!1){let l=[`[${i}=""]`];return n&&l.push(`[${i}="true"]`),l}return[]}return["class","className"].includes(i)?a.split(hr).filter(xe):bt.test(a)?(bt.lastIndex=0,this.extract({code:a})):t?.prefixedOnly&&t.prefix&&!i.startsWith(t.prefix)?[]:a.split(hr).filter(l=>!!l&&l!==":").map(l=>`[${i}~="${l}"]`)})}}}var Hi=(t={})=>{t.strict=t.strict??!1,t.prefix=t.prefix??"un-",t.prefixedOnly=t.prefixedOnly??!1,t.nonValuedAttribute=t.nonValuedAttribute??!0,t.ignoreAttributes=t.ignoreAttributes??xt;let e=[fr(t)],r=[mr(t)],n=[dr(t)];return{name:"@unocss/preset-attributify",enforce:"post",variants:e,extractors:r,options:t,autocomplete:{extractors:n},extractorDefault:t.strict?!1:void 0}},gr=Hi;function qi(t){let e,r,n=2166136261;for(e=0,r=t.length;e<r;e++)n^=t.charCodeAt(e),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}function br(t,e,r,n){for(let o of Array.from(t.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${qi(i)}`;e.set(s,i),t=t.replace(i,s)}return t}function xr(t,e){for(let[r,n]of e.entries())t=t.replaceAll(r,n);return t}var Yi=/\/\/#\s*sourceMappingURL=.*\n?/g;function yr(t){return t.includes("sourceMappingURL=")?t.replace(Yi,""):t}var Xi=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,Zi=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,Ji=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function Qi(t){let e=[];for(let o of t.matchAll(Zi))o.index!==0&&!/^[\s'"`]/.test(t[o.index-1]??"")||e.push(o[0]);for(let o of t.matchAll(Xi))e.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return t=br(t,r,/-\[(?!&.+?;)[^\]]*\]/g,n),t&&t.split(Fe).forEach(o=>{o.includes(n)&&(o=xr(o,r)),xe(o)&&!Ji.test(o)&&e.push(o)}),e}function wr(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:t}){return Qi(yr(t))}}}var $r=[{layer:"preflights",getCSS(t){if(t.theme.preflightBase){let e=se(Object.entries(t.theme.preflightBase));return A(t.theme.preflightRoot??["*,::before,::after","::backdrop"]).map(n=>`${n}{${e}}`).join("")}}}];function ae(t,e,r){if(t==="")return;let n=t.length,o=0,i=!1,s=0;for(let a=0;a<n;a++)switch(t[a]){case e:i||(i=!0,s=a),o++;break;case r:if(--o,o<0)return;if(o===0)return[t.slice(s,a+1),t.slice(a+1),t.slice(0,s)];break}}function le(t,e,r,n){if(t===""||(P(n)&&(n=[n]),n.length===0))return;let o=t.length,i=0;for(let s=0;s<o;s++)switch(t[s]){case e:i++;break;case r:if(--i<0)return;break;default:for(let a of n){let l=a.length;if(l&&a===t.slice(s,s+l)&&i===0)return s===0||s===o-l?void 0:[t.slice(0,s),t.slice(s+l)]}}return[t,""]}function ce(t,e,r){r=r??10;let n=[],o=0;for(;t!=="";){if(++o>r)return;let i=le(t,"(",")",e);if(!i)return;let[s,a]=i;n.push(s),t=a}if(n.length>0)return n}var yt=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],Sr=["%alpha","<alpha-value>"],es=new RegExp(Sr.map(t=>Z(t)).join("|"));function J(t=""){let e=ts(t);if(e==null||e===!1)return;let{type:r,components:n,alpha:o}=e,i=r.toLowerCase();if(n.length!==0&&!(yt.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof o=="string"?o.trim():o}}function we(t){let e=t.alpha??1;return typeof e=="string"&&Sr.includes(e)?1:e}function _(t,e){if(typeof t=="string")return t.replace(es,`${e??1}`);let{components:r}=t,{alpha:n,type:o}=t;return n=e??n,o=o.toLowerCase(),["hsla","rgba"].includes(o)?`${o}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,yt.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function ts(t){if(!t)return;let e=rs(t);if(e!=null||(e=ns(t),e!=null)||(e=os(t),e!=null)||(e=ss(t),e!=null)||(e=as(t),e!=null))return e}function rs(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(e)switch(e.length){case 3:case 4:let r=Array.from(e,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:e.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:e.length===6?void 0:Math.round((n&255)/255*100)/100}}}function ns(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function os(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,n]=e,o=ce(n,",",5);if(o){if([3,4].includes(o.length))return{type:r,components:o.slice(0,3),alpha:o[3]};if(o.length!==1)return!1}}var is=new RegExp(`^(${yt.join("|")})\\((.+)\\)$`,"i");function ss(t){let e=t.match(is);if(!e)return;let[,r,n]=e,o=vr(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function as(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=vr(e[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function vr(t){let e=ce(t," ");if(!e)return;let r=e.length;if(e[r-2]==="/")return{components:e.slice(0,r-2),alpha:e[r-1]};if(e[r-2]!=null&&(e[r-2].endsWith("/")||e[r-1].startsWith("/"))){let i=e.splice(r-2);e.push(i.join(" ")),--r}let n=ce(e[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:e};let o=n.pop();return e[r-1]=n.join("/"),{components:e,alpha:o}}function Cr(t){let e=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let i of o){let s=t[i](n);if(s!=null)return s}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(t))Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get(){return r(this,n)}});return e}var kr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Er=new Uint8Array(64),ls=new Uint8Array(128);for(let t=0;t<kr.length;t++){let e=kr.charCodeAt(t);Er[t]=e,ls[e]=t}function $e(t,e,r){let n=e-r;n=n<0?-n<<1|1:n<<1;do{let o=n&31;n>>>=5,n>0&&(o|=32),t.write(Er[o])}while(n>0);return e}var Rr=1024*16,Tr=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(t){return Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}}:{decode(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e}},wt=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Rr)}write(e){let{buffer:r}=this;r[this.pos++]=e,this.pos===Rr&&(this.out+=Tr.decode(r),this.pos=0)}flush(){let{buffer:e,out:r,pos:n}=this;return n>0?r+Tr.decode(e.subarray(0,n)):r}};function jr(t){let e=new wt,r=0,n=0,o=0,i=0;for(let s=0;s<t.length;s++){let a=t[s];if(s>0&&e.write(59),a.length===0)continue;let l=0;for(let c=0;c<a.length;c++){let f=a[c];c>0&&e.write(44),l=$e(e,f[0],l),f.length!==1&&(r=$e(e,f[1],r),n=$e(e,f[2],n),o=$e(e,f[3],o),f.length!==4&&(i=$e(e,f[4],i)))}}return e.flush()}var Ke=class t{constructor(e){this.bits=e instanceof t?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}},Ge=class t{constructor(e,r,n){this.start=e,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){let e=new t(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let r=this;for(;r;)e(r),r=r.next}eachPrevious(e){let r=this;for(;r;)e(r),r=r.previous}edit(e,r,n){return this.content=e,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(e){let r=e-this.start,n=this.original.slice(0,r),o=this.original.slice(r);this.original=n;let i=new t(e,this.end,o);return i.outro=this.outro,this.outro="",this.end=e,this.edited?(i.edit("",!1),this.content=""):this.content=n,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(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;let r=this.content.replace(e,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;let r=this.content.replace(e,"");if(r.length){if(r!==this.content){let n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),this.outro.length)return!0}};function cs(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?t=>globalThis.btoa(unescape(encodeURIComponent(t))):typeof Buffer=="function"?t=>Buffer.from(t,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var us=cs(),$t=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=jr(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+us(this.toString())}};function fs(t){let e=t.split(`
|
|
3
|
-
`),r=e.filter(
|
|
4
|
-
`),r=[];for(let n=0,
|
|
5
|
-
`,0),a=-1;for(;s>=0&&
|
|
6
|
-
`,s+1)}let l=[this.generatedCodeColumn,e,n.line,n.column];
|
|
7
|
-
`)
|
|
8
|
-
`);if(r.length>1){for(let n=0;n<r.length-1;n++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=r[r.length-1].length}},
|
|
9
|
-
`,
|
|
10
|
-
`));else for(a=l.start;a<c;){if(!
|
|
11
|
-
`?i=!0:f!=="\r"&&i&&(i=!1,a===l.start||(this._splitChunk(l,a),l=l.next),l.prependRight(e))}a+=1}a=l.end,l=l.next}return this.outro=this.outro.replace(n,s),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(e,r){return ue.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),ue.insertLeft=!0),this.appendLeft(e,r)}insertRight(e,r){return ue.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),ue.insertRight=!0),this.prependRight(e,r)}move(e,r,n){if(n>=e&&n<=r)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(r),this._split(n);let o=this.byStart[e],i=this.byEnd[r],s=o.previous,a=i.next,l=this.byStart[n];if(!l&&i===this.lastChunk)return this;let c=l?l.previous:this.lastChunk;return s&&(s.next=a),a&&(a.previous=s),c&&(c.next=o),l&&(l.previous=i),o.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=o.previous,this.lastChunk.next=null),o.previous=c,i.next=l||null,c||(this.firstChunk=o),l||(this.lastChunk=i),this}overwrite(e,r,n,o){return o=o||{},this.update(e,r,n,{...o,overwrite:!o.contentOnly})}update(e,r,n,o){if(typeof n!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length}if(r>this.original.length)throw new Error("end is out of bounds");if(e===r)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(e),this._split(r),o===!0&&(ue.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),ue.storeName=!0),o={storeName:!0});let i=o!==void 0?o.storeName:!1,s=o!==void 0?o.overwrite:!1;if(i){let c=this.original.slice(e,r);Object.defineProperty(this.storedNames,c,{writable:!0,value:!0,enumerable:!0})}let a=this.byStart[e],l=this.byEnd[r];if(a){let c=a;for(;c!==l;){if(c.next!==this.byStart[c.end])throw new Error("Cannot overwrite across a split point");c=c.next,c.edit("",!1)}a.edit(n,i,!s)}else{let c=new Ge(e,r,"").edit(n,i);l.next=c,c.previous=l}return this}prepend(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this}prependLeft(e,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byEnd[e];return n?n.prependLeft(r):this.intro=r+this.intro,this}prependRight(e,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byStart[e];return n?n.prependRight(r):this.outro=r+this.outro,this}remove(e,r){if(this.original.length!==0){for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length}if(e===r)return this;if(e<0||r>this.original.length)throw new Error("Character is out of bounds");if(e>r)throw new Error("end must be greater than start");this._split(e),this._split(r);let n=this.byStart[e];for(;n;)n.intro="",n.outro="",n.edit(""),n=r>n.end?this.byStart[n.end]:null;return this}reset(e,r){if(this.original.length!==0){for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length}if(e===r)return this;if(e<0||r>this.original.length)throw new Error("Character is out of bounds");if(e>r)throw new Error("end must be greater than start");this._split(e),this._split(r);let n=this.byStart[e];for(;n;)n.reset(),n=r>n.end?this.byStart[n.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let e=this.outro.lastIndexOf(Se);if(e!==-1)return this.outro.substr(e+1);let r=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(e=n.outro.lastIndexOf(Se),e!==-1)return n.outro.substr(e+1)+r;r=n.outro+r}if(n.content.length>0){if(e=n.content.lastIndexOf(Se),e!==-1)return n.content.substr(e+1)+r;r=n.content+r}if(n.intro.length>0){if(e=n.intro.lastIndexOf(Se),e!==-1)return n.intro.substr(e+1)+r;r=n.intro+r}}while(n=n.previous);return e=this.intro.lastIndexOf(Se),e!==-1?this.intro.substr(e+1)+r:this.intro+r}slice(e=0,r=this.original.length){if(this.original.length!==0){for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length}let n="",o=this.firstChunk;for(;o&&(o.start>e||o.end<=e);){if(o.start<r&&o.end>=r)return n;o=o.next}if(o&&o.edited&&o.start!==e)throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);let i=o;for(;o;){o.intro&&(i!==o||o.start===e)&&(n+=o.intro);let s=o.start<r&&o.end>=r;if(s&&o.edited&&o.end!==r)throw new Error(`Cannot use replaced character ${r} as slice end anchor.`);let a=i===o?e-o.start:0,l=s?o.content.length+r-o.end:o.content.length;if(n+=o.content.slice(a,l),o.outro&&(!s||o.end===r)&&(n+=o.outro),s)break;o=o.next}return n}snip(e,r){let n=this.clone();return n.remove(0,e),n.remove(r,n.original.length),n}_split(e){if(this.byStart[e]||this.byEnd[e])return;let r=this.lastSearchedChunk,n=e>r.end;for(;r;){if(r.contains(e))return this._splitChunk(r,e);r=n?this.byStart[r.end]:this.byEnd[r.start]}}_splitChunk(e,r){if(e.edited&&e.content.length){let o=Ar(this.original)(r);throw new Error(`Cannot split a chunk that has already been edited (${o.line}:${o.column} \u2013 "${e.original}")`)}let n=e.split(r);return this.byEnd[r]=e,this.byStart[r]=n,this.byEnd[n.end]=n,e===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,r=this.firstChunk;for(;r;)e+=r.toString(),r=r.next;return e+this.outro}isEmpty(){let e=this.firstChunk;do if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1;while(e=e.next);return!0}length(){let e=this.firstChunk,r=0;do r+=e.intro.length+e.content.length+e.outro.length;while(e=e.next);return r}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){let r=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(r,""),this.outro.length)return!0;let n=this.lastChunk;do{let o=n.end,i=n.trimEnd(r);if(n.end!==o&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.previous}while(n);return!1}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){let r=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(r,""),this.intro.length)return!0;let n=this.firstChunk;do{let o=n.end,i=n.trimStart(r);if(n.end!==o&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.next}while(n);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,r){function n(i,s){return typeof r=="string"?r.replace(/\$(\$|&|\d+)/g,(a,l)=>l==="$"?"$":l==="&"?i[0]:+l<i.length?i[+l]:`$${l}`):r(...i,i.index,s,i.groups)}function o(i,s){let a,l=[];for(;a=i.exec(s);)l.push(a);return l}if(e.global)o(e,this.original).forEach(s=>{if(s.index!=null){let a=n(s,this.original);a!==s[0]&&this.overwrite(s.index,s.index+s[0].length,a)}});else{let i=this.original.match(e);if(i&&i.index!=null){let s=n(i,this.original);s!==i[0]&&this.overwrite(i.index,i.index+i[0].length,s)}}return this}_replaceString(e,r){let{original:n}=this,o=n.indexOf(e);return o!==-1&&this.overwrite(o,o+e.length,r),this}replace(e,r){return typeof e=="string"?this._replaceString(e,r):this._replaceRegexp(e,r)}_replaceAllString(e,r){let{original:n}=this,o=e.length;for(let i=n.indexOf(e);i!==-1;i=n.indexOf(e,i+o))n.slice(i,i+o)!==r&&this.overwrite(i,i+o,r);return this}replaceAll(e,r){if(typeof e=="string")return this._replaceAllString(e,r);if(!e.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(e,r)}};var gs=/theme\(\s*(['"])?(.*?)\1?\s*\)/g;function Or(t){return t.includes("theme(")&&t.includes(")")}function Vr(t,e,r=!0){let n=Array.from(t.toString().matchAll(gs));if(!n.length)return t;let o=new He(t);for(let i of n){let s=i[2];if(!s)throw new Error("theme() expect exact one argument, but got 0");let a=bs(s,e,r);a&&o.overwrite(i.index,i.index+i[0].length,a)}return o.toString()}function bs(t,e,r=!0){let[n,o]=t.split("/"),s=n.trim().split(".").reduce((a,l)=>a?.[l],e);if(typeof s=="object"&&(s=s.DEFAULT),typeof s=="string"){if(o){let a=J(s);a&&(s=_(a,o))}return s}else if(r)throw new Error(`theme of "${t}" did not found`)}function Q(t,e){let r;return{name:t,match(n,o){r||(r=new RegExp(`^${Z(t)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(s,a)=>a({...s,...e(s)})}},autocomplete:`${t}:`}}function ve(t,e){let r;return{name:t,match(n,o){r||(r=new RegExp(`^${Z(t)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}${e}`})}},autocomplete:`${t}:`}}function ee(t,e,r){if(e.startsWith(`${t}[`)){let[n,o]=ae(e.slice(t.length),"[","]")??[];if(n&&o){for(let i of r)if(o.startsWith(i))return[n,o.slice(i.length),i];return[n,o,""]}}}function F(t,e,r){if(e.startsWith(t)){let n=ee(t,e,r);if(n){let[o="",i=n[1]]=F("/",n[1],r)??[];return[n[0],i,o]}for(let o of r.filter(i=>i!=="/")){let i=e.indexOf(o,t.length);if(i!==-1){let s=e.indexOf("/",t.length),a=s===-1||i<=s;return[e.slice(t.length,a?i:s),e.slice(i+o.length),a?"":e.slice(s+1,i)]}}}}var Et={};Ci(Et,{auto:()=>ws,bracket:()=>Rs,bracketOfColor:()=>Ts,bracketOfLength:()=>Es,bracketOfPosition:()=>js,cssvar:()=>As,degree:()=>Vs,fraction:()=>ks,global:()=>Ps,number:()=>vs,numberWithUnit:()=>ys,percent:()=>Cs,position:()=>zs,properties:()=>Ms,px:()=>Ss,rem:()=>$s,time:()=>Os});var I={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"]},vt={...I,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"]},Ct={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"]},Mr={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},zr=["x","y","z"],Pr=["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"],Ce=Object.assign({},...Pr.map(t=>({[t.replace(/ /,"-")]:t})),...Pr.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t}))),j=["inherit","initial","revert","revert-layer","unset"],ke=/^(calc|clamp|min|max)\s*\((.+)\)(.*)/,qe=/^(var)\s*\((.+)\)(.*)/;var fe=/^(-?\d*(?:\.\d+)?)(px|pt|pc|%|r?(?:em|ex|lh|cap|ch|ic)|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i,kt=/^(-?\d*(?:\.\d+)?)$/,Rt=/^(px|[sld]?v[wh])$/i,Tt={px:1,vw:100,vh:100,svw:100,svh:100,dvw:100,dvh:100,lvh:100,lvw:100},Ye=/^\[(color|image|length|size|position|quoted|string):/i,Lr=/,(?![^()]*\))/g;var xs=["color","border-color","background-color","outline-color","text-decoration-color","flex-grow","flex","flex-shrink","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 D(t){return+t.toFixed(10)}function ys(t){let e=t.match(fe);if(!e)return;let[,r,n]=e,o=Number.parseFloat(r);if(n&&!Number.isNaN(o))return`${D(o)}${n}`}function ws(t){if(t==="auto"||t==="a")return"auto"}function $s(t){if(!t)return;if(Rt.test(t))return`${Tt[t]}${t}`;let e=t.match(fe);if(!e)return;let[,r,n]=e,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0?"0":n?`${D(o)}${n}`:`${D(o/4)}rem`}function Ss(t){if(Rt.test(t))return`${Tt[t]}${t}`;let e=t.match(fe);if(!e)return;let[,r,n]=e,o=Number.parseFloat(r);if(!Number.isNaN(o))return n?`${D(o)}${n}`:`${D(o)}px`}function vs(t){if(!kt.test(t))return;let e=Number.parseFloat(t);if(!Number.isNaN(e))return D(e)}function Cs(t){if(t.endsWith("%")&&(t=t.slice(0,-1)),!kt.test(t))return;let e=Number.parseFloat(t);if(!Number.isNaN(e))return`${D(e/100)}`}function ks(t){if(!t)return;if(t==="full")return"100%";let[e,r]=t.split("/"),n=Number.parseFloat(e)/Number.parseFloat(r);if(!Number.isNaN(n))return n===0?"0":`${D(n*100)}%`}function Xe(t,e){if(t&&t.startsWith("[")&&t.endsWith("]")){let r,n,o=t.match(Ye);if(o?(e||(n=o[1]),r=t.slice(o[0].length,-1)):r=t.slice(1,-1),!r||r==='=""')return;r.startsWith("--")&&(r=`var(${r})`);let i=0;for(let s of r)if(s==="[")i+=1;else if(s==="]"&&(i-=1,i<0))return;if(i)return;switch(n){case"string":return r.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_");case"quoted":return r.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(["\\])/g,"\\$1").replace(/^(.+)$/,'"$1"')}return r.replace(/(url\(.*?\))/g,s=>s.replace(/_/g,"\\_")).replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(?:calc|clamp|max|min)\((.*)/g,s=>{let a=[];return s.replace(/var\((--.+?)[,)]/g,(l,c)=>(a.push(c),l.replace(c,"--un-calc"))).replace(/(-?\d*\.?\d(?!-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ").replace(/--un-calc/g,()=>a.shift())})}}function Rs(t){return Xe(t)}function Ts(t){return Xe(t,"color")}function Es(t){return Xe(t,"length")}function js(t){return Xe(t,"position")}function As(t){if(/^\$[^\s'"`;{}]/.test(t)){let[e,r]=t.slice(1).split(",");return`var(--${te(e)}${r?`, ${r}`:""})`}}function Os(t){let e=t.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!e)return;let[,r,n]=e,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0&&!n?"0s":n?`${D(o)}${n}`:`${D(o)}ms`}function Vs(t){let e=t.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!e)return;let[,r,n]=e,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0?"0":n?`${D(o)}${n}`:`${D(o)}deg`}function Ps(t){if(j.includes(t))return t}function Ms(t){if(t.split(",").every(e=>xs.includes(e)))return t}function zs(t){if(["top","left","right","bottom","center"].includes(t))return t}var Ls=Cr(Et),u=Ls;var Fr={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(j.map(t=>[t,t]))},_r=[[/^(?:vertical|align|v)-([-\w]+%?)$/,([,t])=>({"vertical-align":Fr[t]??u.numberWithUnit(t)}),{autocomplete:[`(vertical|align|v)-(${Object.keys(Fr).join("|")})`,"(vertical|align|v)-<percentage>"]}]],Ur=["center","left","right","justify","start","end"],Ir=[...Ur.map(t=>[`text-${t}`,{"text-align":t}]),...[...j,...Ur].map(t=>[`text-align-${t}`,{"text-align":t}])];var Nr="$$mini-no-negative";function W(t){return([e,r,n],{theme:o})=>{let i=o.spacing?.[n||"DEFAULT"]??u.bracket.cssvar.global.auto.fraction.rem(n);if(i!=null)return I[r].map(s=>[`${t}${s}`,i]);if(n?.startsWith("-")){let s=o.spacing?.[n.slice(1)];if(s!=null)return I[r].map(a=>[`${t}${a}`,`calc(${s} * -1)`])}}}function Wr(t,e,r="colors"){let n=t[r],o=-1;for(let i of e){if(o+=1,n&&typeof n!="string"){let s=e.slice(o).join("-").replace(/(-[a-z])/g,a=>a.slice(1).toUpperCase());if(n[s])return n[s];if(n[i]){n=n[i];continue}}return}return n}function Ze(t,e,r){return Wr(t,e,r)||Wr(t,e,"colors")}function At(t,e){let[r,n]=le(t,"[","]",["/",":"])??[];if(r!=null){let o=(r.match(Ye)??[])[1];if(o==null||o===e)return[r,n]}}function Je(t,e,r){let n=At(t,"color");if(!n)return;let[o,i]=n,s=o.replace(/([a-z])(\d)/g,"$1-$2").split(/-/g),[a]=s;if(!a)return;let l,c=u.bracketOfColor(o),f=c||o;if(u.numberWithUnit(f))return;if(/^#[\da-f]+$/i.test(f)?l=f:/^hex-[\da-fA-F]+$/.test(f)?l=`#${f.slice(4)}`:o.startsWith("$")&&(l=u.cssvar(o)),l=l||c,!l){let h=Ze(e,[o],r);typeof h=="string"&&(l=h)}let p="DEFAULT";if(!l){let h,[m]=s.slice(-1);/^\d+$/.test(m)?(p=m,h=Ze(e,s.slice(0,-1),r),!h||typeof h=="string"?l=void 0:l=h[p]):(h=Ze(e,s,r),!h&&s.length<=2&&([,p=p]=s,h=Ze(e,[a],r)),typeof h=="string"?l=h:p&&h&&(l=h[p]))}return{opacity:i,name:a,no:p,color:l,cssColor:J(l),alpha:u.bracket.cssvar.percent(i??"")}}function z(t,e,r,n){return([,o],{theme:i,generator:s})=>{let a=Je(o,i,r);if(!a)return;let{alpha:l,color:c,cssColor:f}=a,h=s.config.envMode==="dev"&&c?` /* ${c} */`:"",m={};if(f)if(l!=null)m[t]=_(f,l)+h;else{let b=`--un-${e}-opacity`,y=_(f,`var(${b})`);y.includes(b)&&(m[b]=we(f)),m[t]=y+h}else if(c)if(l!=null)m[t]=_(c,l)+h;else{let b=`--un-${e}-opacity`,y=_(c,`var(${b})`);y.includes(b)&&(m[b]=1),m[t]=y+h}if(n?.(m)!==!1)return m}}function Qe(t,e){let r=[];t=A(t);for(let n=0;n<t.length;n++){let o=ce(t[n]," ",6);if(!o||o.length<3)return t;let i=!1,s=o.indexOf("inset");s!==-1&&(o.splice(s,1),i=!0);let a="",l=o.at(-1);if(J(o.at(0))){let c=J(o.shift());c&&(a=`, ${_(c)}`)}else if(J(l)){let c=J(o.pop());c&&(a=`, ${_(c)}`)}else l&&qe.test(l)&&(a=`, ${o.pop()}`);r.push(`${i?"inset ":""}${o.join(" ")} var(${e}${a})`)}return r}function et(t,e,r){return t!=null&&!!Je(t,e,r)?.color}var Dr=/[a-z]+/gi,jt=new WeakMap;function tt({theme:t,generator:e},r="breakpoints"){let n=e?.userConfig?.theme?.[r]||t[r];if(!n)return;if(jt.has(t))return jt.get(t);let o=Object.entries(n).sort((i,s)=>Number.parseInt(i[1].replace(Dr,""))-Number.parseInt(s[1].replace(Dr,""))).map(([i,s])=>({point:i,size:s}));return jt.set(t,o),o}function O(t,e){return j.map(r=>[`${t}-${r}`,{[e??t]:r}])}function N(t){return t!=null&&ke.test(t)}function Br(t){return t[0]==="["&&t.slice(-1)==="]"&&(t=t.slice(1,-1)),ke.test(t)||fe.test(t)}function rt(t,e,r){let n=e.split(Lr);return t||!t&&n.length===1?Mr[t].map(o=>[`--un-${r}${o}`,e]):n.map((o,i)=>[`--un-${r}-${zr[i]}`,o])}var Kr=[[/^outline-(?:width-|size-)?(.+)$/,Gr,{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,Fs,{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,t],{theme:e})=>({"outline-offset":e.lineWidth?.[t]??u.bracket.cssvar.global.px(t)}),{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset",...j].map(t=>[`outline-${t}`,{"outline-style":t}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]];function Gr([,t],{theme:e}){return{"outline-width":e.lineWidth?.[t]??u.bracket.cssvar.global.px(t)}}function Fs(t,e){return N(u.bracket(t[1]))?Gr(t,e):z("outline-color","outline-color","borderColor")(t,e)}var Hr=[["appearance-auto",{"-webkit-appearance":"auto",appearance:"auto"}],["appearance-none",{"-webkit-appearance":"none",appearance:"none"}]];function Us(t){return u.properties.auto.global(t)??{contents:"contents",scroll:"scroll-position"}[t]}var qr=[[/^will-change-(.+)/,([,t])=>({"will-change":Us(t)})]];var Ae=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...j],Xr=[[/^(?:border|b)()(?:-(.+))?$/,K,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,K],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,K],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,K],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,K],[/^(?:border|b)-()(?:width|size)-(.+)$/,K,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,K],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,K],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,K],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,K],[/^(?:border|b)-()(?:color-)?(.+)$/,Re,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,Re],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,Re],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,Re],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,Re],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,Te,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,Te],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,Te],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,Te],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,Te],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,Ee,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-$borderRadius","(rounded|rd)","(rounded|rd)-$borderRadius"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltbse])(?:-(.+))?$/,Ee],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,Ee],[/^(?:border-|b-)?(?:rounded|rd)-([bise][se])(?:-(.+))?$/,Ee],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,Ee],[/^(?:border|b)-(?:style-)?()(.+)$/,je,{autocomplete:["(border|b)-style",`(border|b)-(${Ae.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${Ae.join("|")})`,`(border|b)-<directions>-style-(${Ae.join("|")})`,`(border|b)-style-(${Ae.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,je],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,je],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,je],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,je]];function Yr(t,e,r){if(e!=null)return{[`border${r}-color`]:_(t,e)};if(r===""){let n={},o="--un-border-opacity",i=_(t,`var(${o})`);return i.includes(o)&&(n[o]=typeof t=="string"?1:we(t)),n["border-color"]=i,n}else{let n={},o="--un-border-opacity",i=`--un-border${r}-opacity`,s=_(t,`var(${i})`);return s.includes(i)&&(n[o]=typeof t=="string"?1:we(t),n[i]=`var(${o})`),n[`border${r}-color`]=s,n}}function _s(t){return([,e],r)=>{let n=Je(e,r,"borderColor");if(!n)return;let{alpha:o,color:i,cssColor:s}=n;if(s)return Yr(s,o,t);if(i)return Yr(i,o,t)}}function K([,t="",e],{theme:r}){let n=r.lineWidth?.[e||"DEFAULT"]??u.bracket.cssvar.global.px(e||"1");if(t in I&&n!=null)return I[t].map(o=>[`border${o}-width`,n])}function Re([,t="",e],r){if(t in I){if(N(u.bracket(e)))return K(["",t,e],r);if(et(e,r.theme,"borderColor"))return Object.assign({},...I[t].map(n=>_s(n)(["",e],r.theme)))}}function Te([,t="",e]){let r=u.bracket.percent.cssvar(e);if(t in I&&r!=null)return I[t].map(n=>[`--un-border${n}-opacity`,r])}function Ee([,t="",e],{theme:r}){let n=r.borderRadius?.[e||"DEFAULT"]||u.bracket.cssvar.global.fraction.rem(e||"1");if(t in Ct&&n!=null)return Ct[t].map(o=>[`border${o}-radius`,n])}function je([,t="",e]){if(Ae.includes(e)&&t in I)return I[t].map(r=>[`border${r}-style`,e])}var Zr=[[/^op(?:acity)?-?(.+)$/,([,t])=>({opacity:u.bracket.percent.cssvar(t)})]],Is=/^\[url\(.+\)\]$/,Ws=/^\[(?:length|size):.+\]$/,Ds=/^\[position:.+\]$/,Ns=/^\[(?:linear|conic|radial)-gradient\(.+\)\]$/,Bs=/^\[image:.+\]$/,Jr=[[/^bg-(.+)$/,(...t)=>{let e=t[0][1];if(Is.test(e))return{"--un-url":u.bracket(e),"background-image":"var(--un-url)"};if(Ws.test(e)&&u.bracketOfLength(e)!=null)return{"background-size":u.bracketOfLength(e).split(" ").map(r=>u.fraction.auto.px.cssvar(r)??r).join(" ")};if((Br(e)||Ds.test(e))&&u.bracketOfPosition(e)!=null)return{"background-position":u.bracketOfPosition(e).split(" ").map(r=>u.position.fraction.auto.px.cssvar(r)??r).join(" ")};if(Ns.test(e)||Bs.test(e)){let r=u.bracket(e);if(r)return{"background-image":(r.startsWith("http")?`url(${r})`:u.cssvar(r))??r}}return z("background-color","bg","backgroundColor")(...t)},{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,t])=>({"--un-bg-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"bg-(op|opacity)-<percent>"}]],Qr=[[/^color-scheme-(\w+)$/,([,t])=>({"color-scheme":t})]];var en=[[/^@container(?:\/(\w+))?(?:-(normal))?$/,([,t,e])=>({"container-type":e??"inline-size","container-name":t})]];var tn=["solid","double","dotted","dashed","wavy",...j],rn=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,t])=>({"text-decoration-line":t}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,nn,{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,t])=>({"text-decoration-thickness":t}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,Ks,{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-line-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,t],{theme:e})=>({"text-underline-offset":e.lineWidth?.[t]??u.auto.bracket.cssvar.global.px(t)}),{autocomplete:"(underline|decoration)-(offset)-<num>"}],...tn.map(t=>[`underline-${t}`,{"text-decoration-style":t}]),...tn.map(t=>[`decoration-${t}`,{"text-decoration-style":t}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];function nn([,t],{theme:e}){return{"text-decoration-thickness":e.lineWidth?.[t]??u.bracket.cssvar.global.px(t)}}function Ks(t,e){if(N(u.bracket(t[1])))return nn(t,e);let r=z("text-decoration-color","line","borderColor")(t,e);if(r)return{"-webkit-text-decoration-color":r["text-decoration-color"],...r}}var on=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,t])=>({flex:u.bracket(t)!=null?u.bracket(t).split(" ").map(e=>u.cssvar.fraction(e)??e).join(" "):u.cssvar.fraction(t)})],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^(?:flex-)?shrink(?:-(.*))?$/,([,t=""])=>({"flex-shrink":u.bracket.cssvar.number(t)??1}),{autocomplete:["flex-shrink-<num>","shrink-<num>"]}],[/^(?:flex-)?grow(?:-(.*))?$/,([,t=""])=>({"flex-grow":u.bracket.cssvar.number(t)??1}),{autocomplete:["flex-grow-<num>","grow-<num>"]}],[/^(?:flex-)?basis-(.+)$/,([,t],{theme:e})=>({"flex-basis":e.spacing?.[t]??u.bracket.cssvar.auto.fraction.rem(t)}),{autocomplete:["flex-basis-$spacing","basis-$spacing"]}],["flex-row",{"flex-direction":"row"}],["flex-row-reverse",{"flex-direction":"row-reverse"}],["flex-col",{"flex-direction":"column"}],["flex-col-reverse",{"flex-direction":"column-reverse"}],["flex-wrap",{"flex-wrap":"wrap"}],["flex-wrap-reverse",{"flex-wrap":"wrap-reverse"}],["flex-nowrap",{"flex-wrap":"nowrap"}]];var Gs={"":"",x:"column-",y:"row-",col:"column-",row:"row-"};function Ot([,t="",e],{theme:r}){let n=r.spacing?.[e]??u.bracket.cssvar.global.rem(e);if(n!=null)return{[`${Gs[t]}gap`]:n}}var sn=[[/^(?:flex-|grid-)?gap-?()(.+)$/,Ot,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,Ot,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}],[/^(?:flex-|grid-)?gap-(col|row)-?(.+)$/,Ot,{autocomplete:["gap-(col|row)-$spacing","gap-(col|row)-<num>"]}]];function H(t){return t.replace("col","column")}function Vt(t){return t[0]==="r"?"Row":"Column"}function Hs(t,e,r){let n=e[`gridAuto${Vt(t)}`]?.[r];if(n!=null)return n;switch(r){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return u.bracket.cssvar.auto.rem(r)}var an=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,t,e],{theme:r})=>({[`grid-${H(t)}`]:r[`grid${Vt(t)}`]?.[e]??u.bracket.cssvar.auto(e)})],[/^(?:grid-)?(row|col)-span-(.+)$/,([,t,e])=>{if(e==="full")return{[`grid-${H(t)}`]:"1/-1"};let r=u.bracket.number(e);if(r!=null)return{[`grid-${H(t)}`]:`span ${r}/span ${r}`}},{autocomplete:"(grid-row|grid-col|row|col)-span-<num>"}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,t,e])=>({[`grid-${H(t)}-start`]:u.bracket.cssvar(e)??e})],[/^(?:grid-)?(row|col)-end-(.+)$/,([,t,e])=>({[`grid-${H(t)}-end`]:u.bracket.cssvar(e)??e}),{autocomplete:"(grid-row|grid-col|row|col)-(start|end)-<num>"}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-auto-${H(t)}`]:Hs(t,r,e)}),{autocomplete:"(grid-auto|auto)-(rows|cols)-<num>"}],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,t])=>({"grid-auto-flow":u.bracket.cssvar(t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,t])=>({"grid-auto-flow":H(t).replace("-"," ")}),{autocomplete:["(grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)"]}],[/^(?:grid-)?(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-template-${H(t)}`]:r[`gridTemplate${Vt(t)}`]?.[e]??u.bracket.cssvar(e)})],[/^(?:grid-)?(rows|cols)-minmax-([\w.-]+)$/,([,t,e])=>({[`grid-template-${H(t)}`]:`repeat(auto-fill,minmax(${e},1fr))`})],[/^(?:grid-)?(rows|cols)-(\d+)$/,([,t,e])=>({[`grid-template-${H(t)}`]:`repeat(${e},minmax(0,1fr))`}),{autocomplete:"(grid-rows|grid-cols|rows|cols)-<num>"}],[/^grid-area(s)?-(.+)$/,([,t,e])=>t!=null?{"grid-template-areas":u.cssvar(e)??e.split("-").map(r=>`"${u.bracket(r)}"`).join(" ")}:{"grid-area":u.bracket.cssvar(e)}],["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"}]];var nt=["auto","hidden","clip","visible","scroll","overlay",...j],ln=[[/^(?:overflow|of)-(.+)$/,([,t])=>nt.includes(t)?{overflow:t}:void 0,{autocomplete:[`(overflow|of)-(${nt.join("|")})`,`(overflow|of)-(x|y)-(${nt.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,t,e])=>nt.includes(e)?{[`overflow-${t}`]:e}:void 0]];var cn=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,t])=>({position:t}),{autocomplete:["(position|pos)-<position>","(position|pos)-<globalKeyword>","<position>"]}],[/^(?:position-|pos-)([-\w]+)$/,([,t])=>j.includes(t)?{position:t}:void 0],[/^(?:position-|pos-)?(static)$/,([,t])=>({position:t})]],Mt=[["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"}],...O("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"}],...O("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"}],...O("justify-self")],un=[[/^order-(.+)$/,([,t])=>({order:u.bracket.cssvar.number(t)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],zt=[["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"}],...O("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"}],...O("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"}],...O("self","align-self")],Lt=[["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"}],...O("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"}],...O("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"}],...O("place-self")],fn=[...Mt,...zt,...Lt].flatMap(([t,e])=>[[`flex-${t}`,e],[`grid-${t}`,e]]);function Pt(t,{theme:e}){return e.spacing?.[t]??u.bracket.cssvar.global.auto.fraction.rem(t)}function Oe([,t,e],r){let n=Pt(e,r);if(n!=null&&t in vt)return vt[t].map(o=>[o.slice(1),n])}var pn=[[/^(?:position-|pos-)?inset-(.+)$/,([,t],e)=>({inset:Pt(t,e)}),{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)-(.+)$/,Oe],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,Oe],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,Oe],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,Oe],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,Oe],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,t,e],r)=>({[t]:Pt(e,r)})]],dn=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-start",{float:"inline-start"}],["float-end",{float:"inline-end"}],["float-none",{float:"none"}],...O("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"}],...O("clear")],hn=[[/^(?:position-|pos-)?z([\d.]+)$/,([,t])=>({"z-index":u.number(t)})],[/^(?:position-|pos-)?z-(.+)$/,([,t],{theme:e})=>({"z-index":e.zIndex?.[t]??u.bracket.cssvar.global.auto.number(t)}),{autocomplete:"z-<num>"}]],mn=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}],...O("box","box-sizing")];var gn=[[/^(where|\?)$/,(t,{constructCSS:e,generator:r})=>{if(r.userConfig.envMode==="dev")return`@keyframes __un_qm{0%{box-shadow:inset 4px 4px #ff1e90, inset -4px -4px #ff1e90}100%{box-shadow:inset 8px 8px #3399ff, inset -8px -8px #3399ff}} ${e({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]];var qs=["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"],Ys=["none","strict","content","size","inline-size","layout","style","paint"],ot=" ",bn=[["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-(.+)$/,([,t])=>({display:u.bracket.cssvar.global(t)})]],xn=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}],...O("backface","backface-visibility")],yn=[[/^cursor-(.+)$/,([,t])=>({cursor:u.bracket.cssvar.global(t)})],...qs.map(t=>[`cursor-${t}`,{cursor:t}])],wn=[[/^contain-(.*)$/,([,t])=>u.bracket(t)!=null?{contain:u.bracket(t).split(" ").map(e=>u.cssvar.fraction(e)??e).join(" ")}:Ys.includes(t)?{contain:t}:void 0]],$n=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}],...O("pointer-events")],Sn=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}],...O("resize")],vn=[["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"}],...O("select","user-select")],Cn=[[/^(?:whitespace-|ws-)([-\w]+)$/,([,t])=>["normal","nowrap","pre","pre-line","pre-wrap","break-spaces",...j].includes(t)?{"white-space":t}:void 0,{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],kn=[[/^intrinsic-size-(.+)$/,([,t])=>({"contain-intrinsic-size":u.bracket.cssvar.global.fraction.rem(t)}),{autocomplete:"intrinsic-size-<num>"}],["content-visibility-visible",{"content-visibility":"visible"}],["content-visibility-hidden",{"content-visibility":"hidden"}],["content-visibility-auto",{"content-visibility":"auto"}],...O("content-visibility")],Rn=[[/^content-(.+)$/,([,t])=>({content:u.bracket.cssvar(t)})],["content-empty",{content:'""'}],["content-none",{content:"none"}]],Tn=[["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"}]],En=[["text-wrap",{"text-wrap":"wrap"}],["text-nowrap",{"text-wrap":"nowrap"}],["text-balance",{"text-wrap":"balance"}],["text-pretty",{"text-wrap":"pretty"}]],jn=[["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"}]],An=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}],...O("case","text-transform")],On=[["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"}]],Vn=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"}]];var Pn={"--un-ring-inset":ot,"--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)"},Mn=[[/^ring(?:-(.+))?$/,([,t],{theme:e})=>{let r=e.ringWidth?.[t||"DEFAULT"]??u.px(t||"1");if(r)return{"--un-ring-width":r,"--un-ring-offset-shadow":"var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)","--un-ring-shadow":"var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color)","box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}},{autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,zn,{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>({"--un-ring-offset-width":e.lineWidth?.[t]??u.bracket.cssvar.px(t)}),{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,Xs,{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,z("--un-ring-offset-color","ring-offset","borderColor"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-offset-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];function zn([,t],{theme:e}){return{"--un-ring-width":e.ringWidth?.[t]??u.bracket.cssvar.px(t)}}function Xs(t,e){return N(u.bracket(t[1]))?zn(t,e):z("--un-ring-color","ring","borderColor")(t,e)}var Ln={"--un-ring-offset-shadow":"0 0 rgb(0 0 0 / 0)","--un-ring-shadow":"0 0 rgb(0 0 0 / 0)","--un-shadow-inset":ot,"--un-shadow":"0 0 rgb(0 0 0 / 0)"},Fn=[[/^shadow(?:-(.+))?$/,(t,e)=>{let[,r]=t,{theme:n}=e,o=n.boxShadow?.[r||"DEFAULT"],i=r?u.bracket.cssvar(r):void 0;return(o!=null||i!=null)&&!et(i,n,"shadowColor")?{"--un-shadow":Qe(o||i,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}:z("--un-shadow-color","shadow","shadowColor")(t,e)},{autocomplete:["shadow-$colors","shadow-$boxShadow"]}],[/^shadow-op(?:acity)?-?(.+)$/,([,t])=>({"--un-shadow-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var Zs={h:"height",w:"width",inline:"inline-size",block:"block-size"};function ne(t,e){return`${t||""}${Zs[e]}`}function it(t,e,r,n){let o=ne(t,e).replace(/-(\w)/g,(s,a)=>a.toUpperCase()),i=r[o]?.[n];if(i!=null)return i;switch(n){case"fit":case"max":case"min":return`${n}-content`}return u.bracket.cssvar.global.auto.fraction.rem(n)}var _n=[[/^size-(min-|max-)?(.+)$/,([,t,e],{theme:r})=>({[ne(t,"w")]:it(t,"w",r,e),[ne(t,"h")]:it(t,"h",r,e)})],[/^(?:size-)?(min-|max-)?([wh])-?(.+)$/,([,t,e,r],{theme:n})=>({[ne(t,e)]:it(t,e,n,r)})],[/^(?:size-)?(min-|max-)?(block|inline)-(.+)$/,([,t,e,r],{theme:n})=>({[ne(t,e)]:it(t,e,n,r)}),{autocomplete:["(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h|block|inline)","(max|min)-(w|h|block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(w|h)-full","(max|min)-(w|h)-full"]}],[/^(?:size-)?(min-|max-)?(h)-screen-(.+)$/,([,t,e,r],n)=>({[ne(t,e)]:Un(n,r,"verticalBreakpoints")})],[/^(?:size-)?(min-|max-)?(w)-screen-(.+)$/,([,t,e,r],n)=>({[ne(t,e)]:Un(n,r)}),{autocomplete:["(w|h)-screen","(min|max)-(w|h)-screen","h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints","w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function Un(t,e,r="breakpoints"){let n=tt(t,r);if(n)return n.find(o=>o.point===e)?.size}function Js(t){if(/^\d+\/\d+$/.test(t))return t;switch(t){case"square":return"1/1";case"video":return"16/9"}return u.bracket.cssvar.global.auto.number(t)}var In=[[/^(?:size-)?aspect-(?:ratio-)?(.+)$/,([,t])=>({"aspect-ratio":Js(t)}),{autocomplete:["aspect-(square|video|ratio)","aspect-ratio-(square|video)"]}]];var Wn=[[/^pa?()-?(.+)$/,W("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,W("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(.+))?$/,W("padding")],[/^p-?([rltbse])(?:-?(.+))?$/,W("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(.+))?$/,W("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(.+))?$/,W("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],Dn=[[/^ma?()-?(.+)$/,W("margin")],[/^m-?xy()()$/,W("margin")],[/^m-?([xy])(?:-?(.+))?$/,W("margin")],[/^m-?([rltbse])(?:-?(.+))?$/,W("margin")],[/^m-(block|inline)(?:-(.+))?$/,W("margin")],[/^m-?([bi][se])(?:-?(.+))?$/,W("margin")]];var Nn=[[/^fill-(.+)$/,z("fill","fill","backgroundColor"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,t])=>({"--un-fill-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,Bn,{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,t])=>({"stroke-dasharray":u.bracket.cssvar.number(t)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,t],{theme:e})=>({"stroke-dashoffset":e.lineWidth?.[t]??u.bracket.cssvar.px.numberWithUnit(t)}),{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,Qs,{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-stroke-opacity":u.bracket.percent.cssvar(t)}),{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 Bn([,t],{theme:e}){return{"stroke-width":e.lineWidth?.[t]??u.bracket.cssvar.fraction.px.number(t)}}function Qs(t,e){return N(u.bracket(t[1]))?Bn(t,e):z("stroke","stroke","borderColor")(t,e)}var st=["translate","rotate","scale"],ea=["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(" "),pe=["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(" "),ta=["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(" "),Yn={"--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},Xn=[[/^(?:transform-)?origin-(.+)$/,([,t])=>({"transform-origin":Ce[t]??u.bracket.cssvar(t)}),{autocomplete:[`transform-origin-(${Object.keys(Ce).join("|")})`,`origin-(${Object.keys(Ce).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,t])=>{let e=u.bracket.cssvar.px.numberWithUnit(t);if(e!=null)return{"-webkit-perspective":e,perspective:e}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,t])=>{let e=u.bracket.cssvar(t)??(t.length>=3?Ce[t]:void 0);if(e!=null)return{"-webkit-perspective-origin":e,"perspective-origin":e}}],[/^(?:transform-)?translate-()(.+)$/,Kn],[/^(?:transform-)?translate-([xyz])-(.+)$/,Kn],[/^(?:transform-)?rotate-()(.+)$/,Hn],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Hn],[/^(?:transform-)?skew-()(.+)$/,qn],[/^(?:transform-)?skew-([xy])-(.+)$/,qn,{autocomplete:["transform-skew-(x|y)-<percent>","skew-(x|y)-<percent>"]}],[/^(?:transform-)?scale-()(.+)$/,Gn],[/^(?:transform-)?scale-([xyz])-(.+)$/,Gn,{autocomplete:[`transform-(${st.join("|")})-<percent>`,`transform-(${st.join("|")})-(x|y|z)-<percent>`,`(${st.join("|")})-<percent>`,`(${st.join("|")})-(x|y|z)-<percent>`]}],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],["transform",{transform:pe}],["transform-cpu",{transform:ea}],["transform-gpu",{transform:ta}],["transform-none",{transform:"none"}],...O("transform")];function Kn([,t,e],{theme:r}){let n=r.spacing?.[e]??u.bracket.cssvar.fraction.rem(e);if(n!=null)return[...rt(t,n,"translate"),["transform",pe]]}function Gn([,t,e]){let r=u.bracket.cssvar.fraction.percent(e);if(r!=null)return[...rt(t,r,"scale"),["transform",pe]]}function Hn([,t="",e]){let r=u.bracket.cssvar.degree(e);if(r!=null)return t?{"--un-rotate":0,[`--un-rotate-${t}`]:r,transform:pe}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:pe}}function qn([,t,e]){let r=u.bracket.cssvar.degree(e);if(r!=null)return[...rt(t,r,"skew"),["transform",pe]]}function Zn(t,e){let r;if(u.cssvar(t)!=null)r=u.cssvar(t);else{t.startsWith("[")&&t.endsWith("]")&&(t=t.slice(1,-1));let n=t.split(",").map(o=>e.transitionProperty?.[o]??u.properties(o));n.every(Boolean)&&(r=n.join(","))}return r}var Jn=[[/^transition(?:-(\D+?))?(?:-(\d+))?$/,([,t,e],{theme:r})=>{if(!t&&!e)return{"transition-property":r.transitionProperty?.DEFAULT,"transition-timing-function":r.easing?.DEFAULT,"transition-duration":r.duration?.DEFAULT??u.time("150")};if(t!=null){let n=Zn(t,r),o=r.duration?.[e||"DEFAULT"]??u.time(e||"150");if(n)return{"transition-property":n,"transition-timing-function":r.easing?.DEFAULT,"transition-duration":o}}else if(e!=null)return{"transition-property":r.transitionProperty?.DEFAULT,"transition-timing-function":r.easing?.DEFAULT,"transition-duration":r.duration?.[e]??u.time(e)}},{autocomplete:"transition-$transitionProperty-$duration"}],[/^(?:transition-)?duration-(.+)$/,([,t],{theme:e})=>({"transition-duration":e.duration?.[t||"DEFAULT"]??u.bracket.cssvar.time(t)}),{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,t],{theme:e})=>({"transition-delay":e.duration?.[t||"DEFAULT"]??u.bracket.cssvar.time(t)}),{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,t],{theme:e})=>({"transition-timing-function":e.easing?.[t||"DEFAULT"]??u.bracket.cssvar(t)}),{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,t],{theme:e})=>{let r=u.global(t)||Zn(t,e);if(r)return{"transition-property":r}},{autocomplete:[`transition-property-(${[...j].join("|")})`,"transition-property-$transitionProperty","property-$transitionProperty"]}],["transition-none",{transition:"none"}],...O("transition"),["transition-discrete",{"transition-behavior":"allow-discrete"}],["transition-normal",{"transition-behavior":"normal"}]];var Qn=[[/^text-(.+)$/,na,{autocomplete:"text-$fontSize"}],[/^(?:text|font)-size-(.+)$/,oo,{autocomplete:"text-size-$fontSize"}],[/^text-(?:color-)?(.+)$/,ra,{autocomplete:"text-$colors"}],[/^(?:color|c)-(.+)$/,z("color","text","textColor"),{autocomplete:"(color|c)-$colors"}],[/^(?:text|color|c)-(.+)$/,([,t])=>j.includes(t)?{color:t}:void 0,{autocomplete:`(text|color|c)-(${j.join("|")})`}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}],[/^(?:font|fw)-?([^-]+)$/,([,t],{theme:e})=>({"font-weight":e.fontWeight?.[t]||u.bracket.global.number(t)}),{autocomplete:["(font|fw)-(100|200|300|400|500|600|700|800|900)","(font|fw)-$fontWeight"]}],[/^(?:font-)?(?:leading|lh|line-height)-(.+)$/,([,t],{theme:e})=>({"line-height":Ft(t,e,"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-(.+)$/,([,t])=>({"font-synthesis":u.bracket.cssvar.global(t)})],[/^(?:font-)?tracking-(.+)$/,([,t],{theme:e})=>({"letter-spacing":e.letterSpacing?.[t]||u.bracket.cssvar.global.rem(t)}),{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,t],{theme:e})=>({"word-spacing":e.wordSpacing?.[t]||u.bracket.cssvar.global.rem(t)}),{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-(.+)$/,([,t])=>({"font-stretch":u.bracket.cssvar.fraction.global(t)}),{autocomplete:"font-stretch-<percentage>"}],[/^font-(.+)$/,([,t],{theme:e})=>({"font-family":e.fontFamily?.[t]||u.bracket.cssvar.global(t)}),{autocomplete:"font-$fontFamily"}]],eo=[[/^tab(?:-(.+))?$/,([,t])=>{let e=u.bracket.cssvar.global.number(t||"4");if(e!=null)return{"-moz-tab-size":e,"-o-tab-size":e,"tab-size":e}}]],to=[[/^indent(?:-(.+))?$/,([,t],{theme:e})=>({"text-indent":e.textIndent?.[t||"DEFAULT"]||u.bracket.cssvar.global.fraction.rem(t)}),{autocomplete:"indent-$textIndent"}]],ro=[[/^text-stroke(?:-(.+))?$/,([,t],{theme:e})=>({"-webkit-text-stroke-width":e.textStrokeWidth?.[t||"DEFAULT"]||u.bracket.cssvar.px(t)}),{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,z("-webkit-text-stroke-color","text-stroke","borderColor"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-stroke-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],no=[[/^text-shadow(?:-(.+))?$/,([,t],{theme:e})=>{let r=e.textShadow?.[t||"DEFAULT"];return r!=null?{"--un-text-shadow":Qe(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":u.bracket.cssvar.global(t)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,z("--un-text-shadow-color","text-shadow","shadowColor"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-shadow-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];function Ft(t,e,r){return e[r]?.[t]||u.bracket.cssvar.global.rem(t)}function oo([,t],{theme:e}){let n=A(e.fontSize?.[t])?.[0]??u.bracket.cssvar.global.rem(t);if(n!=null)return{"font-size":n}}function ra(t,e){return N(u.bracket(t[1]))?oo(t,e):z("color","text","textColor")(t,e)}function na([,t="base"],{theme:e}){let r=At(t,"length");if(!r)return;let[n,o]=r,i=A(e.fontSize?.[n]),s=o?Ft(o,e,"lineHeight"):void 0;if(i?.[0]){let[l,c,f]=i;return typeof c=="object"?{"font-size":l,...c}:{"font-size":l,"line-height":s??c??"1","letter-spacing":f?Ft(f,e,"letterSpacing"):void 0}}let a=u.bracketOfLength.rem(n);return s&&a?{"font-size":a,"line-height":s}:{"font-size":u.bracketOfLength.rem(t)}}var oa={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"},io=[[/^(.+?)-(\$.+)$/,([,t,e])=>{let r=oa[t];if(r)return{[r]:u.cssvar(e)}}]],so=[[/^\[(.*)\]$/,([t,e])=>{if(!e.includes(":"))return;let[r,...n]=e.split(":"),o=n.join(":");if(!sa(e)&&/^[a-z-]+$/.test(r)&&ia(o)){let i=u.bracket(`[${o}]`);if(i)return{[r]:i}}}]];function ia(t){let e=0;function r(n){for(;e<t.length;)if(e+=1,t[e]===n)return!0;return!1}for(e=0;e<t.length;e++){let n=t[e];if("\"`'".includes(n)){if(!r(n))return!1}else if(n==="("){if(!r(")"))return!1}else if("[]{}:".includes(n))return!1}return!0}function sa(t){if(!t.includes("://"))return!1;try{return new URL(t).host!==""}catch{return!1}}var ao=[io,so,wn,$n,xn,cn,pn,hn,un,an,dn,Dn,mn,bn,In,_n,on,Xn,yn,vn,Sn,Hr,Lt,zt,Mt,sn,fn,ln,jn,Cn,Tn,Xr,Jr,Qr,Nn,Wn,Ir,to,En,_r,Qn,An,On,rn,Vn,eo,ro,no,Zr,Fn,Kr,Mn,Jn,qr,kn,Rn,en,gn].flat(1);var lo={position:["relative","absolute","fixed","sticky","static"],globalKeyword:j};var Ut={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(Ut).forEach(t=>{typeof t!="string"&&t!==void 0&&(t.DEFAULT=t.DEFAULT||t[400],Object.keys(t).forEach(e=>{let r=+e/100;r===Math.round(r)&&(t[r]=t[e])}))});var co={DEFAULT:"8px",0:"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},uo={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)"};var fo={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(",")},po={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"]},ho={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},mo={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},go={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)"]},bo={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},_t={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},xo={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},yo=_t;var It={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},wo={...It},$o={DEFAULT:"1px",none:"0"},So={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"},vo={DEFAULT:"150ms",none:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},Co={DEFAULT:"0.25rem",none:"0",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},ko={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)"},Ro={DEFAULT:"3px",none:"0"},To={auto:"auto"},Eo={mouse:"(hover) and (pointer: fine)"};var jo={...Yn,...Ln,...Pn};var Ve={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},Wt={auto:"auto",...Ve,screen:"100vw"},Pe={none:"none",...Ve,screen:"100vw"},Dt={auto:"auto",...Ve,screen:"100vh"},Me={none:"none",...Ve,screen:"100vh"},Ao={...Ve};var Oo={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)"},Vo={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(",")}};var Po={width:Wt,height:Dt,maxWidth:Pe,maxHeight:Me,minWidth:Pe,minHeight:Me,inlineSize:Wt,blockSize:Dt,maxInlineSize:Pe,maxBlockSize:Me,minInlineSize:Pe,minBlockSize:Me,colors:Ut,fontFamily:fo,fontSize:po,fontWeight:xo,breakpoints:It,verticalBreakpoints:wo,borderRadius:Co,lineHeight:bo,letterSpacing:_t,wordSpacing:yo,boxShadow:ko,textIndent:ho,textShadow:go,textStrokeWidth:mo,blur:co,dropShadow:uo,easing:Oo,transitionProperty:Vo,lineWidth:$o,spacing:So,duration:vo,ringWidth:Ro,preflightBase:jo,containers:Ao,zIndex:To,media:Eo};var Mo={name:"aria",match(t,e){let r=F("aria-",t,e.generator.config.separators);if(r){let[n,o]=r,i=u.bracket(n)??e.theme.aria?.[n]??"";if(i)return{matcher:o,selector:s=>`${s}[aria-${i}]`}}}};function at(t){return{name:`${t}-aria`,match(e,r){let n=F(`${t}-aria-`,e,r.generator.config.separators);if(n){let[o,i]=n,s=u.bracket(o)??r.theme.aria?.[o]??"";if(s)return{matcher:`${t}-[[aria-${s}]]:${i}`}}}}}var zo=[at("group"),at("peer"),at("parent"),at("previous")];function Lo(t){let e=t.match(/^-?\d+\.?\d*/)?.[0]||"",r=t.slice(e.length);if(r==="px"){let n=Number.parseFloat(e)-.1;return Number.isNaN(n)?t:`${n}${r}`}return`calc(${t} - 0.1px)`}var Fo=/(max|min)-\[([^\]]*)\]:/;function Uo(){let t={};return{name:"breakpoints",match(e,r){if(Fo.test(e)){let o=e.match(Fo);return{matcher:e.replace(o[0],""),handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@media (${o[1]}-width: ${o[2]})`})}}let n=(tt(r)??[]).map(({point:o,size:i},s)=>[o,i,s]);for(let[o,i,s]of n){t[o]||(t[o]=new RegExp(`^((?:([al]t-|[<~]|max-))?${o}(?:${r.generator.config.separators.join("|")}))`));let a=e.match(t[o]);if(!a)continue;let[,l]=a,c=e.slice(l.length);if(c==="container")continue;let f=l.startsWith("lt-")||l.startsWith("<")||l.startsWith("max-"),p=l.startsWith("at-")||l.startsWith("~"),h=3e3;return f?(h-=s+1,{matcher:c,handle:(m,b)=>b({...m,parent:`${m.parent?`${m.parent} $$ `:""}@media (max-width: ${Lo(i)})`,parentOrder:h})}):(h+=s+1,p&&s<n.length-1?{matcher:c,handle:(m,b)=>b({...m,parent:`${m.parent?`${m.parent} $$ `:""}@media (min-width: ${i}) and (max-width: ${Lo(n[s+1][1])})`,parentOrder:h})}:{matcher:c,handle:(m,b)=>b({...m,parent:`${m.parent?`${m.parent} $$ `:""}@media (min-width: ${i})`,parentOrder:h})})}},multiPass:!0,autocomplete:"(at-|lt-|max-|)$breakpoints:"}}var _o=[Q("*",t=>({selector:`${t.selector} > *`}))];function ze(t,e){return{name:`combinator:${t}`,match(r,n){if(!r.startsWith(t))return;let o=n.generator.config.separators,i=ee(`${t}-`,r,o);if(!i){for(let a of o)if(r.startsWith(`${t}${a}`)){i=["",r.slice(t.length+a.length)];break}if(!i)return}let s=u.bracket(i[0])??"";return s===""&&(s="*"),{matcher:i[1],selector:a=>`${a}${e}${s}`}},multiPass:!0}}var Io=[ze("all"," "),ze("children",">"),ze("next","+"),ze("sibling","+"),ze("siblings","~")];var Wo={name:"@",match(t,e){if(t.startsWith("@container"))return;let r=F("@",t,e.generator.config.separators);if(r){let[n,o,i]=r,s=u.bracket(n),a;if(s?a=u.numberWithUnit(s):a=e.theme.containers?.[n]??"",a){let l=1e3+Object.keys(e.theme.containers??{}).indexOf(n);return i&&(l+=1e3),{matcher:o,handle:(c,f)=>f({...c,parent:`${c.parent?`${c.parent} $$ `:""}@container${i?` ${i} `:" "}(min-width: ${a})`,parentOrder:l})}}}},multiPass:!0};function Do(t={}){if(t?.dark==="class"||typeof t.dark=="object"){let{dark:e=".dark",light:r=".light"}=typeof t.dark=="string"?{}:t.dark;return[Q("dark",n=>({prefix:`${e} $$ ${n.prefix}`})),Q("light",n=>({prefix:`${r} $$ ${n.prefix}`}))]}return[ve("dark","@media (prefers-color-scheme: dark)"),ve("light","@media (prefers-color-scheme: light)")]}var No={name:"data",match(t,e){let r=F("data-",t,e.generator.config.separators);if(r){let[n,o]=r,i=u.bracket(n)??e.theme.data?.[n]??"";if(i)return{matcher:o,selector:s=>`${s}[data-${i}]`}}}};function lt(t){return{name:`${t}-data`,match(e,r){let n=F(`${t}-data-`,e,r.generator.config.separators);if(n){let[o,i,s]=n,a=u.bracket(o)??r.theme.data?.[o]??"";if(a)return{matcher:`${t}-[[data-${a}]]${s?`/${s}`:""}:${i}`}}}}}var Bo=[lt("group"),lt("peer"),lt("parent"),lt("previous")];var Ko=[Q("rtl",t=>({prefix:`[dir="rtl"] $$ ${t.prefix}`})),Q("ltr",t=>({prefix:`[dir="ltr"] $$ ${t.prefix}`}))];function Go(){let t;return{name:"important",match(e,r){t||(t=new RegExp(`^(important(?:${r.generator.config.separators.join("|")})|!)`));let n,o=e.match(t);if(o?n=e.slice(o[0].length):e.endsWith("!")&&(n=e.slice(0,-1)),n)return{matcher:n,body:i=>(i.forEach(s=>{s[1]!=null&&(s[1]+=" !important")}),i)}}}}var Ho=ve("print","@media print"),qo={name:"media",match(t,e){let r=F("media-",t,e.generator.config.separators);if(r){let[n,o]=r,i=u.bracket(n)??"";if(i===""&&(i=e.theme.media?.[n]??""),i)return{matcher:o,handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@media ${i}`})}}},multiPass:!0};var Yo={name:"selector",match(t,e){let r=ee("selector-",t,e.generator.config.separators);if(r){let[n,o]=r,i=u.bracket(n);if(i)return{matcher:o,selector:()=>i}}}},Xo={name:"layer",match(t,e){let r=F("layer-",t,e.generator.config.separators);if(r){let[n,o]=r,i=u.bracket(n)??n;if(i)return{matcher:o,handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@layer ${i}`})}}}},Zo={name:"uno-layer",match(t,e){let r=F("uno-layer-",t,e.generator.config.separators);if(r){let[n,o]=r,i=u.bracket(n)??n;if(i)return{matcher:o,layer:i}}}},Jo={name:"scope",match(t,e){let r=ee("scope-",t,e.generator.config.separators);if(r){let[n,o]=r,i=u.bracket(n);if(i)return{matcher:o,selector:s=>`${i} $$ ${s}`}}}},Qo={name:"variables",match(t,e){if(!t.startsWith("["))return;let[r,n]=ae(t,"[","]")??[];if(!(r&&n))return;let o;for(let a of e.generator.config.separators)if(n.startsWith(a)){o=n.slice(a.length);break}if(o==null)return;let i=u.bracket(r)??"",s=i.startsWith("@");if(s||i.includes("&"))return{matcher:o,handle(a,l){let c=s?{parent:`${a.parent?`${a.parent} $$ `:""}${i}`}:{selector:i.replace(/&/g,a.selector)};return l({...a,...c})}}},multiPass:!0},ei={name:"theme-variables",match(t,e){if(Or(t))return{matcher:t,handle(r,n){return n({...r,entries:JSON.parse(Vr(JSON.stringify(r.entries),e.theme))})}}}};var ti=/^-?[0-9.]+(?:[a-z]+|%)?$/,ri=/-?[0-9.]+(?:[a-z]+|%)?/,aa=[/\b(opacity|color|flex|backdrop-filter|^filter|transform)\b/];function la(t){let e=t.match(ke)||t.match(qe);if(e){let[r,n]=le(`(${e[2]})${e[3]}`,"(",")"," ")??[];if(r)return`calc(${e[1]}${r} * -1)${n?` ${n}`:""}`}}var ca=/\b(hue-rotate)\s*(\(.*)/;function ua(t){let e=t.match(ca);if(e){let[r,n]=le(e[2],"(",")"," ")??[];if(r){let o=ti.test(r.slice(1,-1))?r.replace(ri,i=>i.startsWith("-")?i.slice(1):`-${i}`):`(calc(${r} * -1))`;return`${e[1]}${o}${n?` ${n}`:""}`}}}var ni={name:"negative",match(t){if(t.startsWith("-"))return{matcher:t.slice(1),body:e=>{if(e.find(n=>n[0]===Nr))return;let r=!1;return e.forEach(n=>{let o=n[1]?.toString();if(!o||o==="0"||aa.some(a=>a.test(n[0])))return;let i=la(o);if(i){n[1]=i,r=!0;return}let s=ua(o);if(s){n[1]=s,r=!0;return}ti.test(o)&&(n[1]=o.replace(ri,a=>a.startsWith("-")?a.slice(1):`-${a}`),r=!0)}),r?e:[]}}}};var de=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)"],"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(t=>Array.isArray(t)?t:[t,`:${t}`])),ai=Object.keys(de),he=Object.fromEntries([["backdrop","::backdrop"]].map(t=>Array.isArray(t)?t:[t,`:${t}`])),li=Object.keys(he),fa=["not","is","where","has"],ci=Object.fromEntries([["selection",["::selection"," *::selection"]],["marker",["::marker"," *::marker"]]]),Nt=Object.entries(de).filter(([,t])=>!t.startsWith("::")).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|"),Bt=Object.entries(he).filter(([,t])=>!t.startsWith("::")).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|"),oe=fa.join("|"),oi=Object.keys(ci).sort((t,e)=>e.length-t.length).join("|");function pa(t,e,r){let n=new RegExp(`^(${Z(e)}:)(\\S+)${Z(r)}\\1`),o,i,s,a,l=p=>{let h=ee(`${t}-`,p,[]);if(!h)return;let[m,b]=h,y=u.bracket(m);if(y==null)return;let w=b.split(o,1)?.[0]??"",R=`${e}${te(w)}`;return[w,p.slice(p.length-(b.length-w.length-1)),y.includes("&")?y.replace(/&/g,R):`${R}${y}`]},c=p=>{let h=p.match(i)||p.match(s);if(!h)return;let[m,b,y]=h,w=h[3]??"",R=de[y]||he[y]||`:${y}`;return b&&(R=`:${b}(${R})`),[w,p.slice(m.length),`${e}${te(w)}${R}`,y]},f=p=>{let h=p.match(a);if(!h)return;let[m,b,y]=h,w=h[3]??"",R=`:${b}(${y})`;return[w,p.slice(m.length),`${e}${te(w)}${R}`]};return{name:`pseudo:${t}`,match(p,h){if(o&&i&&s||(o=new RegExp(`(?:${h.generator.config.separators.join("|")})`),i=new RegExp(`^${t}-(?:(?:(${oe})-)?(${Nt}))(?:(/\\w+))?(?:${h.generator.config.separators.join("|")})`),s=new RegExp(`^${t}-(?:(?:(${oe})-)?(${Bt}))(?:(/\\w+))?(?:${h.generator.config.separators.filter(x=>x!=="-").join("|")})`),a=new RegExp(`^${t}-(?:(${oe})-)?\\[(.+)\\](?:(/\\w+))?(?:${h.generator.config.separators.filter(x=>x!=="-").join("|")})`)),!p.startsWith(t))return;let m=l(p)||c(p)||f(p);if(!m)return;let[b,y,w,R=""]=m;return{matcher:y,handle:(x,$)=>$({...x,prefix:`${w}${r}${x.prefix}`.replace(n,"$1$2:"),sort:ai.indexOf(R)??li.indexOf(R)})}},multiPass:!0}}var da=["::-webkit-resizer","::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-corner","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::file-selector-button"],ii=Object.entries(de).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|"),si=Object.entries(he).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|");function ui(){let t,e,r;return[{name:"pseudo",match(n,o){t&&e||(t=new RegExp(`^(${ii})(?:${o.generator.config.separators.join("|")})`),e=new RegExp(`^(${si})(?:${o.generator.config.separators.filter(s=>s!=="-").join("|")})`));let i=n.match(t)||n.match(e);if(i){let s=de[i[1]]||he[i[1]]||`:${i[1]}`,a=ai.indexOf(i[1]);return a===-1&&(a=li.indexOf(i[1])),a===-1&&(a=void 0),{matcher:n.slice(i[0].length),handle:(l,c)=>{let f=s.includes("::")&&!da.includes(s)?{pseudo:`${l.pseudo}${s}`}:{selector:`${l.selector}${s}`};return c({...l,...f,sort:a,noMerge:!0})}}}},multiPass:!0,autocomplete:`(${ii}|${si}):`},{name:"pseudo:multi",match(n,o){r||(r=new RegExp(`^(${oi})(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return ci[i[1]].map(a=>({matcher:n.slice(i[0].length),handle:(l,c)=>c({...l,pseudo:`${l.pseudo}${a}`})}))},multiPass:!1,autocomplete:`(${oi}):`}]}function fi(){let t,e,r;return{match(n,o){t&&e||(t=new RegExp(`^(${oe})-(${Nt})(?:${o.generator.config.separators.join("|")})`),e=new RegExp(`^(${oe})-(${Bt})(?:${o.generator.config.separators.filter(s=>s!=="-").join("|")})`),r=new RegExp(`^(${oe})-(\\[.+\\])(?:${o.generator.config.separators.filter(s=>s!=="-").join("|")})`));let i=n.match(t)||n.match(e)||n.match(r);if(i){let s=i[1],l=ae(i[2],"[","]")?u.bracket(i[2]):de[i[2]]||he[i[2]]||`:${i[2]}`;return{matcher:n.slice(i[0].length),selector:c=>`${c}:${s}(${l})`}}},multiPass:!0,autocomplete:`(${oe})-(${Nt}|${Bt}):`}}function pi(t={}){let e=!!t?.attributifyPseudo,r=t?.prefix??"";r=(Array.isArray(r)?r:[r]).filter(Boolean)[0]??"";let n=(o,i)=>pa(o,e?`[${r}${o}=""]`:`.${r}${o}`,i);return[n("group"," "),n("peer","~"),n("parent",">"),n("previous","+"),n("group-aria"," "),n("peer-aria","~"),n("parent-aria",">"),n("previous-aria","+")]}var ha=/(part-\[(.+)\]:)(.+)/,di={match(t){let e=t.match(ha);if(e){let r=`part(${e[2]})`;return{matcher:t.slice(e[1].length),selector:n=>`${n}::${r}`}}},multiPass:!0};var hi={name:"starting",match(t){if(t.startsWith("starting:"))return{matcher:t.slice(9),handle:(e,r)=>r({...e,parent:"@starting-style"})}}};var mi={name:"supports",match(t,e){let r=F("supports-",t,e.generator.config.separators);if(r){let[n,o]=r,i=u.bracket(n)??"";if(i===""&&(i=e.theme.supports?.[n]??""),i)return{matcher:o,handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@supports ${i}`})}}},multiPass:!0};function gi(t){return[Mo,No,Xo,Yo,Zo,ni,hi,Go(),mi,Ho,qo,Uo(),...Io,...ui(),fi(),...pi(t),di,...Do(t),...Ko,Jo,..._o,Wo,Qo,...Bo,...zo,ei]}var ma=(t={})=>(t.dark=t.dark??"class",t.attributifyPseudo=t.attributifyPseudo??!1,t.preflight=t.preflight??!0,t.variablePrefix=t.variablePrefix??"un-",{name:"@unocss/preset-mini",theme:Po,rules:ao,variants:gi(t),options:t,prefix:t.prefix,postprocess:ga(t.variablePrefix),preflights:t.preflight?ba($r,t.variablePrefix):[],extractorDefault:t.arbitraryVariants===!1?void 0:wr(),autocomplete:{shorthands:lo}}),bi=ma;function ga(t){if(t!=="un-")return e=>{e.entries.forEach(r=>{r[0]=r[0].replace(/^--un-/,`--${t}`),typeof r[1]=="string"&&(r[1]=r[1].replace(/var\(--un-/g,`var(--${t}`))})}}function ba(t,e){return e!=="un-"?t.map(r=>({...r,getCSS:async n=>{let o=await r.getCSS(n);if(o)return o.replace(/--un-/g,`--${e}`)}})):t}function xa(t){return t.replace(/-(\w)/g,(e,r)=>r?r.toUpperCase():"")}function xi(t){return t.charAt(0).toUpperCase()+t.slice(1)}function yi(t){return t.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var wi=["Webkit","Moz","ms"];function $i(t){let e={};function r(n){let o=e[n];if(o)return o;let i=xa(n);if(i!=="filter"&&i in t)return e[n]=yi(i);i=xi(i);for(let s=0;s<wi.length;s++){let a=`${wi[s]}${i}`;if(a in t)return e[n]=yi(xi(a))}return n}return({entries:n})=>n.forEach(o=>{o[0].startsWith("--")||(o[0]=r(o[0]))})}function Si(t){return t.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<")}async function Kt(t={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let e=window,r=window.document,n=()=>r.documentElement,o=e.__unocss||{},i=Object.assign({},t,o.runtime),s=i.defaults||{},a=i.cloakAttribute??"un-cloak";i.autoPrefix&&(s.postprocess=A(s.postprocess)).unshift($i(r.createElement("div").style)),i.configResolved?.(o,s);let l=await cr(o,s),c=v=>i.inject?i.inject(v):n().prepend(v),f=()=>i.rootElement?i.rootElement():r.body,p=new Map,h=!0,m=new Set,b,y,w=[],R=()=>new Promise(v=>{w.push(v),y!=null&&clearTimeout(y),y=setTimeout(()=>V().then(()=>{let T=w;w=[],T.forEach(S=>S())}),0)});function x(v,T=!1){if(v.nodeType!==1)return;let S=v;S.hasAttribute(a)&&S.removeAttribute(a),T&&S.querySelectorAll(`[${a}]`).forEach(k=>{k.removeAttribute(a)})}function $(v,T){let S=p.get(v);if(!S)if(S=r.createElement("style"),S.setAttribute("data-unocss-runtime-layer",v),p.set(v,S),T==null)c(S);else{let k=$(T),L=k.parentNode;L?L.insertBefore(S,k.nextSibling):c(S)}return S}async function V(){let v=[...m],T=await l.generate(v);return T.layers.reduce((k,L)=>($(L,k).innerHTML=T.getLayer(L)??"",L),void 0),v.filter(k=>!T.matched.has(k)).forEach(k=>m.delete(k)),{...T,getStyleElement:k=>p.get(k),getStyleElements:()=>p}}async function C(v){let T=m.size;await l.applyExtractors(v,void 0,m),T!==m.size&&await R()}async function d(v=f()){let T=v&&v.outerHTML;T&&(await C(`${T} ${Si(T)}`),x(n()),x(v,!0))}let g=new MutationObserver(v=>{h||v.forEach(async T=>{if(T.target.nodeType!==1)return;let S=T.target;for(let k of p)if(S===k[1])return;if(T.type==="childList")T.addedNodes.forEach(async k=>{if(k.nodeType!==1)return;let L=k;b&&!b(L)||(await C(L.outerHTML),x(L))});else{if(b&&!b(S))return;if(T.attributeName!==a){let k=Array.from(S.attributes).map(Y=>Y.value?`${Y.name}="${Y.value}"`:Y.name).join(" "),L=`<${S.tagName.toLowerCase()} ${k}>`;await C(L)}x(S)}})}),E=!1;function M(){if(E)return;let v=i.observer?.target?i.observer.target():f();v&&(g.observe(v,{childList:!0,subtree:!0,attributes:!0,attributeFilter:i.observer?.attributeFilter}),E=!0)}function U(){i.bypassDefined&&ya(l.blocked),d(),M()}function q(){r.readyState==="loading"?e.addEventListener("DOMContentLoaded",U):U()}let me=e.__unocss_runtime=e.__unocss_runtime={version:l.version,uno:l,async extract(v){P(v)||(v.forEach(T=>m.add(T)),v=""),await C(v)},extractAll:d,inspect(v){b=v},toggleObserver(v){v===void 0?h=!h:h=!!v,!E&&!h&&q()},update:V,presets:e.__unocss_runtime?.presets??{}};i.ready?.(me)!==!1&&(h=!1,q())}function ya(t=new Set){for(let e=0;e<document.styleSheets.length;e++){let r=document.styleSheets[e],n;try{if(n=r.cssRules||r.rules,!n)continue;Array.from(n).flatMap(o=>o.selectorText?.split(/,/g)||[]).forEach(o=>{o&&(o=o.trim(),o.startsWith(".")&&(o=o.slice(1)),t.add(o))})}catch{continue}}return t}Kt({defaults:{presets:[bi(),gr()]}});})();
|
|
1
|
+
"use strict";(()=>{var Ro=Object.defineProperty;var Eo=(t,e)=>{for(var r in e)Ro(t,r,{get:e[r],enumerable:!0})};var be="default",Ue="preflights",To="shortcuts",jo="imports",Jt={[jo]:-200,[Ue]:-100,[To]:-10,[be]:0};var _e=/[\\:]?[\s'"`;{}]+/g;function Ao(t){return t.split(_e)}var Ie={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Ao(t)}};function O(t=[]){return Array.isArray(t)?t:[t]}function H(t){return Array.from(new Set(t))}function ht(t,e){return t.reduce((r,n)=>(r.findIndex(o=>e(n,o))===-1&&r.push(n),r),[])}function z(t){return typeof t=="string"}var xe=class extends Set{_map;constructor(e){super(e),this._map??=new Map}add(e){return this._map??=new Map,this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.delete(e),super.delete(e)}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,r){return this._map.set(e,r),super.add(e)}};function We(t){return t instanceof xe}function Q(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ne(t){let e=t.length,r=-1,n,i="",o=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){i+="\uFFFD";continue}if(n===37){i+="\\%";continue}if(n===44){i+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&o===45){i+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){i+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){i+=t.charAt(r);continue}i+=`\\${t.charAt(r)}`}return i}var De=ne;var Oo=/^\[(.+?)~?="(.*)"\]$/;var Vo=/[\w\u00A0-\uFFFF%-?]/;function Qt(t){return t.match(Oo)}function ye(t=""){return Vo.test(t)}function er(t){return typeof t=="function"?{match:t}:t}function mt(t){return t.length===3}function Ne(t){return t!=null}function tr(){}var Be=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.has(r)||i.set(r,n),i.get(r)}set(e,r,n){let i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.set(r,n),this}has(e,r){return this._map.get(e)?.has(r)}delete(e,r){return this._map.get(e)?.delete(r)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([i,o])=>e(o,r,i)))}},Ke=class extends Map{getFallback(e,r){let n=this.get(e);return n===void 0?(this.set(e,r),r):n}map(e){let r=[];return this.forEach((n,i)=>{r.push(e(n,i))}),r}flatMap(e){let r=[];return this.forEach((n,i)=>{r.push(...e(n,i))}),r}};function ae(t){return z(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function rr(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>ae(e)):[t]:[ae(t)]}function Po(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let i=n-1;i>=0;i--)if(t[i][0]===e&&t[i][1]===r)return!1;return!0})}function le(t){return t==null?"":Po(t).map(([e,r])=>r!=null&&typeof r!="function"?`${e}:${r};`:void 0).filter(Boolean).join("")}function Ge(t){return t&&typeof t=="object"&&!Array.isArray(t)}function gt(t,e,r=!1){let n=t,i=e;if(Array.isArray(i))return r&&Array.isArray(i)?[...n,...i]:[...i];let o={...n};return Ge(n)&&Ge(i)&&Object.keys(i).forEach(s=>{Ge(n[s])&&Ge(i[s])||Array.isArray(n[s])&&Array.isArray(i[s])?o[s]=gt(n[s],i[s],r):Object.assign(o,{[s]:i[s]})}),o}function we(t){let e,r,n;if(Array.isArray(t)){for(r=Array.from({length:e=t.length});e--;)r[e]=(n=t[e])&&typeof n=="object"?we(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:we(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?we(n):n;return r}return t}function nr(t){return z(t[0])}function ir(t){return z(t[0])}var He={};function Mo(t=["-",":"]){let e=t.join("|");return He[e]||(He[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),He[e].lastIndex=0,He[e]}function zo(t,e=["-",":"],r=5){let n=Mo(e),i,o=t.toString(),s=new Set,a=new Map;do i=!1,o=o.replace(n,(c,f,p,d,h)=>{if(!e.includes(p))return c;i=!0,s.add(f+p);let b=h+f.length+p.length+1,y={length:c.length,items:[]};a.set(h,y);for(let $ of[...d.matchAll(/\S+/g)]){let k=b+$.index,x=a.get(k)?.items;x?a.delete(k):x=[{offset:k,length:$[0].length,className:$[0]}];for(let S of x)S.className=S.className==="~"?f:S.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),y.items.push(S)}return"$".repeat(c.length)}),r-=1;while(i&&r);let l;if(typeof t=="string"){l="";let c=0;for(let[f,p]of a)l+=t.slice(c,f),l+=p.items.map(d=>d.className).join(" "),c=f+p.length;l+=t.slice(c)}else{l=t;for(let[c,f]of a)l.overwrite(c,c+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:i,groupsByOffset:a,get expanded(){return l.toString()}}}function or(t,e=["-",":"],r=5){let n=zo(t,e,r);return typeof t=="string"?n.expanded:t}var sr=new Set;function ar(t){sr.has(t)||(console.warn("[unocss]",t),sr.add(t))}function ur(t){return O(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var lr="_uno_resolved";async function Lo(t){let e=typeof t=="function"?await t():await t;if(lr in e)return e;e={...e},Object.defineProperty(e,lr,{value:!0,enumerable:!1});let r=e.shortcuts?ur(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=i=>{i[2]||(i[2]={});let o=i[2];o.prefix==null&&e.prefix&&(o.prefix=O(e.prefix)),o.layer==null&&e.layer&&(o.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}async function fr(t){let e=await Lo(t);if(!e.presets)return[e];let r=(await Promise.all((e.presets||[]).flatMap(O).flatMap(fr))).flat();return[e,...r]}function Fo(t){if(t.length===0)return{};let e=[],r=[],n=!1,i=[],o=[],s=[];for(let l of t){if(l.pipeline===!1){n=!0;break}else l.pipeline?.include&&e.push(l.pipeline.include),l.pipeline?.exclude&&r.push(l.pipeline.exclude);l.filesystem&&i.push(l.filesystem),l.inline&&o.push(l.inline),l.plain&&s.push(l.plain)}let a={pipeline:n?!1:{include:H(cr(...e)),exclude:H(cr(...r))}};return i.length&&(a.filesystem=H(i.flat())),o.length&&(a.inline=H(o.flat())),s.length&&(a.plain=H(s.flat())),a}async function bt(t={},e={}){let r=Object.assign({},e,t),n=ht((await Promise.all((r.presets||[]).flatMap(O).flatMap(fr))).flat(),(g,m)=>g.name===m.name),i=[...n.filter(g=>g.enforce==="pre"),...n.filter(g=>!g.enforce),...n.filter(g=>g.enforce==="post")],o=[...i,r],s=[...o].reverse(),a=Object.assign({},Jt,...o.map(g=>g.layers));function l(g){return H(o.flatMap(m=>O(m[g]||[])))}let c=l("extractors"),f=s.find(g=>g.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Ie),f&&!c.includes(f)&&c.unshift(f),c.sort((g,m)=>(g.order||0)-(m.order||0));let p=l("rules"),d={},h=p.length,b=p.filter(g=>nr(g)?(O(g[2]?.prefix||"").forEach(w=>{d[w+g[0]]=g}),!1):!0).reverse(),y=Uo(o.map(g=>g.theme)),$=l("extendTheme");for(let g of $)y=g(y)||y;let k={templates:H(o.flatMap(g=>O(g.autocomplete?.templates))),extractors:o.flatMap(g=>O(g.autocomplete?.extractors)).sort((g,m)=>(g.order||0)-(m.order||0)),shorthands:_o(o.map(g=>g.autocomplete?.shorthands||{}))},x=l("separators");x.length||(x=[":","-"]);let S=l("content"),P=Fo(S),C={mergeSelectors:!0,warn:!0,sortLayers:g=>g,...r,blocklist:l("blocklist"),presets:i,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:y,rules:p,rulesSize:h,rulesDynamic:b,rulesStaticMap:d,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:k,variants:l("variants").map(er).sort((g,m)=>(g.order||0)-(m.order||0)),shortcuts:ur(l("shortcuts")).reverse(),extractors:c,safelist:l("safelist"),separators:x,details:r.details??r.envMode==="dev",content:P,transformers:ht(l("transformers"),(g,m)=>g.name===m.name)};for(let g of o)g?.configResolved?.(C);return C}function Uo(t){return t.map(e=>e?we(e):{}).reduce((e,r)=>gt(e,r),{})}function _o(t){return t.reduce((e,r)=>{let n={};for(let i in r){let o=r[i];Array.isArray(o)?n[i]=`(${o.join("|")})`:n[i]=o}return{...e,...n}},{})}function cr(...t){return t.flatMap(Io)}function Io(t){return Array.isArray(t)?t:t?[t]:[]}var pr="0.65.0-beta.3";function dr(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(r=>r(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(r=>r!==e)}}}var ie={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer"},xt=class t{constructor(e={},r={}){this.userConfig=e;this.defaults=r}version=pr;_cache=new Map;config=void 0;blocked=new Set;parentOrders=new Map;activatedRules=new Set;events=dr();static async create(e={},r={}){let n=new t(e,r);return n.config=await bt(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(e,r){e&&(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this._cache.clear(),this.config=await bt(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let i={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let o of this.config.extractors){let s=await o.extract?.(i);if(s)if(We(s)&&We(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:ie,variantHandlers:r[2],constructCSS:(...i)=>this.constructCustomCSS(n,...i),variantMatch:r};return n}async parseToken(e,r){if(this.blocked.has(e))return;let n=`${e}${r?` ${r}`:""}`;if(this._cache.has(n))return this._cache.get(n);let i=e;for(let l of this.config.preprocess)i=l(e);if(this.isBlocked(i)){this.blocked.add(e),this._cache.set(n,null);return}let o=await this.matchVariants(e,i);if(o.every(l=>!l||this.isBlocked(l[1]))){this.blocked.add(e),this._cache.set(n,null);return}let s=async l=>{let c=this.makeContext(e,[r||l[0],l[1],l[2],l[3]]);this.config.details&&(c.variants=[...l[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))?.map(d=>this.stringifyUtil(d,c)).filter(Ne)},a=(await Promise.all(o.map(l=>s(l)))).flat().filter(l=>!!l);if(a?.length)return this._cache.set(n,a),a;this._cache.set(n,null)}async generate(e,r={}){let{id:n,scope:i,preflights:o=!0,safelist:s=!0,minify:a=!1,extendedInfo:l=!1}=r,c=z(e)?await this.applyExtractors(e,n,l?new xe:new Set):Array.isArray(e)?new Set(e):e;if(s){let m={generator:this,theme:this.config.theme};this.config.safelist.flatMap(w=>typeof w=="function"?w(m):w).forEach(w=>{c.has(w)||c.add(w)})}let f=a?"":`
|
|
2
|
+
`,p=new Set([be]),d=l?new Map:new Set,h=new Map,b={},y=Array.from(c).map(async m=>{if(d.has(m))return;let w=await this.parseToken(m);if(w!=null){d instanceof Map?d.set(m,{data:w,count:We(c)?c.getCount(m):-1}):d.add(m);for(let j of w){let _=j[3]||"",I=j[4]?.layer;h.has(_)||h.set(_,[]),h.get(_).push(j),I&&p.add(I)}}});await Promise.all(y),await(async()=>{if(!o)return;let m={generator:this,theme:this.config.theme},w=new Set([]);this.config.preflights.forEach(({layer:j=Ue})=>{p.add(j),w.add(j)}),b=Object.fromEntries(await Promise.all(Array.from(w).map(async j=>{let I=(await Promise.all(this.config.preflights.filter(G=>(G.layer||Ue)===j).map(async G=>await G.getCSS(m)))).filter(Boolean).join(f);return[j,I]})))})();let $=this.config.sortLayers(Array.from(p).sort((m,w)=>(this.config.layers[m]??0)-(this.config.layers[w]??0)||m.localeCompare(w))),k={},x=this.config.outputToCssLayers,S=m=>{let w=m;return typeof x=="object"&&(w=x.cssLayerName?.(m)),w===null?null:w??m},P=(m=be)=>{if(k[m])return k[m];let w=Array.from(h).sort((I,G)=>(this.parentOrders.get(I[0])??0)-(this.parentOrders.get(G[0])??0)||I[0]?.localeCompare(G[0]||"")||0).map(([I,G])=>{let v=G.length,E=G.filter(R=>(R[4]?.layer||be)===m).sort((R,F)=>R[0]-F[0]||(R[4]?.sort||0)-(F[4]?.sort||0)||R[5]?.currentSelector?.localeCompare(F[5]?.currentSelector??"")||R[1]?.localeCompare(F[1]||"")||R[2]?.localeCompare(F[2]||"")||0).map(([,R,F,,Fe,,pt])=>[[[(R&&No(R,i))??"",Fe?.sort??0]],F,!!(pt??Fe?.noMerge)]);if(!E.length)return;let A=E.reverse().map(([R,F,Fe],pt)=>{if(!Fe&&this.config.mergeSelectors)for(let J=pt+1;J<v;J++){let Y=E[J];if(Y&&!Y[2]&&(R&&Y[0]||R==null&&Y[0]==null)&&Y[1]===F)return R&&Y[0]&&Y[0].push(...R),null}let dt=R?H(R.sort((J,Y)=>J[1]-Y[1]||J[0]?.localeCompare(Y[0]||"")||0).map(J=>J[0]).filter(Boolean)):[];return dt.length?`${dt.join(`,${f}`)}{${F}}`:F}).filter(Boolean).reverse().join(f);if(!I)return A;let M=I.split(" $$ ");return`${M.join("{")}{${f}${A}${f}${"}".repeat(M.length)}`}).filter(Boolean).join(f);o&&(w=[b[m],w].filter(Boolean).join(f));let j;x&&w&&(j=S(m),j!==null&&(w=`@layer ${j}{${f}${w}${f}}`));let _=a?"":`/* layer: ${m}${j&&j!==m?`, alias: ${j}`:""} */${f}`;return k[m]=w?_+w:""},C=(m=$,w)=>{let j=m.filter(_=>!w?.includes(_));return[x&&j.length>0?`@layer ${j.map(S).filter(Ne).join(", ")};`:void 0,...j.map(_=>P(_)||"")].filter(Boolean).join(f)};return{get css(){return C()},layers:$,matched:d,getLayers:C,getLayer:P,setLayer:async(m,w)=>{let j=await w(P(m));return k[m]=j,j}}}async matchVariants(e,r){let n={rawSelector:e,theme:this.config.theme,generator:this},i=async o=>{let s=!0,[,,a,l]=o;for(;s;){s=!1;let c=o[1];for(let f of this.config.variants){if(!f.multiPass&&l.has(f))continue;let p=await f.match(c,n);if(p){if(z(p)){if(p===c)continue;p={matcher:p}}if(Array.isArray(p)){if(!p.length)continue;if(p.length===1)p=p[0];else{if(f.multiPass)throw new Error("multiPass can not be used together with array return variants");let d=p.map(h=>{let b=h.matcher??c,y=[h,...a],$=new Set(l);return $.add(f),[o[0],b,y,$]});return(await Promise.all(d.map(h=>i(h)))).flat()}}o[1]=p.matcher??c,a.unshift(p),l.add(f),s=!0;break}}if(!s)break;if(a.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[o]};return await i([e,r||e,[],new Set])}applyVariants(e,r=e[4],n=e[1]){let o=r.slice().sort((c,f)=>(c.order||0)-(f.order||0)).reduceRight((c,f)=>p=>{let d=f.body?.(p.entries)||p.entries,h=Array.isArray(f.parent)?f.parent:[f.parent,void 0];return(f.handle??Ko)({...p,entries:d,selector:f.selector?.(p.selector,d)||p.selector,parent:h[0]||p.parent,parentOrder:h[1]||p.parentOrder,layer:f.layer||p.layer,sort:f.sort||p.sort},c)},c=>c)({prefix:"",selector:Bo(n),pseudo:"",entries:e[2]}),{parent:s,parentOrder:a}=o;s!=null&&a!=null&&this.parentOrders.set(s,a);let l={selector:[o.prefix,o.selector,o.pseudo].join(""),entries:o.entries,parent:s,layer:o.layer,sort:o.sort,noMerge:o.noMerge};for(let c of this.config.postprocess)c(l);return l}constructCustomCSS(e,r,n){let i=ae(r);if(z(i))return i;let{selector:o,entries:s,parent:a}=this.applyVariants([0,n||e.rawSelector,i,void 0,e.variantHandlers]),l=`${o}{${le(s)}}`;return a?`${a}{${l}}`:l}async parseUtil(e,r,n=!1,i){let o=z(e)?await this.matchVariants(e):[e],s=async([l,c,f])=>{this.config.details&&(r.rules=r.rules??[]);let p=this.config.rulesStaticMap[c];if(p&&p[1]&&(n||!p[2]?.internal)){r.generator.activatedRules.add(p),this.config.details&&r.rules.push(p);let h=this.config.rules.indexOf(p),b=ae(p[1]),y=p[2];return z(b)?[[h,b,y]]:[[h,l,b,y,f]]}r.variantHandlers=f;let{rulesDynamic:d}=this.config;for(let h of d){let[b,y,$]=h;if($?.internal&&!n)continue;let k=c;if($?.prefix){let C=O($.prefix);if(i){let g=O(i);if(!C.some(m=>g.includes(m)))continue}else{let g=C.find(m=>c.startsWith(m));if(g==null)continue;k=c.slice(g.length)}}let x=k.match(b);if(!x)continue;let S=await y(x,r);if(!S)continue;if(r.generator.activatedRules.add(h),this.config.details&&r.rules.push(h),typeof S!="string")if(Symbol.asyncIterator in S){let C=[];for await(let g of S)g&&C.push(g);S=C}else Symbol.iterator in S&&!Array.isArray(S)&&(S=Array.from(S).filter(Ne));let P=rr(S).filter(C=>C.length);if(P.length){let C=this.config.rules.indexOf(h);return P.map(g=>{if(z(g))return[C,g,$];let m=f;for(let w of g)w[0]===ie.variants?m=[...O(w[1]),...m]:w[0]===ie.parent?m=[{parent:w[1]},...m]:w[0]===ie.selector?m=[{selector:w[1]},...m]:w[0]===ie.layer&&(m=[{layer:w[1]},...m]);return[C,l,g,$,m]})}}},a=(await Promise.all(o.map(l=>s(l)))).flat().filter(l=>!!l);if(a.length)return a}stringifyUtil(e,r){if(!e)return;if(mt(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?r:void 0,void 0];let{selector:n,entries:i,parent:o,layer:s,sort:a,noMerge:l}=this.applyVariants(e),c=le(i);if(!c)return;let{layer:f,sort:p,...d}=e[3]??{},h={...d,layer:s??f,sort:a??p};return[e[0],n,c,o,h,this.config.details?r:void 0,l]}async expandShortcut(e,r,n=5){if(n===0)return;let i=this.config.details?a=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(a)}:tr,o,s;for(let a of this.config.shortcuts){let l=e;if(a[2]?.prefix){let f=O(a[2].prefix).find(p=>e.startsWith(p));if(f==null)continue;l=e.slice(f.length)}if(ir(a)){if(a[0]===l){o=o||a[2],s=a[1],i(a);break}}else{let c=l.match(a[0]);if(c&&(s=a[1](c,r)),s){o=o||a[2],i(a);break}}}if(s&&(s=O(s).map(a=>z(a)?or(a.trim()).split(/\s+/g):a).flat()),!s){let a=z(e)?await this.matchVariants(e):[e];for(let l of a){let[c,f]=l;if(c!==f){let p=await this.expandShortcut(f,r,n-1);p&&(s=p[0].map(d=>z(d)?c.replace(f,d):d))}}}if(s)return[(await Promise.all(s.map(async a=>(z(a)?(await this.expandShortcut(a,r,n-1))?.[0]:void 0)||[a]))).flat(1).filter(a=>!!a),o]}async stringifyShortcuts(e,r,n,i={layer:this.config.shortcutsLayer}){let o=new Ke,s=(await Promise.all(H(n).map(async f=>{let p=z(f)?await this.parseUtil(f,r,!0,i.prefix):[[Number.POSITIVE_INFINITY,"{inline}",ae(f),void 0,[]]];return!p&&this.config.warn&&ar(`unmatched utility "${f}" in shortcut "${e[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((f,p)=>f[0]-p[0]),[a,,l]=e,c=[];for(let f of s){if(mt(f)){c.push([f[0],void 0,f[1],void 0,f[2],r,void 0]);continue}let{selector:p,entries:d,parent:h,sort:b,noMerge:y,layer:$}=this.applyVariants(f,[...f[4],...l],a);o.getFallback($??i.layer,new Be).getFallback(p,h,[[],f[0]])[0].push([d,!!(y??f[3]?.noMerge),b??0])}return c.concat(o.flatMap((f,p)=>f.map(([d,h],b,y)=>{let $=(x,S,P)=>{let C=Math.max(...P.map(m=>m[1])),g=P.map(m=>m[0]);return(x?[g.flat(1)]:g).map(m=>{let w=le(m);if(w)return[h,b,w,y,{...i,noMerge:S,sort:C,layer:p},r,void 0]})};return[[d.filter(([,x])=>x).map(([x,,S])=>[x,S]),!0],[d.filter(([,x])=>!x).map(([x,,S])=>[x,S]),!1]].map(([x,S])=>[...$(!1,S,x.filter(([P])=>P.some(C=>C[0]===ie.shortcutsNoMerge))),...$(!0,S,x.filter(([P])=>P.every(C=>C[0]!==ie.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(e):z(r)?r===e:r.test(e))}getBlocked(e){let r=this.config.blocklist.find(n=>{let i=Array.isArray(n)?n[0]:n;return typeof i=="function"?i(e):z(i)?i===e:i.test(e)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function mr(t,e){return await xt.create(t,e)}var gr=/\s\$\$\s+/g;function Do(t){return gr.test(t)}function No(t,e){return Do(t)?t.replace(gr,e?` ${e} `:" "):e?`${e} ${t}`:t}var hr=/^\[(.+?)(~?=)"(.*)"\]$/;function Bo(t){return hr.test(t)?t.replace(hr,(e,r,n,i)=>`[${De(r)}${n}"${De(i)}"]`):`.${De(t)}`}function Ko(t,e){return e(t)}var yt=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function br(t={}){let e=t.prefix??"un-",r=t.prefixedOnly??!1,n=t.trueToNonValued??!1,i;return{name:"attributify",match(o,{generator:s}){let a=Qt(o);if(!a)return;let l=a[1];if(l.startsWith(e))l=l.slice(e.length);else if(r)return;let c=a[2],[,f="",p=c]=c.match(yt)||[];if(p==="~"||n&&p==="true"||!p)return`${f}${l}`;if(i==null){let d=s?.config?.separators?.join("|");d?i=new RegExp(`^(.*\\](?:${d}))(\\[[^\\]]+?\\])$`):i=!1}if(i){let[,d,h]=c.match(i)||[];if(h)return`${d}${f}${l}-${h}`}if(f&&p.match(/^[\d.]+$/)){let d=f.split(/([^:]*:)/g).filter(Boolean),h=d.pop()+p,b=d.join("");return[{matcher:`${f}${l}-${p}`},{matcher:`${b}${l}-${h}`}]}return`${f}${l}-${p}`}}}var Go=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,Ho=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,xr=/[\s'"`;>]+/;function yr(t){return{name:"attributify",extract:({content:e,cursor:r})=>{let n=e.matchAll(Go),i,o=0;for(let x of n){let[,S,P]=x,C=x.index+S.length;if(r>C&&r<=C+P.length){o=C,i=P;break}}if(!i)return null;let s=i.matchAll(Ho),a=0,l,c;for(let x of s){let[S,P,C]=x,g=o+x.index;if(r>g&&r<=g+S.length){a=g,l=P,c=C?.slice(1);break}}if(!l||l==="class"||l==="className"||l===":class")return null;let f=!!t?.prefix&&l.startsWith(t.prefix);if(t?.prefixedOnly&&!f)return null;let p=f?l.slice(t.prefix.length):l;if(c===void 0)return{extracted:p,resolveReplacement(x){let S=f?t.prefix.length:0;return{start:a+S,end:a+l.length,replacement:x}}};let d=a+l.length+2,h=xr.exec(c),b=0,y;for(;h;){let[x]=h;if(r>d+b&&r<=d+b+h.index){y=c.slice(b,b+h.index);break}b+=h.index+x.length,h=xr.exec(c.slice(b))}y===void 0&&(y=c.slice(b));let[,$="",k]=y.match(yt)||[];return{extracted:`${$}${p}-${k}`,transformSuggestions(x){return x.filter(S=>S.startsWith(`${$}${p}-`)).map(S=>$+S.slice($.length+p.length+1))},resolveReplacement(x){return{start:b+d,end:b+d+y.length,replacement:$+x.slice($.length+p.length+1)}}}}}}var qo=["v-bind:",":"],wr=/[\s'"`;]+/g,wt=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,Yo=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,$t=["placeholder","fill","opacity","stroke-opacity"];function $r(t){let e=t?.ignoreAttributes??$t,r=t?.nonValuedAttribute??!0,n=t?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:i}){return Array.from(i.matchAll(wt)).flatMap(o=>Array.from((o[1]||"").matchAll(Yo))).flatMap(([,o,...s])=>{let a=s.filter(Boolean).join("");if(e.includes(o))return[];for(let l of qo)if(o.startsWith(l)){o=o.slice(l.length);break}if(!a){if(ye(o)&&r!==!1){let l=[`[${o}=""]`];return n&&l.push(`[${o}="true"]`),l}return[]}return["class","className"].includes(o)?a.split(wr).filter(ye):wt.test(a)?(wt.lastIndex=0,this.extract({code:a})):t?.prefixedOnly&&t.prefix&&!o.startsWith(t.prefix)?[]:a.split(wr).filter(l=>!!l&&l!==":").map(l=>`[${o}~="${l}"]`)})}}}var Xo=(t={})=>{t.strict=t.strict??!1,t.prefix=t.prefix??"un-",t.prefixedOnly=t.prefixedOnly??!1,t.nonValuedAttribute=t.nonValuedAttribute??!0,t.ignoreAttributes=t.ignoreAttributes??$t;let e=[br(t)],r=[$r(t)],n=[yr(t)];return{name:"@unocss/preset-attributify",enforce:"post",variants:e,extractors:r,options:t,autocomplete:{extractors:n},extractorDefault:t.strict?!1:void 0}},Sr=Xo;function Zo(t){let e,r,n=2166136261;for(e=0,r=t.length;e<r;e++)n^=t.charCodeAt(e),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}function vr(t,e,r,n){for(let i of Array.from(t.matchAll(r)))if(i!=null){let o=i[0],s=`${n}${Zo(o)}`;e.set(s,o),t=t.replace(o,s)}return t}function Cr(t,e){for(let[r,n]of e.entries())t=t.replaceAll(r,n);return t}var Jo=/\/\/#\s*sourceMappingURL=.*\n?/g;function kr(t){return t.includes("sourceMappingURL=")?t.replace(Jo,""):t}var Qo=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,es=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,ts=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function rs(t){let e=[];for(let i of t.matchAll(es))i.index!==0&&!/^[\s'"`]/.test(t[i.index-1]??"")||e.push(i[0]);for(let i of t.matchAll(Qo))e.push(i[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return t=vr(t,r,/-\[(?!&.+?;)[^\]]*\]/g,n),t&&t.split(_e).forEach(i=>{i.includes(n)&&(i=Cr(i,r)),ye(i)&&!ts.test(i)&&e.push(i)}),e}function Rr(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:t}){return rs(kr(t))}}}function Er(t){if(t.preflight)return[{layer:"preflights",getCSS({theme:e,generator:r}){if(e.preflightBase){let n=Object.entries(e.preflightBase);if(t.preflight==="on-demand"){let i=new Set(Array.from(r.activatedRules).map(o=>o[2]?.custom?.preflightKeys).filter(Boolean).flat());n=n.filter(([o])=>i.has(o))}if(n.length>0){let i=le(n);return t.variablePrefix!=="un-"&&(i=i.replace(/--un-/g,`--${t.variablePrefix}`)),O(e.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${i}}`).join("")}}}}]}function ce(t,e,r){if(t==="")return;let n=t.length,i=0,o=!1,s=0;for(let a=0;a<n;a++)switch(t[a]){case e:o||(o=!0,s=a),i++;break;case r:if(--i,i<0)return;if(i===0)return[t.slice(s,a+1),t.slice(a+1),t.slice(0,s)];break}}function ue(t,e,r,n){if(t===""||(z(n)&&(n=[n]),n.length===0))return;let i=t.length,o=0;for(let s=0;s<i;s++)switch(t[s]){case e:o++;break;case r:if(--o<0)return;break;default:for(let a of n){let l=a.length;if(l&&a===t.slice(s,s+l)&&o===0)return s===0||s===i-l?void 0:[t.slice(0,s),t.slice(s+l)]}}return[t,""]}function fe(t,e,r){r=r??10;let n=[],i=0;for(;t!=="";){if(++i>r)return;let o=ue(t,"(",")",e);if(!o)return;let[s,a]=o;n.push(s),t=a}if(n.length>0)return n}var St=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],Tr=["%alpha","<alpha-value>"],ns=new RegExp(Tr.map(t=>Q(t)).join("|"));function ee(t=""){let e=is(t);if(e==null||e===!1)return;let{type:r,components:n,alpha:i}=e,o=r.toLowerCase();if(n.length!==0&&!(St.includes(o)&&![1,3].includes(n.length)))return{type:o,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof i=="string"?i.trim():i}}function $e(t){let e=t.alpha??1;return typeof e=="string"&&Tr.includes(e)?1:e}function W(t,e){if(typeof t=="string")return t.replace(ns,`${e??1}`);let{components:r}=t,{alpha:n,type:i}=t;return n=e??n,i=i.toLowerCase(),["hsla","rgba"].includes(i)?`${i}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,St.includes(i)?`${i}(${r.join(" ")}${n})`:`color(${i} ${r.join(" ")}${n})`)}function is(t){if(!t)return;let e=os(t);if(e!=null||(e=ss(t),e!=null)||(e=as(t),e!=null)||(e=cs(t),e!=null)||(e=us(t),e!=null))return e}function os(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(e)switch(e.length){case 3:case 4:let r=Array.from(e,i=>Number.parseInt(i,16)).map(i=>i<<4|i);return{type:"rgb",components:r.slice(0,3),alpha:e.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:e.length===6?void 0:Math.round((n&255)/255*100)/100}}}function ss(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function as(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,n]=e,i=fe(n,",",5);if(i){if([3,4].includes(i.length))return{type:r,components:i.slice(0,3),alpha:i[3]};if(i.length!==1)return!1}}var ls=new RegExp(`^(${St.join("|")})\\((.+)\\)$`,"i");function cs(t){let e=t.match(ls);if(!e)return;let[,r,n]=e,i=jr(`${r} ${n}`);if(i){let{alpha:o,components:[s,...a]}=i;return{type:s,components:a,alpha:o}}}function us(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=jr(e[1]);if(r){let{alpha:n,components:[i,...o]}=r;return{type:i,components:o,alpha:n}}}function jr(t){let e=fe(t," ");if(!e)return;let r=e.length;if(e[r-2]==="/")return{components:e.slice(0,r-2),alpha:e[r-1]};if(e[r-2]!=null&&(e[r-2].endsWith("/")||e[r-1].startsWith("/"))){let o=e.splice(r-2);e.push(o.join(" ")),--r}let n=fe(e[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:e};let i=n.pop();return e[r-1]=n.join("/"),{components:e,alpha:i}}function Ar(t){let e=function(n){let i=this.__options?.sequence||[];this.__options.sequence=[];for(let o of i){let s=t[o](n);if(s!=null)return s}};function r(n,i){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(i),n}for(let n of Object.keys(t))Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get(){return r(this,n)}});return e}var Or="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mr=new Uint8Array(64),fs=new Uint8Array(128);for(let t=0;t<Or.length;t++){let e=Or.charCodeAt(t);Mr[t]=e,fs[e]=t}function Se(t,e,r){let n=e-r;n=n<0?-n<<1|1:n<<1;do{let i=n&31;n>>>=5,n>0&&(i|=32),t.write(Mr[i])}while(n>0);return e}var Vr=1024*16,Pr=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(t){return Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}}:{decode(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e}},vt=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Vr)}write(e){let{buffer:r}=this;r[this.pos++]=e,this.pos===Vr&&(this.out+=Pr.decode(r),this.pos=0)}flush(){let{buffer:e,out:r,pos:n}=this;return n>0?r+Pr.decode(e.subarray(0,n)):r}};function zr(t){let e=new vt,r=0,n=0,i=0,o=0;for(let s=0;s<t.length;s++){let a=t[s];if(s>0&&e.write(59),a.length===0)continue;let l=0;for(let c=0;c<a.length;c++){let f=a[c];c>0&&e.write(44),l=Se(e,f[0],l),f.length!==1&&(r=Se(e,f[1],r),n=Se(e,f[2],n),i=Se(e,f[3],i),f.length!==4&&(o=Se(e,f[4],o)))}}return e.flush()}var qe=class t{constructor(e){this.bits=e instanceof t?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}},Ye=class t{constructor(e,r,n){this.start=e,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){let e=new t(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let r=this;for(;r;)e(r),r=r.next}eachPrevious(e){let r=this;for(;r;)e(r),r=r.previous}edit(e,r,n){return this.content=e,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(e){let r=e-this.start,n=this.original.slice(0,r),i=this.original.slice(r);this.original=n;let o=new t(e,this.end,i);return o.outro=this.outro,this.outro="",this.end=e,this.edited?(o.edit("",!1),this.content=""):this.content=n,o.next=this.next,o.next&&(o.next.previous=o),o.previous=this,this.next=o,o}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;let r=this.content.replace(e,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;let r=this.content.replace(e,"");if(r.length){if(r!==this.content){let n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),this.outro.length)return!0}};function ps(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?t=>globalThis.btoa(unescape(encodeURIComponent(t))):typeof Buffer=="function"?t=>Buffer.from(t,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var ds=ps(),Ct=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=zr(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+ds(this.toString())}};function hs(t){let e=t.split(`
|
|
3
|
+
`),r=e.filter(o=>/^\t+/.test(o)),n=e.filter(o=>/^ {2,}/.test(o));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let i=n.reduce((o,s)=>{let a=/^ +/.exec(s)[0].length;return Math.min(a,o)},1/0);return new Array(i+1).join(" ")}function ms(t,e){let r=t.split(/[/\\]/),n=e.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let i=r.length;for(;i--;)r[i]=".."}return r.concat(n).join("/")}var gs=Object.prototype.toString;function bs(t){return gs.call(t)==="[object Object]"}function Lr(t){let e=t.split(`
|
|
4
|
+
`),r=[];for(let n=0,i=0;n<e.length;n++)r.push(i),i+=e[n].length+1;return function(i){let o=0,s=r.length;for(;o<s;){let c=o+s>>1;i<r[c]?s=c:o=c+1}let a=o-1,l=i-r[a];return{line:a,column:l}}}var xs=/\w/,kt=class{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,r,n,i){if(r.length){let o=r.length-1,s=r.indexOf(`
|
|
5
|
+
`,0),a=-1;for(;s>=0&&o>s;){let c=[this.generatedCodeColumn,e,n.line,n.column];i>=0&&c.push(i),this.rawSegments.push(c),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,a=s,s=r.indexOf(`
|
|
6
|
+
`,s+1)}let l=[this.generatedCodeColumn,e,n.line,n.column];i>=0&&l.push(i),this.rawSegments.push(l),this.advance(r.slice(a+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(r));this.pending=null}addUneditedChunk(e,r,n,i,o){let s=r.start,a=!0,l=!1;for(;s<r.end;){if(n[s]===`
|
|
7
|
+
`)i.line+=1,i.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,a=!0;else{if(this.hires||a||o.has(s)){let c=[this.generatedCodeColumn,e,i.line,i.column];this.hires==="boundary"?xs.test(n[s])?l||(this.rawSegments.push(c),l=!0):(this.rawSegments.push(c),l=!1):this.rawSegments.push(c)}i.column+=1,this.generatedCodeColumn+=1,a=!1}s+=1}this.pending=null}advance(e){if(!e)return;let r=e.split(`
|
|
8
|
+
`);if(r.length>1){for(let n=0;n<r.length-1;n++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=r[r.length-1].length}},ve=`
|
|
9
|
+
`,pe={insertLeft:!1,insertRight:!1,storeName:!1},Xe=class t{constructor(e,r={}){let n=new Ye(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:r.filename},indentExclusionRanges:{writable:!0,value:r.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new qe},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:r.ignoreList}}),this.byStart[0]=n,this.byEnd[e.length]=n}addSourcemapLocation(e){this.sourcemapLocations.add(e)}append(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.outro+=e,this}appendLeft(e,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byEnd[e];return n?n.appendLeft(r):this.intro+=r,this}appendRight(e,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byStart[e];return n?n.appendRight(r):this.outro+=r,this}clone(){let e=new t(this.original,{filename:this.filename}),r=this.firstChunk,n=e.firstChunk=e.lastSearchedChunk=r.clone();for(;r;){e.byStart[n.start]=n,e.byEnd[n.end]=n;let i=r.next,o=i&&i.clone();o&&(n.next=o,o.previous=n,n=o),r=i}return e.lastChunk=n,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new qe(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};let r=0,n=Object.keys(this.storedNames),i=new kt(e.hires),o=Lr(this.original);return this.intro&&i.advance(this.intro),this.firstChunk.eachNext(s=>{let a=o(s.start);s.intro.length&&i.advance(s.intro),s.edited?i.addEdit(r,s.content,a,s.storeName?n.indexOf(s.original):-1):i.addUneditedChunk(r,s,this.original,a,this.sourcemapLocations),s.outro.length&&i.advance(s.outro)}),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?ms(e.file||"",e.source):e.file||""],sourcesContent:e.includeContent?[this.original]:void 0,names:n,mappings:i.raw,x_google_ignoreList:this.ignoreList?[r]:void 0}}generateMap(e){return new Ct(this.generateDecodedMap(e))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=hs(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(e,r){let n=/^[^\r\n]/gm;if(bs(e)&&(r=e,e=void 0),e===void 0&&(this._ensureindentStr(),e=this.indentStr||" "),e==="")return this;r=r||{};let i={};r.exclude&&(typeof r.exclude[0]=="number"?[r.exclude]:r.exclude).forEach(f=>{for(let p=f[0];p<f[1];p+=1)i[p]=!0});let o=r.indentStart!==!1,s=c=>o?`${e}${c}`:(o=!0,c);this.intro=this.intro.replace(n,s);let a=0,l=this.firstChunk;for(;l;){let c=l.end;if(l.edited)i[a]||(l.content=l.content.replace(n,s),l.content.length&&(o=l.content[l.content.length-1]===`
|
|
10
|
+
`));else for(a=l.start;a<c;){if(!i[a]){let f=this.original[a];f===`
|
|
11
|
+
`?o=!0:f!=="\r"&&o&&(o=!1,a===l.start||(this._splitChunk(l,a),l=l.next),l.prependRight(e))}a+=1}a=l.end,l=l.next}return this.outro=this.outro.replace(n,s),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(e,r){return pe.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),pe.insertLeft=!0),this.appendLeft(e,r)}insertRight(e,r){return pe.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),pe.insertRight=!0),this.prependRight(e,r)}move(e,r,n){if(n>=e&&n<=r)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(r),this._split(n);let i=this.byStart[e],o=this.byEnd[r],s=i.previous,a=o.next,l=this.byStart[n];if(!l&&o===this.lastChunk)return this;let c=l?l.previous:this.lastChunk;return s&&(s.next=a),a&&(a.previous=s),c&&(c.next=i),l&&(l.previous=o),i.previous||(this.firstChunk=o.next),o.next||(this.lastChunk=i.previous,this.lastChunk.next=null),i.previous=c,o.next=l||null,c||(this.firstChunk=i),l||(this.lastChunk=o),this}overwrite(e,r,n,i){return i=i||{},this.update(e,r,n,{...i,overwrite:!i.contentOnly})}update(e,r,n,i){if(typeof n!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length}if(r>this.original.length)throw new Error("end is out of bounds");if(e===r)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(e),this._split(r),i===!0&&(pe.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),pe.storeName=!0),i={storeName:!0});let o=i!==void 0?i.storeName:!1,s=i!==void 0?i.overwrite:!1;if(o){let c=this.original.slice(e,r);Object.defineProperty(this.storedNames,c,{writable:!0,value:!0,enumerable:!0})}let a=this.byStart[e],l=this.byEnd[r];if(a){let c=a;for(;c!==l;){if(c.next!==this.byStart[c.end])throw new Error("Cannot overwrite across a split point");c=c.next,c.edit("",!1)}a.edit(n,o,!s)}else{let c=new Ye(e,r,"").edit(n,o);l.next=c,c.previous=l}return this}prepend(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this}prependLeft(e,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byEnd[e];return n?n.prependLeft(r):this.intro=r+this.intro,this}prependRight(e,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byStart[e];return n?n.prependRight(r):this.outro=r+this.outro,this}remove(e,r){if(this.original.length!==0){for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length}if(e===r)return this;if(e<0||r>this.original.length)throw new Error("Character is out of bounds");if(e>r)throw new Error("end must be greater than start");this._split(e),this._split(r);let n=this.byStart[e];for(;n;)n.intro="",n.outro="",n.edit(""),n=r>n.end?this.byStart[n.end]:null;return this}reset(e,r){if(this.original.length!==0){for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length}if(e===r)return this;if(e<0||r>this.original.length)throw new Error("Character is out of bounds");if(e>r)throw new Error("end must be greater than start");this._split(e),this._split(r);let n=this.byStart[e];for(;n;)n.reset(),n=r>n.end?this.byStart[n.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let e=this.outro.lastIndexOf(ve);if(e!==-1)return this.outro.substr(e+1);let r=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(e=n.outro.lastIndexOf(ve),e!==-1)return n.outro.substr(e+1)+r;r=n.outro+r}if(n.content.length>0){if(e=n.content.lastIndexOf(ve),e!==-1)return n.content.substr(e+1)+r;r=n.content+r}if(n.intro.length>0){if(e=n.intro.lastIndexOf(ve),e!==-1)return n.intro.substr(e+1)+r;r=n.intro+r}}while(n=n.previous);return e=this.intro.lastIndexOf(ve),e!==-1?this.intro.substr(e+1)+r:this.intro+r}slice(e=0,r=this.original.length){if(this.original.length!==0){for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length}let n="",i=this.firstChunk;for(;i&&(i.start>e||i.end<=e);){if(i.start<r&&i.end>=r)return n;i=i.next}if(i&&i.edited&&i.start!==e)throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);let o=i;for(;i;){i.intro&&(o!==i||i.start===e)&&(n+=i.intro);let s=i.start<r&&i.end>=r;if(s&&i.edited&&i.end!==r)throw new Error(`Cannot use replaced character ${r} as slice end anchor.`);let a=o===i?e-i.start:0,l=s?i.content.length+r-i.end:i.content.length;if(n+=i.content.slice(a,l),i.outro&&(!s||i.end===r)&&(n+=i.outro),s)break;i=i.next}return n}snip(e,r){let n=this.clone();return n.remove(0,e),n.remove(r,n.original.length),n}_split(e){if(this.byStart[e]||this.byEnd[e])return;let r=this.lastSearchedChunk,n=e>r.end;for(;r;){if(r.contains(e))return this._splitChunk(r,e);r=n?this.byStart[r.end]:this.byEnd[r.start]}}_splitChunk(e,r){if(e.edited&&e.content.length){let i=Lr(this.original)(r);throw new Error(`Cannot split a chunk that has already been edited (${i.line}:${i.column} \u2013 "${e.original}")`)}let n=e.split(r);return this.byEnd[r]=e,this.byStart[r]=n,this.byEnd[n.end]=n,e===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,r=this.firstChunk;for(;r;)e+=r.toString(),r=r.next;return e+this.outro}isEmpty(){let e=this.firstChunk;do if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1;while(e=e.next);return!0}length(){let e=this.firstChunk,r=0;do r+=e.intro.length+e.content.length+e.outro.length;while(e=e.next);return r}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){let r=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(r,""),this.outro.length)return!0;let n=this.lastChunk;do{let i=n.end,o=n.trimEnd(r);if(n.end!==i&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),o)return!0;n=n.previous}while(n);return!1}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){let r=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(r,""),this.intro.length)return!0;let n=this.firstChunk;do{let i=n.end,o=n.trimStart(r);if(n.end!==i&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),o)return!0;n=n.next}while(n);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,r){function n(o,s){return typeof r=="string"?r.replace(/\$(\$|&|\d+)/g,(a,l)=>l==="$"?"$":l==="&"?o[0]:+l<o.length?o[+l]:`$${l}`):r(...o,o.index,s,o.groups)}function i(o,s){let a,l=[];for(;a=o.exec(s);)l.push(a);return l}if(e.global)i(e,this.original).forEach(s=>{if(s.index!=null){let a=n(s,this.original);a!==s[0]&&this.overwrite(s.index,s.index+s[0].length,a)}});else{let o=this.original.match(e);if(o&&o.index!=null){let s=n(o,this.original);s!==o[0]&&this.overwrite(o.index,o.index+o[0].length,s)}}return this}_replaceString(e,r){let{original:n}=this,i=n.indexOf(e);return i!==-1&&this.overwrite(i,i+e.length,r),this}replace(e,r){return typeof e=="string"?this._replaceString(e,r):this._replaceRegexp(e,r)}_replaceAllString(e,r){let{original:n}=this,i=e.length;for(let o=n.indexOf(e);o!==-1;o=n.indexOf(e,o+i))n.slice(o,o+i)!==r&&this.overwrite(o,o+i,r);return this}replaceAll(e,r){if(typeof e=="string")return this._replaceAllString(e,r);if(!e.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(e,r)}};var ys=/theme\(\s*(['"])?(.*?)\1?\s*\)/g;function Fr(t){return t.includes("theme(")&&t.includes(")")}function Ur(t,e,r=!0){let n=Array.from(t.toString().matchAll(ys));if(!n.length)return t;let i=new Xe(t);for(let o of n){let s=o[2];if(!s)throw new Error("theme() expect exact one argument, but got 0");let a=ws(s,e,r);a&&i.overwrite(o.index,o.index+o[0].length,a)}return i.toString()}function ws(t,e,r=!0){let[n,i]=t.split("/"),s=n.trim().split(".").reduce((a,l)=>a?.[l],e);if(typeof s=="object"&&(s=s.DEFAULT),typeof s=="string"){if(i){let a=ee(s);a&&(s=W(a,i))}return s}else if(r)throw new Error(`theme of "${t}" did not found`)}function te(t,e){let r;return{name:t,match(n,i){r||(r=new RegExp(`^${Q(t)}(?:${i.generator.config.separators.join("|")})`));let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),handle:(s,a)=>a({...s,...e(s)})}},autocomplete:`${t}:`}}function Ce(t,e){let r;return{name:t,match(n,i){r||(r=new RegExp(`^${Q(t)}(?:${i.generator.config.separators.join("|")})`));let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}${e}`})}},autocomplete:`${t}:`}}function re(t,e,r){if(e.startsWith(`${t}[`)){let[n,i]=ce(e.slice(t.length),"[","]")??[];if(n&&i){for(let o of r)if(i.startsWith(o))return[n,i.slice(o.length),o];return[n,i,""]}}}function U(t,e,r){if(e.startsWith(t)){let n=re(t,e,r);if(n){let[i="",o=n[1]]=U("/",n[1],r)??[];return[n[0],o,i]}for(let i of r.filter(o=>o!=="/")){let o=e.indexOf(i,t.length);if(o!==-1){let s=e.indexOf("/",t.length),a=s===-1||o<=s;return[e.slice(t.length,a?o:s),e.slice(o+i.length),a?"":e.slice(s+1,o)]}}}}var Ot={};Eo(Ot,{auto:()=>vs,bracket:()=>js,bracketOfColor:()=>As,bracketOfLength:()=>Os,bracketOfPosition:()=>Vs,cssvar:()=>Ps,degree:()=>zs,fraction:()=>Ts,global:()=>Ls,number:()=>Rs,numberWithUnit:()=>Ss,percent:()=>Es,position:()=>Us,properties:()=>Fs,px:()=>ks,rem:()=>Cs,time:()=>Ms});var D={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"]},Rt={...D,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"]},Et={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"]},Ir={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Wr=["x","y","z"],_r=["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"],ke=Object.assign({},..._r.map(t=>({[t.replace(/ /,"-")]:t})),..._r.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t}))),T=["inherit","initial","revert","revert-layer","unset"],Re=/^(calc|clamp|min|max)\s*\((.+)\)(.*)/,Ze=/^(var)\s*\((.+)\)(.*)/;var de=/^(-?\d*(?:\.\d+)?)(px|pt|pc|%|r?(?:em|ex|lh|cap|ch|ic)|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i,Tt=/^(-?\d*(?:\.\d+)?)$/,jt=/^(px|[sld]?v[wh])$/i,At={px:1,vw:100,vh:100,svw:100,svh:100,dvw:100,dvh:100,lvh:100,lvw:100},Je=/^\[(color|image|length|size|position|quoted|string):/i,Dr=/,(?![^()]*\))/g;var $s=["color","border-color","background-color","outline-color","text-decoration-color","flex-grow","flex","flex-shrink","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 B(t){return+t.toFixed(10)}function Ss(t){let e=t.match(de);if(!e)return;let[,r,n]=e,i=Number.parseFloat(r);if(n&&!Number.isNaN(i))return`${B(i)}${n}`}function vs(t){if(t==="auto"||t==="a")return"auto"}function Cs(t){if(!t)return;if(jt.test(t))return`${At[t]}${t}`;let e=t.match(de);if(!e)return;let[,r,n]=e,i=Number.parseFloat(r);if(!Number.isNaN(i))return i===0?"0":n?`${B(i)}${n}`:`${B(i/4)}rem`}function ks(t){if(jt.test(t))return`${At[t]}${t}`;let e=t.match(de);if(!e)return;let[,r,n]=e,i=Number.parseFloat(r);if(!Number.isNaN(i))return n?`${B(i)}${n}`:`${B(i)}px`}function Rs(t){if(!Tt.test(t))return;let e=Number.parseFloat(t);if(!Number.isNaN(e))return B(e)}function Es(t){if(t.endsWith("%")&&(t=t.slice(0,-1)),!Tt.test(t))return;let e=Number.parseFloat(t);if(!Number.isNaN(e))return`${B(e/100)}`}function Ts(t){if(!t)return;if(t==="full")return"100%";let[e,r]=t.split("/"),n=Number.parseFloat(e)/Number.parseFloat(r);if(!Number.isNaN(n))return n===0?"0":`${B(n*100)}%`}function Qe(t,e){if(t&&t.startsWith("[")&&t.endsWith("]")){let r,n,i=t.match(Je);if(i?(e||(n=i[1]),r=t.slice(i[0].length,-1)):r=t.slice(1,-1),!r||r==='=""')return;r.startsWith("--")&&(r=`var(${r})`);let o=0;for(let s of r)if(s==="[")o+=1;else if(s==="]"&&(o-=1,o<0))return;if(o)return;switch(n){case"string":return r.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_");case"quoted":return r.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(["\\])/g,"\\$1").replace(/^(.+)$/,'"$1"')}return r.replace(/(url\(.*?\))/g,s=>s.replace(/_/g,"\\_")).replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(?:calc|clamp|max|min)\((.*)/g,s=>{let a=[];return s.replace(/var\((--.+?)[,)]/g,(l,c)=>(a.push(c),l.replace(c,"--un-calc"))).replace(/(-?\d*\.?\d(?!-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ").replace(/--un-calc/g,()=>a.shift())})}}function js(t){return Qe(t)}function As(t){return Qe(t,"color")}function Os(t){return Qe(t,"length")}function Vs(t){return Qe(t,"position")}function Ps(t){if(/^\$[^\s'"`;{}]/.test(t)){let[e,r]=t.slice(1).split(",");return`var(--${ne(e)}${r?`, ${r}`:""})`}}function Ms(t){let e=t.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!e)return;let[,r,n]=e,i=Number.parseFloat(r);if(!Number.isNaN(i))return i===0&&!n?"0s":n?`${B(i)}${n}`:`${B(i)}ms`}function zs(t){let e=t.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!e)return;let[,r,n]=e,i=Number.parseFloat(r);if(!Number.isNaN(i))return i===0?"0":n?`${B(i)}${n}`:`${B(i)}deg`}function Ls(t){if(T.includes(t))return t}function Fs(t){if(t.split(",").every(e=>$s.includes(e)))return t}function Us(t){if(["top","left","right","bottom","center"].includes(t))return t}var _s=Ar(Ot),u=_s;var Nr={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(t=>[t,t]))},Kr=[[/^(?:vertical|align|v)-([-\w]+%?)$/,([,t])=>({"vertical-align":Nr[t]??u.numberWithUnit(t)}),{autocomplete:[`(vertical|align|v)-(${Object.keys(Nr).join("|")})`,"(vertical|align|v)-<percentage>"]}]],Br=["center","left","right","justify","start","end"],Gr=[...Br.map(t=>[`text-${t}`,{"text-align":t}]),...[...T,...Br].map(t=>[`text-align-${t}`,{"text-align":t}])];var Yr="$$mini-no-negative";function N(t){return([e,r,n],{theme:i})=>{let o=i.spacing?.[n||"DEFAULT"]??u.bracket.cssvar.global.auto.fraction.rem(n);if(o!=null)return D[r].map(s=>[`${t}${s}`,o]);if(n?.startsWith("-")){let s=i.spacing?.[n.slice(1)];if(s!=null)return D[r].map(a=>[`${t}${a}`,`calc(${s} * -1)`])}}}function Hr(t,e,r="colors"){let n=t[r],i=-1;for(let o of e){if(i+=1,n&&typeof n!="string"){let s=e.slice(i).join("-").replace(/(-[a-z])/g,a=>a.slice(1).toUpperCase());if(n[s])return n[s];if(n[o]){n=n[o];continue}}return}return n}function et(t,e,r){return Hr(t,e,r)||Hr(t,e,"colors")}function Pt(t,e){let[r,n]=ue(t,"[","]",["/",":"])??[];if(r!=null){let i=(r.match(Je)??[])[1];if(i==null||i===e)return[r,n]}}function tt(t,e,r){let n=Pt(t,"color");if(!n)return;let[i,o]=n,s=i.replace(/([a-z])(\d)/g,"$1-$2").split(/-/g),[a]=s;if(!a)return;let l,c=u.bracketOfColor(i),f=c||i;if(u.numberWithUnit(f))return;if(/^#[\da-f]+$/i.test(f)?l=f:/^hex-[\da-fA-F]+$/.test(f)?l=`#${f.slice(4)}`:i.startsWith("$")&&(l=u.cssvar(i)),l=l||c,!l){let d=et(e,[i],r);typeof d=="string"&&(l=d)}let p="DEFAULT";if(!l){let d,[h]=s.slice(-1);/^\d+$/.test(h)?(p=h,d=et(e,s.slice(0,-1),r),!d||typeof d=="string"?l=void 0:l=d[p]):(d=et(e,s,r),!d&&s.length<=2&&([,p=p]=s,d=et(e,[a],r)),typeof d=="string"?l=d:p&&d&&(l=d[p]))}return{opacity:o,name:a,no:p,color:l,cssColor:ee(l),alpha:u.bracket.cssvar.percent(o??"")}}function L(t,e,r,n){return([,i],{theme:o,generator:s})=>{let a=tt(i,o,r);if(!a)return;let{alpha:l,color:c,cssColor:f}=a,d=s.config.envMode==="dev"&&c?` /* ${c} */`:"",h={};if(f)if(l!=null)h[t]=W(f,l)+d;else{let b=`--un-${e}-opacity`,y=W(f,`var(${b})`);y.includes(b)&&(h[b]=$e(f)),h[t]=y+d}else if(c)if(l!=null)h[t]=W(c,l)+d;else{let b=`--un-${e}-opacity`,y=W(c,`var(${b})`);y.includes(b)&&(h[b]=1),h[t]=y+d}if(n?.(h)!==!1)return h}}function rt(t,e){let r=[];t=O(t);for(let n=0;n<t.length;n++){let i=fe(t[n]," ",6);if(!i||i.length<3)return t;let o=!1,s=i.indexOf("inset");s!==-1&&(i.splice(s,1),o=!0);let a="",l=i.at(-1);if(ee(i.at(0))){let c=ee(i.shift());c&&(a=`, ${W(c)}`)}else if(ee(l)){let c=ee(i.pop());c&&(a=`, ${W(c)}`)}else l&&Ze.test(l)&&(a=`, ${i.pop()}`);r.push(`${o?"inset ":""}${i.join(" ")} var(${e}${a})`)}return r}function nt(t,e,r){return t!=null&&!!tt(t,e,r)?.color}var qr=/[a-z]+/gi,Vt=new WeakMap;function it({theme:t,generator:e},r="breakpoints"){let n=e?.userConfig?.theme?.[r]||t[r];if(!n)return;if(Vt.has(t))return Vt.get(t);let i=Object.entries(n).sort((o,s)=>Number.parseInt(o[1].replace(qr,""))-Number.parseInt(s[1].replace(qr,""))).map(([o,s])=>({point:o,size:s}));return Vt.set(t,i),i}function V(t,e){return T.map(r=>[`${t}-${r}`,{[e??t]:r}])}function K(t){return t!=null&&Re.test(t)}function Xr(t){return t[0]==="["&&t.slice(-1)==="]"&&(t=t.slice(1,-1)),Re.test(t)||de.test(t)}function ot(t,e,r){let n=e.split(Dr);return t||!t&&n.length===1?Ir[t].map(i=>[`--un-${r}${i}`,e]):n.map((i,o)=>[`--un-${r}-${Wr[o]}`,i])}var Zr=[[/^outline-(?:width-|size-)?(.+)$/,Jr,{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,Is,{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,t],{theme:e})=>({"outline-offset":e.lineWidth?.[t]??u.bracket.cssvar.global.px(t)}),{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset",...T].map(t=>[`outline-${t}`,{"outline-style":t}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]];function Jr([,t],{theme:e}){return{"outline-width":e.lineWidth?.[t]??u.bracket.cssvar.global.px(t)}}function Is(t,e){return K(u.bracket(t[1]))?Jr(t,e):L("outline-color","outline-color","borderColor")(t,e)}var Qr=[["appearance-auto",{"-webkit-appearance":"auto",appearance:"auto"}],["appearance-none",{"-webkit-appearance":"none",appearance:"none"}]];function Ws(t){return u.properties.auto.global(t)??{contents:"contents",scroll:"scroll-position"}[t]}var en=[[/^will-change-(.+)/,([,t])=>({"will-change":Ws(t)})]];var Oe=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...T],rn=[[/^(?:border|b)()(?:-(.+))?$/,q,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,q],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,q],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,q],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,q],[/^(?:border|b)-()(?:width|size)-(.+)$/,q,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,q],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,q],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,q],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,q],[/^(?:border|b)-()(?:color-)?(.+)$/,Ee,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,Ee],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,Ee],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,Ee],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,Ee],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,Te,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,Te],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,Te],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,Te],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,Te],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,je,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-$borderRadius","(rounded|rd)","(rounded|rd)-$borderRadius"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltbse])(?:-(.+))?$/,je],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,je],[/^(?:border-|b-)?(?:rounded|rd)-([bise][se])(?:-(.+))?$/,je],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,je],[/^(?:border|b)-(?:style-)?()(.+)$/,Ae,{autocomplete:["(border|b)-style",`(border|b)-(${Oe.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${Oe.join("|")})`,`(border|b)-<directions>-style-(${Oe.join("|")})`,`(border|b)-style-(${Oe.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,Ae],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,Ae],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,Ae],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,Ae]];function tn(t,e,r){if(e!=null)return{[`border${r}-color`]:W(t,e)};if(r===""){let n={},i="--un-border-opacity",o=W(t,`var(${i})`);return o.includes(i)&&(n[i]=typeof t=="string"?1:$e(t)),n["border-color"]=o,n}else{let n={},i="--un-border-opacity",o=`--un-border${r}-opacity`,s=W(t,`var(${o})`);return s.includes(o)&&(n[i]=typeof t=="string"?1:$e(t),n[o]=`var(${i})`),n[`border${r}-color`]=s,n}}function Ds(t){return([,e],r)=>{let n=tt(e,r,"borderColor");if(!n)return;let{alpha:i,color:o,cssColor:s}=n;if(s)return tn(s,i,t);if(o)return tn(o,i,t)}}function q([,t="",e],{theme:r}){let n=r.lineWidth?.[e||"DEFAULT"]??u.bracket.cssvar.global.px(e||"1");if(t in D&&n!=null)return D[t].map(i=>[`border${i}-width`,n])}function Ee([,t="",e],r){if(t in D){if(K(u.bracket(e)))return q(["",t,e],r);if(nt(e,r.theme,"borderColor"))return Object.assign({},...D[t].map(n=>Ds(n)(["",e],r.theme)))}}function Te([,t="",e]){let r=u.bracket.percent.cssvar(e);if(t in D&&r!=null)return D[t].map(n=>[`--un-border${n}-opacity`,r])}function je([,t="",e],{theme:r}){let n=r.borderRadius?.[e||"DEFAULT"]||u.bracket.cssvar.global.fraction.rem(e||"1");if(t in Et&&n!=null)return Et[t].map(i=>[`border${i}-radius`,n])}function Ae([,t="",e]){if(Oe.includes(e)&&t in D)return D[t].map(r=>[`border${r}-style`,e])}var nn=[[/^op(?:acity)?-?(.+)$/,([,t])=>({opacity:u.bracket.percent.cssvar(t)})]],Ns=/^\[url\(.+\)\]$/,Bs=/^\[(?:length|size):.+\]$/,Ks=/^\[position:.+\]$/,Gs=/^\[(?:linear|conic|radial)-gradient\(.+\)\]$/,Hs=/^\[image:.+\]$/,on=[[/^bg-(.+)$/,(...t)=>{let e=t[0][1];if(Ns.test(e))return{"--un-url":u.bracket(e),"background-image":"var(--un-url)"};if(Bs.test(e)&&u.bracketOfLength(e)!=null)return{"background-size":u.bracketOfLength(e).split(" ").map(r=>u.fraction.auto.px.cssvar(r)??r).join(" ")};if((Xr(e)||Ks.test(e))&&u.bracketOfPosition(e)!=null)return{"background-position":u.bracketOfPosition(e).split(" ").map(r=>u.position.fraction.auto.px.cssvar(r)??r).join(" ")};if(Gs.test(e)||Hs.test(e)){let r=u.bracket(e);if(r)return{"background-image":(r.startsWith("http")?`url(${r})`:u.cssvar(r))??r}}return L("background-color","bg","backgroundColor")(...t)},{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,t])=>({"--un-bg-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"bg-(op|opacity)-<percent>"}]],sn=[[/^color-scheme-(\w+)$/,([,t])=>({"color-scheme":t})]];var an=[[/^@container(?:\/(\w+))?(?:-(normal))?$/,([,t,e])=>({"container-type":e??"inline-size","container-name":t})]];var ln=["solid","double","dotted","dashed","wavy",...T],cn=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,t])=>({"text-decoration-line":t}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,un,{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,t])=>({"text-decoration-thickness":t}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,qs,{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-line-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,t],{theme:e})=>({"text-underline-offset":e.lineWidth?.[t]??u.auto.bracket.cssvar.global.px(t)}),{autocomplete:"(underline|decoration)-(offset)-<num>"}],...ln.map(t=>[`underline-${t}`,{"text-decoration-style":t}]),...ln.map(t=>[`decoration-${t}`,{"text-decoration-style":t}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];function un([,t],{theme:e}){return{"text-decoration-thickness":e.lineWidth?.[t]??u.bracket.cssvar.global.px(t)}}function qs(t,e){if(K(u.bracket(t[1])))return un(t,e);let r=L("text-decoration-color","line","borderColor")(t,e);if(r)return{"-webkit-text-decoration-color":r["text-decoration-color"],...r}}var fn=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,t])=>({flex:u.bracket(t)!=null?u.bracket(t).split(" ").map(e=>u.cssvar.fraction(e)??e).join(" "):u.cssvar.fraction(t)})],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^(?:flex-)?shrink(?:-(.*))?$/,([,t=""])=>({"flex-shrink":u.bracket.cssvar.number(t)??1}),{autocomplete:["flex-shrink-<num>","shrink-<num>"]}],[/^(?:flex-)?grow(?:-(.*))?$/,([,t=""])=>({"flex-grow":u.bracket.cssvar.number(t)??1}),{autocomplete:["flex-grow-<num>","grow-<num>"]}],[/^(?:flex-)?basis-(.+)$/,([,t],{theme:e})=>({"flex-basis":e.spacing?.[t]??u.bracket.cssvar.auto.fraction.rem(t)}),{autocomplete:["flex-basis-$spacing","basis-$spacing"]}],["flex-row",{"flex-direction":"row"}],["flex-row-reverse",{"flex-direction":"row-reverse"}],["flex-col",{"flex-direction":"column"}],["flex-col-reverse",{"flex-direction":"column-reverse"}],["flex-wrap",{"flex-wrap":"wrap"}],["flex-wrap-reverse",{"flex-wrap":"wrap-reverse"}],["flex-nowrap",{"flex-wrap":"nowrap"}]];var Ys={"":"",x:"column-",y:"row-",col:"column-",row:"row-"};function Mt([,t="",e],{theme:r}){let n=r.spacing?.[e]??u.bracket.cssvar.global.rem(e);if(n!=null)return{[`${Ys[t]}gap`]:n}}var pn=[[/^(?:flex-|grid-)?gap-?()(.+)$/,Mt,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,Mt,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}],[/^(?:flex-|grid-)?gap-(col|row)-?(.+)$/,Mt,{autocomplete:["gap-(col|row)-$spacing","gap-(col|row)-<num>"]}]];function X(t){return t.replace("col","column")}function zt(t){return t[0]==="r"?"Row":"Column"}function Xs(t,e,r){let n=e[`gridAuto${zt(t)}`]?.[r];if(n!=null)return n;switch(r){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return u.bracket.cssvar.auto.rem(r)}var dn=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,t,e],{theme:r})=>({[`grid-${X(t)}`]:r[`grid${zt(t)}`]?.[e]??u.bracket.cssvar.auto(e)})],[/^(?:grid-)?(row|col)-span-(.+)$/,([,t,e])=>{if(e==="full")return{[`grid-${X(t)}`]:"1/-1"};let r=u.bracket.number(e);if(r!=null)return{[`grid-${X(t)}`]:`span ${r}/span ${r}`}},{autocomplete:"(grid-row|grid-col|row|col)-span-<num>"}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,t,e])=>({[`grid-${X(t)}-start`]:u.bracket.cssvar(e)??e})],[/^(?:grid-)?(row|col)-end-(.+)$/,([,t,e])=>({[`grid-${X(t)}-end`]:u.bracket.cssvar(e)??e}),{autocomplete:"(grid-row|grid-col|row|col)-(start|end)-<num>"}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-auto-${X(t)}`]:Xs(t,r,e)}),{autocomplete:"(grid-auto|auto)-(rows|cols)-<num>"}],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,t])=>({"grid-auto-flow":u.bracket.cssvar(t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,t])=>({"grid-auto-flow":X(t).replace("-"," ")}),{autocomplete:["(grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)"]}],[/^(?:grid-)?(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-template-${X(t)}`]:r[`gridTemplate${zt(t)}`]?.[e]??u.bracket.cssvar(e)})],[/^(?:grid-)?(rows|cols)-minmax-([\w.-]+)$/,([,t,e])=>({[`grid-template-${X(t)}`]:`repeat(auto-fill,minmax(${e},1fr))`})],[/^(?:grid-)?(rows|cols)-(\d+)$/,([,t,e])=>({[`grid-template-${X(t)}`]:`repeat(${e},minmax(0,1fr))`}),{autocomplete:"(grid-rows|grid-cols|rows|cols)-<num>"}],[/^grid-area(s)?-(.+)$/,([,t,e])=>t!=null?{"grid-template-areas":u.cssvar(e)??e.split("-").map(r=>`"${u.bracket(r)}"`).join(" ")}:{"grid-area":u.bracket.cssvar(e)}],["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"}]];var st=["auto","hidden","clip","visible","scroll","overlay",...T],hn=[[/^(?:overflow|of)-(.+)$/,([,t])=>st.includes(t)?{overflow:t}:void 0,{autocomplete:[`(overflow|of)-(${st.join("|")})`,`(overflow|of)-(x|y)-(${st.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,t,e])=>st.includes(e)?{[`overflow-${t}`]:e}:void 0]];var mn=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,t])=>({position:t}),{autocomplete:["(position|pos)-<position>","(position|pos)-<globalKeyword>","<position>"]}],[/^(?:position-|pos-)([-\w]+)$/,([,t])=>T.includes(t)?{position:t}:void 0],[/^(?:position-|pos-)?(static)$/,([,t])=>({position:t})]],Ft=[["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"}],...V("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"}],...V("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"}],...V("justify-self")],gn=[[/^order-(.+)$/,([,t])=>({order:u.bracket.cssvar.number(t)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],Ut=[["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"}],...V("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"}],...V("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"}],...V("self","align-self")],_t=[["place-content-center",{"place-content":"center"}],["place-content-start",{"place-content":"start"}],["place-content-end",{"place-content":"end"}],["place-content-between",{"place-content":"space-between"}],["place-content-around",{"place-content":"space-around"}],["place-content-evenly",{"place-content":"space-evenly"}],["place-content-stretch",{"place-content":"stretch"}],...V("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"}],...V("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"}],...V("place-self")],bn=[...Ft,...Ut,..._t].flatMap(([t,e])=>[[`flex-${t}`,e],[`grid-${t}`,e]]);function Lt(t,{theme:e}){return e.spacing?.[t]??u.bracket.cssvar.global.auto.fraction.rem(t)}function Ve([,t,e],r){let n=Lt(e,r);if(n!=null&&t in Rt)return Rt[t].map(i=>[i.slice(1),n])}var xn=[[/^(?:position-|pos-)?inset-(.+)$/,([,t],e)=>({inset:Lt(t,e)}),{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)-(.+)$/,Ve],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,Ve],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,Ve],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,Ve],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,Ve],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,t,e],r)=>({[t]:Lt(e,r)})]],yn=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-start",{float:"inline-start"}],["float-end",{float:"inline-end"}],["float-none",{float:"none"}],...V("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"}],...V("clear")],wn=[[/^(?:position-|pos-)?z([\d.]+)$/,([,t])=>({"z-index":u.number(t)})],[/^(?:position-|pos-)?z-(.+)$/,([,t],{theme:e})=>({"z-index":e.zIndex?.[t]??u.bracket.cssvar.global.auto.number(t)}),{autocomplete:"z-<num>"}]],$n=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}],...V("box","box-sizing")];var Sn=[[/^(where|\?)$/,(t,{constructCSS:e,generator:r})=>{if(r.userConfig.envMode==="dev")return`@keyframes __un_qm{0%{box-shadow:inset 4px 4px #ff1e90, inset -4px -4px #ff1e90}100%{box-shadow:inset 8px 8px #3399ff, inset -8px -8px #3399ff}} ${e({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]];var Zs=["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"],Js=["none","strict","content","size","inline-size","layout","style","paint"],at=" ",vn=[["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-(.+)$/,([,t])=>({display:u.bracket.cssvar.global(t)})]],Cn=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}],...V("backface","backface-visibility")],kn=[[/^cursor-(.+)$/,([,t])=>({cursor:u.bracket.cssvar.global(t)})],...Zs.map(t=>[`cursor-${t}`,{cursor:t}])],Rn=[[/^contain-(.*)$/,([,t])=>u.bracket(t)!=null?{contain:u.bracket(t).split(" ").map(e=>u.cssvar.fraction(e)??e).join(" ")}:Js.includes(t)?{contain:t}:void 0]],En=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}],...V("pointer-events")],Tn=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}],...V("resize")],jn=[["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"}],...V("select","user-select")],An=[[/^(?:whitespace-|ws-)([-\w]+)$/,([,t])=>["normal","nowrap","pre","pre-line","pre-wrap","break-spaces",...T].includes(t)?{"white-space":t}:void 0,{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],On=[[/^intrinsic-size-(.+)$/,([,t])=>({"contain-intrinsic-size":u.bracket.cssvar.global.fraction.rem(t)}),{autocomplete:"intrinsic-size-<num>"}],["content-visibility-visible",{"content-visibility":"visible"}],["content-visibility-hidden",{"content-visibility":"hidden"}],["content-visibility-auto",{"content-visibility":"auto"}],...V("content-visibility")],Vn=[[/^content-(.+)$/,([,t])=>({content:u.bracket.cssvar(t)})],["content-empty",{content:'""'}],["content-none",{content:"none"}]],Pn=[["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"}]],Mn=[["text-wrap",{"text-wrap":"wrap"}],["text-nowrap",{"text-wrap":"nowrap"}],["text-balance",{"text-wrap":"balance"}],["text-pretty",{"text-wrap":"pretty"}]],zn=[["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"}]],Ln=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}],...V("case","text-transform")],Fn=[["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"}]],Un=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"}]];var It={"--un-ring-inset":at,"--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)"},Qs=Object.keys(It),_n=[[/^ring(?:-(.+))?$/,([,t],{theme:e})=>{let r=e.ringWidth?.[t||"DEFAULT"]??u.px(t||"1");if(r)return{"--un-ring-width":r,"--un-ring-offset-shadow":"var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)","--un-ring-shadow":"var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color)","box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}},{custom:{preflightKeys:Qs},autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,In,{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>({"--un-ring-offset-width":e.lineWidth?.[t]??u.bracket.cssvar.px(t)}),{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,ea,{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,L("--un-ring-offset-color","ring-offset","borderColor"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-offset-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];function In([,t],{theme:e}){return{"--un-ring-width":e.ringWidth?.[t]??u.bracket.cssvar.px(t)}}function ea(t,e){return K(u.bracket(t[1]))?In(t,e):L("--un-ring-color","ring","borderColor")(t,e)}var Wt={"--un-ring-offset-shadow":"0 0 rgb(0 0 0 / 0)","--un-ring-shadow":"0 0 rgb(0 0 0 / 0)","--un-shadow-inset":at,"--un-shadow":"0 0 rgb(0 0 0 / 0)"},ta=Object.keys(Wt),Wn=[[/^shadow(?:-(.+))?$/,(t,e)=>{let[,r]=t,{theme:n}=e,i=n.boxShadow?.[r||"DEFAULT"],o=r?u.bracket.cssvar(r):void 0;return(i!=null||o!=null)&&!nt(o,n,"shadowColor")?{"--un-shadow":rt(i||o,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}:L("--un-shadow-color","shadow","shadowColor")(t,e)},{custom:{preflightKeys:ta},autocomplete:["shadow-$colors","shadow-$boxShadow"]}],[/^shadow-op(?:acity)?-?(.+)$/,([,t])=>({"--un-shadow-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var ra={h:"height",w:"width",inline:"inline-size",block:"block-size"};function oe(t,e){return`${t||""}${ra[e]}`}function lt(t,e,r,n){let i=oe(t,e).replace(/-(\w)/g,(s,a)=>a.toUpperCase()),o=r[i]?.[n];if(o!=null)return o;switch(n){case"fit":case"max":case"min":return`${n}-content`}return u.bracket.cssvar.global.auto.fraction.rem(n)}var Nn=[[/^size-(min-|max-)?(.+)$/,([,t,e],{theme:r})=>({[oe(t,"w")]:lt(t,"w",r,e),[oe(t,"h")]:lt(t,"h",r,e)})],[/^(?:size-)?(min-|max-)?([wh])-?(.+)$/,([,t,e,r],{theme:n})=>({[oe(t,e)]:lt(t,e,n,r)})],[/^(?:size-)?(min-|max-)?(block|inline)-(.+)$/,([,t,e,r],{theme:n})=>({[oe(t,e)]:lt(t,e,n,r)}),{autocomplete:["(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h|block|inline)","(max|min)-(w|h|block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(w|h)-full","(max|min)-(w|h)-full"]}],[/^(?:size-)?(min-|max-)?(h)-screen-(.+)$/,([,t,e,r],n)=>({[oe(t,e)]:Dn(n,r,"verticalBreakpoints")})],[/^(?:size-)?(min-|max-)?(w)-screen-(.+)$/,([,t,e,r],n)=>({[oe(t,e)]:Dn(n,r)}),{autocomplete:["(w|h)-screen","(min|max)-(w|h)-screen","h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints","w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function Dn(t,e,r="breakpoints"){let n=it(t,r);if(n)return n.find(i=>i.point===e)?.size}function na(t){if(/^\d+\/\d+$/.test(t))return t;switch(t){case"square":return"1/1";case"video":return"16/9"}return u.bracket.cssvar.global.auto.number(t)}var Bn=[[/^(?:size-)?aspect-(?:ratio-)?(.+)$/,([,t])=>({"aspect-ratio":na(t)}),{autocomplete:["aspect-(square|video|ratio)","aspect-ratio-(square|video)"]}]];var Kn=[[/^pa?()-?(.+)$/,N("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,N("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(.+))?$/,N("padding")],[/^p-?([rltbse])(?:-?(.+))?$/,N("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(.+))?$/,N("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(.+))?$/,N("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],Gn=[[/^ma?()-?(.+)$/,N("margin")],[/^m-?xy()()$/,N("margin")],[/^m-?([xy])(?:-?(.+))?$/,N("margin")],[/^m-?([rltbse])(?:-?(.+))?$/,N("margin")],[/^m-(block|inline)(?:-(.+))?$/,N("margin")],[/^m-?([bi][se])(?:-?(.+))?$/,N("margin")]];var Hn=[[/^fill-(.+)$/,L("fill","fill","backgroundColor"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,t])=>({"--un-fill-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,qn,{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,t])=>({"stroke-dasharray":u.bracket.cssvar.number(t)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,t],{theme:e})=>({"stroke-dashoffset":e.lineWidth?.[t]??u.bracket.cssvar.px.numberWithUnit(t)}),{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,ia,{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-stroke-opacity":u.bracket.percent.cssvar(t)}),{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 qn([,t],{theme:e}){return{"stroke-width":e.lineWidth?.[t]??u.bracket.cssvar.fraction.px.number(t)}}function ia(t,e){return K(u.bracket(t[1]))?qn(t,e):L("stroke","stroke","borderColor")(t,e)}var ct=["translate","rotate","scale"],oa=["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(" "),he=["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(" "),sa=["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(" "),Dt={"--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},Z=Object.keys(Dt),Qn=[[/^(?:transform-)?origin-(.+)$/,([,t])=>({"transform-origin":ke[t]??u.bracket.cssvar(t)}),{autocomplete:[`transform-origin-(${Object.keys(ke).join("|")})`,`origin-(${Object.keys(ke).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,t])=>{let e=u.bracket.cssvar.px.numberWithUnit(t);if(e!=null)return{"-webkit-perspective":e,perspective:e}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,t])=>{let e=u.bracket.cssvar(t)??(t.length>=3?ke[t]:void 0);if(e!=null)return{"-webkit-perspective-origin":e,"perspective-origin":e}}],[/^(?:transform-)?translate-()(.+)$/,Yn,{custom:{preflightKeys:Z}}],[/^(?:transform-)?translate-([xyz])-(.+)$/,Yn,{custom:{preflightKeys:Z}}],[/^(?:transform-)?rotate-()(.+)$/,Zn,{custom:{preflightKeys:Z}}],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Zn,{custom:{preflightKeys:Z}}],[/^(?:transform-)?skew-()(.+)$/,Jn,{custom:{preflightKeys:Z}}],[/^(?:transform-)?skew-([xy])-(.+)$/,Jn,{custom:{preflightKeys:Z},autocomplete:["transform-skew-(x|y)-<percent>","skew-(x|y)-<percent>"]}],[/^(?:transform-)?scale-()(.+)$/,Xn,{custom:{preflightKeys:Z}}],[/^(?:transform-)?scale-([xyz])-(.+)$/,Xn,{custom:{preflightKeys:Z},autocomplete:[`transform-(${ct.join("|")})-<percent>`,`transform-(${ct.join("|")})-(x|y|z)-<percent>`,`(${ct.join("|")})-<percent>`,`(${ct.join("|")})-(x|y|z)-<percent>`]}],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],["transform",{transform:he},{custom:{preflightKeys:Z}}],["transform-cpu",{transform:oa},{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:sa},{custom:{preflightKeys:Z}}],["transform-none",{transform:"none"}],...V("transform")];function Yn([,t,e],{theme:r}){let n=r.spacing?.[e]??u.bracket.cssvar.fraction.rem(e);if(n!=null)return[...ot(t,n,"translate"),["transform",he]]}function Xn([,t,e]){let r=u.bracket.cssvar.fraction.percent(e);if(r!=null)return[...ot(t,r,"scale"),["transform",he]]}function Zn([,t="",e]){let r=u.bracket.cssvar.degree(e);if(r!=null)return t?{"--un-rotate":0,[`--un-rotate-${t}`]:r,transform:he}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:he}}function Jn([,t,e]){let r=u.bracket.cssvar.degree(e);if(r!=null)return[...ot(t,r,"skew"),["transform",he]]}function ei(t,e){let r;if(u.cssvar(t)!=null)r=u.cssvar(t);else{t.startsWith("[")&&t.endsWith("]")&&(t=t.slice(1,-1));let n=t.split(",").map(i=>e.transitionProperty?.[i]??u.properties(i));n.every(Boolean)&&(r=n.join(","))}return r}var ti=[[/^transition(?:-(\D+?))?(?:-(\d+))?$/,([,t,e],{theme:r})=>{if(!t&&!e)return{"transition-property":r.transitionProperty?.DEFAULT,"transition-timing-function":r.easing?.DEFAULT,"transition-duration":r.duration?.DEFAULT??u.time("150")};if(t!=null){let n=ei(t,r),i=r.duration?.[e||"DEFAULT"]??u.time(e||"150");if(n)return{"transition-property":n,"transition-timing-function":r.easing?.DEFAULT,"transition-duration":i}}else if(e!=null)return{"transition-property":r.transitionProperty?.DEFAULT,"transition-timing-function":r.easing?.DEFAULT,"transition-duration":r.duration?.[e]??u.time(e)}},{autocomplete:"transition-$transitionProperty-$duration"}],[/^(?:transition-)?duration-(.+)$/,([,t],{theme:e})=>({"transition-duration":e.duration?.[t||"DEFAULT"]??u.bracket.cssvar.time(t)}),{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,t],{theme:e})=>({"transition-delay":e.duration?.[t||"DEFAULT"]??u.bracket.cssvar.time(t)}),{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,t],{theme:e})=>({"transition-timing-function":e.easing?.[t||"DEFAULT"]??u.bracket.cssvar(t)}),{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,t],{theme:e})=>{let r=u.global(t)||ei(t,e);if(r)return{"transition-property":r}},{autocomplete:[`transition-property-(${[...T].join("|")})`,"transition-property-$transitionProperty","property-$transitionProperty"]}],["transition-none",{transition:"none"}],...V("transition"),["transition-discrete",{"transition-behavior":"allow-discrete"}],["transition-normal",{"transition-behavior":"normal"}]];var ri=[[/^text-(.+)$/,la,{autocomplete:"text-$fontSize"}],[/^(?:text|font)-size-(.+)$/,ai,{autocomplete:"text-size-$fontSize"}],[/^text-(?:color-)?(.+)$/,aa,{autocomplete:"text-$colors"}],[/^(?:color|c)-(.+)$/,L("color","text","textColor"),{autocomplete:"(color|c)-$colors"}],[/^(?:text|color|c)-(.+)$/,([,t])=>T.includes(t)?{color:t}:void 0,{autocomplete:`(text|color|c)-(${T.join("|")})`}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}],[/^(?:font|fw)-?([^-]+)$/,([,t],{theme:e})=>({"font-weight":e.fontWeight?.[t]||u.bracket.global.number(t)}),{autocomplete:["(font|fw)-(100|200|300|400|500|600|700|800|900)","(font|fw)-$fontWeight"]}],[/^(?:font-)?(?:leading|lh|line-height)-(.+)$/,([,t],{theme:e})=>({"line-height":Nt(t,e,"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-(.+)$/,([,t])=>({"font-synthesis":u.bracket.cssvar.global(t)})],[/^(?:font-)?tracking-(.+)$/,([,t],{theme:e})=>({"letter-spacing":e.letterSpacing?.[t]||u.bracket.cssvar.global.rem(t)}),{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,t],{theme:e})=>({"word-spacing":e.wordSpacing?.[t]||u.bracket.cssvar.global.rem(t)}),{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-(.+)$/,([,t])=>({"font-stretch":u.bracket.cssvar.fraction.global(t)}),{autocomplete:"font-stretch-<percentage>"}],[/^font-(.+)$/,([,t],{theme:e})=>({"font-family":e.fontFamily?.[t]||u.bracket.cssvar.global(t)}),{autocomplete:"font-$fontFamily"}]],ni=[[/^tab(?:-(.+))?$/,([,t])=>{let e=u.bracket.cssvar.global.number(t||"4");if(e!=null)return{"-moz-tab-size":e,"-o-tab-size":e,"tab-size":e}}]],ii=[[/^indent(?:-(.+))?$/,([,t],{theme:e})=>({"text-indent":e.textIndent?.[t||"DEFAULT"]||u.bracket.cssvar.global.fraction.rem(t)}),{autocomplete:"indent-$textIndent"}]],oi=[[/^text-stroke(?:-(.+))?$/,([,t],{theme:e})=>({"-webkit-text-stroke-width":e.textStrokeWidth?.[t||"DEFAULT"]||u.bracket.cssvar.px(t)}),{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,L("-webkit-text-stroke-color","text-stroke","borderColor"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-stroke-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],si=[[/^text-shadow(?:-(.+))?$/,([,t],{theme:e})=>{let r=e.textShadow?.[t||"DEFAULT"];return r!=null?{"--un-text-shadow":rt(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":u.bracket.cssvar.global(t)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,L("--un-text-shadow-color","text-shadow","shadowColor"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-shadow-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];function Nt(t,e,r){return e[r]?.[t]||u.bracket.cssvar.global.rem(t)}function ai([,t],{theme:e}){let n=O(e.fontSize?.[t])?.[0]??u.bracket.cssvar.global.rem(t);if(n!=null)return{"font-size":n}}function aa(t,e){return K(u.bracket(t[1]))?ai(t,e):L("color","text","textColor")(t,e)}function la([,t="base"],{theme:e}){let r=Pt(t,"length");if(!r)return;let[n,i]=r,o=O(e.fontSize?.[n]),s=i?Nt(i,e,"lineHeight"):void 0;if(o?.[0]){let[l,c,f]=o;return typeof c=="object"?{"font-size":l,...c}:{"font-size":l,"line-height":s??c??"1","letter-spacing":f?Nt(f,e,"letterSpacing"):void 0}}let a=u.bracketOfLength.rem(n);return s&&a?{"font-size":a,"line-height":s}:{"font-size":u.bracketOfLength.rem(t)}}var ca={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"},li=[[/^(.+?)-(\$.+)$/,([,t,e])=>{let r=ca[t];if(r)return{[r]:u.cssvar(e)}}]],ci=[[/^\[(.*)\]$/,([t,e])=>{if(!e.includes(":"))return;let[r,...n]=e.split(":"),i=n.join(":");if(!fa(e)&&/^[a-z-]+$/.test(r)&&ua(i)){let o=u.bracket(`[${i}]`);if(o)return{[r]:o}}}]];function ua(t){let e=0;function r(n){for(;e<t.length;)if(e+=1,t[e]===n)return!0;return!1}for(e=0;e<t.length;e++){let n=t[e];if("\"`'".includes(n)){if(!r(n))return!1}else if(n==="("){if(!r(")"))return!1}else if("[]{}:".includes(n))return!1}return!0}function fa(t){if(!t.includes("://"))return!1;try{return new URL(t).host!==""}catch{return!1}}var ui=[li,ci,Rn,En,Cn,mn,xn,wn,gn,dn,yn,Gn,$n,vn,Bn,Nn,fn,Qn,kn,jn,Tn,Qr,_t,Ut,Ft,pn,bn,hn,zn,An,Pn,rn,on,sn,Hn,Kn,Gr,ii,Mn,Kr,ri,Ln,Fn,cn,Un,ni,oi,si,nn,Wn,Zr,_n,ti,en,On,Vn,an,Sn].flat(1);var fi={position:["relative","absolute","fixed","sticky","static"],globalKeyword:T};var Bt={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(Bt).forEach(t=>{typeof t!="string"&&t!==void 0&&(t.DEFAULT=t.DEFAULT||t[400],Object.keys(t).forEach(e=>{let r=+e/100;r===Math.round(r)&&(t[r]=t[e])}))});var pi={DEFAULT:"8px",0:"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},di={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)"};var hi={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(",")},mi={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"]},gi={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},bi={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},xi={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)"]},yi={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},Kt={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},wi={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},$i=Kt;var Gt={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Si={...Gt},vi={DEFAULT:"1px",none:"0"},Ci={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"},ki={DEFAULT:"150ms",none:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},Ri={DEFAULT:"0.25rem",none:"0",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Ei={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)"},Ti={DEFAULT:"3px",none:"0"},ji={auto:"auto"},Ai={mouse:"(hover) and (pointer: fine)"};var Oi={...Dt,...Wt,...It};var Pe={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},Ht={auto:"auto",...Pe,screen:"100vw"},Me={none:"none",...Pe,screen:"100vw"},qt={auto:"auto",...Pe,screen:"100vh"},ze={none:"none",...Pe,screen:"100vh"},Vi={...Pe};var Pi={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)"},Mi={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(",")}};var zi={width:Ht,height:qt,maxWidth:Me,maxHeight:ze,minWidth:Me,minHeight:ze,inlineSize:Ht,blockSize:qt,maxInlineSize:Me,maxBlockSize:ze,minInlineSize:Me,minBlockSize:ze,colors:Bt,fontFamily:hi,fontSize:mi,fontWeight:wi,breakpoints:Gt,verticalBreakpoints:Si,borderRadius:Ri,lineHeight:yi,letterSpacing:Kt,wordSpacing:$i,boxShadow:Ei,textIndent:gi,textShadow:xi,textStrokeWidth:bi,blur:pi,dropShadow:di,easing:Pi,transitionProperty:Mi,lineWidth:vi,spacing:Ci,duration:ki,ringWidth:Ti,preflightBase:Oi,containers:Vi,zIndex:ji,media:Ai};var Li={name:"aria",match(t,e){let r=U("aria-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n)??e.theme.aria?.[n]??"";if(o)return{matcher:i,selector:s=>`${s}[aria-${o}]`}}}};function ut(t){return{name:`${t}-aria`,match(e,r){let n=U(`${t}-aria-`,e,r.generator.config.separators);if(n){let[i,o]=n,s=u.bracket(i)??r.theme.aria?.[i]??"";if(s)return{matcher:`${t}-[[aria-${s}]]:${o}`}}}}}var Fi=[ut("group"),ut("peer"),ut("parent"),ut("previous")];function Ui(t){let e=t.match(/^-?\d+\.?\d*/)?.[0]||"",r=t.slice(e.length);if(r==="px"){let n=Number.parseFloat(e)-.1;return Number.isNaN(n)?t:`${n}${r}`}return`calc(${t} - 0.1px)`}var _i=/(max|min)-\[([^\]]*)\]:/;function Ii(){let t={};return{name:"breakpoints",match(e,r){if(_i.test(e)){let i=e.match(_i);return{matcher:e.replace(i[0],""),handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@media (${i[1]}-width: ${i[2]})`})}}let n=(it(r)??[]).map(({point:i,size:o},s)=>[i,o,s]);for(let[i,o,s]of n){t[i]||(t[i]=new RegExp(`^((?:([al]t-|[<~]|max-))?${i}(?:${r.generator.config.separators.join("|")}))`));let a=e.match(t[i]);if(!a)continue;let[,l]=a,c=e.slice(l.length);if(c==="container")continue;let f=l.startsWith("lt-")||l.startsWith("<")||l.startsWith("max-"),p=l.startsWith("at-")||l.startsWith("~"),d=3e3;return f?(d-=s+1,{matcher:c,handle:(h,b)=>b({...h,parent:`${h.parent?`${h.parent} $$ `:""}@media (max-width: ${Ui(o)})`,parentOrder:d})}):(d+=s+1,p&&s<n.length-1?{matcher:c,handle:(h,b)=>b({...h,parent:`${h.parent?`${h.parent} $$ `:""}@media (min-width: ${o}) and (max-width: ${Ui(n[s+1][1])})`,parentOrder:d})}:{matcher:c,handle:(h,b)=>b({...h,parent:`${h.parent?`${h.parent} $$ `:""}@media (min-width: ${o})`,parentOrder:d})})}},multiPass:!0,autocomplete:"(at-|lt-|max-|)$breakpoints:"}}var Wi=[te("*",t=>({selector:`${t.selector} > *`}))];function Le(t,e){return{name:`combinator:${t}`,match(r,n){if(!r.startsWith(t))return;let i=n.generator.config.separators,o=re(`${t}-`,r,i);if(!o){for(let a of i)if(r.startsWith(`${t}${a}`)){o=["",r.slice(t.length+a.length)];break}if(!o)return}let s=u.bracket(o[0])??"";return s===""&&(s="*"),{matcher:o[1],selector:a=>`${a}${e}${s}`}},multiPass:!0}}var Di=[Le("all"," "),Le("children",">"),Le("next","+"),Le("sibling","+"),Le("siblings","~")];var Ni={name:"@",match(t,e){if(t.startsWith("@container"))return;let r=U("@",t,e.generator.config.separators);if(r){let[n,i,o]=r,s=u.bracket(n),a;if(s?a=u.numberWithUnit(s):a=e.theme.containers?.[n]??"",a){let l=1e3+Object.keys(e.theme.containers??{}).indexOf(n);return o&&(l+=1e3),{matcher:i,handle:(c,f)=>f({...c,parent:`${c.parent?`${c.parent} $$ `:""}@container${o?` ${o} `:" "}(min-width: ${a})`,parentOrder:l})}}}},multiPass:!0};function Bi(t={}){if(t?.dark==="class"||typeof t.dark=="object"){let{dark:e=".dark",light:r=".light"}=typeof t.dark=="string"?{}:t.dark;return[te("dark",n=>({prefix:`${e} $$ ${n.prefix}`})),te("light",n=>({prefix:`${r} $$ ${n.prefix}`}))]}return[Ce("dark","@media (prefers-color-scheme: dark)"),Ce("light","@media (prefers-color-scheme: light)")]}var Ki={name:"data",match(t,e){let r=U("data-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n)??e.theme.data?.[n]??"";if(o)return{matcher:i,selector:s=>`${s}[data-${o}]`}}}};function ft(t){return{name:`${t}-data`,match(e,r){let n=U(`${t}-data-`,e,r.generator.config.separators);if(n){let[i,o,s]=n,a=u.bracket(i)??r.theme.data?.[i]??"";if(a)return{matcher:`${t}-[[data-${a}]]${s?`/${s}`:""}:${o}`}}}}}var Gi=[ft("group"),ft("peer"),ft("parent"),ft("previous")];var Hi=[te("rtl",t=>({prefix:`[dir="rtl"] $$ ${t.prefix}`})),te("ltr",t=>({prefix:`[dir="ltr"] $$ ${t.prefix}`}))];function qi(){let t;return{name:"important",match(e,r){t||(t=new RegExp(`^(important(?:${r.generator.config.separators.join("|")})|!)`));let n,i=e.match(t);if(i?n=e.slice(i[0].length):e.endsWith("!")&&(n=e.slice(0,-1)),n)return{matcher:n,body:o=>(o.forEach(s=>{s[1]!=null&&(s[1]+=" !important")}),o)}}}}var Yi=Ce("print","@media print"),Xi={name:"media",match(t,e){let r=U("media-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n)??"";if(o===""&&(o=e.theme.media?.[n]??""),o)return{matcher:i,handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@media ${o}`})}}},multiPass:!0};var Zi={name:"selector",match(t,e){let r=re("selector-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n);if(o)return{matcher:i,selector:()=>o}}}},Ji={name:"layer",match(t,e){let r=U("layer-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n)??n;if(o)return{matcher:i,handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@layer ${o}`})}}}},Qi={name:"uno-layer",match(t,e){let r=U("uno-layer-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n)??n;if(o)return{matcher:i,layer:o}}}},eo={name:"scope",match(t,e){let r=re("scope-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n);if(o)return{matcher:i,selector:s=>`${o} $$ ${s}`}}}},to={name:"variables",match(t,e){if(!t.startsWith("["))return;let[r,n]=ce(t,"[","]")??[];if(!(r&&n))return;let i;for(let a of e.generator.config.separators)if(n.startsWith(a)){i=n.slice(a.length);break}if(i==null)return;let o=u.bracket(r)??"",s=o.startsWith("@");if(s||o.includes("&"))return{matcher:i,handle(a,l){let c=s?{parent:`${a.parent?`${a.parent} $$ `:""}${o}`}:{selector:o.replace(/&/g,a.selector)};return l({...a,...c})}}},multiPass:!0},ro={name:"theme-variables",match(t,e){if(Fr(t))return{matcher:t,handle(r,n){return n({...r,entries:JSON.parse(Ur(JSON.stringify(r.entries),e.theme))})}}}};var no=/^-?[0-9.]+(?:[a-z]+|%)?$/,io=/-?[0-9.]+(?:[a-z]+|%)?/,pa=[/\b(opacity|color|flex|backdrop-filter|^filter|transform)\b/];function da(t){let e=t.match(Re)||t.match(Ze);if(e){let[r,n]=ue(`(${e[2]})${e[3]}`,"(",")"," ")??[];if(r)return`calc(${e[1]}${r} * -1)${n?` ${n}`:""}`}}var ha=/\b(hue-rotate)\s*(\(.*)/;function ma(t){let e=t.match(ha);if(e){let[r,n]=ue(e[2],"(",")"," ")??[];if(r){let i=no.test(r.slice(1,-1))?r.replace(io,o=>o.startsWith("-")?o.slice(1):`-${o}`):`(calc(${r} * -1))`;return`${e[1]}${i}${n?` ${n}`:""}`}}}var oo={name:"negative",match(t){if(t.startsWith("-"))return{matcher:t.slice(1),body:e=>{if(e.find(n=>n[0]===Yr))return;let r=!1;return e.forEach(n=>{let i=n[1]?.toString();if(!i||i==="0"||pa.some(a=>a.test(n[0])))return;let o=da(i);if(o){n[1]=o,r=!0;return}let s=ma(i);if(s){n[1]=s,r=!0;return}no.test(i)&&(n[1]=i.replace(io,a=>a.startsWith("-")?a.slice(1):`-${a}`),r=!0)}),r?e:[]}}}};var me=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)"],"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(t=>Array.isArray(t)?t:[t,`:${t}`])),co=Object.keys(me),ge=Object.fromEntries([["backdrop","::backdrop"]].map(t=>Array.isArray(t)?t:[t,`:${t}`])),uo=Object.keys(ge),ga=["not","is","where","has"],fo=Object.fromEntries([["selection",["::selection"," *::selection"]],["marker",["::marker"," *::marker"]]]),Yt=Object.entries(me).filter(([,t])=>!t.startsWith("::")).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|"),Xt=Object.entries(ge).filter(([,t])=>!t.startsWith("::")).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|"),se=ga.join("|"),so=Object.keys(fo).sort((t,e)=>e.length-t.length).join("|");function ba(t,e,r){let n=new RegExp(`^(${Q(e)}:)(\\S+)${Q(r)}\\1`),i,o,s,a,l=p=>{let d=re(`${t}-`,p,[]);if(!d)return;let[h,b]=d,y=u.bracket(h);if(y==null)return;let $=b.split(i,1)?.[0]??"",k=`${e}${ne($)}`;return[$,p.slice(p.length-(b.length-$.length-1)),y.includes("&")?y.replace(/&/g,k):`${k}${y}`]},c=p=>{let d=p.match(o)||p.match(s);if(!d)return;let[h,b,y]=d,$=d[3]??"",k=me[y]||ge[y]||`:${y}`;return b&&(k=`:${b}(${k})`),[$,p.slice(h.length),`${e}${ne($)}${k}`,y]},f=p=>{let d=p.match(a);if(!d)return;let[h,b,y]=d,$=d[3]??"",k=`:${b}(${y})`;return[$,p.slice(h.length),`${e}${ne($)}${k}`]};return{name:`pseudo:${t}`,match(p,d){if(i&&o&&s||(i=new RegExp(`(?:${d.generator.config.separators.join("|")})`),o=new RegExp(`^${t}-(?:(?:(${se})-)?(${Yt}))(?:(/\\w+))?(?:${d.generator.config.separators.join("|")})`),s=new RegExp(`^${t}-(?:(?:(${se})-)?(${Xt}))(?:(/\\w+))?(?:${d.generator.config.separators.filter(x=>x!=="-").join("|")})`),a=new RegExp(`^${t}-(?:(${se})-)?\\[(.+)\\](?:(/\\w+))?(?:${d.generator.config.separators.filter(x=>x!=="-").join("|")})`)),!p.startsWith(t))return;let h=l(p)||c(p)||f(p);if(!h)return;let[b,y,$,k=""]=h;return{matcher:y,handle:(x,S)=>S({...x,prefix:`${$}${r}${x.prefix}`.replace(n,"$1$2:"),sort:co.indexOf(k)??uo.indexOf(k)})}},multiPass:!0}}var xa=["::-webkit-resizer","::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-corner","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::file-selector-button"],ao=Object.entries(me).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|"),lo=Object.entries(ge).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|");function po(){let t,e,r;return[{name:"pseudo",match(n,i){t&&e||(t=new RegExp(`^(${ao})(?:${i.generator.config.separators.join("|")})`),e=new RegExp(`^(${lo})(?:${i.generator.config.separators.filter(s=>s!=="-").join("|")})`));let o=n.match(t)||n.match(e);if(o){let s=me[o[1]]||ge[o[1]]||`:${o[1]}`,a=co.indexOf(o[1]);return a===-1&&(a=uo.indexOf(o[1])),a===-1&&(a=void 0),{matcher:n.slice(o[0].length),handle:(l,c)=>{let f=s.includes("::")&&!xa.includes(s)?{pseudo:`${l.pseudo}${s}`}:{selector:`${l.selector}${s}`};return c({...l,...f,sort:a,noMerge:!0})}}}},multiPass:!0,autocomplete:`(${ao}|${lo}):`},{name:"pseudo:multi",match(n,i){r||(r=new RegExp(`^(${so})(?:${i.generator.config.separators.join("|")})`));let o=n.match(r);if(o)return fo[o[1]].map(a=>({matcher:n.slice(o[0].length),handle:(l,c)=>c({...l,pseudo:`${l.pseudo}${a}`})}))},multiPass:!1,autocomplete:`(${so}):`}]}function ho(){let t,e,r;return{match(n,i){t&&e||(t=new RegExp(`^(${se})-(${Yt})(?:${i.generator.config.separators.join("|")})`),e=new RegExp(`^(${se})-(${Xt})(?:${i.generator.config.separators.filter(s=>s!=="-").join("|")})`),r=new RegExp(`^(${se})-(\\[.+\\])(?:${i.generator.config.separators.filter(s=>s!=="-").join("|")})`));let o=n.match(t)||n.match(e)||n.match(r);if(o){let s=o[1],l=ce(o[2],"[","]")?u.bracket(o[2]):me[o[2]]||ge[o[2]]||`:${o[2]}`;return{matcher:n.slice(o[0].length),selector:c=>`${c}:${s}(${l})`}}},multiPass:!0,autocomplete:`(${se})-(${Yt}|${Xt}):`}}function mo(t={}){let e=!!t?.attributifyPseudo,r=t?.prefix??"";r=(Array.isArray(r)?r:[r]).filter(Boolean)[0]??"";let n=(i,o)=>ba(i,e?`[${r}${i}=""]`:`.${r}${i}`,o);return[n("group"," "),n("peer","~"),n("parent",">"),n("previous","+"),n("group-aria"," "),n("peer-aria","~"),n("parent-aria",">"),n("previous-aria","+")]}var ya=/(part-\[(.+)\]:)(.+)/,go={match(t){let e=t.match(ya);if(e){let r=`part(${e[2]})`;return{matcher:t.slice(e[1].length),selector:n=>`${n}::${r}`}}},multiPass:!0};var bo={name:"starting",match(t){if(t.startsWith("starting:"))return{matcher:t.slice(9),handle:(e,r)=>r({...e,parent:"@starting-style"})}}};var xo={name:"supports",match(t,e){let r=U("supports-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n)??"";if(o===""&&(o=e.theme.supports?.[n]??""),o)return{matcher:i,handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}@supports ${o}`})}}},multiPass:!0};function yo(t){return[Li,Ki,Ji,Zi,Qi,oo,bo,qi(),xo,Yi,Xi,Ii(),...Di,...po(),ho(),...mo(t),go,...Bi(t),...Hi,eo,...Wi,Ni,to,...Gi,...Fi,ro]}var wa=(t={})=>(t.dark=t.dark??"class",t.attributifyPseudo=t.attributifyPseudo??!1,t.preflight=t.preflight??!0,t.variablePrefix=t.variablePrefix??"un-",{name:"@unocss/preset-mini",theme:zi,rules:ui,variants:yo(t),options:t,prefix:t.prefix,postprocess:$a(t.variablePrefix),preflights:Er(t),extractorDefault:t.arbitraryVariants===!1?void 0:Rr(),autocomplete:{shorthands:fi}}),wo=wa;function $a(t){if(t!=="un-")return e=>{e.entries.forEach(r=>{r[0]=r[0].replace(/^--un-/,`--${t}`),typeof r[1]=="string"&&(r[1]=r[1].replace(/var\(--un-/g,`var(--${t}`))})}}function Sa(t){return t.replace(/-(\w)/g,(e,r)=>r?r.toUpperCase():"")}function $o(t){return t.charAt(0).toUpperCase()+t.slice(1)}function So(t){return t.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var vo=["Webkit","Moz","ms"];function Co(t){let e={};function r(n){let i=e[n];if(i)return i;let o=Sa(n);if(o!=="filter"&&o in t)return e[n]=So(o);o=$o(o);for(let s=0;s<vo.length;s++){let a=`${vo[s]}${o}`;if(a in t)return e[n]=So($o(a))}return n}return({entries:n})=>n.forEach(i=>{i[0].startsWith("--")||(i[0]=r(i[0]))})}function ko(t){return t.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<")}async function Zt(t={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let e=window,r=window.document,n=()=>r.documentElement,i=e.__unocss||{},o=Object.assign({},t,i.runtime),s=o.defaults||{},a=o.cloakAttribute??"un-cloak";o.autoPrefix&&(s.postprocess=O(s.postprocess)).unshift(Co(r.createElement("div").style)),o.configResolved?.(i,s);let l=await mr(i,s),c=v=>o.inject?o.inject(v):n().prepend(v),f=()=>o.rootElement?o.rootElement():r.body,p=new Map,d=!0,h=new Set,b,y,$=[],k=()=>new Promise(v=>{$.push(v),y!=null&&clearTimeout(y),y=setTimeout(()=>P().then(()=>{let E=$;$=[],E.forEach(A=>A())}),0)});function x(v,E=!1){if(v.nodeType!==1)return;let A=v;A.hasAttribute(a)&&A.removeAttribute(a),E&&A.querySelectorAll(`[${a}]`).forEach(M=>{M.removeAttribute(a)})}function S(v,E){let A=p.get(v);if(!A)if(A=r.createElement("style"),A.setAttribute("data-unocss-runtime-layer",v),p.set(v,A),E==null)c(A);else{let M=S(E),R=M.parentNode;R?R.insertBefore(A,M.nextSibling):c(A)}return A}async function P(){let v=[...h],E=await l.generate(v);return E.layers.reduce((M,R)=>(S(R,M).innerHTML=E.getLayer(R)??"",R),void 0),v.filter(M=>!E.matched.has(M)).forEach(M=>h.delete(M)),{...E,getStyleElement:M=>p.get(M),getStyleElements:()=>p}}async function C(v){let E=h.size;await l.applyExtractors(v,void 0,h),E!==h.size&&await k()}async function g(v=f()){let E=v&&v.outerHTML;E&&(await C(`${E} ${ko(E)}`),x(n()),x(v,!0))}let m=new MutationObserver(v=>{d||v.forEach(async E=>{if(E.target.nodeType!==1)return;let A=E.target;for(let M of p)if(A===M[1])return;if(E.type==="childList")E.addedNodes.forEach(async M=>{if(M.nodeType!==1)return;let R=M;b&&!b(R)||(await C(R.outerHTML),x(R))});else{if(b&&!b(A))return;if(E.attributeName!==a){let M=Array.from(A.attributes).map(F=>F.value?`${F.name}="${F.value}"`:F.name).join(" "),R=`<${A.tagName.toLowerCase()} ${M}>`;await C(R)}x(A)}})}),w=!1;function j(){if(w)return;let v=o.observer?.target?o.observer.target():f();v&&(m.observe(v,{childList:!0,subtree:!0,attributes:!0,attributeFilter:o.observer?.attributeFilter}),w=!0)}function _(){o.bypassDefined&&va(l.blocked),g(),j()}function I(){r.readyState==="loading"?e.addEventListener("DOMContentLoaded",_):_()}let G=e.__unocss_runtime=e.__unocss_runtime={version:l.version,uno:l,async extract(v){z(v)||(v.forEach(E=>h.add(E)),v=""),await C(v)},extractAll:g,inspect(v){b=v},toggleObserver(v){v===void 0?d=!d:d=!!v,!w&&!d&&I()},update:P,presets:e.__unocss_runtime?.presets??{}};o.ready?.(G)!==!1&&(d=!1,I())}function va(t=new Set){for(let e=0;e<document.styleSheets.length;e++){let r=document.styleSheets[e],n;try{if(n=r.cssRules||r.rules,!n)continue;Array.from(n).flatMap(i=>i.selectorText?.split(/,/g)||[]).forEach(i=>{i&&(i=i.trim(),i.startsWith(".")&&(i=i.slice(1)),t.add(i))})}catch{continue}}return t}Zt({defaults:{presets:[wo(),Sr()]}});})();
|