@unocss/runtime 66.1.2 → 66.1.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 +8 -8
- package/core.global.js +1 -1
- package/full.global.js +8 -8
- package/mini.global.js +3 -3
- package/package.json +4 -4
- package/preset-icons.global.js +1 -1
- package/preset-mini.global.js +2 -2
- package/preset-uno.global.js +7 -7
- package/preset-wind.global.js +7 -7
- package/uno.global.js +8 -8
package/preset-mini.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var fo=Object.defineProperty;var po=(t,e)=>{for(var r in e)fo(t,r,{get:e[r],enumerable:!0})};var Ce=/[\\:]?[\s'"`;{}]+/g;function $(t=[]){return Array.isArray(t)?t:[t]}function nt(t){return typeof t=="string"}function V(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _(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 mo=/[\w\u00A0-\uFFFF%-?]/;function ot(t=""){return mo.test(t)}function go(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 it(t){return t==null?"":go(t).map(([e,r])=>r!=null&&typeof r!="function"?`${e}:${r};`:void 0).filter(Boolean).join("")}function bo(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 st(t,e,r,n){for(let o of Array.from(t.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${bo(i)}`;e.set(s,i),t=t.replace(i,s)}return t}function at(t,e){for(let[r,n]of e.entries())t=t.replaceAll(r,n);return t}var xo=/\/\/#\s*sourceMappingURL=.*\n?/g;function lt(t){return t.includes("sourceMappingURL=")?t.replace(xo,""):t}var yo=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,wo=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,$o=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function So(t){let e=[];for(let o of t.matchAll(wo))o.index!==0&&!/^[\s'"`]/.test(t[o.index-1]??"")||e.push(o[0]);for(let o of t.matchAll(yo))e.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return t=st(t,r,/-\[(?!&.+?;)[^\]]*\]/g,n),t&&t.split(Ce).forEach(o=>{o.includes(n)&&(o=at(o,r)),ot(o)&&!$o.test(o)&&e.push(o)}),e}function ct(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:t}){return So(lt(t))}}}function ut(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 o=new Set(Array.from(r.activatedRules).map(i=>i[2]?.custom?.preflightKeys).filter(Boolean).flat());n=n.filter(([i])=>o.has(i))}if(n.length>0){let o=it(n);return t.variablePrefix!=="un-"&&(o=o.replace(/--un-/g,`--${t.variablePrefix}`)),$(e.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${o}}`).join("")}}}}]}function N(t,e,r){if(t==="")return;let n=t.length,o=0,i=!1,s=0;for(let l=0;l<n;l++)switch(t[l]){case e:i||(i=!0,s=l),o++;break;case r:if(--o,o<0)return;if(o===0)return[t.slice(s,l+1),t.slice(l+1),t.slice(0,s)];break}}function B(t,e,r,n){if(t===""||(nt(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 l of n){let c=l.length;if(c&&l===t.slice(s,s+c)&&i===0)return s===0||s===o-c?void 0:[t.slice(0,s),t.slice(s+c)]}}return[t,""]}function U(t,e,r){r=r??10;let n=[],o=0;for(;t!=="";){if(++o>r)return;let i=B(t,"(",")",e);if(!i)return;let[s,l]=i;n.push(s),t=l}if(n.length>0)return n}var Re=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],ft=["%alpha","<alpha-value>"],vo=new RegExp(ft.map(t=>V(t)).join("|"),"g");function P(t=""){let e=ko(t);if(e==null||e===!1)return;let{type:r,components:n,alpha:o}=e,i=r.toLowerCase();if(n.length!==0&&!(Re.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 Y(t){let e=t.alpha??1;return typeof e=="string"&&ft.includes(e)?1:e}function S(t,e){if(typeof t=="string")return t.replace(vo,`${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}`,Re.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function ko(t){if(!t)return;let e=Co(t);if(e!=null||(e=Ro(t),e!=null)||(e=Eo(t),e!=null)||(e=jo(t),e!=null)||(e=zo(t),e!=null))return e}function Co(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 Ro(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function Eo(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,n]=e,o=U(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 To=new RegExp(`^(${Re.join("|")})\\((.+)\\)$`,"i");function jo(t){let e=t.match(To);if(!e)return;let[,r,n]=e,o=pt(`${r} ${n}`);if(o){let{alpha:i,components:[s,...l]}=o;return{type:s,components:l,alpha:i}}}function zo(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=pt(e[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function pt(t){let e=U(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=U(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 ht(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 dt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bt=new Uint8Array(64),Oo=new Uint8Array(128);for(let t=0;t<dt.length;t++){let e=dt.charCodeAt(t);bt[t]=e,Oo[e]=t}function X(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(bt[o])}while(n>0);return e}var mt=1024*16,gt=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}},Ee=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(mt)}write(e){let{buffer:r}=this;r[this.pos++]=e,this.pos===mt&&(this.out+=gt.decode(r),this.pos=0)}flush(){let{buffer:e,out:r,pos:n}=this;return n>0?r+gt.decode(e.subarray(0,n)):r}};function xt(t){let e=new Ee,r=0,n=0,o=0,i=0;for(let s=0;s<t.length;s++){let l=t[s];if(s>0&&e.write(59),l.length===0)continue;let c=0;for(let u=0;u<l.length;u++){let f=l[u];u>0&&e.write(44),c=X(e,f[0],c),f.length!==1&&(r=X(e,f[1],r),n=X(e,f[2],n),o=X(e,f[3],o),f.length!==4&&(i=X(e,f[4],i)))}}return e.flush()}var le=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))}},ce=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 Ao(){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 Vo=Ao(),Te=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=xt(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList),typeof e.debugId<"u"&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Vo(this.toString())}};function Po(t){let e=t.split(`
|
|
1
|
+
"use strict";(()=>{var fo=Object.defineProperty;var po=(t,e)=>{for(var r in e)fo(t,r,{get:e[r],enumerable:!0})};var Ce=/[\\:]?[\s'"`;{}]+/g;function $(t=[]){return Array.isArray(t)?t:[t]}function ot(t){return typeof t=="string"}function V(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _(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 mo=/[\w\u00A0-\uFFFF%-?]/;function it(t=""){return mo.test(t)}function go(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 st(t){return t==null?"":go(t).map(([e,r])=>r!=null&&typeof r!="function"?`${e}:${r};`:void 0).filter(Boolean).join("")}function bo(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 at(t,e,r,n){for(let o of Array.from(t.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${bo(i)}`;e.set(s,i),t=t.replace(i,s)}return t}function lt(t,e){for(let[r,n]of e.entries())t=t.replaceAll(r,n);return t}var xo=/\/\/#\s*sourceMappingURL=.*\n?/g;function ct(t){return t.includes("sourceMappingURL=")?t.replace(xo,""):t}var yo=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,wo=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,$o=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function So(t){let e=[];for(let o of t.matchAll(wo))o.index!==0&&!/^[\s'"`]/.test(t[o.index-1]??"")||e.push(o[0]);for(let o of t.matchAll(yo))e.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return t=at(t,r,/-\[(?!&.+?;)[^\]]*\]/g,n),t&&t.split(Ce).forEach(o=>{o.includes(n)&&(o=lt(o,r)),it(o)&&!$o.test(o)&&e.push(o)}),e}function ut(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:t}){return So(ct(t))}}}function ft(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 o=new Set(Array.from(r.activatedRules).map(i=>i[2]?.custom?.preflightKeys).filter(Boolean).flat());n=n.filter(([i])=>o.has(i))}if(n.length>0){let o=st(n);return t.variablePrefix!=="un-"&&(o=o.replace(/--un-/g,`--${t.variablePrefix}`)),$(e.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${o}}`).join("")}}}}]}function N(t,e,r){if(t==="")return;let n=t.length,o=0,i=!1,s=0;for(let l=0;l<n;l++)switch(t[l]){case e:i||(i=!0,s=l),o++;break;case r:if(--o,o<0)return;if(o===0)return[t.slice(s,l+1),t.slice(l+1),t.slice(0,s)];break}}function B(t,e,r,n){if(t===""||(ot(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 l of n){let c=l.length;if(c&&l===t.slice(s,s+c)&&i===0)return s===0||s===o-c?void 0:[t.slice(0,s),t.slice(s+c)]}}return[t,""]}function U(t,e,r){r=r??10;let n=[],o=0;for(;t!=="";){if(++o>r)return;let i=B(t,"(",")",e);if(!i)return;let[s,l]=i;n.push(s),t=l}if(n.length>0)return n}var Re=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],pt=["%alpha","<alpha-value>"],vo=new RegExp(pt.map(t=>V(t)).join("|"),"g");function P(t=""){let e=ko(t);if(e==null||e===!1)return;let{type:r,components:n,alpha:o}=e,i=r.toLowerCase();if(n.length!==0&&!(Re.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 Y(t){let e=t.alpha??1;return typeof e=="string"&&pt.includes(e)?1:e}function S(t,e){if(typeof t=="string")return t.replace(vo,`${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}`,Re.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function ko(t){if(!t)return;let e=Co(t);if(e!=null||(e=Ro(t),e!=null)||(e=Eo(t),e!=null)||(e=jo(t),e!=null)||(e=zo(t),e!=null))return e}function Co(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 Ro(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function Eo(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,n]=e,o=U(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 To=new RegExp(`^(${Re.join("|")})\\((.+)\\)$`,"i");function jo(t){let e=t.match(To);if(!e)return;let[,r,n]=e,o=ht(`${r} ${n}`);if(o){let{alpha:i,components:[s,...l]}=o;return{type:s,components:l,alpha:i}}}function zo(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=ht(e[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function ht(t){let e=U(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=U(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}}var dt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bt=new Uint8Array(64),Oo=new Uint8Array(128);for(let t=0;t<dt.length;t++){let e=dt.charCodeAt(t);bt[t]=e,Oo[e]=t}function X(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(bt[o])}while(n>0);return e}var mt=1024*16,gt=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}},Ee=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(mt)}write(e){let{buffer:r}=this;r[this.pos++]=e,this.pos===mt&&(this.out+=gt.decode(r),this.pos=0)}flush(){let{buffer:e,out:r,pos:n}=this;return n>0?r+gt.decode(e.subarray(0,n)):r}};function xt(t){let e=new Ee,r=0,n=0,o=0,i=0;for(let s=0;s<t.length;s++){let l=t[s];if(s>0&&e.write(59),l.length===0)continue;let c=0;for(let u=0;u<l.length;u++){let f=l[u];u>0&&e.write(44),c=X(e,f[0],c),f.length!==1&&(r=X(e,f[1],r),n=X(e,f[2],n),o=X(e,f[3],o),f.length!==4&&(i=X(e,f[4],i)))}}return e.flush()}var le=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))}},ce=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 Ao(){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 Vo=Ao(),Te=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=xt(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList),typeof e.debugId<"u"&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Vo(this.toString())}};function Po(t){let e=t.split(`
|
|
2
2
|
`),r=e.filter(i=>/^\t+/.test(i)),n=e.filter(i=>/^ {2,}/.test(i));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let o=n.reduce((i,s)=>{let l=/^ +/.exec(s)[0].length;return Math.min(l,i)},1/0);return new Array(o+1).join(" ")}function Lo(t,e){let r=t.split(/[/\\]/),n=e.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let o=r.length;for(;o--;)r[o]=".."}return r.concat(n).join("/")}var Fo=Object.prototype.toString;function Mo(t){return Fo.call(t)==="[object Object]"}function yt(t){let e=t.split(`
|
|
3
3
|
`),r=[];for(let n=0,o=0;n<e.length;n++)r.push(o),o+=e[n].length+1;return function(o){let i=0,s=r.length;for(;i<s;){let u=i+s>>1;o<r[u]?s=u:i=u+1}let l=i-1,c=o-r[l];return{line:l,column:c}}}var Wo=/\w/,je=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,o){if(r.length){let i=r.length-1,s=r.indexOf(`
|
|
4
4
|
`,0),l=-1;for(;s>=0&&i>s;){let u=[this.generatedCodeColumn,e,n.line,n.column];o>=0&&u.push(o),this.rawSegments.push(u),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,l=s,s=r.indexOf(`
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
`);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}},Z=`
|
|
8
8
|
`,D={insertLeft:!1,insertRight:!1,storeName:!1},ue=class t{constructor(e,r={}){let n=new ce(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 le},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:r.ignoreList},offset:{writable:!0,value:r.offset||0}}),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(e=e+this.offset,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(e=e+this.offset,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,offset:this.offset}),r=this.firstChunk,n=e.firstChunk=e.lastSearchedChunk=r.clone();for(;r;){e.byStart[n.start]=n,e.byEnd[n.end]=n;let o=r.next,i=o&&o.clone();i&&(n.next=i,i.previous=n,n=i),r=o}return e.lastChunk=n,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new le(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};let r=0,n=Object.keys(this.storedNames),o=new je(e.hires),i=yt(this.original);return this.intro&&o.advance(this.intro),this.firstChunk.eachNext(s=>{let l=i(s.start);s.intro.length&&o.advance(s.intro),s.edited?o.addEdit(r,s.content,l,s.storeName?n.indexOf(s.original):-1):o.addUneditedChunk(r,s,this.original,l,this.sourcemapLocations),s.outro.length&&o.advance(s.outro)}),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?Lo(e.file||"",e.source):e.file||""],sourcesContent:e.includeContent?[this.original]:void 0,names:n,mappings:o.raw,x_google_ignoreList:this.ignoreList?[r]:void 0}}generateMap(e){return new Te(this.generateDecodedMap(e))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=Po(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(Mo(e)&&(r=e,e=void 0),e===void 0&&(this._ensureindentStr(),e=this.indentStr||" "),e==="")return this;r=r||{};let o={};r.exclude&&(typeof r.exclude[0]=="number"?[r.exclude]:r.exclude).forEach(f=>{for(let d=f[0];d<f[1];d+=1)o[d]=!0});let i=r.indentStart!==!1,s=u=>i?`${e}${u}`:(i=!0,u);this.intro=this.intro.replace(n,s);let l=0,c=this.firstChunk;for(;c;){let u=c.end;if(c.edited)o[l]||(c.content=c.content.replace(n,s),c.content.length&&(i=c.content[c.content.length-1]===`
|
|
9
9
|
`));else for(l=c.start;l<u;){if(!o[l]){let f=this.original[l];f===`
|
|
10
|
-
`?i=!0:f!=="\r"&&i&&(i=!1,l===c.start||(this._splitChunk(c,l),c=c.next),c.prependRight(e))}l+=1}l=c.end,c=c.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 D.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),D.insertLeft=!0),this.appendLeft(e,r)}insertRight(e,r){return D.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),D.insertRight=!0),this.prependRight(e,r)}move(e,r,n){if(e=e+this.offset,r=r+this.offset,n=n+this.offset,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,l=i.next,c=this.byStart[n];if(!c&&i===this.lastChunk)return this;let u=c?c.previous:this.lastChunk;return s&&(s.next=l),l&&(l.previous=s),u&&(u.next=o),c&&(c.previous=i),o.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=o.previous,this.lastChunk.next=null),o.previous=u,i.next=c||null,u||(this.firstChunk=o),c||(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(e=e+this.offset,r=r+this.offset,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&&(D.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),D.storeName=!0),o={storeName:!0});let i=o!==void 0?o.storeName:!1,s=o!==void 0?o.overwrite:!1;if(i){let u=this.original.slice(e,r);Object.defineProperty(this.storedNames,u,{writable:!0,value:!0,enumerable:!0})}let l=this.byStart[e],c=this.byEnd[r];if(l){let u=l;for(;u!==c;){if(u.next!==this.byStart[u.end])throw new Error("Cannot overwrite across a split point");u=u.next,u.edit("",!1)}l.edit(n,i,!s)}else{let u=new ce(e,r,"").edit(n,i);c.next=u,u.previous=c}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(e=e+this.offset,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(e=e+this.offset,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(e=e+this.offset,r=r+this.offset,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(e=e+this.offset,r=r+this.offset,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(Z);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(Z),e!==-1)return n.outro.substr(e+1)+r;r=n.outro+r}if(n.content.length>0){if(e=n.content.lastIndexOf(Z),e!==-1)return n.content.substr(e+1)+r;r=n.content+r}if(n.intro.length>0){if(e=n.intro.lastIndexOf(Z),e!==-1)return n.intro.substr(e+1)+r;r=n.intro+r}}while(n=n.previous);return e=this.intro.lastIndexOf(Z),e!==-1?this.intro.substr(e+1)+r:this.intro+r}slice(e=0,r=this.original.length-this.offset){if(e=e+this.offset,r=r+this.offset,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 l=i===o?e-o.start:0,c=s?o.content.length+r-o.end:o.content.length;if(n+=o.content.slice(l,c),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=yt(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,(l,c)=>c==="$"?"$":c==="&"?i[0]:+c<i.length?i[+c]:`$${c}`):r(...i,i.index,s,i.groups)}function o(i,s){let l,c=[];for(;l=i.exec(s);)c.push(l);return c}if(e.global)o(e,this.original).forEach(s=>{if(s.index!=null){let l=n(s,this.original);l!==s[0]&&this.overwrite(s.index,s.index+s[0].length,l)}});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 Io=/theme\(\s*(['"])?(.*?)\1?\s*\)/g;function wt(t){return t.includes("theme(")&&t.includes(")")}function $t(t,e,r=!0){let n=Array.from(t.toString().matchAll(Io));if(!n.length)return t;let o=new ue(t);for(let i of n){let s=i[2];if(!s)throw new Error("theme() expect exact one argument, but got 0");let l=_o(s,e,r);l&&o.overwrite(i.index,i.index+i[0].length,l)}return o.toString()}function _o(t,e,r=!0){let[n,o]=t.split("/"),s=n.trim().split(".").reduce((l,c)=>l?.[c],e);if(typeof s=="object"&&(s=s.DEFAULT),typeof s=="string"){if(o){let l=P(s);l&&(s=S(l,o))}return s}else if(r)throw new Error(`theme of "${t}" did not found`)}function L(t,e){let r;return{name:t,match(n,o){r||(r=new RegExp(`^${V(t)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i){let s=n.slice(i[0].length),l=$(e).map(c=>({matcher:s,handle:(u,f)=>f({...u,...c(u)})}));return l.length===1?l[0]:l}},autocomplete:`${t}:`}}function J(t,e){let r;return{name:t,match(n,o){r||(r=new RegExp(`^${V(t)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}${e}`})}},autocomplete:`${t}:`}}function F(t,e,r){if(e.startsWith(`${t}[`)){let[n,o]=N(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 w(t,e,r){for(let n of $(t))if(e.startsWith(n)){let o=F(n,e,r);if(o){let[i="",s=o[1]]=w("/",o[1],r)??[];return[o[0],s,i]}for(let i of r.filter(s=>s!=="/")){let s=e.indexOf(i,n.length);if(s!==-1){let l=e.indexOf("/",n.length),c=l===-1||s<=l;return[e.slice(n.length,c?s:l),e.slice(s+i.length),c?"":e.slice(l+1,s)]}}}}var Le={};po(Le,{auto:()=>Uo,bracket:()=>Yo,bracketOfColor:()=>Xo,bracketOfLength:()=>Zo,bracketOfPosition:()=>Jo,cssvar:()=>Qo,degree:()=>ti,fraction:()=>Go,global:()=>ri,number:()=>qo,numberWithUnit:()=>Bo,percent:()=>Ho,position:()=>oi,properties:()=>ni,px:()=>Ko,rem:()=>Do,time:()=>ei});var v={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"]},ze={...v,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"]},Oe={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"]},vt={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},kt=["x","y","z"],St=["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"],Q=Object.assign({},...St.map(t=>({[t.replace(/ /,"-")]:t})),...St.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t}))),m=["inherit","initial","revert","revert-layer","unset"],ee=/^(calc|clamp|min|max)\s*\((.+)\)(.*)/,fe=/^(var)\s*\((.+)\)(.*)/;var K=/^(-?\d*(?:\.\d+)?)(px|pt|pc|%|r?(?:em|ex|lh|cap|ch|ic)|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i,Ae=/^(-?\d*(?:\.\d+)?)$/,Ve=/^(px|[sld]?v[wh])$/i,Pe={px:1,vw:100,vh:100,svw:100,svh:100,dvw:100,dvh:100,lvh:100,lvw:100},pe=/^\[(color|image|length|size|position|quoted|string):/i,Ct=/,(?![^()]*\))/g;var No=["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 C(t){return+t.toFixed(10)}function Bo(t){let e=t.match(K);if(!e)return;let[,r,n]=e,o=Number.parseFloat(r);if(n&&!Number.isNaN(o))return`${C(o)}${n}`}function Uo(t){if(t==="auto"||t==="a")return"auto"}function Do(t){if(!t)return;if(Ve.test(t))return`${Pe[t]}${t}`;let e=t.match(K);if(!e)return;let[,r,n]=e,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0?"0":n?`${C(o)}${n}`:`${C(o/4)}rem`}function Ko(t){if(Ve.test(t))return`${Pe[t]}${t}`;let e=t.match(K);if(!e)return;let[,r,n]=e,o=Number.parseFloat(r);if(!Number.isNaN(o))return n?`${C(o)}${n}`:`${C(o)}px`}function qo(t){if(!Ae.test(t))return;let e=Number.parseFloat(t);if(!Number.isNaN(e))return C(e)}function Ho(t){if(t.endsWith("%")&&(t=t.slice(0,-1)),!Ae.test(t))return;let e=Number.parseFloat(t);if(!Number.isNaN(e))return`${C(e/100)}`}function Go(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":`${C(n*100)}%`}function he(t,e){if(t&&t.startsWith("[")&&t.endsWith("]")){let r,n,o=t.match(pe);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 l=[];return s.replace(/var\((--.+?)[,)]/g,(c,u)=>(l.push(u),c.replace(u,"--un-calc"))).replace(/(-?\d*\.?\d(?!-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ").replace(/--un-calc/g,()=>l.shift())})}}function Yo(t){return he(t)}function Xo(t){return he(t,"color")}function Zo(t){return he(t,"length")}function Jo(t){return he(t,"position")}function Qo(t){if(/^\$[^\s'"`;{}]/.test(t)){let[e,r]=t.slice(1).split(",");return`var(--${_(e)}${r?`, ${r}`:""})`}}function ei(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?`${C(o)}${n}`:`${C(o)}ms`}function ti(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?`${C(o)}${n}`:`${C(o)}deg`}function ri(t){if(m.includes(t))return t}function ni(t){if(t.split(",").every(e=>No.includes(e)))return t}function oi(t){if(["top","left","right","bottom","center"].includes(t))return t}var ii=ht(Le),a=ii;var Rt={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(m.map(t=>[t,t]))},Tt=[[/^(?:vertical|align|v)-([-\w]+%?)$/,([,t])=>({"vertical-align":Rt[t]??a.numberWithUnit(t)}),{autocomplete:[`(vertical|align|v)-(${Object.keys(Rt).join("|")})`,"(vertical|align|v)-<percentage>"]}]],Et=["center","left","right","justify","start","end"],jt=[...Et.map(t=>[`text-${t}`,{"text-align":t}]),...[...m,...Et].map(t=>[`text-align-${t}`,{"text-align":t}])];var Vt="$$mini-no-negative";function k(t){return([e,r,n],{theme:o})=>{let i=o.spacing?.[n||"DEFAULT"]??a.bracket.cssvar.global.auto.fraction.rem(n);if(i!=null)return v[r].map(s=>[`${t}${s}`,i]);if(n?.startsWith("-")){let s=o.spacing?.[n.slice(1)];if(s!=null)return v[r].map(l=>[`${t}${l}`,`calc(${s} * -1)`])}}}function zt(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,l=>l.slice(1).toUpperCase());if(n[s])return n[s];if(n[i]){n=n[i];continue}}return}return n}function Ot(t,e,r){return zt(t,e,r)||zt(t,e,"colors")}function Me(t,e){let[r,n]=B(t,"[","]",["/",":"])??[];if(r!=null){let o=(r.match(pe)??[])[1];if(o==null||o===e)return[r,n]}}function de(t,e,r){let n=Me(t,"color");if(!n)return;let[o,i]=n,s=o.replace(/([a-z])(\d)/g,"$1-$2").split(/-/g),[l]=s;if(!l)return;let c,u=a.bracketOfColor(o),f=u||o;if(a.numberWithUnit(f))return;if(/^#[\da-f]+$/i.test(f)?c=f:/^hex-[\da-fA-F]+$/.test(f)?c=`#${f.slice(4)}`:o.startsWith("$")&&(c=a.cssvar(o)),c=c||u,!c){let h=Ot(e,[o],r);typeof h=="string"&&(c=h)}let d="DEFAULT";if(!c){let h=s,p,[g]=s.slice(-1);/^\d+$/.test(g)&&(d=p=g,h=s.slice(0,-1));let b=Ot(e,h,r);typeof b=="object"?c=b[p??d]:typeof b=="string"&&!p&&(c=b)}return{opacity:i,name:l,no:d,color:c,cssColor:P(c),alpha:a.bracket.cssvar.percent(i??"")}}function y(t,e,r,n){return([,o],{theme:i,generator:s})=>{let l=de(o??"",i,r);if(!l)return;let{alpha:c,color:u,cssColor:f}=l,h=s.config.envMode==="dev"&&u?` /* ${u} */`:"",p={};if(f)if(c!=null)p[t]=S(f,c)+h;else{let g=`--un-${e}-opacity`,b=S(f,`var(${g})`);b.includes(g)&&(p[g]=Y(f)),p[t]=b+h}else if(u)if(c!=null)p[t]=S(u,c)+h;else{let g=`--un-${e}-opacity`,b=S(u,`var(${g})`);b.includes(g)&&(p[g]=1),p[t]=b+h}if(n?.(p)!==!1)return p}}function me(t,e){let r=[];t=$(t);for(let n=0;n<t.length;n++){let o=U(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 l="",c=o.at(-1);if(P(o.at(0))){let u=P(o.shift());u&&(l=`, ${S(u)}`)}else if(P(c)){let u=P(o.pop());u&&(l=`, ${S(u)}`)}else c&&fe.test(c)&&(l=`, ${o.pop()}`);r.push(`${i?"inset ":""}${o.join(" ")} var(${e}${l})`)}return r}function ge(t,e,r){return t!=null&&!!de(t,e,r)?.color}var At=/[a-z]+/gi,Fe=new WeakMap;function be({theme:t,generator:e},r="breakpoints"){let n=e?.userConfig?.theme?.[r]||t[r];if(!n)return;if(Fe.has(t))return Fe.get(t);let o=Object.entries(n).sort((i,s)=>Number.parseInt(i[1].replace(At,""))-Number.parseInt(s[1].replace(At,""))).map(([i,s])=>({point:i,size:s}));return Fe.set(t,o),o}function x(t,e){return m.map(r=>[`${t}-${r}`,{[e??t]:r}])}function R(t){return t!=null&&ee.test(t)}function Pt(t){return t[0]==="["&&t.slice(-1)==="]"&&(t=t.slice(1,-1)),ee.test(t)||K.test(t)}function xe(t,e,r){let n=e.split(Ct);return t||!t&&n.length===1?vt[t].map(o=>[`--un-${r}${o}`,e]):n.map((o,i)=>[`--un-${r}-${kt[i]}`,o])}var Lt=[[/^outline-(?:width-|size-)?(.+)$/,Ft,{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,si,{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,t],{theme:e})=>({"outline-offset":e.lineWidth?.[t]??a.bracket.cssvar.global.px(t)}),{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset",...m].map(t=>[`outline-${t}`,{"outline-style":t}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]];function Ft([,t],{theme:e}){return{"outline-width":e.lineWidth?.[t]??a.bracket.cssvar.global.px(t)}}function si(t,e){return R(a.bracket(t[1]))?Ft(t,e):y("outline-color","outline-color","borderColor")(t,e)}var Mt=[["appearance-auto",{"-webkit-appearance":"auto",appearance:"auto"}],["appearance-none",{"-webkit-appearance":"none",appearance:"none"}]];function ai(t){return a.properties.auto.global(t)??{contents:"contents",scroll:"scroll-position"}[t]}var Wt=[[/^will-change-(.+)/,([,t])=>({"will-change":ai(t)})]];var ie=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...m],_t=[[/^(?:border|b)()(?:-(.+))?$/,j,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,j],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,j],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,j],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,j],[/^(?:border|b)-()(?:width|size)-(.+)$/,j,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,j],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,j],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,j],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,j],[/^(?:border|b)-()(?:color-)?(.+)$/,te,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,te],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,te],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,te],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,te],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,re,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,re],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,re],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,re],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,re],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,ne,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-$borderRadius","(rounded|rd)","(rounded|rd)-$borderRadius"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltbse])(?:-(.+))?$/,ne],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,ne],[/^(?:border-|b-)?(?:rounded|rd)-([bise][se])(?:-(.+))?$/,ne],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,ne],[/^(?:border|b)-(?:style-)?()(.+)$/,oe,{autocomplete:["(border|b)-style",`(border|b)-(${ie.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${ie.join("|")})`,`(border|b)-<directions>-style-(${ie.join("|")})`,`(border|b)-style-(${ie.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,oe],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,oe],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,oe],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,oe]];function It(t,e,r){if(e!=null)return{[`border${r}-color`]:S(t,e)};if(r===""){let n={},o="--un-border-opacity",i=S(t,`var(${o})`);return i.includes(o)&&(n[o]=typeof t=="string"?1:Y(t)),n["border-color"]=i,n}else{let n={},o="--un-border-opacity",i=`--un-border${r}-opacity`,s=S(t,`var(${i})`);return s.includes(i)&&(n[o]=typeof t=="string"?1:Y(t),n[i]=`var(${o})`),n[`border${r}-color`]=s,n}}function li(t){return([,e],r)=>{let n=de(e,r,"borderColor");if(!n)return;let{alpha:o,color:i,cssColor:s}=n;if(s)return It(s,o,t);if(i)return It(i,o,t)}}function j([,t="",e],{theme:r}){let n=r.lineWidth?.[e||"DEFAULT"]??a.bracket.cssvar.global.px(e||"1");if(t in v&&n!=null)return v[t].map(o=>[`border${o}-width`,n])}function te([,t="",e],r){if(t in v){if(R(a.bracket(e)))return j(["",t,e],r);if(ge(e,r.theme,"borderColor"))return Object.assign({},...v[t].map(n=>li(n)(["",e],r.theme)))}}function re([,t="",e]){let r=a.bracket.percent.cssvar(e);if(t in v&&r!=null)return v[t].map(n=>[`--un-border${n}-opacity`,r])}function ne([,t="",e],{theme:r}){let n=r.borderRadius?.[e||"DEFAULT"]||a.bracket.cssvar.global.fraction.rem(e||"1");if(t in Oe&&n!=null)return Oe[t].map(o=>[`border${o}-radius`,n])}function oe([,t="",e]){if(ie.includes(e)&&t in v)return v[t].map(r=>[`border${r}-style`,e])}var Nt=[[/^op(?:acity)?-?(.+)$/,([,t])=>({opacity:a.bracket.percent.cssvar(t)})]],ci=/^\[url\(.+\)\]$/,ui=/^\[(?:length|size):.+\]$/,fi=/^\[position:.+\]$/,pi=/^\[(?:linear|conic|radial)-gradient\(.+\)\]$/,hi=/^\[image:.+\]$/,Bt=[[/^bg-(.+)$/,(...t)=>{let e=t[0][1];if(ci.test(e))return{"--un-url":a.bracket(e),"background-image":"var(--un-url)"};if(ui.test(e)&&a.bracketOfLength(e)!=null)return{"background-size":a.bracketOfLength(e).split(" ").map(r=>a.fraction.auto.px.cssvar(r)??r).join(" ")};if((Pt(e)||fi.test(e))&&a.bracketOfPosition(e)!=null)return{"background-position":a.bracketOfPosition(e).split(" ").map(r=>a.position.fraction.auto.px.cssvar(r)??r).join(" ")};if(pi.test(e)||hi.test(e)){let r=a.bracket(e);if(r)return{"background-image":(r.startsWith("http")?`url(${r})`:a.cssvar(r))??r}}return y("background-color","bg","backgroundColor")(...t)},{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,t])=>({"--un-bg-opacity":a.bracket.percent.cssvar(t)}),{autocomplete:"bg-(op|opacity)-<percent>"}]],Ut=[[/^color-scheme-(\w+)$/,([,t])=>({"color-scheme":t})]];var Dt=[[/^@container(?:\/(\w+))?(?:-(normal|inline-size|size))?$/,([,t,e])=>({"container-type":e??"inline-size","container-name":t})]];var Kt=["solid","double","dotted","dashed","wavy",...m],qt=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,t])=>({"text-decoration-line":t}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,Ht,{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,t])=>({"text-decoration-thickness":t}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,di,{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-line-opacity":a.bracket.percent.cssvar(t)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,t],{theme:e})=>({"text-underline-offset":e.lineWidth?.[t]??a.auto.bracket.cssvar.global.px(t)}),{autocomplete:"(underline|decoration)-(offset)-<num>"}],...Kt.map(t=>[`underline-${t}`,{"text-decoration-style":t}]),...Kt.map(t=>[`decoration-${t}`,{"text-decoration-style":t}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];function Ht([,t],{theme:e}){return{"text-decoration-thickness":e.lineWidth?.[t]??a.bracket.cssvar.global.px(t)}}function di(t,e){if(R(a.bracket(t[1])))return Ht(t,e);let r=y("text-decoration-color","line","borderColor")(t,e);if(r)return{"-webkit-text-decoration-color":r["text-decoration-color"],...r}}var Gt=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,t])=>({flex:a.bracket(t)!=null?a.bracket(t).split(" ").map(e=>a.cssvar.fraction(e)??e).join(" "):a.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":a.bracket.cssvar.number(t)??1}),{autocomplete:["flex-shrink-<num>","shrink-<num>"]}],[/^(?:flex-)?grow(?:-(.*))?$/,([,t=""])=>({"flex-grow":a.bracket.cssvar.number(t)??1}),{autocomplete:["flex-grow-<num>","grow-<num>"]}],[/^(?:flex-)?basis-(.+)$/,([,t],{theme:e})=>({"flex-basis":e.spacing?.[t]??a.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 mi={"":"",x:"column-",y:"row-",col:"column-",row:"row-"};function We([,t="",e],{theme:r}){let n=r.spacing?.[e]??a.bracket.cssvar.global.rem(e);if(n!=null)return{[`${mi[t]}gap`]:n}}var Yt=[[/^(?:flex-|grid-)?gap-?()(.+)$/,We,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,We,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}],[/^(?:flex-|grid-)?gap-(col|row)-?(.+)$/,We,{autocomplete:["gap-(col|row)-$spacing","gap-(col|row)-<num>"]}]];function z(t){return t.replace("col","column")}function Ie(t){return t[0]==="r"?"Row":"Column"}function gi(t,e,r){let n=e[`gridAuto${Ie(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 a.bracket.cssvar.auto.rem(r)}var Xt=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,t,e],{theme:r})=>({[`grid-${z(t)}`]:r[`grid${Ie(t)}`]?.[e]??a.bracket.cssvar.auto(e)})],[/^(?:grid-)?(row|col)-span-(.+)$/,([,t,e])=>{if(e==="full")return{[`grid-${z(t)}`]:"1/-1"};let r=a.bracket.number(e);if(r!=null)return{[`grid-${z(t)}`]:`span ${r}/span ${r}`}},{autocomplete:"(grid-row|grid-col|row|col)-span-<num>"}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,t,e])=>({[`grid-${z(t)}-start`]:a.bracket.cssvar(e)??e})],[/^(?:grid-)?(row|col)-end-(.+)$/,([,t,e])=>({[`grid-${z(t)}-end`]:a.bracket.cssvar(e)??e}),{autocomplete:"(grid-row|grid-col|row|col)-(start|end)-<num>"}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-auto-${z(t)}`]:gi(t,r,e)}),{autocomplete:"(grid-auto|auto)-(rows|cols)-<num>"}],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,t])=>({"grid-auto-flow":a.bracket.cssvar(t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,t])=>({"grid-auto-flow":z(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-${z(t)}`]:r[`gridTemplate${Ie(t)}`]?.[e]??a.bracket.cssvar(e)})],[/^(?:grid-)?(rows|cols)-minmax-([\w.-]+)$/,([,t,e])=>({[`grid-template-${z(t)}`]:`repeat(auto-fill,minmax(${e},1fr))`})],[/^(?:grid-)?(rows|cols)-(\d+)$/,([,t,e])=>({[`grid-template-${z(t)}`]:`repeat(${e},minmax(0,1fr))`}),{autocomplete:"(grid-rows|grid-cols|rows|cols)-<num>"}],[/^grid-area(s)?-(.+)$/,([,t,e])=>t!=null?{"grid-template-areas":a.cssvar(e)??e.split("-").map(r=>`"${a.bracket(r)}"`).join(" ")}:{"grid-area":a.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 ye=["auto","hidden","clip","visible","scroll","overlay",...m],Zt=[[/^(?:overflow|of)-(.+)$/,([,t])=>ye.includes(t)?{overflow:t}:void 0,{autocomplete:[`(overflow|of)-(${ye.join("|")})`,`(overflow|of)-(x|y)-(${ye.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,t,e])=>ye.includes(e)?{[`overflow-${t}`]:e}:void 0]];var Jt=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,t])=>({position:t}),{autocomplete:["(position|pos)-<position>","(position|pos)-<globalKeyword>","<position>"]}],[/^(?:position-|pos-)([-\w]+)$/,([,t])=>m.includes(t)?{position:t}:void 0],[/^(?:position-|pos-)?(static)$/,([,t])=>({position:t})]],Ne=[["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"}],...x("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"}],...x("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"}],...x("justify-self")],Qt=[[/^order-(.+)$/,([,t])=>({order:a.bracket.cssvar.number(t)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],Be=[["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"}],...x("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"}],...x("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"}],...x("self","align-self")],Ue=[["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"}],...x("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"}],...x("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"}],...x("place-self")],er=[...Ne,...Be,...Ue].flatMap(([t,e])=>[[`flex-${t}`,e],[`grid-${t}`,e]]);function _e(t,{theme:e}){return e.spacing?.[t]??a.bracket.cssvar.global.auto.fraction.rem(t)}function se([,t,e],r){let n=_e(e,r);if(n!=null&&t in ze)return ze[t].map(o=>[o.slice(1),n])}var tr=[[/^(?:position-|pos-)?inset-(.+)$/,([,t],e)=>({inset:_e(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)-(.+)$/,se],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,se],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,se],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,se],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,se],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,t,e],r)=>({[t]:_e(e,r)})]],rr=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-start",{float:"inline-start"}],["float-end",{float:"inline-end"}],["float-none",{float:"none"}],...x("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"}],...x("clear")],nr=[[/^(?:position-|pos-)?z([\d.]+)$/,([,t])=>({"z-index":a.number(t)})],[/^(?:position-|pos-)?z-(.+)$/,([,t],{theme:e})=>({"z-index":e.zIndex?.[t]??a.bracket.cssvar.global.auto.number(t)}),{autocomplete:"z-<num>"}]],or=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}],...x("box","box-sizing")];var ir=[[/^(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 bi=["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"],xi=["none","strict","content","size","inline-size","layout","style","paint"],we=" ",sr=[["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:a.bracket.cssvar.global(t)})]],ar=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}],...x("backface","backface-visibility")],lr=[[/^cursor-(.+)$/,([,t])=>({cursor:a.bracket.cssvar.global(t)})],...bi.map(t=>[`cursor-${t}`,{cursor:t}])],cr=[[/^contain-(.*)$/,([,t])=>a.bracket(t)!=null?{contain:a.bracket(t).split(" ").map(e=>a.cssvar.fraction(e)??e).join(" ")}:xi.includes(t)?{contain:t}:void 0]],ur=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}],...x("pointer-events")],fr=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}],...x("resize")],pr=[["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"}],...x("select","user-select")],hr=[[/^(?:whitespace-|ws-)([-\w]+)$/,([,t])=>["normal","nowrap","pre","pre-line","pre-wrap","break-spaces",...m].includes(t)?{"white-space":t}:void 0,{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],dr=[[/^intrinsic-size-(.+)$/,([,t])=>({"contain-intrinsic-size":a.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"}],...x("content-visibility")],mr=[[/^content-(.+)$/,([,t])=>({content:a.bracket.cssvar(t)})],["content-empty",{content:'""'}],["content-none",{content:"none"}]],gr=[["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"}]],br=[["text-wrap",{"text-wrap":"wrap"}],["text-nowrap",{"text-wrap":"nowrap"}],["text-balance",{"text-wrap":"balance"}],["text-pretty",{"text-wrap":"pretty"}]],xr=[["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"}]],yr=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}],...x("case","text-transform")],wr=[["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"}]],$r=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"}]],Sr=[["field-sizing-fixed",{"field-sizing":"fixed"}],["field-sizing-content",{"field-sizing":"content"}]];var De={"--un-ring-inset":we,"--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)"},yi=Object.keys(De),vr=[[/^ring(?:-(.+))?$/,([,t],{theme:e})=>{let r=e.ringWidth?.[t||"DEFAULT"]??a.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:yi},autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,kr,{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]??a.bracket.cssvar.px(t)}),{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,wi,{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-opacity":a.bracket.percent.cssvar(t)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,y("--un-ring-offset-color","ring-offset","borderColor"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-offset-opacity":a.bracket.percent.cssvar(t)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];function kr([,t],{theme:e}){return{"--un-ring-width":e.ringWidth?.[t]??a.bracket.cssvar.px(t)}}function wi(t,e){return R(a.bracket(t[1]))?kr(t,e):y("--un-ring-color","ring","borderColor")(t,e)}var Ke={"--un-ring-offset-shadow":"0 0 rgb(0 0 0 / 0)","--un-ring-shadow":"0 0 rgb(0 0 0 / 0)","--un-shadow-inset":we,"--un-shadow":"0 0 rgb(0 0 0 / 0)"},$i=Object.keys(Ke),Cr=[[/^shadow(?:-(.+))?$/,(t,e)=>{let[,r]=t,{theme:n}=e,o=n.boxShadow?.[r||"DEFAULT"],i=r?a.bracket.cssvar(r):void 0;return(o!=null||i!=null)&&!ge(i,n,"shadowColor")?{"--un-shadow":me(o||i,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}:y("--un-shadow-color","shadow","shadowColor")(t,e)},{custom:{preflightKeys:$i},autocomplete:["shadow-$colors","shadow-$boxShadow"]}],[/^shadow-op(?:acity)?-?(.+)$/,([,t])=>({"--un-shadow-opacity":a.bracket.percent.cssvar(t)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var Si={h:"height",w:"width",inline:"inline-size",block:"block-size"};function M(t,e){return`${t||""}${Si[e]}`}function $e(t,e,r,n){let o=M(t,e).replace(/-(\w)/g,(s,l)=>l.toUpperCase()),i=r[o]?.[n];if(i!=null)return i;switch(n){case"fit":case"max":case"min":return`${n}-content`}return a.bracket.cssvar.global.auto.fraction.rem(n)}var Er=[[/^size-(min-|max-)?(.+)$/,([,t,e],{theme:r})=>({[M(t,"w")]:$e(t,"w",r,e),[M(t,"h")]:$e(t,"h",r,e)})],[/^(?:size-)?(min-|max-)?([wh])-?(.+)$/,([,t,e,r],{theme:n})=>({[M(t,e)]:$e(t,e,n,r)})],[/^(?:size-)?(min-|max-)?(block|inline)-(.+)$/,([,t,e,r],{theme:n})=>({[M(t,e)]:$e(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)=>({[M(t,e)]:Rr(n,r,"verticalBreakpoints")})],[/^(?:size-)?(min-|max-)?(w)-screen-(.+)$/,([,t,e,r],n)=>({[M(t,e)]:Rr(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 Rr(t,e,r="breakpoints"){let n=be(t,r);if(n)return n.find(o=>o.point===e)?.size}function vi(t){if(/^\d+\/\d+$/.test(t))return t;switch(t){case"square":return"1/1";case"video":return"16/9"}return a.bracket.cssvar.global.auto.number(t)}var Tr=[[/^(?:size-)?aspect-(?:ratio-)?(.+)$/,([,t])=>({"aspect-ratio":vi(t)}),{autocomplete:["aspect-(square|video|ratio)","aspect-ratio-(square|video)"]}]];var jr=[[/^pa?()-?(.+)$/,k("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,k("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(.+))?$/,k("padding")],[/^p-?([rltbse])(?:-?(.+))?$/,k("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(.+))?$/,k("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(.+))?$/,k("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],zr=[[/^ma?()-?(.+)$/,k("margin")],[/^m-?xy()()$/,k("margin")],[/^m-?([xy])(?:-?(.+))?$/,k("margin")],[/^m-?([rltbse])(?:-?(.+))?$/,k("margin")],[/^m-(block|inline)(?:-(.+))?$/,k("margin")],[/^m-?([bi][se])(?:-?(.+))?$/,k("margin")]];var Or=[[/^fill-(.+)$/,y("fill","fill","backgroundColor"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,t])=>({"--un-fill-opacity":a.bracket.percent.cssvar(t)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,Ar,{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,t])=>({"stroke-dasharray":a.bracket.cssvar.number(t)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,t],{theme:e})=>({"stroke-dashoffset":e.lineWidth?.[t]??a.bracket.cssvar.px.numberWithUnit(t)}),{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,ki,{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-stroke-opacity":a.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 Ar([,t],{theme:e}){return{"stroke-width":e.lineWidth?.[t]??a.bracket.cssvar.fraction.px.number(t)}}function ki(t,e){return R(a.bracket(t[1]))?Ar(t,e):y("stroke","stroke","borderColor")(t,e)}var Se=["translate","rotate","scale"],Ci=["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(" "),q=["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","translateZ(var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" "),Ri=["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(" "),qe={"--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},O=Object.keys(qe),Mr=[[/^(?:transform-)?origin-(.+)$/,([,t])=>({"transform-origin":Q[t]??a.bracket.cssvar(t)}),{autocomplete:[`transform-origin-(${Object.keys(Q).join("|")})`,`origin-(${Object.keys(Q).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,t])=>{let e=a.bracket.cssvar.px.numberWithUnit(t);if(e!=null)return{"-webkit-perspective":e,perspective:e}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,t])=>{let e=a.bracket.cssvar(t)??(t.length>=3?Q[t]:void 0);if(e!=null)return{"-webkit-perspective-origin":e,"perspective-origin":e}}],[/^(?:transform-)?translate-()(.+)$/,Vr,{custom:{preflightKeys:O}}],[/^(?:transform-)?translate-([xyz])-(.+)$/,Vr,{custom:{preflightKeys:O}}],[/^(?:transform-)?rotate-()(.+)$/,Lr,{custom:{preflightKeys:O}}],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Lr,{custom:{preflightKeys:O}}],[/^(?:transform-)?skew-()(.+)$/,Fr,{custom:{preflightKeys:O}}],[/^(?:transform-)?skew-([xy])-(.+)$/,Fr,{custom:{preflightKeys:O},autocomplete:["transform-skew-(x|y)-<percent>","skew-(x|y)-<percent>"]}],[/^(?:transform-)?scale-()(.+)$/,Pr,{custom:{preflightKeys:O}}],[/^(?:transform-)?scale-([xyz])-(.+)$/,Pr,{custom:{preflightKeys:O},autocomplete:[`transform-(${Se.join("|")})-<percent>`,`transform-(${Se.join("|")})-(x|y|z)-<percent>`,`(${Se.join("|")})-<percent>`,`(${Se.join("|")})-(x|y|z)-<percent>`]}],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],["transform",{transform:q},{custom:{preflightKeys:O}}],["transform-cpu",{transform:Ci},{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:Ri},{custom:{preflightKeys:O}}],["transform-none",{transform:"none"}],...x("transform")];function Vr([,t,e],{theme:r}){let n=r.spacing?.[e]??a.bracket.cssvar.fraction.rem(e);if(n!=null)return[...xe(t,n,"translate"),["transform",q]]}function Pr([,t,e]){let r=a.bracket.cssvar.fraction.percent(e);if(r!=null)return[...xe(t,r,"scale"),["transform",q]]}function Lr([,t="",e]){let r=a.bracket.cssvar.degree(e);if(r!=null)return t?{"--un-rotate":0,[`--un-rotate-${t}`]:r,transform:q}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:q}}function Fr([,t,e]){let r=a.bracket.cssvar.degree(e);if(r!=null)return[...xe(t,r,"skew"),["transform",q]]}function Wr(t,e){let r;if(a.cssvar(t)!=null)r=a.cssvar(t);else{t.startsWith("[")&&t.endsWith("]")&&(t=t.slice(1,-1));let n=t.split(",").map(o=>e.transitionProperty?.[o]??a.properties(o));n.every(Boolean)&&(r=n.join(","))}return r}var Ir=[[/^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??a.time("150")};if(t!=null){let n=Wr(t,r),o=r.duration?.[e||"DEFAULT"]??a.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]??a.time(e)}},{autocomplete:"transition-$transitionProperty-$duration"}],[/^(?:transition-)?duration-(.+)$/,([,t],{theme:e})=>({"transition-duration":e.duration?.[t||"DEFAULT"]??a.bracket.cssvar.time(t)}),{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,t],{theme:e})=>({"transition-delay":e.duration?.[t||"DEFAULT"]??a.bracket.cssvar.time(t)}),{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,t],{theme:e})=>({"transition-timing-function":e.easing?.[t||"DEFAULT"]??a.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=a.global(t)||Wr(t,e);if(r)return{"transition-property":r}},{autocomplete:[`transition-property-(${[...m].join("|")})`,"transition-property-$transitionProperty","property-$transitionProperty"]}],["transition-none",{transition:"none"}],...x("transition"),["transition-discrete",{"transition-behavior":"allow-discrete"}],["transition-normal",{"transition-behavior":"normal"}]];var _r=[[/^text-(.+)$/,Ti,{autocomplete:"text-$fontSize"}],[/^(?:text|font)-size-(.+)$/,Kr,{autocomplete:"text-size-$fontSize"}],[/^text-(?:color-)?(.+)$/,Ei,{autocomplete:"text-$colors"}],[/^(?:color|c)-(.+)$/,y("color","text","textColor"),{autocomplete:"(color|c)-$colors"}],[/^(?:text|color|c)-(.+)$/,([,t])=>m.includes(t)?{color:t}:void 0,{autocomplete:`(text|color|c)-(${m.join("|")})`}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-opacity":a.bracket.percent.cssvar(t)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}],[/^(?:font|fw)-?([^-]+)$/,([,t],{theme:e})=>({"font-weight":e.fontWeight?.[t]||a.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":He(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":a.bracket.cssvar.global(t)})],[/^(?:font-)?tracking-(.+)$/,([,t],{theme:e})=>({"letter-spacing":e.letterSpacing?.[t]||a.bracket.cssvar.global.rem(t)}),{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,t],{theme:e})=>({"word-spacing":e.wordSpacing?.[t]||a.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":a.bracket.cssvar.fraction.global(t)}),{autocomplete:"font-stretch-<percentage>"}],[/^font-(.+)$/,([,t],{theme:e})=>({"font-family":e.fontFamily?.[t]||a.bracket.cssvar.global(t)}),{autocomplete:"font-$fontFamily"}]],Nr=[[/^tab(?:-(.+))?$/,([,t])=>{let e=a.bracket.cssvar.global.number(t||"4");if(e!=null)return{"-moz-tab-size":e,"-o-tab-size":e,"tab-size":e}}]],Br=[[/^indent(?:-(.+))?$/,([,t],{theme:e})=>({"text-indent":e.textIndent?.[t||"DEFAULT"]||a.bracket.cssvar.global.fraction.rem(t)}),{autocomplete:"indent-$textIndent"}]],Ur=[[/^text-stroke(?:-(.+))?$/,([,t],{theme:e})=>({"-webkit-text-stroke-width":e.textStrokeWidth?.[t||"DEFAULT"]||a.bracket.cssvar.px(t)}),{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,y("-webkit-text-stroke-color","text-stroke","borderColor"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-stroke-opacity":a.bracket.percent.cssvar(t)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],Dr=[[/^text-shadow(?:-(.+))?$/,([,t],{theme:e})=>{let r=e.textShadow?.[t||"DEFAULT"];return r!=null?{"--un-text-shadow":me(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":a.bracket.cssvar.global(t)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,y("--un-text-shadow-color","text-shadow","shadowColor"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-shadow-opacity":a.bracket.percent.cssvar(t)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];function He(t,e,r){return e[r]?.[t]||a.bracket.cssvar.global.rem(t)}function Kr([,t],{theme:e}){let n=$(e.fontSize?.[t])?.[0]??a.bracket.cssvar.global.rem(t);if(n!=null)return{"font-size":n}}function Ei(t,e){return R(a.bracket(t[1]))?Kr(t,e):y("color","text","textColor")(t,e)}function Ti([,t="base"],{theme:e}){let r=Me(t,"length");if(!r)return;let[n,o]=r,i=$(e.fontSize?.[n]),s=o?He(o,e,"lineHeight"):void 0;if(i?.[0]){let[c,u,f]=i;return typeof u=="object"?{"font-size":c,...u}:{"font-size":c,"line-height":s??u??"1","letter-spacing":f?He(f,e,"letterSpacing"):void 0}}let l=a.bracketOfLength.rem(n);return s&&l?{"font-size":l,"line-height":s}:{"font-size":a.bracketOfLength.rem(t)}}var ji={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"},qr=[[/^(.+?)-(\$.+)$/,([,t,e])=>{let r=ji[t];if(r)return{[r]:a.cssvar(e)}}]],Hr=[[/^\[(.*)\]$/,([t,e])=>{if(!e.includes(":"))return;let[r,...n]=e.split(":"),o=n.join(":");if(!Oi(e)&&/^[a-z-_]+$/i.test(r)&&zi(o)){let i=a.bracket(`[${o}]`);if(i)return{[r]:i}}}]];function zi(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 Oi(t){if(!t.includes("://"))return!1;try{return new URL(t).host!==""}catch{return!1}}var Gr=[qr,Hr,cr,ur,ar,Jt,tr,nr,Qt,Xt,rr,zr,or,sr,Tr,Er,Gt,Mr,lr,pr,fr,Mt,Ue,Be,Ne,Yt,er,Zt,xr,hr,gr,_t,Bt,Ut,Or,jr,jt,Br,br,Tt,_r,yr,wr,qt,$r,Nr,Ur,Dr,Nt,Cr,Lt,vr,Ir,Wt,dr,mr,Dt,Sr,ir].flat(1);var Yr={position:["relative","absolute","fixed","sticky","static"],globalKeyword:m};var Ge={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(Ge).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 Xr={DEFAULT:"8px",0:"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Zr={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 Jr={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(",")},Qr={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"]},en={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},tn={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},rn={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)"]},nn={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},Ye={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},on={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},sn=Ye;var Xe={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},an={...Xe},ln={DEFAULT:"1px",none:"0"},cn={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"},un={DEFAULT:"150ms",none:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},fn={DEFAULT:"0.25rem",none:"0",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},pn={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)"},hn={DEFAULT:"3px",none:"0"},dn={auto:"auto"},mn={mouse:"(hover) and (pointer: fine)"};var gn={...qe,...Ke,...De};var A={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},bn={auto:"auto",...A,screen:"100vw"},Ze={none:"none",...A,screen:"100vw"},xn={auto:"auto",...A,screen:"100vb"},yn={auto:"auto",...A,screen:"100vi"},wn={auto:"auto",...A,screen:"100vh"},Je={none:"none",...A,screen:"100vh"},Qe={none:"none",...A,screen:"100vb"},et={none:"none",...A,screen:"100vi"},$n={...A};var Sn={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)"},vn={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 kn={width:bn,height:wn,maxWidth:Ze,maxHeight:Je,minWidth:Ze,minHeight:Je,inlineSize:yn,blockSize:xn,maxInlineSize:et,maxBlockSize:Qe,minInlineSize:et,minBlockSize:Qe,colors:Ge,fontFamily:Jr,fontSize:Qr,fontWeight:on,breakpoints:Xe,verticalBreakpoints:an,borderRadius:fn,lineHeight:nn,letterSpacing:Ye,wordSpacing:sn,boxShadow:pn,textIndent:en,textShadow:rn,textStrokeWidth:tn,blur:Xr,dropShadow:Zr,easing:Sn,transitionProperty:vn,lineWidth:ln,spacing:cn,duration:un,ringWidth:hn,preflightBase:gn,containers:$n,zIndex:dn,media:mn};var Cn={name:"aria",match(t,e){let r=w("aria-",t,e.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n)??e.theme.aria?.[n]??"";if(i)return{matcher:o,selector:s=>`${s}[aria-${i}]`}}},multiPass:!0};function ve(t){return{name:`${t}-aria`,match(e,r){let n=w(`${t}-aria-`,e,r.generator.config.separators);if(n){let[o,i]=n,s=a.bracket(o)??r.theme.aria?.[o]??"";if(s)return{matcher:`${t}-[[aria-${s}]]:${i}`}}}}}var Rn=[ve("group"),ve("peer"),ve("parent"),ve("previous")];function En(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 Tn=/(max|min)-\[([^\]]*)\]:/;function jn(){let t={};return{name:"breakpoints",match(e,r){if(Tn.test(e)){let o=e.match(Tn);return{matcher:e.replace(o[0],""),handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}@media (${o[1]}-width: ${o[2]})`})}}let n=(be(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 l=e.match(t[o]);if(!l)continue;let[,c]=l,u=e.slice(c.length);if(u==="container")continue;let f=c.startsWith("lt-")||c.startsWith("<")||c.startsWith("max-"),d=c.startsWith("at-")||c.startsWith("~"),h=3e3;return f?(h-=s+1,{matcher:u,handle:(p,g)=>g({...p,parent:`${p.parent?`${p.parent} $$ `:""}@media (max-width: ${En(i)})`,parentOrder:h})}):(h+=s+1,d&&s<n.length-1?{matcher:u,handle:(p,g)=>g({...p,parent:`${p.parent?`${p.parent} $$ `:""}@media (min-width: ${i}) and (max-width: ${En(n[s+1][1])})`,parentOrder:h})}:{matcher:u,handle:(p,g)=>g({...p,parent:`${p.parent?`${p.parent} $$ `:""}@media (min-width: ${i})`,parentOrder:h})})}},multiPass:!0,autocomplete:"(at-|lt-|max-|)$breakpoints:"}}var zn=[L("*",t=>({selector:`${t.selector} > *`}))];function ae(t,e){return{name:`combinator:${t}`,match(r,n){if(!r.startsWith(t))return;let o=n.generator.config.separators,i=F(`${t}-`,r,o);if(!i){for(let l of o)if(r.startsWith(`${t}${l}`)){i=["",r.slice(t.length+l.length)];break}if(!i)return}let s=a.bracket(i[0])??"";return s===""&&(s="*"),{matcher:i[1],selector:l=>`${l}${e}${s}`}},multiPass:!0}}var On=[ae("all"," "),ae("children",">"),ae("next","+"),ae("sibling","+"),ae("siblings","~")];var An={name:"@",match(t,e){if(t.startsWith("@container"))return;let r=w("@",t,e.generator.config.separators);if(r){let[n,o,i]=r,s=a.bracket(n),l;if(s?l=a.numberWithUnit(s):l=e.theme.containers?.[n]??"",l){let c=1e3+Object.keys(e.theme.containers??{}).indexOf(n);return i&&(c+=1e3),{matcher:o,handle:(u,f)=>f({...u,parent:`${u.parent?`${u.parent} $$ `:""}@container${i?` ${i} `:" "}(min-width: ${l})`,parentOrder:c})}}}},multiPass:!0};function Vn(t={}){if(t?.dark==="class"||typeof t.dark=="object"){let{dark:e=".dark",light:r=".light"}=typeof t.dark=="string"?{}:t.dark;return[L("dark",$(e).map(n=>o=>({prefix:`${n} $$ ${o.prefix}`}))),L("light",$(r).map(n=>o=>({prefix:`${n} $$ ${o.prefix}`})))]}return[J("dark","@media (prefers-color-scheme: dark)"),J("light","@media (prefers-color-scheme: light)")]}var Pn={name:"data",match(t,e){let r=w("data-",t,e.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n)??e.theme.data?.[n]??"";if(i)return{matcher:o,selector:s=>`${s}[data-${i}]`}}},multiPass:!0};function ke(t){return{name:`${t}-data`,match(e,r){let n=w(`${t}-data-`,e,r.generator.config.separators);if(n){let[o,i,s]=n,l=a.bracket(o)??r.theme.data?.[o]??"";if(l)return{matcher:`${t}-[[data-${l}]]${s?`/${s}`:""}:${i}`}}}}}var Ln=[ke("group"),ke("peer"),ke("parent"),ke("previous")];var Fn=[L("rtl",t=>({prefix:`[dir="rtl"] $$ ${t.prefix}`})),L("ltr",t=>({prefix:`[dir="ltr"] $$ ${t.prefix}`}))];function Mn(){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 Wn=J("print","@media print"),In={name:"media",match(t,e){let r=w("media-",t,e.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n)??"";if(i===""&&(i=e.theme.media?.[n]??""),i)return{matcher:o,handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}@media ${i}`})}}},multiPass:!0};var _n={name:"selector",match(t,e){let r=F("selector-",t,e.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n);if(i)return{matcher:o,selector:()=>i}}}},Nn={name:"layer",match(t,e){let r=w("layer-",t,e.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n)??n;if(i)return{matcher:o,handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}@layer ${i}`})}}}},Bn={name:"uno-layer",match(t,e){let r=w("uno-layer-",t,e.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n)??n;if(i)return{matcher:o,layer:i}}}},Un={name:"scope",match(t,e){let r=F("scope-",t,e.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n);if(i)return{matcher:o,selector:s=>`${i} $$ ${s}`}}}},Dn={name:"variables",match(t,e){if(!t.startsWith("["))return;let[r,n]=N(t,"[","]")??[];if(!(r&&n))return;let o;for(let l of e.generator.config.separators)if(n.startsWith(l)){o=n.slice(l.length);break}if(o==null)return;let i=a.bracket(r)??"",s=i.startsWith("@");if(s||i.includes("&"))return{matcher:o,handle(l,c){let u=s?{parent:`${l.parent?`${l.parent} $$ `:""}${i}`}:{selector:i.replace(/&/g,l.selector)};return c({...l,...u})}}},multiPass:!0},Kn={name:"theme-variables",match(t,e){if(wt(t))return{matcher:t,handle(r,n){return n({...r,entries:JSON.parse($t(JSON.stringify(r.entries),e.theme))})}}}};var qn=/^-?[0-9.]+(?:[a-z]+|%)?$/,Hn=/-?[0-9.]+(?:[a-z]+|%)?/,Ai=[/\b(opacity|color|flex|backdrop-filter|^filter|transform)\b/];function Vi(t){let e=t.match(ee)||t.match(fe);if(e){let[r,n]=B(`(${e[2]})${e[3]}`,"(",")"," ")??[];if(r)return`calc(${e[1]}${r} * -1)${n?` ${n}`:""}`}}var Pi=/\b(hue-rotate)\s*(\(.*)/;function Li(t){let e=t.match(Pi);if(e){let[r,n]=B(e[2],"(",")"," ")??[];if(r){let o=qn.test(r.slice(1,-1))?r.replace(Hn,i=>i.startsWith("-")?i.slice(1):`-${i}`):`(calc(${r} * -1))`;return`${e[1]}${o}${n?` ${n}`:""}`}}}var Gn={name:"negative",match(t){if(t.startsWith("-"))return{matcher:t.slice(1),body:e=>{if(e.find(n=>n[0]===Vt))return;let r=!1;return e.forEach(n=>{let o=n[1]?.toString();if(!o||o==="0"||Ai.some(l=>l.test(n[0])))return;let i=Vi(o);if(i){n[1]=i,r=!0;return}let s=Li(o);if(s){n[1]=s,r=!0;return}qn.test(o)&&(n[1]=o.replace(Hn,l=>l.startsWith("-")?l.slice(1):`-${l}`),r=!0)}),r?e:[]}}}};var Jn="__pseudo_placeholder__",H=Object.fromEntries([["first-letter","::first-letter"],["first-line","::first-line"],"any-link","link","visited","target",["open","[open]"],"default","checked","indeterminate","placeholder-shown","autofill","optional","required","valid","invalid","user-valid","user-invalid","in-range","out-of-range","read-only","read-write","empty","focus-within","hover","focus","focus-visible","active","enabled","disabled","popover-open","root","empty",["even-of-type",":nth-of-type(even)"],["even",":nth-child(even)"],["odd-of-type",":nth-of-type(odd)"],["odd",":nth-child(odd)"],["nth",`:nth-child(${Jn})`],"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}`])),Qn=Object.keys(H),G=Object.fromEntries([["backdrop","::backdrop"]].map(t=>Array.isArray(t)?t:[t,`:${t}`])),eo=Object.keys(G),Fi=["not","is","where","has"],to=Object.fromEntries([["selection",["::selection"," *::selection"]],["marker",["::marker"," *::marker"]]]),tt=Object.entries(H).filter(([,t])=>!t.startsWith("::")).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|"),rt=Object.entries(G).filter(([,t])=>!t.startsWith("::")).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|"),W=Fi.join("|"),Yn=Object.keys(to).sort((t,e)=>e.length-t.length).join("|");function Mi(t,e,r){let n=new RegExp(`^(${V(e)}:)(\\S+)${V(r)}\\1`),o,i,s,l,c=d=>{let h=F(`${t}-`,d,[]);if(!h)return;let[p,g]=h,b=a.bracket(p);if(b==null)return;let E=g.split(o,1)?.[0]??"",T=`${e}${_(E)}`;return[E,d.slice(d.length-(g.length-E.length-1)),b.includes("&")?b.replace(/&/g,T):`${T}${b}`]},u=d=>{let h=d.match(i)||d.match(s);if(!h)return;let[p,g,b]=h,E=h[3]??"",T=H[b]||G[b]||`:${b}`;return g&&(T=`:${g}(${T})`),[E,d.slice(p.length),`${e}${_(E)}${T}`,b]},f=d=>{let h=d.match(l);if(!h)return;let[p,g,b]=h,E=h[3]??"",T=`:${g}(${b})`;return[E,d.slice(p.length),`${e}${_(E)}${T}`]};return{name:`pseudo:${t}`,match(d,h){if(o&&i&&s||(o=new RegExp(`(?:${h.generator.config.separators.join("|")})`),i=new RegExp(`^${t}-(?:(?:(${W})-)?(${tt}))(?:(/[\\w-]+))?(?:${h.generator.config.separators.join("|")})`),s=new RegExp(`^${t}-(?:(?:(${W})-)?(${rt}))(?:(/[\\w-]+))?(?:${h.generator.config.separators.filter(I=>I!=="-").join("|")})`),l=new RegExp(`^${t}-(?:(${W})-)?\\[(.+)\\](?:(/[\\w-]+))?(?:${h.generator.config.separators.filter(I=>I!=="-").join("|")})`)),!d.startsWith(t))return;let p=c(d)||u(d)||f(d);if(!p)return;let[g,b,E,T=""]=p;return{matcher:b,handle:(I,uo)=>uo({...I,prefix:`${E}${r}${I.prefix}`.replace(n,"$1$2:"),sort:Qn.indexOf(T)??eo.indexOf(T)})}},multiPass:!0}}var Wi=["::-webkit-resizer","::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-corner","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::file-selector-button"],Xn=Object.entries(H).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|"),Zn=Object.entries(G).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|");function ro(){let t,e,r;return[{name:"pseudo",match(n,o){t&&e||(t=new RegExp(`^(${Xn})(?:-(\\[\\w+\\]))?(?:${o.generator.config.separators.join("|")})`),e=new RegExp(`^(${Zn})(?:${o.generator.config.separators.filter(s=>s!=="-").join("|")})`));let i=n.match(t)||n.match(e);if(i){let s=H[i[1]]||G[i[1]]||`:${i[1]}`;if(i[2]){let c=a.bracket(i[2]);c&&(s=s.replace(Jn,c))}let l=Qn.indexOf(i[1]);return l===-1&&(l=eo.indexOf(i[1])),l===-1&&(l=void 0),{matcher:n.slice(i[0].length),handle:(c,u)=>{let f=s.includes("::")&&!Wi.includes(s)?{pseudo:`${c.pseudo}${s}`}:{selector:`${c.selector}${s}`};return u({...c,...f,sort:l,noMerge:!0})}}}},multiPass:!0,autocomplete:`(${Xn}|${Zn}):`},{name:"pseudo:multi",match(n,o){r||(r=new RegExp(`^(${Yn})(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return to[i[1]].map(l=>({matcher:n.slice(i[0].length),handle:(c,u)=>u({...c,pseudo:`${c.pseudo}${l}`})}))},multiPass:!1,autocomplete:`(${Yn}):`}]}function no(){let t,e,r;return{match(n,o){t&&e||(t=new RegExp(`^(${W})-(${tt})(?:${o.generator.config.separators.join("|")})`),e=new RegExp(`^(${W})-(${rt})(?:${o.generator.config.separators.filter(s=>s!=="-").join("|")})`),r=new RegExp(`^(${W})-(\\[.+\\])(?:${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],c=N(i[2],"[","]")?a.bracket(i[2]):H[i[2]]||G[i[2]]||`:${i[2]}`;return{matcher:n.slice(i[0].length),selector:u=>`${u}:${s}(${c})`}}},multiPass:!0,autocomplete:`(${W})-(${tt}|${rt}):`}}function oo(t={}){let e=!!t?.attributifyPseudo,r=t?.prefix??"";r=(Array.isArray(r)?r:[r]).filter(Boolean)[0]??"";let n=(o,i)=>Mi(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 Ii=/(part-\[(.+)\]:)(.+)/,io={match(t){let e=t.match(Ii);if(e){let r=`part(${e[2]})`;return{matcher:t.slice(e[1].length),selector:n=>`${n}::${r}`}}},multiPass:!0};var so={name:"starting",match(t){if(t.startsWith("starting:"))return{matcher:t.slice(9),handle:(e,r)=>r({...e,parent:"@starting-style"})}}};var ao={name:"supports",match(t,e){let r=w("supports-",t,e.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n)??"";if(i===""&&(i=e.theme.supports?.[n]??""),i)return{matcher:o,handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}@supports ${i}`})}}},multiPass:!0};function lo(t){return[Cn,Pn,Nn,_n,Bn,Gn,so,Mn(),ao,Wn,In,jn(),...On,...ro(),no(),...oo(t),io,...Vn(t),...Fn,Un,...zn,An,Dn,...Ln,...Rn,Kn]}var _i=(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:kn,rules:Gr,variants:lo(t),options:t,prefix:t.prefix,postprocess:Ni(t.variablePrefix),preflights:ut(t),extractorDefault:t.arbitraryVariants===!1?void 0:ct(),autocomplete:{shorthands:Yr}}),co=_i;function Ni(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}`))})}}window.__unocss_runtime=window.__unocss_runtime??{};window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},{presetMini:t=>co(t)});})();
|
|
10
|
+
`?i=!0:f!=="\r"&&i&&(i=!1,l===c.start||(this._splitChunk(c,l),c=c.next),c.prependRight(e))}l+=1}l=c.end,c=c.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 D.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),D.insertLeft=!0),this.appendLeft(e,r)}insertRight(e,r){return D.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),D.insertRight=!0),this.prependRight(e,r)}move(e,r,n){if(e=e+this.offset,r=r+this.offset,n=n+this.offset,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,l=i.next,c=this.byStart[n];if(!c&&i===this.lastChunk)return this;let u=c?c.previous:this.lastChunk;return s&&(s.next=l),l&&(l.previous=s),u&&(u.next=o),c&&(c.previous=i),o.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=o.previous,this.lastChunk.next=null),o.previous=u,i.next=c||null,u||(this.firstChunk=o),c||(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(e=e+this.offset,r=r+this.offset,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&&(D.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),D.storeName=!0),o={storeName:!0});let i=o!==void 0?o.storeName:!1,s=o!==void 0?o.overwrite:!1;if(i){let u=this.original.slice(e,r);Object.defineProperty(this.storedNames,u,{writable:!0,value:!0,enumerable:!0})}let l=this.byStart[e],c=this.byEnd[r];if(l){let u=l;for(;u!==c;){if(u.next!==this.byStart[u.end])throw new Error("Cannot overwrite across a split point");u=u.next,u.edit("",!1)}l.edit(n,i,!s)}else{let u=new ce(e,r,"").edit(n,i);c.next=u,u.previous=c}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(e=e+this.offset,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(e=e+this.offset,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(e=e+this.offset,r=r+this.offset,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(e=e+this.offset,r=r+this.offset,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(Z);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(Z),e!==-1)return n.outro.substr(e+1)+r;r=n.outro+r}if(n.content.length>0){if(e=n.content.lastIndexOf(Z),e!==-1)return n.content.substr(e+1)+r;r=n.content+r}if(n.intro.length>0){if(e=n.intro.lastIndexOf(Z),e!==-1)return n.intro.substr(e+1)+r;r=n.intro+r}}while(n=n.previous);return e=this.intro.lastIndexOf(Z),e!==-1?this.intro.substr(e+1)+r:this.intro+r}slice(e=0,r=this.original.length-this.offset){if(e=e+this.offset,r=r+this.offset,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 l=i===o?e-o.start:0,c=s?o.content.length+r-o.end:o.content.length;if(n+=o.content.slice(l,c),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=yt(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,(l,c)=>c==="$"?"$":c==="&"?i[0]:+c<i.length?i[+c]:`$${c}`):r(...i,i.index,s,i.groups)}function o(i,s){let l,c=[];for(;l=i.exec(s);)c.push(l);return c}if(e.global)o(e,this.original).forEach(s=>{if(s.index!=null){let l=n(s,this.original);l!==s[0]&&this.overwrite(s.index,s.index+s[0].length,l)}});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 Io=/theme\(\s*(['"])?(.*?)\1?\s*\)/g;function wt(t){return t.includes("theme(")&&t.includes(")")}function $t(t,e,r=!0){let n=Array.from(t.toString().matchAll(Io));if(!n.length)return t;let o=new ue(t);for(let i of n){let s=i[2];if(!s)throw new Error("theme() expect exact one argument, but got 0");let l=_o(s,e,r);l&&o.overwrite(i.index,i.index+i[0].length,l)}return o.toString()}function _o(t,e,r=!0){let[n,o]=t.split("/"),s=n.trim().split(".").reduce((l,c)=>l?.[c],e);if(typeof s=="object"&&(s=s.DEFAULT),typeof s=="string"){if(o){let l=P(s);l&&(s=S(l,o))}return s}else if(r)throw new Error(`theme of "${t}" did not found`)}function ze(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)`}function St(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}function L(t,e){let r;return{name:t,match(n,o){r||(r=new RegExp(`^${V(t)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i){let s=n.slice(i[0].length),l=$(e).map(c=>({matcher:s,handle:(u,f)=>f({...u,...c(u)})}));return l.length===1?l[0]:l}},autocomplete:`${t}:`}}function J(t,e){let r;return{name:t,match(n,o){r||(r=new RegExp(`^${V(t)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}${e}`})}},autocomplete:`${t}:`}}function F(t,e,r){if(e.startsWith(`${t}[`)){let[n,o]=N(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 w(t,e,r){for(let n of $(t))if(e.startsWith(n)){let o=F(n,e,r);if(o){let[i="",s=o[1]]=w("/",o[1],r)??[];return[o[0],s,i]}for(let i of r.filter(s=>s!=="/")){let s=e.indexOf(i,n.length);if(s!==-1){let l=e.indexOf("/",n.length),c=l===-1||s<=l;return[e.slice(n.length,c?s:l),e.slice(s+i.length),c?"":e.slice(l+1,s)]}}}}var Fe={};po(Fe,{auto:()=>Uo,bracket:()=>Yo,bracketOfColor:()=>Xo,bracketOfLength:()=>Zo,bracketOfPosition:()=>Jo,cssvar:()=>Qo,degree:()=>ti,fraction:()=>Go,global:()=>ri,number:()=>qo,numberWithUnit:()=>Bo,percent:()=>Ho,position:()=>oi,properties:()=>ni,px:()=>Ko,rem:()=>Do,time:()=>ei});var v={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"]},Oe={...v,s:["-inset-inline-start"],start:["-inset-inline-start"],e:["-inset-inline-end"],end:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]},Ae={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],s:["-end-start","-start-start"],is:["-end-start","-start-start"],e:["-start-end","-end-end"],ie:["-start-end","-end-end"],ss:["-start-start"],"bs-is":["-start-start"],"is-bs":["-start-start"],se:["-start-end"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],es:["-end-start"],"be-is":["-end-start"],"is-be":["-end-start"],ee:["-end-end"],"be-ie":["-end-end"],"ie-be":["-end-end"]},kt={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Ct=["x","y","z"],vt=["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"],Q=Object.assign({},...vt.map(t=>({[t.replace(/ /,"-")]:t})),...vt.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t}))),m=["inherit","initial","revert","revert-layer","unset"],ee=/^(calc|clamp|min|max)\s*\((.+)\)(.*)/,fe=/^(var)\s*\((.+)\)(.*)/;var K=/^(-?\d*(?:\.\d+)?)(px|pt|pc|%|r?(?:em|ex|lh|cap|ch|ic)|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i,Ve=/^(-?\d*(?:\.\d+)?)$/,Pe=/^(px|[sld]?v[wh])$/i,Le={px:1,vw:100,vh:100,svw:100,svh:100,dvw:100,dvh:100,lvh:100,lvw:100},pe=/^\[(color|image|length|size|position|quoted|string):/i,Rt=/,(?![^()]*\))/g;var No=["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 C(t){return+t.toFixed(10)}function Bo(t){let e=t.match(K);if(!e)return;let[,r,n]=e,o=Number.parseFloat(r);if(n&&!Number.isNaN(o))return`${C(o)}${n}`}function Uo(t){if(t==="auto"||t==="a")return"auto"}function Do(t){if(!t)return;if(Pe.test(t))return`${Le[t]}${t}`;let e=t.match(K);if(!e)return;let[,r,n]=e,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0?"0":n?`${C(o)}${n}`:`${C(o/4)}rem`}function Ko(t){if(Pe.test(t))return`${Le[t]}${t}`;let e=t.match(K);if(!e)return;let[,r,n]=e,o=Number.parseFloat(r);if(!Number.isNaN(o))return n?`${C(o)}${n}`:`${C(o)}px`}function qo(t){if(!Ve.test(t))return;let e=Number.parseFloat(t);if(!Number.isNaN(e))return C(e)}function Ho(t){if(t.endsWith("%")&&(t=t.slice(0,-1)),!Ve.test(t))return;let e=Number.parseFloat(t);if(!Number.isNaN(e))return`${C(e/100)}`}function Go(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":`${C(n*100)}%`}function he(t,e){if(t&&t.startsWith("[")&&t.endsWith("]")){let r,n,o=t.match(pe);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 l=[];return s.replace(/var\((--.+?)[,)]/g,(c,u)=>(l.push(u),c.replace(u,"--un-calc"))).replace(/(-?\d*\.?\d(?!-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ").replace(/--un-calc/g,()=>l.shift())})}}function Yo(t){return he(t)}function Xo(t){return he(t,"color")}function Zo(t){return he(t,"length")}function Jo(t){return he(t,"position")}function Qo(t){if(/^\$[^\s'"`;{}]/.test(t)){let[e,r]=t.slice(1).split(",");return`var(--${_(e)}${r?`, ${r}`:""})`}}function ei(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?`${C(o)}${n}`:`${C(o)}ms`}function ti(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?`${C(o)}${n}`:`${C(o)}deg`}function ri(t){if(m.includes(t))return t}function ni(t){if(t.split(",").every(e=>No.includes(e)))return t}function oi(t){if(["top","left","right","bottom","center"].includes(t))return t}var ii=St(Fe),a=ii;var Et={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(m.map(t=>[t,t]))},jt=[[/^(?:vertical|align|v)-(.+)$/,([,t])=>({"vertical-align":Et[t]??a.bracket.cssvar.numberWithUnit(t)}),{autocomplete:[`(vertical|align|v)-(${Object.keys(Et).join("|")})`,"(vertical|align|v)-<percentage>"]}]],Tt=["center","left","right","justify","start","end"],zt=[...Tt.map(t=>[`text-${t}`,{"text-align":t}]),...[...m,...Tt].map(t=>[`text-align-${t}`,{"text-align":t}])];var Pt="$$mini-no-negative";function k(t){return([e,r,n],{theme:o})=>{let i=o.spacing?.[n||"DEFAULT"]??a.bracket.cssvar.global.auto.fraction.rem(n);if(i!=null)return v[r].map(s=>[`${t}${s}`,i]);if(n?.startsWith("-")){let s=o.spacing?.[n.slice(1)];if(s!=null)return v[r].map(l=>[`${t}${l}`,`calc(${s} * -1)`])}}}function Ot(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,l=>l.slice(1).toUpperCase());if(n[s])return n[s];if(n[i]){n=n[i];continue}}return}return n}function At(t,e,r){return Ot(t,e,r)||Ot(t,e,"colors")}function We(t,e){let[r,n]=B(t,"[","]",["/",":"])??[];if(r!=null){let o=(r.match(pe)??[])[1];if(o==null||o===e)return[r,n]}}function de(t,e,r){let n=We(t,"color");if(!n)return;let[o,i]=n,s=o.replace(/([a-z])(\d)/g,"$1-$2").split(/-/g),[l]=s;if(!l)return;let c,u=a.bracketOfColor(o),f=u||o;if(a.numberWithUnit(f))return;if(/^#[\da-f]+$/i.test(f)?c=f:/^hex-[\da-fA-F]+$/.test(f)?c=`#${f.slice(4)}`:o.startsWith("$")&&(c=a.cssvar(o)),c=c||u,!c){let h=At(e,[o],r);typeof h=="string"&&(c=h)}let d="DEFAULT";if(!c){let h=s,p,[g]=s.slice(-1);/^\d+$/.test(g)&&(d=p=g,h=s.slice(0,-1));let b=At(e,h,r);typeof b=="object"?c=b[p??d]:typeof b=="string"&&!p&&(c=b)}return{opacity:i,name:l,no:d,color:c,cssColor:P(c),alpha:a.bracket.cssvar.percent(i??"")}}function y(t,e,r,n){return([,o],{theme:i,generator:s})=>{let l=de(o??"",i,r);if(!l)return;let{alpha:c,color:u,cssColor:f}=l,h=s.config.envMode==="dev"&&u?` /* ${u} */`:"",p={};if(f)if(c!=null)p[t]=S(f,c)+h;else{let g=`--un-${e}-opacity`,b=S(f,`var(${g})`);b.includes(g)&&(p[g]=Y(f)),p[t]=b+h}else if(u)if(c!=null)p[t]=S(u,c)+h;else{let g=`--un-${e}-opacity`,b=S(u,`var(${g})`);b.includes(g)&&(p[g]=1),p[t]=b+h}if(n?.(p)!==!1)return p}}function me(t,e){let r=[];t=$(t);for(let n=0;n<t.length;n++){let o=U(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 l="",c=o.at(-1);if(P(o.at(0))){let u=P(o.shift());u&&(l=`, ${S(u)}`)}else if(P(c)){let u=P(o.pop());u&&(l=`, ${S(u)}`)}else c&&fe.test(c)&&(l=`, ${o.pop()}`);r.push(`${i?"inset ":""}${o.join(" ")} var(${e}${l})`)}return r}function ge(t,e,r){return t!=null&&!!de(t,e,r)?.color}var Vt=/[a-z]+/gi,Me=new WeakMap;function be({theme:t,generator:e},r="breakpoints"){let n=e?.userConfig?.theme?.[r]||t[r];if(!n)return;if(Me.has(t))return Me.get(t);let o=Object.entries(n).sort((i,s)=>Number.parseInt(i[1].replace(Vt,""))-Number.parseInt(s[1].replace(Vt,""))).map(([i,s])=>({point:i,size:s}));return Me.set(t,o),o}function x(t,e){return m.map(r=>[`${t}-${r}`,{[e??t]:r}])}function R(t){return t!=null&&ee.test(t)}function Lt(t){return t[0]==="["&&t.slice(-1)==="]"&&(t=t.slice(1,-1)),ee.test(t)||K.test(t)}function xe(t,e,r){let n=e.split(Rt);return t||!t&&n.length===1?kt[t].map(o=>[`--un-${r}${o}`,e]):n.map((o,i)=>[`--un-${r}-${Ct[i]}`,o])}var Ft=[[/^outline-(?:width-|size-)?(.+)$/,Mt,{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,si,{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,t],{theme:e})=>({"outline-offset":e.lineWidth?.[t]??a.bracket.cssvar.global.px(t)}),{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset",...m].map(t=>[`outline-${t}`,{"outline-style":t}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]];function Mt([,t],{theme:e}){return{"outline-width":e.lineWidth?.[t]??a.bracket.cssvar.global.px(t)}}function si(t,e){return R(a.bracket(t[1]))?Mt(t,e):y("outline-color","outline-color","borderColor")(t,e)}var Wt=[["appearance-auto",{"-webkit-appearance":"auto",appearance:"auto"}],["appearance-none",{"-webkit-appearance":"none",appearance:"none"}]];function ai(t){return a.properties.auto.global(t)??{contents:"contents",scroll:"scroll-position"}[t]}var It=[[/^will-change-(.+)/,([,t])=>({"will-change":ai(t)})]];var ie=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...m],Nt=[[/^(?:border|b)()(?:-(.+))?$/,j,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,j],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,j],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,j],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,j],[/^(?:border|b)-()(?:width|size)-(.+)$/,j,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,j],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,j],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,j],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,j],[/^(?:border|b)-()(?:color-)?(.+)$/,te,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,te],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,te],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,te],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,te],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,re,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,re],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,re],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,re],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,re],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,ne,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-$borderRadius","(rounded|rd)","(rounded|rd)-$borderRadius"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltbse])(?:-(.+))?$/,ne],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,ne],[/^(?:border-|b-)?(?:rounded|rd)-([bise][se])(?:-(.+))?$/,ne],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,ne],[/^(?:border|b)-(?:style-)?()(.+)$/,oe,{autocomplete:["(border|b)-style",`(border|b)-(${ie.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${ie.join("|")})`,`(border|b)-<directions>-style-(${ie.join("|")})`,`(border|b)-style-(${ie.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,oe],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,oe],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,oe],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,oe]];function _t(t,e,r){if(e!=null)return{[`border${r}-color`]:S(t,e)};if(r===""){let n={},o="--un-border-opacity",i=S(t,`var(${o})`);return i.includes(o)&&(n[o]=typeof t=="string"?1:Y(t)),n["border-color"]=i,n}else{let n={},o="--un-border-opacity",i=`--un-border${r}-opacity`,s=S(t,`var(${i})`);return s.includes(i)&&(n[o]=typeof t=="string"?1:Y(t),n[i]=`var(${o})`),n[`border${r}-color`]=s,n}}function li(t){return([,e],r)=>{let n=de(e,r,"borderColor");if(!n)return;let{alpha:o,color:i,cssColor:s}=n;if(s)return _t(s,o,t);if(i)return _t(i,o,t)}}function j([,t="",e],{theme:r}){let n=r.lineWidth?.[e||"DEFAULT"]??a.bracket.cssvar.global.px(e||"1");if(t in v&&n!=null)return v[t].map(o=>[`border${o}-width`,n])}function te([,t="",e],r){if(t in v){if(R(a.bracket(e)))return j(["",t,e],r);if(ge(e,r.theme,"borderColor"))return Object.assign({},...v[t].map(n=>li(n)(["",e],r.theme)))}}function re([,t="",e]){let r=a.bracket.percent.cssvar(e);if(t in v&&r!=null)return v[t].map(n=>[`--un-border${n}-opacity`,r])}function ne([,t="",e],{theme:r}){let n=r.borderRadius?.[e||"DEFAULT"]||a.bracket.cssvar.global.fraction.rem(e||"1");if(t in Ae&&n!=null)return Ae[t].map(o=>[`border${o}-radius`,n])}function oe([,t="",e]){if(ie.includes(e)&&t in v)return v[t].map(r=>[`border${r}-style`,e])}var Bt=[[/^op(?:acity)?-?(.+)$/,([,t])=>({opacity:a.bracket.percent.cssvar(t)})]],ci=/^\[url\(.+\)\]$/,ui=/^\[(?:length|size):.+\]$/,fi=/^\[position:.+\]$/,pi=/^\[(?:linear|conic|radial)-gradient\(.+\)\]$/,hi=/^\[image:.+\]$/,Ut=[[/^bg-(.+)$/,(...t)=>{let e=t[0][1];if(ci.test(e))return{"--un-url":a.bracket(e),"background-image":"var(--un-url)"};if(ui.test(e)&&a.bracketOfLength(e)!=null)return{"background-size":a.bracketOfLength(e).split(" ").map(r=>a.fraction.auto.px.cssvar(r)??r).join(" ")};if((Lt(e)||fi.test(e))&&a.bracketOfPosition(e)!=null)return{"background-position":a.bracketOfPosition(e).split(" ").map(r=>a.position.fraction.auto.px.cssvar(r)??r).join(" ")};if(pi.test(e)||hi.test(e)){let r=a.bracket(e);if(r)return{"background-image":(r.startsWith("http")?`url(${r})`:a.cssvar(r))??r}}return y("background-color","bg","backgroundColor")(...t)},{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,t])=>({"--un-bg-opacity":a.bracket.percent.cssvar(t)}),{autocomplete:"bg-(op|opacity)-<percent>"}]],Dt=[[/^color-scheme-(\w+)$/,([,t])=>({"color-scheme":t})]];var Kt=[[/^@container(?:\/(\w+))?(?:-(normal|inline-size|size))?$/,([,t,e])=>({"container-type":e??"inline-size","container-name":t})]];var qt=["solid","double","dotted","dashed","wavy",...m],Ht=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,t])=>({"text-decoration-line":t}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,Gt,{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,t])=>({"text-decoration-thickness":t}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,di,{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-line-opacity":a.bracket.percent.cssvar(t)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,t],{theme:e})=>({"text-underline-offset":e.lineWidth?.[t]??a.auto.bracket.cssvar.global.px(t)}),{autocomplete:"(underline|decoration)-(offset)-<num>"}],...qt.map(t=>[`underline-${t}`,{"text-decoration-style":t}]),...qt.map(t=>[`decoration-${t}`,{"text-decoration-style":t}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];function Gt([,t],{theme:e}){return{"text-decoration-thickness":e.lineWidth?.[t]??a.bracket.cssvar.global.px(t)}}function di(t,e){if(R(a.bracket(t[1])))return Gt(t,e);let r=y("text-decoration-color","line","borderColor")(t,e);if(r)return{"-webkit-text-decoration-color":r["text-decoration-color"],...r}}var Yt=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,t])=>({flex:a.bracket(t)!=null?a.bracket(t).split(" ").map(e=>a.cssvar.fraction(e)??e).join(" "):a.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":a.bracket.cssvar.number(t)??1}),{autocomplete:["flex-shrink-<num>","shrink-<num>"]}],[/^(?:flex-)?grow(?:-(.*))?$/,([,t=""])=>({"flex-grow":a.bracket.cssvar.number(t)??1}),{autocomplete:["flex-grow-<num>","grow-<num>"]}],[/^(?:flex-)?basis-(.+)$/,([,t],{theme:e})=>({"flex-basis":e.spacing?.[t]??a.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 mi={"":"",x:"column-",y:"row-",col:"column-",row:"row-"};function Ie([,t="",e],{theme:r}){let n=r.spacing?.[e]??a.bracket.cssvar.global.rem(e);if(n!=null)return{[`${mi[t]}gap`]:n}}var Xt=[[/^(?:flex-|grid-)?gap-?()(.+)$/,Ie,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,Ie,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}],[/^(?:flex-|grid-)?gap-(col|row)-?(.+)$/,Ie,{autocomplete:["gap-(col|row)-$spacing","gap-(col|row)-<num>"]}]];function z(t){return t.replace("col","column")}function _e(t){return t[0]==="r"?"Row":"Column"}function gi(t,e,r){let n=e[`gridAuto${_e(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 a.bracket.cssvar.auto.rem(r)}var Zt=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,t,e],{theme:r})=>({[`grid-${z(t)}`]:r[`grid${_e(t)}`]?.[e]??a.bracket.cssvar.auto(e)})],[/^(?:grid-)?(row|col)-span-(.+)$/,([,t,e])=>{if(e==="full")return{[`grid-${z(t)}`]:"1/-1"};let r=a.bracket.number(e);if(r!=null)return{[`grid-${z(t)}`]:`span ${r}/span ${r}`}},{autocomplete:"(grid-row|grid-col|row|col)-span-<num>"}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,t,e])=>({[`grid-${z(t)}-start`]:a.bracket.cssvar(e)??e})],[/^(?:grid-)?(row|col)-end-(.+)$/,([,t,e])=>({[`grid-${z(t)}-end`]:a.bracket.cssvar(e)??e}),{autocomplete:"(grid-row|grid-col|row|col)-(start|end)-<num>"}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-auto-${z(t)}`]:gi(t,r,e)}),{autocomplete:"(grid-auto|auto)-(rows|cols)-<num>"}],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,t])=>({"grid-auto-flow":a.bracket.cssvar(t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,t])=>({"grid-auto-flow":z(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-${z(t)}`]:r[`gridTemplate${_e(t)}`]?.[e]??a.bracket.cssvar(e)})],[/^(?:grid-)?(rows|cols)-minmax-([\w.-]+)$/,([,t,e])=>({[`grid-template-${z(t)}`]:`repeat(auto-fill,minmax(${e},1fr))`})],[/^(?:grid-)?(rows|cols)-(\d+)$/,([,t,e])=>({[`grid-template-${z(t)}`]:`repeat(${e},minmax(0,1fr))`}),{autocomplete:"(grid-rows|grid-cols|rows|cols)-<num>"}],[/^grid-area(s)?-(.+)$/,([,t,e])=>t!=null?{"grid-template-areas":a.cssvar(e)??e.split("-").map(r=>`"${a.bracket(r)}"`).join(" ")}:{"grid-area":a.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 ye=["auto","hidden","clip","visible","scroll","overlay",...m],Jt=[[/^(?:overflow|of)-(.+)$/,([,t])=>ye.includes(t)?{overflow:t}:void 0,{autocomplete:[`(overflow|of)-(${ye.join("|")})`,`(overflow|of)-(x|y)-(${ye.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,t,e])=>ye.includes(e)?{[`overflow-${t}`]:e}:void 0]];var Qt=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,t])=>({position:t}),{autocomplete:["(position|pos)-<position>","(position|pos)-<globalKeyword>","<position>"]}],[/^(?:position-|pos-)([-\w]+)$/,([,t])=>m.includes(t)?{position:t}:void 0],[/^(?:position-|pos-)?(static)$/,([,t])=>({position:t})]],Be=[["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"}],...x("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"}],...x("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"}],...x("justify-self")],er=[[/^order-(.+)$/,([,t])=>({order:a.bracket.cssvar.number(t)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],Ue=[["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"}],...x("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"}],...x("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"}],...x("self","align-self")],De=[["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"}],...x("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"}],...x("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"}],...x("place-self")],tr=[...Be,...Ue,...De].flatMap(([t,e])=>[[`flex-${t}`,e],[`grid-${t}`,e]]);function Ne(t,{theme:e}){return e.spacing?.[t]??a.bracket.cssvar.global.auto.fraction.rem(t)}function se([,t,e],r){let n=Ne(e,r);if(n!=null&&t in Oe)return Oe[t].map(o=>[o.slice(1),n])}var rr=[[/^(?:position-|pos-)?inset-(.+)$/,([,t],e)=>({inset:Ne(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)-(.+)$/,se],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,se],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,se],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,se],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,se],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,t,e],r)=>({[t]:Ne(e,r)})]],nr=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-start",{float:"inline-start"}],["float-end",{float:"inline-end"}],["float-none",{float:"none"}],...x("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"}],...x("clear")],or=[[/^(?:position-|pos-)?z([\d.]+)$/,([,t])=>({"z-index":a.number(t)})],[/^(?:position-|pos-)?z-(.+)$/,([,t],{theme:e})=>({"z-index":e.zIndex?.[t]??a.bracket.cssvar.global.auto.number(t)}),{autocomplete:"z-<num>"}]],ir=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}],...x("box","box-sizing")];var sr=[[/^(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 bi=["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"],xi=["none","strict","content","size","inline-size","layout","style","paint"],we=" ",ar=[["inline",{display:"inline"}],["block",{display:"block"}],["inline-block",{display:"inline-block"}],["contents",{display:"contents"}],["flow-root",{display:"flow-root"}],["list-item",{display:"list-item"}],["hidden",{display:"none"}],[/^display-(.+)$/,([,t])=>({display:a.bracket.cssvar.global(t)})]],lr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}],...x("backface","backface-visibility")],cr=[[/^cursor-(.+)$/,([,t])=>({cursor:a.bracket.cssvar.global(t)})],...bi.map(t=>[`cursor-${t}`,{cursor:t}])],ur=[[/^contain-(.*)$/,([,t])=>a.bracket(t)!=null?{contain:a.bracket(t).split(" ").map(e=>a.cssvar.fraction(e)??e).join(" ")}:xi.includes(t)?{contain:t}:void 0]],fr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}],...x("pointer-events")],pr=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}],...x("resize")],hr=[["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"}],...x("select","user-select")],dr=[[/^(?:whitespace-|ws-)([-\w]+)$/,([,t])=>["normal","nowrap","pre","pre-line","pre-wrap","break-spaces",...m].includes(t)?{"white-space":t}:void 0,{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],mr=[[/^intrinsic-size-(.+)$/,([,t])=>({"contain-intrinsic-size":a.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"}],...x("content-visibility")],gr=[[/^content-(.+)$/,([,t])=>({content:a.bracket.cssvar(t)})],["content-empty",{content:'""'}],["content-none",{content:"none"}]],br=[["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"}]],xr=[["text-wrap",{"text-wrap":"wrap"}],["text-nowrap",{"text-wrap":"nowrap"}],["text-balance",{"text-wrap":"balance"}],["text-pretty",{"text-wrap":"pretty"}]],yr=[["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"}]],wr=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}],...x("case","text-transform")],$r=[["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"}]],Sr=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"}]],vr=[["field-sizing-fixed",{"field-sizing":"fixed"}],["field-sizing-content",{"field-sizing":"content"}]];var Ke={"--un-ring-inset":we,"--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)"},yi=Object.keys(Ke),kr=[[/^ring(?:-(.+))?$/,([,t],{theme:e})=>{let r=e.ringWidth?.[t||"DEFAULT"]??a.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:yi},autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,Cr,{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]??a.bracket.cssvar.px(t)}),{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,wi,{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-opacity":a.bracket.percent.cssvar(t)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,y("--un-ring-offset-color","ring-offset","borderColor"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-offset-opacity":a.bracket.percent.cssvar(t)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];function Cr([,t],{theme:e}){return{"--un-ring-width":e.ringWidth?.[t]??a.bracket.cssvar.px(t)}}function wi(t,e){return R(a.bracket(t[1]))?Cr(t,e):y("--un-ring-color","ring","borderColor")(t,e)}var qe={"--un-ring-offset-shadow":"0 0 rgb(0 0 0 / 0)","--un-ring-shadow":"0 0 rgb(0 0 0 / 0)","--un-shadow-inset":we,"--un-shadow":"0 0 rgb(0 0 0 / 0)"},$i=Object.keys(qe),Rr=[[/^shadow(?:-(.+))?$/,(t,e)=>{let[,r]=t,{theme:n}=e,o=n.boxShadow?.[r||"DEFAULT"],i=r?a.bracket.cssvar(r):void 0;return(o!=null||i!=null)&&!ge(i,n,"shadowColor")?{"--un-shadow":me(o||i,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}:y("--un-shadow-color","shadow","shadowColor")(t,e)},{custom:{preflightKeys:$i},autocomplete:["shadow-$colors","shadow-$boxShadow"]}],[/^shadow-op(?:acity)?-?(.+)$/,([,t])=>({"--un-shadow-opacity":a.bracket.percent.cssvar(t)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var Si={h:"height",w:"width",inline:"inline-size",block:"block-size"};function M(t,e){return`${t||""}${Si[e]}`}function $e(t,e,r,n){let o=M(t,e).replace(/-(\w)/g,(s,l)=>l.toUpperCase()),i=r[o]?.[n];if(i!=null)return i;switch(n){case"fit":case"max":case"min":return`${n}-content`}return a.bracket.cssvar.global.auto.fraction.rem(n)}var Tr=[[/^size-(min-|max-)?(.+)$/,([,t,e],{theme:r})=>({[M(t,"w")]:$e(t,"w",r,e),[M(t,"h")]:$e(t,"h",r,e)})],[/^(?:size-)?(min-|max-)?([wh])-?(.+)$/,([,t,e,r],{theme:n})=>({[M(t,e)]:$e(t,e,n,r)})],[/^(?:size-)?(min-|max-)?(block|inline)-(.+)$/,([,t,e,r],{theme:n})=>({[M(t,e)]:$e(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)=>({[M(t,e)]:Er(n,r,"verticalBreakpoints")})],[/^(?:size-)?(min-|max-)?(w)-screen-(.+)$/,([,t,e,r],n)=>({[M(t,e)]:Er(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 Er(t,e,r="breakpoints"){let n=be(t,r);if(n)return n.find(o=>o.point===e)?.size}function vi(t){if(/^\d+\/\d+$/.test(t))return t;switch(t){case"square":return"1/1";case"video":return"16/9"}return a.bracket.cssvar.global.auto.number(t)}var jr=[[/^(?:size-)?aspect-(?:ratio-)?(.+)$/,([,t])=>({"aspect-ratio":vi(t)}),{autocomplete:["aspect-(square|video|ratio)","aspect-ratio-(square|video)"]}]];var zr=[[/^pa?()-?(.+)$/,k("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,k("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(.+))?$/,k("padding")],[/^p-?([rltbse])(?:-?(.+))?$/,k("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(.+))?$/,k("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(.+))?$/,k("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],Or=[[/^ma?()-?(.+)$/,k("margin")],[/^m-?xy()()$/,k("margin")],[/^m-?([xy])(?:-?(.+))?$/,k("margin")],[/^m-?([rltbse])(?:-?(.+))?$/,k("margin")],[/^m-(block|inline)(?:-(.+))?$/,k("margin")],[/^m-?([bi][se])(?:-?(.+))?$/,k("margin")]];var Ar=[[/^fill-(.+)$/,y("fill","fill","backgroundColor"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,t])=>({"--un-fill-opacity":a.bracket.percent.cssvar(t)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,Vr,{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,t])=>({"stroke-dasharray":a.bracket.cssvar.number(t)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,t],{theme:e})=>({"stroke-dashoffset":e.lineWidth?.[t]??a.bracket.cssvar.px.numberWithUnit(t)}),{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,ki,{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-stroke-opacity":a.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 Vr([,t],{theme:e}){return{"stroke-width":e.lineWidth?.[t]??a.bracket.cssvar.fraction.px.number(t)}}function ki(t,e){return R(a.bracket(t[1]))?Vr(t,e):y("stroke","stroke","borderColor")(t,e)}var Se=["translate","rotate","scale"],Ci=["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(" "),q=["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","translateZ(var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" "),Ri=["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(" "),He={"--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},O=Object.keys(He),Wr=[[/^(?:transform-)?origin-(.+)$/,([,t])=>({"transform-origin":Q[t]??a.bracket.cssvar(t)}),{autocomplete:[`transform-origin-(${Object.keys(Q).join("|")})`,`origin-(${Object.keys(Q).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,t])=>{let e=a.bracket.cssvar.px.numberWithUnit(t);if(e!=null)return{"-webkit-perspective":e,perspective:e}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,t])=>{let e=a.bracket.cssvar(t)??(t.length>=3?Q[t]:void 0);if(e!=null)return{"-webkit-perspective-origin":e,"perspective-origin":e}}],[/^(?:transform-)?translate-()(.+)$/,Pr,{custom:{preflightKeys:O}}],[/^(?:transform-)?translate-([xyz])-(.+)$/,Pr,{custom:{preflightKeys:O}}],[/^(?:transform-)?rotate-()(.+)$/,Fr,{custom:{preflightKeys:O}}],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Fr,{custom:{preflightKeys:O}}],[/^(?:transform-)?skew-()(.+)$/,Mr,{custom:{preflightKeys:O}}],[/^(?:transform-)?skew-([xy])-(.+)$/,Mr,{custom:{preflightKeys:O},autocomplete:["transform-skew-(x|y)-<percent>","skew-(x|y)-<percent>"]}],[/^(?:transform-)?scale-()(.+)$/,Lr,{custom:{preflightKeys:O}}],[/^(?:transform-)?scale-([xyz])-(.+)$/,Lr,{custom:{preflightKeys:O},autocomplete:[`transform-(${Se.join("|")})-<percent>`,`transform-(${Se.join("|")})-(x|y|z)-<percent>`,`(${Se.join("|")})-<percent>`,`(${Se.join("|")})-(x|y|z)-<percent>`]}],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],["transform",{transform:q},{custom:{preflightKeys:O}}],["transform-cpu",{transform:Ci},{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:Ri},{custom:{preflightKeys:O}}],["transform-none",{transform:"none"}],...x("transform")];function Pr([,t,e],{theme:r}){let n=r.spacing?.[e]??a.bracket.cssvar.fraction.rem(e);if(n!=null)return[...xe(t,n,"translate"),["transform",q]]}function Lr([,t,e]){let r=a.bracket.cssvar.fraction.percent(e);if(r!=null)return[...xe(t,r,"scale"),["transform",q]]}function Fr([,t="",e]){let r=a.bracket.cssvar.degree(e);if(r!=null)return t?{"--un-rotate":0,[`--un-rotate-${t}`]:r,transform:q}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:q}}function Mr([,t,e]){let r=a.bracket.cssvar.degree(e);if(r!=null)return[...xe(t,r,"skew"),["transform",q]]}function Ir(t,e){let r;if(a.cssvar(t)!=null)r=a.cssvar(t);else{t.startsWith("[")&&t.endsWith("]")&&(t=t.slice(1,-1));let n=t.split(",").map(o=>e.transitionProperty?.[o]??a.properties(o));n.every(Boolean)&&(r=n.join(","))}return r}var _r=[[/^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??a.time("150")};if(t!=null){let n=Ir(t,r),o=r.duration?.[e||"DEFAULT"]??a.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]??a.time(e)}},{autocomplete:"transition-$transitionProperty-$duration"}],[/^(?:transition-)?duration-(.+)$/,([,t],{theme:e})=>({"transition-duration":e.duration?.[t||"DEFAULT"]??a.bracket.cssvar.time(t)}),{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,t],{theme:e})=>({"transition-delay":e.duration?.[t||"DEFAULT"]??a.bracket.cssvar.time(t)}),{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,t],{theme:e})=>({"transition-timing-function":e.easing?.[t||"DEFAULT"]??a.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=a.global(t)||Ir(t,e);if(r)return{"transition-property":r}},{autocomplete:[`transition-property-(${[...m].join("|")})`,"transition-property-$transitionProperty","property-$transitionProperty"]}],["transition-none",{transition:"none"}],...x("transition"),["transition-discrete",{"transition-behavior":"allow-discrete"}],["transition-normal",{"transition-behavior":"normal"}]];var Nr=[[/^text-(.+)$/,Ti,{autocomplete:"text-$fontSize"}],[/^(?:text|font)-size-(.+)$/,qr,{autocomplete:"text-size-$fontSize"}],[/^text-(?:color-)?(.+)$/,Ei,{autocomplete:"text-$colors"}],[/^(?:color|c)-(.+)$/,y("color","text","textColor"),{autocomplete:"(color|c)-$colors"}],[/^(?:text|color|c)-(.+)$/,([,t])=>m.includes(t)?{color:t}:void 0,{autocomplete:`(text|color|c)-(${m.join("|")})`}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-opacity":a.bracket.percent.cssvar(t)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}],[/^(?:font|fw)-?([^-]+)$/,([,t],{theme:e})=>({"font-weight":e.fontWeight?.[t]||a.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":Ge(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":a.bracket.cssvar.global(t)})],[/^(?:font-)?tracking-(.+)$/,([,t],{theme:e})=>({"letter-spacing":e.letterSpacing?.[t]||a.bracket.cssvar.global.rem(t)}),{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,t],{theme:e})=>({"word-spacing":e.wordSpacing?.[t]||a.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":a.bracket.cssvar.fraction.global(t)}),{autocomplete:"font-stretch-<percentage>"}],[/^font-(.+)$/,([,t],{theme:e})=>({"font-family":e.fontFamily?.[t]||a.bracket.cssvar.global(t)}),{autocomplete:"font-$fontFamily"}]],Br=[[/^tab(?:-(.+))?$/,([,t])=>{let e=a.bracket.cssvar.global.number(t||"4");if(e!=null)return{"-moz-tab-size":e,"-o-tab-size":e,"tab-size":e}}]],Ur=[[/^indent(?:-(.+))?$/,([,t],{theme:e})=>({"text-indent":e.textIndent?.[t||"DEFAULT"]||a.bracket.cssvar.global.fraction.rem(t)}),{autocomplete:"indent-$textIndent"}]],Dr=[[/^text-stroke(?:-(.+))?$/,([,t],{theme:e})=>({"-webkit-text-stroke-width":e.textStrokeWidth?.[t||"DEFAULT"]||a.bracket.cssvar.px(t)}),{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,y("-webkit-text-stroke-color","text-stroke","borderColor"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-stroke-opacity":a.bracket.percent.cssvar(t)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],Kr=[[/^text-shadow(?:-(.+))?$/,([,t],{theme:e})=>{let r=e.textShadow?.[t||"DEFAULT"];return r!=null?{"--un-text-shadow":me(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":a.bracket.cssvar.global(t)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,y("--un-text-shadow-color","text-shadow","shadowColor"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-shadow-opacity":a.bracket.percent.cssvar(t)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];function Ge(t,e,r){return e[r]?.[t]||a.bracket.cssvar.global.rem(t)}function qr([,t],{theme:e}){let n=$(e.fontSize?.[t])?.[0]??a.bracket.cssvar.global.rem(t);if(n!=null)return{"font-size":n}}function Ei(t,e){return R(a.bracket(t[1]))?qr(t,e):y("color","text","textColor")(t,e)}function Ti([,t="base"],{theme:e}){let r=We(t,"length");if(!r)return;let[n,o]=r,i=$(e.fontSize?.[n]),s=o?Ge(o,e,"lineHeight"):void 0;if(i?.[0]){let[c,u,f]=i;return typeof u=="object"?{"font-size":c,...u}:{"font-size":c,"line-height":s??u??"1","letter-spacing":f?Ge(f,e,"letterSpacing"):void 0}}let l=a.bracketOfLength.rem(n);return s&&l?{"font-size":l,"line-height":s}:{"font-size":a.bracketOfLength.rem(t)}}var ji={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"},Hr=[[/^(.+?)-(\$.+)$/,([,t,e])=>{let r=ji[t];if(r)return{[r]:a.cssvar(e)}}]],Gr=[[/^\[(.*)\]$/,([t,e])=>{if(!e.includes(":"))return;let[r,...n]=e.split(":"),o=n.join(":");if(!Oi(e)&&/^[a-z-_]+$/i.test(r)&&zi(o)){let i=a.bracket(`[${o}]`);if(i)return{[r]:i}}}]];function zi(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 Oi(t){if(!t.includes("://"))return!1;try{return new URL(t).host!==""}catch{return!1}}var Yr=[Hr,Gr,ur,fr,lr,Qt,rr,or,er,Zt,nr,Or,ir,ar,jr,Tr,Yt,Wr,cr,hr,pr,Wt,De,Ue,Be,Xt,tr,Jt,yr,dr,br,Nt,Ut,Dt,Ar,zr,zt,Ur,xr,jt,Nr,wr,$r,Ht,Sr,Br,Dr,Kr,Bt,Rr,Ft,kr,_r,It,mr,gr,Kt,vr,sr].flat(1);var Xr={position:["relative","absolute","fixed","sticky","static"],globalKeyword:m};var Ye={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",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(Ye).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 Zr={DEFAULT:"8px",0:"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Jr={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 Qr={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(",")},en={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"]},tn={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},rn={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},nn={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)"]},on={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},Xe={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},sn={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},an=Xe;var Ze={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},ln={...Ze},cn={DEFAULT:"1px",none:"0"},un={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"},fn={DEFAULT:"150ms",none:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},pn={DEFAULT:"0.25rem",none:"0",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},hn={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)"},dn={DEFAULT:"3px",none:"0"},mn={auto:"auto"},gn={mouse:"(hover) and (pointer: fine)"};var bn={...He,...qe,...Ke};var A={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},xn={auto:"auto",...A,screen:"100vw"},Je={none:"none",...A,screen:"100vw"},yn={auto:"auto",...A,screen:"100vb"},wn={auto:"auto",...A,screen:"100vi"},$n={auto:"auto",...A,screen:"100vh"},Qe={none:"none",...A,screen:"100vh"},et={none:"none",...A,screen:"100vb"},tt={none:"none",...A,screen:"100vi"},Sn={...A};var vn={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)"},kn={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 Cn={width:xn,height:$n,maxWidth:Je,maxHeight:Qe,minWidth:Je,minHeight:Qe,inlineSize:wn,blockSize:yn,maxInlineSize:tt,maxBlockSize:et,minInlineSize:tt,minBlockSize:et,colors:Ye,fontFamily:Qr,fontSize:en,fontWeight:sn,breakpoints:Ze,verticalBreakpoints:ln,borderRadius:pn,lineHeight:on,letterSpacing:Xe,wordSpacing:an,boxShadow:hn,textIndent:tn,textShadow:nn,textStrokeWidth:rn,blur:Zr,dropShadow:Jr,easing:vn,transitionProperty:kn,lineWidth:cn,spacing:un,duration:fn,ringWidth:dn,preflightBase:bn,containers:Sn,zIndex:mn,media:gn};var Rn={name:"aria",match(t,e){let r=w("aria-",t,e.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n)??e.theme.aria?.[n]??"";if(i)return{matcher:o,selector:s=>`${s}[aria-${i}]`}}},multiPass:!0};function ve(t){return{name:`${t}-aria`,match(e,r){let n=w(`${t}-aria-`,e,r.generator.config.separators);if(n){let[o,i]=n,s=a.bracket(o)??r.theme.aria?.[o]??"";if(s)return{matcher:`${t}-[[aria-${s}]]:${i}`}}}}}var En=[ve("group"),ve("peer"),ve("parent"),ve("previous")];var Tn=/(max|min)-\[([^\]]*)\]:/;function jn(){let t={};return{name:"breakpoints",match(e,r){if(Tn.test(e)){let o=e.match(Tn);return{matcher:e.replace(o[0],""),handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}@media (${o[1]}-width: ${o[2]})`})}}let n=(be(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 l=e.match(t[o]);if(!l)continue;let[,c]=l,u=e.slice(c.length);if(u==="container")continue;let f=c.startsWith("lt-")||c.startsWith("<")||c.startsWith("max-"),d=c.startsWith("at-")||c.startsWith("~"),h=3e3;return f?(h-=s+1,{matcher:u,handle:(p,g)=>g({...p,parent:`${p.parent?`${p.parent} $$ `:""}@media (max-width: ${ze(i)})`,parentOrder:h})}):(h+=s+1,d&&s<n.length-1?{matcher:u,handle:(p,g)=>g({...p,parent:`${p.parent?`${p.parent} $$ `:""}@media (min-width: ${i}) and (max-width: ${ze(n[s+1][1])})`,parentOrder:h})}:{matcher:u,handle:(p,g)=>g({...p,parent:`${p.parent?`${p.parent} $$ `:""}@media (min-width: ${i})`,parentOrder:h})})}},multiPass:!0,autocomplete:"(at-|lt-|max-|)$breakpoints:"}}var zn=[L("*",t=>({selector:`${t.selector} > *`}))];function ae(t,e){return{name:`combinator:${t}`,match(r,n){if(!r.startsWith(t))return;let o=n.generator.config.separators,i=F(`${t}-`,r,o);if(!i){for(let l of o)if(r.startsWith(`${t}${l}`)){i=["",r.slice(t.length+l.length)];break}if(!i)return}let s=a.bracket(i[0])??"";return s===""&&(s="*"),{matcher:i[1],selector:l=>`${l}${e}${s}`}},multiPass:!0}}var On=[ae("all"," "),ae("children",">"),ae("next","+"),ae("sibling","+"),ae("siblings","~")];var An={name:"@",match(t,e){if(t.startsWith("@container"))return;let r=w("@",t,e.generator.config.separators);if(r){let[n,o,i]=r,s=a.bracket(n),l;if(s?l=a.numberWithUnit(s):l=e.theme.containers?.[n]??"",l){let c=1e3+Object.keys(e.theme.containers??{}).indexOf(n);return i&&(c+=1e3),{matcher:o,handle:(u,f)=>f({...u,parent:`${u.parent?`${u.parent} $$ `:""}@container${i?` ${i} `:" "}(min-width: ${l})`,parentOrder:c})}}}},multiPass:!0};function Vn(t={}){if(t?.dark==="class"||typeof t.dark=="object"){let{dark:e=".dark",light:r=".light"}=typeof t.dark=="string"?{}:t.dark;return[L("dark",$(e).map(n=>o=>({prefix:`${n} $$ ${o.prefix}`}))),L("light",$(r).map(n=>o=>({prefix:`${n} $$ ${o.prefix}`})))]}return[J("dark","@media (prefers-color-scheme: dark)"),J("light","@media (prefers-color-scheme: light)")]}var Pn={name:"data",match(t,e){let r=w("data-",t,e.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n)??e.theme.data?.[n]??"";if(i)return{matcher:o,selector:s=>`${s}[data-${i}]`}}},multiPass:!0};function ke(t){return{name:`${t}-data`,match(e,r){let n=w(`${t}-data-`,e,r.generator.config.separators);if(n){let[o,i,s]=n,l=a.bracket(o)??r.theme.data?.[o]??"";if(l)return{matcher:`${t}-[[data-${l}]]${s?`/${s}`:""}:${i}`}}}}}var Ln=[ke("group"),ke("peer"),ke("parent"),ke("previous")];var Fn=[L("rtl",t=>({prefix:`[dir="rtl"] $$ ${t.prefix}`})),L("ltr",t=>({prefix:`[dir="ltr"] $$ ${t.prefix}`}))];function Mn(){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 Wn=J("print","@media print"),In={name:"media",match(t,e){let r=w("media-",t,e.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n)??"";if(i===""&&(i=e.theme.media?.[n]??""),i)return{matcher:o,handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}@media ${i}`})}}},multiPass:!0};var _n={name:"selector",match(t,e){let r=F("selector-",t,e.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n);if(i)return{matcher:o,selector:()=>i}}}},Nn={name:"layer",match(t,e){let r=w("layer-",t,e.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n)??n;if(i)return{matcher:o,handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}@layer ${i}`})}}}},Bn={name:"uno-layer",match(t,e){let r=w("uno-layer-",t,e.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n)??n;if(i)return{matcher:o,layer:i}}}},Un={name:"scope",match(t,e){let r=F("scope-",t,e.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n);if(i)return{matcher:o,selector:s=>`${i} $$ ${s}`}}}},Dn={name:"variables",match(t,e){if(!t.startsWith("["))return;let[r,n]=N(t,"[","]")??[];if(!(r&&n))return;let o;for(let l of e.generator.config.separators)if(n.startsWith(l)){o=n.slice(l.length);break}if(o==null)return;let i=a.bracket(r)??"",s=i.startsWith("@");if(s||i.includes("&"))return{matcher:o,handle(l,c){let u=s?{parent:`${l.parent?`${l.parent} $$ `:""}${i}`}:{selector:i.replace(/&/g,l.selector)};return c({...l,...u})}}},multiPass:!0},Kn={name:"theme-variables",match(t,e){if(wt(t))return{matcher:t,handle(r,n){return n({...r,entries:JSON.parse($t(JSON.stringify(r.entries),e.theme))})}}}};var qn=/^-?[0-9.]+(?:[a-z]+|%)?$/,Hn=/-?[0-9.]+(?:[a-z]+|%)?/,Ai=[/\b(opacity|color|flex|backdrop-filter|^filter|transform)\b/];function Vi(t){let e=t.match(ee)||t.match(fe);if(e){let[r,n]=B(`(${e[2]})${e[3]}`,"(",")"," ")??[];if(r)return`calc(${e[1]}${r} * -1)${n?` ${n}`:""}`}}var Pi=/\b(hue-rotate)\s*(\(.*)/;function Li(t){let e=t.match(Pi);if(e){let[r,n]=B(e[2],"(",")"," ")??[];if(r){let o=qn.test(r.slice(1,-1))?r.replace(Hn,i=>i.startsWith("-")?i.slice(1):`-${i}`):`(calc(${r} * -1))`;return`${e[1]}${o}${n?` ${n}`:""}`}}}var Gn={name:"negative",match(t){if(t.startsWith("-"))return{matcher:t.slice(1),body:e=>{if(e.find(n=>n[0]===Pt))return;let r=!1;return e.forEach(n=>{let o=n[1]?.toString();if(!o||o==="0"||Ai.some(l=>l.test(n[0])))return;let i=Vi(o);if(i){n[1]=i,r=!0;return}let s=Li(o);if(s){n[1]=s,r=!0;return}qn.test(o)&&(n[1]=o.replace(Hn,l=>l.startsWith("-")?l.slice(1):`-${l}`),r=!0)}),r?e:[]}}}};var Jn="__pseudo_placeholder__",H=Object.fromEntries([["first-letter","::first-letter"],["first-line","::first-line"],"any-link","link","visited","target",["open","[open]"],"default","checked","indeterminate","placeholder-shown","autofill","optional","required","valid","invalid","user-valid","user-invalid","in-range","out-of-range","read-only","read-write","empty","focus-within","hover","focus","focus-visible","active","enabled","disabled","popover-open","root","empty",["even-of-type",":nth-of-type(even)"],["even",":nth-child(even)"],["odd-of-type",":nth-of-type(odd)"],["odd",":nth-child(odd)"],["nth",`:nth-child(${Jn})`],"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}`])),Qn=Object.keys(H),G=Object.fromEntries([["backdrop","::backdrop"]].map(t=>Array.isArray(t)?t:[t,`:${t}`])),eo=Object.keys(G),Fi=["not","is","where","has"],to=Object.fromEntries([["selection",["::selection"," *::selection"]],["marker",["::marker"," *::marker"]]]),rt=Object.entries(H).filter(([,t])=>!t.startsWith("::")).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|"),nt=Object.entries(G).filter(([,t])=>!t.startsWith("::")).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|"),W=Fi.join("|"),Yn=Object.keys(to).sort((t,e)=>e.length-t.length).join("|");function Mi(t,e,r){let n=new RegExp(`^(${V(e)}:)(\\S+)${V(r)}\\1`),o,i,s,l,c=d=>{let h=F(`${t}-`,d,[]);if(!h)return;let[p,g]=h,b=a.bracket(p);if(b==null)return;let E=g.split(o,1)?.[0]??"",T=`${e}${_(E)}`;return[E,d.slice(d.length-(g.length-E.length-1)),b.includes("&")?b.replace(/&/g,T):`${T}${b}`]},u=d=>{let h=d.match(i)||d.match(s);if(!h)return;let[p,g,b]=h,E=h[3]??"",T=H[b]||G[b]||`:${b}`;return g&&(T=`:${g}(${T})`),[E,d.slice(p.length),`${e}${_(E)}${T}`,b]},f=d=>{let h=d.match(l);if(!h)return;let[p,g,b]=h,E=h[3]??"",T=`:${g}(${b})`;return[E,d.slice(p.length),`${e}${_(E)}${T}`]};return{name:`pseudo:${t}`,match(d,h){if(o&&i&&s||(o=new RegExp(`(?:${h.generator.config.separators.join("|")})`),i=new RegExp(`^${t}-(?:(?:(${W})-)?(${rt}))(?:(/[\\w-]+))?(?:${h.generator.config.separators.join("|")})`),s=new RegExp(`^${t}-(?:(?:(${W})-)?(${nt}))(?:(/[\\w-]+))?(?:${h.generator.config.separators.filter(I=>I!=="-").join("|")})`),l=new RegExp(`^${t}-(?:(${W})-)?\\[(.+)\\](?:(/[\\w-]+))?(?:${h.generator.config.separators.filter(I=>I!=="-").join("|")})`)),!d.startsWith(t))return;let p=c(d)||u(d)||f(d);if(!p)return;let[g,b,E,T=""]=p;return{matcher:b,handle:(I,uo)=>uo({...I,prefix:`${E}${r}${I.prefix}`.replace(n,"$1$2:"),sort:Qn.indexOf(T)??eo.indexOf(T)})}},multiPass:!0}}var Wi=["::-webkit-resizer","::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-corner","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::file-selector-button"],Xn=Object.entries(H).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|"),Zn=Object.entries(G).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|");function ro(){let t,e,r;return[{name:"pseudo",match(n,o){t&&e||(t=new RegExp(`^(${Xn})(?:-(\\[\\w+\\]))?(?:${o.generator.config.separators.join("|")})`),e=new RegExp(`^(${Zn})(?:${o.generator.config.separators.filter(s=>s!=="-").join("|")})`));let i=n.match(t)||n.match(e);if(i){let s=H[i[1]]||G[i[1]]||`:${i[1]}`;if(i[2]){let c=a.bracket(i[2]);c&&(s=s.replace(Jn,c))}let l=Qn.indexOf(i[1]);return l===-1&&(l=eo.indexOf(i[1])),l===-1&&(l=void 0),{matcher:n.slice(i[0].length),handle:(c,u)=>{let f=s.includes("::")&&!Wi.includes(s)?{pseudo:`${c.pseudo}${s}`}:{selector:`${c.selector}${s}`};return u({...c,...f,sort:l,noMerge:!0})}}}},multiPass:!0,autocomplete:`(${Xn}|${Zn}):`},{name:"pseudo:multi",match(n,o){r||(r=new RegExp(`^(${Yn})(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return to[i[1]].map(l=>({matcher:n.slice(i[0].length),handle:(c,u)=>u({...c,pseudo:`${c.pseudo}${l}`})}))},multiPass:!1,autocomplete:`(${Yn}):`}]}function no(){let t,e,r;return{match(n,o){t&&e||(t=new RegExp(`^(${W})-(${rt})(?:${o.generator.config.separators.join("|")})`),e=new RegExp(`^(${W})-(${nt})(?:${o.generator.config.separators.filter(s=>s!=="-").join("|")})`),r=new RegExp(`^(${W})-(\\[.+\\])(?:${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],c=N(i[2],"[","]")?a.bracket(i[2]):H[i[2]]||G[i[2]]||`:${i[2]}`;return{matcher:n.slice(i[0].length),selector:u=>`${u}:${s}(${c})`}}},multiPass:!0,autocomplete:`(${W})-(${rt}|${nt}):`}}function oo(t={}){let e=!!t?.attributifyPseudo,r=t?.prefix??"";r=(Array.isArray(r)?r:[r]).filter(Boolean)[0]??"";let n=(o,i)=>Mi(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 Ii=/(part-\[(.+)\]:)(.+)/,io={match(t){let e=t.match(Ii);if(e){let r=`part(${e[2]})`;return{matcher:t.slice(e[1].length),selector:n=>`${n}::${r}`}}},multiPass:!0};var so={name:"starting",match(t){if(t.startsWith("starting:"))return{matcher:t.slice(9),handle:(e,r)=>r({...e,parent:"@starting-style"})}}};var ao={name:"supports",match(t,e){let r=w("supports-",t,e.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n)??"";if(i===""&&(i=e.theme.supports?.[n]??""),i)return{matcher:o,handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}@supports ${i}`})}}},multiPass:!0};function lo(t){return[Rn,Pn,Nn,_n,Bn,Gn,so,Mn(),ao,Wn,In,jn(),...On,...ro(),no(),...oo(t),io,...Vn(t),...Fn,Un,...zn,An,Dn,...Ln,...En,Kn]}var _i=(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:Cn,rules:Yr,variants:lo(t),options:t,prefix:t.prefix,postprocess:Ni(t.variablePrefix),preflights:ft(t),extractorDefault:t.arbitraryVariants===!1?void 0:ut(),autocomplete:{shorthands:Xr}}),co=_i;function Ni(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}`))})}}window.__unocss_runtime=window.__unocss_runtime??{};window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},{presetMini:t=>co(t)});})();
|