@unocss/runtime 0.30.0 → 0.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributify.global.js +1 -1
- package/core.global.js +1 -1
- package/full.global.js +1 -1
- package/mini.global.js +1 -1
- package/package.json +4 -4
- package/uno.global.js +1 -1
package/attributify.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var ie=Object.defineProperty,kn=Object.defineProperties;var wn=Object.getOwnPropertyDescriptors;var gt=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;var ae=(t,e,r)=>e in t?ie(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,C=(t,e)=>{for(var r in e||(e={}))se.call(e,r)&&ae(t,r,e[r]);if(gt)for(var r of gt(e))ce.call(e,r)&&ae(t,r,e[r]);return t},j=(t,e)=>kn(t,wn(e));var le=(t,e)=>{var r={};for(var o in t)se.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&>)for(var o of gt(t))e.indexOf(o)<0&&ce.call(t,o)&&(r[o]=t[o]);return r};var Sn=(t,e)=>{for(var r in e)ie(t,r,{get:e[r],enumerable:!0})};var Ct=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function G(t=""){let e=Rn(t);if(e==null||e===!1)return;let{type:r,components:o,alpha:n}=e,a=r.toLowerCase();if(o.length!==0&&!(["rgba","hsla"].includes(a)&&n==null)&&!(Ct.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function M(t,e){let{components:r}=t,{alpha:o,type:n}=t;return o=e!=null?e:o,n=n.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(n)?`${n.replace("a","")}a(${r.join(",")}${o==null?"":`,${o}`})`:(o=o==null?"":` / ${o}`,Ct.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function Rn(t){if(!t)return;let e=Cn(t);if(e!=null||(e=zn(t),e!=null)||(e=Tn(t),e!=null)||(e=jn(t),e!=null)||(e=Vn(t),e!=null))return e}function Cn(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(!!e)switch(e.length){case 3:case 4:let r=Array.from(e,n=>Number.parseInt(n,16)).map(n=>n<<4|n);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 o=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[o>>16&255,o>>8&255,o&255]:[o>>24&255,o>>16&255,o>>8&255],alpha:e.length===6?void 0:Math.round((o&255)/255*100)/100}}}function zn(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function Tn(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,o]=e,n=Q(o,",",5);if(n){if([3,4].includes(n.length))return{type:r,components:n.slice(0,3),alpha:n[3]};if(n.length!==1)return!1}}var En=new RegExp(`^(${Ct.join("|")})\\((.+)\\)$`,"i");function jn(t){let e=t.match(En);if(!e)return;let[,r,o]=e,n=pe(`${r} ${o}`);if(n){let{alpha:a,components:[s,...i]}=n;return{type:s,components:i,alpha:a}}}function Vn(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=pe(e[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function pe(t){let e=Q(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 a=e.splice(r-2);e.push(a.join(" ")),--r}let o=Q(e[r-1],"/",3);if(!o)return;if(o.length===1||o[o.length-1]==="")return{components:e};let n=o.pop();return e[r-1]=o.join("/"),{components:e,alpha:n}}function An(t,e){if(t=t.trim(),t==="")return;let r=t.length,o=0;for(let n=0;n<r;n++)switch(t[n]){case"(":o++;break;case")":if(--o<0)return;break;case e:if(o===0){let a=t.slice(0,n).trim();return a===""?void 0:[a,t.slice(n+1).trim()]}}return[t,""]}function Q(t,e,r){if(e=e!=null?e:" ",e.length!==1)return;r=r!=null?r:10;let o=[],n=0;for(;t!=="";){if(++n>r)return;let a=An(t,e);if(!a)return;let[s,i]=a;o.push(s),t=i}if(o.length>0)return o}var O={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"]},zt=j(C({},O),{s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]}),Tt={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},Et={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},ue=["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"],U=Object.assign({},...ue.map(t=>({[t.replace(/ /,"-")]:t})),...ue.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t})));function tt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function jt(t){let e=t.length,r=-1,o,n="",a=t.charCodeAt(0);for(;++r<e;){if(o=t.charCodeAt(r),o===0){n+="\uFFFD";continue}if(o===44){n+="\\2c ";continue}if(o>=1&&o<=31||o===127||r===0&&o>=48&&o<=57||r===1&&o>=48&&o<=57&&a===45){n+=`\\${o.toString(16)} `;continue}if(r===0&&e===1&&o===45){n+=`\\${t.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=t.charAt(r);continue}n+=`\\${t.charAt(r)}`}return n}var bt=jt;function rt(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function fe(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>rt(e)):[t]:[rt(t)]}function On(t){return t.filter(([e,r],o)=>{if(e.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(t[n][0]===e&&t[n][1]===r)return!1;return!0})}function ht(t){return t==null?"":On(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function Vt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function At(t,e){let r=t,o=e;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=C({},r);return Vt(r)&&Vt(o)&&Object.keys(o).forEach(a=>{Vt(o[a])?a in r?n[a]=At(r[a],o[a]):Object.assign(n,{[a]:o[a]}):Object.assign(n,{[a]:o[a]})}),n}function et(t){let e,r,o;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(o=t[e])&&typeof o=="object"?et(o):o;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:et(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(o=t[e])&&typeof o=="object"?et(o):o;return r}return t}function me(t){return typeof t[0]=="string"}function de(t){return typeof t[0]=="string"}function A(t=[]){return Array.isArray(t)?t:[t]}function ot(t){return Array.from(new Set(t))}var Mn=/^\[(.+?)~?="(.*)"\]$/,Un=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,V="$$shortcut-no-merge";function ge(t){return t.match(Mn)}function nt(t=""){return Un.test(t)}function be(t){return typeof t=="function"?{match:t}:t}function Ot(t){return t.length===3}function he(t){return t!=null}var Mt=class{_map=new Map;get(e,r){let o=this._map.get(e);if(o)return o.get(r)}getFallback(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.has(r)||n.set(r,o),n.get(r)}set(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.set(r,o),this}has(e,r){var o;return(o=this._map.get(e))==null?void 0:o.has(r)}delete(e,r){var o;return((o=this._map.get(e))==null?void 0:o.delete(r))||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>e(a,r,n)))}};var xe=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function ye(t){return xe.lastIndex=0,t.replace(xe,(e,r,o,n)=>n.split(/\s/g).map(a=>a.replace(/^(!?)(.*)/,`$1${r}${o}$2`)).join(" "))}var ve=new Set;function $e(t){ve.has(t)||(console.warn("[unocss]",t),ve.add(t))}function ke(t){let e=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let s of n){let i=t[s](o);if(i!=null)return i}};function r(o,n){return o.__options||(o.__options={sequence:[]}),o.__options.sequence.push(n),o}for(let o of Object.keys(t))Object.defineProperty(e,o,{enumerable:!0,get(){return r(this,o)}});return e}var Pn=t=>t.split(/[\s'"`;>=]+/g).filter(nt),at={name:"split",order:0,extract({code:t}){return new Set(Pn(t))}};function _n(t){return A(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Fn={shortcuts:-1,default:0};function Ut(t={},e={}){let r=Object.assign({},e,t),o=(r.presets||[]).flatMap(A),n=[...o.filter(u=>u.enforce==="pre"),...o.filter(u=>!u.enforce),...o.filter(u=>u.enforce==="post")],a=Object.assign(Fn,...o.map(u=>u.layers),t.layers);function s(u){return ot([...n.flatMap(h=>A(h[u]||[])),...A(r[u]||[])])}let i=s("extractors");i.length||i.push(at),i.sort((u,h)=>(u.order||0)-(h.order||0));let l=s("rules"),p={},f=l.length;l.forEach((u,h)=>{me(u)&&(p[u[0]]=[h,u[1],u[2]],delete l[h])});let m=et([...n.map(u=>u.theme||{}),r.theme||{}].reduce((u,h)=>At(u,h),{}));s("extendTheme").forEach(u=>u(m));let y={templates:ot(n.map(u=>{var h;return A((h=u.autocomplete)==null?void 0:h.templates)}).flat()),extractors:n.map(u=>{var h;return A((h=u.autocomplete)==null?void 0:h.extractors)}).flat().sort((u,h)=>(u.order||0)-(h.order||0))};return j(C({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:u=>u},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:m,rulesSize:f,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:y,variants:s("variants").map(be),shortcuts:_n(s("shortcuts")),extractors:i})}var we="0.30.0";var Re=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=Ut(e,r)}version=we;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.config=Ut(e,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(e,r,o=new Set){let n={get original(){return e},code:e,id:r};for(let a of this.config.extractors){let s=await a.extract(n);s==null||s.forEach(i=>o.add(i))}return o}makeContext(e,r){let o={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(e,r){var l;if(this.blocked.has(e))return;let o=`${e}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=e;for(let p of this.config.preprocess)n=p(e);if(this.isBlocked(n)){this.blocked.add(e),this._cache.set(o,null);return}let a=this.matchVariants(e,n);if(!a||this.isBlocked(a[1])){this.blocked.add(e),this._cache.set(o,null);return}let s=this.makeContext(e,[r||a[0],a[1],a[2],a[3]]),i=this.expandShortcut(s.currentSelector,s);if(i){let p=await this.stringifyShortcuts(s.variantMatch,s,i[0],i[1]);if(p!=null&&p.length)return this._cache.set(o,p),p}else{let p=(l=await this.parseUtil(s.variantMatch,s))==null?void 0:l.map(f=>this.stringifyUtil(f)).filter(he);if(p!=null&&p.length)return this._cache.set(o,p),p}this._cache.set(o,null)}async generate(e,{id:r,scope:o,preflights:n=!0,safelist:a=!0,minify:s=!1}={}){let i=typeof e=="string"?await this.applyExtractors(e,r):e;a&&this.config.safelist.forEach(g=>i.add(g));let l=s?"":`
|
|
1
|
+
(()=>{var ie=Object.defineProperty,kn=Object.defineProperties;var wn=Object.getOwnPropertyDescriptors;var gt=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;var ae=(t,e,r)=>e in t?ie(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,C=(t,e)=>{for(var r in e||(e={}))se.call(e,r)&&ae(t,r,e[r]);if(gt)for(var r of gt(e))ce.call(e,r)&&ae(t,r,e[r]);return t},j=(t,e)=>kn(t,wn(e));var le=(t,e)=>{var r={};for(var o in t)se.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&>)for(var o of gt(t))e.indexOf(o)<0&&ce.call(t,o)&&(r[o]=t[o]);return r};var Sn=(t,e)=>{for(var r in e)ie(t,r,{get:e[r],enumerable:!0})};var Ct=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function G(t=""){let e=Rn(t);if(e==null||e===!1)return;let{type:r,components:o,alpha:n}=e,a=r.toLowerCase();if(o.length!==0&&!(["rgba","hsla"].includes(a)&&n==null)&&!(Ct.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function M(t,e){let{components:r}=t,{alpha:o,type:n}=t;return o=e!=null?e:o,n=n.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(n)?`${n.replace("a","")}a(${r.join(",")}${o==null?"":`,${o}`})`:(o=o==null?"":` / ${o}`,Ct.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function Rn(t){if(!t)return;let e=Cn(t);if(e!=null||(e=zn(t),e!=null)||(e=Tn(t),e!=null)||(e=jn(t),e!=null)||(e=Vn(t),e!=null))return e}function Cn(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(!!e)switch(e.length){case 3:case 4:let r=Array.from(e,n=>Number.parseInt(n,16)).map(n=>n<<4|n);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 o=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[o>>16&255,o>>8&255,o&255]:[o>>24&255,o>>16&255,o>>8&255],alpha:e.length===6?void 0:Math.round((o&255)/255*100)/100}}}function zn(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function Tn(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,o]=e,n=Q(o,",",5);if(n){if([3,4].includes(n.length))return{type:r,components:n.slice(0,3),alpha:n[3]};if(n.length!==1)return!1}}var En=new RegExp(`^(${Ct.join("|")})\\((.+)\\)$`,"i");function jn(t){let e=t.match(En);if(!e)return;let[,r,o]=e,n=pe(`${r} ${o}`);if(n){let{alpha:a,components:[s,...i]}=n;return{type:s,components:i,alpha:a}}}function Vn(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=pe(e[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function pe(t){let e=Q(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 a=e.splice(r-2);e.push(a.join(" ")),--r}let o=Q(e[r-1],"/",3);if(!o)return;if(o.length===1||o[o.length-1]==="")return{components:e};let n=o.pop();return e[r-1]=o.join("/"),{components:e,alpha:n}}function An(t,e){if(t=t.trim(),t==="")return;let r=t.length,o=0;for(let n=0;n<r;n++)switch(t[n]){case"(":o++;break;case")":if(--o<0)return;break;case e:if(o===0){let a=t.slice(0,n).trim();return a===""?void 0:[a,t.slice(n+1).trim()]}}return[t,""]}function Q(t,e,r){if(e=e!=null?e:" ",e.length!==1)return;r=r!=null?r:10;let o=[],n=0;for(;t!=="";){if(++n>r)return;let a=An(t,e);if(!a)return;let[s,i]=a;o.push(s),t=i}if(o.length>0)return o}var O={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"]},zt=j(C({},O),{s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]}),Tt={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},Et={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},ue=["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"],U=Object.assign({},...ue.map(t=>({[t.replace(/ /,"-")]:t})),...ue.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t})));function tt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function jt(t){let e=t.length,r=-1,o,n="",a=t.charCodeAt(0);for(;++r<e;){if(o=t.charCodeAt(r),o===0){n+="\uFFFD";continue}if(o===44){n+="\\2c ";continue}if(o>=1&&o<=31||o===127||r===0&&o>=48&&o<=57||r===1&&o>=48&&o<=57&&a===45){n+=`\\${o.toString(16)} `;continue}if(r===0&&e===1&&o===45){n+=`\\${t.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=t.charAt(r);continue}n+=`\\${t.charAt(r)}`}return n}var bt=jt;function rt(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function fe(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>rt(e)):[t]:[rt(t)]}function On(t){return t.filter(([e,r],o)=>{if(e.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(t[n][0]===e&&t[n][1]===r)return!1;return!0})}function ht(t){return t==null?"":On(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function Vt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function At(t,e){let r=t,o=e;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=C({},r);return Vt(r)&&Vt(o)&&Object.keys(o).forEach(a=>{Vt(o[a])?a in r?n[a]=At(r[a],o[a]):Object.assign(n,{[a]:o[a]}):Object.assign(n,{[a]:o[a]})}),n}function et(t){let e,r,o;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(o=t[e])&&typeof o=="object"?et(o):o;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:et(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(o=t[e])&&typeof o=="object"?et(o):o;return r}return t}function me(t){return typeof t[0]=="string"}function de(t){return typeof t[0]=="string"}function A(t=[]){return Array.isArray(t)?t:[t]}function ot(t){return Array.from(new Set(t))}var Mn=/^\[(.+?)~?="(.*)"\]$/,Un=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,V="$$shortcut-no-merge";function ge(t){return t.match(Mn)}function nt(t=""){return Un.test(t)}function be(t){return typeof t=="function"?{match:t}:t}function Ot(t){return t.length===3}function he(t){return t!=null}var Mt=class{_map=new Map;get(e,r){let o=this._map.get(e);if(o)return o.get(r)}getFallback(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.has(r)||n.set(r,o),n.get(r)}set(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.set(r,o),this}has(e,r){var o;return(o=this._map.get(e))==null?void 0:o.has(r)}delete(e,r){var o;return((o=this._map.get(e))==null?void 0:o.delete(r))||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>e(a,r,n)))}};var xe=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function ye(t){return xe.lastIndex=0,t.replace(xe,(e,r,o,n)=>n.split(/\s/g).map(a=>a.replace(/^(!?)(.*)/,`$1${r}${o}$2`)).join(" "))}var ve=new Set;function $e(t){ve.has(t)||(console.warn("[unocss]",t),ve.add(t))}function ke(t){let e=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let s of n){let i=t[s](o);if(i!=null)return i}};function r(o,n){return o.__options||(o.__options={sequence:[]}),o.__options.sequence.push(n),o}for(let o of Object.keys(t))Object.defineProperty(e,o,{enumerable:!0,get(){return r(this,o)}});return e}var Pn=t=>t.split(/[\s'"`;>=]+/g).filter(nt),at={name:"split",order:0,extract({code:t}){return new Set(Pn(t))}};function _n(t){return A(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Fn={shortcuts:-1,default:0};function Ut(t={},e={}){let r=Object.assign({},e,t),o=(r.presets||[]).flatMap(A),n=[...o.filter(u=>u.enforce==="pre"),...o.filter(u=>!u.enforce),...o.filter(u=>u.enforce==="post")],a=Object.assign(Fn,...o.map(u=>u.layers),t.layers);function s(u){return ot([...n.flatMap(h=>A(h[u]||[])),...A(r[u]||[])])}let i=s("extractors");i.length||i.push(at),i.sort((u,h)=>(u.order||0)-(h.order||0));let l=s("rules"),p={},f=l.length;l.forEach((u,h)=>{me(u)&&(p[u[0]]=[h,u[1],u[2]],delete l[h])});let m=et([...n.map(u=>u.theme||{}),r.theme||{}].reduce((u,h)=>At(u,h),{}));s("extendTheme").forEach(u=>u(m));let y={templates:ot(n.map(u=>{var h;return A((h=u.autocomplete)==null?void 0:h.templates)}).flat()),extractors:n.map(u=>{var h;return A((h=u.autocomplete)==null?void 0:h.extractors)}).flat().sort((u,h)=>(u.order||0)-(h.order||0))};return j(C({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:u=>u},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:m,rulesSize:f,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:y,variants:s("variants").map(be),shortcuts:_n(s("shortcuts")),extractors:i})}var we="0.30.1";var Re=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=Ut(e,r)}version=we;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.config=Ut(e,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(e,r,o=new Set){let n={get original(){return e},code:e,id:r};for(let a of this.config.extractors){let s=await a.extract(n);s==null||s.forEach(i=>o.add(i))}return o}makeContext(e,r){let o={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(e,r){var l;if(this.blocked.has(e))return;let o=`${e}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=e;for(let p of this.config.preprocess)n=p(e);if(this.isBlocked(n)){this.blocked.add(e),this._cache.set(o,null);return}let a=this.matchVariants(e,n);if(!a||this.isBlocked(a[1])){this.blocked.add(e),this._cache.set(o,null);return}let s=this.makeContext(e,[r||a[0],a[1],a[2],a[3]]),i=this.expandShortcut(s.currentSelector,s);if(i){let p=await this.stringifyShortcuts(s.variantMatch,s,i[0],i[1]);if(p!=null&&p.length)return this._cache.set(o,p),p}else{let p=(l=await this.parseUtil(s.variantMatch,s))==null?void 0:l.map(f=>this.stringifyUtil(f)).filter(he);if(p!=null&&p.length)return this._cache.set(o,p),p}this._cache.set(o,null)}async generate(e="",{id:r,scope:o,preflights:n=!0,safelist:a=!0,minify:s=!1}={}){let i=typeof e=="string"?await this.applyExtractors(e,r):e;a&&this.config.safelist.forEach(g=>i.add(g));let l=s?"":`
|
|
2
2
|
`,p=new Set(["default"]),f=new Set,m=new Map;await Promise.all(Array.from(i).map(async g=>{var $;if(f.has(g))return;let d=await this.parseToken(g);if(d!=null){f.add(g);for(let R of d){let T=R[3]||"";m.has(T)||m.set(T,[]),m.get(T).push(R),($=R[4])!=null&&$.layer&&p.add(R[4].layer)}}})),n&&this.config.preflights.forEach(g=>{g.layer&&p.add(g.layer)});let y={},u=this.config.sortLayers(Array.from(p).sort((g,d)=>{var $,R;return(($=this.config.layers[g])!=null?$:0)-((R=this.config.layers[d])!=null?R:0)||g.localeCompare(d)})),h={};if(n){let g={generator:this,theme:this.config.theme};h=Object.fromEntries(await Promise.all(u.map(async d=>{let R=(await Promise.all(this.config.preflights.filter(T=>(T.layer||"default")===d).map(async T=>await T.getCSS(g)))).filter(Boolean).join(l);return[d,R]})))}let S=g=>{if(y[g])return y[g];let d=Array.from(m).sort(($,R)=>{var T,_,b;return((T=this.parentOrders.get($[0]))!=null?T:0)-((_=this.parentOrders.get(R[0]))!=null?_:0)||((b=$[0])==null?void 0:b.localeCompare(R[0]||""))||0}).map(([$,R])=>{let T=R.length,_=R.filter(k=>{var E;return(((E=k[4])==null?void 0:E.layer)||"default")===g}).sort((k,E)=>{var I,K,D;return k[0]-E[0]||(((I=k[4])==null?void 0:I.sort)||0)-(((K=E[4])==null?void 0:K.sort)||0)||((D=k[1])==null?void 0:D.localeCompare(E[1]||""))||0}).map(k=>{var E;return[k[1]?Wn(k[1],o):k[1],k[2],!!((E=k[4])!=null&&E.noMerge)]}).map(k=>[k[0]==null?k[0]:[k[0]],k[1],k[2]]);if(!_.length)return;let b=_.reverse().map(([k,E,I],K)=>{if(!I&&k&&this.config.mergeSelectors)for(let D=K+1;D<T;D++){let J=_[D];if(J&&!J[2]&&J[0]&&J[1]===E)return J[0].push(...k),null}return k?`${[...new Set(k)].join(`,${l}`)}{${E}}`:E}).filter(Boolean).reverse().join(l);return $?`${$}{${l}${b}${l}}`:b}).filter(Boolean).join(l);return n&&(d=[h[g],d].filter(Boolean).join(l)),y[g]=!s&&d?`/* layer: ${g} */${l}${d}`:d},v=(g=u,d)=>g.filter($=>!(d!=null&&d.includes($))).map($=>S($)||"").filter(Boolean).join(l);return{get css(){return v()},layers:u,getLayers:v,getLayer:S,matched:f}}matchVariants(e,r){let o=new Set,n=[],a=r||e,s=!1,i={rawSelector:e,theme:this.config.theme,generator:this};for(;;){s=!1;for(let l of this.config.variants){if(!l.multiPass&&o.has(l))continue;let p=l.match(a,i);if(!!p){typeof p=="string"&&(p={matcher:p}),a=p.matcher,Array.isArray(p.parent)&&this.parentOrders.set(p.parent[0],p.parent[1]),n.push(p),o.add(l),s=!0;break}}if(!s)break;if(n.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,a,n,o]}applyVariants(e,r=e[4],o=e[1]){let n=[...r].sort((i,l)=>(i.order||0)-(l.order||0)),a=n.reduce((i,l)=>{var p;return((p=l.body)==null?void 0:p.call(l,i))||i},e[2]),s={selector:n.reduce((i,l)=>{var p;return((p=l.selector)==null?void 0:p.call(l,i,a))||i},Nn(o)),entries:a,parent:n.reduce((i,l)=>Array.isArray(l.parent)?l.parent[0]:l.parent||i,void 0),layer:n.reduce((i,l)=>l.layer||i,void 0),sort:n.reduce((i,l)=>l.sort||i,void 0)};for(let i of this.config.postprocess)i(s);return s}constructCustomCSS(e,r,o){r=rt(r);let{selector:n,entries:a,parent:s}=this.applyVariants([0,o||e.rawSelector,r,void 0,e.variantHandlers]),i=`${n}{${ht(a)}}`;return s?`${s}{${i}}`:i}async parseUtil(e,r,o=!1){var f,m;let[n,a,s]=typeof e=="string"?this.matchVariants(e):e,i=this.config.rulesStaticMap[a];if(i&&i[1]&&(o||!((f=i[2])!=null&&f.internal)))return[[i[0],n,rt(i[1]),i[2],s]];r.variantHandlers=s;let{rulesDynamic:l,rulesSize:p}=this.config;for(let y=p-1;y>=0;y--){let u=l[y];if(!u||((m=u[2])==null?void 0:m.internal)&&!o)continue;let[h,S,v]=u,g=a.match(h);if(!g)continue;let d=await S(g,r);if(!d)continue;if(typeof d=="string")return[[y,d,v]];let $=fe(d).filter(R=>R.length);if($.length)return $.map(R=>[y,n,R,v,s])}}stringifyUtil(e){var y;if(!e)return;if(Ot(e))return[e[0],void 0,e[1],void 0,e[2]];let{selector:r,entries:o,parent:n,layer:a,sort:s}=this.applyVariants(e),i=ht(o);if(!i)return;let u=(y=e[3])!=null?y:{},{layer:l,sort:p}=u,f=le(u,["layer","sort"]),m=j(C({},f),{layer:a!=null?a:l,sort:s!=null?s:p});return[e[0],r,i,n,m]}expandShortcut(e,r,o=3){if(o===0)return;let n,a;for(let s of this.config.shortcuts)if(de(s)){if(s[0]===e){n=n||s[2],a=s[1];break}}else{let i=e.match(s[0]);if(i&&(a=s[1](i,r)),a){n=n||s[2];break}}if(typeof a=="string"&&(a=ye(a).split(/\s+/g)),!!a)return[a.flatMap(s=>{var i;return((i=this.expandShortcut(s,r,o-1))==null?void 0:i[0])||[s]}).filter(s=>s!==""),n]}async stringifyShortcuts(e,r,o,n={layer:this.config.shortcutsLayer}){var p;let a=new Mt,s=(await Promise.all(ot(o).map(async f=>{let m=await this.parseUtil(f,r,!0);return m||$e(`unmatched utility "${f}" in shortcut "${e[1]}"`),m||[]}))).flat(1).filter(Boolean).sort((f,m)=>f[0]-m[0]),[i,,l]=e;for(let f of s){if(Ot(f))continue;let{selector:m,entries:y,parent:u,sort:h}=this.applyVariants(f,[...f[4],...l],i);a.getFallback(m,u,[[],f[0]])[0].push([y,!!((p=f[3])!=null&&p.noMerge),h!=null?h:0])}return a.map(([f,m],y,u)=>{let h=(v,g,d)=>{let $=Math.max(...d.map(T=>T[1])),R=d.map(T=>T[0]);return(v?[R.flat(1)]:R).map(T=>{let _=ht(T);if(_)return[m,y,_,u,j(C({},n),{noMerge:g,sort:$})]})};return[[f.filter(([,v])=>v).map(([v,,g])=>[v,g]),!0],[f.filter(([,v])=>!v).map(([v,,g])=>[v,g]),!1]].map(([v,g])=>[...h(!1,g,v.filter(([d])=>d.some($=>$[0]===V))),...h(!0,g,v.filter(([d])=>d.every($=>$[0]!==V)))])}).flat(2).filter(Boolean)}isBlocked(e){return!e||this.config.blocklist.some(r=>typeof r=="string"?r===e:r.test(e))}};function Ce(t,e){return new Re(t,e)}var ze=/ \$\$ /,Ln=t=>t.match(ze);function Wn(t,e){return Ln(t)?t.replace(ze,e?` ${e} `:" "):e?`${e} ${t}`:t}var Se=/^\[(.+?)(~?=)"(.*)"\]$/;function Nn(t){return Se.test(t)?t.replace(Se,(e,r,o,n)=>`[${bt(r)}${o}"${bt(n)}"]`):`.${bt(t)}`}var Ft={};Sn(Ft,{auto:()=>Kn,bracket:()=>Jn,bracketOfColor:()=>Qn,bracketOfLength:()=>ta,cssvar:()=>ea,degree:()=>oa,fraction:()=>Zn,global:()=>na,number:()=>Yn,numberWithUnit:()=>In,percent:()=>qn,properties:()=>aa,px:()=>Xn,rem:()=>Gn,time:()=>ra});var Hn=["color","border-color","background-color","flex-grow","flex","flex-shrink","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","backround-position","left","right","top","bottom","object-position","max-height","min-height","max-width","min-width","height","width","border-width","margin","padding","outline-width","outline-offset","font-size","line-height","text-indent","vertical-align","border-spacing","letter-spacing","word-spacing","stroke","filter","backdrop-filter","fill","mask","mask-size","mask-border","clip-path","clip","border-radius"],Pt=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,Bn=/^(-?[0-9.]+)$/i,Te=/^(px)$/i;function F(t){return t.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function In(t){let e=t.match(Pt);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(o&&!Number.isNaN(n))return`${F(n)}${o}`}function Kn(t){if(t==="auto"||t==="a")return"auto"}function Gn(t){if(t.match(Te))return`1${t}`;let e=t.match(Pt);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${F(n)}${o}`:`${F(n/4)}rem`}function Xn(t){if(t.match(Te))return`1${t}`;let e=t.match(Pt);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${F(n)}${o}`:`${F(n)}px`}function Yn(t){if(!Bn.test(t))return;let e=parseFloat(t);if(!Number.isNaN(e))return F(e)}function qn(t){t.endsWith("%")&&(t=t.slice(0,-1));let e=parseFloat(t);if(!Number.isNaN(e))return`${F(e/100)}`}function Zn(t){if(t==="full")return"100%";let[e,r]=t.split("/"),o=parseFloat(e)/parseFloat(r);if(!Number.isNaN(o))return`${F(o*100)}%`}function _t(t,e){if(t&&t.startsWith("[")&&t.endsWith("]")){let r,o=t.match(/^\[(color|length):/i);if(o?e&&o[1]===e&&(r=t.slice(o[0].length,-1)):r=t.slice(1,-1),r!==void 0)return r.replace(/(url\(.*?\))/g,n=>n.replace(/_/g,"\\_")).replace(/([^\\])_/g,"$1 ").replace(/calc\((.*)/g,n=>n.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}}function Jn(t){return _t(t)}function Qn(t){return _t(t,"color")}function ta(t){return _t(t,"length")}function ea(t){if(t.match(/^\$\S/))return`var(--${jt(t.slice(1))})`}function ra(t){let e=t.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${F(n)}${o}`:`${F(n)}ms`}function oa(t){let e=t.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${F(n)}${o}`:`${F(n)}deg`}function na(t){if(["inherit","initial","revert","unset"].includes(t))return t}function aa(t){for(let e of t.split(","))if(!Hn.includes(e))return;return t}var c=ke(Ft);var L=(t,e)=>{let r=new RegExp(`^${tt(t)}[:-]`);return{match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),selector:e}},autocomplete:`${t}:`}},P=(t,e)=>{let r=new RegExp(`^${tt(t)}[:-]`);return{match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),parent:e}},autocomplete:`${t}:`}};var z=t=>([e,r,o],{theme:n})=>{var s,i;let a=(i=(s=n.spacing)==null?void 0:s[o||"DEFAULT"])!=null?i:c.bracket.cssvar.auto.fraction.rem(o);if(a!=null)return O[r].map(l=>[`${t}${l}`,a])},Dt=(t,e)=>{var r;return(r=t.colors)==null?void 0:r[e.join("-").replace(/(-[a-z])/g,o=>o.slice(1).toUpperCase())]},X=(t,e)=>{let r=t.split(/(?:\/|:)/),o,n;r[0]==="[color"?(o=r.slice(0,2).join(":"),n=r[2]):[o,n]=r;let a=o.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[s]=a;if(!s)return;let i,l=c.bracketOfColor(o),p=l||o;p.startsWith("#")?i=p:p.startsWith("hex-")?i=`#${p.slice(4)}`:o.startsWith("$")&&(i=c.cssvar(o)),i=i||l;let f="DEFAULT";if(!i){let m,[y]=a.slice(-1);y.match(/^\d+$/)?(f=y,m=Dt(e,a.slice(0,-1))):(m=Dt(e,a),!m&&a.length<=2&&([,f=f]=a,m=Dt(e,[s]))),typeof m=="string"?i=m:f&&m&&(i=m[f])}return{opacity:n,name:s,no:f,color:i,cssColor:G(i),alpha:c.bracket.cssvar.percent(n!=null?n:"")}},w=(t,e)=>([,r],{theme:o})=>{var l;let n=X(r,o);if(!n)return;let{alpha:a,color:s,cssColor:i}=n;if(i)return a!=null?{[t]:M(i,a)}:{[`--un-${e}-opacity`]:(l=i.alpha)!=null?l:1,[t]:M(i,`var(--un-${e}-opacity)`)};if(s)return{[t]:s.replace("%alpha",`${a!=null?a:1}`)}},Y=(t,e)=>{let r=[];t=A(t);for(let o=0;o<t.length;o++){let n=Q(t[o]," ",6);if(!n||n.length<3)return t;let a=G(n.pop());if(a==null)return t;r.push(`${n.join(" ")} var(${e}, ${M(a)})`)}return r},xt=(t,e)=>{var r;return t!=null&&!!((r=X(t,e))!=null&&r.color)};var Ee=[[/^(?:animate-)?keyframes-(.+)$/,([,t],{theme:e,constructCSS:r})=>{var n,a;let o=(a=(n=e.animation)==null?void 0:n.keyframes)==null?void 0:a[t];if(o)return`@keyframes ${t}${o}
|
|
3
3
|
${r({animation:`${t}`})}`}],[/^animate-(.+)$/,([,t],{theme:e,constructCSS:r})=>{var n,a,s,i,l,p,f,m,y,u;let o=(a=(n=e.animation)==null?void 0:n.keyframes)==null?void 0:a[t];if(o){let h=(l=(i=(s=e.animation)==null?void 0:s.durations)==null?void 0:i[t])!=null?l:"1s",S=(m=(f=(p=e.animation)==null?void 0:p.timingFns)==null?void 0:f[t])!=null?m:"linear",v=(u=(y=e.animation)==null?void 0:y.properties)==null?void 0:u[t];return`@keyframes ${t}${o}
|
|
4
4
|
${r(Object.assign({animation:`${t} ${h} ${S} infinite`},v))}`}return{animation:c.bracket.cssvar(t)}}],[/^animate-name-(.+)/,([,t])=>{var e;return{"animation-name":(e=c.bracket.cssvar(t))!=null?e:t}}],[/^animate-duration-(.+)$/,([,t],{theme:e})=>{var r,o;return{"animation-duration":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar.time(t)}}],[/^animate-delay-(.+)$/,([,t],{theme:e})=>{var r,o;return{"animation-delay":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar.time(t)}}],[/^animate-ease(?:-(.+))?$/,([,t],{theme:e})=>{var r,o;return{"animation-timing-function":(o=(r=e.easing)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar(t)}}],[/^animate-(?:fill-|mode-|fill-mode-)?(none|forwards|backwards|both|inherit|initial|revert|unset)$/,([,t])=>({"animation-fill-mode":t})],[/^animate-(?:direction-)?(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)$/,([,t])=>({"animation-direction":t})],[/^animate-(?:iteration-|count-|iteration-count-)(.+)$/,([,t])=>{var e;return{"animation-iteration-count":(e=c.bracket.cssvar(t))!=null?e:t.replace(/\-/g,",")}}],[/^animate-(?:play-|state-|play-state-)?(paused|running|inherit|initial|revert|unset)$/,([,t])=>({"animation-play-state":t})],["animate-none",{animation:"none"}]];var Lt=t=>([,e],{theme:r})=>{var l;let o=X(e,r);if(!o)return;let{alpha:n,color:a,cssColor:s}=o;if(!a)return;let i=a;switch(s&&(n!=null?i=M(s,n):i=M(s,`var(--un-${t}-opacity, ${(l=s.alpha)!=null?l:1})`)),t){case"from":return{"--un-gradient-from":i,"--un-gradient-stops":"var(--un-gradient-from), var(--un-gradient-to, rgba(255, 255, 255, 0))"};case"via":return{"--un-gradient-stops":`var(--un-gradient-from), ${i}, var(--un-gradient-to, rgba(255, 255, 255, 0))`};case"to":return{"--un-gradient-to":i}}},je=[[/^bg-gradient-(.+)$/,([,t])=>({"--un-gradient":c.bracket(t)})],[/^(?:bg-gradient-)?stops-(\[.+\])$/,([,t])=>({"--un-gradient-stops":c.bracket(t)})],[/^(?:bg-gradient-)?from-(.+)$/,Lt("from")],[/^(?:bg-gradient-)?to-(.+)$/,Lt("to")],[/^(?:bg-gradient-)?via-(.+)$/,Lt("via")],[/^(?:bg-gradient-)?from-op(?:acity)?-?(.+)$/,([,t])=>({"--un-from-opacity":c.bracket.percent(t)})],[/^(?:bg-gradient-)?to-op(?:acity)?-?(.+)$/,([,t])=>({"--un-to-opacity":c.bracket.percent(t)})],[/^(?:bg-gradient-)?via-op(?:acity)?-?(.+)$/,([,t])=>({"--un-via-opacity":c.bracket.percent(t)})],[/^bg-gradient-((?:repeating-)?(?:linear|radial|conic))$/,([,t])=>({"background-image":`${t}-gradient(var(--un-gradient, var(--un-gradient-stops, rgba(255, 255, 255, 0))))`})],[/^bg-gradient-to-([rltb]{1,2})$/,([,t])=>{if(t in U)return{"--un-gradient-shape":`to ${U[t]}`,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)","background-image":"linear-gradient(var(--un-gradient))"}}],[/^(?:bg-gradient-)?shape-(.+)$/,([,t])=>{let e=t in U?`to ${U[t]}`:c.bracket(t);if(e!=null)return{"--un-gradient-shape":e,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)"}}],["bg-none",{"background-image":"none"}],["box-decoration-slice",{"box-decoration-break":"slice"}],["box-decoration-clone",{"box-decoration-break":"clone"}],["bg-auto",{"background-size":"auto"}],["bg-cover",{"background-size":"cover"}],["bg-contain",{"background-size":"contain"}],["bg-fixed",{"background-attachment":"fixed"}],["bg-local",{"background-attachment":"local"}],["bg-scroll",{"background-attachment":"scroll"}],["bg-clip-border",{"-webkit-background-clip":"border-box","background-attachment":"border-box"}],["bg-clip-content",{"-webkit-background-clip":"content-box","background-attachment":"content-box"}],["bg-clip-padding",{"-webkit-background-clip":"padding-box","background-attachment":"padding-box"}],["bg-clip-text",{"-webkit-background-clip":"text","background-attachment":"text"}],[/^bg-([-\w]{3,})$/,([,t])=>({"background-position":U[t]})],["bg-repeat",{"background-repeat":"repeat"}],["bg-no-repeat",{"background-repeat":"no-repeat"}],["bg-repeat-x",{"background-position":"repeat-x"}],["bg-repeat-y",{"background-position":"repeat-y"}],["bg-repeat-round",{"background-position":"round"}],["bg-repeat-space",{"background-position":"space"}],["bg-origin-border",{"background-origin":"border-box"}],["bg-origin-padding",{"background-origin":"padding-box"}],["bg-origin-content",{"background-origin":"content-box"}]];var Ve=[[/^list-(disc|circle|square|decimal|zero-decimal|greek|roman|upper-roman|alpha|upper-alpha)(?:-(outside|inside))?$/,([,t,e])=>e!=null?{"list-style-position":e,"list-style-type":t}:{"list-style-type":t}],["list-outside",{"list-style-position":"outside"}],["list-inside",{"list-style-position":"inside"}],["list-none",{"list-style-type":"none"}]],Ae=[[/^accent-(.+)$/,w("accent-color","accent")],[/^accent-op(?:acity)?-?(.+)$/,([,t])=>({"--un-accent-opacity":c.bracket.percent(t)})]],Oe=[[/^caret-(.+)$/,w("caret-color","caret")],[/^caret-op(?:acity)?-?(.+)$/,([,t])=>({"--un-caret-opacity":c.bracket.percent(t)})]],Me=[["image-render-auto",{"image-rendering":"auto"}],["image-render-edge",{"image-rendering":"crisp-edges"}],["image-render-pixel",[["-ms-interpolation-mode","nearest-neighbor"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-pixelated"],["image-rendering","pixelated"]]]],Ue=[["overscroll-auto",{"overscroll-behavior":"auto"}],["overscroll-contain",{"overscroll-behavior":"contain"}],["overscroll-none",{"overscroll-behavior":"none"}],["overscroll-x-auto",{"overscroll-behavior-x":"auto"}],["overscroll-x-contain",{"overscroll-behavior-x":"contain"}],["overscroll-x-none",{"overscroll-behavior-x":"none"}],["overscroll-y-auto",{"overscroll-behavior-y":"auto"}],["overscroll-y-contain",{"overscroll-behavior-y":"contain"}],["overscroll-y-none",{"overscroll-behavior-y":"none"}]],Pe=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}]];var _e=[[/^columns-(.+)$/,([,t])=>({columns:c.bracket.global.number.auto.numberWithUnit(t)})],["break-before-auto",{"break-before":"auto"}],["break-before-avoid",{"break-before":"avoid"}],["break-before-all",{"break-before":"all"}],["break-before-avoid-page",{"break-before":"avoid-page"}],["break-before-page",{"break-before":"page"}],["break-before-left",{"break-before":"left"}],["break-before-right",{"break-before":"right"}],["break-before-column",{"break-before":"column"}],["break-inside-auto",{"break-inside":"auto"}],["break-inside-avoid",{"break-inside":"avoid"}],["break-inside-avoid-page",{"break-inside":"avoid-page"}],["break-inside-avoid-column",{"break-inside":"avoid-column"}],["break-after-auto",{"break-after":"auto"}],["break-after-avoid",{"break-after":"avoid"}],["break-after-all",{"break-after":"all"}],["break-after-avoid-page",{"break-after":"avoid-page"}],["break-after-page",{"break-after":"page"}],["break-after-left",{"break-after":"left"}],["break-after-right",{"break-after":"right"}],["break-after-column",{"break-after":"column"}]];var ia=/@media \(min-width: (.+)\)/,Fe=[[/^__container$/,(t,{variantHandlers:e})=>{var o;let r="100%";for(let n of e){let a=A(n.parent||[])[0];if(typeof a=="string"){let s=(o=a.match(ia))==null?void 0:o[1];s&&(r=s)}}return{"max-width":r}},{internal:!0}]],De=[[/^(?:(\w+)[:-])?container$/,([,t],{theme:e})=>{let r=Object.keys(e.breakpoints||{});if(t){if(!r.includes(t))return;r=r.slice(r.indexOf(t))}let o=r.map(n=>`${n}:__container`);return t||o.unshift("__container"),o}]];var sa={mid:"middle",base:"baseline",btm:"bottom"},Le=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,t])=>({"vertical-align":sa[t]||t}),{autocomplete:"(vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)"}]],We=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var Ne=[[/^outline-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r,o;return{"outline-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.bracket.cssvar.px(t)}},{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,w("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,t],{theme:e})=>{var r,o;return{"outline-offset":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.bracket.cssvar.px(t)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],[/^outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)$/,([,t])=>({"outline-style":t}),{autocomplete:"outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)"}],["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],He=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],ca=t=>{var e;return(e=c.properties.auto.global(t))!=null?e:{contents:"contents",scroll:"scroll-position"}[t]},Be=[[/^will-change-(.+)/,([,t])=>({"will-change":ca(t)})]];var Ie=[[/^(?:border|b)()(?:-(.+))?$/,it,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,it],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,it],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,it],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,it],[/^(?:border|b)-()(?:width|size)-(.+)$/,q,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,q],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,q],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,q],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,q],[/^(?:border|b)-()(?:color-)?(.+)$/,st,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,st],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,st],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,st],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,st],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,ct,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,ct],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,ct],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,ct],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,ct],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,lt,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,lt],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,lt],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,lt],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,lt],["border-solid",{"border-style":"solid"}],["border-dashed",{"border-style":"dashed"}],["border-dotted",{"border-style":"dotted"}],["border-double",{"border-style":"double"}],["border-hidden",{"border-style":"hidden"}],["border-none",{"border-style":"none"}]],la=t=>([,e],r)=>{var i,l;let o=X(e,r);if(!o)return;let{alpha:n,color:a,cssColor:s}=o;if(s)return n!=null?{[`border${t}-color`]:M(s,n)}:t===""?{"--un-border-opacity":(i=s.alpha)!=null?i:1,[`border${t}-color`]:M(s,`var(--un-border${t}-opacity)`)}:{"--un-border-opacity":(l=s.alpha)!=null?l:1,[`--un-border${t}-opacity`]:"var(--un-border-opacity)",[`border${t}-color`]:M(s,`var(--un-border${t}-opacity)`)};if(a)return{[`border${t}-color`]:a.replace("%alpha",`${n!=null?n:1}`)}};function it(t,e){let r=q(t,e);if(r)return[...r,["border-style","solid"]]}function q([,t="",e],{theme:r}){var n,a;let o=(a=(n=r.lineWidth)==null?void 0:n[e||"DEFAULT"])!=null?a:c.bracket.cssvar.px(e||"1");if(t in O&&o!=null)return O[t].map(s=>[`border${s}-width`,o])}function st([,t="",e],{theme:r}){if(t in O&&xt(e,r))return Object.assign({},...O[t].map(o=>la(o)(["",e],r)))}function ct([,t="",e]){let r=c.bracket.percent(e);if(t in O&&r!=null)return O[t].map(o=>[`--un-border${o}-opacity`,r])}function lt([,t="",e],{theme:r}){var n;let o=((n=r.borderRadius)==null?void 0:n[e||"DEFAULT"])||c.bracket.cssvar.fraction.rem(e||"1");if(t in Tt&&o!=null)return Tt[t].map(a=>[`border${a}-radius`,o])}var Ke=[[/^op(?:acity)?-?(.+)$/,([,t])=>({opacity:c.bracket.percent.cssvar(t)})]],Ge=[[/^(?:text|color|c)-(.+)$/,w("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-opacity":c.bracket.percent(t)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],Xe=[[/^bg-(.+)$/,w("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,t])=>({"--un-bg-opacity":c.bracket.percent(t)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var yt={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},Ye=t=>{var e;return(e=c.properties(t))!=null?e:yt[t]},qe=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,t,e],{theme:r})=>{var n,a;let o=t!=null?Ye(t):[yt.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(o){let s=(a=(n=r.duration)==null?void 0:n[e||"DEFAULT"])!=null?a:c.time(e||"150");return{"transition-property":o,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":s}}},{autocomplete:`transition-(${Object.keys(yt).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,t],{theme:e})=>{var r,o;return{"transition-duration":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar.time(t)}},{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,t],{theme:e})=>{var r,o;return{"transition-delay":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar.time(t)}},{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,t],{theme:e})=>{var r,o;return{"transition-timing-function":(o=(r=e.easing)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar(t)}},{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,t])=>({"transition-property":c.global(t)||Ye(t)}),{autocomplete:[`transition-property-(${["inherit","initial","revert","unset",...Object.keys(yt)].join("|")})`]}],["transition-none",{transition:"none"}]];var Ze=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,t])=>({flex:c.bracket(t)!=null?c.bracket(t).split(" ").map(e=>{var r;return(r=c.cssvar.fraction(e))!=null?r:e}).join(" "):c.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$/,()=>({"flex-shrink":1})],[/^(?:flex-)?shrink-0$/,()=>({"flex-shrink":0})],[/^(?:flex-)?grow$/,()=>({"flex-grow":1})],[/^(?:flex-)?grow-0$/,()=>({"flex-grow":0})],[/^(?:flex-)?basis-(.+)$/,([,t],{theme:e})=>{var r,o;return{"flex-basis":(o=(r=e.spacing)==null?void 0:r[t])!=null?o:c.bracket.cssvar.auto.fraction.rem(t)}}],["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 Je={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Qe=[[/^font-(\w+)$/,([,t],{theme:e})=>{var r;return{"font-family":((r=e.fontFamily)==null?void 0:r[t])||c.global(t)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,t="base"],{theme:e})=>{var o;let r=A((o=e.fontSize)==null?void 0:o[t]);if(r!=null&&r[0]){let[n,a="1"]=r;return{"font-size":n,"line-height":a}}return{"font-size":c.bracketOfLength.rem(t)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,t],{theme:e})=>{var n,a;let r=A((n=e.fontSize)==null?void 0:n[t]),o=(a=r==null?void 0:r[0])!=null?a:c.bracket.cssvar.rem(t);if(o!=null)return{"font-size":o}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,t])=>({"font-weight":Je[t]||c.global.number(t)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(Je).join("|")})`}],[/^(?:leading|lh)-(.+)$/,([,t],{theme:e})=>{var r;return{"line-height":((r=e.lineHeight)==null?void 0:r[t])||c.bracket.cssvar.global.rem(t)}},{autocomplete:"(leading|lh)-$lineHeight"}],[/^tracking-(.+)$/,([,t],{theme:e})=>{var r;return{"letter-spacing":((r=e.letterSpacing)==null?void 0:r[t])||c.bracket.cssvar.global.rem(t)}},{autocomplete:"tracking-$letterSpacing"}],[/^word-spacing-(.+)$/,([,t],{theme:e})=>{var r;return{"word-spacing":((r=e.wordSpacing)==null?void 0:r[t])||c.bracket.cssvar.global.rem(t)}},{autocomplete:"word-spacing-$wordSpacing"}]],tr=[[/^tab(?:-(.+))?$/,([,t])=>{let e=c.bracket.cssvar.global.number(t||"4");if(e!=null)return{"-moz-tab-size":e,"-o-tab-size":e,"tab-size":e}}]],er=[[/^indent(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"text-indent":((r=e.textIndent)==null?void 0:r[t||"DEFAULT"])||c.bracket.cssvar.global.fraction.rem(t)}},{autocomplete:"indent-$textIndent"}]],rr=[[/^text-stroke(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"-webkit-text-stroke-width":((r=e.textStrokeWidth)==null?void 0:r[t||"DEFAULT"])||c.bracket.cssvar.px(t)}},{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,w("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-stroke-opacity":c.bracket.percent(t)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],or=[[/^text-shadow(?:-(.+))?$/,([,t],{theme:e})=>{var o;let r=(o=e.textShadow)==null?void 0:o[t||"DEFAULT"];return r!=null?{"--un-text-shadow":Y(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":c.bracket.cssvar(t)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,w("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-shadow-opacity":c.bracket.percent(t)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var nr={"":"",x:"column-",y:"row-"},ar=([,t="",e],{theme:r})=>{var n,a;let o=(a=(n=r.spacing)==null?void 0:n[e])!=null?a:c.bracket.cssvar.rem(e);if(o!=null)return{[`grid-${nr[t]}gap`]:o,[`${nr[t]}gap`]:o}},ir=[[/^(?:flex-|grid-)?gap-?()(.+)$/,ar,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,ar,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var W=t=>t.replace("col","column"),Wt=t=>t[0]==="r"?"Row":"Column",pa=(t,e,r)=>{var n;let o=(n=e[`gridAuto${Wt(t)}`])==null?void 0:n[r];if(o!=null)return o;switch(r){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return c.bracket.cssvar.auto.rem(r)},sr=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,t,e],{theme:r})=>{var o,n;return{[`grid-${W(t)}`]:(n=(o=r[`grid${Wt(t)}`])==null?void 0:o[e])!=null?n:c.bracket.cssvar.auto(e)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,t,e])=>{if(e==="full")return{[`grid-${W(t)}`]:"1/-1"};let r=c.bracket.number(e);if(r!=null)return{[`grid-${W(t)}`]:`span ${r}/span ${r}`}},{autocomplete:["grid-(row|col)-span-<num>","(row|col)-span-<num>"]}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,t,e])=>{var r;return{[`grid-${W(t)}-start`]:(r=c.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,t,e])=>{var r;return{[`grid-${W(t)}-end`]:(r=c.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-auto-${W(t)}`]:pa(t,r,e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,t])=>({"grid-auto-flow":c.bracket.cssvar(t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-((?:row|col)(?:-dense)?)$/,([,t])=>({"grid-auto-flow":W(t).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>{var o,n;return{[`grid-template-${W(t)}`]:(n=(o=r[`gridTemplate${Wt(t)}`])==null?void 0:o[e])!=null?n:c.bracket.cssvar(e)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,t,e])=>({[`grid-template-${W(t)}`]:`repeat(auto-fill,minmax(${e},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,t,e])=>({[`grid-template-${W(t)}`]:`repeat(${e},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var vt=["auto","hidden","clip","visible","scroll"],cr=[[/^(?:overflow|of)-(.+)$/,([,t])=>vt.includes(t)?{overflow:t}:void 0,{autocomplete:[`(overflow|of)-${vt.join("|")}`,`(overflow|of)-(x|y)-${vt.join("|")}`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,t,e])=>vt.includes(e)?{[`overflow-${t}`]:e}:void 0]];var lr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,t])=>({position:t})],[/^(?:position-|pos-)?(static)$/,([,t])=>({position:t})]],pr=[["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-items-start",{"justify-items":"start"}],["justify-items-end",{"justify-items":"end"}],["justify-items-center",{"justify-items":"center"}],["justify-items-stretch",{"justify-items":"stretch"}],["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"}]],ur=[[/^order-(.+)$/,([,t])=>({order:c.bracket.cssvar.number(t)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],fr=[["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"}],["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"}],["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"}]],mr=[["place-content-center",{"place-content":"center"}],["place-content-start",{"place-content":"start"}],["place-content-end",{"place-content":"end"}],["place-content-between",{"place-content":"space-between"}],["place-content-around",{"place-content":"space-around"}],["place-content-evenly",{"place-content":"space-evenly"}],["place-content-stretch",{"place-content":"stretch"}],["place-items-start",{"place-items":"start"}],["place-items-end",{"place-items":"end"}],["place-items-center",{"place-items":"center"}],["place-items-stretch",{"place-items":"stretch"}],["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"}]];function Nt(t,{theme:e}){var r,o;return(o=(r=e.spacing)==null?void 0:r[t])!=null?o:c.bracket.cssvar.auto.fraction.rem(t)}function $t([,t,e],r){let o=Nt(e,r);if(o!=null&&t in zt)return zt[t].map(n=>[n.slice(1),o])}var dr=[[/^(?:position-|pos-)?inset-(.+)$/,([,t],e)=>({inset:Nt(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-)?inset-([xy])-(.+)$/,$t],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,$t],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,$t],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,$t],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,t,e],r)=>({[t]:Nt(e,r)})]],gr=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-none",{float:"none"}],["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-none",{clear:"none"}]],br=[[/^z([\d.]+)$/,([,t])=>({"z-index":c.number(t)})],[/^z-(.+)$/,([,t])=>({"z-index":c.bracket.cssvar.auto.number(t)}),{autocomplete:"z-<num>"}]],hr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var x="var(--un-empty,/*!*/ /*!*/)",xr=[["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:c.bracket.cssvar(t)||t})]],yr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],vr=[[/^cursor-(.+)$/,([,t])=>({cursor:c.bracket.cssvar(t)||t})]],$r=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],kr=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],wr=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],Sr=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,t])=>({"white-space":t}),{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)"}]];var Rr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Cr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]];var zr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}]],Tr=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto","font-smoothing":"auto"}]];var Er=[[/^ring(?:-(.+))?$/,([,t],{theme:e})=>{var o,n;let r=(n=(o=e.ringWidth)==null?void 0:o[t||"DEFAULT"])!=null?n:c.px(t||"1");if(r)return[{[V]:"","--un-ring-inset":x,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgba(147,197,253,0.5)"},{"--un-ring-width":r,"--un-ring-offset-shadow":"var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)","--un-ring-shadow":"var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color)","box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow, 0 0 #0000)"}]},{autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,([,t],{theme:e})=>{var r,o;return{"--un-ring-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.bracket.cssvar.px(t)}},{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r,o;return{"--un-ring-offset-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.bracket.cssvar.px(t)}},{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,w("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-opacity":c.bracket.percent(t)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,w("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-offset-opacity":c.bracket.percent(t)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var jr=[[/^shadow(?:-(.+))?$/,([,t],{theme:e})=>{var o;let r=(o=e.boxShadow)==null?void 0:o[t||"DEFAULT"];if(r)return[{[V]:"","--un-shadow-inset":x,"--un-shadow":"0 0 #0000"},{"--un-shadow":Y(r,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"}]},{autocomplete:"shadow-$boxShadow"}],[/^shadow-(.+)$/,w("--un-shadow-color","shadow"),{autocomplete:"shadow-$colors"}],[/^shadow-op(?:acity)?-?(.+)$/,([,t])=>({"--un-shadow-opacity":c.bracket.percent(t)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var ua={h:"height",w:"width",inline:"inline-size",block:"block-size"};function pt(t,e){return`${t||""}${ua[e]}`}function Vr(t,e,r,o){var s;let n=pt(t,e).replace(/-(\w)/g,(i,l)=>l.toUpperCase()),a=(s=r[n])==null?void 0:s[o];if(a!=null)return a;switch(o){case"fit":case"max":case"min":return`${o}-content`}return c.bracket.cssvar.auto.fraction.rem(o)}var Ar=[[/^(min-|max-)?([wh])-?(.+)$/,([,t,e,r],{theme:o})=>({[pt(t,e)]:Vr(t,e,o,r)}),{autocomplete:["(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"]}],[/^(min-|max-)?(block|inline)-(.+)$/,([,t,e,r],{theme:o})=>({[pt(t,e)]:Vr(t,e,o,r)}),{autocomplete:["(w|h)-(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h)-(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"]}],[/^(min-|max-)?(h)-screen-(.+)$/,([,t,e,r],{theme:o})=>{var n;return{[pt(t,e)]:(n=o.verticalBreakpoints)==null?void 0:n[r]}},{autocomplete:["h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints"]}],[/^(min-|max-)?(w)-screen-(.+)$/,([,t,e,r],{theme:o})=>{var n;return{[pt(t,e)]:(n=o.breakpoints)==null?void 0:n[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function fa(t){if(/^\d+\/\d+$/.test(t))return t;switch(t){case"square":return"1/1";case"video":return"16/9"}return c.bracket.cssvar.auto.number(t)}var Or=[[/^aspect-(?:ratio-)?(.+)$/,([,t])=>({"aspect-ratio":fa(t)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var Mr=[[/^pa?()-?(-?.+)$/,z("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?([xy])-?(-?.+)$/,z("padding")],[/^p-?([rltbse])-?(-?.+)$/,z("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)-(-?.+)$/,z("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])-?(-?.+)$/,z("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],Ur=[[/^ma?()-?(-?.+)$/,z("margin")],[/^m-?([xy])-?(-?.+)$/,z("margin")],[/^m-?([rltbse])-?(-?.+)$/,z("margin")],[/^m-(block|inline)-(-?.+)$/,z("margin")],[/^m-?([bi][se])-?(-?.+)$/,z("margin")]];var ma={"--un-transform":["translate3d(var(--un-translate-x), var(--un-translate-y), var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" ")},Dr={"--un-transform":["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(" ")},Z=j(C({"--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},Dr),{[V]:""}),Lr=[[/^(?:transform-)?origin-(.+)$/,([,t])=>{var e;return{"transform-origin":(e=U[t])!=null?e:c.bracket.cssvar(t)}},{autocomplete:[`transform-origin-(${Object.keys(U).join("|")})`,`origin-(${Object.keys(U).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,t])=>{let e=c.bracket.cssvar.px.numberWithUnit(t);if(e!=null)return{"-webkit-perspective":e,perspective:e}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,t])=>{var r;let e=(r=c.bracket.cssvar(t))!=null?r:t.length>=3?U[t]:void 0;if(e!=null)return{"-webkit-perspective-origin":e,"perspective-origin":e}}],[/^(?:transform-)?translate-()(.+)$/,Pr],[/^(?:transform-)?translate-([xyz])-(.+)$/,Pr],[/^(?:transform-)?rotate-()(.+)$/,Fr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Fr],[/^(?:transform-)?skew-([xy])-(.+)$/,da],[/^(?:transform-)?scale-()(.+)$/,_r],[/^(?:transform-)?scale-([xyz])-(.+)$/,_r],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[Z,{transform:"var(--un-transform)"}]],["transform-gpu",ma],["transform-cpu",Dr],["transform-none",{transform:"none"}]];function Pr([,t,e],{theme:r}){var n,a;let o=(a=(n=r.spacing)==null?void 0:n[e])!=null?a:c.bracket.cssvar.fraction.rem(e);if(o!=null)return[Z,[...Et[t].map(s=>[`--un-translate${s}`,o]),["transform","var(--un-transform)"]]]}function _r([,t,e]){let r=c.bracket.cssvar.fraction.percent(e);if(r!=null)return[Z,[...Et[t].map(o=>[`--un-scale${o}`,r]),["transform","var(--un-transform)"]]]}function Fr([,t="",e]){let r=c.bracket.cssvar.degree(e);if(r!=null)return t?[Z,{"--un-rotate":0,[`--un-rotate-${t}`]:r,transform:"var(--un-transform)"}]:[Z,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function da([,t,e]){let r=c.bracket.cssvar.degree(e);if(r!=null)return[Z,{[`--un-skew-${t}`]:r,transform:"var(--un-transform)"}]}var ga={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"},Wr=[[/^(.+?)-(\$.+)$/,([,t,e])=>{let r=ga[t];if(r)return{[r]:c.cssvar(e)}}]],Nr=[[/^\[([^:]+):(.+)\]$/,([,t,e])=>({[t]:c.bracket(`[${e}]`)})]];var Hr=[[/^(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}}
|
package/core.global.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{var mt=Object.defineProperty,yt=Object.defineProperties;var St=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var W=(n,t,e)=>t in n?mt(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,$=(n,t)=>{for(var e in t||(t={}))N.call(t,e)&&W(n,e,t[e]);if(D)for(var e of D(t))Z.call(t,e)&&W(n,e,t[e]);return n},V=(n,t)=>yt(n,St(t));var J=(n,t)=>{var e={};for(var r in n)N.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(n!=null&&D)for(var r of D(n))t.indexOf(r)<0&&Z.call(n,r)&&(e[r]=n[r]);return e};function xt(n){let t=n.length,e=-1,r,s="",i=n.charCodeAt(0);for(;++e<t;){if(r=n.charCodeAt(e),r===0){s+="\uFFFD";continue}if(r===44){s+="\\2c ";continue}if(r>=1&&r<=31||r===127||e===0&&r>=48&&r<=57||e===1&&r>=48&&r<=57&&i===45){s+=`\\${r.toString(16)} `;continue}if(e===0&&t===1&&r===45){s+=`\\${n.charAt(e)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){s+=n.charAt(e);continue}s+=`\\${n.charAt(e)}`}return s}var K=xt;function P(n){return(Array.isArray(n)?n:Object.entries(n)).filter(t=>t[1]!=null)}function Q(n){return Array.isArray(n)?n.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?n.map(t=>P(t)):[n]:[P(n)]}function Ct(n){return n.filter(([t,e],r)=>{if(t.startsWith("$$"))return!1;for(let s=r-1;s>=0;s--)if(n[s][0]===t&&n[s][1]===e)return!1;return!0})}function k(n){return n==null?"":Ct(n).map(([t,e])=>e!=null?`${t}:${e};`:void 0).filter(Boolean).join("")}function L(n){return n&&typeof n=="object"&&!Array.isArray(n)}function z(n,t){let e=n,r=t;if(Array.isArray(e)&&Array.isArray(r))return[...e,...r];if(Array.isArray(e))return[...e];let s=$({},e);return L(e)&&L(r)&&Object.keys(r).forEach(i=>{L(r[i])?i in e?s[i]=z(e[i],r[i]):Object.assign(s,{[i]:r[i]}):Object.assign(s,{[i]:r[i]})}),s}function v(n){let t,e,r;if(Array.isArray(n)){for(e=Array(t=n.length);t--;)e[t]=(r=n[t])&&typeof r=="object"?v(r):r;return e}if(Object.prototype.toString.call(n)==="[object Object]"){e={};for(t in n)t==="__proto__"?Object.defineProperty(e,t,{value:v(n[t]),configurable:!0,enumerable:!0,writable:!0}):e[t]=(r=n[t])&&typeof r=="object"?v(r):r;return e}return n}function X(n){return typeof n[0]=="string"}function Y(n){return typeof n[0]=="string"}function M(n=[]){return Array.isArray(n)?n:[n]}function j(n){return Array.from(new Set(n))}var bt=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,F="$$shortcut-no-merge";function tt(n=""){return bt.test(n)}function et(n){return typeof n=="function"?{match:n}:n}function G(n){return n.length===3}function rt(n){return n!=null}var B=class{_map=new Map;get(t,e){let r=this._map.get(t);if(r)return r.get(e)}getFallback(t,e,r){let s=this._map.get(t);return s||(s=new Map,this._map.set(t,s)),s.has(e)||s.set(e,r),s.get(e)}set(t,e,r){let s=this._map.get(t);return s||(s=new Map,this._map.set(t,s)),s.set(e,r),this}has(t,e){var r;return(r=this._map.get(t))==null?void 0:r.has(e)}delete(t,e){var r;return((r=this._map.get(t))==null?void 0:r.delete(e))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,r])=>Array.from(r.entries()).map(([s,i])=>t(i,e,s)))}};var nt=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function st(n){return nt.lastIndex=0,n.replace(nt,(t,e,r,s)=>s.split(/\s/g).map(i=>i.replace(/^(!?)(.*)/,`$1${e}${r}$2`)).join(" "))}var it=new Set;function ot(n){it.has(n)||(console.warn("[unocss]",n),it.add(n))}var Rt=n=>n.split(/[\s'"`;>=]+/g).filter(tt),H={name:"split",order:0,extract({code:n}){return new Set(Rt(n))}};function wt(n){return M(n).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ut={shortcuts:-1,default:0};function I(n={},t={}){let e=Object.assign({},t,n),r=(e.presets||[]).flatMap(M),s=[...r.filter(l=>l.enforce==="pre"),...r.filter(l=>!l.enforce),...r.filter(l=>l.enforce==="post")],i=Object.assign(Ut,...r.map(l=>l.layers),n.layers);function o(l){return j([...s.flatMap(g=>M(g[l]||[])),...M(e[l]||[])])}let a=o("extractors");a.length||a.push(H),a.sort((l,g)=>(l.order||0)-(g.order||0));let c=o("rules"),u={},h=c.length;c.forEach((l,g)=>{X(l)&&(u[l[0]]=[g,l[1],l[2]],delete c[g])});let x=v([...s.map(l=>l.theme||{}),e.theme||{}].reduce((l,g)=>z(l,g),{}));o("extendTheme").forEach(l=>l(x));let R={templates:j(s.map(l=>{var g;return M((g=l.autocomplete)==null?void 0:g.templates)}).flat()),extractors:s.map(l=>{var g;return M((g=l.autocomplete)==null?void 0:g.extractors)}).flat().sort((l,g)=>(l.order||0)-(g.order||0))};return V($({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:l=>l},e),{presets:s,envMode:e.envMode||"build",shortcutsLayer:e.shortcutsLayer||"shortcuts",layers:i,theme:x,rulesSize:h,rulesDynamic:c,rulesStaticMap:u,preprocess:o("preprocess"),postprocess:o("postprocess"),preflights:o("preflights"),autocomplete:R,variants:o("variants").map(et),shortcuts:wt(o("shortcuts")),extractors:a})}var at="0.30.
|
|
1
|
+
(()=>{var mt=Object.defineProperty,yt=Object.defineProperties;var St=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var W=(n,t,e)=>t in n?mt(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,$=(n,t)=>{for(var e in t||(t={}))N.call(t,e)&&W(n,e,t[e]);if(D)for(var e of D(t))Z.call(t,e)&&W(n,e,t[e]);return n},V=(n,t)=>yt(n,St(t));var J=(n,t)=>{var e={};for(var r in n)N.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(n!=null&&D)for(var r of D(n))t.indexOf(r)<0&&Z.call(n,r)&&(e[r]=n[r]);return e};function xt(n){let t=n.length,e=-1,r,s="",i=n.charCodeAt(0);for(;++e<t;){if(r=n.charCodeAt(e),r===0){s+="\uFFFD";continue}if(r===44){s+="\\2c ";continue}if(r>=1&&r<=31||r===127||e===0&&r>=48&&r<=57||e===1&&r>=48&&r<=57&&i===45){s+=`\\${r.toString(16)} `;continue}if(e===0&&t===1&&r===45){s+=`\\${n.charAt(e)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){s+=n.charAt(e);continue}s+=`\\${n.charAt(e)}`}return s}var K=xt;function P(n){return(Array.isArray(n)?n:Object.entries(n)).filter(t=>t[1]!=null)}function Q(n){return Array.isArray(n)?n.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?n.map(t=>P(t)):[n]:[P(n)]}function Ct(n){return n.filter(([t,e],r)=>{if(t.startsWith("$$"))return!1;for(let s=r-1;s>=0;s--)if(n[s][0]===t&&n[s][1]===e)return!1;return!0})}function k(n){return n==null?"":Ct(n).map(([t,e])=>e!=null?`${t}:${e};`:void 0).filter(Boolean).join("")}function L(n){return n&&typeof n=="object"&&!Array.isArray(n)}function z(n,t){let e=n,r=t;if(Array.isArray(e)&&Array.isArray(r))return[...e,...r];if(Array.isArray(e))return[...e];let s=$({},e);return L(e)&&L(r)&&Object.keys(r).forEach(i=>{L(r[i])?i in e?s[i]=z(e[i],r[i]):Object.assign(s,{[i]:r[i]}):Object.assign(s,{[i]:r[i]})}),s}function v(n){let t,e,r;if(Array.isArray(n)){for(e=Array(t=n.length);t--;)e[t]=(r=n[t])&&typeof r=="object"?v(r):r;return e}if(Object.prototype.toString.call(n)==="[object Object]"){e={};for(t in n)t==="__proto__"?Object.defineProperty(e,t,{value:v(n[t]),configurable:!0,enumerable:!0,writable:!0}):e[t]=(r=n[t])&&typeof r=="object"?v(r):r;return e}return n}function X(n){return typeof n[0]=="string"}function Y(n){return typeof n[0]=="string"}function M(n=[]){return Array.isArray(n)?n:[n]}function j(n){return Array.from(new Set(n))}var bt=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,F="$$shortcut-no-merge";function tt(n=""){return bt.test(n)}function et(n){return typeof n=="function"?{match:n}:n}function G(n){return n.length===3}function rt(n){return n!=null}var B=class{_map=new Map;get(t,e){let r=this._map.get(t);if(r)return r.get(e)}getFallback(t,e,r){let s=this._map.get(t);return s||(s=new Map,this._map.set(t,s)),s.has(e)||s.set(e,r),s.get(e)}set(t,e,r){let s=this._map.get(t);return s||(s=new Map,this._map.set(t,s)),s.set(e,r),this}has(t,e){var r;return(r=this._map.get(t))==null?void 0:r.has(e)}delete(t,e){var r;return((r=this._map.get(t))==null?void 0:r.delete(e))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,r])=>Array.from(r.entries()).map(([s,i])=>t(i,e,s)))}};var nt=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function st(n){return nt.lastIndex=0,n.replace(nt,(t,e,r,s)=>s.split(/\s/g).map(i=>i.replace(/^(!?)(.*)/,`$1${e}${r}$2`)).join(" "))}var it=new Set;function ot(n){it.has(n)||(console.warn("[unocss]",n),it.add(n))}var Rt=n=>n.split(/[\s'"`;>=]+/g).filter(tt),H={name:"split",order:0,extract({code:n}){return new Set(Rt(n))}};function wt(n){return M(n).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ut={shortcuts:-1,default:0};function I(n={},t={}){let e=Object.assign({},t,n),r=(e.presets||[]).flatMap(M),s=[...r.filter(l=>l.enforce==="pre"),...r.filter(l=>!l.enforce),...r.filter(l=>l.enforce==="post")],i=Object.assign(Ut,...r.map(l=>l.layers),n.layers);function o(l){return j([...s.flatMap(g=>M(g[l]||[])),...M(e[l]||[])])}let a=o("extractors");a.length||a.push(H),a.sort((l,g)=>(l.order||0)-(g.order||0));let c=o("rules"),u={},h=c.length;c.forEach((l,g)=>{X(l)&&(u[l[0]]=[g,l[1],l[2]],delete c[g])});let x=v([...s.map(l=>l.theme||{}),e.theme||{}].reduce((l,g)=>z(l,g),{}));o("extendTheme").forEach(l=>l(x));let R={templates:j(s.map(l=>{var g;return M((g=l.autocomplete)==null?void 0:g.templates)}).flat()),extractors:s.map(l=>{var g;return M((g=l.autocomplete)==null?void 0:g.extractors)}).flat().sort((l,g)=>(l.order||0)-(g.order||0))};return V($({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:l=>l},e),{presets:s,envMode:e.envMode||"build",shortcutsLayer:e.shortcutsLayer||"shortcuts",layers:i,theme:x,rulesSize:h,rulesDynamic:c,rulesStaticMap:u,preprocess:o("preprocess"),postprocess:o("postprocess"),preflights:o("preflights"),autocomplete:R,variants:o("variants").map(et),shortcuts:wt(o("shortcuts")),extractors:a})}var at="0.30.1";var lt=class{constructor(t={},e={}){this.userConfig=t;this.defaults=e;this.config=I(t,e)}version=at;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,e){!t||(e&&(this.defaults=e),this.userConfig=t,this.config=I(t,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(t,e,r=new Set){let s={get original(){return t},code:t,id:e};for(let i of this.config.extractors){let o=await i.extract(s);o==null||o.forEach(a=>r.add(a))}return r}makeContext(t,e){let r={rawSelector:t,currentSelector:e[1],theme:this.config.theme,generator:this,variantHandlers:e[2],constructCSS:(...s)=>this.constructCustomCSS(r,...s),variantMatch:e};return r}async parseToken(t,e){var c;if(this.blocked.has(t))return;let r=`${t}${e?` ${e}`:""}`;if(this._cache.has(r))return this._cache.get(r);let s=t;for(let u of this.config.preprocess)s=u(t);if(this.isBlocked(s)){this.blocked.add(t),this._cache.set(r,null);return}let i=this.matchVariants(t,s);if(!i||this.isBlocked(i[1])){this.blocked.add(t),this._cache.set(r,null);return}let o=this.makeContext(t,[e||i[0],i[1],i[2],i[3]]),a=this.expandShortcut(o.currentSelector,o);if(a){let u=await this.stringifyShortcuts(o.variantMatch,o,a[0],a[1]);if(u!=null&&u.length)return this._cache.set(r,u),u}else{let u=(c=await this.parseUtil(o.variantMatch,o))==null?void 0:c.map(h=>this.stringifyUtil(h)).filter(rt);if(u!=null&&u.length)return this._cache.set(r,u),u}this._cache.set(r,null)}async generate(t="",{id:e,scope:r,preflights:s=!0,safelist:i=!0,minify:o=!1}={}){let a=typeof t=="string"?await this.applyExtractors(t,e):t;i&&this.config.safelist.forEach(p=>a.add(p));let c=o?"":`
|
|
2
2
|
`,u=new Set(["default"]),h=new Set,x=new Map;await Promise.all(Array.from(a).map(async p=>{var y;if(h.has(p))return;let d=await this.parseToken(p);if(d!=null){h.add(p);for(let S of d){let b=S[3]||"";x.has(b)||x.set(b,[]),x.get(b).push(S),(y=S[4])!=null&&y.layer&&u.add(S[4].layer)}}})),s&&this.config.preflights.forEach(p=>{p.layer&&u.add(p.layer)});let R={},l=this.config.sortLayers(Array.from(u).sort((p,d)=>{var y,S;return((y=this.config.layers[p])!=null?y:0)-((S=this.config.layers[d])!=null?S:0)||p.localeCompare(d)})),g={};if(s){let p={generator:this,theme:this.config.theme};g=Object.fromEntries(await Promise.all(l.map(async d=>{let S=(await Promise.all(this.config.preflights.filter(b=>(b.layer||"default")===d).map(async b=>await b.getCSS(p)))).filter(Boolean).join(c);return[d,S]})))}let A=p=>{if(R[p])return R[p];let d=Array.from(x).sort((y,S)=>{var b,U,f;return((b=this.parentOrders.get(y[0]))!=null?b:0)-((U=this.parentOrders.get(S[0]))!=null?U:0)||((f=y[0])==null?void 0:f.localeCompare(S[0]||""))||0}).map(([y,S])=>{let b=S.length,U=S.filter(m=>{var w;return(((w=m[4])==null?void 0:w.layer)||"default")===p}).sort((m,w)=>{var _,T,E;return m[0]-w[0]||(((_=m[4])==null?void 0:_.sort)||0)-(((T=w[4])==null?void 0:T.sort)||0)||((E=m[1])==null?void 0:E.localeCompare(w[1]||""))||0}).map(m=>{var w;return[m[1]?$t(m[1],r):m[1],m[2],!!((w=m[4])!=null&&w.noMerge)]}).map(m=>[m[0]==null?m[0]:[m[0]],m[1],m[2]]);if(!U.length)return;let f=U.reverse().map(([m,w,_],T)=>{if(!_&&m&&this.config.mergeSelectors)for(let E=T+1;E<b;E++){let O=U[E];if(O&&!O[2]&&O[0]&&O[1]===w)return O[0].push(...m),null}return m?`${[...new Set(m)].join(`,${c}`)}{${w}}`:w}).filter(Boolean).reverse().join(c);return y?`${y}{${c}${f}${c}}`:f}).filter(Boolean).join(c);return s&&(d=[g[p],d].filter(Boolean).join(c)),R[p]=!o&&d?`/* layer: ${p} */${c}${d}`:d},C=(p=l,d)=>p.filter(y=>!(d!=null&&d.includes(y))).map(y=>A(y)||"").filter(Boolean).join(c);return{get css(){return C()},layers:l,getLayers:C,getLayer:A,matched:h}}matchVariants(t,e){let r=new Set,s=[],i=e||t,o=!1,a={rawSelector:t,theme:this.config.theme,generator:this};for(;;){o=!1;for(let c of this.config.variants){if(!c.multiPass&&r.has(c))continue;let u=c.match(i,a);if(!!u){typeof u=="string"&&(u={matcher:u}),i=u.matcher,Array.isArray(u.parent)&&this.parentOrders.set(u.parent[0],u.parent[1]),s.push(u),r.add(c),o=!0;break}}if(!o)break;if(s.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,s,r]}applyVariants(t,e=t[4],r=t[1]){let s=[...e].sort((a,c)=>(a.order||0)-(c.order||0)),i=s.reduce((a,c)=>{var u;return((u=c.body)==null?void 0:u.call(c,a))||a},t[2]),o={selector:s.reduce((a,c)=>{var u;return((u=c.selector)==null?void 0:u.call(c,a,i))||a},Mt(r)),entries:i,parent:s.reduce((a,c)=>Array.isArray(c.parent)?c.parent[0]:c.parent||a,void 0),layer:s.reduce((a,c)=>c.layer||a,void 0),sort:s.reduce((a,c)=>c.sort||a,void 0)};for(let a of this.config.postprocess)a(o);return o}constructCustomCSS(t,e,r){e=P(e);let{selector:s,entries:i,parent:o}=this.applyVariants([0,r||t.rawSelector,e,void 0,t.variantHandlers]),a=`${s}{${k(i)}}`;return o?`${o}{${a}}`:a}async parseUtil(t,e,r=!1){var h,x;let[s,i,o]=typeof t=="string"?this.matchVariants(t):t,a=this.config.rulesStaticMap[i];if(a&&a[1]&&(r||!((h=a[2])!=null&&h.internal)))return[[a[0],s,P(a[1]),a[2],o]];e.variantHandlers=o;let{rulesDynamic:c,rulesSize:u}=this.config;for(let R=u-1;R>=0;R--){let l=c[R];if(!l||((x=l[2])==null?void 0:x.internal)&&!r)continue;let[g,A,C]=l,p=i.match(g);if(!p)continue;let d=await A(p,e);if(!d)continue;if(typeof d=="string")return[[R,d,C]];let y=Q(d).filter(S=>S.length);if(y.length)return y.map(S=>[R,s,S,C,o])}}stringifyUtil(t){var R;if(!t)return;if(G(t))return[t[0],void 0,t[1],void 0,t[2]];let{selector:e,entries:r,parent:s,layer:i,sort:o}=this.applyVariants(t),a=k(r);if(!a)return;let l=(R=t[3])!=null?R:{},{layer:c,sort:u}=l,h=J(l,["layer","sort"]),x=V($({},h),{layer:i!=null?i:c,sort:o!=null?o:u});return[t[0],e,a,s,x]}expandShortcut(t,e,r=3){if(r===0)return;let s,i;for(let o of this.config.shortcuts)if(Y(o)){if(o[0]===t){s=s||o[2],i=o[1];break}}else{let a=t.match(o[0]);if(a&&(i=o[1](a,e)),i){s=s||o[2];break}}if(typeof i=="string"&&(i=st(i).split(/\s+/g)),!!i)return[i.flatMap(o=>{var a;return((a=this.expandShortcut(o,e,r-1))==null?void 0:a[0])||[o]}).filter(o=>o!==""),s]}async stringifyShortcuts(t,e,r,s={layer:this.config.shortcutsLayer}){var u;let i=new B,o=(await Promise.all(j(r).map(async h=>{let x=await this.parseUtil(h,e,!0);return x||ot(`unmatched utility "${h}" in shortcut "${t[1]}"`),x||[]}))).flat(1).filter(Boolean).sort((h,x)=>h[0]-x[0]),[a,,c]=t;for(let h of o){if(G(h))continue;let{selector:x,entries:R,parent:l,sort:g}=this.applyVariants(h,[...h[4],...c],a);i.getFallback(x,l,[[],h[0]])[0].push([R,!!((u=h[3])!=null&&u.noMerge),g!=null?g:0])}return i.map(([h,x],R,l)=>{let g=(C,p,d)=>{let y=Math.max(...d.map(b=>b[1])),S=d.map(b=>b[0]);return(C?[S.flat(1)]:S).map(b=>{let U=k(b);if(U)return[x,R,U,l,V($({},s),{noMerge:p,sort:y})]})};return[[h.filter(([,C])=>C).map(([C,,p])=>[C,p]),!0],[h.filter(([,C])=>!C).map(([C,,p])=>[C,p]),!1]].map(([C,p])=>[...g(!1,p,C.filter(([d])=>d.some(y=>y[0]===F))),...g(!0,p,C.filter(([d])=>d.every(y=>y[0]!==F)))])}).flat(2).filter(Boolean)}isBlocked(t){return!t||this.config.blocklist.some(e=>typeof e=="string"?e===t:e.test(t))}};function ut(n,t){return new lt(n,t)}var ft=/ \$\$ /,At=n=>n.match(ft);function $t(n,t){return At(n)?n.replace(ft,t?` ${t} `:" "):t?`${t} ${n}`:n}var ct=/^\[(.+?)(~?=)"(.*)"\]$/;function Mt(n){return ct.test(n)?n.replace(ct,(t,e,r,s)=>`[${K(e)}${r}"${K(s)}"]`):`.${K(n)}`}var _t=n=>n.replace(/-(\w)/g,(t,e)=>e?e.toUpperCase():""),pt=n=>n.charAt(0).toUpperCase()+n.slice(1),dt=n=>n.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase(),gt=["Webkit","Moz","ms"];function ht(n){let t={};function e(r){let s=t[r];if(s)return s;let i=_t(r);if(i!=="filter"&&i in n)return t[r]=dt(i);i=pt(i);for(let o=0;o<gt.length;o++){let a=`${gt[o]}${i}`;if(a in n)return t[r]=dt(pt(a))}return r}return({entries:r})=>r.forEach(s=>{s[0].startsWith("--")||(s[0]=e(s[0]))})}function q(n={}){var b,U;if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let t=window.__unocss||{},e=t==null?void 0:t.runtime,r=Object.assign(n.defaults||{},e);if(e!=null&&e.autoPrefix){let f=r.postprocess;f||(f=[]),Array.isArray(f)||(f=[f]),f.unshift(ht(document.createElement("div").style)),r.postprocess=f}(b=e==null?void 0:e.configResolved)==null||b.call(e,t,r);let s,i=!0,o,a=ut(t,r),c=new Set,u,h=[],x=()=>new Promise(f=>{h.push(f),u!=null&&clearTimeout(u),u=setTimeout(()=>R().then(()=>{let m=h;h=[],m.forEach(w=>w())}),0)});async function R(){let f=await a.generate(c);s||(s=document.createElement("style"),document.documentElement.prepend(s)),s.innerHTML=f.css,c=f.matched}async function l(f){let m=c.size;await a.applyExtractors(f,void 0,c),m!==c.size&&await x()}async function g(){let f=document.body&&document.body.outerHTML;f&&await l(f)}let A=new MutationObserver(f=>{i||f.forEach(m=>{let w=m.target;if(w===s||o&&!o(w))return;let _=Array.from(w.attributes).map(E=>E.value?`${E.name}="${E.value}"`:E.name).join(" "),T=`<${w.tagName.toLowerCase()} ${_}>`;l(T)})}),C=!1;function p(){if(!C)return;let f=document.documentElement||document.body;!f||(A.observe(f,{childList:!0,subtree:!0,attributes:!0}),C=!0)}function d(){g(),p()}function y(){d(),window.addEventListener("load",d),window.addEventListener("DOMContentLoaded",d)}let S=window.__unocss_runtime=window.__unocss_runtime={version:a.version,uno:a,async extract(f){typeof f!="string"&&(f.forEach(m=>c.add(m)),f=""),await l(f)},extractAll:g,inspect(f){o=f},toggleObserver(f){f===void 0?i=!i:i=!!f,!C&&!i&&y()}};((U=e==null?void 0:e.ready)==null?void 0:U.call(e,S))!==!1&&(i=!1,y())}q();})();
|
package/full.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var se=Object.defineProperty,Cn=Object.defineProperties;var zn=Object.getOwnPropertyDescriptors;var bt=Object.getOwnPropertySymbols;var ce=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var ie=(t,e,r)=>e in t?se(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,T=(t,e)=>{for(var r in e||(e={}))ce.call(e,r)&&ie(t,r,e[r]);if(bt)for(var r of bt(e))le.call(e,r)&&ie(t,r,e[r]);return t},j=(t,e)=>Cn(t,zn(e));var pe=(t,e)=>{var r={};for(var o in t)ce.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&bt)for(var o of bt(t))e.indexOf(o)<0&&le.call(t,o)&&(r[o]=t[o]);return r};var Tn=(t,e)=>{for(var r in e)se(t,r,{get:e[r],enumerable:!0})};function Q(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function zt(t){let e=t.length,r=-1,o,n="",a=t.charCodeAt(0);for(;++r<e;){if(o=t.charCodeAt(r),o===0){n+="\uFFFD";continue}if(o===44){n+="\\2c ";continue}if(o>=1&&o<=31||o===127||r===0&&o>=48&&o<=57||r===1&&o>=48&&o<=57&&a===45){n+=`\\${o.toString(16)} `;continue}if(r===0&&e===1&&o===45){n+=`\\${t.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=t.charAt(r);continue}n+=`\\${t.charAt(r)}`}return n}var ht=zt;function et(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function ue(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>et(e)):[t]:[et(t)]}function En(t){return t.filter(([e,r],o)=>{if(e.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(t[n][0]===e&&t[n][1]===r)return!1;return!0})}function xt(t){return t==null?"":En(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function Tt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function rt(t,e){let r=t,o=e;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=T({},r);return Tt(r)&&Tt(o)&&Object.keys(o).forEach(a=>{Tt(o[a])?a in r?n[a]=rt(r[a],o[a]):Object.assign(n,{[a]:o[a]}):Object.assign(n,{[a]:o[a]})}),n}function tt(t){let e,r,o;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(o=t[e])&&typeof o=="object"?tt(o):o;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:tt(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(o=t[e])&&typeof o=="object"?tt(o):o;return r}return t}function fe(t){return typeof t[0]=="string"}function me(t){return typeof t[0]=="string"}function A(t=[]){return Array.isArray(t)?t:[t]}function ot(t){return Array.from(new Set(t))}var jn=/^\[(.+?)~?="(.*)"\]$/,Vn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,V="$$shortcut-no-merge";function de(t){return t.match(jn)}function nt(t=""){return Vn.test(t)}function ge(t){return typeof t=="function"?{match:t}:t}function Et(t){return t.length===3}function be(t){return t!=null}var jt=class{_map=new Map;get(e,r){let o=this._map.get(e);if(o)return o.get(r)}getFallback(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.has(r)||n.set(r,o),n.get(r)}set(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.set(r,o),this}has(e,r){var o;return(o=this._map.get(e))==null?void 0:o.has(r)}delete(e,r){var o;return((o=this._map.get(e))==null?void 0:o.delete(r))||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>e(a,r,n)))}};var he=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function xe(t){return he.lastIndex=0,t.replace(he,(e,r,o,n)=>n.split(/\s/g).map(a=>a.replace(/^(!?)(.*)/,`$1${r}${o}$2`)).join(" "))}var ye=new Set;function ve(t){ye.has(t)||(console.warn("[unocss]",t),ye.add(t))}function $e(t){let e=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let s of n){let i=t[s](o);if(i!=null)return i}};function r(o,n){return o.__options||(o.__options={sequence:[]}),o.__options.sequence.push(n),o}for(let o of Object.keys(t))Object.defineProperty(e,o,{enumerable:!0,get(){return r(this,o)}});return e}var An=t=>t.split(/[\s'"`;>=]+/g).filter(nt),at={name:"split",order:0,extract({code:t}){return new Set(An(t))}};function On(t){return A(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Mn={shortcuts:-1,default:0};function Vt(t={},e={}){let r=Object.assign({},e,t),o=(r.presets||[]).flatMap(A),n=[...o.filter(m=>m.enforce==="pre"),...o.filter(m=>!m.enforce),...o.filter(m=>m.enforce==="post")],a=Object.assign(Mn,...o.map(m=>m.layers),t.layers);function s(m){return ot([...n.flatMap(h=>A(h[m]||[])),...A(r[m]||[])])}let i=s("extractors");i.length||i.push(at),i.sort((m,h)=>(m.order||0)-(h.order||0));let l=s("rules"),p={},u=l.length;l.forEach((m,h)=>{fe(m)&&(p[m[0]]=[h,m[1],m[2]],delete l[h])});let f=tt([...n.map(m=>m.theme||{}),r.theme||{}].reduce((m,h)=>rt(m,h),{}));s("extendTheme").forEach(m=>m(f));let x={templates:ot(n.map(m=>{var h;return A((h=m.autocomplete)==null?void 0:h.templates)}).flat()),extractors:n.map(m=>{var h;return A((h=m.autocomplete)==null?void 0:h.extractors)}).flat().sort((m,h)=>(m.order||0)-(h.order||0))};return j(T({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:m=>m},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:f,rulesSize:u,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:x,variants:s("variants").map(ge),shortcuts:On(s("shortcuts")),extractors:i})}var ke="0.30.
|
|
1
|
+
(()=>{var se=Object.defineProperty,Cn=Object.defineProperties;var zn=Object.getOwnPropertyDescriptors;var bt=Object.getOwnPropertySymbols;var ce=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var ie=(t,e,r)=>e in t?se(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,T=(t,e)=>{for(var r in e||(e={}))ce.call(e,r)&&ie(t,r,e[r]);if(bt)for(var r of bt(e))le.call(e,r)&&ie(t,r,e[r]);return t},j=(t,e)=>Cn(t,zn(e));var pe=(t,e)=>{var r={};for(var o in t)ce.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&bt)for(var o of bt(t))e.indexOf(o)<0&&le.call(t,o)&&(r[o]=t[o]);return r};var Tn=(t,e)=>{for(var r in e)se(t,r,{get:e[r],enumerable:!0})};function Q(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function zt(t){let e=t.length,r=-1,o,n="",a=t.charCodeAt(0);for(;++r<e;){if(o=t.charCodeAt(r),o===0){n+="\uFFFD";continue}if(o===44){n+="\\2c ";continue}if(o>=1&&o<=31||o===127||r===0&&o>=48&&o<=57||r===1&&o>=48&&o<=57&&a===45){n+=`\\${o.toString(16)} `;continue}if(r===0&&e===1&&o===45){n+=`\\${t.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=t.charAt(r);continue}n+=`\\${t.charAt(r)}`}return n}var ht=zt;function et(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function ue(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>et(e)):[t]:[et(t)]}function En(t){return t.filter(([e,r],o)=>{if(e.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(t[n][0]===e&&t[n][1]===r)return!1;return!0})}function xt(t){return t==null?"":En(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function Tt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function rt(t,e){let r=t,o=e;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=T({},r);return Tt(r)&&Tt(o)&&Object.keys(o).forEach(a=>{Tt(o[a])?a in r?n[a]=rt(r[a],o[a]):Object.assign(n,{[a]:o[a]}):Object.assign(n,{[a]:o[a]})}),n}function tt(t){let e,r,o;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(o=t[e])&&typeof o=="object"?tt(o):o;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:tt(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(o=t[e])&&typeof o=="object"?tt(o):o;return r}return t}function fe(t){return typeof t[0]=="string"}function me(t){return typeof t[0]=="string"}function A(t=[]){return Array.isArray(t)?t:[t]}function ot(t){return Array.from(new Set(t))}var jn=/^\[(.+?)~?="(.*)"\]$/,Vn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,V="$$shortcut-no-merge";function de(t){return t.match(jn)}function nt(t=""){return Vn.test(t)}function ge(t){return typeof t=="function"?{match:t}:t}function Et(t){return t.length===3}function be(t){return t!=null}var jt=class{_map=new Map;get(e,r){let o=this._map.get(e);if(o)return o.get(r)}getFallback(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.has(r)||n.set(r,o),n.get(r)}set(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.set(r,o),this}has(e,r){var o;return(o=this._map.get(e))==null?void 0:o.has(r)}delete(e,r){var o;return((o=this._map.get(e))==null?void 0:o.delete(r))||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>e(a,r,n)))}};var he=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function xe(t){return he.lastIndex=0,t.replace(he,(e,r,o,n)=>n.split(/\s/g).map(a=>a.replace(/^(!?)(.*)/,`$1${r}${o}$2`)).join(" "))}var ye=new Set;function ve(t){ye.has(t)||(console.warn("[unocss]",t),ye.add(t))}function $e(t){let e=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let s of n){let i=t[s](o);if(i!=null)return i}};function r(o,n){return o.__options||(o.__options={sequence:[]}),o.__options.sequence.push(n),o}for(let o of Object.keys(t))Object.defineProperty(e,o,{enumerable:!0,get(){return r(this,o)}});return e}var An=t=>t.split(/[\s'"`;>=]+/g).filter(nt),at={name:"split",order:0,extract({code:t}){return new Set(An(t))}};function On(t){return A(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Mn={shortcuts:-1,default:0};function Vt(t={},e={}){let r=Object.assign({},e,t),o=(r.presets||[]).flatMap(A),n=[...o.filter(m=>m.enforce==="pre"),...o.filter(m=>!m.enforce),...o.filter(m=>m.enforce==="post")],a=Object.assign(Mn,...o.map(m=>m.layers),t.layers);function s(m){return ot([...n.flatMap(h=>A(h[m]||[])),...A(r[m]||[])])}let i=s("extractors");i.length||i.push(at),i.sort((m,h)=>(m.order||0)-(h.order||0));let l=s("rules"),p={},u=l.length;l.forEach((m,h)=>{fe(m)&&(p[m[0]]=[h,m[1],m[2]],delete l[h])});let f=tt([...n.map(m=>m.theme||{}),r.theme||{}].reduce((m,h)=>rt(m,h),{}));s("extendTheme").forEach(m=>m(f));let x={templates:ot(n.map(m=>{var h;return A((h=m.autocomplete)==null?void 0:h.templates)}).flat()),extractors:n.map(m=>{var h;return A((h=m.autocomplete)==null?void 0:h.extractors)}).flat().sort((m,h)=>(m.order||0)-(h.order||0))};return j(T({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:m=>m},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:f,rulesSize:u,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:x,variants:s("variants").map(ge),shortcuts:On(s("shortcuts")),extractors:i})}var ke="0.30.1";var Se=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=Vt(e,r)}version=ke;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.config=Vt(e,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(e,r,o=new Set){let n={get original(){return e},code:e,id:r};for(let a of this.config.extractors){let s=await a.extract(n);s==null||s.forEach(i=>o.add(i))}return o}makeContext(e,r){let o={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(e,r){var l;if(this.blocked.has(e))return;let o=`${e}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=e;for(let p of this.config.preprocess)n=p(e);if(this.isBlocked(n)){this.blocked.add(e),this._cache.set(o,null);return}let a=this.matchVariants(e,n);if(!a||this.isBlocked(a[1])){this.blocked.add(e),this._cache.set(o,null);return}let s=this.makeContext(e,[r||a[0],a[1],a[2],a[3]]),i=this.expandShortcut(s.currentSelector,s);if(i){let p=await this.stringifyShortcuts(s.variantMatch,s,i[0],i[1]);if(p!=null&&p.length)return this._cache.set(o,p),p}else{let p=(l=await this.parseUtil(s.variantMatch,s))==null?void 0:l.map(u=>this.stringifyUtil(u)).filter(be);if(p!=null&&p.length)return this._cache.set(o,p),p}this._cache.set(o,null)}async generate(e="",{id:r,scope:o,preflights:n=!0,safelist:a=!0,minify:s=!1}={}){let i=typeof e=="string"?await this.applyExtractors(e,r):e;a&&this.config.safelist.forEach(g=>i.add(g));let l=s?"":`
|
|
2
2
|
`,p=new Set(["default"]),u=new Set,f=new Map;await Promise.all(Array.from(i).map(async g=>{var v;if(u.has(g))return;let d=await this.parseToken(g);if(d!=null){u.add(g);for(let S of d){let C=S[3]||"";f.has(C)||f.set(C,[]),f.get(C).push(S),(v=S[4])!=null&&v.layer&&p.add(S[4].layer)}}})),n&&this.config.preflights.forEach(g=>{g.layer&&p.add(g.layer)});let x={},m=this.config.sortLayers(Array.from(p).sort((g,d)=>{var v,S;return((v=this.config.layers[g])!=null?v:0)-((S=this.config.layers[d])!=null?S:0)||g.localeCompare(d)})),h={};if(n){let g={generator:this,theme:this.config.theme};h=Object.fromEntries(await Promise.all(m.map(async d=>{let S=(await Promise.all(this.config.preflights.filter(C=>(C.layer||"default")===d).map(async C=>await C.getCSS(g)))).filter(Boolean).join(l);return[d,S]})))}let w=g=>{if(x[g])return x[g];let d=Array.from(f).sort((v,S)=>{var C,O,b;return((C=this.parentOrders.get(v[0]))!=null?C:0)-((O=this.parentOrders.get(S[0]))!=null?O:0)||((b=v[0])==null?void 0:b.localeCompare(S[0]||""))||0}).map(([v,S])=>{let C=S.length,O=S.filter($=>{var z;return(((z=$[4])==null?void 0:z.layer)||"default")===g}).sort(($,z)=>{var N,B,M;return $[0]-z[0]||(((N=$[4])==null?void 0:N.sort)||0)-(((B=z[4])==null?void 0:B.sort)||0)||((M=$[1])==null?void 0:M.localeCompare(z[1]||""))||0}).map($=>{var z;return[$[1]?_n($[1],o):$[1],$[2],!!((z=$[4])!=null&&z.noMerge)]}).map($=>[$[0]==null?$[0]:[$[0]],$[1],$[2]]);if(!O.length)return;let b=O.reverse().map(([$,z,N],B)=>{if(!N&&$&&this.config.mergeSelectors)for(let M=B+1;M<C;M++){let K=O[M];if(K&&!K[2]&&K[0]&&K[1]===z)return K[0].push(...$),null}return $?`${[...new Set($)].join(`,${l}`)}{${z}}`:z}).filter(Boolean).reverse().join(l);return v?`${v}{${l}${b}${l}}`:b}).filter(Boolean).join(l);return n&&(d=[h[g],d].filter(Boolean).join(l)),x[g]=!s&&d?`/* layer: ${g} */${l}${d}`:d},y=(g=m,d)=>g.filter(v=>!(d!=null&&d.includes(v))).map(v=>w(v)||"").filter(Boolean).join(l);return{get css(){return y()},layers:m,getLayers:y,getLayer:w,matched:u}}matchVariants(e,r){let o=new Set,n=[],a=r||e,s=!1,i={rawSelector:e,theme:this.config.theme,generator:this};for(;;){s=!1;for(let l of this.config.variants){if(!l.multiPass&&o.has(l))continue;let p=l.match(a,i);if(!!p){typeof p=="string"&&(p={matcher:p}),a=p.matcher,Array.isArray(p.parent)&&this.parentOrders.set(p.parent[0],p.parent[1]),n.push(p),o.add(l),s=!0;break}}if(!s)break;if(n.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,a,n,o]}applyVariants(e,r=e[4],o=e[1]){let n=[...r].sort((i,l)=>(i.order||0)-(l.order||0)),a=n.reduce((i,l)=>{var p;return((p=l.body)==null?void 0:p.call(l,i))||i},e[2]),s={selector:n.reduce((i,l)=>{var p;return((p=l.selector)==null?void 0:p.call(l,i,a))||i},Fn(o)),entries:a,parent:n.reduce((i,l)=>Array.isArray(l.parent)?l.parent[0]:l.parent||i,void 0),layer:n.reduce((i,l)=>l.layer||i,void 0),sort:n.reduce((i,l)=>l.sort||i,void 0)};for(let i of this.config.postprocess)i(s);return s}constructCustomCSS(e,r,o){r=et(r);let{selector:n,entries:a,parent:s}=this.applyVariants([0,o||e.rawSelector,r,void 0,e.variantHandlers]),i=`${n}{${xt(a)}}`;return s?`${s}{${i}}`:i}async parseUtil(e,r,o=!1){var u,f;let[n,a,s]=typeof e=="string"?this.matchVariants(e):e,i=this.config.rulesStaticMap[a];if(i&&i[1]&&(o||!((u=i[2])!=null&&u.internal)))return[[i[0],n,et(i[1]),i[2],s]];r.variantHandlers=s;let{rulesDynamic:l,rulesSize:p}=this.config;for(let x=p-1;x>=0;x--){let m=l[x];if(!m||((f=m[2])==null?void 0:f.internal)&&!o)continue;let[h,w,y]=m,g=a.match(h);if(!g)continue;let d=await w(g,r);if(!d)continue;if(typeof d=="string")return[[x,d,y]];let v=ue(d).filter(S=>S.length);if(v.length)return v.map(S=>[x,n,S,y,s])}}stringifyUtil(e){var x;if(!e)return;if(Et(e))return[e[0],void 0,e[1],void 0,e[2]];let{selector:r,entries:o,parent:n,layer:a,sort:s}=this.applyVariants(e),i=xt(o);if(!i)return;let m=(x=e[3])!=null?x:{},{layer:l,sort:p}=m,u=pe(m,["layer","sort"]),f=j(T({},u),{layer:a!=null?a:l,sort:s!=null?s:p});return[e[0],r,i,n,f]}expandShortcut(e,r,o=3){if(o===0)return;let n,a;for(let s of this.config.shortcuts)if(me(s)){if(s[0]===e){n=n||s[2],a=s[1];break}}else{let i=e.match(s[0]);if(i&&(a=s[1](i,r)),a){n=n||s[2];break}}if(typeof a=="string"&&(a=xe(a).split(/\s+/g)),!!a)return[a.flatMap(s=>{var i;return((i=this.expandShortcut(s,r,o-1))==null?void 0:i[0])||[s]}).filter(s=>s!==""),n]}async stringifyShortcuts(e,r,o,n={layer:this.config.shortcutsLayer}){var p;let a=new jt,s=(await Promise.all(ot(o).map(async u=>{let f=await this.parseUtil(u,r,!0);return f||ve(`unmatched utility "${u}" in shortcut "${e[1]}"`),f||[]}))).flat(1).filter(Boolean).sort((u,f)=>u[0]-f[0]),[i,,l]=e;for(let u of s){if(Et(u))continue;let{selector:f,entries:x,parent:m,sort:h}=this.applyVariants(u,[...u[4],...l],i);a.getFallback(f,m,[[],u[0]])[0].push([x,!!((p=u[3])!=null&&p.noMerge),h!=null?h:0])}return a.map(([u,f],x,m)=>{let h=(y,g,d)=>{let v=Math.max(...d.map(C=>C[1])),S=d.map(C=>C[0]);return(y?[S.flat(1)]:S).map(C=>{let O=xt(C);if(O)return[f,x,O,m,j(T({},n),{noMerge:g,sort:v})]})};return[[u.filter(([,y])=>y).map(([y,,g])=>[y,g]),!0],[u.filter(([,y])=>!y).map(([y,,g])=>[y,g]),!1]].map(([y,g])=>[...h(!1,g,y.filter(([d])=>d.some(v=>v[0]===V))),...h(!0,g,y.filter(([d])=>d.every(v=>v[0]!==V)))])}).flat(2).filter(Boolean)}isBlocked(e){return!e||this.config.blocklist.some(r=>typeof r=="string"?r===e:r.test(e))}};function Re(t,e){return new Se(t,e)}var Ce=/ \$\$ /,Pn=t=>t.match(Ce);function _n(t,e){return Pn(t)?t.replace(Ce,e?` ${e} `:" "):e?`${e} ${t}`:t}var we=/^\[(.+?)(~?=)"(.*)"\]$/;function Fn(t){return we.test(t)?t.replace(we,(e,r,o,n)=>`[${ht(r)}${o}"${ht(n)}"]`):`.${ht(t)}`}var At=/^(?!\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/,ze=(t={})=>{var o,n;let e=(o=t.prefix)!=null?o:"un-",r=(n=t.prefixedOnly)!=null?n:!1;return a=>{let s=de(a);if(!s)return;let i=s[1];if(i.startsWith(e))i=i.slice(e.length);else if(r)return;let l=s[2],[,p="",u=l]=l.match(At)||[];return u==="~"||!u?`${p}${i}`:`${p}${i}-${u}`}};var Dn=/(<\w[\w:\.$-]*\s)((?:'[^>]*?'|"[^>]*?"|`[^>]*?`|\{[^>]*?\}|[^>]*?)*)/g,Ln=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=("[^"]*|'[^']*))?/g,Te=/[\s'"`;>]+/,Ee={name:"attributify",extract:({content:t,cursor:e})=>{let r=t.matchAll(Dn),o,n=0;for(let w of r){let[,y,g]=w,d=w.index+y.length;if(e>d&&e<=d+g.length){n=d,o=g;break}}if(!o)return null;let a=o.matchAll(Ln),s=0,i,l;for(let w of a){let[y,g,d]=w,v=n+w.index;if(e>v&&e<=v+y.length){s=v,i=g,l=d==null?void 0:d.slice(1);break}}if(!i||i==="class"||i==="className")return null;if(l===void 0)return{extracted:i,resolveReplacement(w){return{start:s,end:s+i.length,replacement:w}}};let p=s+i.length+2,u=Te.exec(l),f=0,x;for(;u;){let[w]=u;if(e>p+f&&e<=p+f+u.index){x=l.slice(f,f+u.index);break}f+=u.index+w.length,u=Te.exec(l.slice(f))}x===void 0&&(x=l.slice(f));let[,m="",h]=x.match(At)||[];return{extracted:`${m}${i}-${h}`,transformSuggestions(w){return w.filter(y=>y.startsWith(`${m}${i}-`)).map(y=>m+y.slice(m.length+i.length+1))},resolveReplacement(w){return{start:f+p,end:f+p+x.length,replacement:m+w.slice(m.length+i.length+1)}}}}};var Wn=["v-bind:",":"],je=/[\s'"`;]+/g,Nn=/<\w[\w:\.$-]*\s((?:'[\s\S]*?'|"[\s\S]*?"|`[\s\S]*?`|\{[\s\S]*?\}|[\s\S]*?)*?)>/g,Bn=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-]+)(?:=(["'])([^\2]*?)\2)?/g,Ve=t=>{var o,n;let e=(o=t==null?void 0:t.ignoreAttributes)!=null?o:[],r=(n=t==null?void 0:t.nonValuedAttribute)!=null?n:!0;return{name:"attributify",extract({code:a}){let s=Array.from(a.matchAll(Nn)).flatMap(i=>Array.from((i[1]||"").matchAll(Bn))).flatMap(([,i,l,p])=>{if(e.includes(i))return[];for(let u of Wn)if(i.startsWith(u)){i=i.slice(u.length);break}return p?["class","className"].includes(i)?p.split(je).filter(nt):p.split(je).filter(Boolean).map(u=>`[${i}~="${u}"]`):nt(i)&&r!==!1?[`[${i}=""]`]:[]});return new Set(s)}}};var Hn=(t={})=>{var n,a,s,i,l;t.strict=(n=t.strict)!=null?n:!1,t.prefix=(a=t.prefix)!=null?a:"un-",t.prefixedOnly=(s=t.prefixedOnly)!=null?s:!1,t.nonValuedAttribute=(i=t.nonValuedAttribute)!=null?i:!0,t.ignoreAttributes=(l=t.ignoreAttributes)!=null?l:[];let e=[ze(t)],r=[Ve(t)],o=[Ee];return t.strict||r.unshift(at),{name:"@unocss/preset-attributify",variants:e,extractors:r,options:t,autocomplete:{extractors:o}}},Ae=Hn;var Ot=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function X(t=""){let e=In(t);if(e==null||e===!1)return;let{type:r,components:o,alpha:n}=e,a=r.toLowerCase();if(o.length!==0&&!(["rgba","hsla"].includes(a)&&n==null)&&!(Ot.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function P(t,e){let{components:r}=t,{alpha:o,type:n}=t;return o=e!=null?e:o,n=n.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(n)?`${n.replace("a","")}a(${r.join(",")}${o==null?"":`,${o}`})`:(o=o==null?"":` / ${o}`,Ot.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function In(t){if(!t)return;let e=Kn(t);if(e!=null||(e=Gn(t),e!=null)||(e=Xn(t),e!=null)||(e=qn(t),e!=null)||(e=Zn(t),e!=null))return e}function Kn(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(!!e)switch(e.length){case 3:case 4:let r=Array.from(e,n=>Number.parseInt(n,16)).map(n=>n<<4|n);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 o=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[o>>16&255,o>>8&255,o&255]:[o>>24&255,o>>16&255,o>>8&255],alpha:e.length===6?void 0:Math.round((o&255)/255*100)/100}}}function Gn(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function Xn(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,o]=e,n=it(o,",",5);if(n){if([3,4].includes(n.length))return{type:r,components:n.slice(0,3),alpha:n[3]};if(n.length!==1)return!1}}var Yn=new RegExp(`^(${Ot.join("|")})\\((.+)\\)$`,"i");function qn(t){let e=t.match(Yn);if(!e)return;let[,r,o]=e,n=Oe(`${r} ${o}`);if(n){let{alpha:a,components:[s,...i]}=n;return{type:s,components:i,alpha:a}}}function Zn(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=Oe(e[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function Oe(t){let e=it(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 a=e.splice(r-2);e.push(a.join(" ")),--r}let o=it(e[r-1],"/",3);if(!o)return;if(o.length===1||o[o.length-1]==="")return{components:e};let n=o.pop();return e[r-1]=o.join("/"),{components:e,alpha:n}}function Jn(t,e){if(t=t.trim(),t==="")return;let r=t.length,o=0;for(let n=0;n<r;n++)switch(t[n]){case"(":o++;break;case")":if(--o<0)return;break;case e:if(o===0){let a=t.slice(0,n).trim();return a===""?void 0:[a,t.slice(n+1).trim()]}}return[t,""]}function it(t,e,r){if(e=e!=null?e:" ",e.length!==1)return;r=r!=null?r:10;let o=[],n=0;for(;t!=="";){if(++n>r)return;let a=Jn(t,e);if(!a)return;let[s,i]=a;o.push(s),t=i}if(o.length>0)return o}var U={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},Mt=j(T({},U),{s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]}),Ut={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},Pt={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Me=["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"],_=Object.assign({},...Me.map(t=>({[t.replace(/ /,"-")]:t})),...Me.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t})));var Dt={};Tn(Dt,{auto:()=>ra,bracket:()=>ca,bracketOfColor:()=>la,bracketOfLength:()=>pa,cssvar:()=>ua,degree:()=>ma,fraction:()=>sa,global:()=>da,number:()=>aa,numberWithUnit:()=>ea,percent:()=>ia,properties:()=>ga,px:()=>na,rem:()=>oa,time:()=>fa});var Qn=["color","border-color","background-color","flex-grow","flex","flex-shrink","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","backround-position","left","right","top","bottom","object-position","max-height","min-height","max-width","min-width","height","width","border-width","margin","padding","outline-width","outline-offset","font-size","line-height","text-indent","vertical-align","border-spacing","letter-spacing","word-spacing","stroke","filter","backdrop-filter","fill","mask","mask-size","mask-border","clip-path","clip","border-radius"],_t=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,ta=/^(-?[0-9.]+)$/i,Ue=/^(px)$/i;function D(t){return t.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function ea(t){let e=t.match(_t);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(o&&!Number.isNaN(n))return`${D(n)}${o}`}function ra(t){if(t==="auto"||t==="a")return"auto"}function oa(t){if(t.match(Ue))return`1${t}`;let e=t.match(_t);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${D(n)}${o}`:`${D(n/4)}rem`}function na(t){if(t.match(Ue))return`1${t}`;let e=t.match(_t);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${D(n)}${o}`:`${D(n)}px`}function aa(t){if(!ta.test(t))return;let e=parseFloat(t);if(!Number.isNaN(e))return D(e)}function ia(t){t.endsWith("%")&&(t=t.slice(0,-1));let e=parseFloat(t);if(!Number.isNaN(e))return`${D(e/100)}`}function sa(t){if(t==="full")return"100%";let[e,r]=t.split("/"),o=parseFloat(e)/parseFloat(r);if(!Number.isNaN(o))return`${D(o*100)}%`}function Ft(t,e){if(t&&t.startsWith("[")&&t.endsWith("]")){let r,o=t.match(/^\[(color|length):/i);if(o?e&&o[1]===e&&(r=t.slice(o[0].length,-1)):r=t.slice(1,-1),r!==void 0)return r.replace(/(url\(.*?\))/g,n=>n.replace(/_/g,"\\_")).replace(/([^\\])_/g,"$1 ").replace(/calc\((.*)/g,n=>n.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}}function ca(t){return Ft(t)}function la(t){return Ft(t,"color")}function pa(t){return Ft(t,"length")}function ua(t){if(t.match(/^\$\S/))return`var(--${zt(t.slice(1))})`}function fa(t){let e=t.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${D(n)}${o}`:`${D(n)}ms`}function ma(t){let e=t.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${D(n)}${o}`:`${D(n)}deg`}function da(t){if(["inherit","initial","revert","unset"].includes(t))return t}function ga(t){for(let e of t.split(","))if(!Qn.includes(e))return;return t}var c=$e(Dt);var L=(t,e)=>{let r=new RegExp(`^${Q(t)}[:-]`);return{match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),selector:e}},autocomplete:`${t}:`}},F=(t,e)=>{let r=new RegExp(`^${Q(t)}[:-]`);return{match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),parent:e}},autocomplete:`${t}:`}};var E=t=>([e,r,o],{theme:n})=>{var s,i;let a=(i=(s=n.spacing)==null?void 0:s[o||"DEFAULT"])!=null?i:c.bracket.cssvar.auto.fraction.rem(o);if(a!=null)return U[r].map(l=>[`${t}${l}`,a])},Lt=(t,e)=>{var r;return(r=t.colors)==null?void 0:r[e.join("-").replace(/(-[a-z])/g,o=>o.slice(1).toUpperCase())]},Y=(t,e)=>{let r=t.split(/(?:\/|:)/),o,n;r[0]==="[color"?(o=r.slice(0,2).join(":"),n=r[2]):[o,n]=r;let a=o.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[s]=a;if(!s)return;let i,l=c.bracketOfColor(o),p=l||o;p.startsWith("#")?i=p:p.startsWith("hex-")?i=`#${p.slice(4)}`:o.startsWith("$")&&(i=c.cssvar(o)),i=i||l;let u="DEFAULT";if(!i){let f,[x]=a.slice(-1);x.match(/^\d+$/)?(u=x,f=Lt(e,a.slice(0,-1))):(f=Lt(e,a),!f&&a.length<=2&&([,u=u]=a,f=Lt(e,[s]))),typeof f=="string"?i=f:u&&f&&(i=f[u])}return{opacity:n,name:s,no:u,color:i,cssColor:X(i),alpha:c.bracket.cssvar.percent(n!=null?n:"")}},R=(t,e)=>([,r],{theme:o})=>{var l;let n=Y(r,o);if(!n)return;let{alpha:a,color:s,cssColor:i}=n;if(i)return a!=null?{[t]:P(i,a)}:{[`--un-${e}-opacity`]:(l=i.alpha)!=null?l:1,[t]:P(i,`var(--un-${e}-opacity)`)};if(s)return{[t]:s.replace("%alpha",`${a!=null?a:1}`)}},q=(t,e)=>{let r=[];t=A(t);for(let o=0;o<t.length;o++){let n=it(t[o]," ",6);if(!n||n.length<3)return t;let a=X(n.pop());if(a==null)return t;r.push(`${n.join(" ")} var(${e}, ${P(a)})`)}return r},yt=(t,e)=>{var r;return t!=null&&!!((r=Y(t,e))!=null&&r.color)};var Pe=[[/^(?:animate-)?keyframes-(.+)$/,([,t],{theme:e,constructCSS:r})=>{var n,a;let o=(a=(n=e.animation)==null?void 0:n.keyframes)==null?void 0:a[t];if(o)return`@keyframes ${t}${o}
|
|
3
3
|
${r({animation:`${t}`})}`}],[/^animate-(.+)$/,([,t],{theme:e,constructCSS:r})=>{var n,a,s,i,l,p,u,f,x,m;let o=(a=(n=e.animation)==null?void 0:n.keyframes)==null?void 0:a[t];if(o){let h=(l=(i=(s=e.animation)==null?void 0:s.durations)==null?void 0:i[t])!=null?l:"1s",w=(f=(u=(p=e.animation)==null?void 0:p.timingFns)==null?void 0:u[t])!=null?f:"linear",y=(m=(x=e.animation)==null?void 0:x.properties)==null?void 0:m[t];return`@keyframes ${t}${o}
|
|
4
4
|
${r(Object.assign({animation:`${t} ${h} ${w} infinite`},y))}`}return{animation:c.bracket.cssvar(t)}}],[/^animate-name-(.+)/,([,t])=>{var e;return{"animation-name":(e=c.bracket.cssvar(t))!=null?e:t}}],[/^animate-duration-(.+)$/,([,t],{theme:e})=>{var r,o;return{"animation-duration":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar.time(t)}}],[/^animate-delay-(.+)$/,([,t],{theme:e})=>{var r,o;return{"animation-delay":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar.time(t)}}],[/^animate-ease(?:-(.+))?$/,([,t],{theme:e})=>{var r,o;return{"animation-timing-function":(o=(r=e.easing)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar(t)}}],[/^animate-(?:fill-|mode-|fill-mode-)?(none|forwards|backwards|both|inherit|initial|revert|unset)$/,([,t])=>({"animation-fill-mode":t})],[/^animate-(?:direction-)?(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)$/,([,t])=>({"animation-direction":t})],[/^animate-(?:iteration-|count-|iteration-count-)(.+)$/,([,t])=>{var e;return{"animation-iteration-count":(e=c.bracket.cssvar(t))!=null?e:t.replace(/\-/g,",")}}],[/^animate-(?:play-|state-|play-state-)?(paused|running|inherit|initial|revert|unset)$/,([,t])=>({"animation-play-state":t})],["animate-none",{animation:"none"}]];var Wt=t=>([,e],{theme:r})=>{var l;let o=Y(e,r);if(!o)return;let{alpha:n,color:a,cssColor:s}=o;if(!a)return;let i=a;switch(s&&(n!=null?i=P(s,n):i=P(s,`var(--un-${t}-opacity, ${(l=s.alpha)!=null?l:1})`)),t){case"from":return{"--un-gradient-from":i,"--un-gradient-stops":"var(--un-gradient-from), var(--un-gradient-to, rgba(255, 255, 255, 0))"};case"via":return{"--un-gradient-stops":`var(--un-gradient-from), ${i}, var(--un-gradient-to, rgba(255, 255, 255, 0))`};case"to":return{"--un-gradient-to":i}}},_e=[[/^bg-gradient-(.+)$/,([,t])=>({"--un-gradient":c.bracket(t)})],[/^(?:bg-gradient-)?stops-(\[.+\])$/,([,t])=>({"--un-gradient-stops":c.bracket(t)})],[/^(?:bg-gradient-)?from-(.+)$/,Wt("from")],[/^(?:bg-gradient-)?to-(.+)$/,Wt("to")],[/^(?:bg-gradient-)?via-(.+)$/,Wt("via")],[/^(?:bg-gradient-)?from-op(?:acity)?-?(.+)$/,([,t])=>({"--un-from-opacity":c.bracket.percent(t)})],[/^(?:bg-gradient-)?to-op(?:acity)?-?(.+)$/,([,t])=>({"--un-to-opacity":c.bracket.percent(t)})],[/^(?:bg-gradient-)?via-op(?:acity)?-?(.+)$/,([,t])=>({"--un-via-opacity":c.bracket.percent(t)})],[/^bg-gradient-((?:repeating-)?(?:linear|radial|conic))$/,([,t])=>({"background-image":`${t}-gradient(var(--un-gradient, var(--un-gradient-stops, rgba(255, 255, 255, 0))))`})],[/^bg-gradient-to-([rltb]{1,2})$/,([,t])=>{if(t in _)return{"--un-gradient-shape":`to ${_[t]}`,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)","background-image":"linear-gradient(var(--un-gradient))"}}],[/^(?:bg-gradient-)?shape-(.+)$/,([,t])=>{let e=t in _?`to ${_[t]}`:c.bracket(t);if(e!=null)return{"--un-gradient-shape":e,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)"}}],["bg-none",{"background-image":"none"}],["box-decoration-slice",{"box-decoration-break":"slice"}],["box-decoration-clone",{"box-decoration-break":"clone"}],["bg-auto",{"background-size":"auto"}],["bg-cover",{"background-size":"cover"}],["bg-contain",{"background-size":"contain"}],["bg-fixed",{"background-attachment":"fixed"}],["bg-local",{"background-attachment":"local"}],["bg-scroll",{"background-attachment":"scroll"}],["bg-clip-border",{"-webkit-background-clip":"border-box","background-attachment":"border-box"}],["bg-clip-content",{"-webkit-background-clip":"content-box","background-attachment":"content-box"}],["bg-clip-padding",{"-webkit-background-clip":"padding-box","background-attachment":"padding-box"}],["bg-clip-text",{"-webkit-background-clip":"text","background-attachment":"text"}],[/^bg-([-\w]{3,})$/,([,t])=>({"background-position":_[t]})],["bg-repeat",{"background-repeat":"repeat"}],["bg-no-repeat",{"background-repeat":"no-repeat"}],["bg-repeat-x",{"background-position":"repeat-x"}],["bg-repeat-y",{"background-position":"repeat-y"}],["bg-repeat-round",{"background-position":"round"}],["bg-repeat-space",{"background-position":"space"}],["bg-origin-border",{"background-origin":"border-box"}],["bg-origin-padding",{"background-origin":"padding-box"}],["bg-origin-content",{"background-origin":"content-box"}]];var Fe=[[/^list-(disc|circle|square|decimal|zero-decimal|greek|roman|upper-roman|alpha|upper-alpha)(?:-(outside|inside))?$/,([,t,e])=>e!=null?{"list-style-position":e,"list-style-type":t}:{"list-style-type":t}],["list-outside",{"list-style-position":"outside"}],["list-inside",{"list-style-position":"inside"}],["list-none",{"list-style-type":"none"}]],De=[[/^accent-(.+)$/,R("accent-color","accent")],[/^accent-op(?:acity)?-?(.+)$/,([,t])=>({"--un-accent-opacity":c.bracket.percent(t)})]],Le=[[/^caret-(.+)$/,R("caret-color","caret")],[/^caret-op(?:acity)?-?(.+)$/,([,t])=>({"--un-caret-opacity":c.bracket.percent(t)})]],We=[["image-render-auto",{"image-rendering":"auto"}],["image-render-edge",{"image-rendering":"crisp-edges"}],["image-render-pixel",[["-ms-interpolation-mode","nearest-neighbor"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-pixelated"],["image-rendering","pixelated"]]]],Ne=[["overscroll-auto",{"overscroll-behavior":"auto"}],["overscroll-contain",{"overscroll-behavior":"contain"}],["overscroll-none",{"overscroll-behavior":"none"}],["overscroll-x-auto",{"overscroll-behavior-x":"auto"}],["overscroll-x-contain",{"overscroll-behavior-x":"contain"}],["overscroll-x-none",{"overscroll-behavior-x":"none"}],["overscroll-y-auto",{"overscroll-behavior-y":"auto"}],["overscroll-y-contain",{"overscroll-behavior-y":"contain"}],["overscroll-y-none",{"overscroll-behavior-y":"none"}]],Be=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}]];var He=[[/^columns-(.+)$/,([,t])=>({columns:c.bracket.global.number.auto.numberWithUnit(t)})],["break-before-auto",{"break-before":"auto"}],["break-before-avoid",{"break-before":"avoid"}],["break-before-all",{"break-before":"all"}],["break-before-avoid-page",{"break-before":"avoid-page"}],["break-before-page",{"break-before":"page"}],["break-before-left",{"break-before":"left"}],["break-before-right",{"break-before":"right"}],["break-before-column",{"break-before":"column"}],["break-inside-auto",{"break-inside":"auto"}],["break-inside-avoid",{"break-inside":"avoid"}],["break-inside-avoid-page",{"break-inside":"avoid-page"}],["break-inside-avoid-column",{"break-inside":"avoid-column"}],["break-after-auto",{"break-after":"auto"}],["break-after-avoid",{"break-after":"avoid"}],["break-after-all",{"break-after":"all"}],["break-after-avoid-page",{"break-after":"avoid-page"}],["break-after-page",{"break-after":"page"}],["break-after-left",{"break-after":"left"}],["break-after-right",{"break-after":"right"}],["break-after-column",{"break-after":"column"}]];var ba=/@media \(min-width: (.+)\)/,Ie=[[/^__container$/,(t,{variantHandlers:e})=>{var o;let r="100%";for(let n of e){let a=A(n.parent||[])[0];if(typeof a=="string"){let s=(o=a.match(ba))==null?void 0:o[1];s&&(r=s)}}return{"max-width":r}},{internal:!0}]],Ke=[[/^(?:(\w+)[:-])?container$/,([,t],{theme:e})=>{let r=Object.keys(e.breakpoints||{});if(t){if(!r.includes(t))return;r=r.slice(r.indexOf(t))}let o=r.map(n=>`${n}:__container`);return t||o.unshift("__container"),o}]];var ha={mid:"middle",base:"baseline",btm:"bottom"},Ge=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,t])=>({"vertical-align":ha[t]||t}),{autocomplete:"(vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)"}]],Xe=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var Ye=[[/^outline-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r,o;return{"outline-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.bracket.cssvar.px(t)}},{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,R("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,t],{theme:e})=>{var r,o;return{"outline-offset":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.bracket.cssvar.px(t)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],[/^outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)$/,([,t])=>({"outline-style":t}),{autocomplete:"outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)"}],["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],qe=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],xa=t=>{var e;return(e=c.properties.auto.global(t))!=null?e:{contents:"contents",scroll:"scroll-position"}[t]},Ze=[[/^will-change-(.+)/,([,t])=>({"will-change":xa(t)})]];var Je=[[/^(?:border|b)()(?:-(.+))?$/,st,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,st],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,st],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,st],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,st],[/^(?:border|b)-()(?:width|size)-(.+)$/,Z,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,Z],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,Z],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,Z],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,Z],[/^(?:border|b)-()(?:color-)?(.+)$/,ct,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,ct],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,ct],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,ct],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,ct],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,lt,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,lt],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,lt],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,lt],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,lt],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,pt,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,pt],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,pt],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,pt],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,pt],["border-solid",{"border-style":"solid"}],["border-dashed",{"border-style":"dashed"}],["border-dotted",{"border-style":"dotted"}],["border-double",{"border-style":"double"}],["border-hidden",{"border-style":"hidden"}],["border-none",{"border-style":"none"}]],ya=t=>([,e],r)=>{var i,l;let o=Y(e,r);if(!o)return;let{alpha:n,color:a,cssColor:s}=o;if(s)return n!=null?{[`border${t}-color`]:P(s,n)}:t===""?{"--un-border-opacity":(i=s.alpha)!=null?i:1,[`border${t}-color`]:P(s,`var(--un-border${t}-opacity)`)}:{"--un-border-opacity":(l=s.alpha)!=null?l:1,[`--un-border${t}-opacity`]:"var(--un-border-opacity)",[`border${t}-color`]:P(s,`var(--un-border${t}-opacity)`)};if(a)return{[`border${t}-color`]:a.replace("%alpha",`${n!=null?n:1}`)}};function st(t,e){let r=Z(t,e);if(r)return[...r,["border-style","solid"]]}function Z([,t="",e],{theme:r}){var n,a;let o=(a=(n=r.lineWidth)==null?void 0:n[e||"DEFAULT"])!=null?a:c.bracket.cssvar.px(e||"1");if(t in U&&o!=null)return U[t].map(s=>[`border${s}-width`,o])}function ct([,t="",e],{theme:r}){if(t in U&&yt(e,r))return Object.assign({},...U[t].map(o=>ya(o)(["",e],r)))}function lt([,t="",e]){let r=c.bracket.percent(e);if(t in U&&r!=null)return U[t].map(o=>[`--un-border${o}-opacity`,r])}function pt([,t="",e],{theme:r}){var n;let o=((n=r.borderRadius)==null?void 0:n[e||"DEFAULT"])||c.bracket.cssvar.fraction.rem(e||"1");if(t in Ut&&o!=null)return Ut[t].map(a=>[`border${a}-radius`,o])}var Qe=[[/^op(?:acity)?-?(.+)$/,([,t])=>({opacity:c.bracket.percent.cssvar(t)})]],tr=[[/^(?:text|color|c)-(.+)$/,R("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-opacity":c.bracket.percent(t)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],er=[[/^bg-(.+)$/,R("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,t])=>({"--un-bg-opacity":c.bracket.percent(t)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var vt={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},rr=t=>{var e;return(e=c.properties(t))!=null?e:vt[t]},or=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,t,e],{theme:r})=>{var n,a;let o=t!=null?rr(t):[vt.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(o){let s=(a=(n=r.duration)==null?void 0:n[e||"DEFAULT"])!=null?a:c.time(e||"150");return{"transition-property":o,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":s}}},{autocomplete:`transition-(${Object.keys(vt).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,t],{theme:e})=>{var r,o;return{"transition-duration":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar.time(t)}},{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,t],{theme:e})=>{var r,o;return{"transition-delay":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar.time(t)}},{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,t],{theme:e})=>{var r,o;return{"transition-timing-function":(o=(r=e.easing)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar(t)}},{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,t])=>({"transition-property":c.global(t)||rr(t)}),{autocomplete:[`transition-property-(${["inherit","initial","revert","unset",...Object.keys(vt)].join("|")})`]}],["transition-none",{transition:"none"}]];var nr=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,t])=>({flex:c.bracket(t)!=null?c.bracket(t).split(" ").map(e=>{var r;return(r=c.cssvar.fraction(e))!=null?r:e}).join(" "):c.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$/,()=>({"flex-shrink":1})],[/^(?:flex-)?shrink-0$/,()=>({"flex-shrink":0})],[/^(?:flex-)?grow$/,()=>({"flex-grow":1})],[/^(?:flex-)?grow-0$/,()=>({"flex-grow":0})],[/^(?:flex-)?basis-(.+)$/,([,t],{theme:e})=>{var r,o;return{"flex-basis":(o=(r=e.spacing)==null?void 0:r[t])!=null?o:c.bracket.cssvar.auto.fraction.rem(t)}}],["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 ar={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},ir=[[/^font-(\w+)$/,([,t],{theme:e})=>{var r;return{"font-family":((r=e.fontFamily)==null?void 0:r[t])||c.global(t)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,t="base"],{theme:e})=>{var o;let r=A((o=e.fontSize)==null?void 0:o[t]);if(r!=null&&r[0]){let[n,a="1"]=r;return{"font-size":n,"line-height":a}}return{"font-size":c.bracketOfLength.rem(t)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,t],{theme:e})=>{var n,a;let r=A((n=e.fontSize)==null?void 0:n[t]),o=(a=r==null?void 0:r[0])!=null?a:c.bracket.cssvar.rem(t);if(o!=null)return{"font-size":o}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,t])=>({"font-weight":ar[t]||c.global.number(t)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(ar).join("|")})`}],[/^(?:leading|lh)-(.+)$/,([,t],{theme:e})=>{var r;return{"line-height":((r=e.lineHeight)==null?void 0:r[t])||c.bracket.cssvar.global.rem(t)}},{autocomplete:"(leading|lh)-$lineHeight"}],[/^tracking-(.+)$/,([,t],{theme:e})=>{var r;return{"letter-spacing":((r=e.letterSpacing)==null?void 0:r[t])||c.bracket.cssvar.global.rem(t)}},{autocomplete:"tracking-$letterSpacing"}],[/^word-spacing-(.+)$/,([,t],{theme:e})=>{var r;return{"word-spacing":((r=e.wordSpacing)==null?void 0:r[t])||c.bracket.cssvar.global.rem(t)}},{autocomplete:"word-spacing-$wordSpacing"}]],sr=[[/^tab(?:-(.+))?$/,([,t])=>{let e=c.bracket.cssvar.global.number(t||"4");if(e!=null)return{"-moz-tab-size":e,"-o-tab-size":e,"tab-size":e}}]],cr=[[/^indent(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"text-indent":((r=e.textIndent)==null?void 0:r[t||"DEFAULT"])||c.bracket.cssvar.global.fraction.rem(t)}},{autocomplete:"indent-$textIndent"}]],lr=[[/^text-stroke(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"-webkit-text-stroke-width":((r=e.textStrokeWidth)==null?void 0:r[t||"DEFAULT"])||c.bracket.cssvar.px(t)}},{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,R("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-stroke-opacity":c.bracket.percent(t)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],pr=[[/^text-shadow(?:-(.+))?$/,([,t],{theme:e})=>{var o;let r=(o=e.textShadow)==null?void 0:o[t||"DEFAULT"];return r!=null?{"--un-text-shadow":q(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":c.bracket.cssvar(t)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,R("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-shadow-opacity":c.bracket.percent(t)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var ur={"":"",x:"column-",y:"row-"},fr=([,t="",e],{theme:r})=>{var n,a;let o=(a=(n=r.spacing)==null?void 0:n[e])!=null?a:c.bracket.cssvar.rem(e);if(o!=null)return{[`grid-${ur[t]}gap`]:o,[`${ur[t]}gap`]:o}},mr=[[/^(?:flex-|grid-)?gap-?()(.+)$/,fr,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,fr,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var W=t=>t.replace("col","column"),Nt=t=>t[0]==="r"?"Row":"Column",va=(t,e,r)=>{var n;let o=(n=e[`gridAuto${Nt(t)}`])==null?void 0:n[r];if(o!=null)return o;switch(r){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return c.bracket.cssvar.auto.rem(r)},dr=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,t,e],{theme:r})=>{var o,n;return{[`grid-${W(t)}`]:(n=(o=r[`grid${Nt(t)}`])==null?void 0:o[e])!=null?n:c.bracket.cssvar.auto(e)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,t,e])=>{if(e==="full")return{[`grid-${W(t)}`]:"1/-1"};let r=c.bracket.number(e);if(r!=null)return{[`grid-${W(t)}`]:`span ${r}/span ${r}`}},{autocomplete:["grid-(row|col)-span-<num>","(row|col)-span-<num>"]}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,t,e])=>{var r;return{[`grid-${W(t)}-start`]:(r=c.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,t,e])=>{var r;return{[`grid-${W(t)}-end`]:(r=c.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-auto-${W(t)}`]:va(t,r,e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,t])=>({"grid-auto-flow":c.bracket.cssvar(t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-((?:row|col)(?:-dense)?)$/,([,t])=>({"grid-auto-flow":W(t).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>{var o,n;return{[`grid-template-${W(t)}`]:(n=(o=r[`gridTemplate${Nt(t)}`])==null?void 0:o[e])!=null?n:c.bracket.cssvar(e)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,t,e])=>({[`grid-template-${W(t)}`]:`repeat(auto-fill,minmax(${e},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,t,e])=>({[`grid-template-${W(t)}`]:`repeat(${e},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var $t=["auto","hidden","clip","visible","scroll"],gr=[[/^(?:overflow|of)-(.+)$/,([,t])=>$t.includes(t)?{overflow:t}:void 0,{autocomplete:[`(overflow|of)-${$t.join("|")}`,`(overflow|of)-(x|y)-${$t.join("|")}`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,t,e])=>$t.includes(e)?{[`overflow-${t}`]:e}:void 0]];var br=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,t])=>({position:t})],[/^(?:position-|pos-)?(static)$/,([,t])=>({position:t})]],hr=[["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-items-start",{"justify-items":"start"}],["justify-items-end",{"justify-items":"end"}],["justify-items-center",{"justify-items":"center"}],["justify-items-stretch",{"justify-items":"stretch"}],["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"}]],xr=[[/^order-(.+)$/,([,t])=>({order:c.bracket.cssvar.number(t)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],yr=[["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"}],["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"}],["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"}]],vr=[["place-content-center",{"place-content":"center"}],["place-content-start",{"place-content":"start"}],["place-content-end",{"place-content":"end"}],["place-content-between",{"place-content":"space-between"}],["place-content-around",{"place-content":"space-around"}],["place-content-evenly",{"place-content":"space-evenly"}],["place-content-stretch",{"place-content":"stretch"}],["place-items-start",{"place-items":"start"}],["place-items-end",{"place-items":"end"}],["place-items-center",{"place-items":"center"}],["place-items-stretch",{"place-items":"stretch"}],["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"}]];function Bt(t,{theme:e}){var r,o;return(o=(r=e.spacing)==null?void 0:r[t])!=null?o:c.bracket.cssvar.auto.fraction.rem(t)}function kt([,t,e],r){let o=Bt(e,r);if(o!=null&&t in Mt)return Mt[t].map(n=>[n.slice(1),o])}var $r=[[/^(?:position-|pos-)?inset-(.+)$/,([,t],e)=>({inset:Bt(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-)?inset-([xy])-(.+)$/,kt],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,kt],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,kt],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,kt],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,t,e],r)=>({[t]:Bt(e,r)})]],kr=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-none",{float:"none"}],["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-none",{clear:"none"}]],wr=[[/^z([\d.]+)$/,([,t])=>({"z-index":c.number(t)})],[/^z-(.+)$/,([,t])=>({"z-index":c.bracket.cssvar.auto.number(t)}),{autocomplete:"z-<num>"}]],Sr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var k="var(--un-empty,/*!*/ /*!*/)",Rr=[["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:c.bracket.cssvar(t)||t})]],Cr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],zr=[[/^cursor-(.+)$/,([,t])=>({cursor:c.bracket.cssvar(t)||t})]],Tr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],Er=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],jr=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],Vr=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,t])=>({"white-space":t}),{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)"}]];var Ar=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Or=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]];var Mr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}]],Ur=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto","font-smoothing":"auto"}]];var Pr=[[/^ring(?:-(.+))?$/,([,t],{theme:e})=>{var o,n;let r=(n=(o=e.ringWidth)==null?void 0:o[t||"DEFAULT"])!=null?n:c.px(t||"1");if(r)return[{[V]:"","--un-ring-inset":k,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgba(147,197,253,0.5)"},{"--un-ring-width":r,"--un-ring-offset-shadow":"var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)","--un-ring-shadow":"var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color)","box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow, 0 0 #0000)"}]},{autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,([,t],{theme:e})=>{var r,o;return{"--un-ring-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.bracket.cssvar.px(t)}},{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r,o;return{"--un-ring-offset-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.bracket.cssvar.px(t)}},{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,R("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-opacity":c.bracket.percent(t)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,R("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-offset-opacity":c.bracket.percent(t)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var _r=[[/^shadow(?:-(.+))?$/,([,t],{theme:e})=>{var o;let r=(o=e.boxShadow)==null?void 0:o[t||"DEFAULT"];if(r)return[{[V]:"","--un-shadow-inset":k,"--un-shadow":"0 0 #0000"},{"--un-shadow":q(r,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"}]},{autocomplete:"shadow-$boxShadow"}],[/^shadow-(.+)$/,R("--un-shadow-color","shadow"),{autocomplete:"shadow-$colors"}],[/^shadow-op(?:acity)?-?(.+)$/,([,t])=>({"--un-shadow-opacity":c.bracket.percent(t)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var $a={h:"height",w:"width",inline:"inline-size",block:"block-size"};function ut(t,e){return`${t||""}${$a[e]}`}function Fr(t,e,r,o){var s;let n=ut(t,e).replace(/-(\w)/g,(i,l)=>l.toUpperCase()),a=(s=r[n])==null?void 0:s[o];if(a!=null)return a;switch(o){case"fit":case"max":case"min":return`${o}-content`}return c.bracket.cssvar.auto.fraction.rem(o)}var Dr=[[/^(min-|max-)?([wh])-?(.+)$/,([,t,e,r],{theme:o})=>({[ut(t,e)]:Fr(t,e,o,r)}),{autocomplete:["(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"]}],[/^(min-|max-)?(block|inline)-(.+)$/,([,t,e,r],{theme:o})=>({[ut(t,e)]:Fr(t,e,o,r)}),{autocomplete:["(w|h)-(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h)-(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"]}],[/^(min-|max-)?(h)-screen-(.+)$/,([,t,e,r],{theme:o})=>{var n;return{[ut(t,e)]:(n=o.verticalBreakpoints)==null?void 0:n[r]}},{autocomplete:["h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints"]}],[/^(min-|max-)?(w)-screen-(.+)$/,([,t,e,r],{theme:o})=>{var n;return{[ut(t,e)]:(n=o.breakpoints)==null?void 0:n[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function ka(t){if(/^\d+\/\d+$/.test(t))return t;switch(t){case"square":return"1/1";case"video":return"16/9"}return c.bracket.cssvar.auto.number(t)}var Lr=[[/^aspect-(?:ratio-)?(.+)$/,([,t])=>({"aspect-ratio":ka(t)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var Wr=[[/^pa?()-?(-?.+)$/,E("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?([xy])-?(-?.+)$/,E("padding")],[/^p-?([rltbse])-?(-?.+)$/,E("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)-(-?.+)$/,E("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])-?(-?.+)$/,E("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],Nr=[[/^ma?()-?(-?.+)$/,E("margin")],[/^m-?([xy])-?(-?.+)$/,E("margin")],[/^m-?([rltbse])-?(-?.+)$/,E("margin")],[/^m-(block|inline)-(-?.+)$/,E("margin")],[/^m-?([bi][se])-?(-?.+)$/,E("margin")]];var wa={"--un-transform":["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(" ")},Kr={"--un-transform":["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(" ")},J=j(T({"--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},Kr),{[V]:""}),Gr=[[/^(?:transform-)?origin-(.+)$/,([,t])=>{var e;return{"transform-origin":(e=_[t])!=null?e:c.bracket.cssvar(t)}},{autocomplete:[`transform-origin-(${Object.keys(_).join("|")})`,`origin-(${Object.keys(_).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,t])=>{let e=c.bracket.cssvar.px.numberWithUnit(t);if(e!=null)return{"-webkit-perspective":e,perspective:e}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,t])=>{var r;let e=(r=c.bracket.cssvar(t))!=null?r:t.length>=3?_[t]:void 0;if(e!=null)return{"-webkit-perspective-origin":e,"perspective-origin":e}}],[/^(?:transform-)?translate-()(.+)$/,Br],[/^(?:transform-)?translate-([xyz])-(.+)$/,Br],[/^(?:transform-)?rotate-()(.+)$/,Ir],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Ir],[/^(?:transform-)?skew-([xy])-(.+)$/,Sa],[/^(?:transform-)?scale-()(.+)$/,Hr],[/^(?:transform-)?scale-([xyz])-(.+)$/,Hr],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[J,{transform:"var(--un-transform)"}]],["transform-gpu",wa],["transform-cpu",Kr],["transform-none",{transform:"none"}]];function Br([,t,e],{theme:r}){var n,a;let o=(a=(n=r.spacing)==null?void 0:n[e])!=null?a:c.bracket.cssvar.fraction.rem(e);if(o!=null)return[J,[...Pt[t].map(s=>[`--un-translate${s}`,o]),["transform","var(--un-transform)"]]]}function Hr([,t,e]){let r=c.bracket.cssvar.fraction.percent(e);if(r!=null)return[J,[...Pt[t].map(o=>[`--un-scale${o}`,r]),["transform","var(--un-transform)"]]]}function Ir([,t="",e]){let r=c.bracket.cssvar.degree(e);if(r!=null)return t?[J,{"--un-rotate":0,[`--un-rotate-${t}`]:r,transform:"var(--un-transform)"}]:[J,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function Sa([,t,e]){let r=c.bracket.cssvar.degree(e);if(r!=null)return[J,{[`--un-skew-${t}`]:r,transform:"var(--un-transform)"}]}var Ra={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",fw:"font-weight",items:"align-items",justify:"justify-content",select:"user-select",self:"align-self",vertical:"vertical-align",visible:"visibility",whitespace:"white-space",ws:"white-space"},Xr=[[/^(.+?)-(\$.+)$/,([,t,e])=>{let r=Ra[t];if(r)return{[r]:c.cssvar(e)}}]],Yr=[[/^\[([^:]+):(.+)\]$/,([,t,e])=>({[t]:c.bracket(`[${e}]`)})]];var qr=[[/^(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}}
|
package/mini.global.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(()=>{var qe=Object.defineProperty,Sn=Object.defineProperties;var kn=Object.getOwnPropertyDescriptors;var ce=Object.getOwnPropertySymbols;var Ze=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable;var Ge=(e,t,r)=>t in e?qe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))Ze.call(t,r)&&Ge(e,r,t[r]);if(ce)for(var r of ce(t))Xe.call(t,r)&&Ge(e,r,t[r]);return e},z=(e,t)=>Sn(e,kn(t));var Ye=(e,t)=>{var r={};for(var n in e)Ze.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ce)for(var n of ce(e))t.indexOf(n)<0&&Xe.call(e,n)&&(r[n]=e[n]);return r};var Cn=(e,t)=>{for(var r in t)qe(e,r,{get:t[r],enumerable:!0})};var Rn={mid:"middle",base:"baseline",btm:"bottom"},Je=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,e])=>({"vertical-align":Rn[e]||e}),{autocomplete:"(vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)"}]],Qe=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var $e=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function we(e=""){let t=Tn(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(["rgba","hsla"].includes(i)&&o==null)&&!($e.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n,alpha:o}}function _(e,t){let{components:r}=e,{alpha:n,type:o}=e;return n=t!=null?t:n,o=o.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(o)?`${o.replace("a","")}a(${r.join(",")}${n==null?"":`,${n}`})`:(n=n==null?"":` / ${n}`,$e.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function Tn(e){if(!e)return;let t=En(e);if(t!=null||(t=zn(e),t!=null)||(t=jn(e),t!=null)||(t=Vn(e),t!=null)||(t=Pn(e),t!=null))return t}function En(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(!!t)switch(t.length){case 3:case 4:let r=Array.from(t,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:t.length===6?void 0:Math.round((n&255)/255*100)/100}}}function zn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function jn(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=I(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 An=new RegExp(`^(${$e.join("|")})\\((.+)\\)$`,"i");function Vn(e){let t=e.match(An);if(!t)return;let[,r,n]=t,o=et(`${r} ${n}`);if(o){let{alpha:i,components:[a,...s]}=o;return{type:a,components:s,alpha:i}}}function Pn(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=et(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function et(e){let t=I(e);if(!t)return;let r=t.length;if(t[r-2]==="/")return{components:t.slice(0,r-2),alpha:t[r-1]};if(t[r-2]!=null&&(t[r-2].endsWith("/")||t[r-1].startsWith("/"))){let i=t.splice(r-2);t.push(i.join(" ")),--r}let n=I(t[r-1],"/",3);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:t};let o=n.pop();return t[r-1]=n.join("/"),{components:t,alpha:o}}function On(e,t){if(e=e.trim(),e==="")return;let r=e.length,n=0;for(let o=0;o<r;o++)switch(e[o]){case"(":n++;break;case")":if(--n<0)return;break;case t:if(n===0){let i=e.slice(0,o).trim();return i===""?void 0:[i,e.slice(o+1).trim()]}}return[e,""]}function I(e,t,r){if(t=t!=null?t:" ",t.length!==1)return;r=r!=null?r:10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=On(e,t);if(!i)return;let[a,s]=i;n.push(a),e=s}if(n.length>0)return n}var O={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"]},ve=z(R({},O),{s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]}),Se={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},ke={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},tt=["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"],K=Object.assign({},...tt.map(e=>({[e.replace(/ /,"-")]:e})),...tt.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e})));function G(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ce(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===44){o+="\\2c ";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var le=Ce;function Z(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function rt(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>Z(t)):[e]:[Z(e)]}function Un(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function ue(e){return e==null?"":Un(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Re(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Te(e,t){let r=e,n=t;if(Array.isArray(r)&&Array.isArray(n))return[...r,...n];if(Array.isArray(r))return[...r];let o=R({},r);return Re(r)&&Re(n)&&Object.keys(n).forEach(i=>{Re(n[i])?i in r?o[i]=Te(r[i],n[i]):Object.assign(o,{[i]:n[i]}):Object.assign(o,{[i]:n[i]})}),o}function q(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?q(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:q(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?q(n):n;return r}return e}function nt(e){return typeof e[0]=="string"}function ot(e){return typeof e[0]=="string"}function E(e=[]){return Array.isArray(e)?e:[e]}function X(e){return Array.from(new Set(e))}var Mn=/^\[(.+?)~?="(.*)"\]$/,Fn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,M="$$shortcut-no-merge";function it(e){return e.match(Mn)}function Y(e=""){return Fn.test(e)}function st(e){return typeof e=="function"?{match:e}:e}function Ee(e){return e.length===3}function at(e){return e!=null}var ze=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){var n;return(n=this._map.get(t))==null?void 0:n.has(r)}delete(t,r){var n;return((n=this._map.get(t))==null?void 0:n.delete(r))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>t(i,r,o)))}};var ct=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function lt(e){return ct.lastIndex=0,e.replace(ct,(t,r,n,o)=>o.split(/\s/g).map(i=>i.replace(/^(!?)(.*)/,`$1${r}${n}$2`)).join(" "))}var ut=new Set;function ft(e){ut.has(e)||(console.warn("[unocss]",e),ut.add(e))}function pt(e){let t=function(n){var i;let o=((i=this.__options)==null?void 0:i.sequence)||[];this.__options.sequence=[];for(let a of o){let s=e[a](n);if(s!=null)return s}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,get(){return r(this,n)}});return t}var _n=e=>e.split(/[\s'"`;>=]+/g).filter(Y),J={name:"split",order:0,extract({code:e}){return new Set(_n(e))}};function Wn(e){return E(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ln={shortcuts:-1,default:0};function je(e={},t={}){let r=Object.assign({},t,e),n=(r.presets||[]).flatMap(E),o=[...n.filter(f=>f.enforce==="pre"),...n.filter(f=>!f.enforce),...n.filter(f=>f.enforce==="post")],i=Object.assign(Ln,...n.map(f=>f.layers),e.layers);function a(f){return X([...o.flatMap(x=>E(x[f]||[])),...E(r[f]||[])])}let s=a("extractors");s.length||s.push(J),s.sort((f,x)=>(f.order||0)-(x.order||0));let l=a("rules"),u={},p=l.length;l.forEach((f,x)=>{nt(f)&&(u[f[0]]=[x,f[1],f[2]],delete l[x])});let m=q([...o.map(f=>f.theme||{}),r.theme||{}].reduce((f,x)=>Te(f,x),{}));a("extendTheme").forEach(f=>f(m));let w={templates:X(o.map(f=>{var x;return E((x=f.autocomplete)==null?void 0:x.templates)}).flat()),extractors:o.map(f=>{var x;return E((x=f.autocomplete)==null?void 0:x.extractors)}).flat().sort((f,x)=>(f.order||0)-(x.order||0))};return z(R({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:f=>f},r),{presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:i,theme:m,rulesSize:p,rulesDynamic:l,rulesStaticMap:u,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:w,variants:a("variants").map(st),shortcuts:Wn(a("shortcuts")),extractors:s})}var mt="0.30.0";var ht=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=je(t,r)}version=mt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.config=je(t,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(t,r,n=new Set){let o={get original(){return t},code:t,id:r};for(let i of this.config.extractors){let a=await i.extract(o);a==null||a.forEach(s=>n.add(s))}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){var l;if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this._cache.has(n))return this._cache.get(n);let o=t;for(let u of this.config.preprocess)o=u(t);if(this.isBlocked(o)){this.blocked.add(t),this._cache.set(n,null);return}let i=this.matchVariants(t,o);if(!i||this.isBlocked(i[1])){this.blocked.add(t),this._cache.set(n,null);return}let a=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]),s=this.expandShortcut(a.currentSelector,a);if(s){let u=await this.stringifyShortcuts(a.variantMatch,a,s[0],s[1]);if(u!=null&&u.length)return this._cache.set(n,u),u}else{let u=(l=await this.parseUtil(a.variantMatch,a))==null?void 0:l.map(p=>this.stringifyUtil(p)).filter(at);if(u!=null&&u.length)return this._cache.set(n,u),u}this._cache.set(n,null)}async generate(t,{id:r,scope:n,preflights:o=!0,safelist:i=!0,minify:a=!1}={}){let s=typeof t=="string"?await this.applyExtractors(t,r):t;i&&this.config.safelist.forEach(h=>s.add(h));let l=a?"":`
|
|
1
|
+
(()=>{var qe=Object.defineProperty,Sn=Object.defineProperties;var kn=Object.getOwnPropertyDescriptors;var ce=Object.getOwnPropertySymbols;var Ze=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable;var Ge=(e,t,r)=>t in e?qe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))Ze.call(t,r)&&Ge(e,r,t[r]);if(ce)for(var r of ce(t))Xe.call(t,r)&&Ge(e,r,t[r]);return e},z=(e,t)=>Sn(e,kn(t));var Ye=(e,t)=>{var r={};for(var n in e)Ze.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ce)for(var n of ce(e))t.indexOf(n)<0&&Xe.call(e,n)&&(r[n]=e[n]);return r};var Cn=(e,t)=>{for(var r in t)qe(e,r,{get:t[r],enumerable:!0})};var Rn={mid:"middle",base:"baseline",btm:"bottom"},Je=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,e])=>({"vertical-align":Rn[e]||e}),{autocomplete:"(vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)"}]],Qe=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var $e=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function we(e=""){let t=Tn(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(["rgba","hsla"].includes(i)&&o==null)&&!($e.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n,alpha:o}}function _(e,t){let{components:r}=e,{alpha:n,type:o}=e;return n=t!=null?t:n,o=o.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(o)?`${o.replace("a","")}a(${r.join(",")}${n==null?"":`,${n}`})`:(n=n==null?"":` / ${n}`,$e.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function Tn(e){if(!e)return;let t=En(e);if(t!=null||(t=zn(e),t!=null)||(t=jn(e),t!=null)||(t=Vn(e),t!=null)||(t=Pn(e),t!=null))return t}function En(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(!!t)switch(t.length){case 3:case 4:let r=Array.from(t,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:t.length===6?void 0:Math.round((n&255)/255*100)/100}}}function zn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function jn(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=I(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 An=new RegExp(`^(${$e.join("|")})\\((.+)\\)$`,"i");function Vn(e){let t=e.match(An);if(!t)return;let[,r,n]=t,o=et(`${r} ${n}`);if(o){let{alpha:i,components:[a,...s]}=o;return{type:a,components:s,alpha:i}}}function Pn(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=et(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function et(e){let t=I(e);if(!t)return;let r=t.length;if(t[r-2]==="/")return{components:t.slice(0,r-2),alpha:t[r-1]};if(t[r-2]!=null&&(t[r-2].endsWith("/")||t[r-1].startsWith("/"))){let i=t.splice(r-2);t.push(i.join(" ")),--r}let n=I(t[r-1],"/",3);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:t};let o=n.pop();return t[r-1]=n.join("/"),{components:t,alpha:o}}function On(e,t){if(e=e.trim(),e==="")return;let r=e.length,n=0;for(let o=0;o<r;o++)switch(e[o]){case"(":n++;break;case")":if(--n<0)return;break;case t:if(n===0){let i=e.slice(0,o).trim();return i===""?void 0:[i,e.slice(o+1).trim()]}}return[e,""]}function I(e,t,r){if(t=t!=null?t:" ",t.length!==1)return;r=r!=null?r:10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=On(e,t);if(!i)return;let[a,s]=i;n.push(a),e=s}if(n.length>0)return n}var O={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"]},ve=z(R({},O),{s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]}),Se={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},ke={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},tt=["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"],K=Object.assign({},...tt.map(e=>({[e.replace(/ /,"-")]:e})),...tt.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e})));function G(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ce(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===44){o+="\\2c ";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var le=Ce;function Z(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function rt(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>Z(t)):[e]:[Z(e)]}function Un(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function ue(e){return e==null?"":Un(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Re(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Te(e,t){let r=e,n=t;if(Array.isArray(r)&&Array.isArray(n))return[...r,...n];if(Array.isArray(r))return[...r];let o=R({},r);return Re(r)&&Re(n)&&Object.keys(n).forEach(i=>{Re(n[i])?i in r?o[i]=Te(r[i],n[i]):Object.assign(o,{[i]:n[i]}):Object.assign(o,{[i]:n[i]})}),o}function q(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?q(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:q(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?q(n):n;return r}return e}function nt(e){return typeof e[0]=="string"}function ot(e){return typeof e[0]=="string"}function E(e=[]){return Array.isArray(e)?e:[e]}function X(e){return Array.from(new Set(e))}var Mn=/^\[(.+?)~?="(.*)"\]$/,Fn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,M="$$shortcut-no-merge";function it(e){return e.match(Mn)}function Y(e=""){return Fn.test(e)}function st(e){return typeof e=="function"?{match:e}:e}function Ee(e){return e.length===3}function at(e){return e!=null}var ze=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){var n;return(n=this._map.get(t))==null?void 0:n.has(r)}delete(t,r){var n;return((n=this._map.get(t))==null?void 0:n.delete(r))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>t(i,r,o)))}};var ct=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function lt(e){return ct.lastIndex=0,e.replace(ct,(t,r,n,o)=>o.split(/\s/g).map(i=>i.replace(/^(!?)(.*)/,`$1${r}${n}$2`)).join(" "))}var ut=new Set;function ft(e){ut.has(e)||(console.warn("[unocss]",e),ut.add(e))}function pt(e){let t=function(n){var i;let o=((i=this.__options)==null?void 0:i.sequence)||[];this.__options.sequence=[];for(let a of o){let s=e[a](n);if(s!=null)return s}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,get(){return r(this,n)}});return t}var _n=e=>e.split(/[\s'"`;>=]+/g).filter(Y),J={name:"split",order:0,extract({code:e}){return new Set(_n(e))}};function Wn(e){return E(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ln={shortcuts:-1,default:0};function je(e={},t={}){let r=Object.assign({},t,e),n=(r.presets||[]).flatMap(E),o=[...n.filter(f=>f.enforce==="pre"),...n.filter(f=>!f.enforce),...n.filter(f=>f.enforce==="post")],i=Object.assign(Ln,...n.map(f=>f.layers),e.layers);function a(f){return X([...o.flatMap(x=>E(x[f]||[])),...E(r[f]||[])])}let s=a("extractors");s.length||s.push(J),s.sort((f,x)=>(f.order||0)-(x.order||0));let l=a("rules"),u={},p=l.length;l.forEach((f,x)=>{nt(f)&&(u[f[0]]=[x,f[1],f[2]],delete l[x])});let m=q([...o.map(f=>f.theme||{}),r.theme||{}].reduce((f,x)=>Te(f,x),{}));a("extendTheme").forEach(f=>f(m));let w={templates:X(o.map(f=>{var x;return E((x=f.autocomplete)==null?void 0:x.templates)}).flat()),extractors:o.map(f=>{var x;return E((x=f.autocomplete)==null?void 0:x.extractors)}).flat().sort((f,x)=>(f.order||0)-(x.order||0))};return z(R({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:f=>f},r),{presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:i,theme:m,rulesSize:p,rulesDynamic:l,rulesStaticMap:u,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:w,variants:a("variants").map(st),shortcuts:Wn(a("shortcuts")),extractors:s})}var mt="0.30.1";var ht=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=je(t,r)}version=mt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.config=je(t,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(t,r,n=new Set){let o={get original(){return t},code:t,id:r};for(let i of this.config.extractors){let a=await i.extract(o);a==null||a.forEach(s=>n.add(s))}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){var l;if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this._cache.has(n))return this._cache.get(n);let o=t;for(let u of this.config.preprocess)o=u(t);if(this.isBlocked(o)){this.blocked.add(t),this._cache.set(n,null);return}let i=this.matchVariants(t,o);if(!i||this.isBlocked(i[1])){this.blocked.add(t),this._cache.set(n,null);return}let a=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]),s=this.expandShortcut(a.currentSelector,a);if(s){let u=await this.stringifyShortcuts(a.variantMatch,a,s[0],s[1]);if(u!=null&&u.length)return this._cache.set(n,u),u}else{let u=(l=await this.parseUtil(a.variantMatch,a))==null?void 0:l.map(p=>this.stringifyUtil(p)).filter(at);if(u!=null&&u.length)return this._cache.set(n,u),u}this._cache.set(n,null)}async generate(t="",{id:r,scope:n,preflights:o=!0,safelist:i=!0,minify:a=!1}={}){let s=typeof t=="string"?await this.applyExtractors(t,r):t;i&&this.config.safelist.forEach(h=>s.add(h));let l=a?"":`
|
|
2
2
|
`,u=new Set(["default"]),p=new Set,m=new Map;await Promise.all(Array.from(s).map(async h=>{var b;if(p.has(h))return;let d=await this.parseToken(h);if(d!=null){p.add(h);for(let v of d){let k=v[3]||"";m.has(k)||m.set(k,[]),m.get(k).push(v),(b=v[4])!=null&&b.layer&&u.add(v[4].layer)}}})),o&&this.config.preflights.forEach(h=>{h.layer&&u.add(h.layer)});let w={},f=this.config.sortLayers(Array.from(u).sort((h,d)=>{var b,v;return((b=this.config.layers[h])!=null?b:0)-((v=this.config.layers[d])!=null?v:0)||h.localeCompare(d)})),x={};if(o){let h={generator:this,theme:this.config.theme};x=Object.fromEntries(await Promise.all(f.map(async d=>{let v=(await Promise.all(this.config.preflights.filter(k=>(k.layer||"default")===d).map(async k=>await k.getCSS(h)))).filter(Boolean).join(l);return[d,v]})))}let S=h=>{if(w[h])return w[h];let d=Array.from(m).sort((b,v)=>{var k,j,g;return((k=this.parentOrders.get(b[0]))!=null?k:0)-((j=this.parentOrders.get(v[0]))!=null?j:0)||((g=b[0])==null?void 0:g.localeCompare(v[0]||""))||0}).map(([b,v])=>{let k=v.length,j=v.filter($=>{var C;return(((C=$[4])==null?void 0:C.layer)||"default")===h}).sort(($,C)=>{var W,L,V;return $[0]-C[0]||(((W=$[4])==null?void 0:W.sort)||0)-(((L=C[4])==null?void 0:L.sort)||0)||((V=$[1])==null?void 0:V.localeCompare(C[1]||""))||0}).map($=>{var C;return[$[1]?Nn($[1],n):$[1],$[2],!!((C=$[4])!=null&&C.noMerge)]}).map($=>[$[0]==null?$[0]:[$[0]],$[1],$[2]]);if(!j.length)return;let g=j.reverse().map(([$,C,W],L)=>{if(!W&&$&&this.config.mergeSelectors)for(let V=L+1;V<k;V++){let B=j[V];if(B&&!B[2]&&B[0]&&B[1]===C)return B[0].push(...$),null}return $?`${[...new Set($)].join(`,${l}`)}{${C}}`:C}).filter(Boolean).reverse().join(l);return b?`${b}{${l}${g}${l}}`:g}).filter(Boolean).join(l);return o&&(d=[x[h],d].filter(Boolean).join(l)),w[h]=!a&&d?`/* layer: ${h} */${l}${d}`:d},y=(h=f,d)=>h.filter(b=>!(d!=null&&d.includes(b))).map(b=>S(b)||"").filter(Boolean).join(l);return{get css(){return y()},layers:f,getLayers:y,getLayer:S,matched:p}}matchVariants(t,r){let n=new Set,o=[],i=r||t,a=!1,s={rawSelector:t,theme:this.config.theme,generator:this};for(;;){a=!1;for(let l of this.config.variants){if(!l.multiPass&&n.has(l))continue;let u=l.match(i,s);if(!!u){typeof u=="string"&&(u={matcher:u}),i=u.matcher,Array.isArray(u.parent)&&this.parentOrders.set(u.parent[0],u.parent[1]),o.push(u),n.add(l),a=!0;break}}if(!a)break;if(o.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,o,n]}applyVariants(t,r=t[4],n=t[1]){let o=[...r].sort((s,l)=>(s.order||0)-(l.order||0)),i=o.reduce((s,l)=>{var u;return((u=l.body)==null?void 0:u.call(l,s))||s},t[2]),a={selector:o.reduce((s,l)=>{var u;return((u=l.selector)==null?void 0:u.call(l,s,i))||s},Bn(n)),entries:i,parent:o.reduce((s,l)=>Array.isArray(l.parent)?l.parent[0]:l.parent||s,void 0),layer:o.reduce((s,l)=>l.layer||s,void 0),sort:o.reduce((s,l)=>l.sort||s,void 0)};for(let s of this.config.postprocess)s(a);return a}constructCustomCSS(t,r,n){r=Z(r);let{selector:o,entries:i,parent:a}=this.applyVariants([0,n||t.rawSelector,r,void 0,t.variantHandlers]),s=`${o}{${ue(i)}}`;return a?`${a}{${s}}`:s}async parseUtil(t,r,n=!1){var p,m;let[o,i,a]=typeof t=="string"?this.matchVariants(t):t,s=this.config.rulesStaticMap[i];if(s&&s[1]&&(n||!((p=s[2])!=null&&p.internal)))return[[s[0],o,Z(s[1]),s[2],a]];r.variantHandlers=a;let{rulesDynamic:l,rulesSize:u}=this.config;for(let w=u-1;w>=0;w--){let f=l[w];if(!f||((m=f[2])==null?void 0:m.internal)&&!n)continue;let[x,S,y]=f,h=i.match(x);if(!h)continue;let d=await S(h,r);if(!d)continue;if(typeof d=="string")return[[w,d,y]];let b=rt(d).filter(v=>v.length);if(b.length)return b.map(v=>[w,o,v,y,a])}}stringifyUtil(t){var w;if(!t)return;if(Ee(t))return[t[0],void 0,t[1],void 0,t[2]];let{selector:r,entries:n,parent:o,layer:i,sort:a}=this.applyVariants(t),s=ue(n);if(!s)return;let f=(w=t[3])!=null?w:{},{layer:l,sort:u}=f,p=Ye(f,["layer","sort"]),m=z(R({},p),{layer:i!=null?i:l,sort:a!=null?a:u});return[t[0],r,s,o,m]}expandShortcut(t,r,n=3){if(n===0)return;let o,i;for(let a of this.config.shortcuts)if(ot(a)){if(a[0]===t){o=o||a[2],i=a[1];break}}else{let s=t.match(a[0]);if(s&&(i=a[1](s,r)),i){o=o||a[2];break}}if(typeof i=="string"&&(i=lt(i).split(/\s+/g)),!!i)return[i.flatMap(a=>{var s;return((s=this.expandShortcut(a,r,n-1))==null?void 0:s[0])||[a]}).filter(a=>a!==""),o]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){var u;let i=new ze,a=(await Promise.all(X(n).map(async p=>{let m=await this.parseUtil(p,r,!0);return m||ft(`unmatched utility "${p}" in shortcut "${t[1]}"`),m||[]}))).flat(1).filter(Boolean).sort((p,m)=>p[0]-m[0]),[s,,l]=t;for(let p of a){if(Ee(p))continue;let{selector:m,entries:w,parent:f,sort:x}=this.applyVariants(p,[...p[4],...l],s);i.getFallback(m,f,[[],p[0]])[0].push([w,!!((u=p[3])!=null&&u.noMerge),x!=null?x:0])}return i.map(([p,m],w,f)=>{let x=(y,h,d)=>{let b=Math.max(...d.map(k=>k[1])),v=d.map(k=>k[0]);return(y?[v.flat(1)]:v).map(k=>{let j=ue(k);if(j)return[m,w,j,f,z(R({},o),{noMerge:h,sort:b})]})};return[[p.filter(([,y])=>y).map(([y,,h])=>[y,h]),!0],[p.filter(([,y])=>!y).map(([y,,h])=>[y,h]),!1]].map(([y,h])=>[...x(!1,h,y.filter(([d])=>d.some(b=>b[0]===M))),...x(!0,h,y.filter(([d])=>d.every(b=>b[0]!==M)))])}).flat(2).filter(Boolean)}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function gt(e,t){return new ht(e,t)}var xt=/ \$\$ /,Hn=e=>e.match(xt);function Nn(e,t){return Hn(e)?e.replace(xt,t?` ${t} `:" "):t?`${t} ${e}`:e}var dt=/^\[(.+?)(~?=)"(.*)"\]$/;function Bn(e){return dt.test(e)?e.replace(dt,(t,r,n,o)=>`[${le(r)}${n}"${le(o)}"]`):`.${le(e)}`}var Pe={};Cn(Pe,{auto:()=>qn,bracket:()=>eo,bracketOfColor:()=>to,bracketOfLength:()=>ro,cssvar:()=>no,degree:()=>io,fraction:()=>Qn,global:()=>so,number:()=>Yn,numberWithUnit:()=>Gn,percent:()=>Jn,properties:()=>ao,px:()=>Xn,rem:()=>Zn,time:()=>oo});var In=["color","border-color","background-color","flex-grow","flex","flex-shrink","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","backround-position","left","right","top","bottom","object-position","max-height","min-height","max-width","min-width","height","width","border-width","margin","padding","outline-width","outline-offset","font-size","line-height","text-indent","vertical-align","border-spacing","letter-spacing","word-spacing","stroke","filter","backdrop-filter","fill","mask","mask-size","mask-border","clip-path","clip","border-radius"],Ae=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,Kn=/^(-?[0-9.]+)$/i,bt=/^(px)$/i;function A(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function Gn(e){let t=e.match(Ae);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(n&&!Number.isNaN(o))return`${A(o)}${n}`}function qn(e){if(e==="auto"||e==="a")return"auto"}function Zn(e){if(e.match(bt))return`1${e}`;let t=e.match(Ae);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${A(o)}${n}`:`${A(o/4)}rem`}function Xn(e){if(e.match(bt))return`1${e}`;let t=e.match(Ae);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${A(o)}${n}`:`${A(o)}px`}function Yn(e){if(!Kn.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return A(t)}function Jn(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${A(t/100)}`}function Qn(e){if(e==="full")return"100%";let[t,r]=e.split("/"),n=parseFloat(t)/parseFloat(r);if(!Number.isNaN(n))return`${A(n*100)}%`}function Ve(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,n=e.match(/^\[(color|length):/i);if(n?t&&n[1]===t&&(r=e.slice(n[0].length,-1)):r=e.slice(1,-1),r!==void 0)return r.replace(/(url\(.*?\))/g,o=>o.replace(/_/g,"\\_")).replace(/([^\\])_/g,"$1 ").replace(/calc\((.*)/g,o=>o.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}}function eo(e){return Ve(e)}function to(e){return Ve(e,"color")}function ro(e){return Ve(e,"length")}function no(e){if(e.match(/^\$\S/))return`var(--${Ce(e.slice(1))})`}function oo(e){let t=e.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${A(o)}${n}`:`${A(o)}ms`}function io(e){let t=e.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${A(o)}${n}`:`${A(o)}deg`}function so(e){if(["inherit","initial","revert","unset"].includes(e))return e}function ao(e){for(let t of e.split(","))if(!In.includes(t))return;return e}var c=pt(Pe);var D=(e,t)=>{let r=new RegExp(`^${G(e)}[:-]`);return{match:n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),selector:t}},autocomplete:`${e}:`}},Q=(e,t)=>{let r=new RegExp(`^${G(e)}[:-]`);return{match:n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),parent:t}},autocomplete:`${e}:`}};var P=e=>([t,r,n],{theme:o})=>{var a,s;let i=(s=(a=o.spacing)==null?void 0:a[n||"DEFAULT"])!=null?s:c.bracket.cssvar.auto.fraction.rem(n);if(i!=null)return O[r].map(l=>[`${e}${l}`,i])},Oe=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,n=>n.slice(1).toUpperCase())]},fe=(e,t)=>{let r=e.split(/(?:\/|:)/),n,o;r[0]==="[color"?(n=r.slice(0,2).join(":"),o=r[2]):[n,o]=r;let i=n.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[a]=i;if(!a)return;let s,l=c.bracketOfColor(n),u=l||n;u.startsWith("#")?s=u:u.startsWith("hex-")?s=`#${u.slice(4)}`:n.startsWith("$")&&(s=c.cssvar(n)),s=s||l;let p="DEFAULT";if(!s){let m,[w]=i.slice(-1);w.match(/^\d+$/)?(p=w,m=Oe(t,i.slice(0,-1))):(m=Oe(t,i),!m&&i.length<=2&&([,p=p]=i,m=Oe(t,[a]))),typeof m=="string"?s=m:p&&m&&(s=m[p])}return{opacity:o,name:a,no:p,color:s,cssColor:we(s),alpha:c.bracket.cssvar.percent(o!=null?o:"")}},T=(e,t)=>([,r],{theme:n})=>{var l;let o=fe(r,n);if(!o)return;let{alpha:i,color:a,cssColor:s}=o;if(s)return i!=null?{[e]:_(s,i)}:{[`--un-${t}-opacity`]:(l=s.alpha)!=null?l:1,[e]:_(s,`var(--un-${t}-opacity)`)};if(a)return{[e]:a.replace("%alpha",`${i!=null?i:1}`)}},pe=(e,t)=>{let r=[];e=E(e);for(let n=0;n<e.length;n++){let o=I(e[n]," ",6);if(!o||o.length<3)return e;let i=we(o.pop());if(i==null)return e;r.push(`${o.join(" ")} var(${t}, ${_(i)})`)}return r},yt=(e,t)=>{var r;return e!=null&&!!((r=fe(e,t))!=null&&r.color)};var $t=[[/^outline-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r,n;return{"outline-width":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:c.bracket.cssvar.px(e)}},{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,T("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,e],{theme:t})=>{var r,n;return{"outline-offset":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:c.bracket.cssvar.px(e)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],[/^outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)$/,([,e])=>({"outline-style":e}),{autocomplete:"outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)"}],["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],wt=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],co=e=>{var t;return(t=c.properties.auto.global(e))!=null?t:{contents:"contents",scroll:"scroll-position"}[e]},vt=[[/^will-change-(.+)/,([,e])=>({"will-change":co(e)})]];var St=[[/^(?:border|b)()(?:-(.+))?$/,ee,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,ee],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,ee],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,ee],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,ee],[/^(?:border|b)-()(?:width|size)-(.+)$/,H,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,H],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,H],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,H],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,H],[/^(?: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)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,ne],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,ne],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,ne],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,ne],["border-solid",{"border-style":"solid"}],["border-dashed",{"border-style":"dashed"}],["border-dotted",{"border-style":"dotted"}],["border-double",{"border-style":"double"}],["border-hidden",{"border-style":"hidden"}],["border-none",{"border-style":"none"}]],lo=e=>([,t],r)=>{var s,l;let n=fe(t,r);if(!n)return;let{alpha:o,color:i,cssColor:a}=n;if(a)return o!=null?{[`border${e}-color`]:_(a,o)}:e===""?{"--un-border-opacity":(s=a.alpha)!=null?s:1,[`border${e}-color`]:_(a,`var(--un-border${e}-opacity)`)}:{"--un-border-opacity":(l=a.alpha)!=null?l:1,[`--un-border${e}-opacity`]:"var(--un-border-opacity)",[`border${e}-color`]:_(a,`var(--un-border${e}-opacity)`)};if(i)return{[`border${e}-color`]:i.replace("%alpha",`${o!=null?o:1}`)}};function ee(e,t){let r=H(e,t);if(r)return[...r,["border-style","solid"]]}function H([,e="",t],{theme:r}){var o,i;let n=(i=(o=r.lineWidth)==null?void 0:o[t||"DEFAULT"])!=null?i:c.bracket.cssvar.px(t||"1");if(e in O&&n!=null)return O[e].map(a=>[`border${a}-width`,n])}function te([,e="",t],{theme:r}){if(e in O&&yt(t,r))return Object.assign({},...O[e].map(n=>lo(n)(["",t],r)))}function re([,e="",t]){let r=c.bracket.percent(t);if(e in O&&r!=null)return O[e].map(n=>[`--un-border${n}-opacity`,r])}function ne([,e="",t],{theme:r}){var o;let n=((o=r.borderRadius)==null?void 0:o[t||"DEFAULT"])||c.bracket.cssvar.fraction.rem(t||"1");if(e in Se&&n!=null)return Se[e].map(i=>[`border${i}-radius`,n])}var kt=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:c.bracket.percent.cssvar(e)})]],Ct=[[/^(?:text|color|c)-(.+)$/,T("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":c.bracket.percent(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],Rt=[[/^bg-(.+)$/,T("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":c.bracket.percent(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var me={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},Tt=e=>{var t;return(t=c.properties(e))!=null?t:me[e]},Et=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{var o,i;let n=e!=null?Tt(e):[me.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(n){let a=(i=(o=r.duration)==null?void 0:o[t||"DEFAULT"])!=null?i:c.time(t||"150");return{"transition-property":n,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":a}}},{autocomplete:`transition-(${Object.keys(me).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>{var r,n;return{"transition-duration":(n=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?n:c.bracket.cssvar.time(e)}},{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,e],{theme:t})=>{var r,n;return{"transition-delay":(n=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?n:c.bracket.cssvar.time(e)}},{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,e],{theme:t})=>{var r,n;return{"transition-timing-function":(n=(r=t.easing)==null?void 0:r[e||"DEFAULT"])!=null?n:c.bracket.cssvar(e)}},{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,e])=>({"transition-property":c.global(e)||Tt(e)}),{autocomplete:[`transition-property-(${["inherit","initial","revert","unset",...Object.keys(me)].join("|")})`]}],["transition-none",{transition:"none"}]];var zt=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,e])=>({flex:c.bracket(e)!=null?c.bracket(e).split(" ").map(t=>{var r;return(r=c.cssvar.fraction(t))!=null?r:t}).join(" "):c.cssvar.fraction(e)})],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^(?:flex-)?shrink$/,()=>({"flex-shrink":1})],[/^(?:flex-)?shrink-0$/,()=>({"flex-shrink":0})],[/^(?:flex-)?grow$/,()=>({"flex-grow":1})],[/^(?:flex-)?grow-0$/,()=>({"flex-grow":0})],[/^(?:flex-)?basis-(.+)$/,([,e],{theme:t})=>{var r,n;return{"flex-basis":(n=(r=t.spacing)==null?void 0:r[e])!=null?n:c.bracket.cssvar.auto.fraction.rem(e)}}],["flex-row",{"flex-direction":"row"}],["flex-row-reverse",{"flex-direction":"row-reverse"}],["flex-col",{"flex-direction":"column"}],["flex-col-reverse",{"flex-direction":"column-reverse"}],["flex-wrap",{"flex-wrap":"wrap"}],["flex-wrap-reverse",{"flex-wrap":"wrap-reverse"}],["flex-nowrap",{"flex-wrap":"nowrap"}]];var jt={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},At=[[/^font-(\w+)$/,([,e],{theme:t})=>{var r;return{"font-family":((r=t.fontFamily)==null?void 0:r[e])||c.global(e)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,e="base"],{theme:t})=>{var n;let r=E((n=t.fontSize)==null?void 0:n[e]);if(r!=null&&r[0]){let[o,i="1"]=r;return{"font-size":o,"line-height":i}}return{"font-size":c.bracketOfLength.rem(e)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,e],{theme:t})=>{var o,i;let r=E((o=t.fontSize)==null?void 0:o[e]),n=(i=r==null?void 0:r[0])!=null?i:c.bracket.cssvar.rem(e);if(n!=null)return{"font-size":n}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,e])=>({"font-weight":jt[e]||c.global.number(e)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(jt).join("|")})`}],[/^(?:leading|lh)-(.+)$/,([,e],{theme:t})=>{var r;return{"line-height":((r=t.lineHeight)==null?void 0:r[e])||c.bracket.cssvar.global.rem(e)}},{autocomplete:"(leading|lh)-$lineHeight"}],[/^tracking-(.+)$/,([,e],{theme:t})=>{var r;return{"letter-spacing":((r=t.letterSpacing)==null?void 0:r[e])||c.bracket.cssvar.global.rem(e)}},{autocomplete:"tracking-$letterSpacing"}],[/^word-spacing-(.+)$/,([,e],{theme:t})=>{var r;return{"word-spacing":((r=t.wordSpacing)==null?void 0:r[e])||c.bracket.cssvar.global.rem(e)}},{autocomplete:"word-spacing-$wordSpacing"}]],Vt=[[/^tab(?:-(.+))?$/,([,e])=>{let t=c.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],Pt=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"text-indent":((r=t.textIndent)==null?void 0:r[e||"DEFAULT"])||c.bracket.cssvar.global.fraction.rem(e)}},{autocomplete:"indent-$textIndent"}]],Ot=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"-webkit-text-stroke-width":((r=t.textStrokeWidth)==null?void 0:r[e||"DEFAULT"])||c.bracket.cssvar.px(e)}},{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,T("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":c.bracket.percent(e)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],Ut=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.textShadow)==null?void 0:n[e||"DEFAULT"];return r!=null?{"--un-text-shadow":pe(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":c.bracket.cssvar(e)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,T("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":c.bracket.percent(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var Mt={"":"",x:"column-",y:"row-"},Ft=([,e="",t],{theme:r})=>{var o,i;let n=(i=(o=r.spacing)==null?void 0:o[t])!=null?i:c.bracket.cssvar.rem(t);if(n!=null)return{[`grid-${Mt[e]}gap`]:n,[`${Mt[e]}gap`]:n}},_t=[[/^(?:flex-|grid-)?gap-?()(.+)$/,Ft,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,Ft,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var U=e=>e.replace("col","column"),Ue=e=>e[0]==="r"?"Row":"Column",uo=(e,t,r)=>{var o;let n=(o=t[`gridAuto${Ue(e)}`])==null?void 0:o[r];if(n!=null)return n;switch(r){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return c.bracket.cssvar.auto.rem(r)},Wt=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:r})=>{var n,o;return{[`grid-${U(e)}`]:(o=(n=r[`grid${Ue(e)}`])==null?void 0:n[t])!=null?o:c.bracket.cssvar.auto(t)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${U(e)}`]:"1/-1"};let r=c.bracket.number(t);if(r!=null)return{[`grid-${U(e)}`]:`span ${r}/span ${r}`}},{autocomplete:["grid-(row|col)-span-<num>","(row|col)-span-<num>"]}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,e,t])=>{var r;return{[`grid-${U(e)}-start`]:(r=c.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>{var r;return{[`grid-${U(e)}-end`]:(r=c.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-auto-${U(e)}`]:uo(e,r,t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":c.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-((?:row|col)(?:-dense)?)$/,([,e])=>({"grid-auto-flow":U(e).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>{var n,o;return{[`grid-template-${U(e)}`]:(o=(n=r[`gridTemplate${Ue(e)}`])==null?void 0:n[t])!=null?o:c.bracket.cssvar(t)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${U(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${U(e)}`]:`repeat(${t},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var de=["auto","hidden","clip","visible","scroll"],Lt=[[/^(?:overflow|of)-(.+)$/,([,e])=>de.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-${de.join("|")}`,`(overflow|of)-(x|y)-${de.join("|")}`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>de.includes(t)?{[`overflow-${e}`]:t}:void 0]];var Fe=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],Dt=[["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-items-start",{"justify-items":"start"}],["justify-items-end",{"justify-items":"end"}],["justify-items-center",{"justify-items":"center"}],["justify-items-stretch",{"justify-items":"stretch"}],["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"}]],Ht=[[/^order-(.+)$/,([,e])=>({order:c.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],Nt=[["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"}],["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"}],["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"}]],Bt=[["place-content-center",{"place-content":"center"}],["place-content-start",{"place-content":"start"}],["place-content-end",{"place-content":"end"}],["place-content-between",{"place-content":"space-between"}],["place-content-around",{"place-content":"space-around"}],["place-content-evenly",{"place-content":"space-evenly"}],["place-content-stretch",{"place-content":"stretch"}],["place-items-start",{"place-items":"start"}],["place-items-end",{"place-items":"end"}],["place-items-center",{"place-items":"center"}],["place-items-stretch",{"place-items":"stretch"}],["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"}]];function Me(e,{theme:t}){var r,n;return(n=(r=t.spacing)==null?void 0:r[e])!=null?n:c.bracket.cssvar.auto.fraction.rem(e)}function he([,e,t],r){let n=Me(t,r);if(n!=null&&e in ve)return ve[e].map(o=>[o.slice(1),n])}var It=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:Me(e,t)}),{autocomplete:["(position|pos)-inset-<directions>-$spacing","(position|pos)-inset-(block|inline)-$spacing","(position|pos)-inset-(bs|be|is|ie)-$spacing","(position|pos)-(top|left|right|bottom)-$spacing"]}],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,he],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,he],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,he],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,he],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:Me(t,r)})]],Kt=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-none",{float:"none"}],["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-none",{clear:"none"}]],Gt=[[/^z([\d.]+)$/,([,e])=>({"z-index":c.number(e)})],[/^z-(.+)$/,([,e])=>({"z-index":c.bracket.cssvar.auto.number(e)}),{autocomplete:"z-<num>"}]],qt=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var ge="var(--un-empty,/*!*/ /*!*/)",Zt=[["inline",{display:"inline"}],["block",{display:"block"}],["inline-block",{display:"inline-block"}],["contents",{display:"contents"}],["flow-root",{display:"flow-root"}],["list-item",{display:"list-item"}],["hidden",{display:"none"}],[/^display-(.+)$/,([,e])=>({display:c.bracket.cssvar(e)||e})]],Xt=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],Yt=[[/^cursor-(.+)$/,([,e])=>({cursor:c.bracket.cssvar(e)||e})]],Jt=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],Qt=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],er=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],tr=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,e])=>({"white-space":e}),{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)"}]],rr=[[/^content-\[(.+)\]$/,([,e])=>({content:`"${e}"`})],["content-empty",{content:'""'}],["content-none",{content:'""'}]],nr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],or=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],ir=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}]],sr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}]],ar=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto","font-smoothing":"auto"}]];var cr=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{var n,o;let r=(o=(n=t.ringWidth)==null?void 0:n[e||"DEFAULT"])!=null?o:c.px(e||"1");if(r)return[{[M]:"","--un-ring-inset":ge,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgba(147,197,253,0.5)"},{"--un-ring-width":r,"--un-ring-offset-shadow":"var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)","--un-ring-shadow":"var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color)","box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow, 0 0 #0000)"}]},{autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,([,e],{theme:t})=>{var r,n;return{"--un-ring-width":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:c.bracket.cssvar.px(e)}},{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r,n;return{"--un-ring-offset-width":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:c.bracket.cssvar.px(e)}},{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,T("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":c.bracket.percent(e)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,T("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":c.bracket.percent(e)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var lr=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.boxShadow)==null?void 0:n[e||"DEFAULT"];if(r)return[{[M]:"","--un-shadow-inset":ge,"--un-shadow":"0 0 #0000"},{"--un-shadow":pe(r,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"}]},{autocomplete:"shadow-$boxShadow"}],[/^shadow-(.+)$/,T("--un-shadow-color","shadow"),{autocomplete:"shadow-$colors"}],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":c.bracket.percent(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var fo={h:"height",w:"width",inline:"inline-size",block:"block-size"};function oe(e,t){return`${e||""}${fo[t]}`}function ur(e,t,r,n){var a;let o=oe(e,t).replace(/-(\w)/g,(s,l)=>l.toUpperCase()),i=(a=r[o])==null?void 0:a[n];if(i!=null)return i;switch(n){case"fit":case"max":case"min":return`${n}-content`}return c.bracket.cssvar.auto.fraction.rem(n)}var fr=[[/^(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:n})=>({[oe(e,t)]:ur(e,t,n,r)}),{autocomplete:["(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"]}],[/^(min-|max-)?(block|inline)-(.+)$/,([,e,t,r],{theme:n})=>({[oe(e,t)]:ur(e,t,n,r)}),{autocomplete:["(w|h)-(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h)-(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"]}],[/^(min-|max-)?(h)-screen-(.+)$/,([,e,t,r],{theme:n})=>{var o;return{[oe(e,t)]:(o=n.verticalBreakpoints)==null?void 0:o[r]}},{autocomplete:["h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints"]}],[/^(min-|max-)?(w)-screen-(.+)$/,([,e,t,r],{theme:n})=>{var o;return{[oe(e,t)]:(o=n.breakpoints)==null?void 0:o[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function po(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return c.bracket.cssvar.auto.number(e)}var pr=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":po(e)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var mr=[[/^pa?()-?(-?.+)$/,P("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?([xy])-?(-?.+)$/,P("padding")],[/^p-?([rltbse])-?(-?.+)$/,P("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)-(-?.+)$/,P("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])-?(-?.+)$/,P("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],dr=[[/^ma?()-?(-?.+)$/,P("margin")],[/^m-?([xy])-?(-?.+)$/,P("margin")],[/^m-?([rltbse])-?(-?.+)$/,P("margin")],[/^m-(block|inline)-(-?.+)$/,P("margin")],[/^m-?([bi][se])-?(-?.+)$/,P("margin")]];var mo={"--un-transform":["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(" ")},br={"--un-transform":["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(" ")},N=z(R({"--un-rotate":0,"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-scale-x":1,"--un-scale-y":1,"--un-scale-z":1,"--un-skew-x":0,"--un-skew-y":0,"--un-translate-x":0,"--un-translate-y":0,"--un-translate-z":0},br),{[M]:""}),yr=[[/^(?:transform-)?origin-(.+)$/,([,e])=>{var t;return{"transform-origin":(t=K[e])!=null?t:c.bracket.cssvar(e)}},{autocomplete:[`transform-origin-(${Object.keys(K).join("|")})`,`origin-(${Object.keys(K).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,e])=>{let t=c.bracket.cssvar.px.numberWithUnit(e);if(t!=null)return{"-webkit-perspective":t,perspective:t}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,e])=>{var r;let t=(r=c.bracket.cssvar(e))!=null?r:e.length>=3?K[e]:void 0;if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,hr],[/^(?:transform-)?translate-([xyz])-(.+)$/,hr],[/^(?:transform-)?rotate-()(.+)$/,xr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,xr],[/^(?:transform-)?skew-([xy])-(.+)$/,ho],[/^(?:transform-)?scale-()(.+)$/,gr],[/^(?:transform-)?scale-([xyz])-(.+)$/,gr],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[N,{transform:"var(--un-transform)"}]],["transform-gpu",mo],["transform-cpu",br],["transform-none",{transform:"none"}]];function hr([,e,t],{theme:r}){var o,i;let n=(i=(o=r.spacing)==null?void 0:o[t])!=null?i:c.bracket.cssvar.fraction.rem(t);if(n!=null)return[N,[...ke[e].map(a=>[`--un-translate${a}`,n]),["transform","var(--un-transform)"]]]}function gr([,e,t]){let r=c.bracket.cssvar.fraction.percent(t);if(r!=null)return[N,[...ke[e].map(n=>[`--un-scale${n}`,r]),["transform","var(--un-transform)"]]]}function xr([,e="",t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return e?[N,{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:"var(--un-transform)"}]:[N,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function ho([,e,t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return[N,{[`--un-skew-${e}`]:r,transform:"var(--un-transform)"}]}var go={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"},$r=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=go[e];if(r)return{[r]:c.cssvar(t)}}]],wr=[[/^\[([^:]+):(.+)\]$/,([,e,t])=>({[e]:c.bracket(`[${t}]`)})]];var vr=[[/^(where|\?)$/,(e,{constructCSS:t,generator:r})=>{if(r.userConfig.envMode==="dev")return`@keyframes __un_qm{0%{box-shadow:inset 4px 4px #ff1e90, inset -4px -4px #ff1e90}100%{box-shadow:inset 8px 8px #3399ff, inset -8px -8px #3399ff}}
|
|
3
3
|
${t({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]];var Sr=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,e])=>({"text-decoration-line":e}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,([,e],{theme:t})=>{var r,n;return{"text-decoration-thickness":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:c.bracket.cssvar.px(e)}},{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,e])=>({"text-decoration-thickness":e}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,(e,t)=>{let r=T("text-decoration-color","line")(e,t);if(r)return R({"-webkit-text-decoration-color":r["text-decoration-color"]},r)},{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":c.bracket.percent(e)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,e],{theme:t})=>{var r,n;return{"text-underline-offset":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:c.auto.bracket.cssvar.px(e)}},{autocomplete:"(underline|decoration)-(offset)-<num>"}],[/^(?:underline|decoration)-(solid|double|dotted|dashed|wavy|inherit|initial|revert|unset)$/,([,e])=>({"text-decoration-style":e}),{autocomplete:"(underline|decoration)-(solid|double|dotted|dashed|wavy|inherit|initial|revert|unset)"}],["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];var kr=[[/^fill-(.+)$/,T("fill","fill"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":c.bracket.percent(e)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r,n;return{"stroke-width":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:c.bracket.cssvar.fraction.px.number(e)}},{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":c.bracket.cssvar.number(e)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,e],{theme:t})=>{var r,n;return{"stroke-dashoffset":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:c.bracket.cssvar.px.numberWithUnit(e)}},{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,T("stroke","stroke"),{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":c.bracket.percent(e)}),{autocomplete:"stroke-(op|opacity)-<percent>"}],["stroke-cap-square",{"stroke-linecap":"square"}],["stroke-cap-round",{"stroke-linecap":"round"}],["stroke-cap-auto",{"stroke-linecap":"butt"}],["stroke-join-arcs",{"stroke-linejoin":"arcs"}],["stroke-join-bevel",{"stroke-linejoin":"bevel"}],["stroke-join-clip",{"stroke-linejoin":"miter-clip"}],["stroke-join-round",{"stroke-linejoin":"round"}],["stroke-join-auto",{"stroke-linejoin":"miter"}],["stroke-none",{stroke:"none"}]];var Cr=[$r,wr,mr,dr,Zt,kt,Rt,kr,St,rr,At,Vt,Pt,or,Sr,Ot,Ut,ir,Qe,Ct,sr,ar,lr,cr,zt,Wt,_t,Fe,fr,pr,Yt,Xt,Jt,Qt,Je,er,tr,nr,Lt,$t,wt,Fe,Ht,Dt,Nt,Bt,It,Kt,Gt,qt,Et,yr,vt,vr].flat(1);var _e={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},light:{50:"#fdfdfd",100:"#fcfcfc",200:"#fafafa",300:"#f8f9fa",400:"#f6f6f6",500:"#f2f2f2",600:"#f1f3f5",700:"#e9ecef",800:"#dee2e6",900:"#dde1e3"},dark:{50:"#4a4a4a",100:"#3c3c3c",200:"#323232",300:"#2d2d2d",400:"#222222",500:"#1f1f1f",600:"#1c1c1e",700:"#1b1b1b",800:"#181818",900:"#0f0f0f"},get lightblue(){return this.sky},get lightBlue(){return this.sky},get warmgray(){return this.stone},get warmGray(){return this.stone},get truegray(){return this.neutral},get trueGray(){return this.neutral},get coolgray(){return this.gray},get coolGray(){return this.gray},get bluegray(){return this.slate},get blueGray(){return this.slate}};Object.values(_e).forEach(e=>{typeof e!="string"&&(e.DEFAULT=e.DEFAULT||e[400],Object.keys(e).forEach(t=>{let r=+t/100;r===Math.round(r)&&(e[r]=e[t])}))});var Rr={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(",")},Tr={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"]},Er={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},zr={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},jr={DEFAULT:["0 0 1px rgba(0,0,0,0.2)","0 0 1px rgba(1,0,5,0.1)"],none:"0 0 #0000",sm:"1px 1px 3px rgba(36,37,47,0.25)",md:["0 1px 2px rgba(30,29,39,0.19)","1px 2px 4px rgba(54,64,147,0.18)"],lg:["3px 3px 6px rgba(0,0,0,0.26)","0 0 5px rgba(15,3,86,0.22)"],xl:["1px 1px 3px rgba(0,0,0,0.29)","2px 4px 7px rgba(73,64,125,0.35)"]},Ar={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},We={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},Vr=We;var Le={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Pr=R({},Le),Or={DEFAULT:"1px",none:"0px"},Ur={DEFAULT:"1rem",none:"0rem",xs:"0.75rem",sm:"0.875rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},Mr={DEFAULT:"150ms",none:"0ms",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},Fr={DEFAULT:"0.25rem",none:"0rem",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},_r={DEFAULT:["var(--un-shadow-inset) 0 1px 3px 0 rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 1px 2px -1px rgba(0,0,0,0.1)"],none:"0 0 #0000",sm:"var(--un-shadow-inset) 0 1px 2px 0 rgba(0,0,0,0.05)",md:["var(--un-shadow-inset) 0 4px 6px -1px rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 2px 4px -2px rgba(0,0,0,0.1)"],lg:["var(--un-shadow-inset) 0 10px 15px -3px rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 4px 6px -4px rgba(0,0,0,0.1)"],xl:["var(--un-shadow-inset) 0 20px 25px -5px rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 8px 10px -6px rgba(0,0,0,0.1)"],"2xl":"var(--un-shadow-inset) 0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)"},Wr={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)"},Lr={DEFAULT:"1px",none:"0px"};var Dr={DEFAULT:"8px","0":"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Hr={DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],sm:"0 1px 1px rgba(0,0,0,0.05)",md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"};var xe={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},De=z(R({auto:"auto"},xe),{screen:"100vw"}),ie=z(R({none:"none"},xe),{screen:"100vw"}),He=z(R({auto:"auto"},xe),{screen:"100vh"}),se=z(R({none:"none"},xe),{screen:"100vh"});var Nr={width:De,height:He,maxWidth:ie,maxHeight:se,minWidth:ie,minHeight:se,inlineSize:De,blockSize:He,maxInlineSize:ie,maxBlockSize:se,minInlineSize:ie,minBlockSize:se,colors:_e,fontFamily:Rr,fontSize:Tr,breakpoints:Le,verticalBreakpoints:Pr,borderRadius:Fr,lineHeight:Ar,letterSpacing:We,wordSpacing:Vr,boxShadow:_r,textIndent:Er,textShadow:jr,textStrokeWidth:zr,blur:Dr,dropShadow:Hr,easing:Wr,lineWidth:Or,spacing:Ur,duration:Mr,ringWidth:Lr};var Ne={},Br=e=>{var o;let t=((o=e.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:o[0])||"",r=e.slice(t.length),n=parseFloat(t)-.1;return Number.isNaN(n)?e:`${n}${r}`},Ir={match(e,{theme:t}){let r=Object.entries(t.breakpoints||{}).map(([n,o],i)=>[n,o,i]);for(let[n,o,i]of r){Ne[n]||(Ne[n]=new RegExp(`^((?:[al]t-)?${n}[:-])`));let a=e.match(Ne[n]);if(!a)continue;let[,s]=a,l=e.slice(s.length);if(l==="container")continue;let u=s.startsWith("lt-"),p=s.startsWith("at-"),m=1e3;return u?(m-=i+1,{matcher:l,parent:[`@media (max-width: ${Br(o)})`,m]}):(m+=i+1,p&&i<r.length-1?{matcher:l,parent:[`@media (min-width: ${o}) and (max-width: ${Br(r[i+1][1])})`,m]}:{matcher:l,parent:[`@media (min-width: ${o})`,m]})}},autocomplete:"(at-|lt-|)$breakpoints:"};var F=(e,t,r)=>{let n=e?new RegExp(`^${t}(?:-\\[(.+?)\\])[:-]`):new RegExp(`^${t}(?:-\\[(.+?)\\])?[:-]`);return o=>{let i=o.match(n);if(i)return{matcher:o.slice(i[0].length),selector:a=>{var s;return r.replace("&&-s",a).replace("&&-c",(s=i[1])!=null?s:"*")}}}},Kr=[F(!1,"all","&&-s &&-c"),F(!1,"children","&&-s>&&-c"),F(!1,"next","&&-s+&&-c"),F(!1,"sibling","&&-s+&&-c"),F(!1,"siblings","&&-s~&&-c"),F(!0,"group","&&-c &&-s"),F(!0,"parent","&&-c>&&-s"),F(!0,"previous","&&-c+&&-s"),F(!0,"peer","&&-c~&&-s")];var Gr=Q("print","@media print"),qr=(e,{theme:t})=>{var n,o;let r=e.match(/^media-([_\d\w]+)[:-]/);if(r){let i=(o=(n=t.media)==null?void 0:n[r[1]])!=null?o:`(--${r[1]})`;return{matcher:e.slice(r[0].length),parent:`@media ${i}`}}};var Zr=(e={})=>(e==null?void 0:e.dark)==="class"?[D("dark",t=>`.dark $$ ${t}`),D("light",t=>`.light $$ ${t}`)]:[Q("dark","@media (prefers-color-scheme: dark)"),Q("light","@media (prefers-color-scheme: light)")];var Xr=[D("rtl",e=>`[dir="rtl"] $$ ${e}`),D("ltr",e=>`[dir="ltr"] $$ ${e}`)];var Yr={match(e){let t=e.match(/^selector-\[(.+?)\][:-]/);if(t)return{matcher:e.slice(t[0].length),selector:()=>t[1]}}},Jr={match(e){let t=e.match(/^layer-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),layer:t[1]}}},Qr={match(e){let t=e.match(/^scope-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),selector:r=>`.${t[1]} $$ ${r}`}}},en={match(e){if(e.startsWith("!"))return{matcher:e.slice(1),body:t=>(t.forEach(r=>{r[1]&&(r[1]+=" !important")}),t)}}},tn={match(e){if(e.startsWith("-"))return{matcher:e.slice(1),body:t=>(t.forEach(r=>{var n,o;r[0].startsWith("--un-scale")||((n=r[1])==null?void 0:n.toString())==="0"||(r[1]=(o=r[1])==null?void 0:o.toString().replace(/[0-9.]+(?:[a-z]+|%)?/,i=>`-${i}`))}),t)}}};var ye=Object.fromEntries(["any-link","link","visited","target",["open","[open]"],"hover","active","focus-visible","focus-within","focus","autofill","enabled","disabled","read-only","read-write","placeholder-shown","default","checked","indeterminate","valid","invalid","in-range","out-of-range","required","optional","root","empty",["even-of-type",":nth-of-type(even)"],["even",":nth-child(even)"],["odd-of-type",":nth-of-type(odd)"],["odd",":nth-child(odd)"],"first-of-type",["first",":first-child"],"last-of-type",["last",":last-child"],"only-child","only-of-type"].map(E)),rn=Object.fromEntries(["placeholder","before","after","first-letter","first-line","selection","marker",["file","::file-selector-button"]].map(E)),xo=["not","is","where","has"],nn=Object.keys(rn).join("|"),ae=Object.keys(ye).join("|"),Be=xo.join("|"),bo=/(part-\[(.+)]:)(.+)/,yo=new RegExp(`^(${nn})[:-]`),$o=new RegExp(`^(${ae})[:-]`),wo=new RegExp(`^(${Be})-(${ae})[:-]`),on=e=>{if(e==="active")return 1},be=(e,t,r)=>{let n=new RegExp(`^${e}-((?:(${Be})-)?(${ae}))[:-]`),o=new RegExp(`^${G(t)}:`);return i=>{let a=i.match(n);if(a){let s=ye[a[3]]||`:${a[3]}`;return a[2]&&(s=`:${a[2]}(${s})`),{matcher:i.slice(a[0].length),selector:l=>o.test(l)?l.replace(o,`${t}${s}:`):`${t}${s}${r}${l}`,sort:on(a[3])}}}},sn={match:e=>{let t=e.match(yo);if(t){let r=rn[t[1]]||`::${t[1]}`;return{matcher:e.slice(t[0].length),selector:n=>`${n}${r}`}}},autocomplete:`(${nn}):`},an={match:e=>{let t=e.match($o);if(t){let r=ye[t[1]]||`:${t[1]}`;return{matcher:e.slice(t[0].length),selector:n=>`${n}${r}`,sort:on(t[1])}}},multiPass:!0,autocomplete:`(${ae}):`},cn={match:e=>{let t=e.match(wo);if(t){let r=t[1],n=ye[t[2]]||`:${t[2]}`;return{matcher:e.slice(t[0].length),selector:o=>`${o}:${r}(${n})`}}},multiPass:!0,autocomplete:`(${Be})-(${ae}):`},ln=(e={})=>{let t=!!(e!=null&&e.attributifyPseudo);return[{match:be("group",t?'[group=""]':".group"," "),multiPass:!0},{match:be("peer",t?'[peer=""]':".peer","~"),multiPass:!0},{match:be("parent",t?'[parent=""]':".parent",">"),multiPass:!0},{match:be("previous",t?'[previous=""]':".previous","+"),multiPass:!0}]},un={match:e=>{let t=e.match(bo);if(t){let r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:n=>`${n}::${r}`}}},multiPass:!0};var fn=e=>[Yr,Jr,tn,en,Gr,qr,Ir,...Kr,an,cn,...ln(e),sn,un,...Zr(e),...Xr,Qr];var vo=(e={})=>{var t,r;return e.dark=(t=e.dark)!=null?t:"class",e.attributifyPseudo=(r=e.attributifyPseudo)!=null?r:!1,{name:"@unocss/preset-mini",theme:Nr,rules:Cr,variants:fn(e),options:e,postprocess:e.variablePrefix&&e.variablePrefix!=="un-"?So(e.variablePrefix):void 0}},pn=vo;function So(e){return t=>{t.entries.forEach(r=>{r[0]=r[0].replace(/^--un-/,`--${e}`),typeof r[1]=="string"&&(r[1]=r[1].replace(/var\(--un-/g,`var(--${e}`))})}}var Ie=/^(?!\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/,mn=(e={})=>{var n,o;let t=(n=e.prefix)!=null?n:"un-",r=(o=e.prefixedOnly)!=null?o:!1;return i=>{let a=it(i);if(!a)return;let s=a[1];if(s.startsWith(t))s=s.slice(t.length);else if(r)return;let l=a[2],[,u="",p=l]=l.match(Ie)||[];return p==="~"||!p?`${u}${s}`:`${u}${s}-${p}`}};var ko=/(<\w[\w:\.$-]*\s)((?:'[^>]*?'|"[^>]*?"|`[^>]*?`|\{[^>]*?\}|[^>]*?)*)/g,Co=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=("[^"]*|'[^']*))?/g,dn=/[\s'"`;>]+/,hn={name:"attributify",extract:({content:e,cursor:t})=>{let r=e.matchAll(ko),n,o=0;for(let S of r){let[,y,h]=S,d=S.index+y.length;if(t>d&&t<=d+h.length){o=d,n=h;break}}if(!n)return null;let i=n.matchAll(Co),a=0,s,l;for(let S of i){let[y,h,d]=S,b=o+S.index;if(t>b&&t<=b+y.length){a=b,s=h,l=d==null?void 0:d.slice(1);break}}if(!s||s==="class"||s==="className")return null;if(l===void 0)return{extracted:s,resolveReplacement(S){return{start:a,end:a+s.length,replacement:S}}};let u=a+s.length+2,p=dn.exec(l),m=0,w;for(;p;){let[S]=p;if(t>u+m&&t<=u+m+p.index){w=l.slice(m,m+p.index);break}m+=p.index+S.length,p=dn.exec(l.slice(m))}w===void 0&&(w=l.slice(m));let[,f="",x]=w.match(Ie)||[];return{extracted:`${f}${s}-${x}`,transformSuggestions(S){return S.filter(y=>y.startsWith(`${f}${s}-`)).map(y=>f+y.slice(f.length+s.length+1))},resolveReplacement(S){return{start:m+u,end:m+u+w.length,replacement:f+S.slice(f.length+s.length+1)}}}}};var Ro=["v-bind:",":"],gn=/[\s'"`;]+/g,To=/<\w[\w:\.$-]*\s((?:'[\s\S]*?'|"[\s\S]*?"|`[\s\S]*?`|\{[\s\S]*?\}|[\s\S]*?)*?)>/g,Eo=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-]+)(?:=(["'])([^\2]*?)\2)?/g,xn=e=>{var n,o;let t=(n=e==null?void 0:e.ignoreAttributes)!=null?n:[],r=(o=e==null?void 0:e.nonValuedAttribute)!=null?o:!0;return{name:"attributify",extract({code:i}){let a=Array.from(i.matchAll(To)).flatMap(s=>Array.from((s[1]||"").matchAll(Eo))).flatMap(([,s,l,u])=>{if(t.includes(s))return[];for(let p of Ro)if(s.startsWith(p)){s=s.slice(p.length);break}return u?["class","className"].includes(s)?u.split(gn).filter(Y):u.split(gn).filter(Boolean).map(p=>`[${s}~="${p}"]`):Y(s)&&r!==!1?[`[${s}=""]`]:[]});return new Set(a)}}};var zo=(e={})=>{var o,i,a,s,l;e.strict=(o=e.strict)!=null?o:!1,e.prefix=(i=e.prefix)!=null?i:"un-",e.prefixedOnly=(a=e.prefixedOnly)!=null?a:!1,e.nonValuedAttribute=(s=e.nonValuedAttribute)!=null?s:!0,e.ignoreAttributes=(l=e.ignoreAttributes)!=null?l:[];let t=[mn(e)],r=[xn(e)],n=[hn];return e.strict||r.unshift(J),{name:"@unocss/preset-attributify",variants:t,extractors:r,options:e,autocomplete:{extractors:n}}},bn=zo;var jo=e=>e.replace(/-(\w)/g,(t,r)=>r?r.toUpperCase():""),yn=e=>e.charAt(0).toUpperCase()+e.slice(1),$n=e=>e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase(),wn=["Webkit","Moz","ms"];function vn(e){let t={};function r(n){let o=t[n];if(o)return o;let i=jo(n);if(i!=="filter"&&i in e)return t[n]=$n(i);i=yn(i);for(let a=0;a<wn.length;a++){let s=`${wn[a]}${i}`;if(s in e)return t[n]=$n(yn(s))}return n}return({entries:n})=>n.forEach(o=>{o[0].startsWith("--")||(o[0]=r(o[0]))})}function Ke(e={}){var k,j;if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let t=window.__unocss||{},r=t==null?void 0:t.runtime,n=Object.assign(e.defaults||{},r);if(r!=null&&r.autoPrefix){let g=n.postprocess;g||(g=[]),Array.isArray(g)||(g=[g]),g.unshift(vn(document.createElement("div").style)),n.postprocess=g}(k=r==null?void 0:r.configResolved)==null||k.call(r,t,n);let o,i=!0,a,s=gt(t,n),l=new Set,u,p=[],m=()=>new Promise(g=>{p.push(g),u!=null&&clearTimeout(u),u=setTimeout(()=>w().then(()=>{let $=p;p=[],$.forEach(C=>C())}),0)});async function w(){let g=await s.generate(l);o||(o=document.createElement("style"),document.documentElement.prepend(o)),o.innerHTML=g.css,l=g.matched}async function f(g){let $=l.size;await s.applyExtractors(g,void 0,l),$!==l.size&&await m()}async function x(){let g=document.body&&document.body.outerHTML;g&&await f(g)}let S=new MutationObserver(g=>{i||g.forEach($=>{let C=$.target;if(C===o||a&&!a(C))return;let W=Array.from(C.attributes).map(V=>V.value?`${V.name}="${V.value}"`:V.name).join(" "),L=`<${C.tagName.toLowerCase()} ${W}>`;f(L)})}),y=!1;function h(){if(!y)return;let g=document.documentElement||document.body;!g||(S.observe(g,{childList:!0,subtree:!0,attributes:!0}),y=!0)}function d(){x(),h()}function b(){d(),window.addEventListener("load",d),window.addEventListener("DOMContentLoaded",d)}let v=window.__unocss_runtime=window.__unocss_runtime={version:s.version,uno:s,async extract(g){typeof g!="string"&&(g.forEach($=>l.add($)),g=""),await f(g)},extractAll:x,inspect(g){a=g},toggleObserver(g){g===void 0?i=!i:i=!!g,!y&&!i&&b()}};((j=r==null?void 0:r.ready)==null?void 0:j.call(r,v))!==!1&&(i=!1,b())}Ke({defaults:{presets:[pn(),bn()]}});})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/runtime",
|
|
3
|
-
"version": "0.30.
|
|
3
|
+
"version": "0.30.1",
|
|
4
4
|
"description": "CSS-in-JS Runtime for UnoCSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"unocss",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"dist"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@unocss/core": "0.30.
|
|
38
|
-
"@unocss/preset-attributify": "0.30.
|
|
39
|
-
"@unocss/preset-uno": "0.30.
|
|
37
|
+
"@unocss/core": "0.30.1",
|
|
38
|
+
"@unocss/preset-attributify": "0.30.1",
|
|
39
|
+
"@unocss/preset-uno": "0.30.1"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "pnpm run build:node && pnpm run build:cdn",
|
package/uno.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var ne=Object.defineProperty,dn=Object.defineProperties;var gn=Object.getOwnPropertyDescriptors;var mt=Object.getOwnPropertySymbols;var ae=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;var oe=(t,e,r)=>e in t?ne(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,C=(t,e)=>{for(var r in e||(e={}))ae.call(e,r)&&oe(t,r,e[r]);if(mt)for(var r of mt(e))ie.call(e,r)&&oe(t,r,e[r]);return t},j=(t,e)=>dn(t,gn(e));var se=(t,e)=>{var r={};for(var o in t)ae.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&mt)for(var o of mt(t))e.indexOf(o)<0&&ie.call(t,o)&&(r[o]=t[o]);return r};var bn=(t,e)=>{for(var r in e)ne(t,r,{get:e[r],enumerable:!0})};var St=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function G(t=""){let e=hn(t);if(e==null||e===!1)return;let{type:r,components:o,alpha:n}=e,a=r.toLowerCase();if(o.length!==0&&!(["rgba","hsla"].includes(a)&&n==null)&&!(St.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function M(t,e){let{components:r}=t,{alpha:o,type:n}=t;return o=e!=null?e:o,n=n.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(n)?`${n.replace("a","")}a(${r.join(",")}${o==null?"":`,${o}`})`:(o=o==null?"":` / ${o}`,St.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function hn(t){if(!t)return;let e=xn(t);if(e!=null||(e=yn(t),e!=null)||(e=vn(t),e!=null)||(e=kn(t),e!=null)||(e=wn(t),e!=null))return e}function xn(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(!!e)switch(e.length){case 3:case 4:let r=Array.from(e,n=>Number.parseInt(n,16)).map(n=>n<<4|n);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 o=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[o>>16&255,o>>8&255,o&255]:[o>>24&255,o>>16&255,o>>8&255],alpha:e.length===6?void 0:Math.round((o&255)/255*100)/100}}}function yn(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function vn(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,o]=e,n=Q(o,",",5);if(n){if([3,4].includes(n.length))return{type:r,components:n.slice(0,3),alpha:n[3]};if(n.length!==1)return!1}}var $n=new RegExp(`^(${St.join("|")})\\((.+)\\)$`,"i");function kn(t){let e=t.match($n);if(!e)return;let[,r,o]=e,n=ce(`${r} ${o}`);if(n){let{alpha:a,components:[s,...c]}=n;return{type:s,components:c,alpha:a}}}function wn(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=ce(e[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function ce(t){let e=Q(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 a=e.splice(r-2);e.push(a.join(" ")),--r}let o=Q(e[r-1],"/",3);if(!o)return;if(o.length===1||o[o.length-1]==="")return{components:e};let n=o.pop();return e[r-1]=o.join("/"),{components:e,alpha:n}}function Sn(t,e){if(t=t.trim(),t==="")return;let r=t.length,o=0;for(let n=0;n<r;n++)switch(t[n]){case"(":o++;break;case")":if(--o<0)return;break;case e:if(o===0){let a=t.slice(0,n).trim();return a===""?void 0:[a,t.slice(n+1).trim()]}}return[t,""]}function Q(t,e,r){if(e=e!=null?e:" ",e.length!==1)return;r=r!=null?r:10;let o=[],n=0;for(;t!=="";){if(++n>r)return;let a=Sn(t,e);if(!a)return;let[s,c]=a;o.push(s),t=c}if(o.length>0)return o}var O={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"]},Ct=j(C({},O),{s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]}),Rt={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},zt={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},le=["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"],U=Object.assign({},...le.map(t=>({[t.replace(/ /,"-")]:t})),...le.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t})));function tt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Tt(t){let e=t.length,r=-1,o,n="",a=t.charCodeAt(0);for(;++r<e;){if(o=t.charCodeAt(r),o===0){n+="\uFFFD";continue}if(o===44){n+="\\2c ";continue}if(o>=1&&o<=31||o===127||r===0&&o>=48&&o<=57||r===1&&o>=48&&o<=57&&a===45){n+=`\\${o.toString(16)} `;continue}if(r===0&&e===1&&o===45){n+=`\\${t.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=t.charAt(r);continue}n+=`\\${t.charAt(r)}`}return n}var dt=Tt;function rt(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function pe(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>rt(e)):[t]:[rt(t)]}function Cn(t){return t.filter(([e,r],o)=>{if(e.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(t[n][0]===e&&t[n][1]===r)return!1;return!0})}function gt(t){return t==null?"":Cn(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function jt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Et(t,e){let r=t,o=e;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=C({},r);return jt(r)&&jt(o)&&Object.keys(o).forEach(a=>{jt(o[a])?a in r?n[a]=Et(r[a],o[a]):Object.assign(n,{[a]:o[a]}):Object.assign(n,{[a]:o[a]})}),n}function et(t){let e,r,o;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(o=t[e])&&typeof o=="object"?et(o):o;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:et(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(o=t[e])&&typeof o=="object"?et(o):o;return r}return t}function ue(t){return typeof t[0]=="string"}function fe(t){return typeof t[0]=="string"}function V(t=[]){return Array.isArray(t)?t:[t]}function ot(t){return Array.from(new Set(t))}var Rn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,E="$$shortcut-no-merge";function me(t=""){return Rn.test(t)}function de(t){return typeof t=="function"?{match:t}:t}function Vt(t){return t.length===3}function ge(t){return t!=null}var Ot=class{_map=new Map;get(e,r){let o=this._map.get(e);if(o)return o.get(r)}getFallback(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.has(r)||n.set(r,o),n.get(r)}set(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.set(r,o),this}has(e,r){var o;return(o=this._map.get(e))==null?void 0:o.has(r)}delete(e,r){var o;return((o=this._map.get(e))==null?void 0:o.delete(r))||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>e(a,r,n)))}};var be=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function he(t){return be.lastIndex=0,t.replace(be,(e,r,o,n)=>n.split(/\s/g).map(a=>a.replace(/^(!?)(.*)/,`$1${r}${o}$2`)).join(" "))}var xe=new Set;function ye(t){xe.has(t)||(console.warn("[unocss]",t),xe.add(t))}function ve(t){let e=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let s of n){let c=t[s](o);if(c!=null)return c}};function r(o,n){return o.__options||(o.__options={sequence:[]}),o.__options.sequence.push(n),o}for(let o of Object.keys(t))Object.defineProperty(e,o,{enumerable:!0,get(){return r(this,o)}});return e}var zn=t=>t.split(/[\s'"`;>=]+/g).filter(me),Mt={name:"split",order:0,extract({code:t}){return new Set(zn(t))}};function Tn(t){return V(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var jn={shortcuts:-1,default:0};function Ut(t={},e={}){let r=Object.assign({},e,t),o=(r.presets||[]).flatMap(V),n=[...o.filter(u=>u.enforce==="pre"),...o.filter(u=>!u.enforce),...o.filter(u=>u.enforce==="post")],a=Object.assign(jn,...o.map(u=>u.layers),t.layers);function s(u){return ot([...n.flatMap(h=>V(h[u]||[])),...V(r[u]||[])])}let c=s("extractors");c.length||c.push(Mt),c.sort((u,h)=>(u.order||0)-(h.order||0));let l=s("rules"),p={},f=l.length;l.forEach((u,h)=>{ue(u)&&(p[u[0]]=[h,u[1],u[2]],delete l[h])});let m=et([...n.map(u=>u.theme||{}),r.theme||{}].reduce((u,h)=>Et(u,h),{}));s("extendTheme").forEach(u=>u(m));let k={templates:ot(n.map(u=>{var h;return V((h=u.autocomplete)==null?void 0:h.templates)}).flat()),extractors:n.map(u=>{var h;return V((h=u.autocomplete)==null?void 0:h.extractors)}).flat().sort((u,h)=>(u.order||0)-(h.order||0))};return j(C({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:u=>u},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:m,rulesSize:f,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:k,variants:s("variants").map(de),shortcuts:Tn(s("shortcuts")),extractors:c})}var $e="0.30.0";var we=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=Ut(e,r)}version=$e;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.config=Ut(e,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(e,r,o=new Set){let n={get original(){return e},code:e,id:r};for(let a of this.config.extractors){let s=await a.extract(n);s==null||s.forEach(c=>o.add(c))}return o}makeContext(e,r){let o={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(e,r){var l;if(this.blocked.has(e))return;let o=`${e}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=e;for(let p of this.config.preprocess)n=p(e);if(this.isBlocked(n)){this.blocked.add(e),this._cache.set(o,null);return}let a=this.matchVariants(e,n);if(!a||this.isBlocked(a[1])){this.blocked.add(e),this._cache.set(o,null);return}let s=this.makeContext(e,[r||a[0],a[1],a[2],a[3]]),c=this.expandShortcut(s.currentSelector,s);if(c){let p=await this.stringifyShortcuts(s.variantMatch,s,c[0],c[1]);if(p!=null&&p.length)return this._cache.set(o,p),p}else{let p=(l=await this.parseUtil(s.variantMatch,s))==null?void 0:l.map(f=>this.stringifyUtil(f)).filter(ge);if(p!=null&&p.length)return this._cache.set(o,p),p}this._cache.set(o,null)}async generate(e,{id:r,scope:o,preflights:n=!0,safelist:a=!0,minify:s=!1}={}){let c=typeof e=="string"?await this.applyExtractors(e,r):e;a&&this.config.safelist.forEach(g=>c.add(g));let l=s?"":`
|
|
1
|
+
(()=>{var ne=Object.defineProperty,dn=Object.defineProperties;var gn=Object.getOwnPropertyDescriptors;var mt=Object.getOwnPropertySymbols;var ae=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;var oe=(t,e,r)=>e in t?ne(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,C=(t,e)=>{for(var r in e||(e={}))ae.call(e,r)&&oe(t,r,e[r]);if(mt)for(var r of mt(e))ie.call(e,r)&&oe(t,r,e[r]);return t},j=(t,e)=>dn(t,gn(e));var se=(t,e)=>{var r={};for(var o in t)ae.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&mt)for(var o of mt(t))e.indexOf(o)<0&&ie.call(t,o)&&(r[o]=t[o]);return r};var bn=(t,e)=>{for(var r in e)ne(t,r,{get:e[r],enumerable:!0})};var St=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function G(t=""){let e=hn(t);if(e==null||e===!1)return;let{type:r,components:o,alpha:n}=e,a=r.toLowerCase();if(o.length!==0&&!(["rgba","hsla"].includes(a)&&n==null)&&!(St.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function M(t,e){let{components:r}=t,{alpha:o,type:n}=t;return o=e!=null?e:o,n=n.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(n)?`${n.replace("a","")}a(${r.join(",")}${o==null?"":`,${o}`})`:(o=o==null?"":` / ${o}`,St.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function hn(t){if(!t)return;let e=xn(t);if(e!=null||(e=yn(t),e!=null)||(e=vn(t),e!=null)||(e=kn(t),e!=null)||(e=wn(t),e!=null))return e}function xn(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(!!e)switch(e.length){case 3:case 4:let r=Array.from(e,n=>Number.parseInt(n,16)).map(n=>n<<4|n);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 o=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[o>>16&255,o>>8&255,o&255]:[o>>24&255,o>>16&255,o>>8&255],alpha:e.length===6?void 0:Math.round((o&255)/255*100)/100}}}function yn(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function vn(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,o]=e,n=Q(o,",",5);if(n){if([3,4].includes(n.length))return{type:r,components:n.slice(0,3),alpha:n[3]};if(n.length!==1)return!1}}var $n=new RegExp(`^(${St.join("|")})\\((.+)\\)$`,"i");function kn(t){let e=t.match($n);if(!e)return;let[,r,o]=e,n=ce(`${r} ${o}`);if(n){let{alpha:a,components:[s,...c]}=n;return{type:s,components:c,alpha:a}}}function wn(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=ce(e[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function ce(t){let e=Q(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 a=e.splice(r-2);e.push(a.join(" ")),--r}let o=Q(e[r-1],"/",3);if(!o)return;if(o.length===1||o[o.length-1]==="")return{components:e};let n=o.pop();return e[r-1]=o.join("/"),{components:e,alpha:n}}function Sn(t,e){if(t=t.trim(),t==="")return;let r=t.length,o=0;for(let n=0;n<r;n++)switch(t[n]){case"(":o++;break;case")":if(--o<0)return;break;case e:if(o===0){let a=t.slice(0,n).trim();return a===""?void 0:[a,t.slice(n+1).trim()]}}return[t,""]}function Q(t,e,r){if(e=e!=null?e:" ",e.length!==1)return;r=r!=null?r:10;let o=[],n=0;for(;t!=="";){if(++n>r)return;let a=Sn(t,e);if(!a)return;let[s,c]=a;o.push(s),t=c}if(o.length>0)return o}var O={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"]},Ct=j(C({},O),{s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]}),Rt={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},zt={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},le=["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"],U=Object.assign({},...le.map(t=>({[t.replace(/ /,"-")]:t})),...le.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t})));function tt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Tt(t){let e=t.length,r=-1,o,n="",a=t.charCodeAt(0);for(;++r<e;){if(o=t.charCodeAt(r),o===0){n+="\uFFFD";continue}if(o===44){n+="\\2c ";continue}if(o>=1&&o<=31||o===127||r===0&&o>=48&&o<=57||r===1&&o>=48&&o<=57&&a===45){n+=`\\${o.toString(16)} `;continue}if(r===0&&e===1&&o===45){n+=`\\${t.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=t.charAt(r);continue}n+=`\\${t.charAt(r)}`}return n}var dt=Tt;function rt(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function pe(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>rt(e)):[t]:[rt(t)]}function Cn(t){return t.filter(([e,r],o)=>{if(e.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(t[n][0]===e&&t[n][1]===r)return!1;return!0})}function gt(t){return t==null?"":Cn(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function jt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Et(t,e){let r=t,o=e;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=C({},r);return jt(r)&&jt(o)&&Object.keys(o).forEach(a=>{jt(o[a])?a in r?n[a]=Et(r[a],o[a]):Object.assign(n,{[a]:o[a]}):Object.assign(n,{[a]:o[a]})}),n}function et(t){let e,r,o;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(o=t[e])&&typeof o=="object"?et(o):o;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:et(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(o=t[e])&&typeof o=="object"?et(o):o;return r}return t}function ue(t){return typeof t[0]=="string"}function fe(t){return typeof t[0]=="string"}function V(t=[]){return Array.isArray(t)?t:[t]}function ot(t){return Array.from(new Set(t))}var Rn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,E="$$shortcut-no-merge";function me(t=""){return Rn.test(t)}function de(t){return typeof t=="function"?{match:t}:t}function Vt(t){return t.length===3}function ge(t){return t!=null}var Ot=class{_map=new Map;get(e,r){let o=this._map.get(e);if(o)return o.get(r)}getFallback(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.has(r)||n.set(r,o),n.get(r)}set(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.set(r,o),this}has(e,r){var o;return(o=this._map.get(e))==null?void 0:o.has(r)}delete(e,r){var o;return((o=this._map.get(e))==null?void 0:o.delete(r))||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>e(a,r,n)))}};var be=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function he(t){return be.lastIndex=0,t.replace(be,(e,r,o,n)=>n.split(/\s/g).map(a=>a.replace(/^(!?)(.*)/,`$1${r}${o}$2`)).join(" "))}var xe=new Set;function ye(t){xe.has(t)||(console.warn("[unocss]",t),xe.add(t))}function ve(t){let e=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let s of n){let c=t[s](o);if(c!=null)return c}};function r(o,n){return o.__options||(o.__options={sequence:[]}),o.__options.sequence.push(n),o}for(let o of Object.keys(t))Object.defineProperty(e,o,{enumerable:!0,get(){return r(this,o)}});return e}var zn=t=>t.split(/[\s'"`;>=]+/g).filter(me),Mt={name:"split",order:0,extract({code:t}){return new Set(zn(t))}};function Tn(t){return V(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var jn={shortcuts:-1,default:0};function Ut(t={},e={}){let r=Object.assign({},e,t),o=(r.presets||[]).flatMap(V),n=[...o.filter(u=>u.enforce==="pre"),...o.filter(u=>!u.enforce),...o.filter(u=>u.enforce==="post")],a=Object.assign(jn,...o.map(u=>u.layers),t.layers);function s(u){return ot([...n.flatMap(h=>V(h[u]||[])),...V(r[u]||[])])}let c=s("extractors");c.length||c.push(Mt),c.sort((u,h)=>(u.order||0)-(h.order||0));let l=s("rules"),p={},f=l.length;l.forEach((u,h)=>{ue(u)&&(p[u[0]]=[h,u[1],u[2]],delete l[h])});let m=et([...n.map(u=>u.theme||{}),r.theme||{}].reduce((u,h)=>Et(u,h),{}));s("extendTheme").forEach(u=>u(m));let k={templates:ot(n.map(u=>{var h;return V((h=u.autocomplete)==null?void 0:h.templates)}).flat()),extractors:n.map(u=>{var h;return V((h=u.autocomplete)==null?void 0:h.extractors)}).flat().sort((u,h)=>(u.order||0)-(h.order||0))};return j(C({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:u=>u},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:m,rulesSize:f,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:k,variants:s("variants").map(de),shortcuts:Tn(s("shortcuts")),extractors:c})}var $e="0.30.1";var we=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=Ut(e,r)}version=$e;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.config=Ut(e,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(e,r,o=new Set){let n={get original(){return e},code:e,id:r};for(let a of this.config.extractors){let s=await a.extract(n);s==null||s.forEach(c=>o.add(c))}return o}makeContext(e,r){let o={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(e,r){var l;if(this.blocked.has(e))return;let o=`${e}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=e;for(let p of this.config.preprocess)n=p(e);if(this.isBlocked(n)){this.blocked.add(e),this._cache.set(o,null);return}let a=this.matchVariants(e,n);if(!a||this.isBlocked(a[1])){this.blocked.add(e),this._cache.set(o,null);return}let s=this.makeContext(e,[r||a[0],a[1],a[2],a[3]]),c=this.expandShortcut(s.currentSelector,s);if(c){let p=await this.stringifyShortcuts(s.variantMatch,s,c[0],c[1]);if(p!=null&&p.length)return this._cache.set(o,p),p}else{let p=(l=await this.parseUtil(s.variantMatch,s))==null?void 0:l.map(f=>this.stringifyUtil(f)).filter(ge);if(p!=null&&p.length)return this._cache.set(o,p),p}this._cache.set(o,null)}async generate(e="",{id:r,scope:o,preflights:n=!0,safelist:a=!0,minify:s=!1}={}){let c=typeof e=="string"?await this.applyExtractors(e,r):e;a&&this.config.safelist.forEach(g=>c.add(g));let l=s?"":`
|
|
2
2
|
`,p=new Set(["default"]),f=new Set,m=new Map;await Promise.all(Array.from(c).map(async g=>{var v;if(f.has(g))return;let b=await this.parseToken(g);if(b!=null){f.add(g);for(let S of b){let z=S[3]||"";m.has(z)||m.set(z,[]),m.get(z).push(S),(v=S[4])!=null&&v.layer&&p.add(S[4].layer)}}})),n&&this.config.preflights.forEach(g=>{g.layer&&p.add(g.layer)});let k={},u=this.config.sortLayers(Array.from(p).sort((g,b)=>{var v,S;return((v=this.config.layers[g])!=null?v:0)-((S=this.config.layers[b])!=null?S:0)||g.localeCompare(b)})),h={};if(n){let g={generator:this,theme:this.config.theme};h=Object.fromEntries(await Promise.all(u.map(async b=>{let S=(await Promise.all(this.config.preflights.filter(z=>(z.layer||"default")===b).map(async z=>await z.getCSS(g)))).filter(Boolean).join(l);return[b,S]})))}let L=g=>{if(k[g])return k[g];let b=Array.from(m).sort((v,S)=>{var z,_,d;return((z=this.parentOrders.get(v[0]))!=null?z:0)-((_=this.parentOrders.get(S[0]))!=null?_:0)||((d=v[0])==null?void 0:d.localeCompare(S[0]||""))||0}).map(([v,S])=>{let z=S.length,_=S.filter(y=>{var T;return(((T=y[4])==null?void 0:T.layer)||"default")===g}).sort((y,T)=>{var I,K,F;return y[0]-T[0]||(((I=y[4])==null?void 0:I.sort)||0)-(((K=T[4])==null?void 0:K.sort)||0)||((F=y[1])==null?void 0:F.localeCompare(T[1]||""))||0}).map(y=>{var T;return[y[1]?On(y[1],o):y[1],y[2],!!((T=y[4])!=null&&T.noMerge)]}).map(y=>[y[0]==null?y[0]:[y[0]],y[1],y[2]]);if(!_.length)return;let d=_.reverse().map(([y,T,I],K)=>{if(!I&&y&&this.config.mergeSelectors)for(let F=K+1;F<z;F++){let J=_[F];if(J&&!J[2]&&J[0]&&J[1]===T)return J[0].push(...y),null}return y?`${[...new Set(y)].join(`,${l}`)}{${T}}`:T}).filter(Boolean).reverse().join(l);return v?`${v}{${l}${d}${l}}`:d}).filter(Boolean).join(l);return n&&(b=[h[g],b].filter(Boolean).join(l)),k[g]=!s&&b?`/* layer: ${g} */${l}${b}`:b},w=(g=u,b)=>g.filter(v=>!(b!=null&&b.includes(v))).map(v=>L(v)||"").filter(Boolean).join(l);return{get css(){return w()},layers:u,getLayers:w,getLayer:L,matched:f}}matchVariants(e,r){let o=new Set,n=[],a=r||e,s=!1,c={rawSelector:e,theme:this.config.theme,generator:this};for(;;){s=!1;for(let l of this.config.variants){if(!l.multiPass&&o.has(l))continue;let p=l.match(a,c);if(!!p){typeof p=="string"&&(p={matcher:p}),a=p.matcher,Array.isArray(p.parent)&&this.parentOrders.set(p.parent[0],p.parent[1]),n.push(p),o.add(l),s=!0;break}}if(!s)break;if(n.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,a,n,o]}applyVariants(e,r=e[4],o=e[1]){let n=[...r].sort((c,l)=>(c.order||0)-(l.order||0)),a=n.reduce((c,l)=>{var p;return((p=l.body)==null?void 0:p.call(l,c))||c},e[2]),s={selector:n.reduce((c,l)=>{var p;return((p=l.selector)==null?void 0:p.call(l,c,a))||c},Mn(o)),entries:a,parent:n.reduce((c,l)=>Array.isArray(l.parent)?l.parent[0]:l.parent||c,void 0),layer:n.reduce((c,l)=>l.layer||c,void 0),sort:n.reduce((c,l)=>l.sort||c,void 0)};for(let c of this.config.postprocess)c(s);return s}constructCustomCSS(e,r,o){r=rt(r);let{selector:n,entries:a,parent:s}=this.applyVariants([0,o||e.rawSelector,r,void 0,e.variantHandlers]),c=`${n}{${gt(a)}}`;return s?`${s}{${c}}`:c}async parseUtil(e,r,o=!1){var f,m;let[n,a,s]=typeof e=="string"?this.matchVariants(e):e,c=this.config.rulesStaticMap[a];if(c&&c[1]&&(o||!((f=c[2])!=null&&f.internal)))return[[c[0],n,rt(c[1]),c[2],s]];r.variantHandlers=s;let{rulesDynamic:l,rulesSize:p}=this.config;for(let k=p-1;k>=0;k--){let u=l[k];if(!u||((m=u[2])==null?void 0:m.internal)&&!o)continue;let[h,L,w]=u,g=a.match(h);if(!g)continue;let b=await L(g,r);if(!b)continue;if(typeof b=="string")return[[k,b,w]];let v=pe(b).filter(S=>S.length);if(v.length)return v.map(S=>[k,n,S,w,s])}}stringifyUtil(e){var k;if(!e)return;if(Vt(e))return[e[0],void 0,e[1],void 0,e[2]];let{selector:r,entries:o,parent:n,layer:a,sort:s}=this.applyVariants(e),c=gt(o);if(!c)return;let u=(k=e[3])!=null?k:{},{layer:l,sort:p}=u,f=se(u,["layer","sort"]),m=j(C({},f),{layer:a!=null?a:l,sort:s!=null?s:p});return[e[0],r,c,n,m]}expandShortcut(e,r,o=3){if(o===0)return;let n,a;for(let s of this.config.shortcuts)if(fe(s)){if(s[0]===e){n=n||s[2],a=s[1];break}}else{let c=e.match(s[0]);if(c&&(a=s[1](c,r)),a){n=n||s[2];break}}if(typeof a=="string"&&(a=he(a).split(/\s+/g)),!!a)return[a.flatMap(s=>{var c;return((c=this.expandShortcut(s,r,o-1))==null?void 0:c[0])||[s]}).filter(s=>s!==""),n]}async stringifyShortcuts(e,r,o,n={layer:this.config.shortcutsLayer}){var p;let a=new Ot,s=(await Promise.all(ot(o).map(async f=>{let m=await this.parseUtil(f,r,!0);return m||ye(`unmatched utility "${f}" in shortcut "${e[1]}"`),m||[]}))).flat(1).filter(Boolean).sort((f,m)=>f[0]-m[0]),[c,,l]=e;for(let f of s){if(Vt(f))continue;let{selector:m,entries:k,parent:u,sort:h}=this.applyVariants(f,[...f[4],...l],c);a.getFallback(m,u,[[],f[0]])[0].push([k,!!((p=f[3])!=null&&p.noMerge),h!=null?h:0])}return a.map(([f,m],k,u)=>{let h=(w,g,b)=>{let v=Math.max(...b.map(z=>z[1])),S=b.map(z=>z[0]);return(w?[S.flat(1)]:S).map(z=>{let _=gt(z);if(_)return[m,k,_,u,j(C({},n),{noMerge:g,sort:v})]})};return[[f.filter(([,w])=>w).map(([w,,g])=>[w,g]),!0],[f.filter(([,w])=>!w).map(([w,,g])=>[w,g]),!1]].map(([w,g])=>[...h(!1,g,w.filter(([b])=>b.some(v=>v[0]===E))),...h(!0,g,w.filter(([b])=>b.every(v=>v[0]!==E)))])}).flat(2).filter(Boolean)}isBlocked(e){return!e||this.config.blocklist.some(r=>typeof r=="string"?r===e:r.test(e))}};function Se(t,e){return new we(t,e)}var Ce=/ \$\$ /,Vn=t=>t.match(Ce);function On(t,e){return Vn(t)?t.replace(Ce,e?` ${e} `:" "):e?`${e} ${t}`:t}var ke=/^\[(.+?)(~?=)"(.*)"\]$/;function Mn(t){return ke.test(t)?t.replace(ke,(e,r,o,n)=>`[${dt(r)}${o}"${dt(n)}"]`):`.${dt(t)}`}var Pt={};bn(Pt,{auto:()=>Pn,bracket:()=>Hn,bracketOfColor:()=>Bn,bracketOfLength:()=>In,cssvar:()=>Kn,degree:()=>Xn,fraction:()=>Nn,global:()=>Yn,number:()=>Ln,numberWithUnit:()=>_n,percent:()=>Wn,properties:()=>qn,px:()=>Dn,rem:()=>Fn,time:()=>Gn});var Un=["color","border-color","background-color","flex-grow","flex","flex-shrink","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","backround-position","left","right","top","bottom","object-position","max-height","min-height","max-width","min-width","height","width","border-width","margin","padding","outline-width","outline-offset","font-size","line-height","text-indent","vertical-align","border-spacing","letter-spacing","word-spacing","stroke","filter","backdrop-filter","fill","mask","mask-size","mask-border","clip-path","clip","border-radius"],At=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,An=/^(-?[0-9.]+)$/i,Re=/^(px)$/i;function P(t){return t.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function _n(t){let e=t.match(At);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(o&&!Number.isNaN(n))return`${P(n)}${o}`}function Pn(t){if(t==="auto"||t==="a")return"auto"}function Fn(t){if(t.match(Re))return`1${t}`;let e=t.match(At);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${P(n)}${o}`:`${P(n/4)}rem`}function Dn(t){if(t.match(Re))return`1${t}`;let e=t.match(At);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${P(n)}${o}`:`${P(n)}px`}function Ln(t){if(!An.test(t))return;let e=parseFloat(t);if(!Number.isNaN(e))return P(e)}function Wn(t){t.endsWith("%")&&(t=t.slice(0,-1));let e=parseFloat(t);if(!Number.isNaN(e))return`${P(e/100)}`}function Nn(t){if(t==="full")return"100%";let[e,r]=t.split("/"),o=parseFloat(e)/parseFloat(r);if(!Number.isNaN(o))return`${P(o*100)}%`}function _t(t,e){if(t&&t.startsWith("[")&&t.endsWith("]")){let r,o=t.match(/^\[(color|length):/i);if(o?e&&o[1]===e&&(r=t.slice(o[0].length,-1)):r=t.slice(1,-1),r!==void 0)return r.replace(/(url\(.*?\))/g,n=>n.replace(/_/g,"\\_")).replace(/([^\\])_/g,"$1 ").replace(/calc\((.*)/g,n=>n.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}}function Hn(t){return _t(t)}function Bn(t){return _t(t,"color")}function In(t){return _t(t,"length")}function Kn(t){if(t.match(/^\$\S/))return`var(--${Tt(t.slice(1))})`}function Gn(t){let e=t.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${P(n)}${o}`:`${P(n)}ms`}function Xn(t){let e=t.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${P(n)}${o}`:`${P(n)}deg`}function Yn(t){if(["inherit","initial","revert","unset"].includes(t))return t}function qn(t){for(let e of t.split(","))if(!Un.includes(e))return;return t}var i=ve(Pt);var D=(t,e)=>{let r=new RegExp(`^${tt(t)}[:-]`);return{match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),selector:e}},autocomplete:`${t}:`}},A=(t,e)=>{let r=new RegExp(`^${tt(t)}[:-]`);return{match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),parent:e}},autocomplete:`${t}:`}};var R=t=>([e,r,o],{theme:n})=>{var s,c;let a=(c=(s=n.spacing)==null?void 0:s[o||"DEFAULT"])!=null?c:i.bracket.cssvar.auto.fraction.rem(o);if(a!=null)return O[r].map(l=>[`${t}${l}`,a])},Ft=(t,e)=>{var r;return(r=t.colors)==null?void 0:r[e.join("-").replace(/(-[a-z])/g,o=>o.slice(1).toUpperCase())]},X=(t,e)=>{let r=t.split(/(?:\/|:)/),o,n;r[0]==="[color"?(o=r.slice(0,2).join(":"),n=r[2]):[o,n]=r;let a=o.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[s]=a;if(!s)return;let c,l=i.bracketOfColor(o),p=l||o;p.startsWith("#")?c=p:p.startsWith("hex-")?c=`#${p.slice(4)}`:o.startsWith("$")&&(c=i.cssvar(o)),c=c||l;let f="DEFAULT";if(!c){let m,[k]=a.slice(-1);k.match(/^\d+$/)?(f=k,m=Ft(e,a.slice(0,-1))):(m=Ft(e,a),!m&&a.length<=2&&([,f=f]=a,m=Ft(e,[s]))),typeof m=="string"?c=m:f&&m&&(c=m[f])}return{opacity:n,name:s,no:f,color:c,cssColor:G(c),alpha:i.bracket.cssvar.percent(n!=null?n:"")}},$=(t,e)=>([,r],{theme:o})=>{var l;let n=X(r,o);if(!n)return;let{alpha:a,color:s,cssColor:c}=n;if(c)return a!=null?{[t]:M(c,a)}:{[`--un-${e}-opacity`]:(l=c.alpha)!=null?l:1,[t]:M(c,`var(--un-${e}-opacity)`)};if(s)return{[t]:s.replace("%alpha",`${a!=null?a:1}`)}},Y=(t,e)=>{let r=[];t=V(t);for(let o=0;o<t.length;o++){let n=Q(t[o]," ",6);if(!n||n.length<3)return t;let a=G(n.pop());if(a==null)return t;r.push(`${n.join(" ")} var(${e}, ${M(a)})`)}return r},bt=(t,e)=>{var r;return t!=null&&!!((r=X(t,e))!=null&&r.color)};var ze=[[/^(?:animate-)?keyframes-(.+)$/,([,t],{theme:e,constructCSS:r})=>{var n,a;let o=(a=(n=e.animation)==null?void 0:n.keyframes)==null?void 0:a[t];if(o)return`@keyframes ${t}${o}
|
|
3
3
|
${r({animation:`${t}`})}`}],[/^animate-(.+)$/,([,t],{theme:e,constructCSS:r})=>{var n,a,s,c,l,p,f,m,k,u;let o=(a=(n=e.animation)==null?void 0:n.keyframes)==null?void 0:a[t];if(o){let h=(l=(c=(s=e.animation)==null?void 0:s.durations)==null?void 0:c[t])!=null?l:"1s",L=(m=(f=(p=e.animation)==null?void 0:p.timingFns)==null?void 0:f[t])!=null?m:"linear",w=(u=(k=e.animation)==null?void 0:k.properties)==null?void 0:u[t];return`@keyframes ${t}${o}
|
|
4
4
|
${r(Object.assign({animation:`${t} ${h} ${L} infinite`},w))}`}return{animation:i.bracket.cssvar(t)}}],[/^animate-name-(.+)/,([,t])=>{var e;return{"animation-name":(e=i.bracket.cssvar(t))!=null?e:t}}],[/^animate-duration-(.+)$/,([,t],{theme:e})=>{var r,o;return{"animation-duration":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:i.bracket.cssvar.time(t)}}],[/^animate-delay-(.+)$/,([,t],{theme:e})=>{var r,o;return{"animation-delay":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:i.bracket.cssvar.time(t)}}],[/^animate-ease(?:-(.+))?$/,([,t],{theme:e})=>{var r,o;return{"animation-timing-function":(o=(r=e.easing)==null?void 0:r[t||"DEFAULT"])!=null?o:i.bracket.cssvar(t)}}],[/^animate-(?:fill-|mode-|fill-mode-)?(none|forwards|backwards|both|inherit|initial|revert|unset)$/,([,t])=>({"animation-fill-mode":t})],[/^animate-(?:direction-)?(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)$/,([,t])=>({"animation-direction":t})],[/^animate-(?:iteration-|count-|iteration-count-)(.+)$/,([,t])=>{var e;return{"animation-iteration-count":(e=i.bracket.cssvar(t))!=null?e:t.replace(/\-/g,",")}}],[/^animate-(?:play-|state-|play-state-)?(paused|running|inherit|initial|revert|unset)$/,([,t])=>({"animation-play-state":t})],["animate-none",{animation:"none"}]];var Dt=t=>([,e],{theme:r})=>{var l;let o=X(e,r);if(!o)return;let{alpha:n,color:a,cssColor:s}=o;if(!a)return;let c=a;switch(s&&(n!=null?c=M(s,n):c=M(s,`var(--un-${t}-opacity, ${(l=s.alpha)!=null?l:1})`)),t){case"from":return{"--un-gradient-from":c,"--un-gradient-stops":"var(--un-gradient-from), var(--un-gradient-to, rgba(255, 255, 255, 0))"};case"via":return{"--un-gradient-stops":`var(--un-gradient-from), ${c}, var(--un-gradient-to, rgba(255, 255, 255, 0))`};case"to":return{"--un-gradient-to":c}}},Te=[[/^bg-gradient-(.+)$/,([,t])=>({"--un-gradient":i.bracket(t)})],[/^(?:bg-gradient-)?stops-(\[.+\])$/,([,t])=>({"--un-gradient-stops":i.bracket(t)})],[/^(?:bg-gradient-)?from-(.+)$/,Dt("from")],[/^(?:bg-gradient-)?to-(.+)$/,Dt("to")],[/^(?:bg-gradient-)?via-(.+)$/,Dt("via")],[/^(?:bg-gradient-)?from-op(?:acity)?-?(.+)$/,([,t])=>({"--un-from-opacity":i.bracket.percent(t)})],[/^(?:bg-gradient-)?to-op(?:acity)?-?(.+)$/,([,t])=>({"--un-to-opacity":i.bracket.percent(t)})],[/^(?:bg-gradient-)?via-op(?:acity)?-?(.+)$/,([,t])=>({"--un-via-opacity":i.bracket.percent(t)})],[/^bg-gradient-((?:repeating-)?(?:linear|radial|conic))$/,([,t])=>({"background-image":`${t}-gradient(var(--un-gradient, var(--un-gradient-stops, rgba(255, 255, 255, 0))))`})],[/^bg-gradient-to-([rltb]{1,2})$/,([,t])=>{if(t in U)return{"--un-gradient-shape":`to ${U[t]}`,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)","background-image":"linear-gradient(var(--un-gradient))"}}],[/^(?:bg-gradient-)?shape-(.+)$/,([,t])=>{let e=t in U?`to ${U[t]}`:i.bracket(t);if(e!=null)return{"--un-gradient-shape":e,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)"}}],["bg-none",{"background-image":"none"}],["box-decoration-slice",{"box-decoration-break":"slice"}],["box-decoration-clone",{"box-decoration-break":"clone"}],["bg-auto",{"background-size":"auto"}],["bg-cover",{"background-size":"cover"}],["bg-contain",{"background-size":"contain"}],["bg-fixed",{"background-attachment":"fixed"}],["bg-local",{"background-attachment":"local"}],["bg-scroll",{"background-attachment":"scroll"}],["bg-clip-border",{"-webkit-background-clip":"border-box","background-attachment":"border-box"}],["bg-clip-content",{"-webkit-background-clip":"content-box","background-attachment":"content-box"}],["bg-clip-padding",{"-webkit-background-clip":"padding-box","background-attachment":"padding-box"}],["bg-clip-text",{"-webkit-background-clip":"text","background-attachment":"text"}],[/^bg-([-\w]{3,})$/,([,t])=>({"background-position":U[t]})],["bg-repeat",{"background-repeat":"repeat"}],["bg-no-repeat",{"background-repeat":"no-repeat"}],["bg-repeat-x",{"background-position":"repeat-x"}],["bg-repeat-y",{"background-position":"repeat-y"}],["bg-repeat-round",{"background-position":"round"}],["bg-repeat-space",{"background-position":"space"}],["bg-origin-border",{"background-origin":"border-box"}],["bg-origin-padding",{"background-origin":"padding-box"}],["bg-origin-content",{"background-origin":"content-box"}]];var je=[[/^list-(disc|circle|square|decimal|zero-decimal|greek|roman|upper-roman|alpha|upper-alpha)(?:-(outside|inside))?$/,([,t,e])=>e!=null?{"list-style-position":e,"list-style-type":t}:{"list-style-type":t}],["list-outside",{"list-style-position":"outside"}],["list-inside",{"list-style-position":"inside"}],["list-none",{"list-style-type":"none"}]],Ee=[[/^accent-(.+)$/,$("accent-color","accent")],[/^accent-op(?:acity)?-?(.+)$/,([,t])=>({"--un-accent-opacity":i.bracket.percent(t)})]],Ve=[[/^caret-(.+)$/,$("caret-color","caret")],[/^caret-op(?:acity)?-?(.+)$/,([,t])=>({"--un-caret-opacity":i.bracket.percent(t)})]],Oe=[["image-render-auto",{"image-rendering":"auto"}],["image-render-edge",{"image-rendering":"crisp-edges"}],["image-render-pixel",[["-ms-interpolation-mode","nearest-neighbor"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-pixelated"],["image-rendering","pixelated"]]]],Me=[["overscroll-auto",{"overscroll-behavior":"auto"}],["overscroll-contain",{"overscroll-behavior":"contain"}],["overscroll-none",{"overscroll-behavior":"none"}],["overscroll-x-auto",{"overscroll-behavior-x":"auto"}],["overscroll-x-contain",{"overscroll-behavior-x":"contain"}],["overscroll-x-none",{"overscroll-behavior-x":"none"}],["overscroll-y-auto",{"overscroll-behavior-y":"auto"}],["overscroll-y-contain",{"overscroll-behavior-y":"contain"}],["overscroll-y-none",{"overscroll-behavior-y":"none"}]],Ue=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}]];var Ae=[[/^columns-(.+)$/,([,t])=>({columns:i.bracket.global.number.auto.numberWithUnit(t)})],["break-before-auto",{"break-before":"auto"}],["break-before-avoid",{"break-before":"avoid"}],["break-before-all",{"break-before":"all"}],["break-before-avoid-page",{"break-before":"avoid-page"}],["break-before-page",{"break-before":"page"}],["break-before-left",{"break-before":"left"}],["break-before-right",{"break-before":"right"}],["break-before-column",{"break-before":"column"}],["break-inside-auto",{"break-inside":"auto"}],["break-inside-avoid",{"break-inside":"avoid"}],["break-inside-avoid-page",{"break-inside":"avoid-page"}],["break-inside-avoid-column",{"break-inside":"avoid-column"}],["break-after-auto",{"break-after":"auto"}],["break-after-avoid",{"break-after":"avoid"}],["break-after-all",{"break-after":"all"}],["break-after-avoid-page",{"break-after":"avoid-page"}],["break-after-page",{"break-after":"page"}],["break-after-left",{"break-after":"left"}],["break-after-right",{"break-after":"right"}],["break-after-column",{"break-after":"column"}]];var Zn=/@media \(min-width: (.+)\)/,_e=[[/^__container$/,(t,{variantHandlers:e})=>{var o;let r="100%";for(let n of e){let a=V(n.parent||[])[0];if(typeof a=="string"){let s=(o=a.match(Zn))==null?void 0:o[1];s&&(r=s)}}return{"max-width":r}},{internal:!0}]],Pe=[[/^(?:(\w+)[:-])?container$/,([,t],{theme:e})=>{let r=Object.keys(e.breakpoints||{});if(t){if(!r.includes(t))return;r=r.slice(r.indexOf(t))}let o=r.map(n=>`${n}:__container`);return t||o.unshift("__container"),o}]];var Jn={mid:"middle",base:"baseline",btm:"bottom"},Fe=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,t])=>({"vertical-align":Jn[t]||t}),{autocomplete:"(vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)"}]],De=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var Le=[[/^outline-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r,o;return{"outline-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:i.bracket.cssvar.px(t)}},{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,$("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,t],{theme:e})=>{var r,o;return{"outline-offset":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:i.bracket.cssvar.px(t)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],[/^outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)$/,([,t])=>({"outline-style":t}),{autocomplete:"outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)"}],["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],We=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],Qn=t=>{var e;return(e=i.properties.auto.global(t))!=null?e:{contents:"contents",scroll:"scroll-position"}[t]},Ne=[[/^will-change-(.+)/,([,t])=>({"will-change":Qn(t)})]];var He=[[/^(?:border|b)()(?:-(.+))?$/,nt,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,nt],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,nt],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,nt],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,nt],[/^(?:border|b)-()(?:width|size)-(.+)$/,q,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,q],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,q],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,q],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,q],[/^(?:border|b)-()(?:color-)?(.+)$/,at,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,at],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,at],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,at],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,at],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,it,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,it],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,it],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,it],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,it],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,st,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,st],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,st],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,st],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,st],["border-solid",{"border-style":"solid"}],["border-dashed",{"border-style":"dashed"}],["border-dotted",{"border-style":"dotted"}],["border-double",{"border-style":"double"}],["border-hidden",{"border-style":"hidden"}],["border-none",{"border-style":"none"}]],ta=t=>([,e],r)=>{var c,l;let o=X(e,r);if(!o)return;let{alpha:n,color:a,cssColor:s}=o;if(s)return n!=null?{[`border${t}-color`]:M(s,n)}:t===""?{"--un-border-opacity":(c=s.alpha)!=null?c:1,[`border${t}-color`]:M(s,`var(--un-border${t}-opacity)`)}:{"--un-border-opacity":(l=s.alpha)!=null?l:1,[`--un-border${t}-opacity`]:"var(--un-border-opacity)",[`border${t}-color`]:M(s,`var(--un-border${t}-opacity)`)};if(a)return{[`border${t}-color`]:a.replace("%alpha",`${n!=null?n:1}`)}};function nt(t,e){let r=q(t,e);if(r)return[...r,["border-style","solid"]]}function q([,t="",e],{theme:r}){var n,a;let o=(a=(n=r.lineWidth)==null?void 0:n[e||"DEFAULT"])!=null?a:i.bracket.cssvar.px(e||"1");if(t in O&&o!=null)return O[t].map(s=>[`border${s}-width`,o])}function at([,t="",e],{theme:r}){if(t in O&&bt(e,r))return Object.assign({},...O[t].map(o=>ta(o)(["",e],r)))}function it([,t="",e]){let r=i.bracket.percent(e);if(t in O&&r!=null)return O[t].map(o=>[`--un-border${o}-opacity`,r])}function st([,t="",e],{theme:r}){var n;let o=((n=r.borderRadius)==null?void 0:n[e||"DEFAULT"])||i.bracket.cssvar.fraction.rem(e||"1");if(t in Rt&&o!=null)return Rt[t].map(a=>[`border${a}-radius`,o])}var Be=[[/^op(?:acity)?-?(.+)$/,([,t])=>({opacity:i.bracket.percent.cssvar(t)})]],Ie=[[/^(?:text|color|c)-(.+)$/,$("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-opacity":i.bracket.percent(t)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],Ke=[[/^bg-(.+)$/,$("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,t])=>({"--un-bg-opacity":i.bracket.percent(t)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var ht={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},Ge=t=>{var e;return(e=i.properties(t))!=null?e:ht[t]},Xe=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,t,e],{theme:r})=>{var n,a;let o=t!=null?Ge(t):[ht.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(o){let s=(a=(n=r.duration)==null?void 0:n[e||"DEFAULT"])!=null?a:i.time(e||"150");return{"transition-property":o,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":s}}},{autocomplete:`transition-(${Object.keys(ht).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,t],{theme:e})=>{var r,o;return{"transition-duration":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:i.bracket.cssvar.time(t)}},{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,t],{theme:e})=>{var r,o;return{"transition-delay":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:i.bracket.cssvar.time(t)}},{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,t],{theme:e})=>{var r,o;return{"transition-timing-function":(o=(r=e.easing)==null?void 0:r[t||"DEFAULT"])!=null?o:i.bracket.cssvar(t)}},{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,t])=>({"transition-property":i.global(t)||Ge(t)}),{autocomplete:[`transition-property-(${["inherit","initial","revert","unset",...Object.keys(ht)].join("|")})`]}],["transition-none",{transition:"none"}]];var Ye=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,t])=>({flex:i.bracket(t)!=null?i.bracket(t).split(" ").map(e=>{var r;return(r=i.cssvar.fraction(e))!=null?r:e}).join(" "):i.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$/,()=>({"flex-shrink":1})],[/^(?:flex-)?shrink-0$/,()=>({"flex-shrink":0})],[/^(?:flex-)?grow$/,()=>({"flex-grow":1})],[/^(?:flex-)?grow-0$/,()=>({"flex-grow":0})],[/^(?:flex-)?basis-(.+)$/,([,t],{theme:e})=>{var r,o;return{"flex-basis":(o=(r=e.spacing)==null?void 0:r[t])!=null?o:i.bracket.cssvar.auto.fraction.rem(t)}}],["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 qe={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Ze=[[/^font-(\w+)$/,([,t],{theme:e})=>{var r;return{"font-family":((r=e.fontFamily)==null?void 0:r[t])||i.global(t)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,t="base"],{theme:e})=>{var o;let r=V((o=e.fontSize)==null?void 0:o[t]);if(r!=null&&r[0]){let[n,a="1"]=r;return{"font-size":n,"line-height":a}}return{"font-size":i.bracketOfLength.rem(t)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,t],{theme:e})=>{var n,a;let r=V((n=e.fontSize)==null?void 0:n[t]),o=(a=r==null?void 0:r[0])!=null?a:i.bracket.cssvar.rem(t);if(o!=null)return{"font-size":o}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,t])=>({"font-weight":qe[t]||i.global.number(t)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(qe).join("|")})`}],[/^(?:leading|lh)-(.+)$/,([,t],{theme:e})=>{var r;return{"line-height":((r=e.lineHeight)==null?void 0:r[t])||i.bracket.cssvar.global.rem(t)}},{autocomplete:"(leading|lh)-$lineHeight"}],[/^tracking-(.+)$/,([,t],{theme:e})=>{var r;return{"letter-spacing":((r=e.letterSpacing)==null?void 0:r[t])||i.bracket.cssvar.global.rem(t)}},{autocomplete:"tracking-$letterSpacing"}],[/^word-spacing-(.+)$/,([,t],{theme:e})=>{var r;return{"word-spacing":((r=e.wordSpacing)==null?void 0:r[t])||i.bracket.cssvar.global.rem(t)}},{autocomplete:"word-spacing-$wordSpacing"}]],Je=[[/^tab(?:-(.+))?$/,([,t])=>{let e=i.bracket.cssvar.global.number(t||"4");if(e!=null)return{"-moz-tab-size":e,"-o-tab-size":e,"tab-size":e}}]],Qe=[[/^indent(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"text-indent":((r=e.textIndent)==null?void 0:r[t||"DEFAULT"])||i.bracket.cssvar.global.fraction.rem(t)}},{autocomplete:"indent-$textIndent"}]],tr=[[/^text-stroke(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"-webkit-text-stroke-width":((r=e.textStrokeWidth)==null?void 0:r[t||"DEFAULT"])||i.bracket.cssvar.px(t)}},{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,$("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-stroke-opacity":i.bracket.percent(t)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],er=[[/^text-shadow(?:-(.+))?$/,([,t],{theme:e})=>{var o;let r=(o=e.textShadow)==null?void 0:o[t||"DEFAULT"];return r!=null?{"--un-text-shadow":Y(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":i.bracket.cssvar(t)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,$("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-shadow-opacity":i.bracket.percent(t)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var rr={"":"",x:"column-",y:"row-"},or=([,t="",e],{theme:r})=>{var n,a;let o=(a=(n=r.spacing)==null?void 0:n[e])!=null?a:i.bracket.cssvar.rem(e);if(o!=null)return{[`grid-${rr[t]}gap`]:o,[`${rr[t]}gap`]:o}},nr=[[/^(?:flex-|grid-)?gap-?()(.+)$/,or,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,or,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var W=t=>t.replace("col","column"),Lt=t=>t[0]==="r"?"Row":"Column",ea=(t,e,r)=>{var n;let o=(n=e[`gridAuto${Lt(t)}`])==null?void 0:n[r];if(o!=null)return o;switch(r){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return i.bracket.cssvar.auto.rem(r)},ar=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,t,e],{theme:r})=>{var o,n;return{[`grid-${W(t)}`]:(n=(o=r[`grid${Lt(t)}`])==null?void 0:o[e])!=null?n:i.bracket.cssvar.auto(e)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,t,e])=>{if(e==="full")return{[`grid-${W(t)}`]:"1/-1"};let r=i.bracket.number(e);if(r!=null)return{[`grid-${W(t)}`]:`span ${r}/span ${r}`}},{autocomplete:["grid-(row|col)-span-<num>","(row|col)-span-<num>"]}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,t,e])=>{var r;return{[`grid-${W(t)}-start`]:(r=i.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,t,e])=>{var r;return{[`grid-${W(t)}-end`]:(r=i.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-auto-${W(t)}`]:ea(t,r,e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,t])=>({"grid-auto-flow":i.bracket.cssvar(t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-((?:row|col)(?:-dense)?)$/,([,t])=>({"grid-auto-flow":W(t).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>{var o,n;return{[`grid-template-${W(t)}`]:(n=(o=r[`gridTemplate${Lt(t)}`])==null?void 0:o[e])!=null?n:i.bracket.cssvar(e)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,t,e])=>({[`grid-template-${W(t)}`]:`repeat(auto-fill,minmax(${e},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,t,e])=>({[`grid-template-${W(t)}`]:`repeat(${e},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var xt=["auto","hidden","clip","visible","scroll"],ir=[[/^(?:overflow|of)-(.+)$/,([,t])=>xt.includes(t)?{overflow:t}:void 0,{autocomplete:[`(overflow|of)-${xt.join("|")}`,`(overflow|of)-(x|y)-${xt.join("|")}`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,t,e])=>xt.includes(e)?{[`overflow-${t}`]:e}:void 0]];var sr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,t])=>({position:t})],[/^(?:position-|pos-)?(static)$/,([,t])=>({position:t})]],cr=[["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-items-start",{"justify-items":"start"}],["justify-items-end",{"justify-items":"end"}],["justify-items-center",{"justify-items":"center"}],["justify-items-stretch",{"justify-items":"stretch"}],["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"}]],lr=[[/^order-(.+)$/,([,t])=>({order:i.bracket.cssvar.number(t)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],pr=[["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"}],["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"}],["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"}]],ur=[["place-content-center",{"place-content":"center"}],["place-content-start",{"place-content":"start"}],["place-content-end",{"place-content":"end"}],["place-content-between",{"place-content":"space-between"}],["place-content-around",{"place-content":"space-around"}],["place-content-evenly",{"place-content":"space-evenly"}],["place-content-stretch",{"place-content":"stretch"}],["place-items-start",{"place-items":"start"}],["place-items-end",{"place-items":"end"}],["place-items-center",{"place-items":"center"}],["place-items-stretch",{"place-items":"stretch"}],["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"}]];function Wt(t,{theme:e}){var r,o;return(o=(r=e.spacing)==null?void 0:r[t])!=null?o:i.bracket.cssvar.auto.fraction.rem(t)}function yt([,t,e],r){let o=Wt(e,r);if(o!=null&&t in Ct)return Ct[t].map(n=>[n.slice(1),o])}var fr=[[/^(?:position-|pos-)?inset-(.+)$/,([,t],e)=>({inset:Wt(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-)?inset-([xy])-(.+)$/,yt],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,yt],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,yt],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,yt],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,t,e],r)=>({[t]:Wt(e,r)})]],mr=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-none",{float:"none"}],["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-none",{clear:"none"}]],dr=[[/^z([\d.]+)$/,([,t])=>({"z-index":i.number(t)})],[/^z-(.+)$/,([,t])=>({"z-index":i.bracket.cssvar.auto.number(t)}),{autocomplete:"z-<num>"}]],gr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var x="var(--un-empty,/*!*/ /*!*/)",br=[["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:i.bracket.cssvar(t)||t})]],hr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],xr=[[/^cursor-(.+)$/,([,t])=>({cursor:i.bracket.cssvar(t)||t})]],yr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],vr=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],$r=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],kr=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,t])=>({"white-space":t}),{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)"}]];var wr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Sr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]];var Cr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}]],Rr=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto","font-smoothing":"auto"}]];var zr=[[/^ring(?:-(.+))?$/,([,t],{theme:e})=>{var o,n;let r=(n=(o=e.ringWidth)==null?void 0:o[t||"DEFAULT"])!=null?n:i.px(t||"1");if(r)return[{[E]:"","--un-ring-inset":x,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgba(147,197,253,0.5)"},{"--un-ring-width":r,"--un-ring-offset-shadow":"var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)","--un-ring-shadow":"var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color)","box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow, 0 0 #0000)"}]},{autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,([,t],{theme:e})=>{var r,o;return{"--un-ring-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:i.bracket.cssvar.px(t)}},{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r,o;return{"--un-ring-offset-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:i.bracket.cssvar.px(t)}},{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,$("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-opacity":i.bracket.percent(t)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,$("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-offset-opacity":i.bracket.percent(t)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var Tr=[[/^shadow(?:-(.+))?$/,([,t],{theme:e})=>{var o;let r=(o=e.boxShadow)==null?void 0:o[t||"DEFAULT"];if(r)return[{[E]:"","--un-shadow-inset":x,"--un-shadow":"0 0 #0000"},{"--un-shadow":Y(r,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"}]},{autocomplete:"shadow-$boxShadow"}],[/^shadow-(.+)$/,$("--un-shadow-color","shadow"),{autocomplete:"shadow-$colors"}],[/^shadow-op(?:acity)?-?(.+)$/,([,t])=>({"--un-shadow-opacity":i.bracket.percent(t)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var ra={h:"height",w:"width",inline:"inline-size",block:"block-size"};function ct(t,e){return`${t||""}${ra[e]}`}function jr(t,e,r,o){var s;let n=ct(t,e).replace(/-(\w)/g,(c,l)=>l.toUpperCase()),a=(s=r[n])==null?void 0:s[o];if(a!=null)return a;switch(o){case"fit":case"max":case"min":return`${o}-content`}return i.bracket.cssvar.auto.fraction.rem(o)}var Er=[[/^(min-|max-)?([wh])-?(.+)$/,([,t,e,r],{theme:o})=>({[ct(t,e)]:jr(t,e,o,r)}),{autocomplete:["(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"]}],[/^(min-|max-)?(block|inline)-(.+)$/,([,t,e,r],{theme:o})=>({[ct(t,e)]:jr(t,e,o,r)}),{autocomplete:["(w|h)-(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h)-(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"]}],[/^(min-|max-)?(h)-screen-(.+)$/,([,t,e,r],{theme:o})=>{var n;return{[ct(t,e)]:(n=o.verticalBreakpoints)==null?void 0:n[r]}},{autocomplete:["h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints"]}],[/^(min-|max-)?(w)-screen-(.+)$/,([,t,e,r],{theme:o})=>{var n;return{[ct(t,e)]:(n=o.breakpoints)==null?void 0:n[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function oa(t){if(/^\d+\/\d+$/.test(t))return t;switch(t){case"square":return"1/1";case"video":return"16/9"}return i.bracket.cssvar.auto.number(t)}var Vr=[[/^aspect-(?:ratio-)?(.+)$/,([,t])=>({"aspect-ratio":oa(t)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var Or=[[/^pa?()-?(-?.+)$/,R("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?([xy])-?(-?.+)$/,R("padding")],[/^p-?([rltbse])-?(-?.+)$/,R("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)-(-?.+)$/,R("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])-?(-?.+)$/,R("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],Mr=[[/^ma?()-?(-?.+)$/,R("margin")],[/^m-?([xy])-?(-?.+)$/,R("margin")],[/^m-?([rltbse])-?(-?.+)$/,R("margin")],[/^m-(block|inline)-(-?.+)$/,R("margin")],[/^m-?([bi][se])-?(-?.+)$/,R("margin")]];var na={"--un-transform":["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(" ")},Pr={"--un-transform":["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(" ")},Z=j(C({"--un-rotate":0,"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-scale-x":1,"--un-scale-y":1,"--un-scale-z":1,"--un-skew-x":0,"--un-skew-y":0,"--un-translate-x":0,"--un-translate-y":0,"--un-translate-z":0},Pr),{[E]:""}),Fr=[[/^(?:transform-)?origin-(.+)$/,([,t])=>{var e;return{"transform-origin":(e=U[t])!=null?e:i.bracket.cssvar(t)}},{autocomplete:[`transform-origin-(${Object.keys(U).join("|")})`,`origin-(${Object.keys(U).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,t])=>{let e=i.bracket.cssvar.px.numberWithUnit(t);if(e!=null)return{"-webkit-perspective":e,perspective:e}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,t])=>{var r;let e=(r=i.bracket.cssvar(t))!=null?r:t.length>=3?U[t]:void 0;if(e!=null)return{"-webkit-perspective-origin":e,"perspective-origin":e}}],[/^(?:transform-)?translate-()(.+)$/,Ur],[/^(?:transform-)?translate-([xyz])-(.+)$/,Ur],[/^(?:transform-)?rotate-()(.+)$/,_r],[/^(?:transform-)?rotate-([xyz])-(.+)$/,_r],[/^(?:transform-)?skew-([xy])-(.+)$/,aa],[/^(?:transform-)?scale-()(.+)$/,Ar],[/^(?:transform-)?scale-([xyz])-(.+)$/,Ar],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[Z,{transform:"var(--un-transform)"}]],["transform-gpu",na],["transform-cpu",Pr],["transform-none",{transform:"none"}]];function Ur([,t,e],{theme:r}){var n,a;let o=(a=(n=r.spacing)==null?void 0:n[e])!=null?a:i.bracket.cssvar.fraction.rem(e);if(o!=null)return[Z,[...zt[t].map(s=>[`--un-translate${s}`,o]),["transform","var(--un-transform)"]]]}function Ar([,t,e]){let r=i.bracket.cssvar.fraction.percent(e);if(r!=null)return[Z,[...zt[t].map(o=>[`--un-scale${o}`,r]),["transform","var(--un-transform)"]]]}function _r([,t="",e]){let r=i.bracket.cssvar.degree(e);if(r!=null)return t?[Z,{"--un-rotate":0,[`--un-rotate-${t}`]:r,transform:"var(--un-transform)"}]:[Z,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function aa([,t,e]){let r=i.bracket.cssvar.degree(e);if(r!=null)return[Z,{[`--un-skew-${t}`]:r,transform:"var(--un-transform)"}]}var ia={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"},Dr=[[/^(.+?)-(\$.+)$/,([,t,e])=>{let r=ia[t];if(r)return{[r]:i.cssvar(e)}}]],Lr=[[/^\[([^:]+):(.+)\]$/,([,t,e])=>({[t]:i.bracket(`[${e}]`)})]];var Wr=[[/^(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}}
|