@barocss/browser 0.10.2 → 0.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).BaroCSS={})}(this,function(t){function e(t,e,r){return{type:"decl",prop:t,value:e,source:r}}function r(t,e){return{type:"at-root",nodes:t,source:e}}function o(t,e,r,o){return{type:"at-rule",name:t,params:e,nodes:r,source:o}}function a(t,e,r){return{type:"rule",selector:t,nodes:e,source:r}}function n(t,r,a,n){const s=[e("syntax",`"${a||"*"}"`,n),e("inherits","false",n)];return r&&s.push(e("initial-value",r,n)),o("property",t,s,n)}Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});var s=!1;function i(){return s}function l(...t){s&&console.warn(...t)}var c,p=class{constructor(){this.cache=new Map,this.maxSize=1e3}set(t,e){if(this.cache.size>=this.maxSize){const t=this.cache.keys().next().value;t&&this.cache.delete(t)}this.cache.set(t,e)}get(t){return this.cache.get(t)}has(t){return this.cache.has(t)}clear(){this.cache.clear()}getStats(){return{size:this.cache.size,maxSize:this.maxSize,hitRate:this.cache.size/this.maxSize}}},u=new p,d=class{constructor(){this.cache=new Map,this.maxSize=2e3}set(t,e){if(this.cache.size>=this.maxSize){const t=this.cache.keys().next().value;t&&this.cache.delete(t)}this.cache.set(t,e)}get(t){return this.cache.get(t)}has(t){return this.cache.has(t)}clear(){this.cache.clear()}getStats(){return{size:this.cache.size,maxSize:this.maxSize,hitRate:this.cache.size/this.maxSize}}},y=new d,h=class{constructor(){this.cache=new Map,this.maxSize=1e3}set(t,e){if(this.cache.size>=this.maxSize){const t=this.cache.keys().next().value;t&&this.cache.delete(t)}this.cache.set(t,e)}get(t){return this.cache.get(t)}has(t){return this.cache.has(t)}clear(){this.cache.clear()}getStats(){return{size:this.cache.size,maxSize:this.maxSize,hitRate:this.cache.size/this.maxSize}}},g=new h;function m(){u.clear(),y.clear(),g.clear(),c?.(),function(...t){s&&console.log(...t)}("[clearAllCaches] All caches cleared")}var f=new WeakMap,b=0;function v(t){const e=f.get(t);return e&&e.cacheGeneration!==b&&(x(t),e.cacheGeneration=b),e}function x(t){const e=f.get(t);e&&(e.astCache.clear(),e.parseResultCache.clear(),e.utilityCache.clear(),e.failures.clear())}c=()=>{b+=1};var k=[];function w(t,e){const r=e&&v(e);if(e&&!r)throw new Error("Utility registration requires a context from createContext");(r?.utilities||k).push(t),e?x(e):(y.clear(),g.clear())}function $(t){return t&&v(t)?.utilities||k}var C=[];function P(t,e,r={},o){S({name:t,match:e=>e===t,modifySelector:({...t})=>e.map(t=>({selector:t,source:r.source})),...r},o)}function z(t,e,r,o={},a){S({match:t,modifySelector:e,wrap:r,...o},a)}function S(t,e){const r=e&&v(e);if(e&&!r)throw new Error("Modifier registration requires a context from createContext");(r?.modifiers||C).push(t),e&&x(e)}function A(t){return t&&v(t)?.modifiers||C}var j=/[^A-Za-z0-9_-]/g;function R(t){return t.replace(j,t=>" "===t?"\\x20 ":"."===t?"\\.":"/"===t?"\\/":":"===t?"\\:":"["===t?"\\[":"]"===t?"\\]":"("===t?"\\(":")"===t?"\\)":"%"===t?"\\%":"#"===t?"\\#":","===t?"\\,":"="===t?"\\=":"&"===t?"\\&":"~"===t?"\\~":"*"===t?"\\*":"$"===t?"\\$":"^"===t?"\\^":"+"===t?"\\+":"?"===t?"\\?":"!"===t?"\\!":"@"===t?"\\@":"'"===t?"\\'":'"'===t?'\\"':"`"===t?"\\`":";"===t?"\\;":"<"===t?"\\<":">"===t?"\\>":"{"===t?"\\{":"}"===t?"\\}":"|"===t?"\\|":"\\"===t?"\\\\":"\\"+t)}function E(t,r,o,n){w({name:t,match:e=>e===t,handler:t=>r.flatMap(r=>{if(r.type)return[r];if("function"==typeof r)return[r(t)];const[o,n]=r;return"string"==typeof n?[e(o,n)]:Array.isArray(n)?[a(o,n.map(([t,r])=>e(t,r)))]:[]}),description:o?.description,category:o?.category,priority:o?.priority},n)}function T(t,e,r){if("DEFAULT"===r||!/^[a-zA-Z][\w-]*$/.test(r)||"function"!=typeof t?.theme)return;const o=t.theme(e);return o&&"object"==typeof o&&Object.prototype.hasOwnProperty.call(o,r)?o[r]??void 0:void 0}function N(t,e,r){const o=T(t,e,r);return"string"==typeof o?o:null}function V(t,e,r,o){return void 0===T(t,e,r)?null:`var(--${o}-${r})`}function W(t,r){w({name:t.name,match:e=>e.startsWith(t.name+"-"),handler:(r,o,a,n)=>{let s=r;const i=a,l={opacity:a.opacity};if(t.supportsOpacity&&!a.arbitrary&&!a.customProperty&&r.includes("/")){const t=r.split("/");t.length>=2&&(l.opacity=t.pop(),s=t.join("/"))}if(t.supportsArbitrary&&i.arbitrary){const r=F(M(s.replace(/_/g," ")));if(t.handle){const e=t.handle(r,o,a,l);if(e)return e}return t.prop?[e(t.prop,r)]:[]}if(t.supportsCustomProperty&&i.customProperty){if(t.handleCustomProperty)return t.handleCustomProperty(s,o,a,l);const r=`var(${s})`;if(t.handle){const e=t.handle(r,o,a,l);if(e)return e}return t.prop?[e(t.prop,r)]:[]}let c;t.themeKey&&o.theme&&(c=K(o.theme(t.themeKey,s)));let p=void 0!==c?t.themeKey:void 0;if(!c&&t.themeKeys&&o.theme)for(const e of t.themeKeys)if(c=K(o.theme(e,s)),void 0!==c){p=e;break}if(void 0!==c){if(l.themeNamespace=p,l.themeKey=s,"colors"!==p&&(t.themeKeys??[t.themeKey]).includes("colors")||(l.realThemeValue=s),s=c,t.prop)return[e(t.prop,s)];if(t.handle){const e=t.handle(s,o,a,l);if(e)return e}return[]}t.supportsFraction&&/^-?\d+\/\d+$/.test(r)&&(s=r);const u=t.spacingKeys?function(t,e,r){if("px"===e||!/^[a-zA-Z][\w-]*$/.test(e)||null==t.theme("spacing",e))return null;const o=`var(--spacing-${e})`;return r?`calc(${o} * -1)`:o}(o,String(s).replace(/^-/,""),!!i.negative):null;if(i.negative&&t.supportsNegative&&t.handleNegativeBareValue){const e=t.handleNegativeBareValue({value:String(s).replace(/^-/,""),ctx:o,token:a,extra:l})??u;if(null==e)return[];s=e}else if(t.handleBareValue){const e=t.handleBareValue({value:s,ctx:o,token:a,extra:l})??u;if(null==e)return[];s=e}else if(u)s=u;else if(!/^-?(\d|\.\d)/.test(String(s)))return[];if(t.handle){const e=t.handle(s,o,a,l);if(e)return e}return t.prop?[e(t.prop,s)]:[]},description:t.description,category:t.category,priority:t.priority},r)}var B=new Set(["calc","min","max","clamp"]);function M(t){return t.replace(/--spacing\(\s*([^()]+?)\s*\)/g,"calc(var(--spacing) * $1)")}var O={name:"[arbitrary-property]",match:()=>!1,handler:(t,r,o)=>{const a=o.property;return a&&t?[e(a,F(M(t.replace(/_/g," "))))]:[]}};function F(t){if(!/(calc|min|max|clamp)\(/.test(t))return t;const e=[];let r="";for(let o=0;o<t.length;o++){const a=t[o];if("("===a){const t=(/([a-z-]*)$/i.exec(r)?.[1]??"").toLowerCase(),o=e.length>0&&e[e.length-1];e.push(B.has(t)||""===t&&o),r+=a;continue}if(")"!==a)if(e.length>0&&e[e.length-1])if(","!==a){if("+-*/".includes(a)){const e=r.trimEnd(),n=e[e.length-1]??"",s=/[\w%)]/.test(n),i=("+"===a||"-"===a)&&/\de$/i.test(e)&&e.length===r.length&&/\d/.test(t[o+1]??"");if(s&&!i){for(r=e+" "+a+" ";" "===t[o+1];)o++;continue}}r+=a}else for(r=r.trimEnd()+", ";" "===t[o+1];)o++;else r+=a;else e.pop(),r+=a}return r}function K(t){return"string"==typeof t?t:"number"==typeof t&&Number.isFinite(t)?String(t):void 0}function D(t,e){const r=e&&v(e)?.utilityCache||g;if(r.has(t))return r.get(t);const o=$(e),a=A(e),n=o.filter(e=>{const r=e.name;return t.startsWith(r+"-")||t===r||t.startsWith(r)}).some(e=>e.match(t)),s=a.filter(e=>{const r=e.name||e.match.toString().split("(")[0];return t.startsWith(r+":")||t===r}).some(e=>e.match(t,{})),i=n&&!s;return r.set(t,i),i}function L(t,e){const r=e&&v(e)?.parseResultCache||y;if(r.has(t))return r.get(t);let o=t;const a=e?function(t){const e=t.config("prefix");return"string"==typeof e&&/^[a-z]+$/.test(e)?e:""}(e):"";if(a){if(!t.startsWith(a+":")){const e={modifiers:[],utility:null};return r.set(t,e),e}o=t.slice(a.length+1)}let n=!1;o.startsWith("!")?(n=!0,o=o.slice(1)):o.length>1&&o.endsWith("!")&&(n=!0,o=o.slice(0,-1));const s=function(t,e){const r=[];let o=null;if(0===t.length)return{modifiers:r,utility:null};if(t.length>1){const o=D(t[0].value,e)?0:t.length-1;if(t.some((t,e)=>!(e===o||function(t){if(Z(t))return!1;const e=I.exec(t);return e?H(e[1],!0):H(t)}(t.value)&&function(t){let e="",r=0;for(let o=0;o<t.length;o++){const a=t[o];if("\\"!==a)if(e)a===e&&(e="");else if('"'!==a&&"'"!==a){if("["===a){if("]"===t[o+1])return!1;r++}else if("]"===a&&(r--,0===r&&t.startsWith("[")&&o!==t.length-1))return!1}else e=a;else o++}return!0}(t.value))))return{modifiers:r,utility:null}}if(!U((t.length>1&&!D(t[0].value,e)?t[t.length-1]:t[0]).value))return{modifiers:r,utility:null};if(1===t.length)o=X(t[0].value,e);else if(2===t.length){const a=t[0],n=t[1];if(D(a.value,e)){o=X(a.value,e);const t=Y(n.value);t&&r.push(t)}else{const t=Y(a.value);t&&r.push(t),o=X(n.value,e)}}else if(D(t[0].value,e)){o=X(t[0].value,e);for(let e=1;e<t.length;e++){const o=Y(t[e].value);o&&r.push(o)}}else{for(let e=0;e<t.length-1;e++){const o=Y(t[e].value);o&&r.push(o)}o=X(t[t.length-1].value,e)}return{modifiers:r,utility:o}}(function(t){const e=[];let r="",o=0,a=0,n=0;for(let s=0;s<t.length;s++){const i=t[s];"["===i&&a++,"]"===i&&a--,"("===i&&n++,")"===i&&n--,":"===i&&0===a&&0===n?(r&&e.push({value:r,start:o,end:s}),r="",o=s+1):r+=i}return r&&e.push({value:r,start:o,end:t.length}),e}(o),e);return s.utility&&(s.utility.important=n),r.set(t,s),s}var I=/^-?(?:(?:group|peer)-)?(?:has|not)-\[(.*)\](?:\/[\w-]+)?$/;function Z(t){return t.includes("/*")||t.includes("*/")}function _(t){for(let e=0;e<t.length-1;e++){const r=t[e];if("\\"===r){e++;continue}const o=t[e+1];if("/"===r&&"*"===o||"*"===r&&"/"===o)return!0}return!1}function q(t){return t.includes("</")}function U(t){return!Z(t)&&H(t,!0)}function H(t,e=!1){const r=[];let o="",a=0;for(let n=0;n<t.length;n++){const s=t[n];if("\\"!==s)if(o)s===o&&(o="");else switch(s){case'"':case"'":o=s;break;case"(":r.push(")"),a++;break;case"[":r.push("]");break;case")":case"]":if(r.pop()!==s)return!1;")"===s&&a--;break;case"{":case"}":case";":return!1;case",":if(0===a&&!e)return!1}else n++}return 0===r.length&&!o}function Y(t){let e=!1,r=t;return r.startsWith("-")&&(e=!0,r=r.slice(1)),r.startsWith("[")&&r.endsWith("]")?{type:r,negative:e,arbitrary:!0}:{type:r,negative:e}}function G(t,e){return e.name.length-t.name.length}function X(t,e){let r="",o="",a=!1,n=!1,s=!1,i="",l="",c=0;const p=/^\[(--[a-zA-Z_][a-zA-Z0-9_-]*|-?[a-z][a-z-]*):(.+)\]$/.exec(t);if(p)return!U(p[2])||function(t){let e="";for(let r=0;r<t.length;r++){const o=t[r];if("\\"!==o){if(e)o===e&&(e="");else if('"'===o||"'"===o)e=o;else if("@"===o)return!0}else r++}return!1}(p[2])?{prefix:"",value:""}:{prefix:"",value:p[2],arbitrary:!0,property:p[1]};if(t.startsWith("-")&&(s=!0),t.includes("-[")){[r,o]=t.split("-[");const e=o.lastIndexOf("]");-1!==e&&e<o.length-1&&"/"===o[e+1]?(i=o.slice(e+2),o=o.slice(0,e)):o=o.replace(/]$/,""),a=!0}else if(t.includes("-("))[r,o]=t.split("-("),o=o.replace(/\)$/,""),n=!0;else{const a=[...$(e)].sort(G);let n=a.find(e=>t===e.name);if(n)r=n.name,o="",s=t.startsWith("-"),l=n.category,c=n.priority;else if(t.startsWith("-")&&(s=!0,t=t.slice(1)),n=a.find(e=>t.startsWith(e.name+"-")),n)r=n.name,o=t.slice(n.name.length+1),l=n.category,c=n.priority;else{const e=t.split("-");r=e[0],o=e.slice(1).join("-")}}return{prefix:r,value:o,arbitrary:!!a,customProperty:!!n,negative:!!s,opacity:i,category:l,priority:c}}var J=t=>{const e=String(t??"");return!_(e)&&!q(e)&&function(t){const e=[];let r="";for(let o=0;o<t.length;o++){const a=t[o];if("\\"!==a)if(r)a===r&&(r="");else switch(a){case'"':case"'":r=a;break;case"(":e.push(")");break;case"[":e.push("]");break;case"{":e.push("}");break;case")":case"]":case"}":if(e.pop()!==a)return!1}else o++}return 0===e.length&&!r}(e)&&!/url\s*\(/i.test(e)},Q=t=>{if("at-rule"!==t.type)return[];if("property"!==t.name)return t.nodes;const e=new Set;return t.nodes.filter(t=>"decl"!==t.type||!e.has(t.prop)&&!!e.add(t.prop))},tt=(t,e)=>U(String(t))&&U(String(e??""))&&!q(String(t))&&!q(String(e??""));function et(t,e,r,o=""){const a=r?.minify,n=o,s=o+" ",i=r?.important?" !important":"";if(!t||0===t.length)return l("[astToCss] Empty AST received:",{ast:t,baseSelector:e,minify:a}),"";const c=[];if(Array.isArray(t)){const e=new Map;for(let r=t.length-1;r>=0;r--){const o=t[r];if("decl"===o.type){const t=o.prop;if(e.has(t))continue;e.set(t,!0)}c.unshift(o)}}const p=c.map(t=>{switch(t.type){case"decl":{const e=t.value;return tt(t.prop,e)?t.prop.startsWith("--")?a?`${t.prop}: ${e}${i};`:`${n}${t.prop}: ${e}${i};`:`${a?"":n}${t.prop}: ${e}${i};`:""}case"rule":{let o=t.selector;if(e){const t="."+function(t){if("-"===t)return"\\-";const e=/^-?[0-9]/.exec(t);if(e){const r=e[0].length-1;return t.slice(0,r)+"\\"+t.charCodeAt(r).toString(16)+" "+R(t.slice(r+1))}return R(t)}(e);o&&o.includes("&")?o=o.replace(/&/g,t):o.startsWith(t)||(o=o.split(",").map(e=>(e=e.trim()).startsWith(":")||e.startsWith("::")?t+e:t+(e.startsWith(".")?"":" ")+e).join(", "))}return J(o)?a?`${n}${o}{${et(t.nodes,e,r,s)}}`:`${n}${o} {\n${et(t.nodes,e,r,s)}${n}}`:""}case"style-rule":return J(t.selector)?a?`${n}${t.selector} {${et(t.nodes,e,r,s)}}`:`${n}${t.selector} {\n${et(t.nodes,e,r,s)}${n}}`:"";case"at-rule":return J(t.name)&&J(t.params)?a?`${n}@${t.name} ${t.params}{${et(t.nodes,e,r,s)}}`:`${n}@${t.name} ${t.params} {\n${et(t.nodes,e,r,s)}${n}}`:"";case"comment":return a?"":`${n}/* ${t.text} */`;case"raw":return`${n}${t.value}`;default:return l("[astToCss] Unknown node type:",t),""}}).filter(Boolean).join(a?"":"\n"),u=p+(a?"":"\n");return u&&""!==u.trim()||l("[astToCss] Empty result generated:",{ast:t,baseSelector:e,minify:a,result:p,finalResult:u,dedupedAst:c}),u}function rt(t,e){const r=!0===e?.minify;return t.map(t=>{const e=[];if("decl"===t.type)tt(t.prop,t.value)&&e.push(r?`${t.prop}:${t.value};`:`${t.prop}: ${t.value};`);else if("at-rule"===t.type&&J(t.name)&&J(t.params))if(r){const r=Q(t).filter(t=>"decl"===t.type&&tt(t.prop,t.value)).map(t=>"decl"===t.type?`${t.prop}:${t.value};`:"").join("");e.push(`@${t.name} ${t.params}{${r}}`)}else e.push(`@${t.name} ${t.params} {\n${Q(t).map(t=>{if("decl"===t.type&&tt(t.prop,t.value))return`\t${t.prop}: ${t.value};`}).join("\n")}\n}`);return e.join(r?"":"\n")}).join(r?"":"\n")}function ot(t){return t.replace(".","\\.")}function at(t){if(!t)return{};const e={};return function t(r,o=[]){for(const a in r){const n=r[a];if("object"==typeof n&&null!==n)t(n,[...o,a]);else{const t="--color-"+[...o,a].join("-");e[t]=n}}}(t),e}function nt(t){if(!t)return{};const e={};for(const r in t)e[`--shadow-${r}`]=t[r];return e}function st(t){if(!Array.isArray(t))return;const e=t[1];if("string"==typeof e||"number"==typeof e)return String(e);const r=e?.lineHeight;return null==r?void 0:String(r)}function it(t){if(!t)return{};const e={};for(const r in t){const o=t[r];if(Array.isArray(o)){e[`--text-${r}`]=o[0];const t=st(o);t&&(e[`--text-${r}--line-height`]=t)}else e[`--text-${r}`]=o}return e}function lt(t){if(!t)return{};const e={};for(const r in t)e[`--font-weight-${r}`]=t[r];return e}function ct(t){if(!t)return{};const e={};for(const r in t){const o=t[r];Array.isArray(o)?e[`--font-${r}`]=o.join(", "):e[`--font-${r}`]=o}return e}function pt(t){if(!t)return{};const e={};for(const r in t)e[`--letter-spacing-${r}`]=t[r];return e}function ut(t){if(!t)return{};const e={};for(const r in t)e[`--spacing-${ot(r)}`]=t[r];return e}function dt(t){if(!t)return{};const e={};for(const r in t)e[`--radius-${ot(r)}`]=t[r];return e}function yt(t){if(!t)return{};const e={};for(const r in t)e[`--z-${ot(r)}`]=String(t[r]);return e}function ht(t){if(!t)return{};const e={};for(const r in t)e[`--opacity-${ot(r)}`]=String(t[r]);return e}function gt(t){if(!t)return{};const e={};for(const r in t)e[`--animate-${ot(r)}`]=t[r];return e}var mt=/\/\*|\*\/|[{};]|<\//;function ft(t,e){if(!t.includes("animation"))return[];const r=e.theme("keyframes");if(!r||"object"!=typeof r)return[];const o=new Set;for(const a of t.matchAll(/(?:^|[\s;{])animation(?:-name)?\s*:\s*([^;}]+)/g)){const t=a[1].replace(/var\(--animate-([\w-]+)\)/g,(t,r)=>{const o=e.theme("animations",r)??e.theme("animation",r);return"string"==typeof o?o:t});for(const e of t.split(/[\s,()]+/))e&&Object.prototype.hasOwnProperty.call(r,e)&&o.add(e)}return[...o].map(t=>function(t,e){if(!t||mt.test(t)||/\s/.test(t)||!e||"object"!=typeof e)return"";let r="";for(const[o,a]of Object.entries(e)){if(mt.test(o)||!a||"object"!=typeof a)return"";let t="";for(const[e,r]of Object.entries(a)){const o=String(r);if(mt.test(e)||mt.test(o))return"";t+=` ${e}: ${o};\n`}r+=` ${o} {\n${t} }\n`}return`@keyframes ${t} {\n${r}}`}(t,r[t])).filter(Boolean)}function bt(t){const e={};for(const r in t)"DEFAULT"===r?e["--default-transition-timing-function"]=t[r]:(e[`--transition-timing-function-${ot(r)}`]=t[r],"linear"!==r&&(e[`--ease-${ot(r)}`]=t[r]));return e}function vt(t){const e={};for(const r in t)"DEFAULT"===r?e["--default-transition-duration"]=t[r]:e[`--transition-duration-${ot(r)}`]=t[r];return e}function xt(t){const e={};for(const r in t)"DEFAULT"===r?e["--default-transition-delay"]=t[r]:e[`--transition-delay-${ot(r)}`]=t[r];return e}function kt(t){const e={};for(const r in t)"DEFAULT"===r?e["--default-blur"]=t[r]:e[`--blur-${ot(r)}`]=t[r];return e}function wt(t){const e={};for(const r in t)e[`--container-${ot(r)}`]=t[r];return e}var $t=/^--(?:[\w-]|\\\.)+$/;function Ct(t,e=""){return":root,:host {\n"+Object.entries(t).filter(([t,e])=>function(t,e){if("string"!=typeof t||!$t.test(t)||q(t))return!1;if("string"!=typeof e&&"number"!=typeof e)return!1;const r=String(e);return""!==r.trim()&&U(r)&&!_(r)&&!q(r)}(t,e)&&!function(t,e){if("string"!=typeof e)return!1;const r=/^var\(\s*(--[\w-]+)\s*(?:,[\s\S]*)?\)$/.exec(e.trim());return!!r&&r[1]===t.trim()}(t,e)).map(([t,e])=>` ${t}: ${e};`).join("\n")+"\n}\n"+e+"\n"}var Pt=/--baro-/g,zt=new Set(["prop","value","params","selector","nodes","items"]);var St=new Set;function At(t=[],e=[]){let r=[];for(const o of t){const t={...o};delete t.nodes;const a=o.nodes;"decl"===o.type?r.push([...e,t]):a&&a.length>0&&(r=r.concat(At(a,[...e,t])))}return r}function jt(t){return"at-root"===t?-1:"at-rule"===t?0:"style-rule"===t?10:"rule"===t?20:30}var Rt={media:0,supports:1,container:2,responsive:10,group:20,peer:30,dark:40,universal:50,data:60,aria:70,attribute:80,pseudo:90,base:100,starting:110};function Et(t){return Rt[t.source||"base"]||100}function Tt(t){if(!t||0===t.length)return[];const e=t.slice(0,-1),r=t[t.length-1],o=[...e].sort((t,e)=>jt(t.type)-jt(e.type));if(0===o.length)"decl"===r.type&&o.push({type:"rule",selector:"&",source:"base"});else{const t=o[o.length-1];("at-rule"==t.type&&"property"!==t.name||"style-rule"==t.type||"rule"===t.type&&!1===t.selector?.includes("&"))&&o.push({type:"rule",selector:"&",source:"base"})}const a=[];for(const c of o)if(0===a.length)a.push(c);else{const t=a[a.length-1];c.type===t.type&&("at-rule"===c.type&&"at-rule"===t.type&&c.name===t.name&&c.params===t.params||("rule"===c.type||"style-rule"===c.type)&&c.selector===t.selector)||a.push(c)}const n=[],s=[];for(const c of a)"rule"===c.type?n.push(c):s.push(c);let i={...r};const l=[...n].sort((t,e)=>Et(t)-Et(e));if(l.length>0){const t=l.reduce((t,e)=>{const r=e.source||"base";return t[r]||(t[r]=[]),t[r].push(e),t},{}),e=Object.entries(t).sort(([t],[e])=>(Rt[t]??999)-(Rt[e]??999)).map(([t,e])=>((t,e)=>"pseudo"===t?e.reduce((t,e)=>{const r=e.selector;return""===t?r:r?.includes("&")?r.replace(/&/,t):r+" "+t},""):e.reduceRight((t,e)=>{const r=e.selector;return""===t?r:r?.includes("&")?r.replace(/&/,t):r+" "+t},""))(t,e));let r="";for(let o=0;o<e.length;o++){const t=e[o];r=""===r?t:t.includes("&")?t.replace(/&/,r):t+" "+r}i={type:"rule",selector:r,nodes:[i]}}for(let c=s.length-1;c>=0;c--)i={...s[c],nodes:[i]};return[i]}function Nt(t,e,r=[]){for(let o=0;o<t.length;o++){const e=t[o];"at-root"===e.type?(r.push(e),delete t[o]):"rule"!==e.type&&"style-rule"!==e.type&&"at-rule"!==e.type||Nt(e.nodes??[],e,r)}e&&(e.nodes=t.filter(Boolean))}function Vt(t,e){const r=v(e),o=r?.failures||St,a=r?.astCache||u;if(o.has(t))return[];if(a.has(t))return a.get(t);const{modifiers:n,utility:s}=L(t,e);if(!s)return l(`[BAROCSS] Invalid class name format: "${t}"`),o.add(t),[];const i=s.property?[O]:$(e).filter(t=>{const e=s.value?`${s.prefix}-${s.value}`:s.prefix;return t.match(e)});if(0===i.length){return l(`[BAROCSS] Unknown utility class: "${s.value?`${s.prefix}-${s.value}`:s.prefix}" in "${t}"`),o.add(t),[]}let c=s.value;s.negative&&c&&(c="-"+c);let p=[];for(const l of i)if(p=l.handler(c,e,s,l)||[],p.length>0)break;const d=[];for(let u=0;u<n.length;u++){const r=n[u],a=A(e).find(t=>t.match(r.type,e));if(!a)return l(`[BAROCSS] Unknown variant: "${r.type}" in "${t}"`),o.add(t),[];if(a.astHandler&&(p=a.astHandler(p,r,e,n,u)),a.wrap){const t=a.wrap(r,e);d.push({type:"wrap",items:t})}if(a.modifySelector){const s=a.modifySelector({selector:"&",fullClassName:t,mod:r,context:e,variantChain:n,index:u});if(null==s)return l(`[BAROCSS] Unknown variant: "${r.type}" in "${t}"`),o.add(t),[];if(a.wrap&&("&"===s||"object"==typeof s&&!Array.isArray(s)&&"&"===s.selector||Array.isArray(s)&&1===s.length&&"&"===s[0].selector))continue;if("string"==typeof s&&s.includes("&"))d.push({type:"rule",selector:s});else if("object"==typeof s&&!Array.isArray(s)&&s.selector){const t=s.wrappingType||"rule";d.push({type:t,selector:s.selector,flatten:s.flatten,source:s.source})}else Array.isArray(s)&&d.push({type:"wrap",items:s.map(t=>({type:t.wrappingType||"rule",selector:t.selector,source:t.source,flatten:t.flatten}))})}}for(let l=d.length-1;l>=0;l--){const t=d[l];"wrap"===t.type?p=t.items.map(t=>"rule"===t.type||"style-rule"===t.type||"at-rule"===t.type||"at-root"===t.type?{...t,nodes:[...t.nodes||[],...p]}:t):"style-rule"===t.type?p=[{type:"style-rule",selector:t.selector,source:t.source,nodes:Array.isArray(p)?p:[p]}]:"at-rule"===t.type?p=[{type:"at-rule",name:t.name||"media",params:t.params,source:t.source,nodes:Array.isArray(p)?p:[p]}]:"rule"===t.type&&(p=[{type:"rule",selector:t.selector,source:t.source,nodes:Array.isArray(p)?p:[p]}])}const y=[];return Nt(p,void 0,y),p=function(t,e){const r=e?.config("cssVarPrefix");if("string"!=typeof r||!r.trim())return t;const o=function(t){let e=t.trim();return e.startsWith("--")||(e=`--${e}`),e.endsWith("-")||(e=`${e}-`),e}(r);if("--baro-"===o)return t;const a=t=>{if("string"==typeof t)return t.includes("--baro-")?t.replace(Pt,o):t;if(Array.isArray(t))return t.map(a);if(!t||"object"!=typeof t)return t;const e={};for(const[r,o]of Object.entries(t))e[r]=zt.has(r)?a(o):o;return e};return a(t)}([...y,...p].filter(Boolean),e),a.set(t,p),p}var Wt=/[ \t\n\f\r]+/;function Bt(t,e,r){const o=new Set;return t.split(Wt).filter(t=>{if(!t)return!1;if(r?.dedup){if(o.has(t))return!1;o.add(t)}return!0}).map(t=>{const o=Vt(t,e),a=(v(e)?.parseResultCache||y).get(t),n={minify:r?.minify,important:a?.utility?.important??!1},s=function(t){return function(t){const e=t.map(t=>{const e=[];let r=t[0];for(;r&&(e.push({...r,nodes:void 0}),r.nodes&&1===r?.nodes?.length);)r=r.nodes?.[0];return e});function r(t,e=0){if(0===t.length)return[];if(t[0].length===e+1)return t.map(t=>t[e]);const o=new Map;for(const r of t){const t=r[e];let a=t.type;"at-rule"===t.type?a+=":"+t.name+":"+t.params:"rule"===t.type||"style-rule"===t.type?a+=":"+t.selector:a+=":"+JSON.stringify(t),o.has(a)||o.set(a,[]),o.get(a).push(r)}const a=[];for(const[,n]of o.entries()){const t=n[0][e],o=r(n,e+1);a.push(o.length?{...t,nodes:o}:{...t})}return a}return r(e)}(At(t).map(Tt))}(o),i=s.filter(t=>"at-root"===t.type&&!t.source).map(t=>t.nodes||[]).flat(),l=s.filter(t=>"at-root"!==t.type||"at-root"===t.type&&t.source),c=[];for(const e of l)if("at-root"===e.type)e.nodes.forEach(t=>{const e=et([t],"",n);c.push(e)});else{const r=et([e],t,n);c.push(r)}const p=[];for(const e of i){const t=rt([e]);p.push(t)}return p.push(...ft(c.join("\n"),e)),{cls:t,ast:l,css:c.join(n.minify?"":"\n"),cssList:c,rootCss:p.join(n.minify?"":"\n"),rootCssList:p}})}var Mt=class{constructor(t){this.processedClasses=new Set,this.batchSize=50,this.debounceMs=16,this.pendingClasses=new Set,this.batchTimer=null,this.ctx=t}processClass(t){if(this.processedClasses.has(t))return null;try{if(!L(t,this.ctx).utility)return null;const e=Vt(t,this.ctx);if(0===e.length)return l("[IncrementalParser] ast is empty",t),null;const r=Bt(t,this.ctx,{dedup:!1});if(0===r.length)return null;const o=r[0];return o.css?(this.processedClasses.add(t),{cls:t,ast:e,css:o.css,cssList:o.cssList,rootCss:o.rootCss,rootCssList:o.rootCssList}):null}catch(e){return l("[IncrementalParser] Failed to process class:",t,e),null}}processClasses(t){const e=[],r=t.filter(t=>!this.processedClasses.has(t));if(0===r.length)return e;for(let o=0;o<r.length;o+=this.batchSize){const t=r.slice(o,o+this.batchSize);for(const r of t){const t=this.processClass(r);t&&e.push(t)}}return e}addToPending(t){t.forEach(t=>this.pendingClasses.add(t)),this.scheduleBatchProcessing()}scheduleBatchProcessing(){this.batchTimer&&clearTimeout(this.batchTimer),"undefined"!=typeof window?this.batchTimer=window.setTimeout(()=>{this.processPendingClasses()},this.debounceMs):this.processPendingClasses()}processPendingClasses(){if(0===this.pendingClasses.size)return;const t=Array.from(this.pendingClasses);this.pendingClasses.clear(),this.applyClasses(t)}applyClasses(t){this.processClasses(t),t.forEach(t=>{this.markProcessed(t)})}getStats(){return{processedClasses:this.processedClasses.size,pendingClasses:this.pendingClasses.size,cacheStats:{ast:(v(this.ctx)?.astCache||u).getStats(),css:{}}}}clearProcessed(){this.processedClasses.clear(),this.pendingClasses.clear(),this.batchTimer&&"undefined"!=typeof window&&(clearTimeout(this.batchTimer),this.batchTimer=null)}isProcessed(t){return this.processedClasses.has(t)}markProcessed(t){this.processedClasses.add(t)}unmarkProcessed(t){this.processedClasses.delete(t)}processClassesSync(t){this.applyClasses(t)}getProcessedClasses(){return Array.from(this.processedClasses)}},Ot={spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},Ft={colors:{inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 none)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 none)",100:"oklch(97% 0 none)",200:"oklch(92.2% 0 none)",300:"oklch(87% 0 none)",400:"oklch(70.8% 0 none)",500:"oklch(55.6% 0 none)",600:"oklch(43.9% 0 none)",700:"oklch(37.1% 0 none)",800:"oklch(26.9% 0 none)",900:"oklch(20.5% 0 none)",950:"oklch(14.5% 0 none)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"},mauve:{50:"oklch(98.5% 0 none)",100:"oklch(96% 0.003 325.6)",200:"oklch(92.2% 0.005 325.62)",300:"oklch(86.5% 0.012 325.68)",400:"oklch(71.1% 0.019 323.02)",500:"oklch(54.2% 0.034 322.5)",600:"oklch(43.5% 0.029 321.78)",700:"oklch(36.4% 0.029 323.89)",800:"oklch(26.3% 0.024 320.12)",900:"oklch(21.2% 0.019 322.12)",950:"oklch(14.5% 0.008 326)"},olive:{50:"oklch(98.8% 0.003 106.5)",100:"oklch(96.6% 0.005 106.5)",200:"oklch(93% 0.007 106.5)",300:"oklch(88% 0.011 106.6)",400:"oklch(73.7% 0.021 106.9)",500:"oklch(58% 0.031 107.3)",600:"oklch(46.6% 0.025 107.3)",700:"oklch(39.4% 0.023 107.4)",800:"oklch(28.6% 0.016 107.4)",900:"oklch(22.8% 0.013 107.4)",950:"oklch(15.3% 0.006 107.1)"},mist:{50:"oklch(98.7% 0.002 197.1)",100:"oklch(96.3% 0.002 197.1)",200:"oklch(92.5% 0.005 214.3)",300:"oklch(87.2% 0.007 219.6)",400:"oklch(72.3% 0.014 214.4)",500:"oklch(56% 0.021 213.5)",600:"oklch(45% 0.017 213.2)",700:"oklch(37.8% 0.015 216)",800:"oklch(27.5% 0.011 216.9)",900:"oklch(21.8% 0.008 223.9)",950:"oklch(14.8% 0.004 228.8)"},taupe:{50:"oklch(98.6% 0.002 67.8)",100:"oklch(96% 0.002 17.2)",200:"oklch(92.2% 0.005 34.3)",300:"oklch(86.8% 0.007 39.5)",400:"oklch(71.4% 0.014 41.2)",500:"oklch(54.7% 0.021 43.1)",600:"oklch(43.8% 0.017 39.3)",700:"oklch(36.7% 0.016 35.7)",800:"oklch(26.8% 0.011 36.5)",900:"oklch(21.4% 0.009 43.1)",950:"oklch(14.7% 0.004 49.3)"}},spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem",112:"28rem",128:"32rem"},borderRadius:{none:"0px",xs:"0.125rem",sm:"0.25rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","4xl":"2rem",full:"9999px"},breakpoints:{sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},container:{"3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},fontSize:{xs:["0.75rem","calc(1 / 0.75)"],sm:["0.875rem","calc(1.25 / 0.875)"],base:["1rem","calc(1.5 / 1)"],lg:["1.125rem","calc(1.75 / 1.125)"],xl:["1.25rem","calc(1.75 / 1.25)"],"2xl":["1.5rem","calc(2 / 1.5)"],"3xl":["1.875rem","calc(2.25 / 1.875)"],"4xl":["2.25rem","calc(2.5 / 2.25)"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontFamily:{sans:["-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Noto Sans","Arial","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],serif:["ui-serif","Georgia","Cambria","Times New Roman","Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem"},boxShadow:{"2xs":"0 1px rgb(0 0 0 / 0.05)",xs:"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px 0 rgb(0 0 0 / 0.06)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"},opacity:{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{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)"},transitionDuration:{DEFAULT:"150ms",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDelay:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animations:Ot,keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:"0.5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(0.8, 0, 1, 1)"},"50%":{transform:"none","animation-timing-function":"cubic-bezier(0, 0, 0.2, 1)"}}},animationVars:{"--animate-spin":Ot.spin,"--animate-ping":Ot.ping,"--animate-pulse":Ot.pulse,"--animate-bounce":Ot.bounce},blur:{DEFAULT:"8px",xs:"4px",sm:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},textShadow:{"2xs":"0px 1px 0px rgb(0 0 0 / 0.15)",xs:"0px 1px 1px rgb(0 0 0 / 0.2)",sm:"0px 1px 0px rgb(0 0 0 / 0.075), 0px 1px 1px rgb(0 0 0 / 0.075), 0px 2px 2px rgb(0 0 0 / 0.075)",md:"0px 1px 1px rgb(0 0 0 / 0.1), 0px 1px 2px rgb(0 0 0 / 0.1), 0px 2px 4px rgb(0 0 0 / 0.1)",lg:"0px 1px 2px rgb(0 0 0 / 0.1), 0px 3px 2px rgb(0 0 0 / 0.1), 0px 4px 8px rgb(0 0 0 / 0.1)"},dropShadow:{xs:"0 1px 1px rgb(0 0 0 / 0.05)",sm:"0 1px 2px rgb(0 0 0 / 0.15)",md:"0 3px 3px rgb(0 0 0 / 0.12)",lg:"0 4px 4px rgb(0 0 0 / 0.15)",xl:"0 9px 7px rgb(0 0 0 / 0.1)","2xl":"0 25px 25px rgb(0 0 0 / 0.15)"},aspect:{video:"16 / 9"}},Kt=/^[A-Za-z_][A-Za-z0-9_-]*$/,Dt=/^(--[A-Za-z0-9_-]+|-?[A-Za-z][A-Za-z0-9-]*)$/;function Lt(t,e){if("string"!=typeof t||!Kt.test(t))return null;if(!e||"object"!=typeof e||Array.isArray(e))return null;const r=[];for(const[o,a]of Object.entries(e)){if("string"!=typeof a&&"number"!=typeof a)return null;const t=String(a).trim();if(!Dt.test(o)||!t||!U(t)||_(t))return null;r.push([o,t])}return r.length?r:null}var It="\n/* BaroCSS Preflight - Full (Tailwind 4.3.3) */\n*,\n::after,\n::before,\n::backdrop,\n::file-selector-button {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n border: 0 solid;\n}\n\nhtml,\n:host {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n tab-size: 4;\n font-family: var(--default-font-family, var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'));\n font-feature-settings: var(--default-font-feature-settings, normal);\n font-variation-settings: var(--default-font-variation-settings, normal);\n -webkit-tap-highlight-color: transparent;\n}\n\nhr {\n height: 0;\n color: inherit;\n border-top-width: 1px;\n}\n\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\na {\n color: inherit;\n -webkit-text-decoration: inherit;\n text-decoration: inherit;\n}\n\nb,\nstrong {\n font-weight: bolder;\n}\n\ncode,\nkbd,\nsamp,\npre {\n font-family: var(--default-mono-font-family, var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace));\n font-feature-settings: var(--default-mono-font-feature-settings, normal);\n font-variation-settings: var(--default-mono-font-variation-settings, normal);\n font-size: 1em;\n}\n\nsmall {\n font-size: 80%;\n}\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\ntable {\n text-indent: 0;\n border-color: inherit;\n border-collapse: collapse;\n}\n\n:-moz-focusring:where(:not(iframe)) {\n outline: auto;\n}\n\nprogress {\n vertical-align: baseline;\n}\n\nsummary {\n display: list-item;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n}\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block;\n vertical-align: middle;\n}\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* form-control reset */\nbutton,\ninput,\nselect,\noptgroup,\ntextarea,\n::file-selector-button {\n font: inherit;\n font-feature-settings: inherit;\n font-variation-settings: inherit;\n letter-spacing: inherit;\n color: inherit;\n border-radius: 0;\n background-color: transparent;\n opacity: 1;\n}\n\n:where(select:is([multiple], [size])) optgroup {\n font-weight: bolder;\n}\n\n:where(select:is([multiple], [size])) optgroup option {\n padding-inline-start: 20px;\n}\n\n::file-selector-button {\n margin-inline-end: 4px;\n}\n\n::placeholder {\n opacity: 1;\n}\n\n@supports (not (-webkit-appearance: -apple-pay-button)) or\n (contain-intrinsic-size: 1px) {\n ::placeholder {\n color: color-mix(in oklab, currentcolor 50%, transparent);\n }\n}\n\ntextarea {\n resize: vertical;\n}\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n::-webkit-date-and-time-value {\n min-height: 1lh;\n text-align: inherit;\n}\n\n::-webkit-datetime-edit {\n display: inline-flex;\n}\n\n::-webkit-datetime-edit-fields-wrapper {\n padding: 0;\n}\n\n::-webkit-datetime-edit,\n::-webkit-datetime-edit-year-field,\n::-webkit-datetime-edit-month-field,\n::-webkit-datetime-edit-day-field,\n::-webkit-datetime-edit-hour-field,\n::-webkit-datetime-edit-minute-field,\n::-webkit-datetime-edit-second-field,\n::-webkit-datetime-edit-millisecond-field,\n::-webkit-datetime-edit-meridiem-field {\n padding-block: 0;\n}\n\n::-webkit-calendar-picker-indicator {\n line-height: 1;\n}\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\nbutton,\ninput:where([type='button'], [type='reset'], [type='submit']),\n::file-selector-button {\n appearance: button;\n}\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n[hidden]:where(:not([hidden='until-found'])) {\n display: none !important;\n}\n";function Zt(t,e){const r={},o=new Set([...Object.keys(t||{}),...Object.keys(e||{})]);for(const a of o){const o=String(a),n=t&&"object"==typeof t?t[o]:void 0,s=e&&"object"==typeof e?e[o]:void 0;s&&"object"==typeof s&&!Array.isArray(s)?r[o]=Zt("object"==typeof n&&null!==n?n:{},s):r[o]=void 0!==s?s:n}return r}var _t=new WeakMap;function qt(t,...e){const r=(...e)=>qt(t,...e);let o=[];if(1===e.length&&"string"==typeof e[0]&&e[0].includes("."))o=e[0].split(".");else if("colors"===e[0]&&"string"==typeof e[1]&&e[1].includes("-")){const t=e[1];t.match(/^[a-zA-Z]+-\d+$/)?(o=t.split("-"),o=[e[0],...o]):o=e}else o=e;if(0===o.length)return;let a=_t.get(t);a||(a=new Set,_t.set(t,a));const n=o.join(".");if(!a.has(n)){a.add(n);try{let e=t[o[0]];"function"==typeof e&&(e=e(r));for(let t=1;t<o.length;t++){if(null==e)return;e=e[o[t]]}if("function"==typeof e)return;return e}finally{a.delete(n)}}}function Ut(t){const e=function(t){return{...at(t.colors),...nt(t.boxShadow),...it(t.fontSize),...lt(t.fontWeight),...ct(t.fontFamily),...pt(t.letterSpacing),"--spacing":t.spacing[1],...ut(t.spacing),...wt(t.container),...dt(t.borderRadius),...Object.fromEntries(Object.entries(t.borderWidth??{}).filter(([t])=>"DEFAULT"!==t).map(([t,e])=>[`--border-width-${ot(t)}`,String(e)])),...yt(t.zIndex),...ht(t.opacity),...gt({...t.animations,...t.animation}),...bt(t.transitionTimingFunction),...vt(t.transitionDuration),...xt(t.transitionDelay),...kt(t.blur),...Object.fromEntries(Object.entries(t.textShadow??{}).map(([t,e])=>[`--text-shadow-${ot(t)}`,e])),...Object.fromEntries(Object.entries(t.dropShadow??{}).map(([t,e])=>[`--drop-shadow-${ot(t)}`,e])),...Object.fromEntries(Object.entries(t.aspect??{}).map(([t,e])=>[`--aspect-${ot(t)}`,e]))}}(t);return Ct(e)}function Ht(t){var r;void 0!==t.debug&&(r=!!t.debug,s=r);const o={presets:[{theme:Ft},...t.presets||[]],...t},a=function(t){let e={};if(t.presets)for(const r of t.presets)r.theme&&(e=Zt(e,r.theme));if(t.theme){const{extend:r,...o}=t.theme;e=Zt(e,o),r&&(e=Zt(e,r))}return e}(o),n={hasPreset:(t,e)=>function(t,e,r){return t[e]?.includes?.(r)}(a,t,e),theme:(...t)=>qt(a,...t),config:(...t)=>function(t,...e){let r=[];return r=1===e.length&&"string"==typeof e[0]&&e[0].includes(".")?e[0].split("."):e,r.reduce((t,e)=>t?t[e]:void 0,t)}(o,...t),themeToCssVars:()=>Ut(a),extendTheme:(t,e)=>{if("function"==typeof e){const r=e(n.theme);if(r&&"object"==typeof r){const e=a[t]||{};a[t]={...e,...r}}}else if("object"==typeof e&&null!==e&&!Array.isArray(e)){const r=a[t]||{};a[t]={...r,...e}}x(n)},getPreflightCSS:(t=!0)=>function(t=!0){return"minimal"===t?"\n/* BaroCSS Preflight - Minimal Reset */\n/* ================================= */\n\n/* Box sizing rules */\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n/* Remove default margin and padding */\n* {\n margin: 0;\n padding: 0;\n}\n\n/* Set core body defaults */\nbody {\n min-height: 100vh;\n scroll-behavior: smooth;\n text-rendering: optimizeSpeed;\n line-height: 1.5;\n}\n\n/* Remove list styles on ul, ol elements */\nul,\nol {\n list-style: none;\n}\n\n/* Make images easier to work with */\nimg,\npicture {\n max-width: 100%;\n display: block;\n}\n\n/* Inherit fonts for inputs and buttons */\ninput,\nbutton,\ntextarea,\nselect {\n font: inherit;\n}\n\n/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */\n@media (prefers-reduced-motion: reduce) {\n html {\n scroll-behavior: auto;\n }\n \n *,\n *::before,\n *::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n scroll-behavior: auto !important;\n }\n}\n":"standard"===t?'\n/* BaroCSS Preflight - Standard Reset */\n/* ================================== */\n\n/* Box sizing rules */\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n/* Remove default margin and padding */\n* {\n margin: 0;\n padding: 0;\n}\n\n/* Set core body defaults */\nbody {\n min-height: 100vh;\n scroll-behavior: smooth;\n text-rendering: optimizeSpeed;\n line-height: 1.5;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n/* Remove list styles on ul, ol elements */\nul,\nol {\n list-style: none;\n}\n\n/* Make images easier to work with */\nimg,\npicture {\n max-width: 100%;\n display: block;\n}\n\n/* Inherit fonts for inputs and buttons */\ninput,\nbutton,\ntextarea,\nselect {\n font: inherit;\n}\n\n/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */\n@media (prefers-reduced-motion: reduce) {\n html {\n scroll-behavior: auto;\n }\n \n *,\n *::before,\n *::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n scroll-behavior: auto !important;\n }\n}\n\n/* Additional standard resets */\nhtml {\n line-height: 1.15;\n -webkit-text-size-adjust: 100%;\n /* Tailwind 4.1.13 root font (app --default-font-family / --font-sans win) */\n font-family: var(--default-font-family, var(--font-sans, -apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, \'Helvetica Neue\', \'Noto Sans\', Arial, sans-serif, \'Apple Color Emoji\', \'Segoe UI Emoji\', \'Segoe UI Symbol\', \'Noto Color Emoji\'));\n font-feature-settings: var(--default-font-feature-settings, normal);\n font-variation-settings: var(--default-font-variation-settings, normal);\n}\n\n/* Remove the gray background on active links in IE 10 */\na {\n background-color: transparent;\n}\n\n/* Add the correct font weight in Chrome, Edge, and Safari */\nb,\nstrong {\n font-weight: bolder;\n}\n\n/* Prevent sub and sup elements from affecting the line height */\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Improve media defaults */\nsvg {\n vertical-align: middle;\n}\n\n/* Remove border on iframe */\niframe {\n border: 0;\n}\n\n/* Table defaults */\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\n/* Form element defaults */\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n}\n\nbutton,\nselect {\n text-transform: none;\n}\n\nbutton,\n[type="button"],\n[type="reset"],\n[type="submit"] {\n -webkit-appearance: button;\n}\n\nbutton::-moz-focus-inner,\n[type="button"]::-moz-focus-inner,\n[type="reset"]::-moz-focus-inner,\n[type="submit"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\nbutton:-moz-focusring,\n[type="button"]:-moz-focusring,\n[type="reset"]:-moz-focusring,\n[type="submit"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/* Remove the inner border and padding in Firefox */\nbutton::-moz-focus-inner,\n[type="button"]::-moz-focus-inner,\n[type="reset"]::-moz-focus-inner,\n[type="submit"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/* Restore the focus styles unset by the previous rule */\nbutton:-moz-focusring,\n[type="button"]:-moz-focusring,\n[type="reset"]:-moz-focusring,\n[type="submit"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/* Correct the padding in Firefox */\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/* Remove padding so developers aren\'t caught out when they zero out fieldset elements */\nlegend {\n box-sizing: border-box;\n color: inherit;\n display: table;\n max-width: 100%;\n padding: 0;\n white-space: normal;\n}\n\n/* Add the correct vertical alignment in Chrome, Firefox, and Opera */\nprogress {\n vertical-align: baseline;\n}\n\n/* Remove the default vertical scrollbar in IE */\ntextarea {\n overflow: auto;\n}\n\n/* Correct the cursor style of increment and decrement buttons in Chrome */\n[type="number"]::-webkit-inner-spin-button,\n[type="number"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/* Remove the inner padding in Chrome and Safari on macOS */\n[type="search"] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n\n/* Remove the inner padding in Chrome and Safari on macOS */\n[type="search"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/* Remove the default vertical scrollbar in IE */\ntextarea {\n overflow: auto;\n}\n\n/* Correct the cursor style of increment and decrement buttons in Chrome */\n[type="number"]::-webkit-inner-spin-button,\n[type="number"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/* Remove the inner padding in Chrome and Safari on macOS */\n[type="search"] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n\n/* Remove the inner padding in Chrome and Safari on macOS */\n[type="search"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/* Tailwind 4.1.13 monospace stack for code-like elements */\ncode,\nkbd,\nsamp,\npre {\n font-family: var(--default-mono-font-family, var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \'Liberation Mono\', \'Courier New\', monospace));\n font-feature-settings: var(--default-mono-font-feature-settings, normal);\n font-variation-settings: var(--default-mono-font-variation-settings, normal);\n font-size: 1em;\n}\n\n/* Tailwind 4.1.13 form-control reset: inherit typography and colour, drop native radius/background (#228) */\nbutton,\ninput,\nselect,\noptgroup,\ntextarea,\n::file-selector-button {\n font: inherit;\n font-feature-settings: inherit;\n font-variation-settings: inherit;\n letter-spacing: inherit;\n color: inherit;\n border-radius: 0;\n background-color: transparent;\n opacity: 1;\n}\n\n:where(select:is([multiple], [size])) optgroup {\n font-weight: bolder;\n}\n\n:where(select:is([multiple], [size])) optgroup option {\n padding-inline-start: 20px;\n}\n\n::file-selector-button {\n margin-inline-end: 4px;\n}\n\n::placeholder {\n opacity: 1;\n}\n\n@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {\n ::placeholder {\n color: color-mix(in oklab, currentcolor 50%, transparent);\n }\n}\n\ntextarea {\n resize: vertical;\n}\n':"full"===t||!0===t?It:""}(t)};return function(t,e,r){f.set(t,{utilities:[...e],modifiers:[...r],astCache:new p,parseResultCache:new d,utilityCache:new h,failures:new Set,cacheGeneration:b})}(n,$(),A()),function(t,r){if(!r||"object"!=typeof r||Array.isArray(r))return;const o=$(t),a=[...o],n=o.length;for(const[s,i]of Object.entries(r)){const r=Lt(s,i);if(!r){l(`[BAROCSS] Ignoring invalid custom utility "${s}"`);continue}const o=a.filter(t=>t.match(s));w({name:s,category:"custom",match:t=>t===s,handler:(t,a,n)=>{let s=[];for(const e of o)if(s=e.handler(t,a,n,e)||[],s.length>0)break;return[...s,...r.map(([t,r])=>e(t,r))]}},t)}o.length>n&&o.unshift(...o.splice(n))}(n,t.utilities),n}function Yt(t){if(t.includes("/")){const[e,r]=t.split("/").map(Number);if(!isNaN(e)&&!isNaN(r)&&0!==r)return e/r*100+"%"}return null}function Gt(t){return/^-?\d+(?:\.\d+)?$/.test(t)?t:null}function Xt(t){return/^\d+(px|em|rem|vh|vw|vmin|vmax|%|in|cm|mm|pt|pc|ex|ch|fr)$/.test(t)?t:null}function Jt(t,e={}){if(/^\d+$/.test(t))return e.repeat?`repeat(${t}, minmax(0, 1fr))`:t;if(t.includes("/")){const[r,o]=t.split("/").map(Number);if(!isNaN(r)&&!isNaN(o)&&0!==o){const t=r/o;return e.percent?100*t+"%":t.toString()}}return null}var Qt=new Set(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"]);function te(t){return Qt.has(t.toLowerCase())?t:t.startsWith("color:var(")?t.slice(6):t.startsWith("color:")?te(t.slice(6)):t.startsWith("#")&&4===t.length||t.startsWith("#")&&5===t.length||t.startsWith("#")&&7===t.length||t.startsWith("#")&&9===t.length?`#${t.slice(1)}`:t.startsWith("rgb(")?t.slice(4,-1):t.startsWith("rgba(")?t.slice(5,-1):t.startsWith("hsl(")?t.slice(4,-1):t.startsWith("hsla(")?t.slice(5,-1):t.startsWith("hwb(")||t.startsWith("lab(")||t.startsWith("lch(")?t.slice(4,-1):t.startsWith("oklab(")?t.slice(5,-1):t.startsWith("oklch(")?t.slice(6,-1):t.startsWith("color-mix(")?t.slice(9,-1):null}var ee=new Set(["inherit","currentcolor","transparent"]);function re(t,r,a){const n=String(a.realThemeValue),s=ee.has(r.toLowerCase())||r.startsWith("var(")||!/^[\w-]+$/.test(n)?r:`var(--color-${n})`;if(!a.opacity)return[e(t,s)];const i=function(t){let e=t.trim();const r=e.startsWith("[")&&e.endsWith("]");r&&(e=e.slice(1,-1).trim());e.startsWith("(")&&e.endsWith(")")&&(e=`var(${e.slice(1,-1).trim()})`);if(e.startsWith("var("))return{amount:e,isVar:!0};if(e.endsWith("%"))return{amount:e,isVar:!1};const o=Number(e);return""!==e&&Number.isFinite(o)?{amount:+(r&&o<=1?100*o:o).toFixed(4)+"%",isVar:!1}:{amount:e,isVar:!1}}(String(a.opacity)),l=r=>o("supports","(color:color-mix(in lab, red, red))",[e(t,`color-mix(in oklab, ${s} ${r}, transparent)`)]);return i.isVar?[e(t,r),l(i.amount)]:[e(t,`color-mix(in srgb, ${r} ${i.amount}, transparent)`),l(i.amount)]}E("accent-inherit",[["accent-color","inherit"]],{category:"interactivity"}),E("accent-current",[["accent-color","currentColor"]],{category:"interactivity"}),E("accent-transparent",[["accent-color","transparent"]],{category:"interactivity"}),W({name:"accent",themeKeys:["colors"],supportsOpacity:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,a,n)=>n?.realThemeValue?n.opacity?[o("supports","(color:color-mix(in lab, red, red))",[e("accent-color",`color-mix(in lab, ${t} ${n.opacity}%, transparent)`)]),e("accent-color",t)]:[e("accent-color",`var(--color-${n.realThemeValue})`)]:[e("accent-color",t)],handleCustomProperty:t=>[e("accent-color",`var(${t})`)],description:"accent-color utility (static, arbitrary, custom property supported)",category:"interactivity"}),E("appearance-none",[["appearance","none"]],{category:"interactivity"}),E("appearance-auto",[["appearance","auto"]],{category:"interactivity"}),E("caret-inherit",[["caret-color","inherit"]],{category:"interactivity"}),E("caret-current",[["caret-color","currentColor"]],{category:"interactivity"}),E("caret-transparent",[["caret-color","transparent"]],{category:"interactivity"}),W({name:"caret",themeKeys:["colors"],supportsOpacity:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,a,n)=>n?.realThemeValue?n.opacity?[o("supports","(color:color-mix(in lab, red, red))",[e("caret-color",`color-mix(in lab, ${t} ${n.opacity}%, transparent)`)]),e("caret-color",t)]:[e("caret-color",`var(--color-${n.realThemeValue})`)]:[e("caret-color",t)],handleCustomProperty:t=>[e("caret-color",`var(${t})`)],description:"caret-color utility (static, theme, arbitrary, custom property supported)",category:"interactivity"}),E("scheme-normal",[["color-scheme","normal"]],{category:"interactivity"}),E("scheme-dark",[["color-scheme","dark"]],{category:"interactivity"}),E("scheme-light",[["color-scheme","light"]],{category:"interactivity"}),E("scheme-light-dark",[["color-scheme","light dark"]],{category:"interactivity"}),E("scheme-only-dark",[["color-scheme","only dark"]],{category:"interactivity"}),E("scheme-only-light",[["color-scheme","only light"]],{category:"interactivity"}),["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out"].forEach(t=>{E(`cursor-${t}`,[["cursor",t]],{category:"interactivity"})}),W({name:"cursor",prop:"cursor",supportsArbitrary:!0,supportsCustomProperty:!0,description:"cursor utility (static, arbitrary, custom property supported)",category:"interactivity"}),E("field-sizing-fixed",[["field-sizing","fixed"]],{category:"interactivity"}),E("field-sizing-content",[["field-sizing","content"]],{category:"interactivity"}),E("pointer-events-auto",[["pointer-events","auto"]],{category:"interactivity"}),E("pointer-events-none",[["pointer-events","none"]],{category:"interactivity"}),E("resize",[["resize","both"]],{category:"interactivity"}),E("resize-x",[["resize","horizontal"]],{category:"interactivity"}),E("resize-y",[["resize","vertical"]],{category:"interactivity"}),E("resize-none",[["resize","none"]],{category:"interactivity"}),E("scroll-auto",[["scroll-behavior","auto"]],{category:"interactivity"}),E("scroll-smooth",[["scroll-behavior","smooth"]],{category:"interactivity"}),E("snap-start",[["scroll-snap-align","start"]],{category:"interactivity"}),E("snap-end",[["scroll-snap-align","end"]],{category:"interactivity"}),E("snap-center",[["scroll-snap-align","center"]],{category:"interactivity"}),E("snap-align-none",[["scroll-snap-align","none"]],{category:"interactivity"}),E("snap-normal",[["scroll-snap-stop","normal"]],{category:"interactivity"}),E("snap-always",[["scroll-snap-stop","always"]],{category:"interactivity"}),E("snap-none",[["scroll-snap-type","none"]],{category:"interactivity"}),E("snap-x",[["scroll-snap-type","x var(--baro-scroll-snap-strictness)"]],{category:"interactivity"}),E("snap-y",[["scroll-snap-type","y var(--baro-scroll-snap-strictness)"]],{category:"interactivity"}),E("snap-both",[["scroll-snap-type","both var(--baro-scroll-snap-strictness)"]],{category:"interactivity"}),E("snap-mandatory",[["--baro-scroll-snap-strictness","mandatory"]],{category:"interactivity"}),E("snap-proximity",[["--baro-scroll-snap-strictness","proximity"]],{category:"interactivity"}),[["mbs","scroll-margin-block-start"],["mbe","scroll-margin-block-end"],["mt","scroll-margin-top"],["mr","scroll-margin-right"],["mb","scroll-margin-bottom"],["ml","scroll-margin-left"],["mx","scroll-margin-inline"],["my","scroll-margin-block"],["ms","scroll-margin-inline-start"],["me","scroll-margin-inline-end"],["m","scroll-margin"]].forEach(([t,r])=>{E(`scroll-${t}-px`,[[r,"1px"]],{category:"interactivity"}),E(`-scroll-${t}-px`,[[r,"-1px"]],{category:"interactivity"}),W({name:`scroll-${t}`,spacingKeys:!0,prop:r,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,o,a,n)=>Gt(t)||a.negative?[e(r,`calc(var(--spacing) * ${t})`)]:[e(r,t)],handleCustomProperty:t=>[e(r,`var(${t})`)],description:`${t} utility (static, arbitrary, custom property supported)`,category:"interactivity"})}),[["pbs","scroll-padding-block-start"],["pbe","scroll-padding-block-end"],["pt","scroll-padding-top"],["pr","scroll-padding-right"],["pb","scroll-padding-bottom"],["pl","scroll-padding-left"],["px","scroll-padding-inline"],["py","scroll-padding-block"],["ps","scroll-padding-inline-start"],["pe","scroll-padding-inline-end"],["p","scroll-padding"]].forEach(([t,r])=>{W({name:`scroll-${t}`,spacingKeys:!0,prop:r,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>"px"===t?"1px":/^(\d|\.\d)/.test(t)?t:null,handle:(t,o,a,n)=>a.negative?[]:Gt(t)?[e(r,`calc(var(--spacing) * ${t})`)]:[e(r,t)],handleCustomProperty:(t,o,a)=>a.negative?[]:[e(r,`var(${t})`)],description:`scroll-${t} utility (static, arbitrary, custom property supported)`,category:"interactivity"})}),E("touch-auto",[["touch-action","auto"]],{category:"interactivity"}),E("touch-none",[["touch-action","none"]],{category:"interactivity"}),E("touch-pan-x",[["touch-action","pan-x"]],{category:"interactivity"}),E("touch-pan-left",[["touch-action","pan-left"]],{category:"interactivity"}),E("touch-pan-right",[["touch-action","pan-right"]],{category:"interactivity"}),E("touch-pan-y",[["touch-action","pan-y"]],{category:"interactivity"}),E("touch-pan-up",[["touch-action","pan-up"]],{category:"interactivity"}),E("touch-pan-down",[["touch-action","pan-down"]],{category:"interactivity"}),E("touch-pinch-zoom",[["touch-action","pinch-zoom"]],{category:"interactivity"}),E("touch-manipulation",[["touch-action","manipulation"]],{category:"interactivity"}),E("select-none",[["-webkit-user-select","none"],["user-select","none"]],{category:"interactivity"}),E("select-text",[["-webkit-user-select","text"],["user-select","text"]],{category:"interactivity"}),E("select-all",[["-webkit-user-select","all"],["user-select","all"]],{category:"interactivity"}),E("select-auto",[["-webkit-user-select","auto"],["user-select","auto"]],{category:"interactivity"}),E("will-change-auto",[["will-change","auto"]],{category:"interactivity"}),E("will-change-scroll",[["will-change","scroll-position"]],{category:"interactivity"}),E("will-change-contents",[["will-change","contents"]],{category:"interactivity"}),E("will-change-transform",[["will-change","transform"]],{category:"interactivity"}),W({name:"will-change",prop:"will-change",supportsArbitrary:!0,supportsCustomProperty:!0,description:"will-change utility (static, arbitrary, custom property supported)",category:"interactivity"}),E("scrollbar-auto",[["scrollbar-width","auto"]],{category:"interactivity"}),E("scrollbar-thin",[["scrollbar-width","thin"]],{category:"interactivity"}),E("scrollbar-none",[["scrollbar-width","none"]],{category:"interactivity"}),E("scrollbar-gutter-auto",[["scrollbar-gutter","auto"]],{category:"interactivity"}),E("scrollbar-gutter-stable",[["scrollbar-gutter","stable"]],{category:"interactivity"}),E("scrollbar-gutter-both",[["scrollbar-gutter","stable both-edges"]],{category:"interactivity"});var oe=t=>t.replace(/^color:/,"");for(const Wo of["thumb","track"]){const t=`--baro-scrollbar-${Wo}`,o=t=>[r([n("--baro-scrollbar-thumb","#0000","<color>"),n("--baro-scrollbar-track","#0000","<color>")]),...t,e("scrollbar-color","var(--baro-scrollbar-thumb) var(--baro-scrollbar-track)")],a=(r,o)=>o?[e(t,`color-mix(in oklab, ${r} ${o.replace(/^\[(.*)\]$/,"$1").replace(/%$/,"")}%, transparent)`)]:[e(t,r)];W({name:`scrollbar-${Wo}`,themeKeys:["colors"],supportsOpacity:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(r,n,s,i)=>i?.realThemeValue?o(a(`var(--color-${i.realThemeValue})`,i.opacity)):s.arbitrary?o(a(oe(r),i?.opacity)):"inherit"===r||"transparent"===r?o([e(t,r)]):"current"===r?o(a("currentcolor",i?.opacity)):null,handleCustomProperty:(t,e,r,n)=>o(a(`var(${oe(t)})`,n?.opacity)),description:`scrollbar-color ${Wo} utility (theme, arbitrary, custom property, opacity)`,category:"interactivity"})}var ae="var(--default-transition-timing-function)",ne="var(--default-transition-duration)";E("transition",[["transition-property","color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --baro-gradient-from, --baro-gradient-via, --baro-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events"],["transition-timing-function",ae],["transition-duration",ne]],{category:"transitions"}),E("transition-all",[["transition-property","all"],["transition-timing-function",ae],["transition-duration",ne]],{category:"transitions"}),E("transition-colors",[["transition-property","color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --baro-gradient-from, --baro-gradient-via, --baro-gradient-to"],["transition-timing-function",ae],["transition-duration",ne]],{category:"transitions"}),E("transition-opacity",[["transition-property","opacity"],["transition-timing-function",ae],["transition-duration",ne]],{category:"transitions"}),E("transition-shadow",[["transition-property","box-shadow"],["transition-timing-function",ae],["transition-duration",ne]],{category:"transitions"}),E("transition-transform",[["transition-property","transform, translate, scale, rotate"],["transition-timing-function",ae],["transition-duration",ne]],{category:"transitions"}),E("transition-normal",[["transition-behavior","normal"]],{category:"transitions"}),E("transition-discrete",[["transition-behavior","allow-discrete"]],{category:"transitions"}),E("transition-none",[["transition-property","none"]],{category:"transitions"}),W({name:"transition",prop:"transition-property",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>[e("transition-property",t),e("transition-timing-function",ae),e("transition-duration",ne)],handleCustomProperty:t=>[e("transition-property",`var(${t})`),e("transition-timing-function",ae),e("transition-duration",ne)],description:"transition-property utility (static, arbitrary value, custom property supported)",category:"transitions"}),E("duration-initial",[["transition-duration","initial"]],{category:"transitions"}),W({name:"duration",prop:"transition-duration",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>Gt(t)?[e("transition-duration",`${t}ms`)]:[e("transition-duration",t)],handleCustomProperty:t=>[e("transition-duration",`var(${t})`)],description:"transition-duration utility (static, number, arbitrary, custom property supported)",category:"transitions"}),E("ease-linear",[["transition-timing-function","linear"]],{category:"transitions"}),E("ease-in",[["transition-timing-function","var(--ease-in)"]],{category:"transitions"}),E("ease-out",[["transition-timing-function","var(--ease-out)"]],{category:"transitions"}),E("ease-in-out",[["transition-timing-function","var(--ease-in-out)"]],{category:"transitions"}),E("ease-initial",[["transition-timing-function","initial"]],{category:"transitions"}),W({name:"ease",prop:"transition-timing-function",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>V(e,"transitionTimingFunction",t,"ease")??(/^(\d|\.\d)/.test(t)?t:null),handle:(t,r,o)=>[e("transition-timing-function",t)],handleCustomProperty:t=>[e("transition-timing-function",`var(${t})`)],description:"transition-timing-function utility (static, arbitrary, custom property supported)",category:"transitions"}),W({name:"delay",prop:"transition-delay",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>Gt(t)?[e("transition-delay",`${t}ms`)]:[e("transition-delay",t)],handleCustomProperty:t=>[e("transition-delay",`var(${t})`)],description:"transition-delay utility (number, arbitrary, custom property supported)",category:"transitions"}),E("animate-spin",[["animation","var(--animate-spin)"]],{category:"transitions"}),E("animate-ping",[["animation","var(--animate-ping)"]],{category:"transitions"}),E("animate-pulse",[["animation","var(--animate-pulse)"]],{category:"transitions"}),E("animate-bounce",[["animation","var(--animate-bounce)"]],{category:"transitions"}),E("animate-none",[["animation","none"]],{category:"transitions"}),W({name:"animate",themeKeys:["animations","animation"],supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o,a)=>a?.realThemeValue?[e("animation",`var(--animate-${a.realThemeValue})`)]:o.customProperty?[e("animation",`var(${t})`)]:[e("animation",t)],handleCustomProperty:t=>[e("animation",`var(${t})`)],description:"animation utility (static, arbitrary, custom property supported)",category:"transitions"}),E("border-collapse",[["border-collapse","collapse"]],{category:"table"}),E("border-separate",[["border-collapse","separate"]],{category:"table"}),E("table-auto",[["table-layout","auto"]],{category:"table"}),E("table-fixed",[["table-layout","fixed"]],{category:"table"});var se=()=>r([n("--baro-border-spacing-x","0","<length>"),n("--baro-border-spacing-y","0","<length>")]),ie="var(--baro-border-spacing-x) var(--baro-border-spacing-y)",le=(t,r)=>[se(),...t.map(t=>e(`--baro-border-spacing-${t}`,r)),e("border-spacing",ie)];function ce(t){if(!t)return null;if(/^\d+(\.\d+)?$/.test(t))return{alpha:`${t}%`,isVar:!1};const e=/^\[(\d+(?:\.\d+)?)%\]$/.exec(t);if(e)return{alpha:`${e[1]}%`,isVar:!1};const r=/^\((--[\w-]+)\)$/.exec(t);return r?{alpha:`var(${r[1]})`,isVar:!0}:null}function pe(t,e){const r=[];let o=0,a="";for(const n of t)"("===n?o++:")"===n&&o--,0===o&&(" "===e?/\s/.test(n):n===e)?(a.trim()&&r.push(a.trim()),a=""):a+=n;return a.trim()&&r.push(a.trim()),r}[["border-spacing-x",["x"]],["border-spacing-y",["y"]],["border-spacing",["x","y"]]].forEach(([t,e])=>{E(`${t}-px`,[se,...e.map(t=>[`--baro-border-spacing-${t}`,"1px"]),["border-spacing",ie]],{category:"table"}),W({name:t,prop:"border-spacing",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>le(e,Gt(t)?`calc(var(--spacing) * ${t})`:t),handleCustomProperty:t=>le(e,`var(${t})`),description:`${t} utility (number, px, arbitrary, custom property supported)`,category:"table"})}),E("caption-top",[["caption-side","top"]],{category:"table"}),E("caption-bottom",[["caption-side","bottom"]],{category:"table"});var ue=/^-?(\d*\.)?\d+([a-z]+|%)?$/i;function de(t,e,r){return pe(t,",").map(t=>{const o=pe(t," "),a=o.findIndex(t=>"inset"!==t&&!ue.test(t)),n=a<0?"currentcolor":o[a];return o[a<0?o.length:a]=`var(--baro-${e}-color, ${r?`oklab(from ${n} l a b / ${r})`:n})`,o.join(" ")})}function ye(t,r,a,n,s=t=>t.join(", ")){const i=ce(n);if(n&&!i)return null;if(!i)return[e(r,s(de(a,t)))];const l=e(`--baro-${t}-alpha`,i.alpha);return i.isVar?[l,e(r,s(de(a,t))),o("supports","(color: lab(from red l a b))",[e(r,s(de(a,t,i.alpha)))])]:[l,e(r,s(de(a,t,i.alpha)))]}function he(t,r,a,n=r){const s=`--baro-${t}-color`;if("inherit"===r)return[e(s,"inherit")];const i=ce(a);if(a&&!i)return null;const l=i?`color-mix(in oklab, ${n} ${i.alpha}, transparent)`:n;return[e(s,i?`color-mix(in srgb, ${r} ${i.alpha}, transparent)`:r),o("supports","(color: color-mix(in lab, red, red))",[e(s,`color-mix(in oklab, ${l} var(--baro-${t}-alpha), transparent)`)])]}E("filter-none",[["filter","none"]],{category:"effects"}),W({name:"filter",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,description:"filter utility (static, arbitrary, custom property supported)",category:"effects"});var ge=()=>e("filter","var(--baro-blur, ) var(--baro-brightness, ) var(--baro-contrast, ) var(--baro-grayscale, ) var(--baro-hue-rotate, ) var(--baro-invert, ) var(--baro-saturate, ) var(--baro-sepia, ) var(--baro-drop-shadow, )");[["blur-xs","var(--blur-xs)"],["blur-sm","var(--blur-sm)"],["blur-md","var(--blur-md)"],["blur-lg","var(--blur-lg)"],["blur-xl","var(--blur-xl)"],["blur-2xl","var(--blur-2xl)"],["blur-3xl","var(--blur-3xl)"]].forEach(([t,r])=>{E(t,[e("--baro-blur",`blur(${r})`),ge()],{category:"effects"})}),E("blur",[e("--baro-blur","blur(8px)"),ge()],{category:"effects"}),E("blur-none",[e("--baro-blur",""),ge()],{category:"effects"}),W({name:"blur",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>V(e,"blur",t,"blur")??(/^(\d|\.\d)/.test(t)?t:null),handle:(t,r,o)=>o.customProperty?[e("--baro-blur",`blur(var(${t}))`),ge()]:[e("--baro-blur",`blur(${t})`),ge()],handleCustomProperty:t=>[e("--baro-blur",`blur(var(${t}))`),ge()],description:"blur filter utility (static, arbitrary, custom property supported)",category:"effects"}),W({name:"brightness",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>o.arbitrary?[e("--baro-brightness",`brightness(${t})`),ge()]:Gt(t)?[e("--baro-brightness",`brightness(${t}%)`),ge()]:o.customProperty?[e("--baro-brightness",`brightness(var(${t}))`),ge()]:[e("--baro-brightness",`brightness(${t})`),ge()],handleCustomProperty:t=>[e("--baro-brightness",`brightness(var(${t}))`),ge()],description:"brightness filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),W({name:"contrast",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>o.arbitrary?[e("--baro-contrast",`contrast(${t})`),ge()]:Gt(t)?[e("--baro-contrast",`contrast(${t}%)`),ge()]:o.customProperty?[e("--baro-contrast",`contrast(var(${t}))`),ge()]:[e("--baro-contrast",`contrast(${t})`),ge()],handleCustomProperty:t=>[e("--baro-contrast",`contrast(var(${t}))`),ge()],description:"contrast filter utility (static, number, arbitrary, custom property supported)",category:"effects"});var me=()=>r([n("--baro-drop-shadow"),n("--baro-drop-shadow-color"),n("--baro-drop-shadow-alpha","100%","<percentage>"),n("--baro-drop-shadow-size")]),fe=t=>t.map(t=>`drop-shadow(${t})`).join(" "),be=(t,e)=>{const r=t.theme("dropShadow",e);return"string"==typeof r&&/^[\w.-]+$/.test(e)?r:null};function ve(t,r,o,a=!1){const n=ye("drop-shadow","--baro-drop-shadow-size",t,r,fe);if(!n)return null;const s=void 0===o||r&&!a?"var(--baro-drop-shadow-size)":o;return[me(),...n,e("--baro-drop-shadow",s),ge()]}E("drop-shadow-none",[e("--baro-drop-shadow"," "),ge()]),w({name:"drop-shadow",match:t=>/^drop-shadow(\/.+)?$/.test(t),handler:(t,e,r)=>{const o=t?`${r.prefix}-${t}`:r.prefix,a=o.indexOf("/");return ve("0 1px 2px rgb(0 0 0 / 0.1), 0 1px 1px rgb(0 0 0 / 0.06)",a<0?void 0:o.slice(a+1),"drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow( 0 1px 1px rgb(0 0 0 / 0.06))",!0)??[]},category:"effects"});var xe=(t,r,o)=>{const a=he("drop-shadow",t,r,o);return a&&[me(),...a,e("--baro-drop-shadow","var(--baro-drop-shadow-size)")]};W({name:"drop-shadow",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handleBareValue:({value:t,ctx:e})=>be(e,t)?t:null,handle:(t,e,r,o)=>{const a=o?.opacity,n=r.arbitrary?void 0:{inherit:"inherit",current:"currentcolor",transparent:"transparent"}[o?.realThemeValue??t];if(n)return xe(n,a);const s=o?.realThemeValue??t,i=r.arbitrary?null:be(e,s);return i?ve(i,a,`drop-shadow(var(--drop-shadow-${s}))`):o?.realThemeValue?xe(t,a,`var(--color-${o.realThemeValue})`):r.arbitrary?te(t)?xe(t,a):ve(t,a):null},handleCustomProperty:t=>t.startsWith("color:")?xe(`var(${t.slice(6)})`,void 0)??[]:[me(),e("--baro-drop-shadow-size",`drop-shadow(var(${t}))`),e("--baro-drop-shadow","var(--baro-drop-shadow-size)"),ge()],description:"drop-shadow filter utility (static, arbitrary, custom property supported)",category:"effects"}),E("grayscale",[e("--baro-grayscale","grayscale(100%)"),ge()],{category:"effects"}),W({name:"grayscale",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>Gt(t)?[e("--baro-grayscale",`grayscale(${t}%)`),ge()]:[e("--baro-grayscale",`grayscale(${t})`),ge()],handleCustomProperty:t=>[e("--baro-grayscale",`grayscale(var(${t}))`),ge()],description:"grayscale filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),W({name:"hue-rotate",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,r,o)=>o.negative&&Gt(o.value)?[e("--baro-hue-rotate",`hue-rotate(calc(${o.value}deg * -1))`),ge()]:Gt(t)?[e("--baro-hue-rotate",`hue-rotate(${t}deg)`),ge()]:o.customProperty?[e("--baro-hue-rotate",`hue-rotate(var(${t}))`),ge()]:[e("--baro-hue-rotate",`hue-rotate(${t})`),ge()],handleCustomProperty:t=>[e("--baro-hue-rotate",`hue-rotate(var(${t}))`),ge()],description:"hue-rotate filter utility (static, negative, number, arbitrary, custom property supported)",category:"effects"}),E("invert",[e("--baro-invert","invert(100%)"),ge()],{category:"effects"}),W({name:"invert",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>Gt(t)?[e("--baro-invert",`invert(${t}%)`),ge()]:[e("--baro-invert",`invert(${t})`),ge()],description:"invert filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),W({name:"saturate",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>Gt(t)?[e("--baro-saturate",`saturate(${t}%)`),ge()]:[e("--baro-saturate",`saturate(${t})`),ge()],handleCustomProperty:t=>[e("--baro-saturate",`saturate(var(${t}))`),ge()],description:"saturate filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),E("sepia",[e("--baro-sepia","sepia(100%)"),ge()],{category:"effects"}),W({name:"sepia",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>Gt(t)?[e("--baro-sepia",`sepia(${t}%)`),ge()]:[e("--baro-sepia",`sepia(${t})`),ge()],handleCustomProperty:t=>[e("--baro-sepia",`sepia(var(${t}))`),ge()],description:"sepia filter utility (static, number, arbitrary, custom property supported)",category:"effects"});var ke=()=>[e("-webkit-backdrop-filter","var(--baro-backdrop-blur, ) var(--baro-backdrop-brightness, ) var(--baro-backdrop-contrast, ) var(--baro-backdrop-grayscale, ) var(--baro-backdrop-hue-rotate, ) var(--baro-backdrop-invert, ) var(--baro-backdrop-saturate, ) var(--baro-backdrop-sepia, )"),e("backdrop-filter","var(--baro-backdrop-blur, ) var(--baro-backdrop-brightness, ) var(--baro-backdrop-contrast, ) var(--baro-backdrop-grayscale, ) var(--baro-backdrop-hue-rotate, ) var(--baro-backdrop-invert, ) var(--baro-backdrop-saturate, ) var(--baro-backdrop-sepia, )")];E("backdrop-filter",[["backdrop-filter","var(--baro-backdrop-filter)"]],{category:"effects"}),E("backdrop-filter-none",[["backdrop-filter","none"]],{category:"effects"}),W({name:"backdrop-filter",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,description:"filter utility (static, arbitrary, custom property supported)",category:"effects"}),[["backdrop-blur-xs","var(--blur-xs)"],["backdrop-blur-sm","var(--blur-sm)"],["backdrop-blur-md","var(--blur-md)"],["backdrop-blur-lg","var(--blur-lg)"],["backdrop-blur-xl","var(--blur-xl)"],["backdrop-blur-2xl","var(--blur-2xl)"],["backdrop-blur-3xl","var(--blur-3xl)"]].forEach(([t,r])=>{E(t,[e("--baro-backdrop-blur",`blur(${r})`),...ke()],{category:"effects"})}),E("backdrop-blur",[e("--baro-backdrop-blur","blur(8px)"),...ke()],{category:"effects"}),E("backdrop-blur-none",[e("--baro-backdrop-blur",""),...ke()],{category:"effects"}),W({name:"backdrop-blur",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>V(e,"blur",t,"blur")??(/^(\d|\.\d)/.test(t)?t:null),handle:(t,r,o)=>o.customProperty?[e("--baro-backdrop-blur",`blur(var(${t}))`),...ke()]:[e("--baro-backdrop-blur",`blur(${t})`),...ke()],handleCustomProperty:t=>[e("--baro-backdrop-blur",`blur(var(${t}))`),...ke()],description:"blur filter utility (static, arbitrary, custom property supported)",category:"effects"}),W({name:"backdrop-brightness",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>o.arbitrary?[e("--baro-backdrop-brightness",`brightness(${t})`),...ke()]:Gt(t)?[e("--baro-backdrop-brightness",`brightness(${t}%)`),...ke()]:o.customProperty?[e("--baro-backdrop-brightness",`brightness(var(${t}))`),...ke()]:[e("--baro-backdrop-brightness",`brightness(${t})`),...ke()],handleCustomProperty:t=>[e("--baro-backdrop-brightness",`brightness(var(${t}))`),...ke()],description:"brightness filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),W({name:"backdrop-contrast",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handle:(t,r,o)=>o.arbitrary?[e("--baro-backdrop-contrast",`contrast(${t})`),...ke()]:Gt(t)?[e("--baro-backdrop-contrast",`contrast(${t}%)`),...ke()]:o.customProperty?[e("--baro-backdrop-contrast",`contrast(var(${t}))`),...ke()]:[e("--baro-backdrop-contrast",`contrast(${t})`),...ke()],handleCustomProperty:t=>[e("--baro-backdrop-contrast",`contrast(var(${t}))`),...ke()],description:"contrast filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),E("backdrop-grayscale",[["--baro-backdrop-grayscale","grayscale(100%)"],...ke()],{category:"effects"}),W({name:"backdrop-grayscale",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>Gt(t)?[e("--baro-backdrop-grayscale",`grayscale(${t}%)`),...ke()]:[e("--baro-backdrop-grayscale",`grayscale(${t})`),...ke()],handleCustomProperty:t=>[e("--baro-backdrop-grayscale",`grayscale(var(${t}))`),...ke()],description:"grayscale filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),W({name:"backdrop-hue-rotate",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,r,o)=>o.negative&&Gt(o.value)?[e("--baro-backdrop-hue-rotate",`hue-rotate(calc(${o.value}deg * -1))`),...ke()]:Gt(t)?[e("--baro-backdrop-hue-rotate",`hue-rotate(${t}deg)`),...ke()]:[e("--baro-backdrop-hue-rotate",`hue-rotate(${t})`),...ke()],handleCustomProperty:t=>[e("--baro-backdrop-hue-rotate",`hue-rotate(var(${t}))`),...ke()],description:"hue-rotate filter utility (static, negative, number, arbitrary, custom property supported)",category:"effects"}),E("backdrop-invert",[["--baro-backdrop-invert","invert(100%)"],...ke()],{category:"effects"}),W({name:"backdrop-invert",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>Gt(t)?[e("--baro-backdrop-invert",`invert(${t}%)`),...ke()]:[e("--baro-backdrop-invert",`invert(${t})`),...ke()],description:"invert filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),W({name:"backdrop-saturate",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>Gt(t)?[e("--baro-backdrop-saturate",`saturate(${t}%)`),...ke()]:[e("--baro-backdrop-saturate",`saturate(${t})`),...ke()],handleCustomProperty:t=>[e("--baro-backdrop-saturate",`saturate(var(${t}))`),...ke()],description:"saturate filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),E("backdrop-sepia",[["--baro-backdrop-sepia","sepia(100%)"],...ke()],{category:"effects"}),W({name:"backdrop-sepia",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>Gt(t)?[e("--baro-backdrop-sepia",`sepia(${t}%)`),...ke()]:[e("--baro-backdrop-sepia",`sepia(${t})`),...ke()],handleCustomProperty:t=>[e("--baro-backdrop-sepia",`sepia(var(${t}))`),...ke()],description:"sepia filter utility (static, number, arbitrary, custom property supported)",category:"effects"});var we="var(--baro-inset-shadow), var(--baro-inset-ring-shadow), var(--baro-ring-offset-shadow), var(--baro-ring-shadow), var(--baro-shadow)",$e=()=>r([n("--baro-shadow","0 0 #0000"),n("--baro-inset-shadow","0 0 #0000"),n("--baro-inset-ring-shadow","0 0 #0000"),n("--baro-ring-offset-shadow","0 0 #0000"),n("--baro-ring-shadow","0 0 #0000"),n("--baro-ring-offset-width","0px","<length>"),n("--baro-ring-offset-color","#fff")]),Ce=t=>r([n(`--baro-${t}-color`),n(`--baro-${t}-alpha`,"100%","<percentage>")]),Pe={"":"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)","2xs":"0 1px rgb(0 0 0 / 0.05)",xs:"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"},ze={"2xs":"inset 0 1px rgb(0 0 0 / 0.05)",xs:"inset 0 1px 1px rgb(0 0 0 / 0.05)",sm:"inset 0 2px 4px rgb(0 0 0 / 0.05)"},Se={md:"inset 0 4px 6px -1px rgb(0 0 0 / 0.05)",lg:"inset 0 10px 15px -3px rgb(0 0 0 / 0.05)",xl:"inset 0 20px 25px -5px rgb(0 0 0 / 0.05)","2xl":"inset 0 25px 50px -12px rgb(0 0 0 / 0.05)"},Ae=t=>t.split(/,(?![^(]*\))/).map(t=>`inset ${t.trim()}`).join(", "),je=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function Re(t,r,o){const a=ye(t,`--baro-${t}`,r,o);return a?[$e(),Ce(t),...a,e("box-shadow",we)]:null}function Ee(t,e,r,o){if("shadow"===t){if(je(Pe,e))return Re(t,Pe[e],r)}else{if(je(ze,e))return Re(t,ze[e],r);if(!r&&je(Se,e))return Re(t,Se[e],void 0)}const a=o&&"none"!==e?N(o,"shadow"===t?"boxShadow":"insetShadow",e):null;return a?Re(t,a,r):null}E("shadow-none",[$e,["--baro-shadow","0 0 #0000"],["box-shadow",we]],{category:"effects"}),E("inset-shadow-none",[$e,["--baro-inset-shadow","inset 0 0 #0000"],["box-shadow",we]],{category:"effects"}),w({name:"shadow",match:t=>/^shadow(\/.+)?$/.test(t),handler:(t,e,r)=>{const o=t?`${r.prefix}-${t}`:r.prefix,a=o.indexOf("/");return Ee("shadow","",a<0?void 0:o.slice(a+1))??[]},category:"effects"});var Te={inherit:"inherit",current:"currentcolor",transparent:"transparent"};function Ne(t,e,r,o,a){const n=o.arbitrary?void 0:Te[a??e];return n?he(t,n,r):a?he(t,e,r,`var(--color-${a})`):e.startsWith("color:")?he(t,`var(${e.slice(6)})`,r):o.arbitrary&&te(e)?he(t,e,r):void 0}for(const Wo of["shadow","inset-shadow"])W({name:Wo,supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,themeKeys:["colors"],handleBareValue:({value:t,ctx:e,extra:r})=>Ee(Wo,t,r?.opacity,e)?t:null,handle:(t,e,r,o)=>{const a=o?.opacity,n=r.arbitrary?null:Ee(Wo,o?.realThemeValue??t,a,e);if(n)return n;const s=Ne(Wo,t,a,r,o?.realThemeValue);return void 0!==s?s:r.arbitrary?Re(Wo,"inset-shadow"===Wo?Ae(t):t,a):null},handleCustomProperty:t=>t.startsWith("color:")?he(Wo,`var(${t.slice(6)})`,void 0)??[]:[$e(),e(`--baro-${Wo}`,"inset-shadow"===Wo?`inset var(${t})`:`var(${t})`),e("box-shadow",we)]});var Ve=()=>r([n("--baro-text-shadow-color"),n("--baro-text-shadow-alpha","100%","<percentage>")]),We=(t,e)=>{const r=t.theme("textShadow",e);return"string"==typeof r&&/^[\w.-]+$/.test(e)?r:null},Be=(t,e)=>{const r=ye("text-shadow","text-shadow",t,e);return r?[Ve(),...r]:null};function Me(t){return`var(--baro-ring-inset,) 0 0 0 calc(${t} + var(--baro-ring-offset-width)) var(--baro-ring-color, currentcolor)`}E("text-shadow-none",[Ve,["text-shadow","none"]],{category:"effects"}),W({name:"text-shadow",supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,themeKeys:["colors"],handleBareValue:({value:t,ctx:e})=>We(e,t)?t:null,handle:(t,e,r,o)=>{const a=o?.opacity;if(!r.arbitrary){const r=We(e,o?.realThemeValue??t);if(r)return Be(r,a)}const n=Ne("text-shadow",t,a,r,o?.realThemeValue);return void 0!==n?n&&[Ve(),...n]:r.arbitrary?Be(t,a):null},handleCustomProperty:t=>t.startsWith("color:")?[Ve(),...he("text-shadow",`var(${t.slice(6)})`,void 0)??[]]:[Ve(),e("text-shadow",`var(${t})`)],category:"effects"}),[["ring","1px"],["ring-0","0px"],["ring-1","1px"],["ring-2","2px"],["ring-4","4px"],["ring-8","8px"]].forEach(([t,e])=>{E(t,[$e,["--baro-ring-shadow",Me(e)],["box-shadow","var(--baro-inset-shadow), var(--baro-inset-ring-shadow), var(--baro-ring-offset-shadow), var(--baro-ring-shadow), var(--baro-shadow)"]])}),[["ring-offset-0","0px"],["ring-offset-1","1px"],["ring-offset-2","2px"],["ring-offset-4","4px"],["ring-offset-8","8px"]].forEach(([t,e])=>{E(t,[["--baro-ring-offset-width",e],["--baro-ring-offset-color","#fff"],["--baro-ring-offset-shadow","var(--baro-ring-inset,) 0 0 0 var(--baro-ring-offset-width) var(--baro-ring-offset-color)"]],{category:"effects"})});var Oe=t=>[e("--baro-ring-offset-width",t),e("--baro-ring-offset-shadow","var(--baro-ring-inset,) 0 0 0 var(--baro-ring-offset-width) var(--baro-ring-offset-color)")];function Fe(t,r,a,n){const s=`var(--color-${n})`;let i=s,l=s;return a&&(i=`color-mix(in oklab, ${s} ${a}%, transparent)`,l=te(r)&&r.startsWith("#")?`${r}${Math.round(Number(a)/100*255).toString(16).padStart(2,"0")}`:i),[o("supports","(color:color-mix(in lab, red, red))",[e(t,i)]),e(t,l)]}W({name:"ring-offset",themeKeys:["ringOffsetWidth","colors"],supportsArbitrary:!0,supportsOpacity:!0,handleBareValue:({value:t})=>/^\d+$/.test(t)?`${t}px`:null,handle:(t,r,o,a)=>"ringOffsetWidth"===a?.themeNamespace?Oe(t):a?.realThemeValue?re("--baro-ring-offset-color",t,a):o.arbitrary?te(t)?[e("--baro-ring-offset-color",t)]:Xt(t)?Oe(t):null:/^\d+px$/.test(t)?Oe(t):null,category:"effects"}),[["inset-ring","1px"],["inset-ring-0","0px"],["inset-ring-1","1px"],["inset-ring-2","2px"],["inset-ring-4","4px"],["inset-ring-8","8px"]].forEach(([t,e])=>{E(t,[$e,["--baro-inset-ring-shadow",`inset 0 0 0 ${e} var(--baro-inset-ring-color, currentcolor)`],["box-shadow",we]],{category:"effects"})}),E("ring-inset",[["--baro-ring-inset","inset"]],{category:"effects"}),W({name:"ring",supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,themeKeys:["colors","ringWidth"],handle:(t,r,a,n)=>{const s=t;if("ringWidth"===n?.themeNamespace)return[$e(),e("--baro-ring-shadow",Me(t)),e("box-shadow",we)];const i=n?.opacity,l=n?.realThemeValue;if(l)return Fe("--baro-ring-color",s,i,l);if(s.startsWith("color:")){const t=s.replace("color:","");let r=`var(${t})`,a=r;return i&&(r=`color-mix(in oklab, var(${t}) ${i}%, transparent)`,a=r),[o("supports","(color:color-mix(in lab, red, red))",[e("--baro-ring-color",r)]),e("--baro-ring-color",a)]}if(a.arbitrary){let t=s,r=s;if(i)return t=`color-mix(in oklab, ${s} ${i}%, transparent)`,r=te(s)&&s.startsWith("#")?`${s}${Math.round(Number(i)/100*255).toString(16).padStart(2,"0")}`:t,[o("supports","(color:color-mix(in lab, red, red))",[e("--baro-ring-color",t)]),e("--baro-ring-color",r)];if(!te(s)&&/^(-?(\d+\.?\d*|\.\d+)(px|rem|em|%|vw|vh|vmin|vmax|ch|ex|pt|cm|mm|in|pc)|0|(length:.+)|calc\(.+\))$/i.test(s)){const t=s.startsWith("length:")?s.slice(7):s;return[$e(),e("--baro-ring-shadow",Me(t)),e("box-shadow",we)]}return[te(s)?e("--baro-ring-color",s):e("box-shadow",s)]}return"inherit"===s||"current"===s||"transparent"===s?[e("--baro-ring-color","current"===s?"currentColor":s)]:null},handleCustomProperty:t=>{if(t.startsWith("color:")){return[e("--baro-ring-color",`var(${t.replace("color:","")})`)]}return[e("--baro-ring-color",`var(${t})`)]}}),W({name:"inset-ring",supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,themeKeys:["colors","shadows"],handle:(t,r,a,n)=>{const s=t,i=n?.opacity,l=n?.realThemeValue;if(l)return Fe("--baro-inset-ring-color",s,i,l);if(s.startsWith("color:")){const t=s.replace("color:","");let r=`var(${t})`,a=r;return i&&(r=`color-mix(in oklab, var(${t}) ${i}%, transparent)`,a=r),[o("supports","(color:color-mix(in lab, red, red))",[e("--baro-inset-ring-color",r)]),e("--baro-inset-ring-color",a)]}if(a.arbitrary){let t=s,r=s;return i?(t=`color-mix(in oklab, ${s} ${i}%, transparent)`,r=te(s)&&s.startsWith("#")?`${s}${Math.round(Number(i)/100*255).toString(16).padStart(2,"0")}`:t,[o("supports","(color:color-mix(in lab, red, red))",[e("--baro-inset-ring-color",t)]),e("--baro-inset-ring-color",r)]):[e("box-shadow",`inset ${s}`)]}return"inherit"===s||"current"===s||"transparent"===s?[e("--baro-inset-ring-color","current"===s?"currentColor":s)]:null},handleCustomProperty:t=>{if(t.startsWith("color:")){return[e("--baro-inset-ring-color",`var(${t.replace("color:","")})`)]}return[e("--baro-inset-ring-color",`var(${t})`)]}}),W({name:"opacity",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>{if(Gt(t)){let r=Number(t);return r>1&&(r/=100),[e("opacity",String(r))]}return o.arbitrary?[e("opacity",t)]:null},handleCustomProperty:t=>[e("opacity",`var(${t})`)],description:"opacity utility (number, arbitrary, custom property supported)",category:"effects"}),[["mix-blend-normal","normal"],["mix-blend-multiply","multiply"],["mix-blend-screen","screen"],["mix-blend-overlay","overlay"],["mix-blend-darken","darken"],["mix-blend-lighten","lighten"],["mix-blend-color-dodge","color-dodge"],["mix-blend-color-burn","color-burn"],["mix-blend-hard-light","hard-light"],["mix-blend-soft-light","soft-light"],["mix-blend-difference","difference"],["mix-blend-exclusion","exclusion"],["mix-blend-hue","hue"],["mix-blend-saturation","saturation"],["mix-blend-color","color"],["mix-blend-luminosity","luminosity"],["mix-blend-plus-darker","plus-darker"],["mix-blend-plus-lighter","plus-lighter"]].forEach(([t,e])=>{E(t,[["mix-blend-mode",e]])}),[["bg-blend-normal","normal"],["bg-blend-multiply","multiply"],["bg-blend-screen","screen"],["bg-blend-overlay","overlay"],["bg-blend-darken","darken"],["bg-blend-lighten","lighten"],["bg-blend-color-dodge","color-dodge"],["bg-blend-color-burn","color-burn"],["bg-blend-hard-light","hard-light"],["bg-blend-soft-light","soft-light"],["bg-blend-difference","difference"],["bg-blend-exclusion","exclusion"],["bg-blend-hue","hue"],["bg-blend-saturation","saturation"],["bg-blend-color","color"],["bg-blend-luminosity","luminosity"]].forEach(([t,e])=>{E(t,[["background-blend-mode",e]],{category:"effects"})}),[["mask-clip-border","border-box"],["mask-clip-padding","padding-box"],["mask-clip-content","content-box"],["mask-clip-fill","fill-box"],["mask-clip-stroke","stroke-box"],["mask-clip-view","view-box"],["mask-no-clip","no-clip"]].forEach(([t,e])=>{E(t,[["mask-clip",e]],{category:"effects"})}),[["mask-add","add"],["mask-subtract","subtract"],["mask-intersect","intersect"],["mask-exclude","exclude"]].forEach(([t,e])=>{E(t,[["mask-composite",e]],{category:"effects"})}),[["mask-alpha","alpha"],["mask-luminance","luminance"],["mask-match","match-source"]].forEach(([t,e])=>{E(t,[["mask-mode",e]],{category:"effects"})}),[["mask-origin-border","border-box"],["mask-origin-padding","padding-box"],["mask-origin-content","content-box"],["mask-origin-fill","fill-box"],["mask-origin-stroke","stroke-box"],["mask-origin-view","view-box"]].forEach(([t,e])=>{E(t,[["mask-origin",e]],{category:"effects"})}),[["mask-top-left","top left"],["mask-top","top"],["mask-top-right","top right"],["mask-left","left"],["mask-center","center"],["mask-right","right"],["mask-bottom-left","bottom left"],["mask-bottom","bottom"],["mask-bottom-right","bottom right"]].forEach(([t,e])=>{E(t,[["mask-position",e]],{category:"effects"})}),W({name:"mask-position",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>o.arbitrary?[e("mask-position",t)]:o.customProperty?[e("mask-position",`var(${t})`)]:null,handleCustomProperty:t=>[e("mask-position",`var(${t})`)],description:"mask-position utility (static, arbitrary, custom property supported)",category:"effects"}),[["mask-repeat","repeat"],["mask-no-repeat","no-repeat"],["mask-repeat-x","repeat-x"],["mask-repeat-y","repeat-y"],["mask-repeat-space","space"],["mask-repeat-round","round"]].forEach(([t,e])=>{E(t,[["mask-repeat",e]],{category:"effects"})}),[["mask-auto","auto"],["mask-cover","cover"],["mask-contain","contain"]].forEach(([t,e])=>{E(t,[["mask-size",e]],{category:"effects"})}),[["mask-type-alpha","alpha"],["mask-type-luminance","luminance"]].forEach(([t,e])=>{E(t,[["mask-type",e]],{category:"effects"})}),W({name:"mask-size",prop:"mask-size",supportsArbitrary:!0,supportsCustomProperty:!0,description:"mask-size utility (static, arbitrary, custom property supported)",category:"effects"});W({name:"mask-linear-from",handleBareValue:({value:t})=>/^(?:100|[1-9]?\d)%$/.test(t)?t:null,handle:t=>[e("mask-image","var(--baro-mask-linear), var(--baro-mask-radial), var(--baro-mask-conic)"),e("mask-composite","intersect"),e("--baro-mask-linear-stops","var(--baro-mask-linear-position), var(--baro-mask-linear-from-color) var(--baro-mask-linear-from-position), var(--baro-mask-linear-to-color) var(--baro-mask-linear-to-position)"),e("--baro-mask-linear","linear-gradient(var(--baro-mask-linear-stops))"),e("--baro-mask-linear-from-position",t),r([n("--baro-mask-linear","linear-gradient(#fff, #fff)"),n("--baro-mask-radial","linear-gradient(#fff, #fff)"),n("--baro-mask-conic","linear-gradient(#fff, #fff)"),n("--baro-mask-linear-position","0deg"),n("--baro-mask-linear-from-position","0%"),n("--baro-mask-linear-to-position","100%"),n("--baro-mask-linear-from-color","black"),n("--baro-mask-linear-to-color","transparent")])],category:"effects"}),E("mask-none",[["mask-image","none"]],{category:"effects"}),W({name:"mask",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>"none"===t?[e("mask-image","none")]:o.arbitrary?[e("mask-image",t)]:o.customProperty?[e("mask-image",`var(${t})`)]:null,handleCustomProperty:t=>[e("mask-image",`var(${t})`)],description:"mask-image utility (arbitrary, custom property supported)",category:"effects"}),E("isolate",[["isolation","isolate"]],{category:"layout"}),E("isolation-auto",[["isolation","auto"]],{category:"layout"}),E("z-auto",[["z-index","auto"]],{category:"layout"}),W({name:"z",prop:"z-index",themeKey:"zIndex",supportsNegative:!0,supportsFraction:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t),description:"z-index utility",category:"layout"}),E("aspect-square",[["aspect-ratio","1 / 1"]],{category:"layout"}),E("aspect-video",[["aspect-ratio","var(--aspect-video)"]],{category:"layout"}),E("aspect-auto",[["aspect-ratio","auto"]],{category:"layout"}),W({name:"aspect",prop:"aspect-ratio",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t,ctx:e})=>V(e,"aspect",t,"aspect")??(/^(\d|\.\d)/.test(t)?t:null),description:"aspect-ratio utility (theme, arbitrary, custom property, fraction supported)",category:"layout"}),E("columns-auto",[["columns","auto"]],{category:"layout"}),E("columns-3xs",[["columns","var(--container-3xs)"]],{category:"layout"}),E("columns-2xs",[["columns","var(--container-2xs)"]],{category:"layout"}),E("columns-xs",[["columns","var(--container-xs)"]],{category:"layout"}),E("columns-sm",[["columns","var(--container-sm)"]],{category:"layout"}),E("columns-md",[["columns","var(--container-md)"]],{category:"layout"}),E("columns-lg",[["columns","var(--container-lg)"]],{category:"layout"}),E("columns-xl",[["columns","var(--container-xl)"]],{category:"layout"}),E("columns-2xl",[["columns","var(--container-2xl)"]],{category:"layout"}),E("columns-3xl",[["columns","var(--container-3xl)"]],{category:"layout"}),E("columns-4xl",[["columns","var(--container-4xl)"]],{category:"layout"}),E("columns-5xl",[["columns","var(--container-5xl)"]],{category:"layout"}),E("columns-6xl",[["columns","var(--container-6xl)"]],{category:"layout"}),E("columns-7xl",[["columns","var(--container-7xl)"]],{category:"layout"}),W({name:"columns",prop:"columns",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t,ctx:e})=>Gt(t)??V(e,"container",t,"container"),description:"columns utility (theme, arbitrary, custom property, fraction supported)",category:"layout"}),E("break-after-auto",[["break-after","auto"]],{category:"layout"}),E("break-after-avoid",[["break-after","avoid"]],{category:"layout"}),E("break-after-all",[["break-after","all"]],{category:"layout"}),E("break-after-avoid-page",[["break-after","avoid-page"]],{category:"layout"}),E("break-after-page",[["break-after","page"]],{category:"layout"}),E("break-after-left",[["break-after","left"]],{category:"layout"}),E("break-after-right",[["break-after","right"]],{category:"layout"}),E("break-after-column",[["break-after","column"]],{category:"layout"}),E("break-before-auto",[["break-before","auto"]],{category:"layout"}),E("break-before-avoid",[["break-before","avoid"]],{category:"layout"}),E("break-before-all",[["break-before","all"]],{category:"layout"}),E("break-before-avoid-page",[["break-before","avoid-page"]],{category:"layout"}),E("break-before-page",[["break-before","page"]],{category:"layout"}),E("break-before-left",[["break-before","left"]],{category:"layout"}),E("break-before-right",[["break-before","right"]],{category:"layout"}),E("break-before-column",[["break-before","column"]],{category:"layout"}),E("break-inside-auto",[["break-inside","auto"]],{category:"layout"}),E("break-inside-avoid",[["break-inside","avoid"]],{category:"layout"}),E("break-inside-avoid-page",[["break-inside","avoid-page"]],{category:"layout"}),E("break-inside-avoid-column",[["break-inside","avoid-column"]],{category:"layout"}),E("box-decoration-slice",[["box-decoration-break","slice"]],{category:"layout"}),E("box-decoration-clone",[["box-decoration-break","clone"]],{category:"layout"}),E("box-border",[["box-sizing","border-box"]],{category:"layout"}),E("box-content",[["box-sizing","content-box"]],{category:"layout"}),E("block",[["display","block"]],{category:"layout"}),E("inline",[["display","inline"]],{category:"layout"}),E("inline-block",[["display","inline-block"]],{category:"layout"}),E("flow-root",[["display","flow-root"]],{category:"layout"}),E("flex",[["display","flex"]],{category:"layout"}),E("inline-flex",[["display","inline-flex"]],{category:"layout"}),E("grid",[["display","grid"]],{category:"layout"}),E("inline-grid",[["display","inline-grid"]],{category:"layout"}),E("contents",[["display","contents"]],{category:"layout"}),E("table",[["display","table"]],{category:"layout"}),E("inline-table",[["display","inline-table"]],{category:"layout"}),E("table-caption",[["display","table-caption"]],{category:"layout"}),E("table-cell",[["display","table-cell"]],{category:"layout"}),E("table-column",[["display","table-column"]],{category:"layout"}),E("table-column-group",[["display","table-column-group"]],{category:"layout"}),E("table-footer-group",[["display","table-footer-group"]],{category:"layout"}),E("table-header-group",[["display","table-header-group"]],{category:"layout"}),E("table-row-group",[["display","table-row-group"]],{category:"layout"}),E("table-row",[["display","table-row"]],{category:"layout"}),E("list-item",[["display","list-item"]],{category:"layout"}),E("hidden",[["display","none"]],{category:"layout"}),E("sr-only",[["position","absolute"],["width","1px"],["height","1px"],["padding","0"],["margin","-1px"],["overflow","hidden"],["clip-path","inset(50%)"],["white-space","nowrap"],["border-width","0"]],{category:"layout"}),E("not-sr-only",[["position","static"],["width","auto"],["height","auto"],["padding","0"],["margin","0"],["overflow","visible"],["clip-path","none"],["white-space","normal"]],{category:"layout"}),E("@container",[["container-type","inline-size"]],{category:"layout"}),E("@container-normal",[["container-type","normal"]],{category:"layout"}),E("@container-size",[["container-type","size"]],{category:"layout"});var Ke=/^@container(-normal|-size)?\/([a-zA-Z0-9_-]+)$/,De={"":"inline-size","-normal":"normal","-size":"size"};w({name:"@container",match:t=>Ke.test(t),handler:(t,r,o)=>{const a=Ke.exec(`${o.prefix}${o.value?`-${o.value}`:""}`);return a?[e("container-type",De[a[1]??""]),e("container-name",a[2])]:null},category:"layout"});var Le=t=>{const e=/^(-?\d*\.?\d+)(rem|px|em)$/.exec(t.trim());return e?"px"===e[2]?Number(e[1])/16:Number(e[1]):NaN};w({name:"container",match:t=>"container"===t,handler:(t,r)=>{const a=r.theme("breakpoints")||r.config("theme.breakpoints")||{},n=Object.values(a).filter(t=>"string"==typeof t&&!Number.isNaN(Le(t)));return n.sort((t,e)=>Le(t)-Le(e)),[e("width","100%"),...n.map(t=>o("media",`(width >= ${t})`,[e("max-width",t)]))]},category:"layout"}),E("float-right",[["float","right"]],{category:"layout"}),E("float-left",[["float","left"]],{category:"layout"}),E("float-start",[["float","inline-start"]],{category:"layout"}),E("float-end",[["float","inline-end"]],{category:"layout"}),E("float-none",[["float","none"]],{category:"layout"}),E("clear-left",[["clear","left"]],{category:"layout"}),E("clear-right",[["clear","right"]],{category:"layout"}),E("clear-both",[["clear","both"]],{category:"layout"}),E("clear-start",[["clear","inline-start"]],{category:"layout"}),E("clear-end",[["clear","inline-end"]],{category:"layout"}),E("clear-none",[["clear","none"]],{category:"layout"}),E("object-contain",[["object-fit","contain"]],{category:"layout"}),E("object-cover",[["object-fit","cover"]],{category:"layout"}),E("object-fill",[["object-fit","fill"]],{category:"layout"}),E("object-none",[["object-fit","none"]],{category:"layout"}),E("object-scale-down",[["object-fit","scale-down"]],{category:"layout"}),E("object-top-left",[["object-position","top left"]],{category:"layout"}),E("object-top",[["object-position","top"]],{category:"layout"}),E("object-top-right",[["object-position","top right"]],{category:"layout"}),E("object-left",[["object-position","left"]],{category:"layout"}),E("object-center",[["object-position","center"]],{category:"layout"}),E("object-right",[["object-position","right"]],{category:"layout"}),E("object-bottom-left",[["object-position","bottom left"]],{category:"layout"}),E("object-bottom",[["object-position","bottom"]],{category:"layout"}),E("object-bottom-right",[["object-position","bottom right"]],{category:"layout"}),W({name:"object",prop:"object-position",supportsArbitrary:!0,supportsCustomProperty:!0,description:"object-position utility (arbitrary value, custom property supported)",category:"layout"}),E("overflow-auto",[["overflow","auto"]],{category:"layout"}),E("overflow-hidden",[["overflow","hidden"]],{category:"layout"}),E("overflow-clip",[["overflow","clip"]],{category:"layout"}),E("overflow-visible",[["overflow","visible"]],{category:"layout"}),E("overflow-scroll",[["overflow","scroll"]],{category:"layout"}),E("overflow-x-auto",[["overflow-x","auto"]],{category:"layout"}),E("overflow-y-auto",[["overflow-y","auto"]],{category:"layout"}),E("overflow-x-hidden",[["overflow-x","hidden"]],{category:"layout"}),E("overflow-y-hidden",[["overflow-y","hidden"]],{category:"layout"}),E("overflow-x-clip",[["overflow-x","clip"]],{category:"layout"}),E("overflow-y-clip",[["overflow-y","clip"]],{category:"layout"}),E("overflow-x-visible",[["overflow-x","visible"]],{category:"layout"}),E("overflow-y-visible",[["overflow-y","visible"]],{category:"layout"}),E("overflow-x-scroll",[["overflow-x","scroll"]],{category:"layout"}),E("overflow-y-scroll",[["overflow-y","scroll"]],{category:"layout"}),E("overscroll-auto",[["overscroll-behavior","auto"]],{category:"layout"}),E("overscroll-contain",[["overscroll-behavior","contain"]],{category:"layout"}),E("overscroll-none",[["overscroll-behavior","none"]],{category:"layout"}),E("overscroll-x-auto",[["overscroll-behavior-x","auto"]],{category:"layout"}),E("overscroll-x-contain",[["overscroll-behavior-x","contain"]],{category:"layout"}),E("overscroll-x-none",[["overscroll-behavior-x","none"]],{category:"layout"}),E("overscroll-y-auto",[["overscroll-behavior-y","auto"]],{category:"layout"}),E("overscroll-y-contain",[["overscroll-behavior-y","contain"]],{category:"layout"}),E("overscroll-y-none",[["overscroll-behavior-y","none"]],{category:"layout"}),E("static",[["position","static"]],{category:"layout"}),E("fixed",[["position","fixed"]],{category:"layout"}),E("absolute",[["position","absolute"]],{category:"layout"}),E("relative",[["position","relative"]],{category:"layout"}),E("sticky",[["position","sticky"]],{category:"layout"}),[["inset-x","inset-inline"],["inset-y","inset-block"],["inset-s","inset-inline-start"],["inset-e","inset-inline-end"],["inset-bs","inset-block-start"],["inset-be","inset-block-end"],["inset","inset"],["start","inset-inline-start"],["end","inset-inline-end"],["top","top"],["right","right"],["bottom","bottom"],["left","left"]].forEach(([t,e])=>{E(`${t}-auto`,[[e,"auto"]],{category:"layout"}),E(`${t}-full`,[[e,"100%"]],{category:"layout"}),E(`-${t}-full`,[[e,"-100%"]],{category:"layout"}),E(`${t}-px`,[[e,"1px"]],{category:"layout"}),E(`-${t}-px`,[[e,"-1px"]],{category:"layout"}),W({name:t,spacingKeys:!0,prop:e,supportsNegative:!0,supportsFraction:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>{if(Gt(t))return`calc(var(--spacing) * ${t})`;const e=Yt(t);return e||null},handleNegativeBareValue:({value:t})=>{if(Gt(t))return`calc(var(--spacing) * -${t})`;const e=Yt(t);return e?`-${e}`:null},description:`${t} utility (spacing, fraction, px, full, auto, custom property, arbitrary, negative supported)`,category:"layout"})}),E("visible",[["visibility","visible"]],{category:"layout"}),E("invisible",[["visibility","hidden"]],{category:"layout"}),E("collapse",[["visibility","collapse"]],{category:"layout"}),W({name:"gap-x",spacingKeys:!0,prop:"column-gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("column-gap",t)]:null,handleCustomProperty:t=>[e("column-gap",`var(${t})`)],description:"gap-x utility (number, arbitrary, custom property supported)",category:"layout"}),W({name:"gap-y",spacingKeys:!0,prop:"row-gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("row-gap",t)]:null,handleCustomProperty:t=>[e("row-gap",`var(${t})`)],description:"gap-y utility (number, arbitrary, custom property supported)",category:"layout"}),W({name:"gap",spacingKeys:!0,prop:"gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("gap",t)]:null,handleCustomProperty:t=>[e("gap",`var(${t})`)],description:"gap utility (number, arbitrary, custom property supported)",category:"layout"}),W({name:"zoom",prop:"zoom",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>/^\d+$/.test(t)?`${t}%`:null,description:"zoom utility (integer percent, arbitrary, custom property)",category:"layout"}),E("basis-full",[["flex-basis","100%"]],{category:"flex-grid"}),E("basis-auto",[["flex-basis","auto"]],{category:"flex-grid"}),E("basis-3xs",[["flex-basis","var(--container-3xs)"]],{category:"flex-grid"}),E("basis-2xs",[["flex-basis","var(--container-2xs)"]],{category:"flex-grid"}),E("basis-xs",[["flex-basis","var(--container-xs)"]],{category:"flex-grid"}),E("basis-sm",[["flex-basis","var(--container-sm)"]],{category:"flex-grid"}),E("basis-md",[["flex-basis","var(--container-md)"]],{category:"flex-grid"}),E("basis-lg",[["flex-basis","var(--container-lg)"]],{category:"flex-grid"}),E("basis-xl",[["flex-basis","var(--container-xl)"]],{category:"flex-grid"}),E("basis-2xl",[["flex-basis","var(--container-2xl)"]],{category:"flex-grid"}),E("basis-3xl",[["flex-basis","var(--container-3xl)"]],{category:"flex-grid"}),E("basis-4xl",[["flex-basis","var(--container-4xl)"]],{category:"flex-grid"}),E("basis-5xl",[["flex-basis","var(--container-5xl)"]],{category:"flex-grid"}),E("basis-6xl",[["flex-basis","var(--container-6xl)"]],{category:"flex-grid"}),E("basis-7xl",[["flex-basis","var(--container-7xl)"]],{category:"flex-grid"}),W({name:"basis",prop:"flex-basis",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>{if(Gt(t))return`calc(var(--container-${t}) * 1px)`;const e=Yt(t);return e||null},handleNegativeBareValue:({value:t})=>{if(Gt(t))return`calc(var(--container-${t}) * -1px)`;const e=Yt(t);return e?`-${e}`:null},description:"flex-basis utility (theme, arbitrary, custom property, fraction supported)",category:"flex-grid"}),E("flex-row",[["flex-direction","row"]],{category:"flex-grid"}),E("flex-row-reverse",[["flex-direction","row-reverse"]],{category:"flex-grid"}),E("flex-col",[["flex-direction","column"]],{category:"flex-grid"}),E("flex-col-reverse",[["flex-direction","column-reverse"]],{category:"flex-grid"}),E("flex-wrap",[["flex-wrap","wrap"]],{category:"flex-grid"}),E("flex-wrap-reverse",[["flex-wrap","wrap-reverse"]],{category:"flex-grid"}),E("flex-nowrap",[["flex-wrap","nowrap"]],{category:"flex-grid"}),E("flex-auto",[["flex","1 1 auto"]],{category:"flex-grid"}),E("flex-initial",[["flex","0 1 auto"]],{category:"flex-grid"}),E("flex-none",[["flex","none"]],{category:"flex-grid"}),E("flex-grow",[["flex-grow","1"]],{category:"flex-grid"}),W({name:"flex-grow",prop:"flex-grow",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t),handle:t=>[e("flex-grow",t)],description:"flex-grow utility (number, arbitrary, custom property supported)",category:"flex-grid"}),E("flex-shrink",[["flex-shrink","1"]],{category:"flex-grid"}),W({name:"flex-shrink",prop:"flex-shrink",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t),description:"flex-shrink utility (number, arbitrary, custom property supported)",category:"flex-grid"}),W({name:"flex",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>{if(Gt(t))return t;const e=Yt(t);return e?`calc(${e})`:null},handle:t=>[e("flex",t)],description:"flex shorthand utility (number, fraction, arbitrary, custom property supported)",category:"flex-grid"}),E("grow",[["flex-grow","1"]],{category:"flex-grid"}),W({name:"grow",prop:"flex-grow",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t),handle:t=>[e("flex-grow",t)],description:"flex-grow utility (number, arbitrary, custom property supported)",category:"flex-grid"}),E("shrink",[["flex-shrink","1"]],{category:"flex-grid"}),E("shrink-0",[["flex-shrink","0"]],{category:"flex-grid"}),W({name:"shrink",prop:"flex-shrink",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t),description:"flex-shrink utility (number, arbitrary, custom property supported)",category:"flex-grid"}),E("order-first",[["order","calc(-infinity)"]],{category:"flex-grid"}),E("order-last",[["order","calc(infinity)"]],{category:"flex-grid"}),E("order-none",[["order","0"]],{category:"flex-grid"}),W({name:"order",prop:"order",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t),handleNegativeBareValue:({value:t})=>Gt(t)?`calc(${t} * -1)`:null,description:"order utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),E("grid-cols-none",[["grid-template-columns","none"]],{category:"flex-grid"}),E("grid-cols-subgrid",[["grid-template-columns","subgrid"]],{category:"flex-grid"}),W({name:"grid-cols",prop:"grid-template-columns",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t,{repeat:!0}),description:"grid-template-columns utility (number, arbitrary, custom property supported)",category:"flex-grid"}),E("grid-rows-none",[["grid-template-rows","none"]],{category:"flex-grid"}),E("grid-rows-subgrid",[["grid-template-rows","subgrid"]],{category:"flex-grid"}),W({name:"grid-rows",prop:"grid-template-rows",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t,{repeat:!0}),handle:t=>"string"==typeof t?[e("grid-template-rows",t.replace(/_/g," "))]:null,handleCustomProperty:t=>[e("grid-template-rows",`var(${t})`)],description:"grid-template-rows utility (number, arbitrary, custom property supported)",category:"flex-grid"}),E("row-span-full",[["grid-row","1 / -1"]],{category:"flex-grid"}),W({name:"row-span",prop:"grid-row",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t)?`span ${t} / span ${t}`:null,handleCustomProperty:t=>[e("grid-row",`span var(${t}) / span var(${t})`)],handle:t=>Gt(t)?[e("grid-row",`span ${t} / span ${t}`)]:null,description:"grid-row span utility (number, arbitrary, custom property supported)",category:"flex-grid"}),E("row-start-auto",[["grid-row-start","auto"]],{category:"flex-grid"}),W({name:"row-start",prop:"grid-row-start",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t),handleNegativeBareValue:({value:t})=>Gt(t)?`calc(${t} * -1)`:null,handleCustomProperty:t=>[e("grid-row-start",`var(${t})`)],handle:t=>Gt(t)||"string"==typeof t?[e("grid-row-start",t)]:null,description:"grid-row-start utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),E("row-end-auto",[["grid-row-end","auto"]],{category:"flex-grid"}),W({name:"row-end",prop:"grid-row-end",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t),handleNegativeBareValue:({value:t})=>Gt(t)?`calc(${t} * -1)`:null,handleCustomProperty:t=>[e("grid-row-end",`var(${t})`)],handle:t=>Gt(t)||"string"==typeof t?[e("grid-row-end",t)]:null,description:"grid-row-end utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),E("row-auto",[["grid-row","auto"]],{category:"flex-grid"}),W({name:"row",prop:"grid-row",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t),handleNegativeBareValue:({value:t})=>Gt(t)?`calc(${t} * -1)`:null,handleCustomProperty:t=>[e("grid-row",`var(${t})`)],handle:t=>Gt(t)||"string"==typeof t?[e("grid-row",t)]:null,description:"grid-row utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),E("grid-flow-row",[["grid-auto-flow","row"]],{category:"flex-grid"}),E("grid-flow-col",[["grid-auto-flow","column"]],{category:"flex-grid"}),E("grid-flow-dense",[["grid-auto-flow","dense"]],{category:"flex-grid"}),E("grid-flow-row-dense",[["grid-auto-flow","row dense"]],{category:"flex-grid"}),E("grid-flow-col-dense",[["grid-auto-flow","column dense"]],{category:"flex-grid"}),E("auto-cols-auto",[["grid-auto-columns","auto"]],{category:"flex-grid"}),E("auto-cols-min",[["grid-auto-columns","min-content"]],{category:"flex-grid"}),E("auto-cols-max",[["grid-auto-columns","max-content"]],{category:"flex-grid"}),E("auto-cols-fr",[["grid-auto-columns","minmax(0, 1fr)"]],{category:"flex-grid"}),W({name:"auto-cols",prop:"grid-auto-columns",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("grid-auto-columns",t)]:null,handleCustomProperty:t=>[e("grid-auto-columns",`var(${t})`)],description:"grid-auto-columns utility (static, arbitrary, custom property supported)",category:"flex-grid"}),E("auto-rows-auto",[["grid-auto-rows","auto"]],{category:"flex-grid"}),E("auto-rows-min",[["grid-auto-rows","min-content"]],{category:"flex-grid"}),E("auto-rows-max",[["grid-auto-rows","max-content"]],{category:"flex-grid"}),E("auto-rows-fr",[["grid-auto-rows","minmax(0, 1fr)"]],{category:"flex-grid"}),W({name:"auto-rows",prop:"grid-auto-rows",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("grid-auto-rows",t)]:null,handleCustomProperty:t=>[e("grid-auto-rows",`var(${t})`)],description:"grid-auto-rows utility (static, arbitrary, custom property supported)",category:"flex-grid"}),W({name:"gap-x",prop:"column-gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>"px"===t?"1px":Gt(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("column-gap",t)]:null,handleCustomProperty:t=>[e("column-gap",`var(${t})`)],description:"gap-x utility (number, arbitrary, custom property supported)",category:"layout"}),W({name:"gap-y",prop:"row-gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>"px"===t?"1px":Gt(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("row-gap",t)]:null,handleCustomProperty:t=>[e("row-gap",`var(${t})`)],description:"gap-y utility (number, arbitrary, custom property supported)",category:"layout"}),W({name:"gap",prop:"gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>"px"===t?"1px":Gt(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("gap",t)]:null,handleCustomProperty:t=>[e("gap",`var(${t})`)],description:"gap utility (number, arbitrary, custom property supported)",category:"layout"}),E("justify-start",[["justify-content","flex-start"]],{category:"flex-grid"}),E("justify-end",[["justify-content","flex-end"]],{category:"flex-grid"}),E("justify-end-safe",[["justify-content","safe flex-end"]],{category:"flex-grid"}),E("justify-center",[["justify-content","center"]],{category:"flex-grid"}),E("justify-center-safe",[["justify-content","safe center"]],{category:"flex-grid"}),E("justify-between",[["justify-content","space-between"]],{category:"flex-grid"}),E("justify-around",[["justify-content","space-around"]],{category:"flex-grid"}),E("justify-evenly",[["justify-content","space-evenly"]],{category:"flex-grid"}),E("justify-stretch",[["justify-content","stretch"]],{category:"flex-grid"}),E("justify-baseline",[["justify-content","baseline"]],{category:"flex-grid"}),E("justify-normal",[["justify-content","normal"]],{category:"flex-grid"}),E("justify-items-start",[["justify-items","start"]],{category:"flex-grid"}),E("justify-items-end",[["justify-items","end"]],{category:"flex-grid"}),E("justify-items-end-safe",[["justify-items","safe end"]],{category:"flex-grid"}),E("justify-items-center",[["justify-items","center"]],{category:"flex-grid"}),E("justify-items-center-safe",[["justify-items","safe center"]],{category:"flex-grid"}),E("justify-items-stretch",[["justify-items","stretch"]],{category:"flex-grid"}),E("justify-items-normal",[["justify-items","normal"]],{category:"flex-grid"}),E("justify-self-auto",[["justify-self","auto"]],{category:"flex-grid"}),E("justify-self-start",[["justify-self","flex-start"]],{category:"flex-grid"}),E("justify-self-center",[["justify-self","center"]],{category:"flex-grid"}),E("justify-self-center-safe",[["justify-self","safe center"]],{category:"flex-grid"}),E("justify-self-end",[["justify-self","flex-end"]],{category:"flex-grid"}),E("justify-self-end-safe",[["justify-self","safe flex-end"]],{category:"flex-grid"}),E("justify-self-stretch",[["justify-self","stretch"]],{category:"flex-grid"}),E("content-normal",[["align-content","normal"]],{category:"flex-grid"}),E("content-center",[["align-content","center"]],{category:"flex-grid"}),E("content-start",[["align-content","flex-start"]],{category:"flex-grid"}),E("content-end",[["align-content","flex-end"]],{category:"flex-grid"}),E("content-between",[["align-content","space-between"]],{category:"flex-grid"}),E("content-around",[["align-content","space-around"]],{category:"flex-grid"}),E("content-evenly",[["align-content","space-evenly"]],{category:"flex-grid"}),E("content-baseline",[["align-content","baseline"]],{category:"flex-grid"}),E("content-stretch",[["align-content","stretch"]],{category:"flex-grid"}),E("items-start",[["align-items","flex-start"]],{category:"flex-grid"}),E("items-end",[["align-items","flex-end"]],{category:"flex-grid"}),E("items-end-safe",[["align-items","safe flex-end"]],{category:"flex-grid"}),E("items-center",[["align-items","center"]],{category:"flex-grid"}),E("items-center-safe",[["align-items","safe center"]],{category:"flex-grid"}),E("items-baseline",[["align-items","baseline"]],{category:"flex-grid"}),E("items-baseline-last",[["align-items","last baseline"]],{category:"flex-grid"}),E("items-stretch",[["align-items","stretch"]],{category:"flex-grid"}),E("self-auto",[["align-self","auto"]],{category:"flex-grid"}),E("self-start",[["align-self","flex-start"]],{category:"flex-grid"}),E("self-end",[["align-self","flex-end"]],{category:"flex-grid"}),E("self-end-safe",[["align-self","safe flex-end"]],{category:"flex-grid"}),E("self-center",[["align-self","center"]],{category:"flex-grid"}),E("self-center-safe",[["align-self","safe center"]],{category:"flex-grid"}),E("self-stretch",[["align-self","stretch"]],{category:"flex-grid"}),E("self-baseline",[["align-self","baseline"]],{category:"flex-grid"}),E("self-baseline-last",[["align-self","last baseline"]],{category:"flex-grid"}),E("place-content-center",[["place-content","center"]],{category:"flex-grid"}),E("place-content-center-safe",[["place-content","safe center"]],{category:"flex-grid"}),E("place-content-start",[["place-content","start"]],{category:"flex-grid"}),E("place-content-end",[["place-content","end"]],{category:"flex-grid"}),E("place-content-end-safe",[["place-content","safe end"]],{category:"flex-grid"}),E("place-content-between",[["place-content","space-between"]],{category:"flex-grid"}),E("place-content-around",[["place-content","space-around"]],{category:"flex-grid"}),E("place-content-evenly",[["place-content","space-evenly"]],{category:"flex-grid"}),E("place-content-baseline",[["place-content","baseline"]],{category:"flex-grid"}),E("place-content-stretch",[["place-content","stretch"]],{category:"flex-grid"}),E("place-items-start",[["place-items","start"]],{category:"flex-grid"}),E("place-items-end",[["place-items","end"]],{category:"flex-grid"}),E("place-items-end-safe",[["place-items","safe end"]],{category:"flex-grid"}),E("place-items-center",[["place-items","center"]],{category:"flex-grid"}),E("place-items-center-safe",[["place-items","safe center"]],{category:"flex-grid"}),E("place-items-baseline",[["place-items","baseline"]],{category:"flex-grid"}),E("place-items-stretch",[["place-items","stretch"]],{category:"flex-grid"}),E("place-self-auto",[["place-self","auto"]],{category:"flex-grid"}),E("place-self-start",[["place-self","start"]],{category:"flex-grid"}),E("place-self-end",[["place-self","end"]],{category:"flex-grid"}),E("place-self-end-safe",[["place-self","safe end"]],{category:"flex-grid"}),E("place-self-center",[["place-self","center"]],{category:"flex-grid"}),E("place-self-center-safe",[["place-self","safe center"]],{category:"flex-grid"}),E("place-self-stretch",[["place-self","stretch"]],{category:"flex-grid"}),E("col-span-full",[["grid-column","1 / -1"]],{category:"flex-grid"}),W({name:"col-span",prop:"grid-column",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t)?`span ${t} / span ${t}`:null,handleCustomProperty:(t,r,o)=>[e("grid-column",`span var(${t}) / span var(${t})`)],handle:(t,r,o)=>Gt(t)?[e("grid-column",`span ${t} / span ${t}`)]:null,description:"grid-column span utility (number, arbitrary, custom property supported)",category:"grid"}),E("col-start-auto",[["grid-column-start","auto"]],{category:"flex-grid"}),W({name:"col-start",prop:"grid-column-start",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t),handleNegativeBareValue:({value:t})=>Gt(t)?`calc(${t} * -1)`:null,description:"grid-column-start utility (number, negative, arbitrary, custom property supported)",category:"grid"}),E("col-end-auto",[["grid-column-end","auto"]],{category:"flex-grid"}),W({name:"col-end",prop:"grid-column-end",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t),handleNegativeBareValue:({value:t})=>Gt(t)?`calc(${t} * -1)`:null,description:"grid-column-end utility (number, negative, arbitrary, custom property supported)",category:"grid"}),E("col-auto",[["grid-column","auto"]],{category:"flex-grid"}),W({name:"col",prop:"grid-column",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t),handleNegativeBareValue:({value:t})=>Gt(t)?`calc(${t} * -1)`:null,description:"grid-column utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),[["px","padding-inline"],["py","padding-block"],["ps","padding-inline-start"],["pe","padding-inline-end"],["pbs","padding-block-start"],["pbe","padding-block-end"],["pt","padding-top"],["pr","padding-right"],["pb","padding-bottom"],["pl","padding-left"],["p","padding"]].forEach(([t,e])=>{E(`${t}-px`,[[e,"1px"]],{category:"spacing"}),W({spacingKeys:!0,name:t,prop:e,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t)?`calc(var(--spacing) * ${t})`:null,description:`${t} utility (number, arbitrary, custom property supported)`,category:"spacing"})}),[["mx","margin-inline"],["my","margin-block"],["ms","margin-inline-start"],["me","margin-inline-end"],["mbs","margin-block-start"],["mbe","margin-block-end"],["mt","margin-top"],["mr","margin-right"],["mb","margin-bottom"],["ml","margin-left"],["m","margin"]].forEach(([t,e])=>{E(`${t}-auto`,[[e,"auto"]],{category:"spacing"}),E(`${t}-px`,[[e,"1px"]],{category:"spacing"}),E(`-${t}-px`,[[e,"-1px"]],{category:"spacing"}),W({spacingKeys:!0,name:t,prop:e,supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t)?`calc(var(--spacing) * ${t})`:null,handleNegativeBareValue:({value:t})=>Gt(t)?`calc(var(--spacing) * -${t})`:null,description:`${t} margin utility (number, negative, arbitrary, custom property, auto, px supported)`,category:"spacing"})});var Ie=":where(& > :not(:last-child))";["x","y"].forEach(t=>{const o=`space-${t}`,s=`--baro-space-${t}-reverse`,[i,l]="x"===t?["margin-inline-start","margin-inline-end"]:["margin-block-start","margin-block-end"],c=()=>r([n(s,"0")]),p=t=>a(Ie,[e(s,"0"),e(i,`calc(${t} * var(${s}))`),e(l,`calc(${t} * calc(1 - var(${s})))`)]),u=t=>[c(),p(t)];E(`${o}-px`,[c,()=>p("1px")],{category:"spacing"}),E(`-${o}-px`,[c,()=>p("-1px")],{category:"spacing"}),E(`${o}-reverse`,[c,()=>a(Ie,[e(s,"1")])],{category:"spacing"}),W({spacingKeys:!0,name:o,supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t)?`calc(var(--spacing) * ${t})`:null,handleNegativeBareValue:({value:t})=>Gt(t)?`calc(var(--spacing) * -${t})`:null,handle:(t,e,r)=>{let o=String(t);return/^-?\d+(\.\d+)?$/.test(o)&&(o=`calc(var(--spacing) * ${r.negative?"-":""}${o})`),u(o)},handleCustomProperty:t=>u(`var(${t})`),description:`${o} utility (number, negative, px, arbitrary, custom property, reverse supported)`,category:"spacing"})}),[["w-auto","auto"],["w-px","1px"],["w-full","100%"],["w-screen","100vw"],["w-dvw","100dvw"],["w-dvh","100dvh"],["w-lvw","100lvw"],["w-lvh","100lvh"],["w-svw","100svw"],["w-svh","100svh"],["w-min","min-content"],["w-max","max-content"],["w-fit","fit-content"],["w-3xs","var(--container-3xs)"],["w-2xs","var(--container-2xs)"],["w-xs","var(--container-xs)"],["w-sm","var(--container-sm)"],["w-md","var(--container-md)"],["w-lg","var(--container-lg)"],["w-xl","var(--container-xl)"],["w-2xl","var(--container-2xl)"],["w-3xl","var(--container-3xl)"],["w-4xl","var(--container-4xl)"],["w-5xl","var(--container-5xl)"],["w-6xl","var(--container-6xl)"],["w-7xl","var(--container-7xl)"]].forEach(([t,e])=>{E(t,[["width",e]])}),W({spacingKeys:!0,name:"w",prop:"width",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Gt(t)?`calc(var(--spacing) * ${t})`:Jt(t)?`calc(${t} * 100%)`:null,description:"width utility (spacing, fraction, arbitrary, custom property, container scale, static supported)",category:"sizing"}),[["size-auto",["auto","auto"]],["size-px",["1px","1px"]],["size-full",["100%","100%"]],["size-dvw",["100dvw","100dvw"]],["size-dvh",["100dvh","100dvh"]],["size-lvw",["100lvw","100lvw"]],["size-lvh",["100lvh","100lvh"]],["size-svw",["100svw","100svw"]],["size-svh",["100svh","100svh"]],["size-min",["min-content","min-content"]],["size-max",["max-content","max-content"]],["size-fit",["fit-content","fit-content"]]].forEach(([t,[e,r]])=>{E(t,[["width",e],["height",r]])}),W({spacingKeys:!0,name:"size",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Gt(t)?`calc(var(--spacing) * ${t})`:Jt(t)?`calc(${t} * 100%)`:null,handle:t=>[e("width",t),e("height",t)],handleCustomProperty:t=>[e("width",`var(${t})`),e("height",`var(${t})`)],description:"size utility (spacing, fraction, arbitrary, custom property, static supported)",category:"sizing"}),[["h-auto","auto"],["h-px","1px"],["h-full","100%"],["h-screen","100vh"],["h-dvh","100dvh"],["h-lvh","100lvh"],["h-svh","100svh"],["h-min","min-content"],["h-max","max-content"],["h-fit","fit-content"]].forEach(([t,e])=>{E(t,[["height",e]])}),W({spacingKeys:!0,name:"h",prop:"height",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Gt(t)?`calc(var(--spacing) * ${t})`:Jt(t)?`calc(${t} * 100%)`:null,description:"height utility (spacing, fraction, arbitrary, custom property, static supported)",category:"sizing"}),[["min-h-0","0px"],["min-h-px","1px"],["min-h-full","100%"],["min-h-screen","100vh"],["min-h-dvh","100dvh"],["min-h-lvh","100lvh"],["min-h-svh","100svh"],["min-h-min","min-content"],["min-h-max","max-content"],["min-h-fit","fit-content"]].forEach(([t,e])=>{E(t,[["min-height",e]],{category:"sizing"})}),W({spacingKeys:!0,name:"min-h",prop:"min-height",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Gt(t)?`calc(var(--spacing) * ${t})`:Jt(t)?`calc(${t} * 100%)`:null,description:"min-height utility (spacing, fraction, arbitrary, custom property, static supported)",category:"sizing"}),[["max-h-px","1px"],["max-h-full","100%"],["max-h-screen","100vh"],["max-h-dvh","100dvh"],["max-h-lvh","100lvh"],["max-h-svh","100svh"],["max-h-min","min-content"],["max-h-max","max-content"],["max-h-fit","fit-content"],["max-h-none","none"]].forEach(([t,e])=>{E(t,[["max-height",e]],{category:"sizing"})}),W({spacingKeys:!0,name:"max-h",prop:"max-height",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Gt(t)?`calc(var(--spacing) * ${t})`:Jt(t)?`calc(${t} * 100%)`:null,description:"max-height utility (spacing, fraction, arbitrary, custom property, static supported)",category:"sizing"}),[["min-w-auto","auto"],["min-w-px","1px"],["min-w-full","100%"],["min-w-screen","100vw"],["min-w-dvw","100dvw"],["min-w-dvh","100dvh"],["min-w-lvw","100lvw"],["min-w-lvh","100lvh"],["min-w-svw","100svw"],["min-w-svh","100svh"],["min-w-min","min-content"],["min-w-max","max-content"],["min-w-fit","fit-content"],["min-w-3xs","var(--container-3xs)"],["min-w-2xs","var(--container-2xs)"],["min-w-xs","var(--container-xs)"],["min-w-sm","var(--container-sm)"],["min-w-md","var(--container-md)"],["min-w-lg","var(--container-lg)"],["min-w-xl","var(--container-xl)"],["min-w-2xl","var(--container-2xl)"],["min-w-3xl","var(--container-3xl)"],["min-w-4xl","var(--container-4xl)"],["min-w-5xl","var(--container-5xl)"],["min-w-6xl","var(--container-6xl)"],["min-w-7xl","var(--container-7xl)"]].forEach(([t,e])=>{E(t,[["min-width",e]],{category:"sizing"})}),W({spacingKeys:!0,name:"min-w",prop:"min-width",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Gt(t)?`calc(var(--spacing) * ${t})`:Jt(t)?`calc(${t} * 100%)`:null,description:"min-width utility (spacing, fraction, arbitrary, custom property, static supported)",category:"sizing"}),[["max-w-none","none"],["max-w-min","min-content"],["max-w-max","max-content"],["max-w-fit","fit-content"],["max-w-xs","var(--container-xs)"],["max-w-sm","var(--container-sm)"],["max-w-md","var(--container-md)"],["max-w-lg","var(--container-lg)"],["max-w-xl","var(--container-xl)"],["max-w-2xl","var(--container-2xl)"],["max-w-3xl","var(--container-3xl)"],["max-w-4xl","var(--container-4xl)"],["max-w-5xl","var(--container-5xl)"],["max-w-6xl","var(--container-6xl)"],["max-w-7xl","var(--container-7xl)"]].forEach(([t,e])=>{E(t,[["max-width",e]],{category:"sizing"})}),W({spacingKeys:!0,name:"max-w",prop:"max-width",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t,ctx:e})=>Gt(t)?`calc(var(--spacing) * ${t})`:Jt(t)?`calc(${t} * 100%)`:V(e,"container",t,"container"),description:"max-width utility (spacing, fraction, arbitrary, custom property, static supported)",category:"sizing"});{const t=["3xs","2xs","xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl"].map(t=>[t,`var(--container-${t})`]),e=[["0","0px"],["px","1px"],["full","100%"],["min","min-content"],["max","max-content"],["fit","fit-content"]],r=[["screen","100vw"],["dvw","100dvw"],["lvw","100lvw"],["svw","100svw"]],o=[["screen","100vh"],["dvh","100dvh"],["lvh","100lvh"],["svh","100svh"],["lh","1lh"]],a=[["inline","inline-size",[...e,["auto","auto"],...r,...t]],["min-inline","min-inline-size",[...e,["auto","auto"],...r,...t]],["max-inline","max-inline-size",[...e,["none","none"],...r,...t]],["block","block-size",[...e,["auto","auto"],...o]],["min-block","min-block-size",[...e,["auto","auto"],...o]],["max-block","max-block-size",[...e,["none","none"],...o]]];for(const[n,s,i]of a){for(const[t,e]of i)E(`${n}-${t}`,[[s,e]],{category:"sizing"});W({spacingKeys:!0,name:n,prop:s,supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t,token:e,ctx:r})=>e.negative?null:Gt(t)?`calc(var(--spacing) * ${t})`:Jt(t)?`calc(${t} * 100%)`:n.includes("inline")?V(r,"container",t,"container"):null,description:`${s} utility (spacing, fraction, arbitrary, custom property, keywords)`,category:"sizing"})}}var Ze=()=>r([n("--baro-leading")]);function _e(t){w({name:`font-${t}`,match:e=>e===`font-${t}`,handler:(r,o)=>{const a=V(o,"fontFamily",t,"font");return a?[e("font-family",a)]:[e("font-weight",`var(--font-weight-${t})`)]},category:"typography"})}E("font-sans",[["font-family","var(--font-sans)"]],{category:"typography"}),E("font-serif",[["font-family","var(--font-serif)"]],{category:"typography"}),E("font-mono",[["font-family","var(--font-mono)"]],{category:"typography"}),E("text-xs",[["font-size","var(--text-xs)"],["line-height","var(--baro-leading, var(--text-xs--line-height))"]],{category:"typography"}),E("text-sm",[["font-size","var(--text-sm)"],["line-height","var(--baro-leading, var(--text-sm--line-height))"]],{category:"typography"}),E("text-base",[["font-size","var(--text-base)"],["line-height","var(--baro-leading, var(--text-base--line-height))"]],{category:"typography"}),E("text-lg",[["font-size","var(--text-lg)"],["line-height","var(--baro-leading, var(--text-lg--line-height))"]],{category:"typography"}),E("text-xl",[["font-size","var(--text-xl)"],["line-height","var(--baro-leading, var(--text-xl--line-height))"]],{category:"typography"}),E("text-2xl",[["font-size","var(--text-2xl)"],["line-height","var(--baro-leading, var(--text-2xl--line-height))"]],{category:"typography"}),E("text-3xl",[["font-size","var(--text-3xl)"],["line-height","var(--baro-leading, var(--text-3xl--line-height))"]],{category:"typography"}),E("text-4xl",[["font-size","var(--text-4xl)"],["line-height","var(--baro-leading, var(--text-4xl--line-height))"]],{category:"typography"}),E("text-5xl",[["font-size","var(--text-5xl)"],["line-height","var(--baro-leading, var(--text-5xl--line-height))"]],{category:"typography"}),E("text-6xl",[["font-size","var(--text-6xl)"],["line-height","var(--baro-leading, var(--text-6xl--line-height))"]],{category:"typography"}),E("text-7xl",[["font-size","var(--text-7xl)"],["line-height","var(--baro-leading, var(--text-7xl--line-height))"]],{category:"typography"}),E("text-8xl",[["font-size","var(--text-8xl)"],["line-height","var(--baro-leading, var(--text-8xl--line-height))"]],{category:"typography"}),E("text-9xl",[["font-size","var(--text-9xl)"],["line-height","var(--baro-leading, var(--text-9xl--line-height))"]],{category:"typography"}),_e("thin"),_e("extralight"),_e("light"),_e("normal"),_e("medium"),_e("semibold"),_e("bold"),_e("extrabold"),_e("black"),W({name:"font",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>V(e,"fontFamily",t,"font")??V(e,"fontWeight",t,"font-weight")??(/^(\d|\.\d)/.test(t)?t:null),handle:(t,r,o)=>"font"!==o.prefix?null:!o.arbitrary&&t.startsWith("var(--font-weight-")||Gt(t)?[e("font-weight",t)]:[e("font-family",t)],handleCustomProperty:(t,r,o)=>"font"!==o.prefix?null:t.startsWith("font-name:")?[e("font-family",`var(${t.replace("font-name:","")})`)]:[e("font-weight",`var(${t})`)],description:"font-weight utility (theme, number, arbitrary, custom property supported)",category:"typography"}),E("italic",[["font-style","italic"]],{category:"typography"}),E("not-italic",[["font-style","normal"]],{category:"typography"}),E("tracking-tighter",[["letter-spacing","var(--letter-spacing-tighter)"]],{category:"typography"}),E("tracking-tight",[["letter-spacing","var(--letter-spacing-tight)"]],{category:"typography"}),E("tracking-normal",[["letter-spacing","var(--letter-spacing-normal)"]],{category:"typography"}),E("tracking-wide",[["letter-spacing","var(--letter-spacing-wide)"]],{category:"typography"}),E("tracking-wider",[["letter-spacing","var(--letter-spacing-wider)"]],{category:"typography"}),E("tracking-widest",[["letter-spacing","var(--letter-spacing-widest)"]],{category:"typography"}),W({name:"tracking",prop:"letter-spacing",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>V(e,"letterSpacing",t,"letter-spacing")??(/^(\d|\.\d)/.test(t)?t:null),description:"letter-spacing utility (theme, arbitrary, custom property supported)",category:"typography"}),E("leading-none",[["--baro-leading","var(--leading-none, 1)"],["line-height","var(--leading-none, 1)"],Ze()],{category:"typography"}),E("leading-tight",[["--baro-leading","var(--leading-tight, 1.25)"],["line-height","var(--leading-tight, 1.25)"],Ze()],{category:"typography"}),E("leading-snug",[["--baro-leading","var(--leading-snug, 1.375)"],["line-height","var(--leading-snug, 1.375)"],Ze()],{category:"typography"}),E("leading-normal",[["--baro-leading","var(--leading-normal, 1.5)"],["line-height","var(--leading-normal, 1.5)"],Ze()],{category:"typography"}),E("leading-relaxed",[["--baro-leading","var(--leading-relaxed, 1.625)"],["line-height","var(--leading-relaxed, 1.625)"],Ze()],{category:"typography"}),E("leading-loose",[["--baro-leading","var(--leading-loose, 2)"],["line-height","var(--leading-loose, 2)"],Ze()],{category:"typography"}),W({name:"leading",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>{const r=N(e,"lineHeight",t);if(null!=r)return`var(--leading-${t}, ${r})`;const o=e.theme("lineHeight",t);return"string"==typeof o?o:Gt(t)},handle:t=>[e("--baro-leading",t),e("line-height",t),Ze()],handleCustomProperty:t=>[e("--baro-leading",`var(${t})`),e("line-height",`var(${t})`),Ze()],description:"line-height utility (theme, number, arbitrary, custom property supported)",category:"typography"}),E("text-left",[["text-align","left"]],{category:"typography"}),E("text-center",[["text-align","center"]],{category:"typography"}),E("text-right",[["text-align","right"]],{category:"typography"}),E("text-justify",[["text-align","justify"]],{category:"typography"}),E("text-start",[["text-align","start"]],{category:"typography"}),E("text-end",[["text-align","end"]],{category:"typography"});var qe=new Set(["length","size","percentage","absolute-size","relative-size"]),Ue=/^(xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large|larger|smaller)$/,He=/^-?(\d+\.?\d*|\.\d+)(px|r?em|r?lh|r?cap|r?ch|r?ex|r?ic|%|vh|vw|vmin|vmax|[sdl]v[hwib]|v[ib]|cq[whib]|cqmin|cqmax|pt|pc|in|cm|mm|q)$/i;function Ye(t){const e=/^([a-z-]+):(.+)$/.exec(t);return e&&("color"===e[1]||qe.has(e[1]))?{fontSize:"color"!==e[1],value:e[2]}:{fontSize:"0"===t||He.test(t)||Ue.test(t)||/^(calc|min|max|clamp)\(/.test(t),value:t}}E("text-inherit",[["color","inherit"]],{category:"typography"}),E("text-current",[["color","currentColor"]],{category:"typography"}),E("text-transparent",[["color","transparent"]],{category:"typography"}),E("truncate",[["overflow","hidden"],["text-overflow","ellipsis"],["white-space","nowrap"]],{category:"typography"}),E("text-ellipsis",[["text-overflow","ellipsis"]],{category:"typography"}),E("text-clip",[["text-overflow","clip"]],{category:"typography"}),W({name:"text",themeKey:"colors",supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handleBareValue:({value:t,ctx:e,extra:r})=>(r?.opacity?null:V(e,"fontSize",t,"text"))??(/^(\d|\.\d)/.test(t)?t:null),handle:(t,r,o,a)=>{if(a?.realThemeValue)return re("color",t,a);const n=o.arbitrary||o.customProperty?void 0:/^var\(--text-([\w-]+)\)$/.exec(t)?.[1];if(n)return st(r.theme("fontSize",n))?[e("font-size",t),e("line-height",`var(--baro-leading, var(--text-${n}--line-height))`)]:[e("font-size",t)];const s=Ye(t);return[e(s.fontSize?"font-size":"color",s.value)]},handleCustomProperty:t=>{const r=Ye(t);return[e(r.fontSize?"font-size":"color",`var(${r.value})`)]},description:"text color utility (theme, arbitrary, custom property supported)",category:"typography"}),W({name:"text",themeKey:"fontSize",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>{const a=r.theme("fontSize",t);return a?Array.isArray(a)?[e("font-size",a[0]),e("line-height",`var(--baro-leading, ${a[1]})`)]:[e("font-size",a)]:o.arbitrary?[e("font-size",t)]:null},handleCustomProperty:t=>[e("font-size",`var(${t})`)],description:"font-size utility (theme, arbitrary, custom property supported)",category:"typography"}),E("uppercase",[["text-transform","uppercase"]],{category:"typography"}),E("lowercase",[["text-transform","lowercase"]],{category:"typography"}),E("capitalize",[["text-transform","capitalize"]],{category:"typography"}),E("normal-case",[["text-transform","none"]],{category:"typography"}),E("underline",[["text-decoration-line","underline"]],{category:"typography"}),E("overline",[["text-decoration-line","overline"]],{category:"typography"}),E("line-through",[["text-decoration-line","line-through"]],{category:"typography"}),E("no-underline",[["text-decoration-line","none"]],{category:"typography"}),E("whitespace-normal",[["white-space","normal"]],{category:"typography"}),E("whitespace-nowrap",[["white-space","nowrap"]],{category:"typography"}),E("whitespace-pre",[["white-space","pre"]],{category:"typography"}),E("whitespace-pre-line",[["white-space","pre-line"]],{category:"typography"}),E("whitespace-pre-wrap",[["white-space","pre-wrap"]],{category:"typography"}),E("whitespace-break-spaces",[["white-space","break-spaces"]],{category:"typography"}),E("break-normal",[["overflow-wrap","normal"],["word-break","normal"]],{category:"typography"}),E("break-words",[["overflow-wrap","break-word"]],{category:"typography"}),E("break-all",[["word-break","break-all"]],{category:"typography"}),E("break-keep",[["word-break","keep-all"]],{category:"typography"}),E("antialiased",[["-webkit-font-smoothing","antialiased"],["-moz-osx-font-smoothing","grayscale"]],{category:"typography"}),E("subpixel-antialiased",[["-webkit-font-smoothing","auto"],["-moz-osx-font-smoothing","auto"]],{category:"typography"}),E("font-stretch-normal",[["font-stretch","normal"]],{category:"typography"}),E("font-stretch-ultra-condensed",[["font-stretch","ultra-condensed"]],{category:"typography"}),E("font-stretch-extra-condensed",[["font-stretch","extra-condensed"]],{category:"typography"}),E("font-stretch-condensed",[["font-stretch","condensed"]],{category:"typography"}),E("font-stretch-semi-condensed",[["font-stretch","semi-condensed"]],{category:"typography"}),E("font-stretch-semi-expanded",[["font-stretch","semi-expanded"]],{category:"typography"}),E("font-stretch-expanded",[["font-stretch","expanded"]],{category:"typography"}),E("font-stretch-extra-expanded",[["font-stretch","extra-expanded"]],{category:"typography"}),E("font-stretch-ultra-expanded",[["font-stretch","ultra-expanded"]],{category:"typography"}),W({name:"font-stretch",prop:"font-stretch",supportsArbitrary:!0,supportsCustomProperty:!0,description:"font-stretch utility (arbitrary, custom property supported)",category:"typography"}),E("normal-nums",[["font-variant-numeric","normal"]],{category:"typography"}),E("ordinal",[["font-variant-numeric","ordinal"]],{category:"typography"}),E("slashed-zero",[["font-variant-numeric","slashed-zero"]],{category:"typography"}),E("lining-nums",[["font-variant-numeric","lining-nums"]],{category:"typography"}),E("oldstyle-nums",[["font-variant-numeric","oldstyle-nums"]],{category:"typography"}),E("proportional-nums",[["font-variant-numeric","proportional-nums"]],{category:"typography"}),E("tabular-nums",[["font-variant-numeric","tabular-nums"]],{category:"typography"}),E("diagonal-fractions",[["font-variant-numeric","diagonal-fractions"]],{category:"typography"}),E("stacked-fractions",[["font-variant-numeric","stacked-fractions"]],{category:"typography"}),E("line-clamp-none",[["-webkit-line-clamp","none"]],{category:"typography"}),W({name:"line-clamp",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t),handle:t=>[e("overflow","hidden"),e("display","-webkit-box"),e("-webkit-box-orient","vertical"),e("-webkit-line-clamp",t)],handleCustomProperty:t=>[e("overflow","hidden"),e("display","-webkit-box"),e("-webkit-box-orient","vertical"),e("-webkit-line-clamp",`var(${t})`)],description:"line-clamp utility (number, arbitrary, custom property supported)",category:"typography"}),E("list-none",[["list-style-type","none"]],{category:"typography"}),E("list-disc",[["list-style-type","disc"]],{category:"typography"}),E("list-decimal",[["list-style-type","decimal"]],{category:"typography"}),W({name:"list",prop:"list-style-type",themeKey:"listStyleType",supportsArbitrary:!0,supportsCustomProperty:!0,description:"list-style-type utility (theme, arbitrary, custom property supported)",category:"typography"}),E("list-inside",[["list-style-position","inside"]],{category:"typography"}),E("list-outside",[["list-style-position","outside"]],{category:"typography"}),E("list-image-none",[["list-style-image","none"]],{category:"typography"}),W({name:"list-image",prop:"list-style-image",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>[e("list-style-image",`url(${t})`)],handleCustomProperty:t=>[e("list-style-image",`var(${t})`)],description:"list-style-image utility (arbitrary, custom property supported)",category:"typography"}),W({name:"decoration",themeKeys:["textDecorationThickness","colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,r,o,a)=>"textDecorationThickness"===a?.themeNamespace?[e("text-decoration-thickness",t)]:a?.realThemeValue?re("text-decoration-color",t,a):[e("text-decoration-color",t)],handleCustomProperty:t=>[e("text-decoration-color",`var(${t})`)],description:"text-decoration-color utility (theme, arbitrary, custom property supported)",category:"typography"}),E("decoration-solid",[["text-decoration-style","solid"]],{category:"typography"}),E("decoration-double",[["text-decoration-style","double"]],{category:"typography"}),E("decoration-dotted",[["text-decoration-style","dotted"]],{category:"typography"}),E("decoration-dashed",[["text-decoration-style","dashed"]],{category:"typography"}),E("decoration-wavy",[["text-decoration-style","wavy"]],{category:"typography"}),E("decoration-auto",[["text-decoration-thickness","auto"]],{category:"typography"}),E("decoration-from-font",[["text-decoration-thickness","from-font"]],{category:"typography"}),E("decoration-0",[["text-decoration-thickness","0px"]],{category:"typography"}),E("decoration-1",[["text-decoration-thickness","1px"]],{category:"typography"}),E("decoration-2",[["text-decoration-thickness","2px"]],{category:"typography"}),E("decoration-4",[["text-decoration-thickness","4px"]],{category:"typography"}),E("decoration-8",[["text-decoration-thickness","8px"]],{category:"typography"}),W({name:"decoration",prop:"text-decoration-thickness",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t)?`${t}px`:null,description:"text-decoration-thickness utility (arbitrary, custom property supported)",category:"typography"}),E("underline-offset-auto",[["text-underline-offset","auto"]],{category:"typography"}),E("underline-offset-0",[["text-underline-offset","0px"]],{category:"typography"}),E("underline-offset-1",[["text-underline-offset","1px"]],{category:"typography"}),E("underline-offset-2",[["text-underline-offset","2px"]],{category:"typography"}),E("underline-offset-4",[["text-underline-offset","4px"]],{category:"typography"}),E("underline-offset-8",[["text-underline-offset","8px"]],{category:"typography"}),W({name:"underline-offset",prop:"text-underline-offset",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t)?`${t}px`:null,description:"text-underline-offset utility (arbitrary, custom property supported)",category:"typography"}),E("text-wrap",[["text-wrap","wrap"]],{category:"typography"}),E("text-nowrap",[["text-wrap","nowrap"]],{category:"typography"}),E("text-balance",[["text-wrap","balance"]],{category:"typography"}),E("text-pretty",[["text-wrap","pretty"]],{category:"typography"}),W({name:"indent",prop:"text-indent",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t)?`calc(var(--spacing) * ${t})`:null,handleNegativeBareValue:({value:t})=>Gt(t)?`calc(var(--spacing) * -${t})`:null,description:"text-indent utility (spacing, negative, arbitrary, custom property supported)",category:"typography"}),E("align-baseline",[["vertical-align","baseline"]],{category:"typography"}),E("align-top",[["vertical-align","top"]],{category:"typography"}),E("align-middle",[["vertical-align","middle"]],{category:"typography"}),E("align-bottom",[["vertical-align","bottom"]],{category:"typography"}),E("align-text-top",[["vertical-align","text-top"]],{category:"typography"}),E("align-text-bottom",[["vertical-align","text-bottom"]],{category:"typography"}),E("align-sub",[["vertical-align","sub"]],{category:"typography"}),E("align-super",[["vertical-align","super"]],{category:"typography"}),W({name:"align",prop:"vertical-align",supportsArbitrary:!0,supportsCustomProperty:!0,description:"vertical-align utility (arbitrary, custom property supported)",category:"typography"}),E("hyphens-none",[["hyphens","none"]],{category:"typography"}),E("hyphens-manual",[["hyphens","manual"]],{category:"typography"}),E("hyphens-auto",[["hyphens","auto"]],{category:"typography"}),E("content-none",[["--baro-content","none"],["content","none"]],{category:"typography"}),W({name:"content",prop:"content",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>[e("--baro-content",t),e("content","var(--baro-content)")],handleCustomProperty:t=>[e("--baro-content",`var(${t})`),e("content","var(--baro-content)")],description:"content utility (arbitrary, custom property supported)",category:"typography"});var Ge=t=>[a("&::placeholder",[e("color",t)])];E("placeholder-inherit",Ge("inherit"),{category:"typography"}),E("placeholder-current",Ge("currentcolor"),{category:"typography"}),E("placeholder-transparent",Ge("transparent"),{category:"typography"}),W({name:"placeholder",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,e,r,o)=>o?.realThemeValue?[a("&::placeholder",re("color",t,o))]:te(t)?Ge(t):null,handleCustomProperty:t=>Ge(`var(${t})`),description:"placeholder color utility (theme, alpha, arbitrary, custom property)"}),W({name:"font-features",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>o.arbitrary?[e("font-feature-settings",t)]:null,handleCustomProperty:t=>[e("font-feature-settings",`var(${t.replace(/^[a-z-]+:(?=--)/,"")})`)],description:"font-feature-settings utility (arbitrary, custom property)",category:"typography"}),W({name:"tab",prop:"tab-size",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>/^\d+$/.test(t)?t:null,description:"tab-size utility (integer, arbitrary, custom property)",category:"typography"});var Xe=()=>r([n("--baro-gradient-position"),n("--baro-gradient-from","#0000","<color>"),n("--baro-gradient-via","#0000","<color>"),n("--baro-gradient-to","#0000","<color>"),n("--baro-gradient-stops"),n("--baro-gradient-via-stops"),n("--baro-gradient-from-position","0%","<length-percentage>"),n("--baro-gradient-via-position","50%","<length-percentage>"),n("--baro-gradient-to-position","100%","<length-percentage>")],"background");E("bg-fixed",[["background-attachment","fixed"]],{category:"background"}),E("bg-local",[["background-attachment","local"]],{category:"background"}),E("bg-scroll",[["background-attachment","scroll"]],{category:"background"}),E("bg-clip-border",[["background-clip","border-box"]],{category:"background"}),E("bg-clip-padding",[["background-clip","padding-box"]],{category:"background"}),E("bg-clip-content",[["background-clip","content-box"]],{category:"background"}),E("bg-clip-text",[["background-clip","text"]],{category:"background"}),E("bg-inherit",[["background-color","inherit"]],{category:"background"}),E("bg-current",[["background-color","currentColor"]],{category:"background"}),E("bg-transparent",[["background-color","transparent"]],{category:"background"}),E("bg-none",[["background-image","none"]],{category:"background"}),E("bg-origin-border",[["background-origin","border-box"]],{category:"background"}),E("bg-origin-padding",[["background-origin","padding-box"]],{category:"background"}),E("bg-origin-content",[["background-origin","content-box"]],{category:"background"}),[["bg-bottom","bottom"],["bg-center","center"],["bg-left","left"],["bg-left-bottom","left bottom"],["bg-left-top","left top"],["bg-right","right"],["bg-right-bottom","right bottom"],["bg-right-top","right top"],["bg-top","top"]].forEach(([t,e])=>{E(t,[["background-position",e]],{category:"background"})}),W({name:"bg-position",prop:"background-position",supportsArbitrary:!0,supportsCustomProperty:!0,description:"background-position utility (arbitrary, custom property supported)",category:"background"}),E("bg-repeat",[["background-repeat","repeat"]],{category:"background"}),E("bg-no-repeat",[["background-repeat","no-repeat"]],{category:"background"}),E("bg-repeat-x",[["background-repeat","repeat-x"]],{category:"background"}),E("bg-repeat-y",[["background-repeat","repeat-y"]],{category:"background"}),E("bg-repeat-round",[["background-repeat","round"]],{category:"background"}),E("bg-repeat-space",[["background-repeat","space"]],{category:"background"}),E("bg-auto",[["background-size","auto"]],{category:"background"}),E("bg-cover",[["background-size","cover"]],{category:"background"}),E("bg-contain",[["background-size","contain"]],{category:"background"}),W({name:"bg-size",prop:"background-size",supportsArbitrary:!0,supportsCustomProperty:!0,description:"background-size utility (arbitrary, custom property supported)",category:"background"});var Je=t=>[e("--baro-gradient-position",t),o("supports","(background-image: linear-gradient(in lab, red, red))",[e("--baro-gradient-position",`${t} in oklab`)]),e("background-image","linear-gradient(var(--baro-gradient-stops))")],Qe=t=>[e("--baro-gradient-position",`${t} in oklab`),e("background-image","linear-gradient(var(--baro-gradient-stops))")];[["bg-linear-to-t",Je("to top")],["bg-linear-to-tr",Je("to top right")],["bg-linear-to-r",Je("to right")],["bg-linear-to-br",Je("to bottom right")],["bg-linear-to-b",Je("to bottom")],["bg-linear-to-bl",Je("to bottom left")],["bg-linear-to-l",Je("to left")],["bg-linear-to-tl",Je("to top left")],["bg-gradient-to-t",Qe("to top")],["bg-gradient-to-tr",Qe("to top right")],["bg-gradient-to-r",Qe("to right")],["bg-gradient-to-br",Qe("to bottom right")],["bg-gradient-to-b",Qe("to bottom")],["bg-gradient-to-bl",Qe("to bottom left")],["bg-gradient-to-l",Qe("to left")],["bg-gradient-to-tl",Qe("to top left")]].forEach(([t,e])=>{E(t,e,{category:"background",priority:1e3})}),W({name:"bg-linear",prop:"background-image",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>Gt(t)?Je(`${t}deg`):o.arbitrary?[e("background-image",`linear-gradient(var(--baro-gradient-stops, ${t}))`)]:o.customProperty?[e("background-image",`linear-gradient(var(--baro-gradient-stops, var(${t})))`)]:null,handleCustomProperty:t=>[e("background-image",`linear-gradient(var(--baro-gradient-stops, var(${t})))`)],description:"linear-gradient background-image utility (angle, arbitrary, custom property supported)",category:"background"});var tr=(t,r,o)=>[e("--baro-gradient-position",r),e("background-image",`${t}(var(--baro-gradient-stops${o?`,${o}`:""}))`)];E("bg-radial",tr("radial-gradient","in oklab"),{category:"background"}),W({name:"bg-radial",prop:"background-image",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,r)=>r.arbitrary?tr("radial-gradient",t,t):r.customProperty?tr("radial-gradient",`var(${t})`,`var(${t})`):null,handleCustomProperty:t=>tr("radial-gradient",`var(${t})`,`var(${t})`),description:"radial-gradient background-image utility (arbitrary, custom property supported)",category:"background"}),E("bg-conic",tr("conic-gradient","in oklab"),{category:"background"}),W({name:"bg-conic",prop:"background-image",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,r)=>r.arbitrary||r.customProperty||!Gt(t)?r.arbitrary?tr("conic-gradient",t,t):r.customProperty?tr("conic-gradient",`var(${t})`,`var(${t})`):null:tr("conic-gradient",`from ${t}deg in oklab`),handleCustomProperty:t=>tr("conic-gradient",`var(${t})`,`var(${t})`),description:"conic-gradient background-image utility (angle, arbitrary, custom property supported)",category:"background"});var er="--baro-gradient",rr=(t,r)=>{const o="string"==typeof r?[e(`${er}-${t}`,r)]:r;return"via"===t?[Xe(),...o,e(`${er}-via-stops`,`var(${er}-position), var(${er}-from) var(${er}-from-position), var(${er}-via) var(${er}-via-position), var(${er}-to) var(${er}-to-position)`),e(`${er}-stops`,`var(${er}-via-stops)`)]:[Xe(),...o,e(`${er}-stops`,`var(${er}-via-stops, var(${er}-position), var(${er}-from) var(${er}-from-position), var(${er}-to) var(${er}-to-position))`)]};["from","via","to"].forEach(t=>{W({name:t,themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(r,o,a,n)=>n?.realThemeValue?rr(t,re(`${er}-${t}`,r,n)):Xt(r)?[Xe(),e(`${er}-${t}-position`,r)]:Gt(r)?[Xe(),e(`${er}-${t}-position`,`${r}%`)]:te(r)?rr(t,r):null,handleCustomProperty:r=>[e(`--baro-gradient-${t}`,`var(${r})`)],description:`${t} gradient stop utility (color, percent, custom property, arbitrary supported)`,category:"background"}),W({name:`${t}-position`,supportsArbitrary:!0,supportsCustomProperty:!0,handle:r=>[e(`--baro-gradient-${t}-position`,r)],handleCustomProperty:r=>[e(`--baro-gradient-${t}-position`,`var(${r})`)],description:`${t}-position gradient stop position utility (percent, custom property, arbitrary supported)`,category:"background"})});var or={position:"background-position",percentage:"background-position",size:"background-size",length:"background-size","bg-size":"background-size",image:"background-image",url:"background-image"};function ar(t){const e=/^([a-z-]+):(.+)$/.exec(t),r=e?or[e[1]]:void 0;return e&&r?[r,e[2]]:null}W({name:"bg",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,r,o,a)=>{if(t.startsWith("url("))return[e("background-image",t)];const n=ar(t);if(n)return[e(n[0],n[1])];if(a?.realThemeValue)return re("background-color",t,a);if(te(t)){const r=te(t);return t.startsWith("color:")?[e("background-color",r||t)]:[e("background-color",t)]}return Xt(t)?[e("background-size",t)]:null},handleCustomProperty:t=>{const r=ar(t);return r?[e(r[0],`var(${r[1]})`)]:[e("background-color",`var(${t})`)]},description:"background-size utility (arbitrary, custom property supported)",category:"background"}),E("rounded-none",[["border-radius","0px"]],{category:"borders"}),E("rounded-sm",[["border-radius","var(--radius-sm)"]],{category:"borders"}),E("rounded",[["border-radius","0.25rem"]],{category:"borders"}),E("rounded-md",[["border-radius","var(--radius-md)"]],{category:"borders"}),E("rounded-lg",[["border-radius","var(--radius-lg)"]],{category:"borders"}),E("rounded-xl",[["border-radius","var(--radius-xl)"]],{category:"borders"}),E("rounded-2xl",[["border-radius","var(--radius-2xl)"]],{category:"borders"}),E("rounded-3xl",[["border-radius","var(--radius-3xl)"]],{category:"borders"}),E("rounded-4xl",[["border-radius","var(--radius-4xl)"]],{category:"borders"}),E("rounded-xs",[["border-radius","var(--radius-xs)"]],{category:"borders"});var nr="calc(infinity * 1px)";function sr(t,r){w({name:t,match:e=>e===t,handler:(t,o)=>{const a=N(o,"borderRadius","full"),n=null!=a&&"9999px"!==a&&a!==nr?"var(--radius-full)":nr;return r.map(t=>e(t,n))},category:"borders"})}sr("rounded-full",["border-radius"]),[["rounded-t",["border-top-left-radius","border-top-right-radius"]],["rounded-r",["border-top-right-radius","border-bottom-right-radius"]],["rounded-b",["border-bottom-right-radius","border-bottom-left-radius"]],["rounded-l",["border-top-left-radius","border-bottom-left-radius"]],["rounded-tl",["border-top-left-radius"]],["rounded-tr",["border-top-right-radius"]],["rounded-br",["border-bottom-right-radius"]],["rounded-bl",["border-bottom-left-radius"]],["rounded-s",["border-start-start-radius","border-end-start-radius"]],["rounded-e",["border-start-end-radius","border-end-end-radius"]],["rounded-ss",["border-start-start-radius"]],["rounded-se",["border-start-end-radius"]],["rounded-es",["border-end-start-radius"]],["rounded-ee",["border-end-end-radius"]]].forEach(([t,r])=>{const o=r,a=o[0].startsWith("border-start")||o[0].startsWith("border-end");E(`${t}-none`,o.map(t=>[t,a?"0":"0px"]),{category:"borders"}),E(`${t}-sm`,o.map(t=>[t,"var(--radius-sm)"]),{category:"borders"}),E(`${t}`,o.map(t=>[t,"0.25rem"]),{category:"borders"}),E(`${t}-md`,o.map(t=>[t,"var(--radius-md)"]),{category:"borders"}),E(`${t}-lg`,o.map(t=>[t,"var(--radius-lg)"]),{category:"borders"}),E(`${t}-xl`,o.map(t=>[t,"var(--radius-xl)"]),{category:"borders"}),E(`${t}-2xl`,o.map(t=>[t,"var(--radius-2xl)"]),{category:"borders"}),E(`${t}-3xl`,o.map(t=>[t,"var(--radius-3xl)"]),{category:"borders"}),E(`${t}-4xl`,o.map(t=>[t,"var(--radius-4xl)"]),{category:"borders"}),E(`${t}-xs`,o.map(t=>[t,"var(--radius-xs)"]),{category:"borders"}),sr(`${t}-full`,o),W({name:t,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>!a&&Gt(t)?`calc(var(--spacing) * ${t})`:V(e,"borderRadius",t,"radius"),handle:t=>o.map(r=>e(r,t)),description:`${t} utility (spacing, arbitrary, custom property support)`,category:"borders"})}),W({name:"rounded",handle:(t,r,o)=>"rounded"===o.prefix?[e("border-radius",t)]:null,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>Gt(t)?`calc(var(--spacing) * ${t})`:V(e,"borderRadius",t,"radius"),description:"border-radius utility (spacing, arbitrary, custom property support)",category:"borders"});var ir=()=>r([n("--baro-border-style","solid")]),lr=(t,e)=>e?.themeKey&&"DEFAULT"!==e.themeKey?`var(--border-width-${e.themeKey.replace(".","\\.")})`:t,cr=(t,r)=>[ir(),...t.map(t=>e(t.replace("width","style"),"var(--baro-border-style)")),...t.map(t=>e(t,r))];[["border-0","0px"],["border-2","2px"],["border-4","4px"],["border-8","8px"],["border","1px"]].forEach(([t,e])=>{E(t,[ir,["border-style","var(--baro-border-style)"],["border-width",e]],{category:"borders"})}),[["border-x",["border-inline-width"]],["border-y",["border-block-width"]],["border-bs",["border-block-start-width"]],["border-be",["border-block-end-width"]],["border-s",["border-inline-start-width"]],["border-e",["border-inline-end-width"]],["border-t",["border-top-width"]],["border-r",["border-right-width"]],["border-b",["border-bottom-width"]],["border-l",["border-left-width"]]].forEach(([t,r])=>{const o=r,a=t=>[ir,...o.map(t=>[t.replace("width","style"),"var(--baro-border-style)"]),...o.map(e=>[e,t])];E(`${t}-0`,a("0px")),E(`${t}-2`,a("2px")),E(`${t}-4`,a("4px")),E(`${t}-8`,a("8px")),E(`${t}`,a("1px")),W({name:t,themeKeys:["colors","borderWidth"],supportsOpacity:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t)?`${t}px`:null,handle:(t,r,a,n)=>"borderWidth"===n?.themeNamespace?cr(o,lr(t,n)):n?.realThemeValue?o.flatMap(e=>re(e.replace("width","color"),t,n)):te(t)?o.map(r=>e(r.replace("width","color"),t)):a.arbitrary||Xt(t)?cr(o,t):null,handleCustomProperty:t=>t.startsWith("length:")?cr(o,`var(${t.replace("length:","")})`):o.map(r=>e(r.replace("width","color"),`var(${t})`)),description:`${t} utility (number, arbitrary, custom property support)`,category:"borders"})}),E("border-inherit",[["border-color","inherit"]],{category:"borders"}),E("border-current",[["border-color","currentColor"]],{category:"borders"}),E("border-transparent",[["border-color","transparent"]],{category:"borders"}),E("border-solid",[["--baro-border-style","solid"],["border-style","solid"]],{category:"borders"}),E("border-dashed",[["--baro-border-style","dashed"],["border-style","dashed"]],{category:"borders"}),E("border-dotted",[["--baro-border-style","dotted"],["border-style","dotted"]],{category:"borders"}),E("border-double",[["--baro-border-style","double"],["border-style","double"]],{category:"borders"}),E("border-hidden",[["--baro-border-style","hidden"],["border-style","hidden"]],{category:"borders"}),E("border-none",[["--baro-border-style","none"],["border-style","none"]],{category:"borders"}),Object.entries({x:["border-inline-start","border-inline-end","border-inline-style"],y:["border-top","border-bottom","border-bottom-style","border-top-style"]}).forEach(([t,[r,o,...n]])=>{const s=`--baro-divide-${t}-reverse`,i=t=>[ir(),a(":where(& > :not(:last-child))",[e(s,"0"),...n.map(t=>e(t,"var(--baro-border-style)")),e(`${r}-width`,`calc(${t} * var(${s}))`),e(`${o}-width`,`calc(${t} * calc(1 - var(${s})))`)])];E(`divide-${t}`,i("1px"),{category:"borders"}),E(`divide-${t}-reverse`,[a(":where(& > :not(:last-child))",[e(s,"1")])],{category:"borders"}),W({name:`divide-${t}`,themeKeys:["divideWidth","borderWidth"],supportsArbitrary:!0,supportsCustomProperty:!0,handleCustomProperty:t=>i(`var(${t.replace(/^length:/,"")})`),handleBareValue:({value:t})=>/^\d+$/.test(t)?`${t}px`:null,handle:(t,e,r,o)=>i("borderWidth"===o?.themeNamespace?lr(t,o):t),description:`divide-${t} width utility`,category:"borders"})}),W({name:"border",themeKeys:["colors","borderWidth"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,r,o,a)=>"borderWidth"===a?.themeNamespace?cr(["border-width"],lr(t,a)):a?.realThemeValue?re("border-color",t,a):o.arbitrary?Xt(t)?cr(["border-width"],t):[e("border-color",t)]:Gt(t)?cr(["border-width"],`${t}px`):te(t)?[e("border-color",t)]:null,handleCustomProperty:t=>t.startsWith("length:")?cr(["border-width"],`var(${t.replace("length:","")})`):[e("border-color",`var(${t})`)],description:"border-width utility (number, arbitrary, custom property support)",category:"borders"});var pr=()=>r([n("--baro-outline-style","solid")]),ur=t=>[pr(),e("outline-style","var(--baro-outline-style)"),e("outline-width",t)];[["outline-0","0px"],["outline-1","1px"],["outline-2","2px"],["outline-4","4px"],["outline-8","8px"]].forEach(([t,e])=>{E(t,[pr,["outline-style","var(--baro-outline-style)"],["outline-width",e]],{category:"borders"})}),E("outline-inherit",[["outline-color","inherit"]],{category:"borders"}),E("outline-current",[["outline-color","currentColor"]],{category:"borders"}),E("outline-transparent",[["outline-color","transparent"]],{category:"borders"}),E("outline-none",[["--baro-outline-style","none"],["outline-style","none"]],{category:"borders"}),E("outline-hidden",[["--baro-outline-style","none"],["outline-style","none"],o("media","(forced-colors: active)",[e("outline","2px solid transparent"),e("outline-offset","2px")])],{category:"borders"}),E("outline",[pr,["outline-style","var(--baro-outline-style)"],["outline-width","1px"]],{category:"borders"}),["solid","dashed","dotted","double"].forEach(t=>{E(`outline-${t}`,[["--baro-outline-style",t],["outline-style",t]],{category:"borders"})}),E("outline-offset-0",[["outline-offset","0px"]],{category:"borders"}),E("outline-offset-1",[["outline-offset","1px"]],{category:"borders"}),E("outline-offset-2",[["outline-offset","2px"]],{category:"borders"}),E("outline-offset-4",[["outline-offset","4px"]],{category:"borders"}),E("outline-offset-8",[["outline-offset","8px"]],{category:"borders"}),W({name:"outline-offset",prop:"outline-offset",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t)?`${t}px`:null,description:"outline-offset utility (number, arbitrary, custom property support)",category:"borders"}),W({name:"outline",themeKeys:["colors","outlineWidth"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,r,o,a)=>"outlineWidth"===a?.themeNamespace?ur(t):a?.realThemeValue?re("outline-color",t,a):te(t)?[e("outline-color",t)]:Gt(t)?ur(`${t}px`):o.arbitrary?Xt(t)?ur(t):[e("outline-color",t)]:null,handleCustomProperty:t=>t.startsWith("color:")?[e("outline-color",t.replace("color:",""))]:t.startsWith("length:")?ur(`var(${t.replace("length:","")})`):[e("outline-color",`var(${t})`)],description:"outline-color utility (theme colors, arbitrary, custom property support)",category:"borders"}),W({name:"outline",prop:"outline-width",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Gt(t)?`${t}px`:null,description:"outline-width utility (number, arbitrary, custom property support)",category:"borders"});var dr=t=>[a(":where(& > :not(:last-child))",[e("border-color",t)])];E("divide-inherit",dr("inherit"),{category:"borders"}),E("divide-current",dr("currentColor"),{category:"borders"}),E("divide-transparent",dr("transparent"),{category:"borders"}),W({name:"divide",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,e,r,o)=>"divide"!==r.prefix?null:o?.realThemeValue?[a(":where(& > :not(:last-child))",re("border-color",t,o))]:te(t)?dr(t):null,handleCustomProperty:(t,e,r)=>"divide"===r.prefix?dr(`var(${t})`):[],description:"divide-color utility (theme, alpha, arbitrary, custom property)",category:"borders"});var yr="var(--baro-rotate-x,) var(--baro-rotate-y,) var(--baro-rotate-z,) var(--baro-skew-x,) var(--baro-skew-y,)",hr=(t,r)=>[e(`--baro-rotate-${t}`,r),e("transform",yr)],gr=(t,r)=>[e(`--baro-skew-${t}`,r),e("transform",yr)],mr=()=>r([n("--baro-scale-x","1"),n("--baro-scale-y","1"),n("--baro-scale-z","1")]),fr=(t,r)=>[mr(),e(`--baro-scale-${t}`,r),e("scale","z"===t?"var(--baro-scale-x) var(--baro-scale-y) var(--baro-scale-z)":"var(--baro-scale-x) var(--baro-scale-y)")];E("transform-none",[["transform","none"]],{category:"transform"}),E("transform-gpu",[["transform",`translateZ(0) ${yr}`]],{category:"transform"}),E("transform-cpu",[["transform",yr]]),E("transform-3d",[["transform-style","preserve-3d"]],{category:"transform"}),E("transform-flat",[["transform-style","flat"]],{category:"transform"}),W({name:"transform",prop:"transform",supportsCustomProperty:!0,handleCustomProperty:t=>[e("transform",`var(${t})`)],description:"transform utility for custom property (transform-(--my-transform))",category:"transform"}),W({name:"transform",prop:"transform",supportsArbitrary:!0,handle:t=>[e("transform",t)],description:"transform utility for arbitrary value (transform-[...])",category:"transform"}),E("backface-hidden",[["backface-visibility","hidden"]],{category:"transform"}),E("backface-visible",[["backface-visibility","visible"]],{category:"transform"}),E("perspective-dramatic",[["perspective","var(--perspective-dramatic)"]],{category:"transform"}),E("perspective-near",[["perspective","var(--perspective-near)"]],{category:"transform"}),E("perspective-normal",[["perspective","var(--perspective-normal)"]],{category:"transform"}),E("perspective-midrange",[["perspective","var(--perspective-midrange)"]],{category:"transform"}),E("perspective-distant",[["perspective","var(--perspective-distant)"]],{category:"transform"}),E("perspective-none",[["perspective","none"]],{category:"transform"}),E("perspective-origin-center",[["perspective-origin","center"]],{category:"transform"}),E("perspective-origin-top",[["perspective-origin","top"]],{category:"transform"}),E("perspective-origin-top-right",[["perspective-origin","top right"]],{category:"transform"}),E("perspective-origin-right",[["perspective-origin","right"]],{category:"transform"}),E("perspective-origin-bottom-right",[["perspective-origin","bottom right"]],{category:"transform"}),E("perspective-origin-bottom",[["perspective-origin","bottom"]],{category:"transform"}),E("perspective-origin-bottom-left",[["perspective-origin","bottom left"]],{category:"transform"}),E("perspective-origin-left",[["perspective-origin","left"]],{category:"transform"}),E("perspective-origin-top-left",[["perspective-origin","top left"]],{category:"transform"}),W({name:"perspective-origin",prop:"perspective-origin",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>[e("perspective-origin",t)],handleCustomProperty:t=>[e("perspective-origin",`var(${t})`)],description:"perspective-origin utility (named, arbitrary, custom property supported)",category:"transform"}),W({name:"perspective",prop:"perspective",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>[e("perspective",t)],handleCustomProperty:t=>[e("perspective",`var(${t})`)],description:"perspective utility (named, arbitrary, custom property supported)",category:"transform"}),E("rotate-none",[["rotate","none"]],{category:"transform"}),W({name:"rotate-x",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(Gt(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return hr("x",`rotateX(${o}${e})`)}return hr("x",`rotateX(${t})`)},handleCustomProperty:t=>hr("x",`rotateX(var(${t}))`),description:"rotate-x utility (named, arbitrary, custom property supported)",category:"transform"}),W({name:"rotate-y",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(Gt(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return hr("y",`rotateY(${o}${e})`)}return hr("y",`rotateY(${t})`)},handleCustomProperty:t=>hr("y",`rotateY(var(${t}))`),description:"rotate-y utility (named, arbitrary, custom property supported)",category:"transform"}),W({name:"rotate-z",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(Gt(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return hr("z",`rotateZ(${o}${e})`)}return hr("z",`rotateZ(${t})`)},handleCustomProperty:t=>hr("z",`rotateZ(var(${t}))`),description:"rotate-z utility (named, arbitrary, custom property supported)",category:"transform"}),W({name:"rotate",prop:"rotate",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,r,{negative:o})=>{if(Gt(t)||o){const r=`${Math.abs(Number(t))}deg`;return o||String(t).startsWith("-")?[e("rotate",`calc(${r} * -1)`)]:[e("rotate",r)]}return[e("rotate",t)]},handleCustomProperty:t=>[e("rotate",`var(${t})`)],description:"rotate utility (named, arbitrary, custom property supported)",category:"transform"}),E("scale-none",[["scale","none"]],{category:"transform"}),E("scale-3d",[mr,["scale","var(--baro-scale-x) var(--baro-scale-y) var(--baro-scale-z)"]],{category:"transform"}),W({name:"scale-x",prop:"scale",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r,arbitrary:o})=>{if(o)return fr("x",t);if(Gt(t)||r){const e=`${Math.abs(Number(t))}%`,o=r||String(t).startsWith("-")?"-":"";return fr("x",`calc(${e} * ${o}1)`)}return fr("x",t)},handleCustomProperty:t=>fr("x",`var(${t})`),description:"scale-x utility (named, arbitrary, custom property supported)",category:"transform"}),W({name:"scale-y",prop:"scale",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r,arbitrary:o})=>{if(o)return fr("y",t);if(Gt(t)||r){const e=`${Math.abs(Number(t))}%`,o=r||String(t).startsWith("-")?"-":"";return fr("y",`calc(${e} * ${o}1)`)}return fr("y",t)},handleCustomProperty:t=>fr("y",`var(${t})`),description:"scale-y utility (named, arbitrary, custom property supported)",category:"transform"}),W({name:"scale-z",prop:"scale",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r,arbitrary:o})=>{if(o)return fr("z",t);if(Gt(t)||r){const e=`${Math.abs(Number(t))}%`,o=r||String(t).startsWith("-")?"-":"";return fr("z",`calc(${e} * ${o}1)`)}return fr("z",t)},handleCustomProperty:t=>fr("z",`var(${t})`),description:"scale-z utility (named, arbitrary, custom property supported)",category:"transform"}),W({name:"scale",prop:"scale",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,r,{negative:o,arbitrary:a})=>{if(a)return[e("scale",`${t}`)];if(Gt(t)||o){const r=`${Math.abs(Number(t))}%`;return o||String(t).startsWith("-")?[e("scale",`calc(${r} * -1) calc(${r} * -1)`)]:[e("scale",`${r} ${r}`)]}return[e("scale",t)]},handleCustomProperty:t=>[e("scale",`var(${t}) var(${t})`)],description:"scale utility (named, arbitrary, custom property supported)",category:"transform"}),W({name:"skew-x",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(Gt(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return gr("x",`skewX(${o}${e})`)}return gr("x",`skewX(${t})`)},handleCustomProperty:t=>gr("x",`skewX(var(${t}))`),description:"skew-x utility (named, arbitrary, custom property supported)",category:"transform"}),W({name:"skew-y",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(Gt(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return gr("y",`skewY(${o}${e})`)}return gr("y",`skewY(${t})`)},handleCustomProperty:t=>gr("y",`skewY(var(${t}))`),description:"skew-y utility (named, arbitrary, custom property supported)",category:"transform"}),W({name:"skew",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,r,{negative:o})=>{if(Gt(t)||o){const r=`${Math.abs(Number(t))}deg`,a=o||String(t).startsWith("-")?"-":"";return[e("--baro-skew-x",`skewX(${a}${r})`),e("--baro-skew-y",`skewY(${a}${r})`),e("transform",yr)]}return[e("--baro-skew-x",`skewX(${t})`),e("--baro-skew-y",`skewY(${t})`),e("transform",yr)]},handleCustomProperty:t=>[e("--baro-skew-x",`skewX(var(${t}))`),e("--baro-skew-y",`skewY(var(${t}))`),e("transform",yr)],description:"skew utility (named, arbitrary, custom property supported)",category:"transform"}),E("origin-center",[["transform-origin","center"]],{category:"transform"}),E("origin-top",[["transform-origin","top"]],{category:"transform"}),E("origin-top-right",[["transform-origin","top right"]],{category:"transform"}),E("origin-right",[["transform-origin","right"]],{category:"transform"}),E("origin-bottom-right",[["transform-origin","bottom right"]],{category:"transform"}),E("origin-bottom",[["transform-origin","bottom"]],{category:"transform"}),E("origin-bottom-left",[["transform-origin","bottom left"]],{category:"transform"}),E("origin-left",[["transform-origin","left"]],{category:"transform"}),E("origin-top-left",[["transform-origin","top left"]],{category:"transform"}),W({name:"origin",prop:"transform-origin",supportsCustomProperty:!0,supportsArbitrary:!0,description:"transform-origin utility for custom property (origin-(--my-transform-origin))",category:"transform"});var br=()=>r([n("--baro-translate-x","0"),n("--baro-translate-y","0"),n("--baro-translate-z","0")]),vr=(t,r)=>[br(),e(`--baro-translate-${t}`,r),e("translate","z"===t?"var(--baro-translate-x) var(--baro-translate-y) var(--baro-translate-z)":"var(--baro-translate-x) var(--baro-translate-y)")],xr=(t,e)=>[br,[`--baro-translate-${t}`,e],["translate","z"===t?"var(--baro-translate-x) var(--baro-translate-y) var(--baro-translate-z)":"var(--baro-translate-x) var(--baro-translate-y)"]];E("translate-none",[["translate","none"]],{category:"transform"}),E("translate-px",[["translate","1px 1px"]],{category:"transform"}),E("-translate-px",[["translate","-1px -1px"]],{category:"transform"}),E("translate-full",[br,["--baro-translate-x","100%"],["--baro-translate-y","100%"],["translate","var(--baro-translate-x) var(--baro-translate-y)"]],{category:"transform"}),E("-translate-full",[br,["--baro-translate-x","-100%"],["--baro-translate-y","-100%"],["translate","var(--baro-translate-x) var(--baro-translate-y)"]],{category:"transform"}),E("translate-x-px",xr("x","1px"),{category:"transform"}),E("-translate-x-px",xr("x","-1px"),{category:"transform"}),E("translate-x-full",xr("x","100%"),{category:"transform"}),E("-translate-x-full",xr("x","-100%"),{category:"transform"}),E("translate-y-px",xr("y","1px"),{category:"transform"}),E("-translate-y-px",xr("y","-1px"),{category:"transform"}),E("translate-y-full",xr("y","100%"),{category:"transform"}),E("-translate-y-full",xr("y","-100%"),{category:"transform"}),E("translate-z-px",xr("z","1px"),{category:"transform"}),E("-translate-z-px",xr("z","-1px"),{category:"transform"}),W({name:"translate-x",prop:"translate",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,{negative:r})=>{if(t.includes("/")&&Jt(t)){return vr("x",`calc(${t} * 100%)`)}if(Gt(t)||r){return vr("x",`calc(var(--spacing) * ${t})`)}return vr("x",t)},handleCustomProperty:t=>vr("x",`var(${t})`),description:"translate-x utility (spacing, fraction, arbitrary, custom property, negative)",category:"transform"}),W({name:"translate-y",prop:"translate",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,{negative:r})=>{if(t.includes("/")&&Jt(t)){return vr("y",`calc(${t} * 100%)`)}if(Gt(t)||r){return vr("y",`calc(var(--spacing) * ${t})`)}return vr("y",t)},handleCustomProperty:t=>vr("y",`var(${t})`),description:"translate-y utility (spacing, fraction, arbitrary, custom property, negative)",category:"transform"}),W({name:"translate-z",prop:"translate",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,{negative:r})=>{if(t.includes("/")&&Jt(t)){return vr("z",`calc(${t} * 100%)`)}if(Gt(t)||r){return vr("z",`calc(var(--spacing) * ${t})`)}return vr("z",t)},handleCustomProperty:t=>vr("z",`var(${t})`),description:"translate-z utility (spacing, fraction, arbitrary, custom property, negative)",category:"transform"}),W({name:"translate",prop:"translate",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,{negative:o})=>{if(t.includes("/")&&Jt(t)){const r=`calc(${t} * 100%)`;return[e("translate",`${r} ${r}`)]}if(Gt(t)||o){const r=`calc(var(--spacing) * ${t})`;return[e("translate",`${r} ${r}`)]}return[e("translate",`${t} ${t}`)]},handleCustomProperty:t=>[e("translate",`var(${t}) var(${t})`)],description:"translate utility (spacing, fraction, arbitrary, custom property, negative)",category:"transform"});var kr=/^(length|number|percentage):(.+)$/,wr=/^(\d*\.)?\d+(px|em|rem|vh|vw|vmin|vmax|%|in|cm|mm|pt|pc|ex|ch|q|lh|rlh|svh|lvh|dvh|cqw|cqh)$/i;E("fill-inherit",[["fill","inherit"]],{category:"svg"}),E("fill-current",[["fill","currentColor"]],{category:"svg"}),E("fill-transparent",[["fill","transparent"]],{category:"svg"}),E("fill-black",[["fill","#000"]],{category:"svg"}),E("fill-white",[["fill","#fff"]],{category:"svg"}),W({name:"fill",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o,a)=>a?.realThemeValue?[e("fill",`var(--color-${a.realThemeValue})`)]:[e("fill",t)],description:"fill utility (static, theme, arbitrary, custom property supported)",category:"svg"}),E("stroke-inherit",[["stroke","inherit"]],{category:"svg"}),E("stroke-current",[["stroke","currentColor"]],{category:"svg"}),E("stroke-transparent",[["stroke","transparent"]],{category:"svg"}),E("stroke-black",[["stroke","#000"]],{category:"svg"}),E("stroke-white",[["stroke","#fff"]],{category:"svg"}),W({name:"stroke",themeKeys:["colors","strokeWidth"],supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o,a)=>{if(Gt(t)||"strokeWidth"===a?.themeNamespace)return[e("stroke-width",t)];if(o.arbitrary){const r=kr.exec(t);if(r)return[e("stroke-width",r[2])];if(!te(t)&&(wr.test(t)||/^calc\(/.test(t)))return[e("stroke-width",t)]}return a?.realThemeValue?[e("stroke",`var(--color-${a.realThemeValue})`)]:[e("stroke",t)]},handleCustomProperty:t=>{const r=kr.exec(t);return r?[e("stroke-width",`var(${r[2]})`)]:[e("stroke",`var(${t})`)]},description:"stroke utility (static, theme, arbitrary, custom property supported)",category:"svg"}),E("forced-color-adjust-auto",[["forced-color-adjust","auto"]],{category:"accessibility"}),E("forced-color-adjust-none",[["forced-color-adjust","none"]],{category:"accessibility"}),P("hover",["&:hover"],{order:50,source:"pseudo",wrap:()=>[o("media","(hover: hover)",[])]}),P("focus",["&:focus"],{order:50,source:"pseudo"}),P("active",["&:active"],{order:50,source:"pseudo"}),P("visited",["&:visited"],{order:50,source:"pseudo"}),P("focus-visible",["&:focus-visible"],{order:50,source:"pseudo"}),P("focus-within",["&:focus-within"],{order:50,source:"pseudo"}),P("disabled",["&:disabled"],{source:"pseudo"}),P("checked",["&:checked"],{source:"pseudo"}),P("required",["&:required"],{source:"pseudo"}),P("invalid",["&:invalid"],{source:"pseudo"}),P("enabled",["&:enabled"],{source:"pseudo"}),P("indeterminate",["&:indeterminate"],{source:"pseudo"}),P("default",["&:default"],{source:"pseudo"}),P("optional",["&:optional"],{source:"pseudo"}),P("valid",["&:valid"],{source:"pseudo"}),P("user-valid",["&:user-valid"],{source:"pseudo"}),P("user-invalid",["&:user-invalid"],{source:"pseudo"}),P("in-range",["&:in-range"],{source:"pseudo"}),P("out-of-range",["&:out-of-range"],{source:"pseudo"}),P("placeholder-shown",["&:placeholder-shown"],{source:"pseudo"}),P("autofill",["&:autofill"],{source:"pseudo"}),P("read-only",["&:read-only"],{source:"pseudo"}),P("first",["&:first-child"],{source:"pseudo"}),P("last",["&:last-child"],{source:"pseudo"}),P("only",["&:only-child"],{source:"pseudo"}),P("odd",["&:nth-child(odd)"],{source:"pseudo"}),P("even",["&:nth-child(even)"],{source:"pseudo"}),P("first-of-type",["&:first-of-type"],{source:"pseudo"}),P("last-of-type",["&:last-of-type"],{source:"pseudo"}),P("only-of-type",["&:only-of-type"],{source:"pseudo"}),P("empty",["&:empty"],{source:"pseudo"}),P("prefers-contrast-more",["&"],{order:5,wrap:()=>[o("media","(prefers-contrast: more)",[],"media")],source:"media"}),P("prefers-contrast-less",["&"],{order:5,wrap:()=>[o("media","(prefers-contrast: less)",[],"media")],source:"media"}),P("contrast-more",["&"],{order:5,wrap:()=>[o("media","(prefers-contrast: more)",[],"media")],source:"media"}),P("contrast-less",["&"],{order:5,wrap:()=>[o("media","(prefers-contrast: less)",[],"media")],source:"media"}),P("noscript",["&"],{order:5,wrap:()=>[o("media","(scripting: none)",[],"media")],source:"media"}),P("forced-colors",["&"],{order:5,wrap:()=>[o("media","(forced-colors: active)",[],"media")],source:"media"}),P("pointer-coarse",["&"],{order:5,wrap:()=>[o("media","(pointer: coarse)",[],"media")],source:"media"}),P("pointer-fine",["&"],{order:5,wrap:()=>[o("media","(pointer: fine)",[],"media")],source:"media"}),P("any-pointer-coarse",["&"],{order:5,wrap:()=>[o("media","(any-pointer: coarse)",[],"media")],source:"media"}),P("any-pointer-fine",["&"],{order:5,wrap:()=>[o("media","(any-pointer: fine)",[],"media")],source:"media"}),P("motion-safe",["&"],{order:5,wrap:()=>[o("media","(prefers-reduced-motion: no-preference)",[],"media")],source:"media"}),P("motion-reduce",["&"],{order:5,wrap:()=>[o("media","(prefers-reduced-motion: reduce)",[],"media")],source:"media"}),P("print",["&"],{order:5,wrap:()=>[o("media","print",[],"media")],source:"media"}),P("portrait",["&"],{order:5,wrap:()=>[o("media","(orientation: portrait)",[],"media")],source:"media"}),P("landscape",["&"],{order:5,wrap:()=>[o("media","(orientation: landscape)",[],"media")],source:"media"}),P("rtl",["&[dir=rtl]"],{order:20,source:"attribute"}),P("ltr",["&[dir=ltr]"],{order:20,source:"attribute"}),P("inert",["&[inert]"],{order:40,source:"attribute"}),P("open",["&:is([open], :popover-open, :open)"],{order:40,source:"attribute"});var $r=t=>[r([n("--baro-content",'""')]),...t,...t.some(t=>"decl"===t.type&&"content"===t.prop)?[]:[e("content","var(--baro-content)")]];function Cr(t,e,r,o=!1){const a=`${o?"not ":""}(${"min"===t?"width >=":"width <"} ${e})`;return r?`${r} ${a}`:a}function Pr(t){return{sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)",xl:"(min-width: 1280px)","2xl":"(min-width: 1536px)"}[t]||`(min-width: ${t})`}function zr(t){return t.replace(/\\_|_/g,t=>"_"===t?" ":"_")}function Sr(t){const e=/^(data|aria)-\[([a-zA-Z0-9_-]+)(?:=([^\]]+))?\]$/.exec(t);if(e){const[,t,r,o]=e;return void 0===o?`[${t}-${r}]`:`[${t}-${r}=${/^(["']).*\1$/.test(o)?o:`"${zr(o)}"`}]`}const r=/^data-([a-zA-Z0-9_-]+)$/.exec(t);if(r)return`[data-${r[1]}]`;const o=/^aria-([a-zA-Z0-9_-]+)$/.exec(t);return o?`[aria-${o[1]}="true"]`:void 0}function Ar(t){const e=zr(t);return/^[>+~]/.test(e.trim())||!jr(e)?e:`*:is(${e})`}function jr(t){let e=0;for(let r=0;r<t.length;r++){const o=t[r];if("\\"===o)r++;else if("("===o||"["===o)e++;else if(")"===o||"]"===o)e--;else if(","===o&&0===e)return!0}return!1}function Rr(t,e){const r=A(e).find(r=>r.name===t&&r.match(t,e));if(!r?.modifySelector)return null;const o=r.modifySelector({selector:"&",fullClassName:"",mod:{type:t},context:e}),a=Array.isArray(o)?o:o&&"object"==typeof o?[o]:"string"==typeof o?[{selector:o}]:[];if(1!==a.length)return null;const n=/^&(:(?!:)[a-zA-Z-]+(?:\(.*\))?)$/.exec(a[0].selector);return n?n[1]:null}function Er(t,e){const r=Sr(t);if(r)return r;const o=Rr(t,e);if(o||!t.startsWith("has-"))return o;const a=A(e).find(r=>r.match(t,e));if(!a?.modifySelector||a.wrap||a.astHandler)return null;const n=a.modifySelector({selector:"&",fullClassName:"",mod:{type:t},context:e}),s=Array.isArray(n)?n:n&&"object"==typeof n?[n]:"string"==typeof n?[{selector:n}]:[];if(1!==s.length)return null;const i=/^&(:has\(.+\))$/.exec(s[0].selector);return i&&!i[1].includes("&")?i[1]:null}function Tr(t,e){if(t.startsWith("not-"))return null;const r=A(e).find(r=>r.match(t,e));if(!r?.wrap||r.astHandler)return null;if(r.modifySelector){const o=r.modifySelector({selector:"&",fullClassName:"",mod:{type:t},context:e});if("&"!==("string"==typeof o?o:Array.isArray(o)?1===o.length?o[0].selector:null:o?.selector))return null}const o=r.wrap({type:t},e);if(1!==o.length)return null;const a=o[0];if("at-rule"!==a.type||"media"!==a.name&&"supports"!==a.name||a.nodes?.length)return null;const n=(a.params??"").trim();return!n||/^not\b|,|\s(and|or)\s/i.test(n)?null:{...a,params:`not ${n}`,nodes:[]}}function Nr(t){const e=/^@(media|supports|container)(?:\s+|(?=\()|$)([\s\S]*)$/.exec(zr(t).trim());if(!e)return null;const r=e[1];let a=(e[2]??"").trim(),n="";if("container"===r){const t=/^(?!not\b)([a-zA-Z_-][a-zA-Z0-9_-]*)\s+([\s\S]*)$/.exec(a);t&&(n=`${t[1]} `,a=t[2].trim())}if(!a||jr(a))return null;const s=/^not\s+/i.test(a)?a.replace(/^not\s+/i,""):`not ${a}`;return s?o(r,`${n}${s}`,[],r):null}P("before",["&::before"],{source:"pseudo",astHandler:$r}),P("after",["&::after"],{source:"pseudo",astHandler:$r}),P("placeholder",["&::placeholder"],{source:"pseudo"}),P("selection",["& *::selection","&::selection"],{source:"pseudo"}),P("file",["&::file-selector-button"],{source:"pseudo"}),P("marker",["& *::marker","&::marker","& *::-webkit-details-marker","&::-webkit-details-marker"],{source:"pseudo"}),P("details-content",["&::details-content"],{source:"pseudo"}),P("first-line",["&::first-line"],{source:"pseudo"}),P("first-letter",["&::first-letter"],{source:"pseudo"}),P("backdrop",["&::backdrop"],{source:"pseudo"}),P("starting",["&"],{wrap:()=>[o("starting-style","",[],"starting")],source:"starting"}),z((t,e)=>{const r=e.theme("breakpoints")||e.config("theme.breakpoints")||{},o=Object.keys(r);if(o.includes(t))return!0;if(t.startsWith("max-")){const e=t.replace("max-","");if(o.includes(e))return!0;if(/^\[.*\]$/.test(e))return!0}return!!/^min-\[.*\]$/.test(t)||!!/^max-\[.*\]$/.test(t)},void 0,(t,e)=>{const r=t.type,a=e.theme("breakpoints")||e.config("theme.breakpoints")||{};if(Object.keys(a).includes(r)){let t=e.theme(`breakpoints.${r}`)||Pr(r);return/^\d*\.?\d+(px|em|rem)?$/.test(t)&&(t=`(min-width: ${t})`),[o("media",t,[],"responsive")]}if(r.startsWith("max-")){const t=r.replace("max-","");if(Object.keys(a).includes(t)){let r=e.theme(`breakpoints.${t}`)||Pr(t);if(r.includes("min-width:")){const t=r.match(/min-width:\s*([^)]+)/)?.[1];t&&(r=`(width < ${t})`)}else if(r.includes("width >=")){const t=r.match(/width >=\s*([^)]+)/)?.[1];t&&(r=`(width < ${t})`)}else/^\d*\.?\d+(px|em|rem)?$/.test(r)&&(r=`(width < ${r})`);return[o("media",r,[],"responsive")]}if(/^\[(.*)\]$/.test(t)){const e=t.match(/^\[(.*)\]$/)?.[1];if(e)return[o("media",`(width < ${e})`,[],"responsive")]}}if(/^min-\[(.*)\]$/.test(r)){const t=r.match(/^min-\[(.*)\]$/)?.[1];if(t)return[o("media",`(width >= ${t})`,[],"responsive")]}if(/^max-\[(.*)\]$/.test(r)){const t=r.match(/^max-\[(.*)\]$/)?.[1];if(t)return[o("media",`(width < ${t})`,[],"responsive")]}return[]});z(t=>"dark"===t,void 0,(t,e)=>{const r=(t=>{const e=t.config("darkMode")||"media",r=t.config("darkModeSelector"),o=[];if("media"===e){if(o.push({type:"media",value:"(prefers-color-scheme: dark)"}),r){const t=Array.isArray(r)?r.join(", "):r;o.push({type:"selector",value:t})}return o}if("class"===e){if(r){const t=Array.isArray(r)?r.join(", "):r;return o.push({type:"selector",value:t}),o}return o.push({type:"selector",value:".dark"}),o}return o.push({type:"selector",value:".dark"}),o})(e),n=[];return r.forEach(t=>{if("media"===t.type){const e=o("media",t.value,[],"dark");n.push(e)}else{const e=a(t.value,[],"dark");n.push(e)}}),n});var Vr=/^(not-)?@(?:(min|max)-)?(\[[^\]]+\]|[a-zA-Z0-9.]+)(?:\/([a-zA-Z0-9_-]+))?$/;z(t=>Vr.test(t)&&!/^(?:not-)?@container(?:\/|$)/.test(t),void 0,(t,e)=>{const r=Vr.exec(t.type);if(!r)return[];const[,o,a,n,s]=r,i=n.startsWith("[")?n.slice(1,-1).replace(/_/g," "):e.theme("container."+n);return i?[(l=Cr("max"===a?"max":"min",i,s,!!o),c=[],{type:"at-rule",name:"container",params:l,nodes:Array.isArray(c)?c:[c],source:"container"})]:[];var l,c});var Wr=t=>/^[\s_]*@/.test(t);function Br(t,e){const r=Sr(t);if(r)return{compound:r};if(/^(has|in|not|group|peer)-|[^a-z0-9-]/.test(t))return;const o=A(e).find(r=>r.match(t,e));if(!o?.modifySelector||o.astHandler)return;const a=o.modifySelector({selector:"&",fullClassName:"",mod:{type:t},context:e});if(null==a)return;const n="string"==typeof a?[{selector:a}]:Array.isArray(a)?a:[a];if(1!==n.length)return;const s=n[0].selector;return!/^&[:[]/.test(s)||s.slice(1).includes("&")||/[\s,>+~]/.test(s.replace(/\([^()]*\)/g,""))?void 0:{compound:s.slice(1),inner:o}}function Mr(t,e){const r=/^(has|in)-(.+)$/.exec(t);if(!r)return;const[,o,a]=r;if("in"===o&&/^\[.+\]$/.test(a)){if(Wr(a.slice(1)))return;const t=zr(a.slice(1,-1));return{kind:o,compound:t.startsWith("&")?t.slice(1):`:is(${t})`}}if("has"===o&&(a.startsWith("[")||/^(data|aria)-/.test(a)))return;const n=Br(a,e);return n&&{kind:o,...n}}z(t=>/^has-\[.*\]$/.test(t)&&!Wr(t.slice(5)),({selector:t,mod:e})=>{const r=/^has-\[(.+)\]$/.exec(e.type);return r?{selector:`&:has(${Ar(r[1])})`,flatten:!1,wrappingType:"rule",source:"attribute"}:{selector:t,source:"attribute"}},void 0),z(t=>/^has-(data|aria)-/.test(t)&&!!Sr(t.slice(4)),({mod:t})=>({selector:`&:has(*${Sr(t.type.slice(4))})`,flatten:!1,wrappingType:"rule",source:"attribute"}),void 0);var Or=({selector:t,mod:e,context:r})=>{const o=Mr(e.type,r);return o?{selector:"has"===o.kind?`&:has(*${o.compound})`:`:where(*${o.compound}) &`,flatten:!1,wrappingType:"rule",source:"attribute"}:{selector:t}};function Fr(t,e){const r=/^(group|peer)-has-(.+?)(?:\/([a-zA-Z0-9_-]+))?$/.exec(t);if(!r)return;const o=r[1],a=r[2],n=r[3]?`.${o}\\/${r[3]}`:`.${o}`;if(/^\[.+\]$/.test(a)){if(Wr(a.slice(1)))return;const t=zr(a.slice(1,-1));return{kind:o,base:n,v:a,arg:/^[>+~]/.test(t.trim())?t:`*:is(${t})`}}const s=Br(a,e);return s&&{kind:o,base:n,v:a,arg:`*${s.compound}`,inner:s.inner}}z((t,e)=>!!Mr(t,e)?.inner?.wrap,Or,(t,e)=>Mr(t.type,e).inner.wrap({...t,type:t.type.replace(/^(has|in)-/,"")},e)),z((t,e)=>{const r=Mr(t,e);return!!r&&!r.inner?.wrap},Or);var Kr=({selector:t,mod:e,context:r})=>{const o=Fr(e.type,r);if(!o)return{selector:t};const a="group"===o.kind?" *":" ~ *";return{selector:`&:is(:where(${o.base}):has(${o.arg})${a})`,wrappingType:"rule",source:o.kind}};function Dr(t){if(/^[\w-]*\s*\(/.test(t))return t;let e=t.includes(":")?t:`${t}: var(--tw)`;return"("===e[0]&&")"===e[e.length-1]||(e=`(${e})`),e}z((t,e)=>!!Fr(t,e)?.inner?.wrap,Kr,(t,e)=>{const r=Fr(t.type,e);return r.inner.wrap({...t,type:r.v},e)}),z((t,e)=>{const r=Fr(t,e);return!!r&&!r.inner?.wrap},Kr),z((t,e)=>/^not-(?!@)/.test(t)&&!!Tr(t.slice(4),e),()=>"&",(t,e)=>{const r=Tr(t.type.slice(4),e);return r?[r]:[]}),z(t=>/^not-\[@.*\]$/.test(t)&&!!Nr(t.slice(5,-1)),()=>"&",t=>{const e=Nr(t.type.slice(5,-1));return e?[e]:[]}),z(t=>/^not-\[(?!@).*\]$/.test(t),({selector:t,mod:e})=>{const r=/^not-\[(.+)\]$/.exec(e.type);return r?/^[a-zA-Z0-9_-]+(=.+)?$/.test(r[1])?{selector:`&:not([${r[1]}])`,flatten:!1,wrappingType:"rule",source:"attribute"}:{selector:`&:not(${Ar(r[1])})`,flatten:!1,wrappingType:"rule",source:"attribute"}:{selector:t,source:"attribute"}}),z(t=>/^not-/.test(t)&&!t.startsWith("not-@")&&!t.startsWith("not-[@"),({selector:t,mod:e,context:r})=>{const o=/^not-(.+)$/.exec(e.type),a=o?Er(o[1],r):null;return o&&!a?null:{selector:a?`&:not(${a})`:t,flatten:!1,wrappingType:"rule",source:"attribute"}}),z(t=>"*"===t,()=>({selector:":is(& > *)",wrappingType:"rule",source:"universal"}),void 0),z(t=>"**"===t,()=>({selector:":is(& *)",wrappingType:"rule",source:"universal"}),void 0),z(t=>/^\[.*\]$/.test(t),({selector:t,mod:e})=>{const r=/^\[(.+)\]$/.exec(e.type);if(!r)return{selector:t};const o=zr(r[1]).trim();return/^[a-zA-Z0-9_-]+(=.+)?$/.test(o)?{selector:`&[${o}]`,wrappingType:"rule",source:"attribute"}:o.startsWith("&")?{selector:`${o}`,wrappingType:"rule",source:"pseudo"}:{selector:`&:is(${o})`,wrappingType:"rule",source:"base"}},void 0),z(t=>/^aria-/.test(t),({selector:t,mod:e})=>{const r=/^aria-\[([a-zA-Z0-9_-]+)(?:=([^\]]+))?\]$/.exec(e.type);if(r)return{selector:`&[aria-${r[1]}="${r[2]??"true"}"]`,source:"aria"};const o=/^aria-([a-zA-Z0-9_]+)$/.exec(e.type);return o?{selector:`&[aria-${o[1]}="true"]`,source:"aria"}:{selector:t,source:"aria"}},void 0),z(t=>t.startsWith("not-")&&!t.startsWith("not-@")&&!t.startsWith("not-[@"),({selector:t,mod:e,context:r})=>{const o=e.type.replace("not-","");if(o.startsWith("[")){const t=o.slice(1,-1);return/^[a-zA-Z0-9_-]+(=.+)?$/.test(t)?{selector:`&:not([${t}])`,source:"attribute"}:{selector:`&:not(${Ar(t)})`,source:"attribute"}}{const t=Er(o,r);return t?{selector:`&:not(${t})`,source:"attribute"}:null}},void 0),z(t=>/^data-/.test(t),({selector:t,mod:e})=>{const r=/^data-\[([a-zA-Z0-9_-]+)(?:=([^\]]+))?\]$/.exec(e.type);if(r)return{selector:`&[data-${r[1]}="${r[2]??"true"}"]`,source:"data"};const o=/^data-([a-zA-Z0-9_]+)$/.exec(e.type);return o?{selector:`&[data-${o[1]}]`,source:"data"}:{selector:t,source:"attribute"}},void 0),z(t=>/^nth-(\d+)$/.test(t),({selector:t,mod:e})=>{const r=e.type.match(/^nth-(\d+)$/)?.[1];return r?{selector:`&:nth-child(${r})`,source:"attribute"}:{selector:t,source:"attribute"}},void 0),z(t=>/^nth-last-(\d+)$/.test(t),({selector:t,mod:e})=>{const r=e.type.match(/^nth-last-(\d+)$/)?.[1];return r?{selector:`&:nth-last-child(${r})`,source:"attribute"}:{selector:t,source:"attribute"}},void 0),z(t=>/^nth-of-type-(\d+)$/.test(t),({selector:t,mod:e})=>{const r=e.type.match(/^nth-of-type-(\d+)$/)?.[1];return r?{selector:`&:nth-of-type(${r})`,source:"attribute"}:{selector:t,source:"attribute"}},void 0),z(t=>/^nth-last-of-type-(\d+)$/.test(t),({selector:t,mod:e})=>{const r=e.type.match(/^nth-last-of-type-(\d+)$/)?.[1];return r?{selector:`&:nth-last-of-type(${r})`,source:"attribute"}:{selector:t,source:"attribute"}},void 0),z(t=>/^is-\[.*\]$/.test(t),({selector:t,mod:e})=>{const r=/^is-\[(.+)\]$/.exec(e.type);return r?{selector:`&:is(${r[1]})`,source:"attribute"}:{selector:t,source:"attribute"}},void 0),z(t=>/^where-\[.*\]$/.test(t),({selector:t,mod:e})=>{const r=/^where-\[(.+)\]$/.exec(e.type);return r?{selector:`&:where(${r[1]})`,source:"attribute"}:{selector:t,source:"attribute"}},void 0),z(t=>/^supports-(?:\[.+\]|[a-zA-Z-][a-zA-Z0-9-]*)$/.test(t),void 0,t=>{const e=/^supports-(?:\[(.+)\]|([a-zA-Z-][a-zA-Z0-9-]*))$/.exec(t.type);return e?[o("supports",Dr(void 0!==e[1]?zr(e[1]):e[2]),[],"supports")]:[]}),z(t=>/^layer-\[.*\]$/.test(t),void 0,t=>{const e=/^layer-\[(.+)\]$/.exec(t.type);return e?[o("layer",e[1],[])]:[]}),z(t=>/^scope-\[.*\]$/.test(t),void 0,t=>{const e=/^scope-\[(.+)\]$/.exec(t.type);return e?[o("scope",e[1],[])]:[]});var Lr=t=>/^(group|peer)-has-\[/.test(t)&&Wr(t.slice(t.indexOf("[")+1));function Ir(t,e){const r=/^(.+)\/([a-zA-Z0-9_-]+)$/.exec(e);return r?[r[1],`.${t}\\/${r[2]}`]:[e,`.${t}`]}function Zr(t,e){const r=t.slice(4);if(r.startsWith("[@"))return null;if(r.startsWith("[")&&r.endsWith("]"))return`:not(*:is(${zr(r.slice(1,-1))}))`;const o=Er(r,e);return o?`:not(${o})`:null}z(t=>/^(group|peer)-hover(\/[a-zA-Z0-9_-]+)?$/.test(t),({mod:t})=>{const e=t.type.startsWith("group")?"group":"peer",[,r]=Ir(e,t.type.slice(e.length+1));return{selector:`&:is(:where(${r}):hover${"group"===e?" *":" ~ *"})`,wrappingType:"rule",source:e}},()=>[o("media","(hover: hover)",[])]),z(t=>/^group-(.+)$/.test(t)&&!Lr(t),({selector:t,mod:e,context:r})=>{const o=/^group-(.+)$/.exec(e.type),[a,n]=Ir("group",o?.[1]??""),s=o?[o[0],a]:null,i=`:where(${n})`,l=s?Sr(s[1]):void 0;if(l)return{selector:`&:is(${i}${l} *)`,wrappingType:"rule",source:"group"};if(s?.[1].startsWith("[")&&s?.[1].endsWith("]"))return{selector:`&:is(${i}:is(${s?.[1].slice(1,-1).replace(/_/g,"")}) *)`,wrappingType:"rule",source:"group"};if(s?.[1]?.startsWith("not-")){const t=Zr(s[1],r);return t?{selector:`&:is(${i}${t} *)`,wrappingType:"rule",source:"group"}:null}if(s?.[1]?.startsWith("has-")){const t=/^has-\[([a-zA-Z0-9_-]+)\]$/.exec(s?.[1]);return t?{selector:`&:is(${i}:has(:is(${t[1]})) *)`,source:"group"}:{selector:`&:is(${i}:has(${Ar(s[1].slice(5,-1))}) *)`,source:"group"}}if(s?.[1]?.startsWith("aria-")){const t=/^aria-\[([a-zA-Z0-9_-]+)(?:=([^\]]+))?\]$/.exec(s?.[1]);if(t){const e=t[1];return t[2]?{selector:`&:is(${i}[aria-${e}="${t[2]}"] *)`,source:"group"}:{selector:`&:is(${i}[aria-${e}] *)`,source:"group"}}}const c=s?Rr(s[1],r):null;return s&&!c?null:s?{selector:`&:is(${i}${c} *)`,wrappingType:"rule",source:"group"}:{selector:t,source:"group"}},void 0),z(t=>/^peer-(.+)$/.test(t)&&!Lr(t),({selector:t,mod:e,context:r})=>{const o=/^peer-(.+)$/.exec(e.type),[a,n]=Ir("peer",o?.[1]??""),s=o?[o[0],a]:null,i=`:where(${n})`,l=s?Sr(s[1]):void 0;if(l)return{selector:`&:is(${i}${l} ~ *)`,wrappingType:"rule",source:"peer"};if(s?.[1].startsWith("[")&&s?.[1].endsWith("]"))return{selector:`&:is(${i}:is(${s?.[1].slice(1,-1).replace(/_/g,"")})~*)`,wrappingType:"rule",source:"peer"};const c=s?.[1];if(c?.startsWith("has-[")&&c.endsWith("]"))return{selector:`&:is(${i}:has(${Ar(c.slice(5,-1))}) ~ *)`,source:"peer"};if(c?.startsWith("has-")){const t=Rr(c.slice(4),r);return t?{selector:`&:is(${i}:has(${t})~*)`,source:"peer"}:null}if(c?.startsWith("not-")){const t=Zr(c,r);return t?{selector:`&:is(${i}${t} ~ *)`,source:"peer"}:null}if(c?.startsWith("aria-")){let t=/^aria-([a-zA-Z0-9_]+)$/.exec(c);if(t)return{selector:`&:is(${i}[aria-${t[1]}]~*)`,source:"peer"};if(t=/^aria-\[([a-zA-Z0-9_-]+)(?:=([^\]]+))?\]$/.exec(c),t){const e=t[1],r=t[2];return t[2]?{selector:`&:is(${i}[aria-${e}="${r}"]~*)`,source:"peer"}:{selector:`&:is(${i}[aria-${e}]~*)`,source:"peer"}}}const p=s?Rr(c,r):null;return s&&!p?null:s?{selector:`&:is(${i}${p}~*)`,source:"peer"}:{selector:t,source:"peer"}},void 0),z(t=>/^parent-(.+)$/.test(t),({selector:t,mod:e})=>{const r=/^parent-(.+)$/.exec(e.type);return r?.[1].startsWith("[")&&r?.[1].endsWith("]")?{selector:`.parent\\:\\[${r[1].slice(1,-1)}\\] &`,wrappingType:"rule",source:"parent"}:r?{selector:`.parent:${r[1]} &`,source:"parent"}:{selector:t,source:"parent"}},void 0),z(t=>/^child-(.+)$/.test(t),({selector:t,mod:e})=>{const r=/^child-(.+)$/.exec(e.type);return r?.[1].startsWith("[")&&r?.[1].endsWith("]")?{selector:`& > .child\\:\\[${r[1].slice(1,-1)}\\]`,wrappingType:"rule",source:"child"}:r?{selector:`& > .child:${r[1]}`,source:"child"}:{selector:t,source:"child"}},void 0);var _r=/^\s*@(media|container)\s+([^{]*)\{/,qr=/prefers-color-scheme|\bprint\b|forced-colors|orientation/,Ur=/(?:min-width\s*:\s*|width\s*>=?\s*)([\d.]+)(px|rem|em)?/,Hr=/(?:max-width\s*:\s*|width\s*<=?\s*)([\d.]+)(px|rem|em)?/;function Yr(t,e){const r=parseFloat(t);return"rem"===e||"em"===e?16*r:r}function Gr(t,e){const r="container"===t;if(!r&&/^\s*not\b/i.test(e))return[0,0];const o=Ur.exec(e);if(o)return[r?4:2,Yr(o[1],o[2])];const a=Hr.exec(e);return a?[r?3:1,-Yr(a[1],a[2])]:!r&&qr.test(e)?[5,0]:[0,0]}function Xr(t){const e=[];let r,o=t;for(;r=_r.exec(o);){const[t,a]=Gr(r[1],r[2]);e.push(t,a),o=o.slice(r[0].length)}return e}function Jr(t,e){const r=Math.min(t.length,e.length);for(let o=0;o<r;o++)if(t[o]!==e[o])return t[o]-e[o];return t.length-e.length}function Qr(t,e){let r=0,o=t.length;for(;r<o;){const a=r+o>>1;Jr(t[a],e)<=0?r=a+1:o=a}return r}var to=class{insertSorted(t,e,r){const o=t.keys??=[],a=Qr(o,r),n=t.styleElement.sheet;n&&n.cssRules.length===o.length?(n.insertRule(this.escapeCssRule(e),a),t.styles.splice(a,0,e)):(t.styles.splice(a,0,e),t.styleElement.textContent=t.styles.join("\n")+"\n"),o.splice(a,0,r)}constructor(t,e=50,r="barocss-style-partition-",o=t=>L(t).utility?.category,a=""){this.partitions=[],this.categoryPartitions=new Map,this.partitionCounter=0,this.maxRulesPerPartition=50,this.classToPartitionMap=new Map,this.classToCategoryPartitionMap=new Map,this.styleIdPrefix="barocss-style-partition-",this.nonce=a,this.insertionPoint=t,this.maxRulesPerPartition=e,this.styleIdPrefix=r,this.getCategory=o,this.initializeDefaultPartition()}createStyleElement(){const t=document.createElement("style");return this.nonce&&t.setAttribute("nonce",this.nonce),t}initializeDefaultPartition(){this.createNewPartition()}createNewCategoryPartition(t,e=!1){const r={id:this.styleIdPrefix+`-${t}`,styles:[],styleElement:this.createStyleElement()};r.styleElement.id=r.id,r.styleElement.setAttribute("data-barocss","partition"),r.styleElement.setAttribute("data-category",t);const o=this.insertionPoint.ownerDocument?.head;return e&&o?o.insertBefore(r.styleElement,o.firstChild):this.insertionPoint.appendChild(r.styleElement),this.categoryPartitions.set(t,r),r}createNewPartition(){const t={id:this.styleIdPrefix+"-"+this.partitionCounter++,styles:[],styleElement:this.createStyleElement()};return this.partitions.push(t),t.styleElement.id=t.id,t.styleElement.setAttribute("data-barocss","partition"),t.styleElement.setAttribute("data-partition-index",this.partitionCounter.toString()),this.insertionPoint.appendChild(t.styleElement),t}hasRule(t){return this.classToPartitionMap.has(t)}hasCategoryRule(t,e){return this.classToCategoryPartitionMap.get(t)===e}setRuleCache(t,e){this.classToPartitionMap.set(t,e)}setCategoryRuleCache(t,e){this.classToCategoryPartitionMap.set(t,e)}get currentPartition(){return this.partitions[this.partitions.length-1]}getCategoryPartition(t){return this.categoryPartitions.get(t)}hasDetachedPartitions(){return[...this.partitions,...this.categoryPartitions.values()].some(t=>!t.styleElement.isConnected)}escapeCssRule(t){return t.replace(/\\\//g,"\\/")}addRule(t){if(this.hasRule(t))return!1;const e=Xr(t);let r=this.partitions.findIndex(t=>{const r=t.keys;return!!r&&r.length>0&&Jr(r[r.length-1],e)>0});-1===r&&(this.currentPartition.styles.length>=this.maxRulesPerPartition&&this.createNewPartition(),r=this.partitions.length-1);const o=this.partitions[r];try{return this.insertSorted(o,t,e),this.setRuleCache(t,r),!0}catch(a){return i()&&console.warn(`[StylePartitionManager] Failed to insert rule: ${t}`,a),!1}}addCategoryRule(t,e){if(this.hasCategoryRule(t,e))return!1;let r=this.getCategoryPartition(e);r||(r=this.createNewCategoryPartition(e));try{this.insertSorted(r,t,Xr(t))}catch(o){return i()&&console.warn(`[StylePartitionManager] Failed to insert rule in category: ${e} ${t}`,o),!1}return this.setCategoryRuleCache(t,e),!0}addRootRules(t){let e=this.getCategoryPartition("root");e||(e=this.createNewCategoryPartition("root"));try{const r=e.styleElement.sheet;for(const o of t)r?r.insertRule(this.escapeCssRule(o),r.cssRules.length):e.styleElement.textContent+=o+"\n"}catch(r){return i()&&console.warn(`[StylePartitionManager] Failed to insert rule in category: root ${t.join("\n")}`,r),{success:0,failed:t.length}}return{success:t.length,failed:0}}addRules(t){let e=0,r=0;for(const o of t){const t=this.getCategory(o.cls);if(t)for(const e of o.cssList)this.addCategoryRule(e,t);else for(const a of o.cssList)this.addRule(a)?e++:r++}return{success:e,failed:r}}removeRule(t,e){let r;if(e){if(this.classToCategoryPartitionMap.get(t)!==e)return!1;r=this.categoryPartitions.get(e)}else{const e=this.classToPartitionMap.get(t);r=void 0===e?void 0:this.partitions[e]}if(!r)return!1;const o=r.styles.indexOf(t);if(-1===o)return!1;const a=r.styleElement.sheet,n=!!a&&a.cssRules.length===r.styles.length;return r.styles.splice(o,1),r.keys?.splice(o,1),n&&a?a.deleteRule(o):r.styleElement.textContent=r.styles.length?r.styles.join("\n")+"\n":"",e?this.classToCategoryPartitionMap.delete(t):this.classToPartitionMap.delete(t),!0}get ruleCount(){return this.classToPartitionMap.size+this.classToCategoryPartitionMap.size}findRulePartition(t){const e=this.classToPartitionMap.get(t);if(void 0!==e&&this.partitions[e])return this.partitions[e];const r=this.classToCategoryPartitionMap.get(t);return void 0!==r&&this.categoryPartitions.get(r)||null}updateRuleContent(t,e,r=!1){const o=this.getCategoryPartition(t);if(o)o.styleElement.textContent=e;else{const o=this.createNewCategoryPartition(t,r);i()&&console.log(`[StylePartitionManager] Created new partition for category: ${t}`),o.styleElement.textContent=e}}cleanup(){this.partitions.forEach(t=>{t.styleElement.parentNode&&t.styleElement.parentNode.removeChild(t.styleElement)}),this.categoryPartitions.forEach(t=>{t.styleElement.parentNode&&t.styleElement.parentNode.removeChild(t.styleElement)}),this.partitions=[],this.categoryPartitions.clear(),this.partitionCounter=0,this.classToPartitionMap.clear(),this.classToCategoryPartitionMap.clear()}},eo=/[ \t\n\f\r]+/;function ro(t){return t?"object"==typeof t&&"string"==typeof t.baseVal?t.baseVal:t.toString():""}function oo(t){return t?ro(t).split(eo).filter(Boolean):[]}var ao=class{constructor(t,e,r=t=>L(t).utility?.category){this.observer=null,this.gc=null,this.incrementalParser=t,this.BrowserRuntime=e,this.getCategory=r}setGc(t){this.gc=t}setParser(t){this.incrementalParser=t}observe(t=document.body,e){return"undefined"==typeof window?new MutationObserver(()=>{}):(this.observer&&this.observer.disconnect(),this.gc?.setRoot(t),this.observer=new MutationObserver(e=>{const r=new Set,o=this.gc;if(e.forEach(e=>{if(o&&("attributes"===e.type?o.reconcile(e.target):"childList"===e.type&&(e.removedNodes.forEach(t=>o.reconcileTree(t)),e.addedNodes.forEach(t=>o.reconcileTree(t)))),"attributes"===e.type&&"class"===e.attributeName&&t.contains(e.target)){const t=e.target;t.className&&oo(t.className).forEach(t=>{this.incrementalParser.isProcessed(t)||r.add(t)})}"childList"===e.type&&e.addedNodes.forEach(e=>{if(e.nodeType===Node.ELEMENT_NODE&&t.contains(e)){const t=e;this.processElement(t,r),t.querySelectorAll("[class]").forEach(t=>{this.processElement(t,r)})}})}),r.size>0){const t=Array.from(r),e=this.incrementalParser.processClasses(t);this.BrowserRuntime?.applyParseResults(e)}else this.BrowserRuntime?.applyParseResults([]);o?.afterBatch()}),this.observer.observe(t,{attributes:!0,subtree:!0,attributeFilter:["class"],childList:!0}),e?.scan&&this.scanExistingClasses(t,e),this.observer)}scanExistingClasses(t,e){const r=new Set,o=t.className;o&&oo(o).forEach(t=>{this.incrementalParser.isProcessed(t)||r.add(t)});const a=t.querySelectorAll("[class]");for(const n of a)if(n.className){const t=oo(n.className);for(const e of t)this.incrementalParser.isProcessed(e)||r.add(e)}if(r.size>0){const t=Array.from(r),o=this.incrementalParser.processClasses(t),a=o.filter(t=>"layout"===this.getCategory(t.cls)),n=o.filter(t=>"layout"!==this.getCategory(t.cls));this.BrowserRuntime?.applyParseResults(a),e?.onReady?.(),this.BrowserRuntime?.applyParseResults(n)}else e?.onReady?.()}processElement(t,e){t.className&&oo(t.className).forEach(t=>{this.incrementalParser.isProcessed(t)||e.add(t)})}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null)}};function no(t){return t.replace(/\\([0-9a-fA-F]{1,6})\s?|\\(.)/g,(t,e,r)=>e?String.fromCodePoint(parseInt(e,16)):r)}var so=/^\s*(?::(?:where|is)\(\s*)?\.((?:\\[0-9a-fA-F]{1,6}\s?|\\.|[\w-]|[^\x00-\x7F])+)/;function io(t){const e=[];let r=0,o=0;for(let a=0;a<t.length;a++){const n=t[a];"\\"===n?a++:"("===n||"["===n?r++:")"===n||"]"===n?r--:","===n&&0===r&&(e.push(t.slice(o,a)),o=a+1)}return e.push(t.slice(o)),e}function lo(t,e=new Set){for(const r of Array.from(t)){if(7===r.type&&"string"==typeof r.name){e.add(r.name);continue}const t=r.cssRules;t&&t.length&&lo(t,e)}return e}function co(t,e=new Set){for(const r of Array.from(t)){const t=r.selectorText;if("string"==typeof t)for(const r of io(t)){const t=so.exec(r);t&&e.add(no(t[1]))}const o=r.cssRules;o&&o.length&&co(o,e)}return e}var po=class{constructor(t,e,r,o=()=>Date.now()){this.host=t,this.graceMs=e,this.maxRules=r,this.now=o,this.counts=new Map,this.counted=new WeakMap,this.candidates=new Map,this.timer=null,this.root=null}setRoot(t){this.counts.clear(),this.counted=new WeakMap,this.candidates.clear(),this.cancel(),this.root=t,1===t.nodeType?this.reconcileTree(t):t.querySelectorAll("[class]").forEach(t=>this.reconcile(t))}count(t){return this.counts.get(t)??0}reconcileTree(t){if(1!==t.nodeType)return;const e=t;this.reconcile(e),e.querySelectorAll("[class]").forEach(t=>this.reconcile(t))}reconcile(t){const e=this.root,r=e&&e.contains(t)?Array.from(new Set(oo(t.getAttribute("class")))):[],o=this.counted.get(t);if(!o&&0===r.length)return;const a=new Set(o??[]),n=new Set(r);for(const s of n){if(a.has(s))continue;const t=(this.counts.get(s)??0)+1;this.counts.set(s,t),this.candidates.delete(s)}for(const s of a){if(n.has(s))continue;const t=(this.counts.get(s)??0)-1;t>0?this.counts.set(s,t):(this.counts.delete(s),this.candidates.delete(s),this.candidates.set(s,this.now()))}r.length?this.counted.set(t,r):this.counted.delete(t)}afterBatch(){0!==this.candidates.size&&(this.host.cachedCount()>this.maxRules?this.schedule(0):this.schedule(this.graceMs))}schedule(t){if(null!==this.timer){if(t>0)return;clearTimeout(this.timer)}this.timer=setTimeout(()=>{this.timer=null,this.sweep()},t)}sweep(){const t=this.now(),e=Math.max(0,this.host.cachedCount()-this.maxRules),r=[];let o=0;for(const[a,n]of this.candidates){const s=t-n>=this.graceMs;!s&&o>=e||(this.candidates.delete(a),this.count(a)>0||this.inDom(a)||this.host.isPermanent(a)||(r.push(a),s||o++))}r.length&&this.host.reclaim(r),this.candidates.size&&this.schedule(this.graceMs)}inDom(t){const e=this.root;if(!e)return!1;if(1!==e.nodeType)return Array.from(e.querySelectorAll("[class]")).some(e=>e.classList.contains(t));const r=e.ownerDocument??document;return e.classList.contains(t)||r.documentElement.classList.contains(t)||r.getElementsByClassName(t).length>0}cancel(){null!==this.timer&&clearTimeout(this.timer),this.timer=null}stats(){return{trackedClasses:this.counts.size,candidates:this.candidates.size}}};function uo(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=Math.imul(e,16777619);return(e>>>0).toString(36)}function yo(t="shadow"){try{const e="document"===t?"undefined"!=typeof Document?Document.prototype:void 0:"undefined"!=typeof ShadowRoot?ShadowRoot.prototype:void 0;return!!e&&"adoptedStyleSheets"in e&&"function"==typeof CSSStyleSheet&&"function"==typeof(new CSSStyleSheet).replaceSync}catch{return!1}}var ho=t=>t.replace(/\\\//g,"\\/"),go=/^\s*@property\s/,mo=null;var fo=class{constructor(t,e,r=t,o={}){this.results=new Map,this.generations=0,this.prologueSheet=null,this.rulesSheet=null,this.prologue={props:"",preflight:"",vars:""},this.fallbackProps=new Set,this.segments=new Map([["root",{rules:[],keys:[]}],["",{rules:[],keys:[]}]]),this.refs=new Map,this.attached=[],this.key=t,this.fullKey=r,this.context=o.context??Ht(e),this.constructable=yo(o.target??"shadow"),this.constructable&&(this.prologueSheet=new CSSStyleSheet,this.rulesSheet=new CSSStyleSheet)}get rootCount(){return this.attached.length}get ruleCount(){return this.refs.size}attach(t,e=""){if(this.attached.some(e=>e.root===t))return;if(this.prologueSheet&&this.rulesSheet){const e=[this.prologueSheet,this.rulesSheet];return t.adoptedStyleSheets=[...t.adoptedStyleSheets.filter(t=>!e.includes(t)),...e],void this.attached.push({root:t})}if(11!==t.nodeType)throw new Error("[BrowserRuntime] constructable sheets are not supported for the document");const r=t.ownerDocument??document,o=r.createElement("style"),a=r.createElement("style");e&&(o.setAttribute("nonce",e),a.setAttribute("nonce",e)),o.setAttribute("data-barocss","root-prologue"),a.setAttribute("data-barocss","root"),o.textContent=this.prologueText(),a.textContent=this.allRules().join("\n"),t.insertBefore(a,t.firstChild),t.insertBefore(o,a),this.attached.push({root:t,styles:[o,a]})}detach(t){const e=this.attached.findIndex(e=>e.root===t);if(-1===e)return;const[r]=this.attached.splice(e,1);r.styles?r.styles.forEach(t=>t.remove()):t.adoptedStyleSheets&&(t.adoptedStyleSheets=t.adoptedStyleSheets.filter(t=>t!==this.prologueSheet&&t!==this.rulesSheet))}addPropertyFallback(t){const e=this.fallbackProps.size;for(const r of t)go.test(r)&&this.fallbackProps.add(r);this.fallbackProps.size!==e&&this.setPrologue("props",function(t){const e=[];for(const r of t){const t=/^\s*@property\s+(--[\w-]+)/.exec(r)?.[1],o=/initial-value\s*:\s*([^;}]*)/.exec(r)?.[1]?.trim();t&&o&&e.push(`${t}: ${o}`)}return 0===e.length?"":`@layer properties {\n:host, *, ::before, ::after, ::backdrop {\n ${e.join(";\n ")};\n}\n}`}(Array.from(this.fallbackProps)))}setPrologue(t,e){if(this.prologue[t]===e)return;this.prologue[t]=e;const r=this.prologueText();this.prologueSheet&&this.prologueSheet.replaceSync(r);for(const o of this.attached)o.styles&&(o.styles[0].textContent=r)}prologueText(){return[this.prologue.props,this.prologue.preflight,this.prologue.vars].filter(Boolean).join("\n")}allRules(){return Array.from(this.segments.values()).flatMap(t=>t.rules)}offset(t){let e=0;for(const r of this.segments.values()){if(r===t)return e;e+=r.rules.length}return e}retain(t,e){const r=this.refs.get(t);if(void 0!==r)return this.refs.set(t,r+1),!0;let o=this.segments.get(e);o||(o={rules:[],keys:[]},this.segments.set(e,o));const a="root"===e,n=Xr(t),s=a?o.rules.length:Qr(o.keys,n),l=this.offset(o)+s;try{this.insertAt(t,l)}catch(c){return i()&&console.warn(`[BrowserRuntime] Failed to insert rule into shadow root sheet: ${t}`,c),!1}return o.rules.splice(s,0,t),o.keys.splice(s,0,n),this.refs.set(t,1),!0}release(t){const e=this.refs.get(t);if(void 0!==e)if(e>1)this.refs.set(t,e-1);else{this.refs.delete(t);for(const e of this.segments.values()){const r=e.rules.indexOf(t);if(-1===r)continue;const o=this.offset(e)+r;return e.rules.splice(r,1),e.keys.splice(r,1),void this.deleteAt(o)}}}insertAt(t,e){const r=ho(t);if(this.rulesSheet)return void this.rulesSheet.insertRule(r,e);const o=this.allRules().length;for(const a of this.attached){const n=a.styles[1],s=n.sheet;if(s&&s.cssRules.length===o)s.insertRule(r,e);else{const r=this.allRules();r.splice(e,0,t),n.textContent=r.join("\n")}}}deleteAt(t){if(this.rulesSheet)return void this.rulesSheet.deleteRule(t);const e=this.allRules().length;for(const r of this.attached){const o=r.styles[1],a=o.sheet;a&&a.cssRules.length===e+1?a.deleteRule(t):o.textContent=this.allRules().join("\n")}}cssText(){return[this.prologueText(),...this.allRules()].join("\n")}},bo=new Map;function vo(t,e=uo){const r=function(t){return JSON.stringify(t,(t,e)=>"function"==typeof e?`fn:${String(e)}`:e instanceof RegExp?`re:${e}`:e)??""}(t);let o=bo.get(r);return o||(o=new fo(e(r),t,r),bo.set(r,o)),o}var xo,ko=class extends Mt{constructor(t){super(t.context),this.shared=t}processClass(t){if(this.isProcessed(t))return null;const e=this.shared.results.get(t);if(e)return this.markProcessed(t),e;const r=super.processClass(t);return r&&(this.shared.results.set(t,r),this.shared.generations++),r}},wo=class{constructor(t,e,r=t=>L(t).utility?.category,o={}){this.shared=t,this.root=e,this.getCategory=r,this.opts=o,this.owned=new Set,this.scopePreflight=11===e.nodeType,t.attach(e,o.nonce)}hasDetachedPartitions(){return!1}updateRuleContent(t,e){"preflight"===t?this.shared.setPrologue("preflight",this.scopePreflight?function(t){const e=[];let r=t.replace(/\/\*[\s\S]*?\*\//g,"");return r=r.replace(/(?<=^|[{};])(\s*)([^{};@\s][^{};]*?)\{([^{}]*)\}/g,(t,r,o,a)=>{const n=o.split(",").map(t=>t.trim()).filter(Boolean);if(n.includes("body"))for(const i of a.split(";").map(t=>t.trim()).filter(Boolean))/^(min-height|scroll-behavior)\s*:/.test(i)||e.push(i);const s=Array.from(new Set(n.filter(t=>"body"!==t).map(t=>"html"===t||":root"===t?":host":t)));return 0===s.length?"":`${r}${s.join(", ")} {${a}}`}),e.length&&(r+=`\n@layer base {\n:host {\n ${e.join(";\n ")};\n}\n}\n`),r}(e):e):"css-vars"===t&&this.shared.setPrologue("vars",e)}take(t,e){return!this.owned.has(t)&&(11===this.root.nodeType&&go.test(t)&&(function(t,e,r={}){const o=e.filter(t=>go.test(t));if(0===o.length)return!0;try{if(!t)return!1;if(!mo||mo.doc!==t||mo.style&&!mo.style.isConnected){const e={doc:t,rules:new Set};if(r.constructable&&yo("document"))e.sheet=new CSSStyleSheet,t.adoptedStyleSheets=[...t.adoptedStyleSheets,e.sheet];else{const o=t.head??t.documentElement;if(!o)return!1;const a=t.createElement("style");a.setAttribute("data-barocss","document-properties"),r.nonce&&a.setAttribute("nonce",r.nonce),o.appendChild(a),e.style=a}mo=e}const e=mo;for(const t of o){if(e.rules.has(t))continue;const r=e.sheet??e.style?.sheet??null;r?r.insertRule(ho(t),r.cssRules.length):e.style&&(e.style.textContent+=`${t}\n`),e.rules.add(t)}return!0}catch(a){return i()&&console.warn("[BrowserRuntime] could not register @property rules in the document; using :host initial values",a),!1}}(this.root.ownerDocument??("undefined"!=typeof document?document:null),[t],this.opts)||this.shared.addPropertyFallback([t])),!!this.shared.retain(t,e)&&(this.owned.add(t),!0))}addRule(t){return this.take(t,"")}addCategoryRule(t,e){return this.take(t,`c:${e}`)}addRootRules(t){let e=0;for(const r of t)this.take(r,"root")&&e++;return{success:e,failed:t.length-e}}addRules(t){let e=0,r=0;for(const o of t){const t=this.getCategory(o.cls);for(const a of o.cssList)(t?this.addCategoryRule(a,t):this.addRule(a))?e++:r++}return{success:e,failed:r}}removeRule(t,e){return!!this.owned.delete(t)&&(this.shared.release(t),!0)}get ruleCount(){return this.owned.size}cleanup(){var t;this.owned.forEach(t=>this.shared.release(t)),this.owned.clear(),this.shared.detach(this.root),0===(t=this.shared).rootCount&&bo.get(t.fullKey)===t&&bo.delete(t.fullKey)}},$o="style[data-barocss-ssr]",Co="@layer theme, base, components, utilities;",Po=class{constructor(t={}){this.cache=new Map,this.rootCache=new Set,this.shadowRoot=null,this.isDestroyed=!1,this.existing=null,this.existingKeyframes=new Set,this.existingSheetCount=-1,this.pinned=new Set,this.gc=null,this.reclaimedCount=0,this.ssrRules=[],this.ssrClasses=new Set,this.observedOnce=!1,this.getCategory=t=>L(t,this.context).utility?.category;this.options={config:t.config||{},styleId:t.styleId||"barocss-runtime",insertionPoint:t.insertionPoint||"head",maxRulesPerPartition:t.maxRulesPerPartition||50,skipExisting:t.skipExisting??!1,gc:t.gc??!0,gcGraceMs:t.gcGraceMs??3e3,maxRules:t.maxRules??1/0,nonce:t.nonce??"",constructable:t.constructable??!1};const e=t.root;if(e&&11===e.nodeType&&(this.shadowRoot=e),this.shadowRoot){const t=vo(this.options.config);this.context=t.context,this.incrementalParser=new ko(t)}else this.context=Ht(this.options.config),this.incrementalParser=new Mt(this.context);this.changeDetector=new ao(this.incrementalParser,this,this.getCategory),this.stylePartitionManager=this.createStyles(),this.options.gc&&(this.gc=new po({reclaim:t=>this.reclaim(t),isPermanent:t=>this.isPermanent(t),cachedCount:()=>this.cache.size},this.options.gcGraceMs,this.options.maxRules),this.changeDetector.setGc(this.gc)),this.init(),this.shadowRoot&&this.observe(this.shadowRoot,{scan:!0})}createStyles(){if(this.shadowRoot){let t=this.incrementalParser.shared;const e=vo(this.options.config);return e!==t&&(t=e,this.context=t.context,this.incrementalParser=new ko(t),this.changeDetector?.setParser(this.incrementalParser)),new wo(t,this.shadowRoot,this.getCategory,{nonce:this.options.nonce,constructable:this.options.constructable})}if(this.options.constructable&&"undefined"!=typeof document&&yo("document")){const t=new fo("document",this.options.config,"document",{context:this.context,target:"document"});return new wo(t,document,this.getCategory)}return new to(this.getInsertionPoint(),this.options.maxRulesPerPartition,`${this.options.styleId}-partition`,this.getCategory,this.options.nonce)}debugLog(t,e,r){i()&&(console[t]||console.log)(`[BrowserRuntime:${t.toUpperCase()}] ${e}`,r||"")}init(){this.debugLog("debug","init"),this.injectPreflightCSS(),this.ensureCssVars(),this.adoptSsrSheets()}adoptSsrSheets(){if("undefined"==typeof document||this.shadowRoot)return;const t=[];if(document.head){for(const e of Array.from(document.head.querySelectorAll(`${$o}:not([data-barocss-adopted])`))){const r=e.sheet;if(!r)continue;e.setAttribute("data-barocss-adopted","");const o=[];for(let t=r.cssRules.length-1;t>=0;t--){const e=r.cssRules[t],a=co([e]);0!==a.size&&(a.forEach(t=>this.ssrClasses.add(t)),o.unshift({css:e.cssText,cls:a.values().next().value}),r.deleteRule(t))}t.push(...o)}0!==t.length&&(this.ssrRules.push(...t),this.insertSsrRules(t))}}insertSsrRules(t){for(const{css:e,cls:r}of t){const t=this.getCategory(r);t?this.stylePartitionManager.addCategoryRule(e,t):this.stylePartitionManager.addRule(e)}}injectPreflightCSS(){const t=this.options.config.preflight??!0;if(t){const e=this.context.getPreflightCSS(t);this.stylePartitionManager.updateRuleContent("preflight",`${Co}\n@layer base {\n${e}\n}`,!0)}}ensureCssVars(){if(this.isDestroyed)return;const t=this.context.themeToCssVars?this.context.themeToCssVars():":root { /* CSS Variables will be generated here */ }";this.stylePartitionManager.updateRuleContent("css-vars",t)}getInsertionPoint(){return"string"!=typeof this.options.insertionPoint?this.options.insertionPoint:"body"===this.options.insertionPoint&&document.body||document.head}addClass(t){if(this.isDestroyed)return;const e=this.normalizeClasses(t).filter(Boolean);e.forEach(t=>this.pinned.add(t)),this.processClasses(e)}processClasses(t){this.processClassesIncremental(t)}processClassesIncremental(t){const e="undefined"!=typeof window,r=this.incrementalParser.processClasses(t);this.debugLog("debug","results",{results:r,classList:t}),this.applyParseResults(r,{isBrowser:e})}applyParseResults(t,e){if(this.isDestroyed)return;if(!this.shadowRoot&&this.getInsertionPoint().isConnected&&this.stylePartitionManager.hasDetachedPartitions()){const e=Array.from(this.cache.values());this.reset(),(t=[...e,...t]).forEach(t=>this.incrementalParser.markProcessed(t.cls))}if(this.ssrClasses.size>0&&(t=t.filter(t=>!this.ssrClasses.has(t.cls))),this.options.skipExisting&&t.length>0&&"undefined"!=typeof document){const e=this.getExistingClasses();t=t.filter(t=>!e.has(t.cls))}if(0===t.length)return;const r=[],o=[],a=this.options.skipExisting&&"undefined"!=typeof document?(this.getExistingClasses(),this.existingKeyframes):null;for(const n of t)if(n.css&&Array.isArray(n.cssList)&&(r.push(n),this.cache.set(n.cls,n)),n.rootCss&&Array.isArray(n.rootCssList))for(const t of n.rootCssList){if(a?.size){const e=/^\s*@keyframes\s+([^\s{]+)/.exec(t)?.[1];if(e&&a.has(e))continue}this.rootCache.has(t)||(this.rootCache.add(t),o.push(t))}o.length>0&&this.stylePartitionManager.addRootRules(o.filter(Boolean)),r.length>0&&this.stylePartitionManager.addRules(r),this.debugLog("info",`Applied ${t.length} parser results`,{cssRuleCount:r.length,rootCssCount:o.length})}isPermanent(t){return!(!this.pinned.has(t)&&!this.ssrClasses.has(t))||!this.shadowRoot&&("undefined"==typeof document||this.getExistingClasses().has(t))}reclaim(t){if(this.isDestroyed)return;const e=t.filter(t=>this.cache.has(t));if(0===e.length)return;const r=e.map(t=>this.cache.get(t));e.forEach(t=>{this.cache.delete(t),this.incrementalParser.unmarkProcessed(t)});const o=new Set;for(const a of this.cache.values())a.cssList.forEach(t=>o.add(t));for(const a of r){const t=this.getCategory(a.cls);for(const e of a.cssList)o.has(e)||this.stylePartitionManager.removeRule(e,t)}this.reclaimedCount+=e.length}getExistingClasses(){const t=new Set(Array.from(document.querySelectorAll("style[data-barocss]"),t=>t.sheet)),e=Array.from(document.styleSheets).filter(e=>{if(t.has(e))return!1;const r=e.ownerNode;return!(r&&"function"==typeof r.hasAttribute&&(r.hasAttribute("data-barocss")||(r.id||"").startsWith(this.options.styleId)))});if(this.existing&&e.length===this.existingSheetCount)return this.existing;const r=new Set,o=new Set;for(const a of e){let t;try{t=a.cssRules}catch{continue}co(t,r),lo(t,o)}return this.existingKeyframes=o,this.existing=r,this.existingSheetCount=e.length,r}observe(t=this.shadowRoot??document.body,e){return this.observedOnce||(this.observedOnce=!0,this.adoptSsrSheets()),this.changeDetector.observe(t,e)}normalizeClasses(t){return(Array.isArray(t)?t:[t]).flatMap(oo)}has(t){return this.cache.has(t)}getCss(t){return this.cache.get(t)?.cssList.join("\n")}getAllCss(){return[...this.rootCache,...Array.from(this.cache.values()).flatMap(t=>t.cssList)].join("\n")}getClasses(){return Array.from(this.cache.keys())}getCacheStats(){const t=this.incrementalParser.getStats();return{runtime:{cachedClasses:this.cache.size,rootCacheSize:this.rootCache.size,ruleCount:this.stylePartitionManager.ruleCount,reclaimedClasses:this.reclaimedCount,gc:this.gc?.stats()??null},ast:t.cacheStats.ast,incremental:t}}clearCaches(){var t;this.isDestroyed||(this.cache.clear(),this.rootCache.clear(),(t=this.context)?x(t):(m(),St.clear()),this.incrementalParser.clearProcessed(),this.stylePartitionManager.cleanup(),this.stylePartitionManager=this.createStyles(),this.injectPreflightCSS(),this.ensureCssVars(),this.insertSsrRules(this.ssrRules))}reset(){this.isDestroyed||(this.cache.clear(),this.rootCache.clear(),this.incrementalParser.clearProcessed(),this.stylePartitionManager.cleanup(),this.stylePartitionManager=this.createStyles(),this.injectPreflightCSS(),this.ensureCssVars(),this.insertSsrRules(this.ssrRules))}updateConfig(t){if(this.isDestroyed)return;const e=Array.from(this.cache.keys());if(this.options.config=t,this.shadowRoot){this.stylePartitionManager.cleanup();const e=vo(t);this.context=e.context,this.incrementalParser=new ko(e)}else this.context=Ht(t),this.incrementalParser=new Mt(this.context);this.changeDetector.setParser(this.incrementalParser),this.reset(),e.length>0&&this.addClass(e)}removeClass(t){if(this.isDestroyed)return;const e=new Set(this.normalizeClasses(t)),r=Array.from(this.cache.values()).filter(t=>!e.has(t.cls));r.length!==this.cache.size&&(this.reset(),r.forEach(t=>this.incrementalParser.markProcessed(t.cls)),this.applyParseResults(r))}destroy(){this.isDestroyed||(this.changeDetector.disconnect(),this.gc?.cancel(),this.stylePartitionManager.cleanup(),this.cache.clear(),this.rootCache.clear(),this.isDestroyed=!0)}getStats(){return{cachedClasses:this.cache.size,styleElementId:this.options.styleId,isDestroyed:this.isDestroyed,config:this.options.config,cacheStats:this.getCacheStats(),adopted:!this.shadowRoot&&this.stylePartitionManager instanceof wo,sharedSheet:this.shadowRoot&&this.stylePartitionManager instanceof wo?{roots:this.stylePartitionManager.shared.rootCount,rules:this.stylePartitionManager.shared.ruleCount,generations:this.stylePartitionManager.shared.generations,constructable:this.stylePartitionManager.shared.constructable}:null}}},zo=null,So="",Ao=!1,jo=!1;function Ro(t={}){if(!zo||zo.getStats().isDestroyed?(zo=new Po(t),xo=t.config,So=t.nonce??"",Ao=t.constructable??!1,jo=!1):t.config&&t.config!==xo&&(zo.updateConfig(t.config),xo=t.config),!jo){const e=void 0!==t.nonce&&t.nonce!==So,r=void 0!==t.constructable&&t.constructable!==Ao;if(e||r){jo=!0;const t=[e&&`nonce (runtime has ${So?"a different nonce":"none"})`,r&&`constructable (runtime has ${Ao})`].filter(Boolean).join(" and ");console.warn(`[BaroCSS] runtime already created with a different ${t}; the new value is ignored. Pass nonce/constructable on the first getRuntime/baroStart call.`)}}return zo}function Eo({loadingClassName:t="baro-boot",...e}={}){if(e.root&&11===e.root.nodeType)return new Po(e);if(!document.body)return void document.addEventListener("DOMContentLoaded",()=>Eo({loadingClassName:t,...e}),{once:!0});const r=`${t}-doing`,o=`${t}-done`;try{document.body.classList.add(r),Ro(e).observe(document.body,{scan:!0,onReady:()=>{document.body.classList.remove(r),document.body.classList.add(o)}})}catch(a){document.body?.classList.remove(r),console.error("BaroCSS boot failed:",a)}}var To=Eo;function No(t){if(!t||"object"!=typeof t||Array.isArray(t))return[];const e=t.elements;if(!e||"object"!=typeof e||Array.isArray(e))return[];const r=new Set;for(const o of Object.keys(e)){const t=e[o];if(!t||"object"!=typeof t||Array.isArray(t))continue;const a=t.props;if(!a||"object"!=typeof a||Array.isArray(a))continue;const n=a.className;if("string"==typeof n)for(const e of oo(n))e&&r.add(e)}return Array.from(r)}var Vo={colors:Object.fromEntries(["background","foreground","card","card-foreground","popover","popover-foreground","primary","primary-foreground","secondary","secondary-foreground","muted","muted-foreground","accent","accent-foreground","destructive","border","input","ring","chart-1","chart-2","chart-3","chart-4","chart-5","sidebar","sidebar-foreground","sidebar-primary","sidebar-primary-foreground","sidebar-accent","sidebar-accent-foreground","sidebar-border","sidebar-ring"].map(t=>[t,`var(--${t})`])),borderRadius:{sm:"calc(var(--radius) - 4px)",md:"calc(var(--radius) - 2px)",lg:"var(--radius)",xl:"calc(var(--radius) + 4px)"}};t.BrowserRuntime=Po,t.ChangeDetector=ao,t.LAYER_ORDER=Co,t.SSR_STYLE_SELECTOR=$o,t.StylePartitionManager=to,t.baroBoot=Eo,t.baroStart=To,t.collectJsonRenderClassNames=No,t.getRuntime=Ro,t.normalizeClassName=ro,t.normalizeClassNameList=oo,t.preloadJsonRenderClasses=function(t,e){const r=No(t);r.length>0&&e.addClass(r)},t.shadcnTheme=Vo});
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).BaroCSS={})}(this,function(t){function e(t,e,r){return{type:"decl",prop:t,value:e,source:r}}function r(t,e){return{type:"at-root",nodes:t,source:e}}function o(t,e,r,o){return{type:"at-rule",name:t,params:e,nodes:r,source:o}}function a(t,e,r){return{type:"rule",selector:t,nodes:e,source:r}}function n(t,r,a,n){const s=[e("syntax",`"${a||"*"}"`,n),e("inherits","false",n)];return r&&s.push(e("initial-value",r,n)),o("property",t,s,n)}Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});var s=!1;function i(){return s}function l(...t){s&&console.warn(...t)}var c,p=class{constructor(){this.cache=new Map,this.maxSize=1e3}set(t,e){if(this.cache.size>=this.maxSize){const t=this.cache.keys().next().value;t&&this.cache.delete(t)}this.cache.set(t,e)}get(t){return this.cache.get(t)}has(t){return this.cache.has(t)}clear(){this.cache.clear()}getStats(){return{size:this.cache.size,maxSize:this.maxSize,hitRate:this.cache.size/this.maxSize}}},u=new p,d=class{constructor(){this.cache=new Map,this.maxSize=2e3}set(t,e){if(this.cache.size>=this.maxSize){const t=this.cache.keys().next().value;t&&this.cache.delete(t)}this.cache.set(t,e)}get(t){return this.cache.get(t)}has(t){return this.cache.has(t)}clear(){this.cache.clear()}getStats(){return{size:this.cache.size,maxSize:this.maxSize,hitRate:this.cache.size/this.maxSize}}},y=new d,h=class{constructor(){this.cache=new Map,this.maxSize=1e3}set(t,e){if(this.cache.size>=this.maxSize){const t=this.cache.keys().next().value;t&&this.cache.delete(t)}this.cache.set(t,e)}get(t){return this.cache.get(t)}has(t){return this.cache.has(t)}clear(){this.cache.clear()}getStats(){return{size:this.cache.size,maxSize:this.maxSize,hitRate:this.cache.size/this.maxSize}}},g=new h;function m(){u.clear(),y.clear(),g.clear(),c?.(),function(...t){s&&console.log(...t)}("[clearAllCaches] All caches cleared")}var f=new WeakMap,b=0;function v(t){const e=f.get(t);return e&&e.cacheGeneration!==b&&(x(t),e.cacheGeneration=b),e}function x(t){const e=f.get(t);e&&(e.astCache.clear(),e.parseResultCache.clear(),e.utilityCache.clear(),e.failures.clear())}c=()=>{b+=1};var k=[];function w(t,e){const r=e&&v(e);if(e&&!r)throw new Error("Utility registration requires a context from createContext");(r?.utilities||k).push(t),e?x(e):(y.clear(),g.clear())}function $(t){return t&&v(t)?.utilities||k}var C=[];function P(t,e,r={},o){S({name:t,match:e=>e===t,modifySelector:({...t})=>e.map(t=>({selector:t,source:r.source})),...r},o)}function z(t,e,r,o={},a){S({match:t,modifySelector:e,wrap:r,...o},a)}function S(t,e){const r=e&&v(e);if(e&&!r)throw new Error("Modifier registration requires a context from createContext");(r?.modifiers||C).push(t),e&&x(e)}function A(t){return t&&v(t)?.modifiers||C}var j=/[^A-Za-z0-9_-]/gu,R=/^[\s\p{C}\p{Z}]$/u;function E(t){if("-"===t)return"\\-";const e=/^-?[0-9]/.exec(t);if(e){const r=e[0].length-1;return t.slice(0,r)+"\\"+t.charCodeAt(r).toString(16)+" "+T(t.slice(r+1))}return T(t)}function T(t){return t.replace(j,t=>" "===t?"\\x20 ":"."===t?"\\.":"/"===t?"\\/":":"===t?"\\:":"["===t?"\\[":"]"===t?"\\]":"("===t?"\\(":")"===t?"\\)":"%"===t?"\\%":"#"===t?"\\#":","===t?"\\,":"="===t?"\\=":"&"===t?"\\&":"~"===t?"\\~":"*"===t?"\\*":"$"===t?"\\$":"^"===t?"\\^":"+"===t?"\\+":"?"===t?"\\?":"!"===t?"\\!":"@"===t?"\\@":"'"===t?"\\'":'"'===t?'\\"':"`"===t?"\\`":";"===t?"\\;":"<"===t?"\\<":">"===t?"\\>":"{"===t?"\\{":"}"===t?"\\}":"|"===t?"\\|":"\\"===t?"\\\\":R.test(t)?"\\"+t.codePointAt(0).toString(16)+" ":"\\"+t)}function N(t,r,o,n){w({name:t,match:e=>e===t,handler:t=>r.flatMap(r=>{if(r.type)return[r];if("function"==typeof r)return[r(t)];const[o,n]=r;return"string"==typeof n?[e(o,n)]:Array.isArray(n)?[a(o,n.map(([t,r])=>e(t,r)))]:[]}),description:o?.description,category:o?.category,priority:o?.priority},n)}function W(t,e,r){if("DEFAULT"===r||!/^[a-zA-Z][\w-]*$/.test(r)||"function"!=typeof t?.theme)return;const o=t.theme(e);return o&&"object"==typeof o&&Object.prototype.hasOwnProperty.call(o,r)?o[r]??void 0:void 0}function V(t,e,r){const o=W(t,e,r);return"string"==typeof o?o:null}function B(t,e,r,o){return void 0===W(t,e,r)?null:`var(--${o}-${r})`}function M(t,r){w({name:t.name,match:e=>e.startsWith(t.name+"-"),handler:(r,o,a,n)=>{let s=r;const i=a,l={opacity:a.opacity};if(t.supportsOpacity&&!a.arbitrary&&!a.customProperty&&r.includes("/")){const t=r.split("/");t.length>=2&&(l.opacity=t.pop(),s=t.join("/"))}if(t.supportsArbitrary&&i.arbitrary){const r=D(F(s.replace(/_/g," ")));if(t.handle){const e=t.handle(r,o,a,l);if(e)return e}return t.prop?[e(t.prop,r)]:[]}if(t.supportsCustomProperty&&i.customProperty){if(t.handleCustomProperty)return t.handleCustomProperty(s,o,a,l);const r=`var(${s})`;if(t.handle){const e=t.handle(r,o,a,l);if(e)return e}return t.prop?[e(t.prop,r)]:[]}let c;t.themeKey&&o.theme&&(c=L(o.theme(t.themeKey,s)));let p=void 0!==c?t.themeKey:void 0;if(!c&&t.themeKeys&&o.theme)for(const e of t.themeKeys)if(c=L(o.theme(e,s)),void 0!==c){p=e;break}if(void 0!==c){if(l.themeNamespace=p,l.themeKey=s,"colors"!==p&&(t.themeKeys??[t.themeKey]).includes("colors")||(l.realThemeValue=s),s=c,t.prop)return[e(t.prop,s)];if(t.handle){const e=t.handle(s,o,a,l);if(e)return e}return[]}t.supportsFraction&&/^-?\d+\/\d+$/.test(r)&&(s=r);const u=t.spacingKeys?function(t,e,r){if("px"===e||!/^[a-zA-Z][\w-]*$/.test(e)||null==t.theme("spacing",e))return null;const o=`var(--spacing-${e})`;return r?`calc(${o} * -1)`:o}(o,String(s).replace(/^-/,""),!!i.negative):null;if(i.negative&&t.supportsNegative&&t.handleNegativeBareValue){const e=t.handleNegativeBareValue({value:String(s).replace(/^-/,""),ctx:o,token:a,extra:l})??u;if(null==e)return[];s=e}else if(t.handleBareValue){const e=t.handleBareValue({value:s,ctx:o,token:a,extra:l})??u;if(null==e)return[];s=e}else if(u)s=u;else if(!/^-?(\d|\.\d)/.test(String(s)))return[];if(t.handle){const e=t.handle(s,o,a,l);if(e)return e}return t.prop?[e(t.prop,s)]:[]},description:t.description,category:t.category,priority:t.priority},r)}var O=new Set(["calc","min","max","clamp"]);function F(t){return t.replace(/--spacing\(\s*([^()]+?)\s*\)/g,"calc(var(--spacing) * $1)")}var K={name:"[arbitrary-property]",match:()=>!1,handler:(t,r,o)=>{const a=o.property;return a&&t?[e(a,D(F(t.replace(/_/g," "))))]:[]}};function D(t){if(!/(calc|min|max|clamp)\(/.test(t))return t;const e=[];let r="";for(let o=0;o<t.length;o++){const a=t[o];if("("===a){const t=(/([a-z-]*)$/i.exec(r)?.[1]??"").toLowerCase(),o=e.length>0&&e[e.length-1];e.push(O.has(t)||""===t&&o),r+=a;continue}if(")"!==a)if(e.length>0&&e[e.length-1])if(","!==a){if("+-*/".includes(a)){const e=r.trimEnd(),n=e[e.length-1]??"",s=/[\w%)]/.test(n),i=("+"===a||"-"===a)&&/\de$/i.test(e)&&e.length===r.length&&/\d/.test(t[o+1]??"");if(s&&!i){for(r=e+" "+a+" ";" "===t[o+1];)o++;continue}}r+=a}else for(r=r.trimEnd()+", ";" "===t[o+1];)o++;else r+=a;else e.pop(),r+=a}return r}function L(t){return"string"==typeof t?t:"number"==typeof t&&Number.isFinite(t)?String(t):void 0}function Z(t,e){const r=e&&v(e)?.utilityCache||g;if(r.has(t))return r.get(t);const o=$(e),a=A(e),n=o.filter(e=>{const r=e.name;return t.startsWith(r+"-")||t===r||t.startsWith(r)}).some(e=>e.match(t)),s=a.filter(e=>{const r=e.name||e.match.toString().split("(")[0];return t.startsWith(r+":")||t===r}).some(e=>e.match(t,{})),i=n&&!s;return r.set(t,i),i}function I(t,e){const r=e&&v(e)?.parseResultCache||y;if(r.has(t))return r.get(t);let o=t;const a=e?function(t){const e=t.config("prefix");return"string"==typeof e&&/^[a-z]+$/.test(e)?e:""}(e):"";if(a){if(!t.startsWith(a+":")){const e={modifiers:[],utility:null};return r.set(t,e),e}o=t.slice(a.length+1)}let n=!1;o.startsWith("!")?(n=!0,o=o.slice(1)):o.length>1&&o.endsWith("!")&&(n=!0,o=o.slice(0,-1));const s=function(t,e){const r=[];let o=null;if(0===t.length)return{modifiers:r,utility:null};if(t.length>1){const o=Z(t[0].value,e)?0:t.length-1;if(t.some((t,e)=>!(e===o||function(t){if(q(t))return!1;const e=_.exec(t);return e?G(e[1],!0):G(t)}(t.value)&&function(t){let e="",r=0;for(let o=0;o<t.length;o++){const a=t[o];if("\\"!==a)if(e)a===e&&(e="");else if('"'!==a&&"'"!==a){if("["===a){if("]"===t[o+1])return!1;r++}else if("]"===a&&(r--,0===r&&t.startsWith("[")&&o!==t.length-1))return!1}else e=a;else o++}return!0}(t.value))))return{modifiers:r,utility:null}}if(!Y((t.length>1&&!Z(t[0].value,e)?t[t.length-1]:t[0]).value))return{modifiers:r,utility:null};if(1===t.length)o=Q(t[0].value,e);else if(2===t.length){const a=t[0],n=t[1];if(Z(a.value,e)){o=Q(a.value,e);const t=X(n.value);t&&r.push(t)}else{const t=X(a.value);t&&r.push(t),o=Q(n.value,e)}}else if(Z(t[0].value,e)){o=Q(t[0].value,e);for(let e=1;e<t.length;e++){const o=X(t[e].value);o&&r.push(o)}}else{for(let e=0;e<t.length-1;e++){const o=X(t[e].value);o&&r.push(o)}o=Q(t[t.length-1].value,e)}return{modifiers:r,utility:o}}(function(t){const e=[];let r="",o=0,a=0,n=0;for(let s=0;s<t.length;s++){const i=t[s];"["===i&&a++,"]"===i&&a--,"("===i&&n++,")"===i&&n--,":"===i&&0===a&&0===n?(r&&e.push({value:r,start:o,end:s}),r="",o=s+1):r+=i}return r&&e.push({value:r,start:o,end:t.length}),e}(o),e);return s.utility&&(s.utility.important=n),r.set(t,s),s}var _=/^-?(?:(?:group|peer)-)?(?:has|not)-\[(.*)\](?:\/[\w-]+)?$/;function q(t){return t.includes("/*")||t.includes("*/")}function U(t){for(let e=0;e<t.length-1;e++){const r=t[e];if("\\"===r){e++;continue}const o=t[e+1];if("/"===r&&"*"===o||"*"===r&&"/"===o)return!0}return!1}function H(t){return t.includes("</")}function Y(t){return!q(t)&&G(t,!0)}function G(t,e=!1){const r=[];let o="",a=0;for(let n=0;n<t.length;n++){const s=t[n];if("\\"!==s)if(o)s===o&&(o="");else switch(s){case'"':case"'":o=s;break;case"(":r.push(")"),a++;break;case"[":r.push("]");break;case")":case"]":if(r.pop()!==s)return!1;")"===s&&a--;break;case"{":case"}":case";":return!1;case",":if(0===a&&!e)return!1}else n++}return 0===r.length&&!o}function X(t){let e=!1,r=t;return r.startsWith("-")&&(e=!0,r=r.slice(1)),r.startsWith("[")&&r.endsWith("]")?{type:r,negative:e,arbitrary:!0}:{type:r,negative:e}}function J(t,e){return e.name.length-t.name.length}function Q(t,e){let r="",o="",a=!1,n=!1,s=!1,i="",l="",c=0;const p=/^\[(--[a-zA-Z_][a-zA-Z0-9_-]*|-?[a-z][a-z-]*):(.+)\]$/.exec(t);if(p)return!Y(p[2])||function(t){let e="";for(let r=0;r<t.length;r++){const o=t[r];if("\\"!==o){if(e)o===e&&(e="");else if('"'===o||"'"===o)e=o;else if("@"===o)return!0}else r++}return!1}(p[2])?{prefix:"",value:""}:{prefix:"",value:p[2],arbitrary:!0,property:p[1]};if(t.startsWith("-")&&(s=!0),t.includes("-[")){[r,o]=t.split("-[");const e=o.lastIndexOf("]");-1!==e&&e<o.length-1&&"/"===o[e+1]?(i=o.slice(e+2),o=o.slice(0,e)):o=o.replace(/]$/,""),a=!0}else if(t.includes("-("))[r,o]=t.split("-("),o=o.replace(/\)$/,""),n=!0;else{const a=[...$(e)].sort(J);let n=a.find(e=>t===e.name);if(n)r=n.name,o="",s=t.startsWith("-"),l=n.category,c=n.priority;else if(t.startsWith("-")&&(s=!0,t=t.slice(1)),n=a.find(e=>t.startsWith(e.name+"-")),n)r=n.name,o=t.slice(n.name.length+1),l=n.category,c=n.priority;else{const e=t.split("-");r=e[0],o=e.slice(1).join("-")}}return{prefix:r,value:o,arbitrary:!!a,customProperty:!!n,negative:!!s,opacity:i,category:l,priority:c}}var tt=t=>{const e=String(t??"");return!U(e)&&!H(e)&&function(t){const e=[];let r="";for(let o=0;o<t.length;o++){const a=t[o];if("\\"!==a)if(r)a===r&&(r="");else switch(a){case'"':case"'":r=a;break;case"(":e.push(")");break;case"[":e.push("]");break;case"{":e.push("}");break;case")":case"]":case"}":if(e.pop()!==a)return!1}else o++}return 0===e.length&&!r}(e)&&!/url\s*\(/i.test(e)},et=t=>{if("at-rule"!==t.type)return[];if("property"!==t.name)return t.nodes;const e=new Set;return t.nodes.filter(t=>"decl"!==t.type||!e.has(t.prop)&&!!e.add(t.prop))},rt=(t,e)=>Y(String(t))&&Y(String(e??""))&&!H(String(t))&&!H(String(e??""));function ot(t,e,r,o=""){const a=r?.minify,n=o,s=o+" ",i=r?.important?" !important":"",c=r?{...r,nested:!0}:r,p=r?.scope?"."+E(r.scope):"",u=t=>!p||function(t,e,r=!1){const o=[];let a=0,n="",s=0;for(let i=0;i<t.length;i++){const e=t[i];"\\"!==e?n?e===n&&(n=""):'"'===e||"'"===e?n=e:"("===e||"["===e?a++:")"===e||"]"===e?a--:","===e&&0===a&&(o.push(t.slice(s,i)),s=i+1):i++}return o.push(t.slice(s)),o.every(t=>{if(r&&t.includes("&"))return!0;for(let r=t.indexOf(e);-1!==r;r=t.indexOf(e,r+1)){if(r>0&&"\\"===t[r-1])continue;const o=t[r+e.length];if(e.endsWith(" ")||void 0===o||!/[\w\-\\\u0080-\uffff]/.test(o))return!0}return!1})}(t,p,!!r?.nested);if(!t||0===t.length)return l("[astToCss] Empty AST received:",{ast:t,baseSelector:e,minify:a}),"";const d=[];if(Array.isArray(t)){const e=new Map;for(let r=t.length-1;r>=0;r--){const o=t[r];if("decl"===o.type){const t=o.prop;if(e.has(t))continue;e.set(t,!0)}d.unshift(o)}}const y=d.map(t=>{switch(t.type){case"decl":{const e=t.value;return rt(t.prop,e)?t.prop.startsWith("--")?a?`${t.prop}: ${e}${i};`:`${n}${t.prop}: ${e}${i};`:`${a?"":n}${t.prop}: ${e}${i};`:""}case"rule":{let r=t.selector;if(e){const t="."+E(e);r&&r.includes("&")?r=r.replace(/&/g,t):r.startsWith(t)||(r=r.split(",").map(e=>(e=e.trim()).startsWith(":")||e.startsWith("::")?t+e:t+(e.startsWith(".")?"":" ")+e).join(", "))}return tt(r)&&u(r)?a?`${n}${r}{${ot(t.nodes,e,c,s)}}`:`${n}${r} {\n${ot(t.nodes,e,c,s)}${n}}`:""}case"style-rule":return tt(t.selector)&&u(t.selector)?a?`${n}${t.selector} {${ot(t.nodes,e,c,s)}}`:`${n}${t.selector} {\n${ot(t.nodes,e,c,s)}${n}}`:"";case"at-rule":return tt(t.name)&&tt(t.params)?a?`${n}@${t.name} ${t.params}{${ot(t.nodes,e,r,s)}}`:`${n}@${t.name} ${t.params} {\n${ot(t.nodes,e,r,s)}${n}}`:"";case"comment":return a?"":`${n}/* ${t.text} */`;case"raw":return`${n}${t.value}`;default:return l("[astToCss] Unknown node type:",t),""}}).filter(Boolean).join(a?"":"\n"),h=y+(a?"":"\n");return h&&""!==h.trim()||l("[astToCss] Empty result generated:",{ast:t,baseSelector:e,minify:a,result:y,finalResult:h,dedupedAst:d}),h}function at(t,e){const r=!0===e?.minify;return t.map(t=>{const e=[];if("decl"===t.type)rt(t.prop,t.value)&&e.push(r?`${t.prop}:${t.value};`:`${t.prop}: ${t.value};`);else if("at-rule"===t.type&&tt(t.name)&&tt(t.params))if(r){const r=et(t).filter(t=>"decl"===t.type&&rt(t.prop,t.value)).map(t=>"decl"===t.type?`${t.prop}:${t.value};`:"").join("");e.push(`@${t.name} ${t.params}{${r}}`)}else e.push(`@${t.name} ${t.params} {\n${et(t).map(t=>{if("decl"===t.type&&rt(t.prop,t.value))return`\t${t.prop}: ${t.value};`}).join("\n")}\n}`);return e.join(r?"":"\n")}).join(r?"":"\n")}function nt(t){return t.replace(".","\\.")}function st(t){if(!t)return{};const e={};return function t(r,o=[]){for(const a in r){const n=r[a];if("object"==typeof n&&null!==n)t(n,[...o,a]);else{const t="--color-"+[...o,a].join("-");e[t]=n}}}(t),e}function it(t){if(!t)return{};const e={};for(const r in t)e[`--shadow-${r}`]=t[r];return e}function lt(t){if(!Array.isArray(t))return;const e=t[1];if("string"==typeof e||"number"==typeof e)return String(e);const r=e?.lineHeight;return null==r?void 0:String(r)}function ct(t){if(!t)return{};const e={};for(const r in t){const o=t[r];if(Array.isArray(o)){e[`--text-${r}`]=o[0];const t=lt(o);t&&(e[`--text-${r}--line-height`]=t)}else e[`--text-${r}`]=o}return e}function pt(t){if(!t)return{};const e={};for(const r in t)e[`--font-weight-${r}`]=t[r];return e}function ut(t){if(!t)return{};const e={};for(const r in t){const o=t[r];Array.isArray(o)?e[`--font-${r}`]=o.join(", "):e[`--font-${r}`]=o}return e}function dt(t){if(!t)return{};const e={};for(const r in t)e[`--letter-spacing-${r}`]=t[r];return e}function yt(t){if(!t)return{};const e={};for(const r in t)e[`--spacing-${nt(r)}`]=t[r];return e}function ht(t){if(!t)return{};const e={};for(const r in t)e[`--radius-${nt(r)}`]=t[r];return e}function gt(t){if(!t)return{};const e={};for(const r in t)e[`--z-${nt(r)}`]=String(t[r]);return e}function mt(t){if(!t)return{};const e={};for(const r in t)e[`--opacity-${nt(r)}`]=String(t[r]);return e}function ft(t){if(!t)return{};const e={};for(const r in t)e[`--animate-${nt(r)}`]=t[r];return e}var bt=/\/\*|\*\/|[{};]|<\//;function vt(t,e){if(!t.includes("animation"))return[];const r=e.theme("keyframes");if(!r||"object"!=typeof r)return[];const o=new Set;for(const a of t.matchAll(/(?:^|[\s;{])animation(?:-name)?\s*:\s*([^;}]+)/g)){const t=a[1].replace(/var\(--animate-([\w-]+)\)/g,(t,r)=>{const o=e.theme("animations",r)??e.theme("animation",r);return"string"==typeof o?o:t});for(const e of t.split(/[\s,()]+/))e&&Object.prototype.hasOwnProperty.call(r,e)&&o.add(e)}return[...o].map(t=>function(t,e){if(!t||bt.test(t)||/\s/.test(t)||!e||"object"!=typeof e)return"";let r="";for(const[o,a]of Object.entries(e)){if(bt.test(o)||!a||"object"!=typeof a)return"";let t="";for(const[e,r]of Object.entries(a)){const o=String(r);if(bt.test(e)||bt.test(o))return"";t+=` ${e}: ${o};\n`}r+=` ${o} {\n${t} }\n`}return`@keyframes ${t} {\n${r}}`}(t,r[t])).filter(Boolean)}function xt(t){const e={};for(const r in t)"DEFAULT"===r?e["--default-transition-timing-function"]=t[r]:(e[`--transition-timing-function-${nt(r)}`]=t[r],"linear"!==r&&(e[`--ease-${nt(r)}`]=t[r]));return e}function kt(t){const e={};for(const r in t)"DEFAULT"===r?e["--default-transition-duration"]=t[r]:e[`--transition-duration-${nt(r)}`]=t[r];return e}function wt(t){const e={};for(const r in t)"DEFAULT"===r?e["--default-transition-delay"]=t[r]:e[`--transition-delay-${nt(r)}`]=t[r];return e}function $t(t){const e={};for(const r in t)"DEFAULT"===r?e["--default-blur"]=t[r]:e[`--blur-${nt(r)}`]=t[r];return e}function Ct(t){const e={};for(const r in t)e[`--container-${nt(r)}`]=t[r];return e}var Pt=/^--(?:[\w-]|\\\.)+$/;function zt(t,e=""){return":root,:host {\n"+Object.entries(t).filter(([t,e])=>function(t,e){if("string"!=typeof t||!Pt.test(t)||H(t))return!1;if("string"!=typeof e&&"number"!=typeof e)return!1;const r=String(e);return""!==r.trim()&&Y(r)&&!U(r)&&!H(r)}(t,e)&&!function(t,e){if("string"!=typeof e)return!1;const r=/^var\(\s*(--[\w-]+)\s*(?:,[\s\S]*)?\)$/.exec(e.trim());return!!r&&r[1]===t.trim()}(t,e)).map(([t,e])=>` ${t}: ${e};`).join("\n")+"\n}\n"+e+"\n"}var St=/--baro-/g,At=new Set(["prop","value","params","selector","nodes","items"]);var jt=new Set;function Rt(t=[],e=[]){let r=[];for(const o of t){const t={...o};delete t.nodes;const a=o.nodes;"decl"===o.type?r.push([...e,t]):a&&a.length>0&&(r=r.concat(Rt(a,[...e,t])))}return r}function Et(t){return"at-root"===t?-1:"at-rule"===t?0:"style-rule"===t?10:"rule"===t?20:30}var Tt={media:0,supports:1,container:2,responsive:10,group:20,peer:30,dark:40,universal:50,data:60,aria:70,attribute:80,pseudo:90,base:100,starting:110};function Nt(t){return Tt[t.source||"base"]||100}function Wt(t){if(!t||0===t.length)return[];const e=t.slice(0,-1),r=t[t.length-1],o=[...e].sort((t,e)=>Et(t.type)-Et(e.type));if(0===o.length)"decl"===r.type&&o.push({type:"rule",selector:"&",source:"base"});else{const t=o[o.length-1];("at-rule"==t.type&&"property"!==t.name||"style-rule"==t.type||"rule"===t.type&&!1===t.selector?.includes("&"))&&o.push({type:"rule",selector:"&",source:"base"})}const a=[];for(const c of o)if(0===a.length)a.push(c);else{const t=a[a.length-1];c.type===t.type&&("at-rule"===c.type&&"at-rule"===t.type&&c.name===t.name&&c.params===t.params||("rule"===c.type||"style-rule"===c.type)&&c.selector===t.selector)||a.push(c)}const n=[],s=[];for(const c of a)"rule"===c.type?n.push(c):s.push(c);let i={...r};const l=[...n].sort((t,e)=>Nt(t)-Nt(e));if(l.length>0){const t=l.reduce((t,e)=>{const r=e.source||"base";return t[r]||(t[r]=[]),t[r].push(e),t},{}),e=Object.entries(t).sort(([t],[e])=>(Tt[t]??999)-(Tt[e]??999)).map(([t,e])=>((t,e)=>"pseudo"===t?e.reduce((t,e)=>{const r=e.selector;return""===t?r:r?.includes("&")?r.replace(/&/,t):r+" "+t},""):e.reduceRight((t,e)=>{const r=e.selector;return""===t?r:r?.includes("&")?r.replace(/&/,t):r+" "+t},""))(t,e));let r="";for(let o=0;o<e.length;o++){const t=e[o];r=""===r?t:t.includes("&")?t.replace(/&/,r):t+" "+r}i={type:"rule",selector:r,nodes:[i]}}for(let c=s.length-1;c>=0;c--)i={...s[c],nodes:[i]};return[i]}function Vt(t,e,r=[]){for(let o=0;o<t.length;o++){const e=t[o];"at-root"===e.type?(r.push(e),delete t[o]):"rule"!==e.type&&"style-rule"!==e.type&&"at-rule"!==e.type||Vt(e.nodes??[],e,r)}e&&(e.nodes=t.filter(Boolean))}function Bt(t,e){const r=v(e),o=r?.failures||jt,a=r?.astCache||u;if(o.has(t))return[];if(a.has(t))return a.get(t);const{modifiers:n,utility:s}=I(t,e);if(!s)return l(`[BAROCSS] Invalid class name format: "${t}"`),o.add(t),[];const i=s.property?[K]:$(e).filter(t=>{const e=s.value?`${s.prefix}-${s.value}`:s.prefix;return t.match(e)});if(0===i.length){return l(`[BAROCSS] Unknown utility class: "${s.value?`${s.prefix}-${s.value}`:s.prefix}" in "${t}"`),o.add(t),[]}let c=s.value;s.negative&&c&&(c="-"+c);let p=[];for(const l of i)if(p=l.handler(c,e,s,l)||[],p.length>0)break;const d=[];for(let u=0;u<n.length;u++){const r=n[u],a=A(e).find(t=>t.match(r.type,e));if(!a)return l(`[BAROCSS] Unknown variant: "${r.type}" in "${t}"`),o.add(t),[];if(a.astHandler&&(p=a.astHandler(p,r,e,n,u)),a.wrap){const t=a.wrap(r,e);d.push({type:"wrap",items:t})}if(a.modifySelector){const s=a.modifySelector({selector:"&",fullClassName:t,mod:r,context:e,variantChain:n,index:u});if(null==s)return l(`[BAROCSS] Unknown variant: "${r.type}" in "${t}"`),o.add(t),[];if(a.wrap&&("&"===s||"object"==typeof s&&!Array.isArray(s)&&"&"===s.selector||Array.isArray(s)&&1===s.length&&"&"===s[0].selector))continue;if("string"==typeof s&&s.includes("&"))d.push({type:"rule",selector:s});else if("object"==typeof s&&!Array.isArray(s)&&s.selector){const t=s.wrappingType||"rule";d.push({type:t,selector:s.selector,flatten:s.flatten,source:s.source})}else Array.isArray(s)&&d.push({type:"wrap",items:s.map(t=>({type:t.wrappingType||"rule",selector:t.selector,source:t.source,flatten:t.flatten}))})}}for(let l=d.length-1;l>=0;l--){const t=d[l];"wrap"===t.type?p=t.items.map(t=>"rule"===t.type||"style-rule"===t.type||"at-rule"===t.type||"at-root"===t.type?{...t,nodes:[...t.nodes||[],...p]}:t):"style-rule"===t.type?p=[{type:"style-rule",selector:t.selector,source:t.source,nodes:Array.isArray(p)?p:[p]}]:"at-rule"===t.type?p=[{type:"at-rule",name:t.name||"media",params:t.params,source:t.source,nodes:Array.isArray(p)?p:[p]}]:"rule"===t.type&&(p=[{type:"rule",selector:t.selector,source:t.source,nodes:Array.isArray(p)?p:[p]}])}const y=[];return Vt(p,void 0,y),p=function(t,e){const r=e?.config("cssVarPrefix");if("string"!=typeof r||!r.trim())return t;const o=function(t){let e=t.trim();return e.startsWith("--")||(e=`--${e}`),e.endsWith("-")||(e=`${e}-`),e}(r);if("--baro-"===o)return t;const a=t=>{if("string"==typeof t)return t.includes("--baro-")?t.replace(St,o):t;if(Array.isArray(t))return t.map(a);if(!t||"object"!=typeof t)return t;const e={};for(const[r,o]of Object.entries(t))e[r]=At.has(r)?a(o):o;return e};return a(t)}([...y,...p].filter(Boolean),e),a.set(t,p),p}var Mt=/[ \t\n\f\r]+/;function Ot(t,e,r){const o=new Set;return t.split(Mt).filter(t=>{if(!t)return!1;if(r?.dedup){if(o.has(t))return!1;o.add(t)}return!0}).map(t=>{const o=Bt(t,e),a=(v(e)?.parseResultCache||y).get(t),n={minify:r?.minify,important:a?.utility?.important??!1},s=function(t){return function(t){const e=t.map(t=>{const e=[];let r=t[0];for(;r&&(e.push({...r,nodes:void 0}),r.nodes&&1===r?.nodes?.length);)r=r.nodes?.[0];return e});function r(t,e=0){if(0===t.length)return[];if(t[0].length===e+1)return t.map(t=>t[e]);const o=new Map;for(const r of t){const t=r[e];let a=t.type;"at-rule"===t.type?a+=":"+t.name+":"+t.params:"rule"===t.type||"style-rule"===t.type?a+=":"+t.selector:a+=":"+JSON.stringify(t),o.has(a)||o.set(a,[]),o.get(a).push(r)}const a=[];for(const[,n]of o.entries()){const t=n[0][e],o=r(n,e+1);a.push(o.length?{...t,nodes:o}:{...t})}return a}return r(e)}(Rt(t).map(Wt))}(o),i=s.filter(t=>"at-root"===t.type&&!t.source).map(t=>t.nodes||[]).flat(),l=s.filter(t=>"at-root"!==t.type||"at-root"===t.type&&t.source),c=[];for(const e of l)if("at-root"===e.type)e.nodes.forEach(t=>{const e=ot([t],"",n);c.push(e)});else{const r=ot([e],t,{...n,scope:t});c.push(r)}const p=[];for(const e of i){const t=at([e]);p.push(t)}return p.push(...vt(c.join("\n"),e)),{cls:t,ast:l,css:c.join(n.minify?"":"\n"),cssList:c,rootCss:p.join(n.minify?"":"\n"),rootCssList:p}})}var Ft=class{constructor(t){this.processedClasses=new Set,this.batchSize=50,this.debounceMs=16,this.pendingClasses=new Set,this.batchTimer=null,this.ctx=t}processClass(t){if(this.processedClasses.has(t))return null;try{if(!I(t,this.ctx).utility)return null;const e=Bt(t,this.ctx);if(0===e.length)return l("[IncrementalParser] ast is empty",t),null;const r=Ot(t,this.ctx,{dedup:!1});if(0===r.length)return null;const o=r[0];return o.css?(this.processedClasses.add(t),{cls:t,ast:e,css:o.css,cssList:o.cssList,rootCss:o.rootCss,rootCssList:o.rootCssList}):null}catch(e){return l("[IncrementalParser] Failed to process class:",t,e),null}}processClasses(t){const e=[],r=t.filter(t=>!this.processedClasses.has(t));if(0===r.length)return e;for(let o=0;o<r.length;o+=this.batchSize){const t=r.slice(o,o+this.batchSize);for(const r of t){const t=this.processClass(r);t&&e.push(t)}}return e}addToPending(t){t.forEach(t=>this.pendingClasses.add(t)),this.scheduleBatchProcessing()}scheduleBatchProcessing(){this.batchTimer&&clearTimeout(this.batchTimer),"undefined"!=typeof window?this.batchTimer=window.setTimeout(()=>{this.processPendingClasses()},this.debounceMs):this.processPendingClasses()}processPendingClasses(){if(0===this.pendingClasses.size)return;const t=Array.from(this.pendingClasses);this.pendingClasses.clear(),this.applyClasses(t)}applyClasses(t){this.processClasses(t),t.forEach(t=>{this.markProcessed(t)})}getStats(){return{processedClasses:this.processedClasses.size,pendingClasses:this.pendingClasses.size,cacheStats:{ast:(v(this.ctx)?.astCache||u).getStats(),css:{}}}}clearProcessed(){this.processedClasses.clear(),this.pendingClasses.clear(),this.batchTimer&&"undefined"!=typeof window&&(clearTimeout(this.batchTimer),this.batchTimer=null)}isProcessed(t){return this.processedClasses.has(t)}markProcessed(t){this.processedClasses.add(t)}unmarkProcessed(t){this.processedClasses.delete(t)}processClassesSync(t){this.applyClasses(t)}getProcessedClasses(){return Array.from(this.processedClasses)}},Kt={spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},Dt={colors:{inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 none)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 none)",100:"oklch(97% 0 none)",200:"oklch(92.2% 0 none)",300:"oklch(87% 0 none)",400:"oklch(70.8% 0 none)",500:"oklch(55.6% 0 none)",600:"oklch(43.9% 0 none)",700:"oklch(37.1% 0 none)",800:"oklch(26.9% 0 none)",900:"oklch(20.5% 0 none)",950:"oklch(14.5% 0 none)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"},mauve:{50:"oklch(98.5% 0 none)",100:"oklch(96% 0.003 325.6)",200:"oklch(92.2% 0.005 325.62)",300:"oklch(86.5% 0.012 325.68)",400:"oklch(71.1% 0.019 323.02)",500:"oklch(54.2% 0.034 322.5)",600:"oklch(43.5% 0.029 321.78)",700:"oklch(36.4% 0.029 323.89)",800:"oklch(26.3% 0.024 320.12)",900:"oklch(21.2% 0.019 322.12)",950:"oklch(14.5% 0.008 326)"},olive:{50:"oklch(98.8% 0.003 106.5)",100:"oklch(96.6% 0.005 106.5)",200:"oklch(93% 0.007 106.5)",300:"oklch(88% 0.011 106.6)",400:"oklch(73.7% 0.021 106.9)",500:"oklch(58% 0.031 107.3)",600:"oklch(46.6% 0.025 107.3)",700:"oklch(39.4% 0.023 107.4)",800:"oklch(28.6% 0.016 107.4)",900:"oklch(22.8% 0.013 107.4)",950:"oklch(15.3% 0.006 107.1)"},mist:{50:"oklch(98.7% 0.002 197.1)",100:"oklch(96.3% 0.002 197.1)",200:"oklch(92.5% 0.005 214.3)",300:"oklch(87.2% 0.007 219.6)",400:"oklch(72.3% 0.014 214.4)",500:"oklch(56% 0.021 213.5)",600:"oklch(45% 0.017 213.2)",700:"oklch(37.8% 0.015 216)",800:"oklch(27.5% 0.011 216.9)",900:"oklch(21.8% 0.008 223.9)",950:"oklch(14.8% 0.004 228.8)"},taupe:{50:"oklch(98.6% 0.002 67.8)",100:"oklch(96% 0.002 17.2)",200:"oklch(92.2% 0.005 34.3)",300:"oklch(86.8% 0.007 39.5)",400:"oklch(71.4% 0.014 41.2)",500:"oklch(54.7% 0.021 43.1)",600:"oklch(43.8% 0.017 39.3)",700:"oklch(36.7% 0.016 35.7)",800:"oklch(26.8% 0.011 36.5)",900:"oklch(21.4% 0.009 43.1)",950:"oklch(14.7% 0.004 49.3)"}},spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem",112:"28rem",128:"32rem"},borderRadius:{none:"0px",xs:"0.125rem",sm:"0.25rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","4xl":"2rem",full:"9999px"},breakpoints:{sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},container:{"3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},fontSize:{xs:["0.75rem","calc(1 / 0.75)"],sm:["0.875rem","calc(1.25 / 0.875)"],base:["1rem","calc(1.5 / 1)"],lg:["1.125rem","calc(1.75 / 1.125)"],xl:["1.25rem","calc(1.75 / 1.25)"],"2xl":["1.5rem","calc(2 / 1.5)"],"3xl":["1.875rem","calc(2.25 / 1.875)"],"4xl":["2.25rem","calc(2.5 / 2.25)"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontFamily:{sans:["-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Noto Sans","Arial","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],serif:["ui-serif","Georgia","Cambria","Times New Roman","Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem"},boxShadow:{"2xs":"0 1px rgb(0 0 0 / 0.05)",xs:"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px 0 rgb(0 0 0 / 0.06)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"},opacity:{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{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)"},transitionDuration:{DEFAULT:"150ms",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDelay:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animations:Kt,keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:"0.5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(0.8, 0, 1, 1)"},"50%":{transform:"none","animation-timing-function":"cubic-bezier(0, 0, 0.2, 1)"}}},animationVars:{"--animate-spin":Kt.spin,"--animate-ping":Kt.ping,"--animate-pulse":Kt.pulse,"--animate-bounce":Kt.bounce},blur:{DEFAULT:"8px",xs:"4px",sm:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},textShadow:{"2xs":"0px 1px 0px rgb(0 0 0 / 0.15)",xs:"0px 1px 1px rgb(0 0 0 / 0.2)",sm:"0px 1px 0px rgb(0 0 0 / 0.075), 0px 1px 1px rgb(0 0 0 / 0.075), 0px 2px 2px rgb(0 0 0 / 0.075)",md:"0px 1px 1px rgb(0 0 0 / 0.1), 0px 1px 2px rgb(0 0 0 / 0.1), 0px 2px 4px rgb(0 0 0 / 0.1)",lg:"0px 1px 2px rgb(0 0 0 / 0.1), 0px 3px 2px rgb(0 0 0 / 0.1), 0px 4px 8px rgb(0 0 0 / 0.1)"},dropShadow:{xs:"0 1px 1px rgb(0 0 0 / 0.05)",sm:"0 1px 2px rgb(0 0 0 / 0.15)",md:"0 3px 3px rgb(0 0 0 / 0.12)",lg:"0 4px 4px rgb(0 0 0 / 0.15)",xl:"0 9px 7px rgb(0 0 0 / 0.1)","2xl":"0 25px 25px rgb(0 0 0 / 0.15)"},aspect:{video:"16 / 9"}},Lt=/^[A-Za-z_][A-Za-z0-9_-]*$/,Zt=/^(--[A-Za-z0-9_-]+|-?[A-Za-z][A-Za-z0-9-]*)$/;function It(t,e){if("string"!=typeof t||!Lt.test(t))return null;if(!e||"object"!=typeof e||Array.isArray(e))return null;const r=[];for(const[o,a]of Object.entries(e)){if("string"!=typeof a&&"number"!=typeof a)return null;const t=String(a).trim();if(!Zt.test(o)||!t||!Y(t)||U(t))return null;r.push([o,t])}return r.length?r:null}var _t="\n/* BaroCSS Preflight - Full (Tailwind 4.3.3) */\n*,\n::after,\n::before,\n::backdrop,\n::file-selector-button {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n border: 0 solid;\n}\n\nhtml,\n:host {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n tab-size: 4;\n font-family: var(--default-font-family, var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'));\n font-feature-settings: var(--default-font-feature-settings, normal);\n font-variation-settings: var(--default-font-variation-settings, normal);\n -webkit-tap-highlight-color: transparent;\n}\n\nhr {\n height: 0;\n color: inherit;\n border-top-width: 1px;\n}\n\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\na {\n color: inherit;\n -webkit-text-decoration: inherit;\n text-decoration: inherit;\n}\n\nb,\nstrong {\n font-weight: bolder;\n}\n\ncode,\nkbd,\nsamp,\npre {\n font-family: var(--default-mono-font-family, var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace));\n font-feature-settings: var(--default-mono-font-feature-settings, normal);\n font-variation-settings: var(--default-mono-font-variation-settings, normal);\n font-size: 1em;\n}\n\nsmall {\n font-size: 80%;\n}\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\ntable {\n text-indent: 0;\n border-color: inherit;\n border-collapse: collapse;\n}\n\n:-moz-focusring:where(:not(iframe)) {\n outline: auto;\n}\n\nprogress {\n vertical-align: baseline;\n}\n\nsummary {\n display: list-item;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n}\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block;\n vertical-align: middle;\n}\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* form-control reset */\nbutton,\ninput,\nselect,\noptgroup,\ntextarea,\n::file-selector-button {\n font: inherit;\n font-feature-settings: inherit;\n font-variation-settings: inherit;\n letter-spacing: inherit;\n color: inherit;\n border-radius: 0;\n background-color: transparent;\n opacity: 1;\n}\n\n:where(select:is([multiple], [size])) optgroup {\n font-weight: bolder;\n}\n\n:where(select:is([multiple], [size])) optgroup option {\n padding-inline-start: 20px;\n}\n\n::file-selector-button {\n margin-inline-end: 4px;\n}\n\n::placeholder {\n opacity: 1;\n}\n\n@supports (not (-webkit-appearance: -apple-pay-button)) or\n (contain-intrinsic-size: 1px) {\n ::placeholder {\n color: color-mix(in oklab, currentcolor 50%, transparent);\n }\n}\n\ntextarea {\n resize: vertical;\n}\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n::-webkit-date-and-time-value {\n min-height: 1lh;\n text-align: inherit;\n}\n\n::-webkit-datetime-edit {\n display: inline-flex;\n}\n\n::-webkit-datetime-edit-fields-wrapper {\n padding: 0;\n}\n\n::-webkit-datetime-edit,\n::-webkit-datetime-edit-year-field,\n::-webkit-datetime-edit-month-field,\n::-webkit-datetime-edit-day-field,\n::-webkit-datetime-edit-hour-field,\n::-webkit-datetime-edit-minute-field,\n::-webkit-datetime-edit-second-field,\n::-webkit-datetime-edit-millisecond-field,\n::-webkit-datetime-edit-meridiem-field {\n padding-block: 0;\n}\n\n::-webkit-calendar-picker-indicator {\n line-height: 1;\n}\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\nbutton,\ninput:where([type='button'], [type='reset'], [type='submit']),\n::file-selector-button {\n appearance: button;\n}\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n[hidden]:where(:not([hidden='until-found'])) {\n display: none !important;\n}\n";function qt(t,e){const r={},o=new Set([...Object.keys(t||{}),...Object.keys(e||{})]);for(const a of o){const o=String(a),n=t&&"object"==typeof t?t[o]:void 0,s=e&&"object"==typeof e?e[o]:void 0;s&&"object"==typeof s&&!Array.isArray(s)?r[o]=qt("object"==typeof n&&null!==n?n:{},s):r[o]=void 0!==s?s:n}return r}var Ut=new WeakMap;function Ht(t,...e){const r=(...e)=>Ht(t,...e);let o=[];if(1===e.length&&"string"==typeof e[0]&&e[0].includes("."))o=e[0].split(".");else if("colors"===e[0]&&"string"==typeof e[1]&&e[1].includes("-")){const t=e[1];t.match(/^[a-zA-Z]+-\d+$/)?(o=t.split("-"),o=[e[0],...o]):o=e}else o=e;if(0===o.length)return;let a=Ut.get(t);a||(a=new Set,Ut.set(t,a));const n=o.join(".");if(!a.has(n)){a.add(n);try{let e=t[o[0]];"function"==typeof e&&(e=e(r));for(let t=1;t<o.length;t++){if(null==e)return;e=e[o[t]]}if("function"==typeof e)return;return e}finally{a.delete(n)}}}function Yt(t){const e=function(t){return{...st(t.colors),...it(t.boxShadow),...ct(t.fontSize),...pt(t.fontWeight),...ut(t.fontFamily),...dt(t.letterSpacing),"--spacing":t.spacing[1],...yt(t.spacing),...Ct(t.container),...ht(t.borderRadius),...Object.fromEntries(Object.entries(t.borderWidth??{}).filter(([t])=>"DEFAULT"!==t).map(([t,e])=>[`--border-width-${nt(t)}`,String(e)])),...gt(t.zIndex),...mt(t.opacity),...ft({...t.animations,...t.animation}),...xt(t.transitionTimingFunction),...kt(t.transitionDuration),...wt(t.transitionDelay),...$t(t.blur),...Object.fromEntries(Object.entries(t.textShadow??{}).map(([t,e])=>[`--text-shadow-${nt(t)}`,e])),...Object.fromEntries(Object.entries(t.dropShadow??{}).map(([t,e])=>[`--drop-shadow-${nt(t)}`,e])),...Object.fromEntries(Object.entries(t.aspect??{}).map(([t,e])=>[`--aspect-${nt(t)}`,e]))}}(t);return zt(e)}function Gt(t){var r;void 0!==t.debug&&(r=!!t.debug,s=r);const o={presets:[{theme:Dt},...t.presets||[]],...t},a=function(t){let e={};if(t.presets)for(const r of t.presets)r.theme&&(e=qt(e,r.theme));if(t.theme){const{extend:r,...o}=t.theme;e=qt(e,o),r&&(e=qt(e,r))}return e}(o),n={hasPreset:(t,e)=>function(t,e,r){return t[e]?.includes?.(r)}(a,t,e),theme:(...t)=>Ht(a,...t),config:(...t)=>function(t,...e){let r=[];return r=1===e.length&&"string"==typeof e[0]&&e[0].includes(".")?e[0].split("."):e,r.reduce((t,e)=>t?t[e]:void 0,t)}(o,...t),themeToCssVars:()=>Yt(a),extendTheme:(t,e)=>{if("function"==typeof e){const r=e(n.theme);if(r&&"object"==typeof r){const e=a[t]||{};a[t]={...e,...r}}}else if("object"==typeof e&&null!==e&&!Array.isArray(e)){const r=a[t]||{};a[t]={...r,...e}}x(n)},getPreflightCSS:(t=!0)=>function(t=!0){return"minimal"===t?"\n/* BaroCSS Preflight - Minimal Reset */\n/* ================================= */\n\n/* Box sizing rules */\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n/* Remove default margin and padding */\n* {\n margin: 0;\n padding: 0;\n}\n\n/* Set core body defaults */\nbody {\n min-height: 100vh;\n scroll-behavior: smooth;\n text-rendering: optimizeSpeed;\n line-height: 1.5;\n}\n\n/* Remove list styles on ul, ol elements */\nul,\nol {\n list-style: none;\n}\n\n/* Make images easier to work with */\nimg,\npicture {\n max-width: 100%;\n display: block;\n}\n\n/* Inherit fonts for inputs and buttons */\ninput,\nbutton,\ntextarea,\nselect {\n font: inherit;\n}\n\n/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */\n@media (prefers-reduced-motion: reduce) {\n html {\n scroll-behavior: auto;\n }\n \n *,\n *::before,\n *::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n scroll-behavior: auto !important;\n }\n}\n":"standard"===t?'\n/* BaroCSS Preflight - Standard Reset */\n/* ================================== */\n\n/* Box sizing rules */\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n/* Remove default margin and padding */\n* {\n margin: 0;\n padding: 0;\n}\n\n/* Set core body defaults */\nbody {\n min-height: 100vh;\n scroll-behavior: smooth;\n text-rendering: optimizeSpeed;\n line-height: 1.5;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n/* Remove list styles on ul, ol elements */\nul,\nol {\n list-style: none;\n}\n\n/* Make images easier to work with */\nimg,\npicture {\n max-width: 100%;\n display: block;\n}\n\n/* Inherit fonts for inputs and buttons */\ninput,\nbutton,\ntextarea,\nselect {\n font: inherit;\n}\n\n/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */\n@media (prefers-reduced-motion: reduce) {\n html {\n scroll-behavior: auto;\n }\n \n *,\n *::before,\n *::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n scroll-behavior: auto !important;\n }\n}\n\n/* Additional standard resets */\nhtml {\n line-height: 1.15;\n -webkit-text-size-adjust: 100%;\n /* Tailwind 4.1.13 root font (app --default-font-family / --font-sans win) */\n font-family: var(--default-font-family, var(--font-sans, -apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, \'Helvetica Neue\', \'Noto Sans\', Arial, sans-serif, \'Apple Color Emoji\', \'Segoe UI Emoji\', \'Segoe UI Symbol\', \'Noto Color Emoji\'));\n font-feature-settings: var(--default-font-feature-settings, normal);\n font-variation-settings: var(--default-font-variation-settings, normal);\n}\n\n/* Remove the gray background on active links in IE 10 */\na {\n background-color: transparent;\n}\n\n/* Add the correct font weight in Chrome, Edge, and Safari */\nb,\nstrong {\n font-weight: bolder;\n}\n\n/* Prevent sub and sup elements from affecting the line height */\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Improve media defaults */\nsvg {\n vertical-align: middle;\n}\n\n/* Remove border on iframe */\niframe {\n border: 0;\n}\n\n/* Table defaults */\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\n/* Form element defaults */\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n}\n\nbutton,\nselect {\n text-transform: none;\n}\n\nbutton,\n[type="button"],\n[type="reset"],\n[type="submit"] {\n -webkit-appearance: button;\n}\n\nbutton::-moz-focus-inner,\n[type="button"]::-moz-focus-inner,\n[type="reset"]::-moz-focus-inner,\n[type="submit"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\nbutton:-moz-focusring,\n[type="button"]:-moz-focusring,\n[type="reset"]:-moz-focusring,\n[type="submit"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/* Remove the inner border and padding in Firefox */\nbutton::-moz-focus-inner,\n[type="button"]::-moz-focus-inner,\n[type="reset"]::-moz-focus-inner,\n[type="submit"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/* Restore the focus styles unset by the previous rule */\nbutton:-moz-focusring,\n[type="button"]:-moz-focusring,\n[type="reset"]:-moz-focusring,\n[type="submit"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/* Correct the padding in Firefox */\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/* Remove padding so developers aren\'t caught out when they zero out fieldset elements */\nlegend {\n box-sizing: border-box;\n color: inherit;\n display: table;\n max-width: 100%;\n padding: 0;\n white-space: normal;\n}\n\n/* Add the correct vertical alignment in Chrome, Firefox, and Opera */\nprogress {\n vertical-align: baseline;\n}\n\n/* Remove the default vertical scrollbar in IE */\ntextarea {\n overflow: auto;\n}\n\n/* Correct the cursor style of increment and decrement buttons in Chrome */\n[type="number"]::-webkit-inner-spin-button,\n[type="number"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/* Remove the inner padding in Chrome and Safari on macOS */\n[type="search"] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n\n/* Remove the inner padding in Chrome and Safari on macOS */\n[type="search"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/* Remove the default vertical scrollbar in IE */\ntextarea {\n overflow: auto;\n}\n\n/* Correct the cursor style of increment and decrement buttons in Chrome */\n[type="number"]::-webkit-inner-spin-button,\n[type="number"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/* Remove the inner padding in Chrome and Safari on macOS */\n[type="search"] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n\n/* Remove the inner padding in Chrome and Safari on macOS */\n[type="search"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/* Tailwind 4.1.13 monospace stack for code-like elements */\ncode,\nkbd,\nsamp,\npre {\n font-family: var(--default-mono-font-family, var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \'Liberation Mono\', \'Courier New\', monospace));\n font-feature-settings: var(--default-mono-font-feature-settings, normal);\n font-variation-settings: var(--default-mono-font-variation-settings, normal);\n font-size: 1em;\n}\n\n/* Tailwind 4.1.13 form-control reset: inherit typography and colour, drop native radius/background (#228) */\nbutton,\ninput,\nselect,\noptgroup,\ntextarea,\n::file-selector-button {\n font: inherit;\n font-feature-settings: inherit;\n font-variation-settings: inherit;\n letter-spacing: inherit;\n color: inherit;\n border-radius: 0;\n background-color: transparent;\n opacity: 1;\n}\n\n:where(select:is([multiple], [size])) optgroup {\n font-weight: bolder;\n}\n\n:where(select:is([multiple], [size])) optgroup option {\n padding-inline-start: 20px;\n}\n\n::file-selector-button {\n margin-inline-end: 4px;\n}\n\n::placeholder {\n opacity: 1;\n}\n\n@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {\n ::placeholder {\n color: color-mix(in oklab, currentcolor 50%, transparent);\n }\n}\n\ntextarea {\n resize: vertical;\n}\n':"full"===t||!0===t?_t:""}(t)};return function(t,e,r){f.set(t,{utilities:[...e],modifiers:[...r],astCache:new p,parseResultCache:new d,utilityCache:new h,failures:new Set,cacheGeneration:b})}(n,$(),A()),function(t,r){if(!r||"object"!=typeof r||Array.isArray(r))return;const o=$(t),a=[...o],n=o.length;for(const[s,i]of Object.entries(r)){const r=It(s,i);if(!r){l(`[BAROCSS] Ignoring invalid custom utility "${s}"`);continue}const o=a.filter(t=>t.match(s));w({name:s,category:"custom",match:t=>t===s,handler:(t,a,n)=>{let s=[];for(const e of o)if(s=e.handler(t,a,n,e)||[],s.length>0)break;return[...s,...r.map(([t,r])=>e(t,r))]}},t)}o.length>n&&o.unshift(...o.splice(n))}(n,t.utilities),n}function Xt(t){if(t.includes("/")){const[e,r]=t.split("/").map(Number);if(!isNaN(e)&&!isNaN(r)&&0!==r)return e/r*100+"%"}return null}function Jt(t){return/^-?\d+(?:\.\d+)?$/.test(t)?t:null}function Qt(t){return/^\d+(px|em|rem|vh|vw|vmin|vmax|%|in|cm|mm|pt|pc|ex|ch|fr)$/.test(t)?t:null}function te(t,e={}){if(/^\d+$/.test(t))return e.repeat?`repeat(${t}, minmax(0, 1fr))`:t;if(t.includes("/")){const[r,o]=t.split("/").map(Number);if(!isNaN(r)&&!isNaN(o)&&0!==o){const t=r/o;return e.percent?100*t+"%":t.toString()}}return null}var ee=new Set(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"]);function re(t){return ee.has(t.toLowerCase())?t:t.startsWith("color:var(")?t.slice(6):t.startsWith("color:")?re(t.slice(6)):t.startsWith("#")&&4===t.length||t.startsWith("#")&&5===t.length||t.startsWith("#")&&7===t.length||t.startsWith("#")&&9===t.length?`#${t.slice(1)}`:t.startsWith("rgb(")?t.slice(4,-1):t.startsWith("rgba(")?t.slice(5,-1):t.startsWith("hsl(")?t.slice(4,-1):t.startsWith("hsla(")?t.slice(5,-1):t.startsWith("hwb(")||t.startsWith("lab(")||t.startsWith("lch(")?t.slice(4,-1):t.startsWith("oklab(")?t.slice(5,-1):t.startsWith("oklch(")?t.slice(6,-1):t.startsWith("color-mix(")?t.slice(9,-1):null}var oe=new Set(["inherit","currentcolor","transparent"]);function ae(t,r,a){const n=String(a.realThemeValue),s=oe.has(r.toLowerCase())||r.startsWith("var(")||!/^[\w-]+$/.test(n)?r:`var(--color-${n})`;if(!a.opacity)return[e(t,s)];const i=function(t){let e=t.trim();const r=e.startsWith("[")&&e.endsWith("]");r&&(e=e.slice(1,-1).trim());e.startsWith("(")&&e.endsWith(")")&&(e=`var(${e.slice(1,-1).trim()})`);if(e.startsWith("var("))return{amount:e,isVar:!0};if(e.endsWith("%"))return{amount:e,isVar:!1};const o=Number(e);return""!==e&&Number.isFinite(o)?{amount:+(r&&o<=1?100*o:o).toFixed(4)+"%",isVar:!1}:{amount:e,isVar:!1}}(String(a.opacity)),l=r=>o("supports","(color:color-mix(in lab, red, red))",[e(t,`color-mix(in oklab, ${s} ${r}, transparent)`)]);return i.isVar?[e(t,r),l(i.amount)]:[e(t,`color-mix(in srgb, ${r} ${i.amount}, transparent)`),l(i.amount)]}N("accent-inherit",[["accent-color","inherit"]],{category:"interactivity"}),N("accent-current",[["accent-color","currentColor"]],{category:"interactivity"}),N("accent-transparent",[["accent-color","transparent"]],{category:"interactivity"}),M({name:"accent",themeKeys:["colors"],supportsOpacity:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,a,n)=>n?.realThemeValue?n.opacity?[o("supports","(color:color-mix(in lab, red, red))",[e("accent-color",`color-mix(in lab, ${t} ${n.opacity}%, transparent)`)]),e("accent-color",t)]:[e("accent-color",`var(--color-${n.realThemeValue})`)]:[e("accent-color",t)],handleCustomProperty:t=>[e("accent-color",`var(${t})`)],description:"accent-color utility (static, arbitrary, custom property supported)",category:"interactivity"}),N("appearance-none",[["appearance","none"]],{category:"interactivity"}),N("appearance-auto",[["appearance","auto"]],{category:"interactivity"}),N("caret-inherit",[["caret-color","inherit"]],{category:"interactivity"}),N("caret-current",[["caret-color","currentColor"]],{category:"interactivity"}),N("caret-transparent",[["caret-color","transparent"]],{category:"interactivity"}),M({name:"caret",themeKeys:["colors"],supportsOpacity:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,a,n)=>n?.realThemeValue?n.opacity?[o("supports","(color:color-mix(in lab, red, red))",[e("caret-color",`color-mix(in lab, ${t} ${n.opacity}%, transparent)`)]),e("caret-color",t)]:[e("caret-color",`var(--color-${n.realThemeValue})`)]:[e("caret-color",t)],handleCustomProperty:t=>[e("caret-color",`var(${t})`)],description:"caret-color utility (static, theme, arbitrary, custom property supported)",category:"interactivity"}),N("scheme-normal",[["color-scheme","normal"]],{category:"interactivity"}),N("scheme-dark",[["color-scheme","dark"]],{category:"interactivity"}),N("scheme-light",[["color-scheme","light"]],{category:"interactivity"}),N("scheme-light-dark",[["color-scheme","light dark"]],{category:"interactivity"}),N("scheme-only-dark",[["color-scheme","only dark"]],{category:"interactivity"}),N("scheme-only-light",[["color-scheme","only light"]],{category:"interactivity"}),["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out"].forEach(t=>{N(`cursor-${t}`,[["cursor",t]],{category:"interactivity"})}),M({name:"cursor",prop:"cursor",supportsArbitrary:!0,supportsCustomProperty:!0,description:"cursor utility (static, arbitrary, custom property supported)",category:"interactivity"}),N("field-sizing-fixed",[["field-sizing","fixed"]],{category:"interactivity"}),N("field-sizing-content",[["field-sizing","content"]],{category:"interactivity"}),N("pointer-events-auto",[["pointer-events","auto"]],{category:"interactivity"}),N("pointer-events-none",[["pointer-events","none"]],{category:"interactivity"}),N("resize",[["resize","both"]],{category:"interactivity"}),N("resize-x",[["resize","horizontal"]],{category:"interactivity"}),N("resize-y",[["resize","vertical"]],{category:"interactivity"}),N("resize-none",[["resize","none"]],{category:"interactivity"}),N("scroll-auto",[["scroll-behavior","auto"]],{category:"interactivity"}),N("scroll-smooth",[["scroll-behavior","smooth"]],{category:"interactivity"}),N("snap-start",[["scroll-snap-align","start"]],{category:"interactivity"}),N("snap-end",[["scroll-snap-align","end"]],{category:"interactivity"}),N("snap-center",[["scroll-snap-align","center"]],{category:"interactivity"}),N("snap-align-none",[["scroll-snap-align","none"]],{category:"interactivity"}),N("snap-normal",[["scroll-snap-stop","normal"]],{category:"interactivity"}),N("snap-always",[["scroll-snap-stop","always"]],{category:"interactivity"}),N("snap-none",[["scroll-snap-type","none"]],{category:"interactivity"}),N("snap-x",[["scroll-snap-type","x var(--baro-scroll-snap-strictness)"]],{category:"interactivity"}),N("snap-y",[["scroll-snap-type","y var(--baro-scroll-snap-strictness)"]],{category:"interactivity"}),N("snap-both",[["scroll-snap-type","both var(--baro-scroll-snap-strictness)"]],{category:"interactivity"}),N("snap-mandatory",[["--baro-scroll-snap-strictness","mandatory"]],{category:"interactivity"}),N("snap-proximity",[["--baro-scroll-snap-strictness","proximity"]],{category:"interactivity"}),[["mbs","scroll-margin-block-start"],["mbe","scroll-margin-block-end"],["mt","scroll-margin-top"],["mr","scroll-margin-right"],["mb","scroll-margin-bottom"],["ml","scroll-margin-left"],["mx","scroll-margin-inline"],["my","scroll-margin-block"],["ms","scroll-margin-inline-start"],["me","scroll-margin-inline-end"],["m","scroll-margin"]].forEach(([t,r])=>{N(`scroll-${t}-px`,[[r,"1px"]],{category:"interactivity"}),N(`-scroll-${t}-px`,[[r,"-1px"]],{category:"interactivity"}),M({name:`scroll-${t}`,spacingKeys:!0,prop:r,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,o,a,n)=>Jt(t)||a.negative?[e(r,`calc(var(--spacing) * ${t})`)]:[e(r,t)],handleCustomProperty:t=>[e(r,`var(${t})`)],description:`${t} utility (static, arbitrary, custom property supported)`,category:"interactivity"})}),[["pbs","scroll-padding-block-start"],["pbe","scroll-padding-block-end"],["pt","scroll-padding-top"],["pr","scroll-padding-right"],["pb","scroll-padding-bottom"],["pl","scroll-padding-left"],["px","scroll-padding-inline"],["py","scroll-padding-block"],["ps","scroll-padding-inline-start"],["pe","scroll-padding-inline-end"],["p","scroll-padding"]].forEach(([t,r])=>{M({name:`scroll-${t}`,spacingKeys:!0,prop:r,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>"px"===t?"1px":/^(\d|\.\d)/.test(t)?t:null,handle:(t,o,a,n)=>a.negative?[]:Jt(t)?[e(r,`calc(var(--spacing) * ${t})`)]:[e(r,t)],handleCustomProperty:(t,o,a)=>a.negative?[]:[e(r,`var(${t})`)],description:`scroll-${t} utility (static, arbitrary, custom property supported)`,category:"interactivity"})}),N("touch-auto",[["touch-action","auto"]],{category:"interactivity"}),N("touch-none",[["touch-action","none"]],{category:"interactivity"}),N("touch-pan-x",[["touch-action","pan-x"]],{category:"interactivity"}),N("touch-pan-left",[["touch-action","pan-left"]],{category:"interactivity"}),N("touch-pan-right",[["touch-action","pan-right"]],{category:"interactivity"}),N("touch-pan-y",[["touch-action","pan-y"]],{category:"interactivity"}),N("touch-pan-up",[["touch-action","pan-up"]],{category:"interactivity"}),N("touch-pan-down",[["touch-action","pan-down"]],{category:"interactivity"}),N("touch-pinch-zoom",[["touch-action","pinch-zoom"]],{category:"interactivity"}),N("touch-manipulation",[["touch-action","manipulation"]],{category:"interactivity"}),N("select-none",[["-webkit-user-select","none"],["user-select","none"]],{category:"interactivity"}),N("select-text",[["-webkit-user-select","text"],["user-select","text"]],{category:"interactivity"}),N("select-all",[["-webkit-user-select","all"],["user-select","all"]],{category:"interactivity"}),N("select-auto",[["-webkit-user-select","auto"],["user-select","auto"]],{category:"interactivity"}),N("will-change-auto",[["will-change","auto"]],{category:"interactivity"}),N("will-change-scroll",[["will-change","scroll-position"]],{category:"interactivity"}),N("will-change-contents",[["will-change","contents"]],{category:"interactivity"}),N("will-change-transform",[["will-change","transform"]],{category:"interactivity"}),M({name:"will-change",prop:"will-change",supportsArbitrary:!0,supportsCustomProperty:!0,description:"will-change utility (static, arbitrary, custom property supported)",category:"interactivity"}),N("scrollbar-auto",[["scrollbar-width","auto"]],{category:"interactivity"}),N("scrollbar-thin",[["scrollbar-width","thin"]],{category:"interactivity"}),N("scrollbar-none",[["scrollbar-width","none"]],{category:"interactivity"}),N("scrollbar-gutter-auto",[["scrollbar-gutter","auto"]],{category:"interactivity"}),N("scrollbar-gutter-stable",[["scrollbar-gutter","stable"]],{category:"interactivity"}),N("scrollbar-gutter-both",[["scrollbar-gutter","stable both-edges"]],{category:"interactivity"});var ne=t=>t.replace(/^color:/,"");for(const Mo of["thumb","track"]){const t=`--baro-scrollbar-${Mo}`,o=t=>[r([n("--baro-scrollbar-thumb","#0000","<color>"),n("--baro-scrollbar-track","#0000","<color>")]),...t,e("scrollbar-color","var(--baro-scrollbar-thumb) var(--baro-scrollbar-track)")],a=(r,o)=>o?[e(t,`color-mix(in oklab, ${r} ${o.replace(/^\[(.*)\]$/,"$1").replace(/%$/,"")}%, transparent)`)]:[e(t,r)];M({name:`scrollbar-${Mo}`,themeKeys:["colors"],supportsOpacity:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(r,n,s,i)=>i?.realThemeValue?o(a(`var(--color-${i.realThemeValue})`,i.opacity)):s.arbitrary?o(a(ne(r),i?.opacity)):"inherit"===r||"transparent"===r?o([e(t,r)]):"current"===r?o(a("currentcolor",i?.opacity)):null,handleCustomProperty:(t,e,r,n)=>o(a(`var(${ne(t)})`,n?.opacity)),description:`scrollbar-color ${Mo} utility (theme, arbitrary, custom property, opacity)`,category:"interactivity"})}var se="var(--default-transition-timing-function)",ie="var(--default-transition-duration)";N("transition",[["transition-property","color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --baro-gradient-from, --baro-gradient-via, --baro-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events"],["transition-timing-function",se],["transition-duration",ie]],{category:"transitions"}),N("transition-all",[["transition-property","all"],["transition-timing-function",se],["transition-duration",ie]],{category:"transitions"}),N("transition-colors",[["transition-property","color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --baro-gradient-from, --baro-gradient-via, --baro-gradient-to"],["transition-timing-function",se],["transition-duration",ie]],{category:"transitions"}),N("transition-opacity",[["transition-property","opacity"],["transition-timing-function",se],["transition-duration",ie]],{category:"transitions"}),N("transition-shadow",[["transition-property","box-shadow"],["transition-timing-function",se],["transition-duration",ie]],{category:"transitions"}),N("transition-transform",[["transition-property","transform, translate, scale, rotate"],["transition-timing-function",se],["transition-duration",ie]],{category:"transitions"}),N("transition-normal",[["transition-behavior","normal"]],{category:"transitions"}),N("transition-discrete",[["transition-behavior","allow-discrete"]],{category:"transitions"}),N("transition-none",[["transition-property","none"]],{category:"transitions"}),M({name:"transition",prop:"transition-property",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>[e("transition-property",t),e("transition-timing-function",se),e("transition-duration",ie)],handleCustomProperty:t=>[e("transition-property",`var(${t})`),e("transition-timing-function",se),e("transition-duration",ie)],description:"transition-property utility (static, arbitrary value, custom property supported)",category:"transitions"}),N("duration-initial",[["transition-duration","initial"]],{category:"transitions"}),M({name:"duration",prop:"transition-duration",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>Jt(t)?[e("transition-duration",`${t}ms`)]:[e("transition-duration",t)],handleCustomProperty:t=>[e("transition-duration",`var(${t})`)],description:"transition-duration utility (static, number, arbitrary, custom property supported)",category:"transitions"}),N("ease-linear",[["transition-timing-function","linear"]],{category:"transitions"}),N("ease-in",[["transition-timing-function","var(--ease-in)"]],{category:"transitions"}),N("ease-out",[["transition-timing-function","var(--ease-out)"]],{category:"transitions"}),N("ease-in-out",[["transition-timing-function","var(--ease-in-out)"]],{category:"transitions"}),N("ease-initial",[["transition-timing-function","initial"]],{category:"transitions"}),M({name:"ease",prop:"transition-timing-function",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>B(e,"transitionTimingFunction",t,"ease")??(/^(\d|\.\d)/.test(t)?t:null),handle:(t,r,o)=>[e("transition-timing-function",t)],handleCustomProperty:t=>[e("transition-timing-function",`var(${t})`)],description:"transition-timing-function utility (static, arbitrary, custom property supported)",category:"transitions"}),M({name:"delay",prop:"transition-delay",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>Jt(t)?[e("transition-delay",`${t}ms`)]:[e("transition-delay",t)],handleCustomProperty:t=>[e("transition-delay",`var(${t})`)],description:"transition-delay utility (number, arbitrary, custom property supported)",category:"transitions"}),N("animate-spin",[["animation","var(--animate-spin)"]],{category:"transitions"}),N("animate-ping",[["animation","var(--animate-ping)"]],{category:"transitions"}),N("animate-pulse",[["animation","var(--animate-pulse)"]],{category:"transitions"}),N("animate-bounce",[["animation","var(--animate-bounce)"]],{category:"transitions"}),N("animate-none",[["animation","none"]],{category:"transitions"}),M({name:"animate",themeKeys:["animations","animation"],supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o,a)=>a?.realThemeValue?[e("animation",`var(--animate-${a.realThemeValue})`)]:o.customProperty?[e("animation",`var(${t})`)]:[e("animation",t)],handleCustomProperty:t=>[e("animation",`var(${t})`)],description:"animation utility (static, arbitrary, custom property supported)",category:"transitions"}),N("border-collapse",[["border-collapse","collapse"]],{category:"table"}),N("border-separate",[["border-collapse","separate"]],{category:"table"}),N("table-auto",[["table-layout","auto"]],{category:"table"}),N("table-fixed",[["table-layout","fixed"]],{category:"table"});var le=()=>r([n("--baro-border-spacing-x","0","<length>"),n("--baro-border-spacing-y","0","<length>")]),ce="var(--baro-border-spacing-x) var(--baro-border-spacing-y)",pe=(t,r)=>[le(),...t.map(t=>e(`--baro-border-spacing-${t}`,r)),e("border-spacing",ce)];function ue(t){if(!t)return null;if(/^\d+(\.\d+)?$/.test(t))return{alpha:`${t}%`,isVar:!1};const e=/^\[(\d+(?:\.\d+)?)%\]$/.exec(t);if(e)return{alpha:`${e[1]}%`,isVar:!1};const r=/^\((--[\w-]+)\)$/.exec(t);return r?{alpha:`var(${r[1]})`,isVar:!0}:null}function de(t,e){const r=[];let o=0,a="";for(const n of t)"("===n?o++:")"===n&&o--,0===o&&(" "===e?/\s/.test(n):n===e)?(a.trim()&&r.push(a.trim()),a=""):a+=n;return a.trim()&&r.push(a.trim()),r}[["border-spacing-x",["x"]],["border-spacing-y",["y"]],["border-spacing",["x","y"]]].forEach(([t,e])=>{N(`${t}-px`,[le,...e.map(t=>[`--baro-border-spacing-${t}`,"1px"]),["border-spacing",ce]],{category:"table"}),M({name:t,prop:"border-spacing",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>pe(e,Jt(t)?`calc(var(--spacing) * ${t})`:t),handleCustomProperty:t=>pe(e,`var(${t})`),description:`${t} utility (number, px, arbitrary, custom property supported)`,category:"table"})}),N("caption-top",[["caption-side","top"]],{category:"table"}),N("caption-bottom",[["caption-side","bottom"]],{category:"table"});var ye=/^-?(\d*\.)?\d+([a-z]+|%)?$/i;function he(t,e,r){return de(t,",").map(t=>{const o=de(t," "),a=o.findIndex(t=>"inset"!==t&&!ye.test(t)),n=a<0?"currentcolor":o[a];return o[a<0?o.length:a]=`var(--baro-${e}-color, ${r?`oklab(from ${n} l a b / ${r})`:n})`,o.join(" ")})}function ge(t,r,a,n,s=t=>t.join(", ")){const i=ue(n);if(n&&!i)return null;if(!i)return[e(r,s(he(a,t)))];const l=e(`--baro-${t}-alpha`,i.alpha);return i.isVar?[l,e(r,s(he(a,t))),o("supports","(color: lab(from red l a b))",[e(r,s(he(a,t,i.alpha)))])]:[l,e(r,s(he(a,t,i.alpha)))]}function me(t,r,a,n=r){const s=`--baro-${t}-color`;if("inherit"===r)return[e(s,"inherit")];const i=ue(a);if(a&&!i)return null;const l=i?`color-mix(in oklab, ${n} ${i.alpha}, transparent)`:n;return[e(s,i?`color-mix(in srgb, ${r} ${i.alpha}, transparent)`:r),o("supports","(color: color-mix(in lab, red, red))",[e(s,`color-mix(in oklab, ${l} var(--baro-${t}-alpha), transparent)`)])]}N("filter-none",[["filter","none"]],{category:"effects"}),M({name:"filter",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,description:"filter utility (static, arbitrary, custom property supported)",category:"effects"});var fe=()=>e("filter","var(--baro-blur, ) var(--baro-brightness, ) var(--baro-contrast, ) var(--baro-grayscale, ) var(--baro-hue-rotate, ) var(--baro-invert, ) var(--baro-saturate, ) var(--baro-sepia, ) var(--baro-drop-shadow, )");[["blur-xs","var(--blur-xs)"],["blur-sm","var(--blur-sm)"],["blur-md","var(--blur-md)"],["blur-lg","var(--blur-lg)"],["blur-xl","var(--blur-xl)"],["blur-2xl","var(--blur-2xl)"],["blur-3xl","var(--blur-3xl)"]].forEach(([t,r])=>{N(t,[e("--baro-blur",`blur(${r})`),fe()],{category:"effects"})}),N("blur",[e("--baro-blur","blur(8px)"),fe()],{category:"effects"}),N("blur-none",[e("--baro-blur",""),fe()],{category:"effects"}),M({name:"blur",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>B(e,"blur",t,"blur")??(/^(\d|\.\d)/.test(t)?t:null),handle:(t,r,o)=>o.customProperty?[e("--baro-blur",`blur(var(${t}))`),fe()]:[e("--baro-blur",`blur(${t})`),fe()],handleCustomProperty:t=>[e("--baro-blur",`blur(var(${t}))`),fe()],description:"blur filter utility (static, arbitrary, custom property supported)",category:"effects"}),M({name:"brightness",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>o.arbitrary?[e("--baro-brightness",`brightness(${t})`),fe()]:Jt(t)?[e("--baro-brightness",`brightness(${t}%)`),fe()]:o.customProperty?[e("--baro-brightness",`brightness(var(${t}))`),fe()]:[e("--baro-brightness",`brightness(${t})`),fe()],handleCustomProperty:t=>[e("--baro-brightness",`brightness(var(${t}))`),fe()],description:"brightness filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),M({name:"contrast",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>o.arbitrary?[e("--baro-contrast",`contrast(${t})`),fe()]:Jt(t)?[e("--baro-contrast",`contrast(${t}%)`),fe()]:o.customProperty?[e("--baro-contrast",`contrast(var(${t}))`),fe()]:[e("--baro-contrast",`contrast(${t})`),fe()],handleCustomProperty:t=>[e("--baro-contrast",`contrast(var(${t}))`),fe()],description:"contrast filter utility (static, number, arbitrary, custom property supported)",category:"effects"});var be=()=>r([n("--baro-drop-shadow"),n("--baro-drop-shadow-color"),n("--baro-drop-shadow-alpha","100%","<percentage>"),n("--baro-drop-shadow-size")]),ve=t=>t.map(t=>`drop-shadow(${t})`).join(" "),xe=(t,e)=>{const r=t.theme("dropShadow",e);return"string"==typeof r&&/^[\w.-]+$/.test(e)?r:null};function ke(t,r,o,a=!1){const n=ge("drop-shadow","--baro-drop-shadow-size",t,r,ve);if(!n)return null;const s=void 0===o||r&&!a?"var(--baro-drop-shadow-size)":o;return[be(),...n,e("--baro-drop-shadow",s),fe()]}N("drop-shadow-none",[e("--baro-drop-shadow"," "),fe()]),w({name:"drop-shadow",match:t=>/^drop-shadow(\/.+)?$/.test(t),handler:(t,e,r)=>{const o=t?`${r.prefix}-${t}`:r.prefix,a=o.indexOf("/");return ke("0 1px 2px rgb(0 0 0 / 0.1), 0 1px 1px rgb(0 0 0 / 0.06)",a<0?void 0:o.slice(a+1),"drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow( 0 1px 1px rgb(0 0 0 / 0.06))",!0)??[]},category:"effects"});var we=(t,r,o)=>{const a=me("drop-shadow",t,r,o);return a&&[be(),...a,e("--baro-drop-shadow","var(--baro-drop-shadow-size)")]};M({name:"drop-shadow",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handleBareValue:({value:t,ctx:e})=>xe(e,t)?t:null,handle:(t,e,r,o)=>{const a=o?.opacity,n=r.arbitrary?void 0:{inherit:"inherit",current:"currentcolor",transparent:"transparent"}[o?.realThemeValue??t];if(n)return we(n,a);const s=o?.realThemeValue??t,i=r.arbitrary?null:xe(e,s);return i?ke(i,a,`drop-shadow(var(--drop-shadow-${s}))`):o?.realThemeValue?we(t,a,`var(--color-${o.realThemeValue})`):r.arbitrary?re(t)?we(t,a):ke(t,a):null},handleCustomProperty:t=>t.startsWith("color:")?we(`var(${t.slice(6)})`,void 0)??[]:[be(),e("--baro-drop-shadow-size",`drop-shadow(var(${t}))`),e("--baro-drop-shadow","var(--baro-drop-shadow-size)"),fe()],description:"drop-shadow filter utility (static, arbitrary, custom property supported)",category:"effects"}),N("grayscale",[e("--baro-grayscale","grayscale(100%)"),fe()],{category:"effects"}),M({name:"grayscale",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>Jt(t)?[e("--baro-grayscale",`grayscale(${t}%)`),fe()]:[e("--baro-grayscale",`grayscale(${t})`),fe()],handleCustomProperty:t=>[e("--baro-grayscale",`grayscale(var(${t}))`),fe()],description:"grayscale filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),M({name:"hue-rotate",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,r,o)=>o.negative&&Jt(o.value)?[e("--baro-hue-rotate",`hue-rotate(calc(${o.value}deg * -1))`),fe()]:Jt(t)?[e("--baro-hue-rotate",`hue-rotate(${t}deg)`),fe()]:o.customProperty?[e("--baro-hue-rotate",`hue-rotate(var(${t}))`),fe()]:[e("--baro-hue-rotate",`hue-rotate(${t})`),fe()],handleCustomProperty:t=>[e("--baro-hue-rotate",`hue-rotate(var(${t}))`),fe()],description:"hue-rotate filter utility (static, negative, number, arbitrary, custom property supported)",category:"effects"}),N("invert",[e("--baro-invert","invert(100%)"),fe()],{category:"effects"}),M({name:"invert",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>Jt(t)?[e("--baro-invert",`invert(${t}%)`),fe()]:[e("--baro-invert",`invert(${t})`),fe()],description:"invert filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),M({name:"saturate",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>Jt(t)?[e("--baro-saturate",`saturate(${t}%)`),fe()]:[e("--baro-saturate",`saturate(${t})`),fe()],handleCustomProperty:t=>[e("--baro-saturate",`saturate(var(${t}))`),fe()],description:"saturate filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),N("sepia",[e("--baro-sepia","sepia(100%)"),fe()],{category:"effects"}),M({name:"sepia",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>Jt(t)?[e("--baro-sepia",`sepia(${t}%)`),fe()]:[e("--baro-sepia",`sepia(${t})`),fe()],handleCustomProperty:t=>[e("--baro-sepia",`sepia(var(${t}))`),fe()],description:"sepia filter utility (static, number, arbitrary, custom property supported)",category:"effects"});var $e=()=>[e("-webkit-backdrop-filter","var(--baro-backdrop-blur, ) var(--baro-backdrop-brightness, ) var(--baro-backdrop-contrast, ) var(--baro-backdrop-grayscale, ) var(--baro-backdrop-hue-rotate, ) var(--baro-backdrop-invert, ) var(--baro-backdrop-saturate, ) var(--baro-backdrop-sepia, )"),e("backdrop-filter","var(--baro-backdrop-blur, ) var(--baro-backdrop-brightness, ) var(--baro-backdrop-contrast, ) var(--baro-backdrop-grayscale, ) var(--baro-backdrop-hue-rotate, ) var(--baro-backdrop-invert, ) var(--baro-backdrop-saturate, ) var(--baro-backdrop-sepia, )")];N("backdrop-filter",[["backdrop-filter","var(--baro-backdrop-filter)"]],{category:"effects"}),N("backdrop-filter-none",[["backdrop-filter","none"]],{category:"effects"}),M({name:"backdrop-filter",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,description:"filter utility (static, arbitrary, custom property supported)",category:"effects"}),[["backdrop-blur-xs","var(--blur-xs)"],["backdrop-blur-sm","var(--blur-sm)"],["backdrop-blur-md","var(--blur-md)"],["backdrop-blur-lg","var(--blur-lg)"],["backdrop-blur-xl","var(--blur-xl)"],["backdrop-blur-2xl","var(--blur-2xl)"],["backdrop-blur-3xl","var(--blur-3xl)"]].forEach(([t,r])=>{N(t,[e("--baro-backdrop-blur",`blur(${r})`),...$e()],{category:"effects"})}),N("backdrop-blur",[e("--baro-backdrop-blur","blur(8px)"),...$e()],{category:"effects"}),N("backdrop-blur-none",[e("--baro-backdrop-blur",""),...$e()],{category:"effects"}),M({name:"backdrop-blur",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>B(e,"blur",t,"blur")??(/^(\d|\.\d)/.test(t)?t:null),handle:(t,r,o)=>o.customProperty?[e("--baro-backdrop-blur",`blur(var(${t}))`),...$e()]:[e("--baro-backdrop-blur",`blur(${t})`),...$e()],handleCustomProperty:t=>[e("--baro-backdrop-blur",`blur(var(${t}))`),...$e()],description:"blur filter utility (static, arbitrary, custom property supported)",category:"effects"}),M({name:"backdrop-brightness",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>o.arbitrary?[e("--baro-backdrop-brightness",`brightness(${t})`),...$e()]:Jt(t)?[e("--baro-backdrop-brightness",`brightness(${t}%)`),...$e()]:o.customProperty?[e("--baro-backdrop-brightness",`brightness(var(${t}))`),...$e()]:[e("--baro-backdrop-brightness",`brightness(${t})`),...$e()],handleCustomProperty:t=>[e("--baro-backdrop-brightness",`brightness(var(${t}))`),...$e()],description:"brightness filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),M({name:"backdrop-contrast",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handle:(t,r,o)=>o.arbitrary?[e("--baro-backdrop-contrast",`contrast(${t})`),...$e()]:Jt(t)?[e("--baro-backdrop-contrast",`contrast(${t}%)`),...$e()]:o.customProperty?[e("--baro-backdrop-contrast",`contrast(var(${t}))`),...$e()]:[e("--baro-backdrop-contrast",`contrast(${t})`),...$e()],handleCustomProperty:t=>[e("--baro-backdrop-contrast",`contrast(var(${t}))`),...$e()],description:"contrast filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),N("backdrop-grayscale",[["--baro-backdrop-grayscale","grayscale(100%)"],...$e()],{category:"effects"}),M({name:"backdrop-grayscale",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>Jt(t)?[e("--baro-backdrop-grayscale",`grayscale(${t}%)`),...$e()]:[e("--baro-backdrop-grayscale",`grayscale(${t})`),...$e()],handleCustomProperty:t=>[e("--baro-backdrop-grayscale",`grayscale(var(${t}))`),...$e()],description:"grayscale filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),M({name:"backdrop-hue-rotate",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,r,o)=>o.negative&&Jt(o.value)?[e("--baro-backdrop-hue-rotate",`hue-rotate(calc(${o.value}deg * -1))`),...$e()]:Jt(t)?[e("--baro-backdrop-hue-rotate",`hue-rotate(${t}deg)`),...$e()]:[e("--baro-backdrop-hue-rotate",`hue-rotate(${t})`),...$e()],handleCustomProperty:t=>[e("--baro-backdrop-hue-rotate",`hue-rotate(var(${t}))`),...$e()],description:"hue-rotate filter utility (static, negative, number, arbitrary, custom property supported)",category:"effects"}),N("backdrop-invert",[["--baro-backdrop-invert","invert(100%)"],...$e()],{category:"effects"}),M({name:"backdrop-invert",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>Jt(t)?[e("--baro-backdrop-invert",`invert(${t}%)`),...$e()]:[e("--baro-backdrop-invert",`invert(${t})`),...$e()],description:"invert filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),M({name:"backdrop-saturate",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>Jt(t)?[e("--baro-backdrop-saturate",`saturate(${t}%)`),...$e()]:[e("--baro-backdrop-saturate",`saturate(${t})`),...$e()],handleCustomProperty:t=>[e("--baro-backdrop-saturate",`saturate(var(${t}))`),...$e()],description:"saturate filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),N("backdrop-sepia",[["--baro-backdrop-sepia","sepia(100%)"],...$e()],{category:"effects"}),M({name:"backdrop-sepia",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>Jt(t)?[e("--baro-backdrop-sepia",`sepia(${t}%)`),...$e()]:[e("--baro-backdrop-sepia",`sepia(${t})`),...$e()],handleCustomProperty:t=>[e("--baro-backdrop-sepia",`sepia(var(${t}))`),...$e()],description:"sepia filter utility (static, number, arbitrary, custom property supported)",category:"effects"});var Ce="var(--baro-inset-shadow), var(--baro-inset-ring-shadow), var(--baro-ring-offset-shadow), var(--baro-ring-shadow), var(--baro-shadow)",Pe=()=>r([n("--baro-shadow","0 0 #0000"),n("--baro-inset-shadow","0 0 #0000"),n("--baro-inset-ring-shadow","0 0 #0000"),n("--baro-ring-offset-shadow","0 0 #0000"),n("--baro-ring-shadow","0 0 #0000"),n("--baro-ring-offset-width","0px","<length>"),n("--baro-ring-offset-color","#fff")]),ze=t=>r([n(`--baro-${t}-color`),n(`--baro-${t}-alpha`,"100%","<percentage>")]),Se={"":"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)","2xs":"0 1px rgb(0 0 0 / 0.05)",xs:"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"},Ae={"2xs":"inset 0 1px rgb(0 0 0 / 0.05)",xs:"inset 0 1px 1px rgb(0 0 0 / 0.05)",sm:"inset 0 2px 4px rgb(0 0 0 / 0.05)"},je={md:"inset 0 4px 6px -1px rgb(0 0 0 / 0.05)",lg:"inset 0 10px 15px -3px rgb(0 0 0 / 0.05)",xl:"inset 0 20px 25px -5px rgb(0 0 0 / 0.05)","2xl":"inset 0 25px 50px -12px rgb(0 0 0 / 0.05)"},Re=t=>t.split(/,(?![^(]*\))/).map(t=>`inset ${t.trim()}`).join(", "),Ee=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function Te(t,r,o){const a=ge(t,`--baro-${t}`,r,o);return a?[Pe(),ze(t),...a,e("box-shadow",Ce)]:null}function Ne(t,e,r,o){if("shadow"===t){if(Ee(Se,e))return Te(t,Se[e],r)}else{if(Ee(Ae,e))return Te(t,Ae[e],r);if(!r&&Ee(je,e))return Te(t,je[e],void 0)}const a=o&&"none"!==e?V(o,"shadow"===t?"boxShadow":"insetShadow",e):null;return a?Te(t,a,r):null}N("shadow-none",[Pe,["--baro-shadow","0 0 #0000"],["box-shadow",Ce]],{category:"effects"}),N("inset-shadow-none",[Pe,["--baro-inset-shadow","inset 0 0 #0000"],["box-shadow",Ce]],{category:"effects"}),w({name:"shadow",match:t=>/^shadow(\/.+)?$/.test(t),handler:(t,e,r)=>{const o=t?`${r.prefix}-${t}`:r.prefix,a=o.indexOf("/");return Ne("shadow","",a<0?void 0:o.slice(a+1))??[]},category:"effects"});var We={inherit:"inherit",current:"currentcolor",transparent:"transparent"};function Ve(t,e,r,o,a){const n=o.arbitrary?void 0:We[a??e];return n?me(t,n,r):a?me(t,e,r,`var(--color-${a})`):e.startsWith("color:")?me(t,`var(${e.slice(6)})`,r):o.arbitrary&&re(e)?me(t,e,r):void 0}for(const Mo of["shadow","inset-shadow"])M({name:Mo,supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,themeKeys:["colors"],handleBareValue:({value:t,ctx:e,extra:r})=>Ne(Mo,t,r?.opacity,e)?t:null,handle:(t,e,r,o)=>{const a=o?.opacity,n=r.arbitrary?null:Ne(Mo,o?.realThemeValue??t,a,e);if(n)return n;const s=Ve(Mo,t,a,r,o?.realThemeValue);return void 0!==s?s:r.arbitrary?Te(Mo,"inset-shadow"===Mo?Re(t):t,a):null},handleCustomProperty:t=>t.startsWith("color:")?me(Mo,`var(${t.slice(6)})`,void 0)??[]:[Pe(),e(`--baro-${Mo}`,"inset-shadow"===Mo?`inset var(${t})`:`var(${t})`),e("box-shadow",Ce)]});var Be=()=>r([n("--baro-text-shadow-color"),n("--baro-text-shadow-alpha","100%","<percentage>")]),Me=(t,e)=>{const r=t.theme("textShadow",e);return"string"==typeof r&&/^[\w.-]+$/.test(e)?r:null},Oe=(t,e)=>{const r=ge("text-shadow","text-shadow",t,e);return r?[Be(),...r]:null};function Fe(t){return`var(--baro-ring-inset,) 0 0 0 calc(${t} + var(--baro-ring-offset-width)) var(--baro-ring-color, currentcolor)`}N("text-shadow-none",[Be,["text-shadow","none"]],{category:"effects"}),M({name:"text-shadow",supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,themeKeys:["colors"],handleBareValue:({value:t,ctx:e})=>Me(e,t)?t:null,handle:(t,e,r,o)=>{const a=o?.opacity;if(!r.arbitrary){const r=Me(e,o?.realThemeValue??t);if(r)return Oe(r,a)}const n=Ve("text-shadow",t,a,r,o?.realThemeValue);return void 0!==n?n&&[Be(),...n]:r.arbitrary?Oe(t,a):null},handleCustomProperty:t=>t.startsWith("color:")?[Be(),...me("text-shadow",`var(${t.slice(6)})`,void 0)??[]]:[Be(),e("text-shadow",`var(${t})`)],category:"effects"}),[["ring","1px"],["ring-0","0px"],["ring-1","1px"],["ring-2","2px"],["ring-4","4px"],["ring-8","8px"]].forEach(([t,e])=>{N(t,[Pe,["--baro-ring-shadow",Fe(e)],["box-shadow","var(--baro-inset-shadow), var(--baro-inset-ring-shadow), var(--baro-ring-offset-shadow), var(--baro-ring-shadow), var(--baro-shadow)"]])}),[["ring-offset-0","0px"],["ring-offset-1","1px"],["ring-offset-2","2px"],["ring-offset-4","4px"],["ring-offset-8","8px"]].forEach(([t,e])=>{N(t,[["--baro-ring-offset-width",e],["--baro-ring-offset-color","#fff"],["--baro-ring-offset-shadow","var(--baro-ring-inset,) 0 0 0 var(--baro-ring-offset-width) var(--baro-ring-offset-color)"]],{category:"effects"})});var Ke=t=>[e("--baro-ring-offset-width",t),e("--baro-ring-offset-shadow","var(--baro-ring-inset,) 0 0 0 var(--baro-ring-offset-width) var(--baro-ring-offset-color)")];function De(t,r,a,n){const s=`var(--color-${n})`;let i=s,l=s;return a&&(i=`color-mix(in oklab, ${s} ${a}%, transparent)`,l=re(r)&&r.startsWith("#")?`${r}${Math.round(Number(a)/100*255).toString(16).padStart(2,"0")}`:i),[o("supports","(color:color-mix(in lab, red, red))",[e(t,i)]),e(t,l)]}M({name:"ring-offset",themeKeys:["ringOffsetWidth","colors"],supportsArbitrary:!0,supportsOpacity:!0,handleBareValue:({value:t})=>/^\d+$/.test(t)?`${t}px`:null,handle:(t,r,o,a)=>"ringOffsetWidth"===a?.themeNamespace?Ke(t):a?.realThemeValue?ae("--baro-ring-offset-color",t,a):o.arbitrary?re(t)?[e("--baro-ring-offset-color",t)]:Qt(t)?Ke(t):null:/^\d+px$/.test(t)?Ke(t):null,category:"effects"}),[["inset-ring","1px"],["inset-ring-0","0px"],["inset-ring-1","1px"],["inset-ring-2","2px"],["inset-ring-4","4px"],["inset-ring-8","8px"]].forEach(([t,e])=>{N(t,[Pe,["--baro-inset-ring-shadow",`inset 0 0 0 ${e} var(--baro-inset-ring-color, currentcolor)`],["box-shadow",Ce]],{category:"effects"})}),N("ring-inset",[["--baro-ring-inset","inset"]],{category:"effects"}),M({name:"ring",supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,themeKeys:["colors","ringWidth"],handle:(t,r,a,n)=>{const s=t;if("ringWidth"===n?.themeNamespace)return[Pe(),e("--baro-ring-shadow",Fe(t)),e("box-shadow",Ce)];const i=n?.opacity,l=n?.realThemeValue;if(l)return De("--baro-ring-color",s,i,l);if(s.startsWith("color:")){const t=s.replace("color:","");let r=`var(${t})`,a=r;return i&&(r=`color-mix(in oklab, var(${t}) ${i}%, transparent)`,a=r),[o("supports","(color:color-mix(in lab, red, red))",[e("--baro-ring-color",r)]),e("--baro-ring-color",a)]}if(a.arbitrary){let t=s,r=s;if(i)return t=`color-mix(in oklab, ${s} ${i}%, transparent)`,r=re(s)&&s.startsWith("#")?`${s}${Math.round(Number(i)/100*255).toString(16).padStart(2,"0")}`:t,[o("supports","(color:color-mix(in lab, red, red))",[e("--baro-ring-color",t)]),e("--baro-ring-color",r)];if(!re(s)&&/^(-?(\d+\.?\d*|\.\d+)(px|rem|em|%|vw|vh|vmin|vmax|ch|ex|pt|cm|mm|in|pc)|0|(length:.+)|calc\(.+\))$/i.test(s)){const t=s.startsWith("length:")?s.slice(7):s;return[Pe(),e("--baro-ring-shadow",Fe(t)),e("box-shadow",Ce)]}return[re(s)||/^var\(--[^)]+\)$/.test(s)?e("--baro-ring-color",s):e("box-shadow",s)]}return"inherit"===s||"current"===s||"transparent"===s?[e("--baro-ring-color","current"===s?"currentColor":s)]:null},handleCustomProperty:t=>{if(t.startsWith("color:")){return[e("--baro-ring-color",`var(${t.replace("color:","")})`)]}return[e("--baro-ring-color",`var(${t})`)]}}),M({name:"inset-ring",supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,themeKeys:["colors","shadows"],handle:(t,r,a,n)=>{const s=t,i=n?.opacity,l=n?.realThemeValue;if(l)return De("--baro-inset-ring-color",s,i,l);if(s.startsWith("color:")){const t=s.replace("color:","");let r=`var(${t})`,a=r;return i&&(r=`color-mix(in oklab, var(${t}) ${i}%, transparent)`,a=r),[o("supports","(color:color-mix(in lab, red, red))",[e("--baro-inset-ring-color",r)]),e("--baro-inset-ring-color",a)]}if(a.arbitrary){let t=s,r=s;return i?(t=`color-mix(in oklab, ${s} ${i}%, transparent)`,r=re(s)&&s.startsWith("#")?`${s}${Math.round(Number(i)/100*255).toString(16).padStart(2,"0")}`:t,[o("supports","(color:color-mix(in lab, red, red))",[e("--baro-inset-ring-color",t)]),e("--baro-inset-ring-color",r)]):[e("box-shadow",`inset ${s}`)]}return"inherit"===s||"current"===s||"transparent"===s?[e("--baro-inset-ring-color","current"===s?"currentColor":s)]:null},handleCustomProperty:t=>{if(t.startsWith("color:")){return[e("--baro-inset-ring-color",`var(${t.replace("color:","")})`)]}return[e("--baro-inset-ring-color",`var(${t})`)]}}),M({name:"opacity",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>{if(Jt(t)){let r=Number(t);return r>1&&(r/=100),[e("opacity",String(r))]}return o.arbitrary?[e("opacity",t)]:null},handleCustomProperty:t=>[e("opacity",`var(${t})`)],description:"opacity utility (number, arbitrary, custom property supported)",category:"effects"}),[["mix-blend-normal","normal"],["mix-blend-multiply","multiply"],["mix-blend-screen","screen"],["mix-blend-overlay","overlay"],["mix-blend-darken","darken"],["mix-blend-lighten","lighten"],["mix-blend-color-dodge","color-dodge"],["mix-blend-color-burn","color-burn"],["mix-blend-hard-light","hard-light"],["mix-blend-soft-light","soft-light"],["mix-blend-difference","difference"],["mix-blend-exclusion","exclusion"],["mix-blend-hue","hue"],["mix-blend-saturation","saturation"],["mix-blend-color","color"],["mix-blend-luminosity","luminosity"],["mix-blend-plus-darker","plus-darker"],["mix-blend-plus-lighter","plus-lighter"]].forEach(([t,e])=>{N(t,[["mix-blend-mode",e]])}),[["bg-blend-normal","normal"],["bg-blend-multiply","multiply"],["bg-blend-screen","screen"],["bg-blend-overlay","overlay"],["bg-blend-darken","darken"],["bg-blend-lighten","lighten"],["bg-blend-color-dodge","color-dodge"],["bg-blend-color-burn","color-burn"],["bg-blend-hard-light","hard-light"],["bg-blend-soft-light","soft-light"],["bg-blend-difference","difference"],["bg-blend-exclusion","exclusion"],["bg-blend-hue","hue"],["bg-blend-saturation","saturation"],["bg-blend-color","color"],["bg-blend-luminosity","luminosity"]].forEach(([t,e])=>{N(t,[["background-blend-mode",e]],{category:"effects"})}),[["mask-clip-border","border-box"],["mask-clip-padding","padding-box"],["mask-clip-content","content-box"],["mask-clip-fill","fill-box"],["mask-clip-stroke","stroke-box"],["mask-clip-view","view-box"],["mask-no-clip","no-clip"]].forEach(([t,e])=>{N(t,[["mask-clip",e]],{category:"effects"})}),[["mask-add","add"],["mask-subtract","subtract"],["mask-intersect","intersect"],["mask-exclude","exclude"]].forEach(([t,e])=>{N(t,[["mask-composite",e]],{category:"effects"})}),[["mask-alpha","alpha"],["mask-luminance","luminance"],["mask-match","match-source"]].forEach(([t,e])=>{N(t,[["mask-mode",e]],{category:"effects"})}),[["mask-origin-border","border-box"],["mask-origin-padding","padding-box"],["mask-origin-content","content-box"],["mask-origin-fill","fill-box"],["mask-origin-stroke","stroke-box"],["mask-origin-view","view-box"]].forEach(([t,e])=>{N(t,[["mask-origin",e]],{category:"effects"})}),[["mask-top-left","top left"],["mask-top","top"],["mask-top-right","top right"],["mask-left","left"],["mask-center","center"],["mask-right","right"],["mask-bottom-left","bottom left"],["mask-bottom","bottom"],["mask-bottom-right","bottom right"]].forEach(([t,e])=>{N(t,[["mask-position",e]],{category:"effects"})}),M({name:"mask-position",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>o.arbitrary?[e("mask-position",t)]:o.customProperty?[e("mask-position",`var(${t})`)]:null,handleCustomProperty:t=>[e("mask-position",`var(${t})`)],description:"mask-position utility (static, arbitrary, custom property supported)",category:"effects"}),[["mask-repeat","repeat"],["mask-no-repeat","no-repeat"],["mask-repeat-x","repeat-x"],["mask-repeat-y","repeat-y"],["mask-repeat-space","space"],["mask-repeat-round","round"]].forEach(([t,e])=>{N(t,[["mask-repeat",e]],{category:"effects"})}),[["mask-auto","auto"],["mask-cover","cover"],["mask-contain","contain"]].forEach(([t,e])=>{N(t,[["mask-size",e]],{category:"effects"})}),[["mask-type-alpha","alpha"],["mask-type-luminance","luminance"]].forEach(([t,e])=>{N(t,[["mask-type",e]],{category:"effects"})}),M({name:"mask-size",prop:"mask-size",supportsArbitrary:!0,supportsCustomProperty:!0,description:"mask-size utility (static, arbitrary, custom property supported)",category:"effects"});M({name:"mask-linear-from",handleBareValue:({value:t})=>/^(?:100|[1-9]?\d)%$/.test(t)?t:null,handle:t=>[e("mask-image","var(--baro-mask-linear), var(--baro-mask-radial), var(--baro-mask-conic)"),e("mask-composite","intersect"),e("--baro-mask-linear-stops","var(--baro-mask-linear-position), var(--baro-mask-linear-from-color) var(--baro-mask-linear-from-position), var(--baro-mask-linear-to-color) var(--baro-mask-linear-to-position)"),e("--baro-mask-linear","linear-gradient(var(--baro-mask-linear-stops))"),e("--baro-mask-linear-from-position",t),r([n("--baro-mask-linear","linear-gradient(#fff, #fff)"),n("--baro-mask-radial","linear-gradient(#fff, #fff)"),n("--baro-mask-conic","linear-gradient(#fff, #fff)"),n("--baro-mask-linear-position","0deg"),n("--baro-mask-linear-from-position","0%"),n("--baro-mask-linear-to-position","100%"),n("--baro-mask-linear-from-color","black"),n("--baro-mask-linear-to-color","transparent")])],category:"effects"}),N("mask-none",[["mask-image","none"]],{category:"effects"}),M({name:"mask",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>"none"===t?[e("mask-image","none")]:o.arbitrary?[e("mask-image",t)]:o.customProperty?[e("mask-image",`var(${t})`)]:null,handleCustomProperty:t=>[e("mask-image",`var(${t})`)],description:"mask-image utility (arbitrary, custom property supported)",category:"effects"}),N("isolate",[["isolation","isolate"]],{category:"layout"}),N("isolation-auto",[["isolation","auto"]],{category:"layout"}),N("z-auto",[["z-index","auto"]],{category:"layout"}),M({name:"z",prop:"z-index",themeKey:"zIndex",supportsNegative:!0,supportsFraction:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t),description:"z-index utility",category:"layout"}),N("aspect-square",[["aspect-ratio","1 / 1"]],{category:"layout"}),N("aspect-video",[["aspect-ratio","var(--aspect-video)"]],{category:"layout"}),N("aspect-auto",[["aspect-ratio","auto"]],{category:"layout"}),M({name:"aspect",prop:"aspect-ratio",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t,ctx:e})=>B(e,"aspect",t,"aspect")??(/^(\d|\.\d)/.test(t)?t:null),description:"aspect-ratio utility (theme, arbitrary, custom property, fraction supported)",category:"layout"}),N("columns-auto",[["columns","auto"]],{category:"layout"}),N("columns-3xs",[["columns","var(--container-3xs)"]],{category:"layout"}),N("columns-2xs",[["columns","var(--container-2xs)"]],{category:"layout"}),N("columns-xs",[["columns","var(--container-xs)"]],{category:"layout"}),N("columns-sm",[["columns","var(--container-sm)"]],{category:"layout"}),N("columns-md",[["columns","var(--container-md)"]],{category:"layout"}),N("columns-lg",[["columns","var(--container-lg)"]],{category:"layout"}),N("columns-xl",[["columns","var(--container-xl)"]],{category:"layout"}),N("columns-2xl",[["columns","var(--container-2xl)"]],{category:"layout"}),N("columns-3xl",[["columns","var(--container-3xl)"]],{category:"layout"}),N("columns-4xl",[["columns","var(--container-4xl)"]],{category:"layout"}),N("columns-5xl",[["columns","var(--container-5xl)"]],{category:"layout"}),N("columns-6xl",[["columns","var(--container-6xl)"]],{category:"layout"}),N("columns-7xl",[["columns","var(--container-7xl)"]],{category:"layout"}),M({name:"columns",prop:"columns",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t,ctx:e})=>Jt(t)??B(e,"container",t,"container"),description:"columns utility (theme, arbitrary, custom property, fraction supported)",category:"layout"}),N("break-after-auto",[["break-after","auto"]],{category:"layout"}),N("break-after-avoid",[["break-after","avoid"]],{category:"layout"}),N("break-after-all",[["break-after","all"]],{category:"layout"}),N("break-after-avoid-page",[["break-after","avoid-page"]],{category:"layout"}),N("break-after-page",[["break-after","page"]],{category:"layout"}),N("break-after-left",[["break-after","left"]],{category:"layout"}),N("break-after-right",[["break-after","right"]],{category:"layout"}),N("break-after-column",[["break-after","column"]],{category:"layout"}),N("break-before-auto",[["break-before","auto"]],{category:"layout"}),N("break-before-avoid",[["break-before","avoid"]],{category:"layout"}),N("break-before-all",[["break-before","all"]],{category:"layout"}),N("break-before-avoid-page",[["break-before","avoid-page"]],{category:"layout"}),N("break-before-page",[["break-before","page"]],{category:"layout"}),N("break-before-left",[["break-before","left"]],{category:"layout"}),N("break-before-right",[["break-before","right"]],{category:"layout"}),N("break-before-column",[["break-before","column"]],{category:"layout"}),N("break-inside-auto",[["break-inside","auto"]],{category:"layout"}),N("break-inside-avoid",[["break-inside","avoid"]],{category:"layout"}),N("break-inside-avoid-page",[["break-inside","avoid-page"]],{category:"layout"}),N("break-inside-avoid-column",[["break-inside","avoid-column"]],{category:"layout"}),N("box-decoration-slice",[["box-decoration-break","slice"]],{category:"layout"}),N("box-decoration-clone",[["box-decoration-break","clone"]],{category:"layout"}),N("box-border",[["box-sizing","border-box"]],{category:"layout"}),N("box-content",[["box-sizing","content-box"]],{category:"layout"}),N("block",[["display","block"]],{category:"layout"}),N("inline",[["display","inline"]],{category:"layout"}),N("inline-block",[["display","inline-block"]],{category:"layout"}),N("flow-root",[["display","flow-root"]],{category:"layout"}),N("flex",[["display","flex"]],{category:"layout"}),N("inline-flex",[["display","inline-flex"]],{category:"layout"}),N("grid",[["display","grid"]],{category:"layout"}),N("inline-grid",[["display","inline-grid"]],{category:"layout"}),N("contents",[["display","contents"]],{category:"layout"}),N("table",[["display","table"]],{category:"layout"}),N("inline-table",[["display","inline-table"]],{category:"layout"}),N("table-caption",[["display","table-caption"]],{category:"layout"}),N("table-cell",[["display","table-cell"]],{category:"layout"}),N("table-column",[["display","table-column"]],{category:"layout"}),N("table-column-group",[["display","table-column-group"]],{category:"layout"}),N("table-footer-group",[["display","table-footer-group"]],{category:"layout"}),N("table-header-group",[["display","table-header-group"]],{category:"layout"}),N("table-row-group",[["display","table-row-group"]],{category:"layout"}),N("table-row",[["display","table-row"]],{category:"layout"}),N("list-item",[["display","list-item"]],{category:"layout"}),N("hidden",[["display","none"]],{category:"layout"}),N("sr-only",[["position","absolute"],["width","1px"],["height","1px"],["padding","0"],["margin","-1px"],["overflow","hidden"],["clip-path","inset(50%)"],["white-space","nowrap"],["border-width","0"]],{category:"layout"}),N("not-sr-only",[["position","static"],["width","auto"],["height","auto"],["padding","0"],["margin","0"],["overflow","visible"],["clip-path","none"],["white-space","normal"]],{category:"layout"}),N("@container",[["container-type","inline-size"]],{category:"layout"}),N("@container-normal",[["container-type","normal"]],{category:"layout"}),N("@container-size",[["container-type","size"]],{category:"layout"});var Le=/^@container(-normal|-size)?\/([a-zA-Z0-9_-]+)$/,Ze={"":"inline-size","-normal":"normal","-size":"size"};w({name:"@container",match:t=>Le.test(t),handler:(t,r,o)=>{const a=Le.exec(`${o.prefix}${o.value?`-${o.value}`:""}`);return a?[e("container-type",Ze[a[1]??""]),e("container-name",a[2])]:null},category:"layout"});var Ie=t=>{const e=/^(-?\d*\.?\d+)(rem|px|em)$/.exec(t.trim());return e?"px"===e[2]?Number(e[1])/16:Number(e[1]):NaN};w({name:"container",match:t=>"container"===t,handler:(t,r)=>{const a=r.theme("breakpoints")||r.config("theme.breakpoints")||{},n=Object.values(a).filter(t=>"string"==typeof t&&!Number.isNaN(Ie(t)));return n.sort((t,e)=>Ie(t)-Ie(e)),[e("width","100%"),...n.map(t=>o("media",`(width >= ${t})`,[e("max-width",t)]))]},category:"layout"}),N("float-right",[["float","right"]],{category:"layout"}),N("float-left",[["float","left"]],{category:"layout"}),N("float-start",[["float","inline-start"]],{category:"layout"}),N("float-end",[["float","inline-end"]],{category:"layout"}),N("float-none",[["float","none"]],{category:"layout"}),N("clear-left",[["clear","left"]],{category:"layout"}),N("clear-right",[["clear","right"]],{category:"layout"}),N("clear-both",[["clear","both"]],{category:"layout"}),N("clear-start",[["clear","inline-start"]],{category:"layout"}),N("clear-end",[["clear","inline-end"]],{category:"layout"}),N("clear-none",[["clear","none"]],{category:"layout"}),N("object-contain",[["object-fit","contain"]],{category:"layout"}),N("object-cover",[["object-fit","cover"]],{category:"layout"}),N("object-fill",[["object-fit","fill"]],{category:"layout"}),N("object-none",[["object-fit","none"]],{category:"layout"}),N("object-scale-down",[["object-fit","scale-down"]],{category:"layout"}),N("object-top-left",[["object-position","top left"]],{category:"layout"}),N("object-top",[["object-position","top"]],{category:"layout"}),N("object-top-right",[["object-position","top right"]],{category:"layout"}),N("object-left",[["object-position","left"]],{category:"layout"}),N("object-center",[["object-position","center"]],{category:"layout"}),N("object-right",[["object-position","right"]],{category:"layout"}),N("object-bottom-left",[["object-position","bottom left"]],{category:"layout"}),N("object-bottom",[["object-position","bottom"]],{category:"layout"}),N("object-bottom-right",[["object-position","bottom right"]],{category:"layout"}),M({name:"object",prop:"object-position",supportsArbitrary:!0,supportsCustomProperty:!0,description:"object-position utility (arbitrary value, custom property supported)",category:"layout"}),N("overflow-auto",[["overflow","auto"]],{category:"layout"}),N("overflow-hidden",[["overflow","hidden"]],{category:"layout"}),N("overflow-clip",[["overflow","clip"]],{category:"layout"}),N("overflow-visible",[["overflow","visible"]],{category:"layout"}),N("overflow-scroll",[["overflow","scroll"]],{category:"layout"}),N("overflow-x-auto",[["overflow-x","auto"]],{category:"layout"}),N("overflow-y-auto",[["overflow-y","auto"]],{category:"layout"}),N("overflow-x-hidden",[["overflow-x","hidden"]],{category:"layout"}),N("overflow-y-hidden",[["overflow-y","hidden"]],{category:"layout"}),N("overflow-x-clip",[["overflow-x","clip"]],{category:"layout"}),N("overflow-y-clip",[["overflow-y","clip"]],{category:"layout"}),N("overflow-x-visible",[["overflow-x","visible"]],{category:"layout"}),N("overflow-y-visible",[["overflow-y","visible"]],{category:"layout"}),N("overflow-x-scroll",[["overflow-x","scroll"]],{category:"layout"}),N("overflow-y-scroll",[["overflow-y","scroll"]],{category:"layout"}),N("overscroll-auto",[["overscroll-behavior","auto"]],{category:"layout"}),N("overscroll-contain",[["overscroll-behavior","contain"]],{category:"layout"}),N("overscroll-none",[["overscroll-behavior","none"]],{category:"layout"}),N("overscroll-x-auto",[["overscroll-behavior-x","auto"]],{category:"layout"}),N("overscroll-x-contain",[["overscroll-behavior-x","contain"]],{category:"layout"}),N("overscroll-x-none",[["overscroll-behavior-x","none"]],{category:"layout"}),N("overscroll-y-auto",[["overscroll-behavior-y","auto"]],{category:"layout"}),N("overscroll-y-contain",[["overscroll-behavior-y","contain"]],{category:"layout"}),N("overscroll-y-none",[["overscroll-behavior-y","none"]],{category:"layout"}),N("static",[["position","static"]],{category:"layout"}),N("fixed",[["position","fixed"]],{category:"layout"}),N("absolute",[["position","absolute"]],{category:"layout"}),N("relative",[["position","relative"]],{category:"layout"}),N("sticky",[["position","sticky"]],{category:"layout"}),[["inset-x","inset-inline"],["inset-y","inset-block"],["inset-s","inset-inline-start"],["inset-e","inset-inline-end"],["inset-bs","inset-block-start"],["inset-be","inset-block-end"],["inset","inset"],["start","inset-inline-start"],["end","inset-inline-end"],["top","top"],["right","right"],["bottom","bottom"],["left","left"]].forEach(([t,e])=>{N(`${t}-auto`,[[e,"auto"]],{category:"layout"}),N(`${t}-full`,[[e,"100%"]],{category:"layout"}),N(`-${t}-full`,[[e,"-100%"]],{category:"layout"}),N(`${t}-px`,[[e,"1px"]],{category:"layout"}),N(`-${t}-px`,[[e,"-1px"]],{category:"layout"}),M({name:t,spacingKeys:!0,prop:e,supportsNegative:!0,supportsFraction:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>{if(Jt(t))return`calc(var(--spacing) * ${t})`;const e=Xt(t);return e||null},handleNegativeBareValue:({value:t})=>{if(Jt(t))return`calc(var(--spacing) * -${t})`;const e=Xt(t);return e?`-${e}`:null},description:`${t} utility (spacing, fraction, px, full, auto, custom property, arbitrary, negative supported)`,category:"layout"})}),N("visible",[["visibility","visible"]],{category:"layout"}),N("invisible",[["visibility","hidden"]],{category:"layout"}),N("collapse",[["visibility","collapse"]],{category:"layout"}),M({name:"gap-x",spacingKeys:!0,prop:"column-gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("column-gap",t)]:null,handleCustomProperty:t=>[e("column-gap",`var(${t})`)],description:"gap-x utility (number, arbitrary, custom property supported)",category:"layout"}),M({name:"gap-y",spacingKeys:!0,prop:"row-gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("row-gap",t)]:null,handleCustomProperty:t=>[e("row-gap",`var(${t})`)],description:"gap-y utility (number, arbitrary, custom property supported)",category:"layout"}),M({name:"gap",spacingKeys:!0,prop:"gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("gap",t)]:null,handleCustomProperty:t=>[e("gap",`var(${t})`)],description:"gap utility (number, arbitrary, custom property supported)",category:"layout"}),M({name:"zoom",prop:"zoom",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>/^\d+$/.test(t)?`${t}%`:null,description:"zoom utility (integer percent, arbitrary, custom property)",category:"layout"}),N("basis-full",[["flex-basis","100%"]],{category:"flex-grid"}),N("basis-auto",[["flex-basis","auto"]],{category:"flex-grid"}),N("basis-3xs",[["flex-basis","var(--container-3xs)"]],{category:"flex-grid"}),N("basis-2xs",[["flex-basis","var(--container-2xs)"]],{category:"flex-grid"}),N("basis-xs",[["flex-basis","var(--container-xs)"]],{category:"flex-grid"}),N("basis-sm",[["flex-basis","var(--container-sm)"]],{category:"flex-grid"}),N("basis-md",[["flex-basis","var(--container-md)"]],{category:"flex-grid"}),N("basis-lg",[["flex-basis","var(--container-lg)"]],{category:"flex-grid"}),N("basis-xl",[["flex-basis","var(--container-xl)"]],{category:"flex-grid"}),N("basis-2xl",[["flex-basis","var(--container-2xl)"]],{category:"flex-grid"}),N("basis-3xl",[["flex-basis","var(--container-3xl)"]],{category:"flex-grid"}),N("basis-4xl",[["flex-basis","var(--container-4xl)"]],{category:"flex-grid"}),N("basis-5xl",[["flex-basis","var(--container-5xl)"]],{category:"flex-grid"}),N("basis-6xl",[["flex-basis","var(--container-6xl)"]],{category:"flex-grid"}),N("basis-7xl",[["flex-basis","var(--container-7xl)"]],{category:"flex-grid"}),M({name:"basis",prop:"flex-basis",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>{if(Jt(t))return`calc(var(--container-${t}) * 1px)`;const e=Xt(t);return e||null},handleNegativeBareValue:({value:t})=>{if(Jt(t))return`calc(var(--container-${t}) * -1px)`;const e=Xt(t);return e?`-${e}`:null},description:"flex-basis utility (theme, arbitrary, custom property, fraction supported)",category:"flex-grid"}),N("flex-row",[["flex-direction","row"]],{category:"flex-grid"}),N("flex-row-reverse",[["flex-direction","row-reverse"]],{category:"flex-grid"}),N("flex-col",[["flex-direction","column"]],{category:"flex-grid"}),N("flex-col-reverse",[["flex-direction","column-reverse"]],{category:"flex-grid"}),N("flex-wrap",[["flex-wrap","wrap"]],{category:"flex-grid"}),N("flex-wrap-reverse",[["flex-wrap","wrap-reverse"]],{category:"flex-grid"}),N("flex-nowrap",[["flex-wrap","nowrap"]],{category:"flex-grid"}),N("flex-auto",[["flex","1 1 auto"]],{category:"flex-grid"}),N("flex-initial",[["flex","0 1 auto"]],{category:"flex-grid"}),N("flex-none",[["flex","none"]],{category:"flex-grid"}),N("flex-grow",[["flex-grow","1"]],{category:"flex-grid"}),M({name:"flex-grow",prop:"flex-grow",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t),handle:t=>[e("flex-grow",t)],description:"flex-grow utility (number, arbitrary, custom property supported)",category:"flex-grid"}),N("flex-shrink",[["flex-shrink","1"]],{category:"flex-grid"}),M({name:"flex-shrink",prop:"flex-shrink",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t),description:"flex-shrink utility (number, arbitrary, custom property supported)",category:"flex-grid"}),M({name:"flex",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>{if(Jt(t))return t;const e=Xt(t);return e?`calc(${e})`:null},handle:t=>[e("flex",t)],description:"flex shorthand utility (number, fraction, arbitrary, custom property supported)",category:"flex-grid"}),N("grow",[["flex-grow","1"]],{category:"flex-grid"}),M({name:"grow",prop:"flex-grow",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t),handle:t=>[e("flex-grow",t)],description:"flex-grow utility (number, arbitrary, custom property supported)",category:"flex-grid"}),N("shrink",[["flex-shrink","1"]],{category:"flex-grid"}),N("shrink-0",[["flex-shrink","0"]],{category:"flex-grid"}),M({name:"shrink",prop:"flex-shrink",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t),description:"flex-shrink utility (number, arbitrary, custom property supported)",category:"flex-grid"}),N("order-first",[["order","calc(-infinity)"]],{category:"flex-grid"}),N("order-last",[["order","calc(infinity)"]],{category:"flex-grid"}),N("order-none",[["order","0"]],{category:"flex-grid"}),M({name:"order",prop:"order",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t),handleNegativeBareValue:({value:t})=>Jt(t)?`calc(${t} * -1)`:null,description:"order utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),N("grid-cols-none",[["grid-template-columns","none"]],{category:"flex-grid"}),N("grid-cols-subgrid",[["grid-template-columns","subgrid"]],{category:"flex-grid"}),M({name:"grid-cols",prop:"grid-template-columns",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>te(t,{repeat:!0}),description:"grid-template-columns utility (number, arbitrary, custom property supported)",category:"flex-grid"}),N("grid-rows-none",[["grid-template-rows","none"]],{category:"flex-grid"}),N("grid-rows-subgrid",[["grid-template-rows","subgrid"]],{category:"flex-grid"}),M({name:"grid-rows",prop:"grid-template-rows",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>te(t,{repeat:!0}),handle:t=>"string"==typeof t?[e("grid-template-rows",t.replace(/_/g," "))]:null,handleCustomProperty:t=>[e("grid-template-rows",`var(${t})`)],description:"grid-template-rows utility (number, arbitrary, custom property supported)",category:"flex-grid"}),N("row-span-full",[["grid-row","1 / -1"]],{category:"flex-grid"}),M({name:"row-span",prop:"grid-row",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`span ${t} / span ${t}`:null,handleCustomProperty:t=>[e("grid-row",`span var(${t}) / span var(${t})`)],handle:t=>Jt(t)?[e("grid-row",`span ${t} / span ${t}`)]:null,description:"grid-row span utility (number, arbitrary, custom property supported)",category:"flex-grid"}),N("row-start-auto",[["grid-row-start","auto"]],{category:"flex-grid"}),M({name:"row-start",prop:"grid-row-start",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t),handleNegativeBareValue:({value:t})=>Jt(t)?`calc(${t} * -1)`:null,handleCustomProperty:t=>[e("grid-row-start",`var(${t})`)],handle:t=>Jt(t)||"string"==typeof t?[e("grid-row-start",t)]:null,description:"grid-row-start utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),N("row-end-auto",[["grid-row-end","auto"]],{category:"flex-grid"}),M({name:"row-end",prop:"grid-row-end",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t),handleNegativeBareValue:({value:t})=>Jt(t)?`calc(${t} * -1)`:null,handleCustomProperty:t=>[e("grid-row-end",`var(${t})`)],handle:t=>Jt(t)||"string"==typeof t?[e("grid-row-end",t)]:null,description:"grid-row-end utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),N("row-auto",[["grid-row","auto"]],{category:"flex-grid"}),M({name:"row",prop:"grid-row",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t),handleNegativeBareValue:({value:t})=>Jt(t)?`calc(${t} * -1)`:null,handleCustomProperty:t=>[e("grid-row",`var(${t})`)],handle:t=>Jt(t)||"string"==typeof t?[e("grid-row",t)]:null,description:"grid-row utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),N("grid-flow-row",[["grid-auto-flow","row"]],{category:"flex-grid"}),N("grid-flow-col",[["grid-auto-flow","column"]],{category:"flex-grid"}),N("grid-flow-dense",[["grid-auto-flow","dense"]],{category:"flex-grid"}),N("grid-flow-row-dense",[["grid-auto-flow","row dense"]],{category:"flex-grid"}),N("grid-flow-col-dense",[["grid-auto-flow","column dense"]],{category:"flex-grid"}),N("auto-cols-auto",[["grid-auto-columns","auto"]],{category:"flex-grid"}),N("auto-cols-min",[["grid-auto-columns","min-content"]],{category:"flex-grid"}),N("auto-cols-max",[["grid-auto-columns","max-content"]],{category:"flex-grid"}),N("auto-cols-fr",[["grid-auto-columns","minmax(0, 1fr)"]],{category:"flex-grid"}),M({name:"auto-cols",prop:"grid-auto-columns",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("grid-auto-columns",t)]:null,handleCustomProperty:t=>[e("grid-auto-columns",`var(${t})`)],description:"grid-auto-columns utility (static, arbitrary, custom property supported)",category:"flex-grid"}),N("auto-rows-auto",[["grid-auto-rows","auto"]],{category:"flex-grid"}),N("auto-rows-min",[["grid-auto-rows","min-content"]],{category:"flex-grid"}),N("auto-rows-max",[["grid-auto-rows","max-content"]],{category:"flex-grid"}),N("auto-rows-fr",[["grid-auto-rows","minmax(0, 1fr)"]],{category:"flex-grid"}),M({name:"auto-rows",prop:"grid-auto-rows",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("grid-auto-rows",t)]:null,handleCustomProperty:t=>[e("grid-auto-rows",`var(${t})`)],description:"grid-auto-rows utility (static, arbitrary, custom property supported)",category:"flex-grid"}),M({name:"gap-x",prop:"column-gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>"px"===t?"1px":Jt(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("column-gap",t)]:null,handleCustomProperty:t=>[e("column-gap",`var(${t})`)],description:"gap-x utility (number, arbitrary, custom property supported)",category:"layout"}),M({name:"gap-y",prop:"row-gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>"px"===t?"1px":Jt(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("row-gap",t)]:null,handleCustomProperty:t=>[e("row-gap",`var(${t})`)],description:"gap-y utility (number, arbitrary, custom property supported)",category:"layout"}),M({name:"gap",prop:"gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>"px"===t?"1px":Jt(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("gap",t)]:null,handleCustomProperty:t=>[e("gap",`var(${t})`)],description:"gap utility (number, arbitrary, custom property supported)",category:"layout"}),N("justify-start",[["justify-content","flex-start"]],{category:"flex-grid"}),N("justify-end",[["justify-content","flex-end"]],{category:"flex-grid"}),N("justify-end-safe",[["justify-content","safe flex-end"]],{category:"flex-grid"}),N("justify-center",[["justify-content","center"]],{category:"flex-grid"}),N("justify-center-safe",[["justify-content","safe center"]],{category:"flex-grid"}),N("justify-between",[["justify-content","space-between"]],{category:"flex-grid"}),N("justify-around",[["justify-content","space-around"]],{category:"flex-grid"}),N("justify-evenly",[["justify-content","space-evenly"]],{category:"flex-grid"}),N("justify-stretch",[["justify-content","stretch"]],{category:"flex-grid"}),N("justify-baseline",[["justify-content","baseline"]],{category:"flex-grid"}),N("justify-normal",[["justify-content","normal"]],{category:"flex-grid"}),N("justify-items-start",[["justify-items","start"]],{category:"flex-grid"}),N("justify-items-end",[["justify-items","end"]],{category:"flex-grid"}),N("justify-items-end-safe",[["justify-items","safe end"]],{category:"flex-grid"}),N("justify-items-center",[["justify-items","center"]],{category:"flex-grid"}),N("justify-items-center-safe",[["justify-items","safe center"]],{category:"flex-grid"}),N("justify-items-stretch",[["justify-items","stretch"]],{category:"flex-grid"}),N("justify-items-normal",[["justify-items","normal"]],{category:"flex-grid"}),N("justify-self-auto",[["justify-self","auto"]],{category:"flex-grid"}),N("justify-self-start",[["justify-self","flex-start"]],{category:"flex-grid"}),N("justify-self-center",[["justify-self","center"]],{category:"flex-grid"}),N("justify-self-center-safe",[["justify-self","safe center"]],{category:"flex-grid"}),N("justify-self-end",[["justify-self","flex-end"]],{category:"flex-grid"}),N("justify-self-end-safe",[["justify-self","safe flex-end"]],{category:"flex-grid"}),N("justify-self-stretch",[["justify-self","stretch"]],{category:"flex-grid"}),N("content-normal",[["align-content","normal"]],{category:"flex-grid"}),N("content-center",[["align-content","center"]],{category:"flex-grid"}),N("content-start",[["align-content","flex-start"]],{category:"flex-grid"}),N("content-end",[["align-content","flex-end"]],{category:"flex-grid"}),N("content-between",[["align-content","space-between"]],{category:"flex-grid"}),N("content-around",[["align-content","space-around"]],{category:"flex-grid"}),N("content-evenly",[["align-content","space-evenly"]],{category:"flex-grid"}),N("content-baseline",[["align-content","baseline"]],{category:"flex-grid"}),N("content-stretch",[["align-content","stretch"]],{category:"flex-grid"}),N("items-start",[["align-items","flex-start"]],{category:"flex-grid"}),N("items-end",[["align-items","flex-end"]],{category:"flex-grid"}),N("items-end-safe",[["align-items","safe flex-end"]],{category:"flex-grid"}),N("items-center",[["align-items","center"]],{category:"flex-grid"}),N("items-center-safe",[["align-items","safe center"]],{category:"flex-grid"}),N("items-baseline",[["align-items","baseline"]],{category:"flex-grid"}),N("items-baseline-last",[["align-items","last baseline"]],{category:"flex-grid"}),N("items-stretch",[["align-items","stretch"]],{category:"flex-grid"}),N("self-auto",[["align-self","auto"]],{category:"flex-grid"}),N("self-start",[["align-self","flex-start"]],{category:"flex-grid"}),N("self-end",[["align-self","flex-end"]],{category:"flex-grid"}),N("self-end-safe",[["align-self","safe flex-end"]],{category:"flex-grid"}),N("self-center",[["align-self","center"]],{category:"flex-grid"}),N("self-center-safe",[["align-self","safe center"]],{category:"flex-grid"}),N("self-stretch",[["align-self","stretch"]],{category:"flex-grid"}),N("self-baseline",[["align-self","baseline"]],{category:"flex-grid"}),N("self-baseline-last",[["align-self","last baseline"]],{category:"flex-grid"}),N("place-content-center",[["place-content","center"]],{category:"flex-grid"}),N("place-content-center-safe",[["place-content","safe center"]],{category:"flex-grid"}),N("place-content-start",[["place-content","start"]],{category:"flex-grid"}),N("place-content-end",[["place-content","end"]],{category:"flex-grid"}),N("place-content-end-safe",[["place-content","safe end"]],{category:"flex-grid"}),N("place-content-between",[["place-content","space-between"]],{category:"flex-grid"}),N("place-content-around",[["place-content","space-around"]],{category:"flex-grid"}),N("place-content-evenly",[["place-content","space-evenly"]],{category:"flex-grid"}),N("place-content-baseline",[["place-content","baseline"]],{category:"flex-grid"}),N("place-content-stretch",[["place-content","stretch"]],{category:"flex-grid"}),N("place-items-start",[["place-items","start"]],{category:"flex-grid"}),N("place-items-end",[["place-items","end"]],{category:"flex-grid"}),N("place-items-end-safe",[["place-items","safe end"]],{category:"flex-grid"}),N("place-items-center",[["place-items","center"]],{category:"flex-grid"}),N("place-items-center-safe",[["place-items","safe center"]],{category:"flex-grid"}),N("place-items-baseline",[["place-items","baseline"]],{category:"flex-grid"}),N("place-items-stretch",[["place-items","stretch"]],{category:"flex-grid"}),N("place-self-auto",[["place-self","auto"]],{category:"flex-grid"}),N("place-self-start",[["place-self","start"]],{category:"flex-grid"}),N("place-self-end",[["place-self","end"]],{category:"flex-grid"}),N("place-self-end-safe",[["place-self","safe end"]],{category:"flex-grid"}),N("place-self-center",[["place-self","center"]],{category:"flex-grid"}),N("place-self-center-safe",[["place-self","safe center"]],{category:"flex-grid"}),N("place-self-stretch",[["place-self","stretch"]],{category:"flex-grid"}),N("col-span-full",[["grid-column","1 / -1"]],{category:"flex-grid"}),M({name:"col-span",prop:"grid-column",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`span ${t} / span ${t}`:null,handleCustomProperty:(t,r,o)=>[e("grid-column",`span var(${t}) / span var(${t})`)],handle:(t,r,o)=>Jt(t)?[e("grid-column",`span ${t} / span ${t}`)]:null,description:"grid-column span utility (number, arbitrary, custom property supported)",category:"grid"}),N("col-start-auto",[["grid-column-start","auto"]],{category:"flex-grid"}),M({name:"col-start",prop:"grid-column-start",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t),handleNegativeBareValue:({value:t})=>Jt(t)?`calc(${t} * -1)`:null,description:"grid-column-start utility (number, negative, arbitrary, custom property supported)",category:"grid"}),N("col-end-auto",[["grid-column-end","auto"]],{category:"flex-grid"}),M({name:"col-end",prop:"grid-column-end",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t),handleNegativeBareValue:({value:t})=>Jt(t)?`calc(${t} * -1)`:null,description:"grid-column-end utility (number, negative, arbitrary, custom property supported)",category:"grid"}),N("col-auto",[["grid-column","auto"]],{category:"flex-grid"}),M({name:"col",prop:"grid-column",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t),handleNegativeBareValue:({value:t})=>Jt(t)?`calc(${t} * -1)`:null,description:"grid-column utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),[["px","padding-inline"],["py","padding-block"],["ps","padding-inline-start"],["pe","padding-inline-end"],["pbs","padding-block-start"],["pbe","padding-block-end"],["pt","padding-top"],["pr","padding-right"],["pb","padding-bottom"],["pl","padding-left"],["p","padding"]].forEach(([t,e])=>{N(`${t}-px`,[[e,"1px"]],{category:"spacing"}),M({spacingKeys:!0,name:t,prop:e,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:null,description:`${t} utility (number, arbitrary, custom property supported)`,category:"spacing"})}),[["mx","margin-inline"],["my","margin-block"],["ms","margin-inline-start"],["me","margin-inline-end"],["mbs","margin-block-start"],["mbe","margin-block-end"],["mt","margin-top"],["mr","margin-right"],["mb","margin-bottom"],["ml","margin-left"],["m","margin"]].forEach(([t,e])=>{N(`${t}-auto`,[[e,"auto"]],{category:"spacing"}),N(`${t}-px`,[[e,"1px"]],{category:"spacing"}),N(`-${t}-px`,[[e,"-1px"]],{category:"spacing"}),M({spacingKeys:!0,name:t,prop:e,supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:null,handleNegativeBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * -${t})`:null,description:`${t} margin utility (number, negative, arbitrary, custom property, auto, px supported)`,category:"spacing"})});var _e=":where(& > :not(:last-child))";["x","y"].forEach(t=>{const o=`space-${t}`,s=`--baro-space-${t}-reverse`,[i,l]="x"===t?["margin-inline-start","margin-inline-end"]:["margin-block-start","margin-block-end"],c=()=>r([n(s,"0")]),p=t=>a(_e,[e(s,"0"),e(i,`calc(${t} * var(${s}))`),e(l,`calc(${t} * calc(1 - var(${s})))`)]),u=t=>[c(),p(t)];N(`${o}-px`,[c,()=>p("1px")],{category:"spacing"}),N(`-${o}-px`,[c,()=>p("-1px")],{category:"spacing"}),N(`${o}-reverse`,[c,()=>a(_e,[e(s,"1")])],{category:"spacing"}),M({spacingKeys:!0,name:o,supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:null,handleNegativeBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * -${t})`:null,handle:(t,e,r)=>{let o=String(t);return/^-?\d+(\.\d+)?$/.test(o)&&(o=`calc(var(--spacing) * ${r.negative?"-":""}${o})`),u(o)},handleCustomProperty:t=>u(`var(${t})`),description:`${o} utility (number, negative, px, arbitrary, custom property, reverse supported)`,category:"spacing"})}),[["w-auto","auto"],["w-px","1px"],["w-full","100%"],["w-screen","100vw"],["w-dvw","100dvw"],["w-dvh","100dvh"],["w-lvw","100lvw"],["w-lvh","100lvh"],["w-svw","100svw"],["w-svh","100svh"],["w-min","min-content"],["w-max","max-content"],["w-fit","fit-content"],["w-3xs","var(--container-3xs)"],["w-2xs","var(--container-2xs)"],["w-xs","var(--container-xs)"],["w-sm","var(--container-sm)"],["w-md","var(--container-md)"],["w-lg","var(--container-lg)"],["w-xl","var(--container-xl)"],["w-2xl","var(--container-2xl)"],["w-3xl","var(--container-3xl)"],["w-4xl","var(--container-4xl)"],["w-5xl","var(--container-5xl)"],["w-6xl","var(--container-6xl)"],["w-7xl","var(--container-7xl)"]].forEach(([t,e])=>{N(t,[["width",e]])}),M({spacingKeys:!0,name:"w",prop:"width",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:te(t)?`calc(${t} * 100%)`:null,description:"width utility (spacing, fraction, arbitrary, custom property, container scale, static supported)",category:"sizing"}),[["size-auto",["auto","auto"]],["size-px",["1px","1px"]],["size-full",["100%","100%"]],["size-dvw",["100dvw","100dvw"]],["size-dvh",["100dvh","100dvh"]],["size-lvw",["100lvw","100lvw"]],["size-lvh",["100lvh","100lvh"]],["size-svw",["100svw","100svw"]],["size-svh",["100svh","100svh"]],["size-min",["min-content","min-content"]],["size-max",["max-content","max-content"]],["size-fit",["fit-content","fit-content"]]].forEach(([t,[e,r]])=>{N(t,[["width",e],["height",r]])}),M({spacingKeys:!0,name:"size",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:te(t)?`calc(${t} * 100%)`:null,handle:t=>[e("width",t),e("height",t)],handleCustomProperty:t=>[e("width",`var(${t})`),e("height",`var(${t})`)],description:"size utility (spacing, fraction, arbitrary, custom property, static supported)",category:"sizing"}),[["h-auto","auto"],["h-px","1px"],["h-full","100%"],["h-screen","100vh"],["h-dvh","100dvh"],["h-lvh","100lvh"],["h-svh","100svh"],["h-min","min-content"],["h-max","max-content"],["h-fit","fit-content"]].forEach(([t,e])=>{N(t,[["height",e]])}),M({spacingKeys:!0,name:"h",prop:"height",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:te(t)?`calc(${t} * 100%)`:null,description:"height utility (spacing, fraction, arbitrary, custom property, static supported)",category:"sizing"}),[["min-h-0","0px"],["min-h-px","1px"],["min-h-full","100%"],["min-h-screen","100vh"],["min-h-dvh","100dvh"],["min-h-lvh","100lvh"],["min-h-svh","100svh"],["min-h-min","min-content"],["min-h-max","max-content"],["min-h-fit","fit-content"]].forEach(([t,e])=>{N(t,[["min-height",e]],{category:"sizing"})}),M({spacingKeys:!0,name:"min-h",prop:"min-height",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:te(t)?`calc(${t} * 100%)`:null,description:"min-height utility (spacing, fraction, arbitrary, custom property, static supported)",category:"sizing"}),[["max-h-px","1px"],["max-h-full","100%"],["max-h-screen","100vh"],["max-h-dvh","100dvh"],["max-h-lvh","100lvh"],["max-h-svh","100svh"],["max-h-min","min-content"],["max-h-max","max-content"],["max-h-fit","fit-content"],["max-h-none","none"]].forEach(([t,e])=>{N(t,[["max-height",e]],{category:"sizing"})}),M({spacingKeys:!0,name:"max-h",prop:"max-height",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:te(t)?`calc(${t} * 100%)`:null,description:"max-height utility (spacing, fraction, arbitrary, custom property, static supported)",category:"sizing"}),[["min-w-auto","auto"],["min-w-px","1px"],["min-w-full","100%"],["min-w-screen","100vw"],["min-w-dvw","100dvw"],["min-w-dvh","100dvh"],["min-w-lvw","100lvw"],["min-w-lvh","100lvh"],["min-w-svw","100svw"],["min-w-svh","100svh"],["min-w-min","min-content"],["min-w-max","max-content"],["min-w-fit","fit-content"],["min-w-3xs","var(--container-3xs)"],["min-w-2xs","var(--container-2xs)"],["min-w-xs","var(--container-xs)"],["min-w-sm","var(--container-sm)"],["min-w-md","var(--container-md)"],["min-w-lg","var(--container-lg)"],["min-w-xl","var(--container-xl)"],["min-w-2xl","var(--container-2xl)"],["min-w-3xl","var(--container-3xl)"],["min-w-4xl","var(--container-4xl)"],["min-w-5xl","var(--container-5xl)"],["min-w-6xl","var(--container-6xl)"],["min-w-7xl","var(--container-7xl)"]].forEach(([t,e])=>{N(t,[["min-width",e]],{category:"sizing"})}),M({spacingKeys:!0,name:"min-w",prop:"min-width",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:te(t)?`calc(${t} * 100%)`:null,description:"min-width utility (spacing, fraction, arbitrary, custom property, static supported)",category:"sizing"}),[["max-w-none","none"],["max-w-min","min-content"],["max-w-max","max-content"],["max-w-fit","fit-content"],["max-w-xs","var(--container-xs)"],["max-w-sm","var(--container-sm)"],["max-w-md","var(--container-md)"],["max-w-lg","var(--container-lg)"],["max-w-xl","var(--container-xl)"],["max-w-2xl","var(--container-2xl)"],["max-w-3xl","var(--container-3xl)"],["max-w-4xl","var(--container-4xl)"],["max-w-5xl","var(--container-5xl)"],["max-w-6xl","var(--container-6xl)"],["max-w-7xl","var(--container-7xl)"]].forEach(([t,e])=>{N(t,[["max-width",e]],{category:"sizing"})}),M({spacingKeys:!0,name:"max-w",prop:"max-width",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t,ctx:e})=>Jt(t)?`calc(var(--spacing) * ${t})`:te(t)?`calc(${t} * 100%)`:B(e,"container",t,"container"),description:"max-width utility (spacing, fraction, arbitrary, custom property, static supported)",category:"sizing"});{const t=["3xs","2xs","xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl"].map(t=>[t,`var(--container-${t})`]),e=[["0","0px"],["px","1px"],["full","100%"],["min","min-content"],["max","max-content"],["fit","fit-content"]],r=[["screen","100vw"],["dvw","100dvw"],["lvw","100lvw"],["svw","100svw"]],o=[["screen","100vh"],["dvh","100dvh"],["lvh","100lvh"],["svh","100svh"],["lh","1lh"]],a=[["inline","inline-size",[...e,["auto","auto"],...r,...t]],["min-inline","min-inline-size",[...e,["auto","auto"],...r,...t]],["max-inline","max-inline-size",[...e,["none","none"],...r,...t]],["block","block-size",[...e,["auto","auto"],...o]],["min-block","min-block-size",[...e,["auto","auto"],...o]],["max-block","max-block-size",[...e,["none","none"],...o]]];for(const[n,s,i]of a){for(const[t,e]of i)N(`${n}-${t}`,[[s,e]],{category:"sizing"});M({spacingKeys:!0,name:n,prop:s,supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t,token:e,ctx:r})=>e.negative?null:Jt(t)?`calc(var(--spacing) * ${t})`:te(t)?`calc(${t} * 100%)`:n.includes("inline")?B(r,"container",t,"container"):null,description:`${s} utility (spacing, fraction, arbitrary, custom property, keywords)`,category:"sizing"})}}var qe=()=>r([n("--baro-leading")]);function Ue(t){w({name:`font-${t}`,match:e=>e===`font-${t}`,handler:(r,o)=>{const a=B(o,"fontFamily",t,"font");return a?[e("font-family",a)]:[e("font-weight",`var(--font-weight-${t})`)]},category:"typography"})}N("font-sans",[["font-family","var(--font-sans)"]],{category:"typography"}),N("font-serif",[["font-family","var(--font-serif)"]],{category:"typography"}),N("font-mono",[["font-family","var(--font-mono)"]],{category:"typography"}),N("text-xs",[["font-size","var(--text-xs)"],["line-height","var(--baro-leading, var(--text-xs--line-height))"]],{category:"typography"}),N("text-sm",[["font-size","var(--text-sm)"],["line-height","var(--baro-leading, var(--text-sm--line-height))"]],{category:"typography"}),N("text-base",[["font-size","var(--text-base)"],["line-height","var(--baro-leading, var(--text-base--line-height))"]],{category:"typography"}),N("text-lg",[["font-size","var(--text-lg)"],["line-height","var(--baro-leading, var(--text-lg--line-height))"]],{category:"typography"}),N("text-xl",[["font-size","var(--text-xl)"],["line-height","var(--baro-leading, var(--text-xl--line-height))"]],{category:"typography"}),N("text-2xl",[["font-size","var(--text-2xl)"],["line-height","var(--baro-leading, var(--text-2xl--line-height))"]],{category:"typography"}),N("text-3xl",[["font-size","var(--text-3xl)"],["line-height","var(--baro-leading, var(--text-3xl--line-height))"]],{category:"typography"}),N("text-4xl",[["font-size","var(--text-4xl)"],["line-height","var(--baro-leading, var(--text-4xl--line-height))"]],{category:"typography"}),N("text-5xl",[["font-size","var(--text-5xl)"],["line-height","var(--baro-leading, var(--text-5xl--line-height))"]],{category:"typography"}),N("text-6xl",[["font-size","var(--text-6xl)"],["line-height","var(--baro-leading, var(--text-6xl--line-height))"]],{category:"typography"}),N("text-7xl",[["font-size","var(--text-7xl)"],["line-height","var(--baro-leading, var(--text-7xl--line-height))"]],{category:"typography"}),N("text-8xl",[["font-size","var(--text-8xl)"],["line-height","var(--baro-leading, var(--text-8xl--line-height))"]],{category:"typography"}),N("text-9xl",[["font-size","var(--text-9xl)"],["line-height","var(--baro-leading, var(--text-9xl--line-height))"]],{category:"typography"}),Ue("thin"),Ue("extralight"),Ue("light"),Ue("normal"),Ue("medium"),Ue("semibold"),Ue("bold"),Ue("extrabold"),Ue("black"),M({name:"font",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>B(e,"fontFamily",t,"font")??B(e,"fontWeight",t,"font-weight")??(/^(\d|\.\d)/.test(t)?t:null),handle:(t,r,o)=>"font"!==o.prefix?null:!o.arbitrary&&t.startsWith("var(--font-weight-")||Jt(t)?[e("font-weight",t)]:[e("font-family",t)],handleCustomProperty:(t,r,o)=>"font"!==o.prefix?null:t.startsWith("font-name:")?[e("font-family",`var(${t.replace("font-name:","")})`)]:[e("font-weight",`var(${t})`)],description:"font-weight utility (theme, number, arbitrary, custom property supported)",category:"typography"}),N("italic",[["font-style","italic"]],{category:"typography"}),N("not-italic",[["font-style","normal"]],{category:"typography"}),N("tracking-tighter",[["letter-spacing","var(--letter-spacing-tighter)"]],{category:"typography"}),N("tracking-tight",[["letter-spacing","var(--letter-spacing-tight)"]],{category:"typography"}),N("tracking-normal",[["letter-spacing","var(--letter-spacing-normal)"]],{category:"typography"}),N("tracking-wide",[["letter-spacing","var(--letter-spacing-wide)"]],{category:"typography"}),N("tracking-wider",[["letter-spacing","var(--letter-spacing-wider)"]],{category:"typography"}),N("tracking-widest",[["letter-spacing","var(--letter-spacing-widest)"]],{category:"typography"}),M({name:"tracking",prop:"letter-spacing",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>B(e,"letterSpacing",t,"letter-spacing")??(/^(\d|\.\d)/.test(t)?t:null),description:"letter-spacing utility (theme, arbitrary, custom property supported)",category:"typography"}),N("leading-none",[["--baro-leading","var(--leading-none, 1)"],["line-height","var(--leading-none, 1)"],qe()],{category:"typography"}),N("leading-tight",[["--baro-leading","var(--leading-tight, 1.25)"],["line-height","var(--leading-tight, 1.25)"],qe()],{category:"typography"}),N("leading-snug",[["--baro-leading","var(--leading-snug, 1.375)"],["line-height","var(--leading-snug, 1.375)"],qe()],{category:"typography"}),N("leading-normal",[["--baro-leading","var(--leading-normal, 1.5)"],["line-height","var(--leading-normal, 1.5)"],qe()],{category:"typography"}),N("leading-relaxed",[["--baro-leading","var(--leading-relaxed, 1.625)"],["line-height","var(--leading-relaxed, 1.625)"],qe()],{category:"typography"}),N("leading-loose",[["--baro-leading","var(--leading-loose, 2)"],["line-height","var(--leading-loose, 2)"],qe()],{category:"typography"}),M({name:"leading",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>{const r=V(e,"lineHeight",t);if(null!=r)return`var(--leading-${t}, ${r})`;const o=e.theme("lineHeight",t);return"string"==typeof o?o:Jt(t)},handle:t=>[e("--baro-leading",t),e("line-height",t),qe()],handleCustomProperty:t=>[e("--baro-leading",`var(${t})`),e("line-height",`var(${t})`),qe()],description:"line-height utility (theme, number, arbitrary, custom property supported)",category:"typography"}),N("text-left",[["text-align","left"]],{category:"typography"}),N("text-center",[["text-align","center"]],{category:"typography"}),N("text-right",[["text-align","right"]],{category:"typography"}),N("text-justify",[["text-align","justify"]],{category:"typography"}),N("text-start",[["text-align","start"]],{category:"typography"}),N("text-end",[["text-align","end"]],{category:"typography"});var He=new Set(["length","size","percentage","absolute-size","relative-size"]),Ye=/^(xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large|larger|smaller)$/,Ge=/^-?(\d+\.?\d*|\.\d+)(px|r?em|r?lh|r?cap|r?ch|r?ex|r?ic|%|vh|vw|vmin|vmax|[sdl]v[hwib]|v[ib]|cq[whib]|cqmin|cqmax|pt|pc|in|cm|mm|q)$/i;function Xe(t){const e=/^([a-z-]+):(.+)$/.exec(t);return e&&("color"===e[1]||He.has(e[1]))?{fontSize:"color"!==e[1],value:e[2]}:{fontSize:"0"===t||Ge.test(t)||Ye.test(t)||/^(calc|min|max|clamp)\(/.test(t),value:t}}N("text-inherit",[["color","inherit"]],{category:"typography"}),N("text-current",[["color","currentColor"]],{category:"typography"}),N("text-transparent",[["color","transparent"]],{category:"typography"}),N("truncate",[["overflow","hidden"],["text-overflow","ellipsis"],["white-space","nowrap"]],{category:"typography"}),N("text-ellipsis",[["text-overflow","ellipsis"]],{category:"typography"}),N("text-clip",[["text-overflow","clip"]],{category:"typography"}),M({name:"text",themeKey:"colors",supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handleBareValue:({value:t,ctx:e,extra:r})=>(r?.opacity?null:B(e,"fontSize",t,"text"))??(/^(\d|\.\d)/.test(t)?t:null),handle:(t,r,o,a)=>{if(a?.realThemeValue)return ae("color",t,a);const n=o.arbitrary||o.customProperty?void 0:/^var\(--text-([\w-]+)\)$/.exec(t)?.[1];if(n)return lt(r.theme("fontSize",n))?[e("font-size",t),e("line-height",`var(--baro-leading, var(--text-${n}--line-height))`)]:[e("font-size",t)];const s=Xe(t);return[e(s.fontSize?"font-size":"color",s.value)]},handleCustomProperty:t=>{const r=Xe(t);return[e(r.fontSize?"font-size":"color",`var(${r.value})`)]},description:"text color utility (theme, arbitrary, custom property supported)",category:"typography"}),M({name:"text",themeKey:"fontSize",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>{const a=r.theme("fontSize",t);return a?Array.isArray(a)?[e("font-size",a[0]),e("line-height",`var(--baro-leading, ${a[1]})`)]:[e("font-size",a)]:o.arbitrary?[e("font-size",t)]:null},handleCustomProperty:t=>[e("font-size",`var(${t})`)],description:"font-size utility (theme, arbitrary, custom property supported)",category:"typography"}),N("uppercase",[["text-transform","uppercase"]],{category:"typography"}),N("lowercase",[["text-transform","lowercase"]],{category:"typography"}),N("capitalize",[["text-transform","capitalize"]],{category:"typography"}),N("normal-case",[["text-transform","none"]],{category:"typography"}),N("underline",[["text-decoration-line","underline"]],{category:"typography"}),N("overline",[["text-decoration-line","overline"]],{category:"typography"}),N("line-through",[["text-decoration-line","line-through"]],{category:"typography"}),N("no-underline",[["text-decoration-line","none"]],{category:"typography"}),N("whitespace-normal",[["white-space","normal"]],{category:"typography"}),N("whitespace-nowrap",[["white-space","nowrap"]],{category:"typography"}),N("whitespace-pre",[["white-space","pre"]],{category:"typography"}),N("whitespace-pre-line",[["white-space","pre-line"]],{category:"typography"}),N("whitespace-pre-wrap",[["white-space","pre-wrap"]],{category:"typography"}),N("whitespace-break-spaces",[["white-space","break-spaces"]],{category:"typography"}),N("break-normal",[["overflow-wrap","normal"],["word-break","normal"]],{category:"typography"}),N("break-words",[["overflow-wrap","break-word"]],{category:"typography"}),N("break-all",[["word-break","break-all"]],{category:"typography"}),N("break-keep",[["word-break","keep-all"]],{category:"typography"}),N("antialiased",[["-webkit-font-smoothing","antialiased"],["-moz-osx-font-smoothing","grayscale"]],{category:"typography"}),N("subpixel-antialiased",[["-webkit-font-smoothing","auto"],["-moz-osx-font-smoothing","auto"]],{category:"typography"}),N("font-stretch-normal",[["font-stretch","normal"]],{category:"typography"}),N("font-stretch-ultra-condensed",[["font-stretch","ultra-condensed"]],{category:"typography"}),N("font-stretch-extra-condensed",[["font-stretch","extra-condensed"]],{category:"typography"}),N("font-stretch-condensed",[["font-stretch","condensed"]],{category:"typography"}),N("font-stretch-semi-condensed",[["font-stretch","semi-condensed"]],{category:"typography"}),N("font-stretch-semi-expanded",[["font-stretch","semi-expanded"]],{category:"typography"}),N("font-stretch-expanded",[["font-stretch","expanded"]],{category:"typography"}),N("font-stretch-extra-expanded",[["font-stretch","extra-expanded"]],{category:"typography"}),N("font-stretch-ultra-expanded",[["font-stretch","ultra-expanded"]],{category:"typography"}),M({name:"font-stretch",prop:"font-stretch",supportsArbitrary:!0,supportsCustomProperty:!0,description:"font-stretch utility (arbitrary, custom property supported)",category:"typography"}),N("normal-nums",[["font-variant-numeric","normal"]],{category:"typography"}),N("ordinal",[["font-variant-numeric","ordinal"]],{category:"typography"}),N("slashed-zero",[["font-variant-numeric","slashed-zero"]],{category:"typography"}),N("lining-nums",[["font-variant-numeric","lining-nums"]],{category:"typography"}),N("oldstyle-nums",[["font-variant-numeric","oldstyle-nums"]],{category:"typography"}),N("proportional-nums",[["font-variant-numeric","proportional-nums"]],{category:"typography"}),N("tabular-nums",[["font-variant-numeric","tabular-nums"]],{category:"typography"}),N("diagonal-fractions",[["font-variant-numeric","diagonal-fractions"]],{category:"typography"}),N("stacked-fractions",[["font-variant-numeric","stacked-fractions"]],{category:"typography"}),N("line-clamp-none",[["-webkit-line-clamp","none"]],{category:"typography"}),M({name:"line-clamp",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t),handle:t=>[e("overflow","hidden"),e("display","-webkit-box"),e("-webkit-box-orient","vertical"),e("-webkit-line-clamp",t)],handleCustomProperty:t=>[e("overflow","hidden"),e("display","-webkit-box"),e("-webkit-box-orient","vertical"),e("-webkit-line-clamp",`var(${t})`)],description:"line-clamp utility (number, arbitrary, custom property supported)",category:"typography"}),N("list-none",[["list-style-type","none"]],{category:"typography"}),N("list-disc",[["list-style-type","disc"]],{category:"typography"}),N("list-decimal",[["list-style-type","decimal"]],{category:"typography"}),M({name:"list",prop:"list-style-type",themeKey:"listStyleType",supportsArbitrary:!0,supportsCustomProperty:!0,description:"list-style-type utility (theme, arbitrary, custom property supported)",category:"typography"}),N("list-inside",[["list-style-position","inside"]],{category:"typography"}),N("list-outside",[["list-style-position","outside"]],{category:"typography"}),N("list-image-none",[["list-style-image","none"]],{category:"typography"}),M({name:"list-image",prop:"list-style-image",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>[e("list-style-image",`url(${t})`)],handleCustomProperty:t=>[e("list-style-image",`var(${t})`)],description:"list-style-image utility (arbitrary, custom property supported)",category:"typography"}),M({name:"decoration",themeKeys:["textDecorationThickness","colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,r,o,a)=>"textDecorationThickness"===a?.themeNamespace?[e("text-decoration-thickness",t)]:a?.realThemeValue?ae("text-decoration-color",t,a):[e("text-decoration-color",t)],handleCustomProperty:t=>[e("text-decoration-color",`var(${t})`)],description:"text-decoration-color utility (theme, arbitrary, custom property supported)",category:"typography"}),N("decoration-solid",[["text-decoration-style","solid"]],{category:"typography"}),N("decoration-double",[["text-decoration-style","double"]],{category:"typography"}),N("decoration-dotted",[["text-decoration-style","dotted"]],{category:"typography"}),N("decoration-dashed",[["text-decoration-style","dashed"]],{category:"typography"}),N("decoration-wavy",[["text-decoration-style","wavy"]],{category:"typography"}),N("decoration-auto",[["text-decoration-thickness","auto"]],{category:"typography"}),N("decoration-from-font",[["text-decoration-thickness","from-font"]],{category:"typography"}),N("decoration-0",[["text-decoration-thickness","0px"]],{category:"typography"}),N("decoration-1",[["text-decoration-thickness","1px"]],{category:"typography"}),N("decoration-2",[["text-decoration-thickness","2px"]],{category:"typography"}),N("decoration-4",[["text-decoration-thickness","4px"]],{category:"typography"}),N("decoration-8",[["text-decoration-thickness","8px"]],{category:"typography"}),M({name:"decoration",prop:"text-decoration-thickness",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`${t}px`:null,description:"text-decoration-thickness utility (arbitrary, custom property supported)",category:"typography"}),N("underline-offset-auto",[["text-underline-offset","auto"]],{category:"typography"}),N("underline-offset-0",[["text-underline-offset","0px"]],{category:"typography"}),N("underline-offset-1",[["text-underline-offset","1px"]],{category:"typography"}),N("underline-offset-2",[["text-underline-offset","2px"]],{category:"typography"}),N("underline-offset-4",[["text-underline-offset","4px"]],{category:"typography"}),N("underline-offset-8",[["text-underline-offset","8px"]],{category:"typography"}),M({name:"underline-offset",prop:"text-underline-offset",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`${t}px`:null,description:"text-underline-offset utility (arbitrary, custom property supported)",category:"typography"}),N("text-wrap",[["text-wrap","wrap"]],{category:"typography"}),N("text-nowrap",[["text-wrap","nowrap"]],{category:"typography"}),N("text-balance",[["text-wrap","balance"]],{category:"typography"}),N("text-pretty",[["text-wrap","pretty"]],{category:"typography"}),M({name:"indent",prop:"text-indent",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:null,handleNegativeBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * -${t})`:null,description:"text-indent utility (spacing, negative, arbitrary, custom property supported)",category:"typography"}),N("align-baseline",[["vertical-align","baseline"]],{category:"typography"}),N("align-top",[["vertical-align","top"]],{category:"typography"}),N("align-middle",[["vertical-align","middle"]],{category:"typography"}),N("align-bottom",[["vertical-align","bottom"]],{category:"typography"}),N("align-text-top",[["vertical-align","text-top"]],{category:"typography"}),N("align-text-bottom",[["vertical-align","text-bottom"]],{category:"typography"}),N("align-sub",[["vertical-align","sub"]],{category:"typography"}),N("align-super",[["vertical-align","super"]],{category:"typography"}),M({name:"align",prop:"vertical-align",supportsArbitrary:!0,supportsCustomProperty:!0,description:"vertical-align utility (arbitrary, custom property supported)",category:"typography"}),N("hyphens-none",[["hyphens","none"]],{category:"typography"}),N("hyphens-manual",[["hyphens","manual"]],{category:"typography"}),N("hyphens-auto",[["hyphens","auto"]],{category:"typography"}),N("content-none",[["--baro-content","none"],["content","none"]],{category:"typography"}),M({name:"content",prop:"content",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>[e("--baro-content",t),e("content","var(--baro-content)")],handleCustomProperty:t=>[e("--baro-content",`var(${t})`),e("content","var(--baro-content)")],description:"content utility (arbitrary, custom property supported)",category:"typography"});var Je=t=>[a("&::placeholder",[e("color",t)])];N("placeholder-inherit",Je("inherit"),{category:"typography"}),N("placeholder-current",Je("currentcolor"),{category:"typography"}),N("placeholder-transparent",Je("transparent"),{category:"typography"}),M({name:"placeholder",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,e,r,o)=>o?.realThemeValue?[a("&::placeholder",ae("color",t,o))]:re(t)?Je(t):null,handleCustomProperty:t=>Je(`var(${t})`),description:"placeholder color utility (theme, alpha, arbitrary, custom property)"}),M({name:"font-features",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>o.arbitrary?[e("font-feature-settings",t)]:null,handleCustomProperty:t=>[e("font-feature-settings",`var(${t.replace(/^[a-z-]+:(?=--)/,"")})`)],description:"font-feature-settings utility (arbitrary, custom property)",category:"typography"}),M({name:"tab",prop:"tab-size",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>/^\d+$/.test(t)?t:null,description:"tab-size utility (integer, arbitrary, custom property)",category:"typography"});var Qe=()=>r([n("--baro-gradient-position"),n("--baro-gradient-from","#0000","<color>"),n("--baro-gradient-via","#0000","<color>"),n("--baro-gradient-to","#0000","<color>"),n("--baro-gradient-stops"),n("--baro-gradient-via-stops"),n("--baro-gradient-from-position","0%","<length-percentage>"),n("--baro-gradient-via-position","50%","<length-percentage>"),n("--baro-gradient-to-position","100%","<length-percentage>")],"background");N("bg-fixed",[["background-attachment","fixed"]],{category:"background"}),N("bg-local",[["background-attachment","local"]],{category:"background"}),N("bg-scroll",[["background-attachment","scroll"]],{category:"background"}),N("bg-clip-border",[["background-clip","border-box"]],{category:"background"}),N("bg-clip-padding",[["background-clip","padding-box"]],{category:"background"}),N("bg-clip-content",[["background-clip","content-box"]],{category:"background"}),N("bg-clip-text",[["background-clip","text"]],{category:"background"}),N("bg-inherit",[["background-color","inherit"]],{category:"background"}),N("bg-current",[["background-color","currentColor"]],{category:"background"}),N("bg-transparent",[["background-color","transparent"]],{category:"background"}),N("bg-none",[["background-image","none"]],{category:"background"}),N("bg-origin-border",[["background-origin","border-box"]],{category:"background"}),N("bg-origin-padding",[["background-origin","padding-box"]],{category:"background"}),N("bg-origin-content",[["background-origin","content-box"]],{category:"background"}),[["bg-bottom","bottom"],["bg-center","center"],["bg-left","left"],["bg-left-bottom","left bottom"],["bg-left-top","left top"],["bg-right","right"],["bg-right-bottom","right bottom"],["bg-right-top","right top"],["bg-top","top"]].forEach(([t,e])=>{N(t,[["background-position",e]],{category:"background"})}),M({name:"bg-position",prop:"background-position",supportsArbitrary:!0,supportsCustomProperty:!0,description:"background-position utility (arbitrary, custom property supported)",category:"background"}),N("bg-repeat",[["background-repeat","repeat"]],{category:"background"}),N("bg-no-repeat",[["background-repeat","no-repeat"]],{category:"background"}),N("bg-repeat-x",[["background-repeat","repeat-x"]],{category:"background"}),N("bg-repeat-y",[["background-repeat","repeat-y"]],{category:"background"}),N("bg-repeat-round",[["background-repeat","round"]],{category:"background"}),N("bg-repeat-space",[["background-repeat","space"]],{category:"background"}),N("bg-auto",[["background-size","auto"]],{category:"background"}),N("bg-cover",[["background-size","cover"]],{category:"background"}),N("bg-contain",[["background-size","contain"]],{category:"background"}),M({name:"bg-size",prop:"background-size",supportsArbitrary:!0,supportsCustomProperty:!0,description:"background-size utility (arbitrary, custom property supported)",category:"background"});var tr=t=>[e("--baro-gradient-position",t),o("supports","(background-image: linear-gradient(in lab, red, red))",[e("--baro-gradient-position",`${t} in oklab`)]),e("background-image","linear-gradient(var(--baro-gradient-stops))")],er=t=>[e("--baro-gradient-position",`${t} in oklab`),e("background-image","linear-gradient(var(--baro-gradient-stops))")];[["bg-linear-to-t",tr("to top")],["bg-linear-to-tr",tr("to top right")],["bg-linear-to-r",tr("to right")],["bg-linear-to-br",tr("to bottom right")],["bg-linear-to-b",tr("to bottom")],["bg-linear-to-bl",tr("to bottom left")],["bg-linear-to-l",tr("to left")],["bg-linear-to-tl",tr("to top left")],["bg-gradient-to-t",er("to top")],["bg-gradient-to-tr",er("to top right")],["bg-gradient-to-r",er("to right")],["bg-gradient-to-br",er("to bottom right")],["bg-gradient-to-b",er("to bottom")],["bg-gradient-to-bl",er("to bottom left")],["bg-gradient-to-l",er("to left")],["bg-gradient-to-tl",er("to top left")]].forEach(([t,e])=>{N(t,e,{category:"background",priority:1e3})}),M({name:"bg-linear",prop:"background-image",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>Jt(t)?tr(`${t}deg`):o.arbitrary?[e("background-image",`linear-gradient(var(--baro-gradient-stops, ${t}))`)]:o.customProperty?[e("background-image",`linear-gradient(var(--baro-gradient-stops, var(${t})))`)]:null,handleCustomProperty:t=>[e("background-image",`linear-gradient(var(--baro-gradient-stops, var(${t})))`)],description:"linear-gradient background-image utility (angle, arbitrary, custom property supported)",category:"background"});var rr=(t,r,o)=>[e("--baro-gradient-position",r),e("background-image",`${t}(var(--baro-gradient-stops${o?`,${o}`:""}))`)];N("bg-radial",rr("radial-gradient","in oklab"),{category:"background"}),M({name:"bg-radial",prop:"background-image",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,r)=>r.arbitrary?rr("radial-gradient",t,t):r.customProperty?rr("radial-gradient",`var(${t})`,`var(${t})`):null,handleCustomProperty:t=>rr("radial-gradient",`var(${t})`,`var(${t})`),description:"radial-gradient background-image utility (arbitrary, custom property supported)",category:"background"}),N("bg-conic",rr("conic-gradient","in oklab"),{category:"background"}),M({name:"bg-conic",prop:"background-image",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,r)=>r.arbitrary||r.customProperty||!Jt(t)?r.arbitrary?rr("conic-gradient",t,t):r.customProperty?rr("conic-gradient",`var(${t})`,`var(${t})`):null:rr("conic-gradient",`from ${t}deg in oklab`),handleCustomProperty:t=>rr("conic-gradient",`var(${t})`,`var(${t})`),description:"conic-gradient background-image utility (angle, arbitrary, custom property supported)",category:"background"});var or="--baro-gradient",ar=(t,r)=>{const o="string"==typeof r?[e(`${or}-${t}`,r)]:r;return"via"===t?[Qe(),...o,e(`${or}-via-stops`,`var(${or}-position), var(${or}-from) var(${or}-from-position), var(${or}-via) var(${or}-via-position), var(${or}-to) var(${or}-to-position)`),e(`${or}-stops`,`var(${or}-via-stops)`)]:[Qe(),...o,e(`${or}-stops`,`var(${or}-via-stops, var(${or}-position), var(${or}-from) var(${or}-from-position), var(${or}-to) var(${or}-to-position))`)]};["from","via","to"].forEach(t=>{M({name:t,themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(r,o,a,n)=>n?.realThemeValue?ar(t,ae(`${or}-${t}`,r,n)):Qt(r)?[Qe(),e(`${or}-${t}-position`,r)]:Jt(r)?[Qe(),e(`${or}-${t}-position`,`${r}%`)]:re(r)?ar(t,r):null,handleCustomProperty:r=>[e(`--baro-gradient-${t}`,`var(${r})`)],description:`${t} gradient stop utility (color, percent, custom property, arbitrary supported)`,category:"background"}),M({name:`${t}-position`,supportsArbitrary:!0,supportsCustomProperty:!0,handle:r=>[e(`--baro-gradient-${t}-position`,r)],handleCustomProperty:r=>[e(`--baro-gradient-${t}-position`,`var(${r})`)],description:`${t}-position gradient stop position utility (percent, custom property, arbitrary supported)`,category:"background"})});var nr={position:"background-position",percentage:"background-position",size:"background-size",length:"background-size","bg-size":"background-size",image:"background-image",url:"background-image"};function sr(t){const e=/^([a-z-]+):(.+)$/.exec(t),r=e?nr[e[1]]:void 0;return e&&r?[r,e[2]]:null}M({name:"bg",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,r,o,a)=>{if(t.startsWith("url("))return[e("background-image",t)];const n=sr(t);if(n)return[e(n[0],n[1])];if(a?.realThemeValue)return ae("background-color",t,a);if(re(t)){const r=re(t);return t.startsWith("color:")?[e("background-color",r||t)]:[e("background-color",t)]}return Qt(t)?[e("background-size",t)]:/^var\(--[^)]+\)$/.test(t)?[e("background-color",t)]:null},handleCustomProperty:t=>{const r=sr(t);return r?[e(r[0],`var(${r[1]})`)]:[e("background-color",`var(${t})`)]},description:"background-size utility (arbitrary, custom property supported)",category:"background"}),N("rounded-none",[["border-radius","0px"]],{category:"borders"}),N("rounded-sm",[["border-radius","var(--radius-sm)"]],{category:"borders"}),N("rounded",[["border-radius","0.25rem"]],{category:"borders"}),N("rounded-md",[["border-radius","var(--radius-md)"]],{category:"borders"}),N("rounded-lg",[["border-radius","var(--radius-lg)"]],{category:"borders"}),N("rounded-xl",[["border-radius","var(--radius-xl)"]],{category:"borders"}),N("rounded-2xl",[["border-radius","var(--radius-2xl)"]],{category:"borders"}),N("rounded-3xl",[["border-radius","var(--radius-3xl)"]],{category:"borders"}),N("rounded-4xl",[["border-radius","var(--radius-4xl)"]],{category:"borders"}),N("rounded-xs",[["border-radius","var(--radius-xs)"]],{category:"borders"});var ir="calc(infinity * 1px)";function lr(t,r){w({name:t,match:e=>e===t,handler:(t,o)=>{const a=V(o,"borderRadius","full"),n=null!=a&&"9999px"!==a&&a!==ir?"var(--radius-full)":ir;return r.map(t=>e(t,n))},category:"borders"})}lr("rounded-full",["border-radius"]),[["rounded-t",["border-top-left-radius","border-top-right-radius"]],["rounded-r",["border-top-right-radius","border-bottom-right-radius"]],["rounded-b",["border-bottom-right-radius","border-bottom-left-radius"]],["rounded-l",["border-top-left-radius","border-bottom-left-radius"]],["rounded-tl",["border-top-left-radius"]],["rounded-tr",["border-top-right-radius"]],["rounded-br",["border-bottom-right-radius"]],["rounded-bl",["border-bottom-left-radius"]],["rounded-s",["border-start-start-radius","border-end-start-radius"]],["rounded-e",["border-start-end-radius","border-end-end-radius"]],["rounded-ss",["border-start-start-radius"]],["rounded-se",["border-start-end-radius"]],["rounded-es",["border-end-start-radius"]],["rounded-ee",["border-end-end-radius"]]].forEach(([t,r])=>{const o=r,a=o[0].startsWith("border-start")||o[0].startsWith("border-end");N(`${t}-none`,o.map(t=>[t,a?"0":"0px"]),{category:"borders"}),N(`${t}-sm`,o.map(t=>[t,"var(--radius-sm)"]),{category:"borders"}),N(`${t}`,o.map(t=>[t,"0.25rem"]),{category:"borders"}),N(`${t}-md`,o.map(t=>[t,"var(--radius-md)"]),{category:"borders"}),N(`${t}-lg`,o.map(t=>[t,"var(--radius-lg)"]),{category:"borders"}),N(`${t}-xl`,o.map(t=>[t,"var(--radius-xl)"]),{category:"borders"}),N(`${t}-2xl`,o.map(t=>[t,"var(--radius-2xl)"]),{category:"borders"}),N(`${t}-3xl`,o.map(t=>[t,"var(--radius-3xl)"]),{category:"borders"}),N(`${t}-4xl`,o.map(t=>[t,"var(--radius-4xl)"]),{category:"borders"}),N(`${t}-xs`,o.map(t=>[t,"var(--radius-xs)"]),{category:"borders"}),lr(`${t}-full`,o),M({name:t,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>!a&&Jt(t)?`calc(var(--spacing) * ${t})`:B(e,"borderRadius",t,"radius"),handle:t=>o.map(r=>e(r,t)),description:`${t} utility (spacing, arbitrary, custom property support)`,category:"borders"})}),M({name:"rounded",handle:(t,r,o)=>"rounded"===o.prefix?[e("border-radius",t)]:null,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>Jt(t)?`calc(var(--spacing) * ${t})`:B(e,"borderRadius",t,"radius"),description:"border-radius utility (spacing, arbitrary, custom property support)",category:"borders"});var cr=()=>r([n("--baro-border-style","solid")]),pr=(t,e)=>e?.themeKey&&"DEFAULT"!==e.themeKey?`var(--border-width-${e.themeKey.replace(".","\\.")})`:t,ur=(t,r)=>[cr(),...t.map(t=>e(t.replace("width","style"),"var(--baro-border-style)")),...t.map(t=>e(t,r))];[["border-0","0px"],["border-2","2px"],["border-4","4px"],["border-8","8px"],["border","1px"]].forEach(([t,e])=>{N(t,[cr,["border-style","var(--baro-border-style)"],["border-width",e]],{category:"borders"})}),[["border-x",["border-inline-width"]],["border-y",["border-block-width"]],["border-bs",["border-block-start-width"]],["border-be",["border-block-end-width"]],["border-s",["border-inline-start-width"]],["border-e",["border-inline-end-width"]],["border-t",["border-top-width"]],["border-r",["border-right-width"]],["border-b",["border-bottom-width"]],["border-l",["border-left-width"]]].forEach(([t,r])=>{const o=r,a=t=>[cr,...o.map(t=>[t.replace("width","style"),"var(--baro-border-style)"]),...o.map(e=>[e,t])];N(`${t}-0`,a("0px")),N(`${t}-2`,a("2px")),N(`${t}-4`,a("4px")),N(`${t}-8`,a("8px")),N(`${t}`,a("1px")),M({name:t,themeKeys:["colors","borderWidth"],supportsOpacity:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`${t}px`:null,handle:(t,r,a,n)=>"borderWidth"===n?.themeNamespace?ur(o,pr(t,n)):n?.realThemeValue?o.flatMap(e=>ae(e.replace("width","color"),t,n)):re(t)?o.map(r=>e(r.replace("width","color"),t)):a.arbitrary||Qt(t)?ur(o,t):null,handleCustomProperty:t=>t.startsWith("length:")?ur(o,`var(${t.replace("length:","")})`):o.map(r=>e(r.replace("width","color"),`var(${t})`)),description:`${t} utility (number, arbitrary, custom property support)`,category:"borders"})}),N("border-inherit",[["border-color","inherit"]],{category:"borders"}),N("border-current",[["border-color","currentColor"]],{category:"borders"}),N("border-transparent",[["border-color","transparent"]],{category:"borders"}),N("border-solid",[["--baro-border-style","solid"],["border-style","solid"]],{category:"borders"}),N("border-dashed",[["--baro-border-style","dashed"],["border-style","dashed"]],{category:"borders"}),N("border-dotted",[["--baro-border-style","dotted"],["border-style","dotted"]],{category:"borders"}),N("border-double",[["--baro-border-style","double"],["border-style","double"]],{category:"borders"}),N("border-hidden",[["--baro-border-style","hidden"],["border-style","hidden"]],{category:"borders"}),N("border-none",[["--baro-border-style","none"],["border-style","none"]],{category:"borders"}),Object.entries({x:["border-inline-start","border-inline-end","border-inline-style"],y:["border-top","border-bottom","border-bottom-style","border-top-style"]}).forEach(([t,[r,o,...n]])=>{const s=`--baro-divide-${t}-reverse`,i=t=>[cr(),a(":where(& > :not(:last-child))",[e(s,"0"),...n.map(t=>e(t,"var(--baro-border-style)")),e(`${r}-width`,`calc(${t} * var(${s}))`),e(`${o}-width`,`calc(${t} * calc(1 - var(${s})))`)])];N(`divide-${t}`,i("1px"),{category:"borders"}),N(`divide-${t}-reverse`,[a(":where(& > :not(:last-child))",[e(s,"1")])],{category:"borders"}),M({name:`divide-${t}`,themeKeys:["divideWidth","borderWidth"],supportsArbitrary:!0,supportsCustomProperty:!0,handleCustomProperty:t=>i(`var(${t.replace(/^length:/,"")})`),handleBareValue:({value:t})=>/^\d+$/.test(t)?`${t}px`:null,handle:(t,e,r,o)=>i("borderWidth"===o?.themeNamespace?pr(t,o):t),description:`divide-${t} width utility`,category:"borders"})}),M({name:"border",themeKeys:["colors","borderWidth"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,r,o,a)=>"borderWidth"===a?.themeNamespace?ur(["border-width"],pr(t,a)):a?.realThemeValue?ae("border-color",t,a):o.arbitrary?Qt(t)?ur(["border-width"],t):[e("border-color",t)]:Jt(t)?ur(["border-width"],`${t}px`):re(t)?[e("border-color",t)]:null,handleCustomProperty:t=>t.startsWith("length:")?ur(["border-width"],`var(${t.replace("length:","")})`):[e("border-color",`var(${t})`)],description:"border-width utility (number, arbitrary, custom property support)",category:"borders"});var dr=()=>r([n("--baro-outline-style","solid")]),yr=t=>[dr(),e("outline-style","var(--baro-outline-style)"),e("outline-width",t)];[["outline-0","0px"],["outline-1","1px"],["outline-2","2px"],["outline-4","4px"],["outline-8","8px"]].forEach(([t,e])=>{N(t,[dr,["outline-style","var(--baro-outline-style)"],["outline-width",e]],{category:"borders"})}),N("outline-inherit",[["outline-color","inherit"]],{category:"borders"}),N("outline-current",[["outline-color","currentColor"]],{category:"borders"}),N("outline-transparent",[["outline-color","transparent"]],{category:"borders"}),N("outline-none",[["--baro-outline-style","none"],["outline-style","none"]],{category:"borders"}),N("outline-hidden",[["--baro-outline-style","none"],["outline-style","none"],o("media","(forced-colors: active)",[e("outline","2px solid transparent"),e("outline-offset","2px")])],{category:"borders"}),N("outline",[dr,["outline-style","var(--baro-outline-style)"],["outline-width","1px"]],{category:"borders"}),["solid","dashed","dotted","double"].forEach(t=>{N(`outline-${t}`,[["--baro-outline-style",t],["outline-style",t]],{category:"borders"})}),N("outline-offset-0",[["outline-offset","0px"]],{category:"borders"}),N("outline-offset-1",[["outline-offset","1px"]],{category:"borders"}),N("outline-offset-2",[["outline-offset","2px"]],{category:"borders"}),N("outline-offset-4",[["outline-offset","4px"]],{category:"borders"}),N("outline-offset-8",[["outline-offset","8px"]],{category:"borders"}),M({name:"outline-offset",prop:"outline-offset",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`${t}px`:null,description:"outline-offset utility (number, arbitrary, custom property support)",category:"borders"}),M({name:"outline",themeKeys:["colors","outlineWidth"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,r,o,a)=>"outlineWidth"===a?.themeNamespace?yr(t):a?.realThemeValue?ae("outline-color",t,a):re(t)?[e("outline-color",t)]:Jt(t)?yr(`${t}px`):o.arbitrary?Qt(t)?yr(t):[e("outline-color",t)]:null,handleCustomProperty:t=>t.startsWith("color:")?[e("outline-color",t.replace("color:",""))]:t.startsWith("length:")?yr(`var(${t.replace("length:","")})`):[e("outline-color",`var(${t})`)],description:"outline-color utility (theme colors, arbitrary, custom property support)",category:"borders"}),M({name:"outline",prop:"outline-width",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`${t}px`:null,description:"outline-width utility (number, arbitrary, custom property support)",category:"borders"});var hr=t=>[a(":where(& > :not(:last-child))",[e("border-color",t)])];N("divide-inherit",hr("inherit"),{category:"borders"}),N("divide-current",hr("currentColor"),{category:"borders"}),N("divide-transparent",hr("transparent"),{category:"borders"}),M({name:"divide",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,e,r,o)=>"divide"!==r.prefix?null:o?.realThemeValue?[a(":where(& > :not(:last-child))",ae("border-color",t,o))]:re(t)?hr(t):null,handleCustomProperty:(t,e,r)=>"divide"===r.prefix?hr(`var(${t})`):[],description:"divide-color utility (theme, alpha, arbitrary, custom property)",category:"borders"});var gr="var(--baro-rotate-x,) var(--baro-rotate-y,) var(--baro-rotate-z,) var(--baro-skew-x,) var(--baro-skew-y,)",mr=(t,r)=>[e(`--baro-rotate-${t}`,r),e("transform",gr)],fr=(t,r)=>[e(`--baro-skew-${t}`,r),e("transform",gr)],br=()=>r([n("--baro-scale-x","1"),n("--baro-scale-y","1"),n("--baro-scale-z","1")]),vr=(t,r)=>[br(),e(`--baro-scale-${t}`,r),e("scale","z"===t?"var(--baro-scale-x) var(--baro-scale-y) var(--baro-scale-z)":"var(--baro-scale-x) var(--baro-scale-y)")];N("transform-none",[["transform","none"]],{category:"transform"}),N("transform-gpu",[["transform",`translateZ(0) ${gr}`]],{category:"transform"}),N("transform-cpu",[["transform",gr]]),N("transform-3d",[["transform-style","preserve-3d"]],{category:"transform"}),N("transform-flat",[["transform-style","flat"]],{category:"transform"}),M({name:"transform",prop:"transform",supportsCustomProperty:!0,handleCustomProperty:t=>[e("transform",`var(${t})`)],description:"transform utility for custom property (transform-(--my-transform))",category:"transform"}),M({name:"transform",prop:"transform",supportsArbitrary:!0,handle:t=>[e("transform",t)],description:"transform utility for arbitrary value (transform-[...])",category:"transform"}),N("backface-hidden",[["backface-visibility","hidden"]],{category:"transform"}),N("backface-visible",[["backface-visibility","visible"]],{category:"transform"}),N("perspective-dramatic",[["perspective","var(--perspective-dramatic)"]],{category:"transform"}),N("perspective-near",[["perspective","var(--perspective-near)"]],{category:"transform"}),N("perspective-normal",[["perspective","var(--perspective-normal)"]],{category:"transform"}),N("perspective-midrange",[["perspective","var(--perspective-midrange)"]],{category:"transform"}),N("perspective-distant",[["perspective","var(--perspective-distant)"]],{category:"transform"}),N("perspective-none",[["perspective","none"]],{category:"transform"}),N("perspective-origin-center",[["perspective-origin","center"]],{category:"transform"}),N("perspective-origin-top",[["perspective-origin","top"]],{category:"transform"}),N("perspective-origin-top-right",[["perspective-origin","top right"]],{category:"transform"}),N("perspective-origin-right",[["perspective-origin","right"]],{category:"transform"}),N("perspective-origin-bottom-right",[["perspective-origin","bottom right"]],{category:"transform"}),N("perspective-origin-bottom",[["perspective-origin","bottom"]],{category:"transform"}),N("perspective-origin-bottom-left",[["perspective-origin","bottom left"]],{category:"transform"}),N("perspective-origin-left",[["perspective-origin","left"]],{category:"transform"}),N("perspective-origin-top-left",[["perspective-origin","top left"]],{category:"transform"}),M({name:"perspective-origin",prop:"perspective-origin",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>[e("perspective-origin",t)],handleCustomProperty:t=>[e("perspective-origin",`var(${t})`)],description:"perspective-origin utility (named, arbitrary, custom property supported)",category:"transform"}),M({name:"perspective",prop:"perspective",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>[e("perspective",t)],handleCustomProperty:t=>[e("perspective",`var(${t})`)],description:"perspective utility (named, arbitrary, custom property supported)",category:"transform"}),N("rotate-none",[["rotate","none"]],{category:"transform"}),M({name:"rotate-x",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(Jt(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return mr("x",`rotateX(${o}${e})`)}return mr("x",`rotateX(${t})`)},handleCustomProperty:t=>mr("x",`rotateX(var(${t}))`),description:"rotate-x utility (named, arbitrary, custom property supported)",category:"transform"}),M({name:"rotate-y",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(Jt(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return mr("y",`rotateY(${o}${e})`)}return mr("y",`rotateY(${t})`)},handleCustomProperty:t=>mr("y",`rotateY(var(${t}))`),description:"rotate-y utility (named, arbitrary, custom property supported)",category:"transform"}),M({name:"rotate-z",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(Jt(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return mr("z",`rotateZ(${o}${e})`)}return mr("z",`rotateZ(${t})`)},handleCustomProperty:t=>mr("z",`rotateZ(var(${t}))`),description:"rotate-z utility (named, arbitrary, custom property supported)",category:"transform"}),M({name:"rotate",prop:"rotate",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,r,{negative:o})=>{if(Jt(t)||o){const r=`${Math.abs(Number(t))}deg`;return o||String(t).startsWith("-")?[e("rotate",`calc(${r} * -1)`)]:[e("rotate",r)]}return[e("rotate",t)]},handleCustomProperty:t=>[e("rotate",`var(${t})`)],description:"rotate utility (named, arbitrary, custom property supported)",category:"transform"}),N("scale-none",[["scale","none"]],{category:"transform"}),N("scale-3d",[br,["scale","var(--baro-scale-x) var(--baro-scale-y) var(--baro-scale-z)"]],{category:"transform"}),M({name:"scale-x",prop:"scale",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r,arbitrary:o})=>{if(o)return vr("x",t);if(Jt(t)||r){const e=`${Math.abs(Number(t))}%`,o=r||String(t).startsWith("-")?"-":"";return vr("x",`calc(${e} * ${o}1)`)}return vr("x",t)},handleCustomProperty:t=>vr("x",`var(${t})`),description:"scale-x utility (named, arbitrary, custom property supported)",category:"transform"}),M({name:"scale-y",prop:"scale",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r,arbitrary:o})=>{if(o)return vr("y",t);if(Jt(t)||r){const e=`${Math.abs(Number(t))}%`,o=r||String(t).startsWith("-")?"-":"";return vr("y",`calc(${e} * ${o}1)`)}return vr("y",t)},handleCustomProperty:t=>vr("y",`var(${t})`),description:"scale-y utility (named, arbitrary, custom property supported)",category:"transform"}),M({name:"scale-z",prop:"scale",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r,arbitrary:o})=>{if(o)return vr("z",t);if(Jt(t)||r){const e=`${Math.abs(Number(t))}%`,o=r||String(t).startsWith("-")?"-":"";return vr("z",`calc(${e} * ${o}1)`)}return vr("z",t)},handleCustomProperty:t=>vr("z",`var(${t})`),description:"scale-z utility (named, arbitrary, custom property supported)",category:"transform"}),M({name:"scale",prop:"scale",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,r,{negative:o,arbitrary:a})=>{if(a)return[e("scale",`${t}`)];if(Jt(t)||o){const r=`${Math.abs(Number(t))}%`;return o||String(t).startsWith("-")?[e("scale",`calc(${r} * -1) calc(${r} * -1)`)]:[e("scale",`${r} ${r}`)]}return[e("scale",t)]},handleCustomProperty:t=>[e("scale",`var(${t}) var(${t})`)],description:"scale utility (named, arbitrary, custom property supported)",category:"transform"}),M({name:"skew-x",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(Jt(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return fr("x",`skewX(${o}${e})`)}return fr("x",`skewX(${t})`)},handleCustomProperty:t=>fr("x",`skewX(var(${t}))`),description:"skew-x utility (named, arbitrary, custom property supported)",category:"transform"}),M({name:"skew-y",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(Jt(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return fr("y",`skewY(${o}${e})`)}return fr("y",`skewY(${t})`)},handleCustomProperty:t=>fr("y",`skewY(var(${t}))`),description:"skew-y utility (named, arbitrary, custom property supported)",category:"transform"}),M({name:"skew",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,r,{negative:o})=>{if(Jt(t)||o){const r=`${Math.abs(Number(t))}deg`,a=o||String(t).startsWith("-")?"-":"";return[e("--baro-skew-x",`skewX(${a}${r})`),e("--baro-skew-y",`skewY(${a}${r})`),e("transform",gr)]}return[e("--baro-skew-x",`skewX(${t})`),e("--baro-skew-y",`skewY(${t})`),e("transform",gr)]},handleCustomProperty:t=>[e("--baro-skew-x",`skewX(var(${t}))`),e("--baro-skew-y",`skewY(var(${t}))`),e("transform",gr)],description:"skew utility (named, arbitrary, custom property supported)",category:"transform"}),N("origin-center",[["transform-origin","center"]],{category:"transform"}),N("origin-top",[["transform-origin","top"]],{category:"transform"}),N("origin-top-right",[["transform-origin","top right"]],{category:"transform"}),N("origin-right",[["transform-origin","right"]],{category:"transform"}),N("origin-bottom-right",[["transform-origin","bottom right"]],{category:"transform"}),N("origin-bottom",[["transform-origin","bottom"]],{category:"transform"}),N("origin-bottom-left",[["transform-origin","bottom left"]],{category:"transform"}),N("origin-left",[["transform-origin","left"]],{category:"transform"}),N("origin-top-left",[["transform-origin","top left"]],{category:"transform"}),M({name:"origin",prop:"transform-origin",supportsCustomProperty:!0,supportsArbitrary:!0,description:"transform-origin utility for custom property (origin-(--my-transform-origin))",category:"transform"});var xr=()=>r([n("--baro-translate-x","0"),n("--baro-translate-y","0"),n("--baro-translate-z","0")]),kr=(t,r)=>[xr(),e(`--baro-translate-${t}`,r),e("translate","z"===t?"var(--baro-translate-x) var(--baro-translate-y) var(--baro-translate-z)":"var(--baro-translate-x) var(--baro-translate-y)")],wr=(t,e)=>[xr,[`--baro-translate-${t}`,e],["translate","z"===t?"var(--baro-translate-x) var(--baro-translate-y) var(--baro-translate-z)":"var(--baro-translate-x) var(--baro-translate-y)"]];N("translate-none",[["translate","none"]],{category:"transform"}),N("translate-px",[["translate","1px 1px"]],{category:"transform"}),N("-translate-px",[["translate","-1px -1px"]],{category:"transform"}),N("translate-full",[xr,["--baro-translate-x","100%"],["--baro-translate-y","100%"],["translate","var(--baro-translate-x) var(--baro-translate-y)"]],{category:"transform"}),N("-translate-full",[xr,["--baro-translate-x","-100%"],["--baro-translate-y","-100%"],["translate","var(--baro-translate-x) var(--baro-translate-y)"]],{category:"transform"}),N("translate-x-px",wr("x","1px"),{category:"transform"}),N("-translate-x-px",wr("x","-1px"),{category:"transform"}),N("translate-x-full",wr("x","100%"),{category:"transform"}),N("-translate-x-full",wr("x","-100%"),{category:"transform"}),N("translate-y-px",wr("y","1px"),{category:"transform"}),N("-translate-y-px",wr("y","-1px"),{category:"transform"}),N("translate-y-full",wr("y","100%"),{category:"transform"}),N("-translate-y-full",wr("y","-100%"),{category:"transform"}),N("translate-z-px",wr("z","1px"),{category:"transform"}),N("-translate-z-px",wr("z","-1px"),{category:"transform"}),M({name:"translate-x",prop:"translate",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,{negative:r})=>{if(t.includes("/")&&te(t)){return kr("x",`calc(${t} * 100%)`)}if(Jt(t)||r){return kr("x",`calc(var(--spacing) * ${t})`)}return kr("x",t)},handleCustomProperty:t=>kr("x",`var(${t})`),description:"translate-x utility (spacing, fraction, arbitrary, custom property, negative)",category:"transform"}),M({name:"translate-y",prop:"translate",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,{negative:r})=>{if(t.includes("/")&&te(t)){return kr("y",`calc(${t} * 100%)`)}if(Jt(t)||r){return kr("y",`calc(var(--spacing) * ${t})`)}return kr("y",t)},handleCustomProperty:t=>kr("y",`var(${t})`),description:"translate-y utility (spacing, fraction, arbitrary, custom property, negative)",category:"transform"}),M({name:"translate-z",prop:"translate",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,{negative:r})=>{if(t.includes("/")&&te(t)){return kr("z",`calc(${t} * 100%)`)}if(Jt(t)||r){return kr("z",`calc(var(--spacing) * ${t})`)}return kr("z",t)},handleCustomProperty:t=>kr("z",`var(${t})`),description:"translate-z utility (spacing, fraction, arbitrary, custom property, negative)",category:"transform"}),M({name:"translate",prop:"translate",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,{negative:o})=>{if(t.includes("/")&&te(t)){const r=`calc(${t} * 100%)`;return[e("translate",`${r} ${r}`)]}if(Jt(t)||o){const r=`calc(var(--spacing) * ${t})`;return[e("translate",`${r} ${r}`)]}return[e("translate",`${t} ${t}`)]},handleCustomProperty:t=>[e("translate",`var(${t}) var(${t})`)],description:"translate utility (spacing, fraction, arbitrary, custom property, negative)",category:"transform"});var $r=/^(length|number|percentage):(.+)$/,Cr=/^(\d*\.)?\d+(px|em|rem|vh|vw|vmin|vmax|%|in|cm|mm|pt|pc|ex|ch|q|lh|rlh|svh|lvh|dvh|cqw|cqh)$/i;N("fill-inherit",[["fill","inherit"]],{category:"svg"}),N("fill-current",[["fill","currentColor"]],{category:"svg"}),N("fill-transparent",[["fill","transparent"]],{category:"svg"}),N("fill-black",[["fill","#000"]],{category:"svg"}),N("fill-white",[["fill","#fff"]],{category:"svg"}),M({name:"fill",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o,a)=>a?.realThemeValue?[e("fill",`var(--color-${a.realThemeValue})`)]:[e("fill",t)],description:"fill utility (static, theme, arbitrary, custom property supported)",category:"svg"}),N("stroke-inherit",[["stroke","inherit"]],{category:"svg"}),N("stroke-current",[["stroke","currentColor"]],{category:"svg"}),N("stroke-transparent",[["stroke","transparent"]],{category:"svg"}),N("stroke-black",[["stroke","#000"]],{category:"svg"}),N("stroke-white",[["stroke","#fff"]],{category:"svg"}),M({name:"stroke",themeKeys:["colors","strokeWidth"],supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o,a)=>{if(Jt(t)||"strokeWidth"===a?.themeNamespace)return[e("stroke-width",t)];if(o.arbitrary){const r=$r.exec(t);if(r)return[e("stroke-width",r[2])];if(!re(t)&&(Cr.test(t)||/^calc\(/.test(t)))return[e("stroke-width",t)]}return a?.realThemeValue?[e("stroke",`var(--color-${a.realThemeValue})`)]:[e("stroke",t)]},handleCustomProperty:t=>{const r=$r.exec(t);return r?[e("stroke-width",`var(${r[2]})`)]:[e("stroke",`var(${t})`)]},description:"stroke utility (static, theme, arbitrary, custom property supported)",category:"svg"}),N("forced-color-adjust-auto",[["forced-color-adjust","auto"]],{category:"accessibility"}),N("forced-color-adjust-none",[["forced-color-adjust","none"]],{category:"accessibility"}),P("hover",["&:hover"],{order:50,source:"pseudo",wrap:()=>[o("media","(hover: hover)",[])]}),P("focus",["&:focus"],{order:50,source:"pseudo"}),P("active",["&:active"],{order:50,source:"pseudo"}),P("visited",["&:visited"],{order:50,source:"pseudo"}),P("focus-visible",["&:focus-visible"],{order:50,source:"pseudo"}),P("focus-within",["&:focus-within"],{order:50,source:"pseudo"}),P("disabled",["&:disabled"],{source:"pseudo"}),P("checked",["&:checked"],{source:"pseudo"}),P("required",["&:required"],{source:"pseudo"}),P("invalid",["&:invalid"],{source:"pseudo"}),P("enabled",["&:enabled"],{source:"pseudo"}),P("indeterminate",["&:indeterminate"],{source:"pseudo"}),P("default",["&:default"],{source:"pseudo"}),P("optional",["&:optional"],{source:"pseudo"}),P("valid",["&:valid"],{source:"pseudo"}),P("user-valid",["&:user-valid"],{source:"pseudo"}),P("user-invalid",["&:user-invalid"],{source:"pseudo"}),P("in-range",["&:in-range"],{source:"pseudo"}),P("out-of-range",["&:out-of-range"],{source:"pseudo"}),P("placeholder-shown",["&:placeholder-shown"],{source:"pseudo"}),P("autofill",["&:autofill"],{source:"pseudo"}),P("read-only",["&:read-only"],{source:"pseudo"}),P("first",["&:first-child"],{source:"pseudo"}),P("last",["&:last-child"],{source:"pseudo"}),P("only",["&:only-child"],{source:"pseudo"}),P("odd",["&:nth-child(odd)"],{source:"pseudo"}),P("even",["&:nth-child(even)"],{source:"pseudo"}),P("first-of-type",["&:first-of-type"],{source:"pseudo"}),P("last-of-type",["&:last-of-type"],{source:"pseudo"}),P("only-of-type",["&:only-of-type"],{source:"pseudo"}),P("empty",["&:empty"],{source:"pseudo"}),P("prefers-contrast-more",["&"],{order:5,wrap:()=>[o("media","(prefers-contrast: more)",[],"media")],source:"media"}),P("prefers-contrast-less",["&"],{order:5,wrap:()=>[o("media","(prefers-contrast: less)",[],"media")],source:"media"}),P("contrast-more",["&"],{order:5,wrap:()=>[o("media","(prefers-contrast: more)",[],"media")],source:"media"}),P("contrast-less",["&"],{order:5,wrap:()=>[o("media","(prefers-contrast: less)",[],"media")],source:"media"}),P("noscript",["&"],{order:5,wrap:()=>[o("media","(scripting: none)",[],"media")],source:"media"}),P("forced-colors",["&"],{order:5,wrap:()=>[o("media","(forced-colors: active)",[],"media")],source:"media"}),P("pointer-coarse",["&"],{order:5,wrap:()=>[o("media","(pointer: coarse)",[],"media")],source:"media"}),P("pointer-fine",["&"],{order:5,wrap:()=>[o("media","(pointer: fine)",[],"media")],source:"media"}),P("any-pointer-coarse",["&"],{order:5,wrap:()=>[o("media","(any-pointer: coarse)",[],"media")],source:"media"}),P("any-pointer-fine",["&"],{order:5,wrap:()=>[o("media","(any-pointer: fine)",[],"media")],source:"media"}),P("motion-safe",["&"],{order:5,wrap:()=>[o("media","(prefers-reduced-motion: no-preference)",[],"media")],source:"media"}),P("motion-reduce",["&"],{order:5,wrap:()=>[o("media","(prefers-reduced-motion: reduce)",[],"media")],source:"media"}),P("print",["&"],{order:5,wrap:()=>[o("media","print",[],"media")],source:"media"}),P("portrait",["&"],{order:5,wrap:()=>[o("media","(orientation: portrait)",[],"media")],source:"media"}),P("landscape",["&"],{order:5,wrap:()=>[o("media","(orientation: landscape)",[],"media")],source:"media"}),P("rtl",["&[dir=rtl]"],{order:20,source:"attribute"}),P("ltr",["&[dir=ltr]"],{order:20,source:"attribute"}),P("inert",["&[inert]"],{order:40,source:"attribute"}),P("open",["&:is([open], :popover-open, :open)"],{order:40,source:"attribute"});var Pr=t=>[r([n("--baro-content",'""')]),...t,...t.some(t=>"decl"===t.type&&"content"===t.prop)?[]:[e("content","var(--baro-content)")]];function zr(t,e,r,o=!1){const a=`${o?"not ":""}(${"min"===t?"width >=":"width <"} ${e})`;return r?`${r} ${a}`:a}function Sr(t){return{sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)",xl:"(min-width: 1280px)","2xl":"(min-width: 1536px)"}[t]||`(min-width: ${t})`}function Ar(t){return t.replace(/\\_|_/g,t=>"_"===t?" ":"_")}function jr(t){const e=/^(data|aria)-\[([a-zA-Z0-9_-]+)(?:=([^\]]+))?\]$/.exec(t);if(e){const[,t,r,o]=e;return void 0===o?`[${t}-${r}]`:`[${t}-${r}=${/^(["']).*\1$/.test(o)?o:`"${Ar(o)}"`}]`}const r=/^data-([a-zA-Z0-9_-]+)$/.exec(t);if(r)return`[data-${r[1]}]`;const o=/^aria-([a-zA-Z0-9_-]+)$/.exec(t);return o?`[aria-${o[1]}="true"]`:void 0}function Rr(t){const e=Ar(t);return/^[>+~]/.test(e.trim())||!Er(e)?e:`*:is(${e})`}function Er(t){let e=0;for(let r=0;r<t.length;r++){const o=t[r];if("\\"===o)r++;else if("("===o||"["===o)e++;else if(")"===o||"]"===o)e--;else if(","===o&&0===e)return!0}return!1}function Tr(t,e){const r=A(e).find(r=>r.name===t&&r.match(t,e));if(!r?.modifySelector)return null;const o=r.modifySelector({selector:"&",fullClassName:"",mod:{type:t},context:e}),a=Array.isArray(o)?o:o&&"object"==typeof o?[o]:"string"==typeof o?[{selector:o}]:[];if(1!==a.length)return null;const n=/^&(:(?!:)[a-zA-Z-]+(?:\(.*\))?)$/.exec(a[0].selector);return n?n[1]:null}function Nr(t,e){const r=jr(t);if(r)return r;const o=Tr(t,e);if(o||!t.startsWith("has-"))return o;const a=A(e).find(r=>r.match(t,e));if(!a?.modifySelector||a.wrap||a.astHandler)return null;const n=a.modifySelector({selector:"&",fullClassName:"",mod:{type:t},context:e}),s=Array.isArray(n)?n:n&&"object"==typeof n?[n]:"string"==typeof n?[{selector:n}]:[];if(1!==s.length)return null;const i=/^&(:has\(.+\))$/.exec(s[0].selector);return i&&!i[1].includes("&")?i[1]:null}function Wr(t,e){if(t.startsWith("not-"))return null;const r=A(e).find(r=>r.match(t,e));if(!r?.wrap||r.astHandler)return null;if(r.modifySelector){const o=r.modifySelector({selector:"&",fullClassName:"",mod:{type:t},context:e});if("&"!==("string"==typeof o?o:Array.isArray(o)?1===o.length?o[0].selector:null:o?.selector))return null}const o=r.wrap({type:t},e);if(1!==o.length)return null;const a=o[0];if("at-rule"!==a.type||"media"!==a.name&&"supports"!==a.name||a.nodes?.length)return null;const n=(a.params??"").trim();return!n||/^not\b|,|\s(and|or)\s/i.test(n)?null:{...a,params:`not ${n}`,nodes:[]}}function Vr(t){const e=/^@(media|supports|container)(?:\s+|(?=\()|$)([\s\S]*)$/.exec(Ar(t).trim());if(!e)return null;const r=e[1];let a=(e[2]??"").trim(),n="";if("container"===r){const t=/^(?!not\b)([a-zA-Z_-][a-zA-Z0-9_-]*)\s+([\s\S]*)$/.exec(a);t&&(n=`${t[1]} `,a=t[2].trim())}if(!a||Er(a))return null;const s=/^not\s+/i.test(a)?a.replace(/^not\s+/i,""):`not ${a}`;return s?o(r,`${n}${s}`,[],r):null}P("before",["&::before"],{source:"pseudo",astHandler:Pr}),P("after",["&::after"],{source:"pseudo",astHandler:Pr}),P("placeholder",["&::placeholder"],{source:"pseudo"}),P("selection",["& *::selection","&::selection"],{source:"pseudo"}),P("file",["&::file-selector-button"],{source:"pseudo"}),P("marker",["& *::marker","&::marker","& *::-webkit-details-marker","&::-webkit-details-marker"],{source:"pseudo"}),P("details-content",["&::details-content"],{source:"pseudo"}),P("first-line",["&::first-line"],{source:"pseudo"}),P("first-letter",["&::first-letter"],{source:"pseudo"}),P("backdrop",["&::backdrop"],{source:"pseudo"}),P("starting",["&"],{wrap:()=>[o("starting-style","",[],"starting")],source:"starting"}),z((t,e)=>{const r=e.theme("breakpoints")||e.config("theme.breakpoints")||{},o=Object.keys(r);if(o.includes(t))return!0;if(t.startsWith("max-")){const e=t.replace("max-","");if(o.includes(e))return!0;if(/^\[.*\]$/.test(e))return!0}return!!/^min-\[.*\]$/.test(t)||!!/^max-\[.*\]$/.test(t)},void 0,(t,e)=>{const r=t.type,a=e.theme("breakpoints")||e.config("theme.breakpoints")||{};if(Object.keys(a).includes(r)){let t=e.theme(`breakpoints.${r}`)||Sr(r);return/^\d*\.?\d+(px|em|rem)?$/.test(t)&&(t=`(min-width: ${t})`),[o("media",t,[],"responsive")]}if(r.startsWith("max-")){const t=r.replace("max-","");if(Object.keys(a).includes(t)){let r=e.theme(`breakpoints.${t}`)||Sr(t);if(r.includes("min-width:")){const t=r.match(/min-width:\s*([^)]+)/)?.[1];t&&(r=`(width < ${t})`)}else if(r.includes("width >=")){const t=r.match(/width >=\s*([^)]+)/)?.[1];t&&(r=`(width < ${t})`)}else/^\d*\.?\d+(px|em|rem)?$/.test(r)&&(r=`(width < ${r})`);return[o("media",r,[],"responsive")]}if(/^\[(.*)\]$/.test(t)){const e=t.match(/^\[(.*)\]$/)?.[1];if(e)return[o("media",`(width < ${e})`,[],"responsive")]}}if(/^min-\[(.*)\]$/.test(r)){const t=r.match(/^min-\[(.*)\]$/)?.[1];if(t)return[o("media",`(width >= ${t})`,[],"responsive")]}if(/^max-\[(.*)\]$/.test(r)){const t=r.match(/^max-\[(.*)\]$/)?.[1];if(t)return[o("media",`(width < ${t})`,[],"responsive")]}return[]});z(t=>"dark"===t,void 0,(t,e)=>{const r=(t=>{const e=t.config("darkMode")||"media",r=t.config("darkModeSelector"),o=[];if("media"===e){if(o.push({type:"media",value:"(prefers-color-scheme: dark)"}),r){const t=Array.isArray(r)?r.join(", "):r;o.push({type:"selector",value:t})}return o}if("class"===e){if(r){const t=Array.isArray(r)?r.join(", "):r;return o.push({type:"selector",value:t}),o}return o.push({type:"selector",value:".dark"}),o}return o.push({type:"selector",value:".dark"}),o})(e),n=[];return r.forEach(t=>{if("media"===t.type){const e=o("media",t.value,[],"dark");n.push(e)}else{const e=a(t.value,[],"dark");n.push(e)}}),n});var Br=/^(not-)?@(?:(min|max)-)?(\[[^\]]+\]|[a-zA-Z0-9.]+)(?:\/([a-zA-Z0-9_-]+))?$/;z(t=>Br.test(t)&&!/^(?:not-)?@container(?:\/|$)/.test(t),void 0,(t,e)=>{const r=Br.exec(t.type);if(!r)return[];const[,o,a,n,s]=r,i=n.startsWith("[")?n.slice(1,-1).replace(/_/g," "):e.theme("container."+n);return i?[(l=zr("max"===a?"max":"min",i,s,!!o),c=[],{type:"at-rule",name:"container",params:l,nodes:Array.isArray(c)?c:[c],source:"container"})]:[];var l,c});var Mr=t=>/^[\s_]*@/.test(t);function Or(t,e){const r=jr(t);if(r)return{compound:r};if(/^(has|in|not|group|peer)-|[^a-z0-9-]/.test(t))return;const o=A(e).find(r=>r.match(t,e));if(!o?.modifySelector||o.astHandler)return;const a=o.modifySelector({selector:"&",fullClassName:"",mod:{type:t},context:e});if(null==a)return;const n="string"==typeof a?[{selector:a}]:Array.isArray(a)?a:[a];if(1!==n.length)return;const s=n[0].selector;return!/^&[:[]/.test(s)||s.slice(1).includes("&")||/[\s,>+~]/.test(s.replace(/\([^()]*\)/g,""))?void 0:{compound:s.slice(1),inner:o}}function Fr(t,e){const r=/^(has|in)-(.+)$/.exec(t);if(!r)return;const[,o,a]=r;if("in"===o&&/^\[.+\]$/.test(a)){if(Mr(a.slice(1)))return;const t=Ar(a.slice(1,-1));return{kind:o,compound:t.startsWith("&")?t.slice(1):`:is(${t})`}}if("has"===o&&(a.startsWith("[")||/^(data|aria)-/.test(a)))return;const n=Or(a,e);return n&&{kind:o,...n}}z(t=>/^has-\[.*\]$/.test(t)&&!Mr(t.slice(5)),({selector:t,mod:e})=>{const r=/^has-\[(.+)\]$/.exec(e.type);return r?{selector:`&:has(${Rr(r[1])})`,flatten:!1,wrappingType:"rule",source:"attribute"}:{selector:t,source:"attribute"}},void 0),z(t=>/^has-(data|aria)-/.test(t)&&!!jr(t.slice(4)),({mod:t})=>({selector:`&:has(*${jr(t.type.slice(4))})`,flatten:!1,wrappingType:"rule",source:"attribute"}),void 0);var Kr=({selector:t,mod:e,context:r})=>{const o=Fr(e.type,r);return o?{selector:"has"===o.kind?`&:has(*${o.compound})`:`:where(*${o.compound}) &`,flatten:!1,wrappingType:"rule",source:"attribute"}:{selector:t}};function Dr(t,e){const r=/^(group|peer)-has-(.+?)(?:\/([a-zA-Z0-9_-]+))?$/.exec(t);if(!r)return;const o=r[1],a=r[2],n=r[3]?`.${o}\\/${r[3]}`:`.${o}`;if(/^\[.+\]$/.test(a)){if(Mr(a.slice(1)))return;const t=Ar(a.slice(1,-1));return{kind:o,base:n,v:a,arg:/^[>+~]/.test(t.trim())?t:`*:is(${t})`}}const s=Or(a,e);return s&&{kind:o,base:n,v:a,arg:`*${s.compound}`,inner:s.inner}}z((t,e)=>!!Fr(t,e)?.inner?.wrap,Kr,(t,e)=>Fr(t.type,e).inner.wrap({...t,type:t.type.replace(/^(has|in)-/,"")},e)),z((t,e)=>{const r=Fr(t,e);return!!r&&!r.inner?.wrap},Kr);var Lr=({selector:t,mod:e,context:r})=>{const o=Dr(e.type,r);if(!o)return{selector:t};const a="group"===o.kind?" *":" ~ *";return{selector:`&:is(:where(${o.base}):has(${o.arg})${a})`,wrappingType:"rule",source:o.kind}};function Zr(t){if(/^[\w-]*\s*\(/.test(t))return t;let e=t.includes(":")?t:`${t}: var(--tw)`;return"("===e[0]&&")"===e[e.length-1]||(e=`(${e})`),e}z((t,e)=>!!Dr(t,e)?.inner?.wrap,Lr,(t,e)=>{const r=Dr(t.type,e);return r.inner.wrap({...t,type:r.v},e)}),z((t,e)=>{const r=Dr(t,e);return!!r&&!r.inner?.wrap},Lr),z((t,e)=>/^not-(?!@)/.test(t)&&!!Wr(t.slice(4),e),()=>"&",(t,e)=>{const r=Wr(t.type.slice(4),e);return r?[r]:[]}),z(t=>/^not-\[@.*\]$/.test(t)&&!!Vr(t.slice(5,-1)),()=>"&",t=>{const e=Vr(t.type.slice(5,-1));return e?[e]:[]}),z(t=>/^not-\[(?!@).*\]$/.test(t),({selector:t,mod:e})=>{const r=/^not-\[(.+)\]$/.exec(e.type);return r?/^[a-zA-Z0-9_-]+(=.+)?$/.test(r[1])?{selector:`&:not([${r[1]}])`,flatten:!1,wrappingType:"rule",source:"attribute"}:{selector:`&:not(${Rr(r[1])})`,flatten:!1,wrappingType:"rule",source:"attribute"}:{selector:t,source:"attribute"}}),z(t=>/^not-/.test(t)&&!t.startsWith("not-@")&&!t.startsWith("not-[@"),({selector:t,mod:e,context:r})=>{const o=/^not-(.+)$/.exec(e.type),a=o?Nr(o[1],r):null;return o&&!a?null:{selector:a?`&:not(${a})`:t,flatten:!1,wrappingType:"rule",source:"attribute"}}),z(t=>"*"===t,()=>({selector:":is(& > *)",wrappingType:"rule",source:"universal"}),void 0),z(t=>"**"===t,()=>({selector:":is(& *)",wrappingType:"rule",source:"universal"}),void 0),z(t=>/^\[.*\]$/.test(t),({selector:t,mod:e})=>{const r=/^\[(.+)\]$/.exec(e.type);if(!r)return{selector:t};const o=Ar(r[1]).trim();return/^[a-zA-Z0-9_-]+(=.+)?$/.test(o)?{selector:`&[${o}]`,wrappingType:"rule",source:"attribute"}:o.startsWith("&")?{selector:`${o}`,wrappingType:"rule",source:"pseudo"}:{selector:`&:is(${o})`,wrappingType:"rule",source:"base"}},void 0),z(t=>/^aria-/.test(t),({selector:t,mod:e})=>{const r=/^aria-\[([a-zA-Z0-9_-]+)(?:=([^\]]+))?\]$/.exec(e.type);if(r)return{selector:`&[aria-${r[1]}="${r[2]??"true"}"]`,source:"aria"};const o=/^aria-([a-zA-Z0-9_]+)$/.exec(e.type);return o?{selector:`&[aria-${o[1]}="true"]`,source:"aria"}:{selector:t,source:"aria"}},void 0),z(t=>t.startsWith("not-")&&!t.startsWith("not-@")&&!t.startsWith("not-[@"),({selector:t,mod:e,context:r})=>{const o=e.type.replace("not-","");if(o.startsWith("[")){const t=o.slice(1,-1);return/^[a-zA-Z0-9_-]+(=.+)?$/.test(t)?{selector:`&:not([${t}])`,source:"attribute"}:{selector:`&:not(${Rr(t)})`,source:"attribute"}}{const t=Nr(o,r);return t?{selector:`&:not(${t})`,source:"attribute"}:null}},void 0),z(t=>/^data-/.test(t),({selector:t,mod:e})=>{const r=/^data-\[([a-zA-Z0-9_-]+)(?:=([^\]]+))?\]$/.exec(e.type);if(r)return{selector:`&[data-${r[1]}="${r[2]??"true"}"]`,source:"data"};const o=/^data-([a-zA-Z0-9_]+)$/.exec(e.type);return o?{selector:`&[data-${o[1]}]`,source:"data"}:{selector:t,source:"attribute"}},void 0),z(t=>/^nth-(\d+)$/.test(t),({selector:t,mod:e})=>{const r=e.type.match(/^nth-(\d+)$/)?.[1];return r?{selector:`&:nth-child(${r})`,source:"attribute"}:{selector:t,source:"attribute"}},void 0),z(t=>/^nth-last-(\d+)$/.test(t),({selector:t,mod:e})=>{const r=e.type.match(/^nth-last-(\d+)$/)?.[1];return r?{selector:`&:nth-last-child(${r})`,source:"attribute"}:{selector:t,source:"attribute"}},void 0),z(t=>/^nth-of-type-(\d+)$/.test(t),({selector:t,mod:e})=>{const r=e.type.match(/^nth-of-type-(\d+)$/)?.[1];return r?{selector:`&:nth-of-type(${r})`,source:"attribute"}:{selector:t,source:"attribute"}},void 0),z(t=>/^nth-last-of-type-(\d+)$/.test(t),({selector:t,mod:e})=>{const r=e.type.match(/^nth-last-of-type-(\d+)$/)?.[1];return r?{selector:`&:nth-last-of-type(${r})`,source:"attribute"}:{selector:t,source:"attribute"}},void 0),z(t=>/^is-\[.*\]$/.test(t),({selector:t,mod:e})=>{const r=/^is-\[(.+)\]$/.exec(e.type);return r?{selector:`&:is(${r[1]})`,source:"attribute"}:{selector:t,source:"attribute"}},void 0),z(t=>/^where-\[.*\]$/.test(t),({selector:t,mod:e})=>{const r=/^where-\[(.+)\]$/.exec(e.type);return r?{selector:`&:where(${r[1]})`,source:"attribute"}:{selector:t,source:"attribute"}},void 0),z(t=>/^supports-(?:\[.+\]|[a-zA-Z-][a-zA-Z0-9-]*)$/.test(t),void 0,t=>{const e=/^supports-(?:\[(.+)\]|([a-zA-Z-][a-zA-Z0-9-]*))$/.exec(t.type);return e?[o("supports",Zr(void 0!==e[1]?Ar(e[1]):e[2]),[],"supports")]:[]}),z(t=>/^layer-\[.*\]$/.test(t),void 0,t=>{const e=/^layer-\[(.+)\]$/.exec(t.type);return e?[o("layer",e[1],[])]:[]}),z(t=>/^scope-\[.*\]$/.test(t),void 0,t=>{const e=/^scope-\[(.+)\]$/.exec(t.type);return e?[o("scope",e[1],[])]:[]});var Ir=t=>/^(group|peer)-has-\[/.test(t)&&Mr(t.slice(t.indexOf("[")+1));function _r(t,e){const r=/^(.+)\/([a-zA-Z0-9_-]+)$/.exec(e);return r?[r[1],`.${t}\\/${r[2]}`]:[e,`.${t}`]}function qr(t,e){const r=t.slice(4);if(r.startsWith("[@"))return null;if(r.startsWith("[")&&r.endsWith("]"))return`:not(*:is(${Ar(r.slice(1,-1))}))`;const o=Nr(r,e);return o?`:not(${o})`:null}z(t=>/^(group|peer)-hover(\/[a-zA-Z0-9_-]+)?$/.test(t),({mod:t})=>{const e=t.type.startsWith("group")?"group":"peer",[,r]=_r(e,t.type.slice(e.length+1));return{selector:`&:is(:where(${r}):hover${"group"===e?" *":" ~ *"})`,wrappingType:"rule",source:e}},()=>[o("media","(hover: hover)",[])]),z(t=>/^group-(.+)$/.test(t)&&!Ir(t),({selector:t,mod:e,context:r})=>{const o=/^group-(.+)$/.exec(e.type),[a,n]=_r("group",o?.[1]??""),s=o?[o[0],a]:null,i=`:where(${n})`,l=s?jr(s[1]):void 0;if(l)return{selector:`&:is(${i}${l} *)`,wrappingType:"rule",source:"group"};if(s?.[1].startsWith("[")&&s?.[1].endsWith("]"))return{selector:`&:is(${i}:is(${s?.[1].slice(1,-1).replace(/_/g,"")}) *)`,wrappingType:"rule",source:"group"};if(s?.[1]?.startsWith("not-")){const t=qr(s[1],r);return t?{selector:`&:is(${i}${t} *)`,wrappingType:"rule",source:"group"}:null}if(s?.[1]?.startsWith("has-")){const t=/^has-\[([a-zA-Z0-9_-]+)\]$/.exec(s?.[1]);return t?{selector:`&:is(${i}:has(:is(${t[1]})) *)`,source:"group"}:{selector:`&:is(${i}:has(${Rr(s[1].slice(5,-1))}) *)`,source:"group"}}if(s?.[1]?.startsWith("aria-")){const t=/^aria-\[([a-zA-Z0-9_-]+)(?:=([^\]]+))?\]$/.exec(s?.[1]);if(t){const e=t[1];return t[2]?{selector:`&:is(${i}[aria-${e}="${t[2]}"] *)`,source:"group"}:{selector:`&:is(${i}[aria-${e}] *)`,source:"group"}}}const c=s?Tr(s[1],r):null;return s&&!c?null:s?{selector:`&:is(${i}${c} *)`,wrappingType:"rule",source:"group"}:{selector:t,source:"group"}},void 0),z(t=>/^peer-(.+)$/.test(t)&&!Ir(t),({selector:t,mod:e,context:r})=>{const o=/^peer-(.+)$/.exec(e.type),[a,n]=_r("peer",o?.[1]??""),s=o?[o[0],a]:null,i=`:where(${n})`,l=s?jr(s[1]):void 0;if(l)return{selector:`&:is(${i}${l} ~ *)`,wrappingType:"rule",source:"peer"};if(s?.[1].startsWith("[")&&s?.[1].endsWith("]"))return{selector:`&:is(${i}:is(${s?.[1].slice(1,-1).replace(/_/g,"")})~*)`,wrappingType:"rule",source:"peer"};const c=s?.[1];if(c?.startsWith("has-[")&&c.endsWith("]"))return{selector:`&:is(${i}:has(${Rr(c.slice(5,-1))}) ~ *)`,source:"peer"};if(c?.startsWith("has-")){const t=Tr(c.slice(4),r);return t?{selector:`&:is(${i}:has(${t})~*)`,source:"peer"}:null}if(c?.startsWith("not-")){const t=qr(c,r);return t?{selector:`&:is(${i}${t} ~ *)`,source:"peer"}:null}if(c?.startsWith("aria-")){let t=/^aria-([a-zA-Z0-9_]+)$/.exec(c);if(t)return{selector:`&:is(${i}[aria-${t[1]}]~*)`,source:"peer"};if(t=/^aria-\[([a-zA-Z0-9_-]+)(?:=([^\]]+))?\]$/.exec(c),t){const e=t[1],r=t[2];return t[2]?{selector:`&:is(${i}[aria-${e}="${r}"]~*)`,source:"peer"}:{selector:`&:is(${i}[aria-${e}]~*)`,source:"peer"}}}const p=s?Tr(c,r):null;return s&&!p?null:s?{selector:`&:is(${i}${p}~*)`,source:"peer"}:{selector:t,source:"peer"}},void 0),z(t=>/^parent-(.+)$/.test(t),({selector:t,mod:e})=>{const r=/^parent-(.+)$/.exec(e.type);return r?.[1].startsWith("[")&&r?.[1].endsWith("]")?{selector:`.parent\\:\\[${r[1].slice(1,-1)}\\] &`,wrappingType:"rule",source:"parent"}:r?{selector:`.parent:${r[1]} &`,source:"parent"}:{selector:t,source:"parent"}},void 0),z(t=>/^child-(.+)$/.test(t),({selector:t,mod:e})=>{const r=/^child-(.+)$/.exec(e.type);return r?.[1].startsWith("[")&&r?.[1].endsWith("]")?{selector:`& > .child\\:\\[${r[1].slice(1,-1)}\\]`,wrappingType:"rule",source:"child"}:r?{selector:`& > .child:${r[1]}`,source:"child"}:{selector:t,source:"child"}},void 0);var Ur=/^\s*@(media|container)\s+([^{]*)\{/,Hr=/prefers-color-scheme|\bprint\b|forced-colors|orientation/,Yr=/(?:min-width\s*:\s*|width\s*>=?\s*)([\d.]+)(px|rem|em)?/,Gr=/(?:max-width\s*:\s*|width\s*<=?\s*)([\d.]+)(px|rem|em)?/;function Xr(t,e){const r=parseFloat(t);return"rem"===e||"em"===e?16*r:r}function Jr(t,e){const r="container"===t;if(!r&&/^\s*not\b/i.test(e))return[0,0];const o=Yr.exec(e);if(o)return[r?4:2,Xr(o[1],o[2])];const a=Gr.exec(e);return a?[r?3:1,-Xr(a[1],a[2])]:!r&&Hr.test(e)?[5,0]:[0,0]}function Qr(t){const e=[];let r,o=t;for(;r=Ur.exec(o);){const[t,a]=Jr(r[1],r[2]);e.push(t,a),o=o.slice(r[0].length)}return e}function to(t,e){const r=Math.min(t.length,e.length);for(let o=0;o<r;o++)if(t[o]!==e[o])return t[o]-e[o];return t.length-e.length}function eo(t,e){let r=0,o=t.length;for(;r<o;){const a=r+o>>1;to(t[a],e)<=0?r=a+1:o=a}return r}var ro=class{insertSorted(t,e,r){const o=t.keys??=[],a=eo(o,r),n=t.styleElement.sheet;n&&n.cssRules.length===o.length?(n.insertRule(this.escapeCssRule(e),a),t.styles.splice(a,0,e)):(t.styles.splice(a,0,e),t.styleElement.textContent=t.styles.join("\n")+"\n"),o.splice(a,0,r)}constructor(t,e=50,r="barocss-style-partition-",o=t=>I(t).utility?.category,a=""){this.partitions=[],this.categoryPartitions=new Map,this.partitionCounter=0,this.maxRulesPerPartition=50,this.classToPartitionMap=new Map,this.classToCategoryPartitionMap=new Map,this.styleIdPrefix="barocss-style-partition-",this.nonce=a,this.insertionPoint=t,this.maxRulesPerPartition=e,this.styleIdPrefix=r,this.getCategory=o,this.initializeDefaultPartition()}createStyleElement(){const t=document.createElement("style");return this.nonce&&t.setAttribute("nonce",this.nonce),t}initializeDefaultPartition(){this.createNewPartition()}createNewCategoryPartition(t,e=!1){const r={id:this.styleIdPrefix+`-${t}`,styles:[],styleElement:this.createStyleElement()};r.styleElement.id=r.id,r.styleElement.setAttribute("data-barocss","partition"),r.styleElement.setAttribute("data-category",t);const o=this.insertionPoint.ownerDocument?.head;return e&&o?o.insertBefore(r.styleElement,o.firstChild):this.insertionPoint.appendChild(r.styleElement),this.categoryPartitions.set(t,r),r}createNewPartition(){const t=this.partitions[this.partitions.length-1],e={id:this.styleIdPrefix+"-"+this.partitionCounter++,styles:[],styleElement:this.createStyleElement()};this.partitions.push(e),e.styleElement.id=e.id,e.styleElement.setAttribute("data-barocss","partition"),e.styleElement.setAttribute("data-partition-index",this.partitionCounter.toString());const r=t?.styleElement.parentNode;return r?r.insertBefore(e.styleElement,t.styleElement.nextSibling):this.insertionPoint.appendChild(e.styleElement),e}hasRule(t){return this.classToPartitionMap.has(t)}hasCategoryRule(t,e){return this.classToCategoryPartitionMap.get(t)===e}setRuleCache(t,e){this.classToPartitionMap.set(t,e)}setCategoryRuleCache(t,e){this.classToCategoryPartitionMap.set(t,e)}get currentPartition(){return this.partitions[this.partitions.length-1]}getCategoryPartition(t){return this.categoryPartitions.get(t)}hasDetachedPartitions(){return[...this.partitions,...this.categoryPartitions.values()].some(t=>!t.styleElement.isConnected)}escapeCssRule(t){return t.replace(/\\\//g,"\\/")}addRule(t){if(this.hasRule(t))return!1;const e=Qr(t);let r=this.partitions.findIndex(t=>{const r=t.keys;return!!r&&r.length>0&&to(r[r.length-1],e)>0});-1===r&&(this.currentPartition.styles.length>=this.maxRulesPerPartition&&this.createNewPartition(),r=this.partitions.length-1);const o=this.partitions[r];try{return this.insertSorted(o,t,e),this.setRuleCache(t,r),!0}catch(a){return i()&&console.warn(`[StylePartitionManager] Failed to insert rule: ${t}`,a),!1}}addCategoryRule(t,e){if(this.hasCategoryRule(t,e))return!1;let r=this.getCategoryPartition(e);r||(r=this.createNewCategoryPartition(e));try{this.insertSorted(r,t,Qr(t))}catch(o){return i()&&console.warn(`[StylePartitionManager] Failed to insert rule in category: ${e} ${t}`,o),!1}return this.setCategoryRuleCache(t,e),!0}addRootRules(t){let e=this.getCategoryPartition("root");e||(e=this.createNewCategoryPartition("root"));try{const r=e.styleElement.sheet;for(const o of t)r?r.insertRule(this.escapeCssRule(o),r.cssRules.length):e.styleElement.textContent+=o+"\n"}catch(r){return i()&&console.warn(`[StylePartitionManager] Failed to insert rule in category: root ${t.join("\n")}`,r),{success:0,failed:t.length}}return{success:t.length,failed:0}}addRules(t){let e=0,r=0;for(const o of t){const t=this.getCategory(o.cls);if(t)for(const e of o.cssList)this.addCategoryRule(e,t);else for(const a of o.cssList)this.addRule(a)?e++:r++}return{success:e,failed:r}}removeRule(t,e){let r;if(e){if(this.classToCategoryPartitionMap.get(t)!==e)return!1;r=this.categoryPartitions.get(e)}else{const e=this.classToPartitionMap.get(t);r=void 0===e?void 0:this.partitions[e]}if(!r)return!1;const o=r.styles.indexOf(t);if(-1===o)return!1;const a=r.styleElement.sheet,n=!!a&&a.cssRules.length===r.styles.length;return r.styles.splice(o,1),r.keys?.splice(o,1),n&&a?a.deleteRule(o):r.styleElement.textContent=r.styles.length?r.styles.join("\n")+"\n":"",e?this.classToCategoryPartitionMap.delete(t):this.classToPartitionMap.delete(t),!0}get ruleCount(){return this.classToPartitionMap.size+this.classToCategoryPartitionMap.size}findRulePartition(t){const e=this.classToPartitionMap.get(t);if(void 0!==e&&this.partitions[e])return this.partitions[e];const r=this.classToCategoryPartitionMap.get(t);return void 0!==r&&this.categoryPartitions.get(r)||null}updateRuleContent(t,e,r=!1){const o=this.getCategoryPartition(t);if(o)o.styleElement.textContent=e;else{const o=this.createNewCategoryPartition(t,r);i()&&console.log(`[StylePartitionManager] Created new partition for category: ${t}`),o.styleElement.textContent=e}}cleanup(){this.partitions.forEach(t=>{t.styleElement.parentNode&&t.styleElement.parentNode.removeChild(t.styleElement)}),this.categoryPartitions.forEach(t=>{t.styleElement.parentNode&&t.styleElement.parentNode.removeChild(t.styleElement)}),this.partitions=[],this.categoryPartitions.clear(),this.partitionCounter=0,this.classToPartitionMap.clear(),this.classToCategoryPartitionMap.clear()}},oo=/[ \t\n\f\r]+/;function ao(t){return t?"object"==typeof t&&"string"==typeof t.baseVal?t.baseVal:t.toString():""}function no(t){return t?ao(t).split(oo).filter(Boolean):[]}var so=class{constructor(t,e,r=t=>I(t).utility?.category){this.observer=null,this.gc=null,this.incrementalParser=t,this.BrowserRuntime=e,this.getCategory=r}setGc(t){this.gc=t}setParser(t){this.incrementalParser=t}observe(t=document.body,e){return"undefined"==typeof window?new MutationObserver(()=>{}):(this.observer&&this.observer.disconnect(),this.gc?.setRoot(t),this.observer=new MutationObserver(e=>{const r=new Set,o=this.gc;if(e.forEach(e=>{if(o&&("attributes"===e.type?o.reconcile(e.target):"childList"===e.type&&(e.removedNodes.forEach(t=>o.reconcileTree(t)),e.addedNodes.forEach(t=>o.reconcileTree(t)))),"attributes"===e.type&&"class"===e.attributeName&&t.contains(e.target)){const t=e.target;t.className&&no(t.className).forEach(t=>{this.incrementalParser.isProcessed(t)||r.add(t)})}"childList"===e.type&&e.addedNodes.forEach(e=>{if(e.nodeType===Node.ELEMENT_NODE&&t.contains(e)){const t=e;this.processElement(t,r),t.querySelectorAll("[class]").forEach(t=>{this.processElement(t,r)})}})}),r.size>0){const t=Array.from(r),e=this.incrementalParser.processClasses(t);this.BrowserRuntime?.applyParseResults(e)}else this.BrowserRuntime?.applyParseResults([]);o?.afterBatch()}),this.observer.observe(t,{attributes:!0,subtree:!0,attributeFilter:["class"],childList:!0}),e?.scan&&this.scanExistingClasses(t,e),this.observer)}scanExistingClasses(t,e){const r=new Set,o=t.className;o&&no(o).forEach(t=>{this.incrementalParser.isProcessed(t)||r.add(t)});const a=t.querySelectorAll("[class]");for(const n of a)if(n.className){const t=no(n.className);for(const e of t)this.incrementalParser.isProcessed(e)||r.add(e)}if(r.size>0){const t=Array.from(r),o=this.incrementalParser.processClasses(t),a=o.filter(t=>"layout"===this.getCategory(t.cls)),n=o.filter(t=>"layout"!==this.getCategory(t.cls));this.BrowserRuntime?.applyParseResults(a),e?.onReady?.(),this.BrowserRuntime?.applyParseResults(n)}else e?.onReady?.()}processElement(t,e){t.className&&no(t.className).forEach(t=>{this.incrementalParser.isProcessed(t)||e.add(t)})}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null)}};function io(t){return t.replace(/\\([0-9a-fA-F]{1,6})\s?|\\(.)/g,(t,e,r)=>e?String.fromCodePoint(parseInt(e,16)):r)}var lo=/^\s*(?::(?:where|is)\(\s*)?\.((?:\\[0-9a-fA-F]{1,6}\s?|\\.|[\w-]|[^\x00-\x7F])+)/;function co(t){const e=[];let r=0,o=0;for(let a=0;a<t.length;a++){const n=t[a];"\\"===n?a++:"("===n||"["===n?r++:")"===n||"]"===n?r--:","===n&&0===r&&(e.push(t.slice(o,a)),o=a+1)}return e.push(t.slice(o)),e}function po(t,e=new Set){for(const r of Array.from(t)){if(7===r.type&&"string"==typeof r.name){e.add(r.name);continue}const t=r.cssRules;t&&t.length&&po(t,e)}return e}function uo(t,e=new Set){for(const r of Array.from(t)){const t=r.selectorText;if("string"==typeof t)for(const r of co(t)){const t=lo.exec(r);t&&e.add(io(t[1]))}const o=r.cssRules;o&&o.length&&uo(o,e)}return e}var yo=class{constructor(t,e,r,o=()=>Date.now()){this.host=t,this.graceMs=e,this.maxRules=r,this.now=o,this.counts=new Map,this.counted=new WeakMap,this.candidates=new Map,this.timer=null,this.root=null}setRoot(t){this.counts.clear(),this.counted=new WeakMap,this.candidates.clear(),this.cancel(),this.root=t,1===t.nodeType?this.reconcileTree(t):t.querySelectorAll("[class]").forEach(t=>this.reconcile(t))}count(t){return this.counts.get(t)??0}reconcileTree(t){if(1!==t.nodeType)return;const e=t;this.reconcile(e),e.querySelectorAll("[class]").forEach(t=>this.reconcile(t))}reconcile(t){const e=this.root,r=e&&e.contains(t)?Array.from(new Set(no(t.getAttribute("class")))):[],o=this.counted.get(t);if(!o&&0===r.length)return;const a=new Set(o??[]),n=new Set(r);for(const s of n){if(a.has(s))continue;const t=(this.counts.get(s)??0)+1;this.counts.set(s,t),this.candidates.delete(s)}for(const s of a){if(n.has(s))continue;const t=(this.counts.get(s)??0)-1;t>0?this.counts.set(s,t):(this.counts.delete(s),this.candidates.delete(s),this.candidates.set(s,this.now()))}r.length?this.counted.set(t,r):this.counted.delete(t)}afterBatch(){0!==this.candidates.size&&(this.host.cachedCount()>this.maxRules?this.schedule(0):this.schedule(this.graceMs))}schedule(t){if(null!==this.timer){if(t>0)return;clearTimeout(this.timer)}this.timer=setTimeout(()=>{this.timer=null,this.sweep()},t)}sweep(){const t=this.now(),e=Math.max(0,this.host.cachedCount()-this.maxRules),r=[];let o=0;for(const[a,n]of this.candidates){const s=t-n>=this.graceMs;!s&&o>=e||(this.candidates.delete(a),this.count(a)>0||this.inDom(a)||this.host.isPermanent(a)||(r.push(a),s||o++))}r.length&&this.host.reclaim(r),this.candidates.size&&this.schedule(this.graceMs)}inDom(t){const e=this.root;if(!e)return!1;if(1!==e.nodeType)return Array.from(e.querySelectorAll("[class]")).some(e=>e.classList.contains(t));const r=e.ownerDocument??document;return e.classList.contains(t)||r.documentElement.classList.contains(t)||r.getElementsByClassName(t).length>0}cancel(){null!==this.timer&&clearTimeout(this.timer),this.timer=null}stats(){return{trackedClasses:this.counts.size,candidates:this.candidates.size}}};function ho(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=Math.imul(e,16777619);return(e>>>0).toString(36)}function go(t="shadow"){try{const e="document"===t?"undefined"!=typeof Document?Document.prototype:void 0:"undefined"!=typeof ShadowRoot?ShadowRoot.prototype:void 0;return!!e&&"adoptedStyleSheets"in e&&"function"==typeof CSSStyleSheet&&"function"==typeof(new CSSStyleSheet).replaceSync}catch{return!1}}var mo=t=>t.replace(/\\\//g,"\\/"),fo=/^\s*@property\s/,bo=null;var vo=class{constructor(t,e,r=t,o={}){this.results=new Map,this.generations=0,this.prologueSheet=null,this.rulesSheet=null,this.prologue={props:"",preflight:"",vars:""},this.fallbackProps=new Set,this.segments=new Map([["root",{rules:[],keys:[]}],["",{rules:[],keys:[]}]]),this.refs=new Map,this.attached=[],this.key=t,this.fullKey=r,this.context=o.context??Gt(e),this.constructable=go(o.target??"shadow"),this.constructable&&(this.prologueSheet=new CSSStyleSheet,this.rulesSheet=new CSSStyleSheet)}get rootCount(){return this.attached.length}get ruleCount(){return this.refs.size}attach(t,e=""){if(this.attached.some(e=>e.root===t))return;if(this.prologueSheet&&this.rulesSheet){const e=[this.prologueSheet,this.rulesSheet];return t.adoptedStyleSheets=[...t.adoptedStyleSheets.filter(t=>!e.includes(t)),...e],void this.attached.push({root:t})}if(11!==t.nodeType)throw new Error("[BrowserRuntime] constructable sheets are not supported for the document");const r=t.ownerDocument??document,o=r.createElement("style"),a=r.createElement("style");e&&(o.setAttribute("nonce",e),a.setAttribute("nonce",e)),o.setAttribute("data-barocss","root-prologue"),a.setAttribute("data-barocss","root"),o.textContent=this.prologueText(),a.textContent=this.allRules().join("\n"),t.insertBefore(a,t.firstChild),t.insertBefore(o,a),this.attached.push({root:t,styles:[o,a]})}detach(t){const e=this.attached.findIndex(e=>e.root===t);if(-1===e)return;const[r]=this.attached.splice(e,1);r.styles?r.styles.forEach(t=>t.remove()):t.adoptedStyleSheets&&(t.adoptedStyleSheets=t.adoptedStyleSheets.filter(t=>t!==this.prologueSheet&&t!==this.rulesSheet))}addPropertyFallback(t){const e=this.fallbackProps.size;for(const r of t)fo.test(r)&&this.fallbackProps.add(r);this.fallbackProps.size!==e&&this.setPrologue("props",function(t){const e=[];for(const r of t){const t=/^\s*@property\s+(--[\w-]+)/.exec(r)?.[1],o=/initial-value\s*:\s*([^;}]*)/.exec(r)?.[1]?.trim();t&&o&&e.push(`${t}: ${o}`)}return 0===e.length?"":`@layer properties {\n:host, *, ::before, ::after, ::backdrop {\n ${e.join(";\n ")};\n}\n}`}(Array.from(this.fallbackProps)))}setPrologue(t,e){if(this.prologue[t]===e)return;this.prologue[t]=e;const r=this.prologueText();this.prologueSheet&&this.prologueSheet.replaceSync(r);for(const o of this.attached)o.styles&&(o.styles[0].textContent=r)}prologueText(){return[this.prologue.props,this.prologue.preflight,this.prologue.vars].filter(Boolean).join("\n")}allRules(){return Array.from(this.segments.values()).flatMap(t=>t.rules)}offset(t){let e=0;for(const r of this.segments.values()){if(r===t)return e;e+=r.rules.length}return e}retain(t,e){const r=this.refs.get(t);if(void 0!==r)return this.refs.set(t,r+1),!0;let o=this.segments.get(e);o||(o={rules:[],keys:[]},this.segments.set(e,o));const a="root"===e,n=Qr(t),s=a?o.rules.length:eo(o.keys,n),l=this.offset(o)+s;try{this.insertAt(t,l)}catch(c){return i()&&console.warn(`[BrowserRuntime] Failed to insert rule into shadow root sheet: ${t}`,c),!1}return o.rules.splice(s,0,t),o.keys.splice(s,0,n),this.refs.set(t,1),!0}release(t){const e=this.refs.get(t);if(void 0!==e)if(e>1)this.refs.set(t,e-1);else{this.refs.delete(t);for(const e of this.segments.values()){const r=e.rules.indexOf(t);if(-1===r)continue;const o=this.offset(e)+r;return e.rules.splice(r,1),e.keys.splice(r,1),void this.deleteAt(o)}}}insertAt(t,e){const r=mo(t);if(this.rulesSheet)return void this.rulesSheet.insertRule(r,e);const o=this.allRules().length;for(const a of this.attached){const n=a.styles[1],s=n.sheet;if(s&&s.cssRules.length===o)s.insertRule(r,e);else{const r=this.allRules();r.splice(e,0,t),n.textContent=r.join("\n")}}}deleteAt(t){if(this.rulesSheet)return void this.rulesSheet.deleteRule(t);const e=this.allRules().length;for(const r of this.attached){const o=r.styles[1],a=o.sheet;a&&a.cssRules.length===e+1?a.deleteRule(t):o.textContent=this.allRules().join("\n")}}cssText(){return[this.prologueText(),...this.allRules()].join("\n")}},xo=new Map;function ko(t,e=ho){const r=function(t){return JSON.stringify(t,(t,e)=>"function"==typeof e?`fn:${String(e)}`:e instanceof RegExp?`re:${e}`:e)??""}(t);let o=xo.get(r);return o||(o=new vo(e(r),t,r),xo.set(r,o)),o}var wo,$o=class extends Ft{constructor(t){super(t.context),this.shared=t}processClass(t){if(this.isProcessed(t))return null;const e=this.shared.results.get(t);if(e)return this.markProcessed(t),e;const r=super.processClass(t);return r&&(this.shared.results.set(t,r),this.shared.generations++),r}},Co=class{constructor(t,e,r=t=>I(t).utility?.category,o={}){this.shared=t,this.root=e,this.getCategory=r,this.opts=o,this.owned=new Set,this.scopePreflight=11===e.nodeType,t.attach(e,o.nonce)}hasDetachedPartitions(){return!1}updateRuleContent(t,e){"preflight"===t?this.shared.setPrologue("preflight",this.scopePreflight?function(t){const e=[];let r=t.replace(/\/\*[\s\S]*?\*\//g,"");return r=r.replace(/(?<=^|[{};])(\s*)([^{};@\s][^{};]*?)\{([^{}]*)\}/g,(t,r,o,a)=>{const n=o.split(",").map(t=>t.trim()).filter(Boolean);if(n.includes("body"))for(const i of a.split(";").map(t=>t.trim()).filter(Boolean))/^(min-height|scroll-behavior)\s*:/.test(i)||e.push(i);const s=Array.from(new Set(n.filter(t=>"body"!==t).map(t=>"html"===t||":root"===t?":host":t)));return 0===s.length?"":`${r}${s.join(", ")} {${a}}`}),e.length&&(r+=`\n@layer base {\n:host {\n ${e.join(";\n ")};\n}\n}\n`),r}(e):e):"css-vars"===t&&this.shared.setPrologue("vars",e)}take(t,e){return!this.owned.has(t)&&(11===this.root.nodeType&&fo.test(t)&&(function(t,e,r={}){const o=e.filter(t=>fo.test(t));if(0===o.length)return!0;try{if(!t)return!1;if(!bo||bo.doc!==t||bo.style&&!bo.style.isConnected){const e={doc:t,rules:new Set};if(r.constructable&&go("document"))e.sheet=new CSSStyleSheet,t.adoptedStyleSheets=[...t.adoptedStyleSheets,e.sheet];else{const o=t.head??t.documentElement;if(!o)return!1;const a=t.createElement("style");a.setAttribute("data-barocss","document-properties"),r.nonce&&a.setAttribute("nonce",r.nonce),o.appendChild(a),e.style=a}bo=e}const e=bo;for(const t of o){if(e.rules.has(t))continue;const r=e.sheet??e.style?.sheet??null;r?r.insertRule(mo(t),r.cssRules.length):e.style&&(e.style.textContent+=`${t}\n`),e.rules.add(t)}return!0}catch(a){return i()&&console.warn("[BrowserRuntime] could not register @property rules in the document; using :host initial values",a),!1}}(this.root.ownerDocument??("undefined"!=typeof document?document:null),[t],this.opts)||this.shared.addPropertyFallback([t])),!!this.shared.retain(t,e)&&(this.owned.add(t),!0))}addRule(t){return this.take(t,"")}addCategoryRule(t,e){return this.take(t,`c:${e}`)}addRootRules(t){let e=0;for(const r of t)this.take(r,"root")&&e++;return{success:e,failed:t.length-e}}addRules(t){let e=0,r=0;for(const o of t){const t=this.getCategory(o.cls);for(const a of o.cssList)(t?this.addCategoryRule(a,t):this.addRule(a))?e++:r++}return{success:e,failed:r}}removeRule(t,e){return!!this.owned.delete(t)&&(this.shared.release(t),!0)}get ruleCount(){return this.owned.size}cleanup(){var t;this.owned.forEach(t=>this.shared.release(t)),this.owned.clear(),this.shared.detach(this.root),0===(t=this.shared).rootCount&&xo.get(t.fullKey)===t&&xo.delete(t.fullKey)}},Po="style[data-barocss-ssr]",zo="@layer theme, base, components, utilities;",So=class{constructor(t={}){this.cache=new Map,this.rootCache=new Set,this.shadowRoot=null,this.isDestroyed=!1,this.existing=null,this.existingKeyframes=new Set,this.existingSheetCount=-1,this.pinned=new Set,this.gc=null,this.reclaimedCount=0,this.ssrRules=[],this.ssrClasses=new Set,this.observedOnce=!1,this.getCategory=t=>I(t,this.context).utility?.category;this.options={config:t.config||{},styleId:t.styleId||"barocss-runtime",insertionPoint:t.insertionPoint||"head",maxRulesPerPartition:t.maxRulesPerPartition||50,skipExisting:t.skipExisting??!1,gc:t.gc??!0,gcGraceMs:t.gcGraceMs??3e3,maxRules:t.maxRules??1/0,nonce:t.nonce??"",constructable:t.constructable??!1};const e=t.root;if(e&&11===e.nodeType&&(this.shadowRoot=e),this.shadowRoot){const t=ko(this.options.config);this.context=t.context,this.incrementalParser=new $o(t)}else this.context=Gt(this.options.config),this.incrementalParser=new Ft(this.context);this.changeDetector=new so(this.incrementalParser,this,this.getCategory),this.stylePartitionManager=this.createStyles(),this.options.gc&&(this.gc=new yo({reclaim:t=>this.reclaim(t),isPermanent:t=>this.isPermanent(t),cachedCount:()=>this.cache.size},this.options.gcGraceMs,this.options.maxRules),this.changeDetector.setGc(this.gc)),this.init(),this.shadowRoot&&this.observe(this.shadowRoot,{scan:!0})}createStyles(){if(this.shadowRoot){let t=this.incrementalParser.shared;const e=ko(this.options.config);return e!==t&&(t=e,this.context=t.context,this.incrementalParser=new $o(t),this.changeDetector?.setParser(this.incrementalParser)),new Co(t,this.shadowRoot,this.getCategory,{nonce:this.options.nonce,constructable:this.options.constructable})}if(this.options.constructable&&"undefined"!=typeof document&&go("document")){const t=new vo("document",this.options.config,"document",{context:this.context,target:"document"});return new Co(t,document,this.getCategory)}return new ro(this.getInsertionPoint(),this.options.maxRulesPerPartition,`${this.options.styleId}-partition`,this.getCategory,this.options.nonce)}debugLog(t,e,r){i()&&(console[t]||console.log)(`[BrowserRuntime:${t.toUpperCase()}] ${e}`,r||"")}init(){this.debugLog("debug","init"),this.injectPreflightCSS(),this.ensureCssVars(),this.adoptSsrSheets()}adoptSsrSheets(){if("undefined"==typeof document||this.shadowRoot)return;const t=[];if(document.head){for(const e of Array.from(document.head.querySelectorAll(`${Po}:not([data-barocss-adopted])`))){const r=e.sheet;if(!r)continue;e.setAttribute("data-barocss-adopted","");const o=[];for(let t=r.cssRules.length-1;t>=0;t--){const e=r.cssRules[t],a=uo([e]);0!==a.size&&(a.forEach(t=>this.ssrClasses.add(t)),o.unshift({css:e.cssText,cls:a.values().next().value}),r.deleteRule(t))}t.push(...o)}0!==t.length&&(this.ssrRules.push(...t),this.insertSsrRules(t))}}insertSsrRules(t){for(const{css:e,cls:r}of t){const t=this.getCategory(r);t?this.stylePartitionManager.addCategoryRule(e,t):this.stylePartitionManager.addRule(e)}}injectPreflightCSS(){const t=this.options.config.preflight??!0;if(t){const e=this.context.getPreflightCSS(t);this.stylePartitionManager.updateRuleContent("preflight",`${zo}\n@layer base {\n${e}\n}`,!0)}}ensureCssVars(){if(this.isDestroyed)return;const t=this.context.themeToCssVars?this.context.themeToCssVars():":root { /* CSS Variables will be generated here */ }";this.stylePartitionManager.updateRuleContent("css-vars",t)}getInsertionPoint(){return"string"!=typeof this.options.insertionPoint?this.options.insertionPoint:"body"===this.options.insertionPoint&&document.body||document.head}addClass(t){if(this.isDestroyed)return;const e=this.normalizeClasses(t).filter(Boolean);e.forEach(t=>this.pinned.add(t)),this.processClasses(e)}processClasses(t){this.processClassesIncremental(t)}processClassesIncremental(t){const e="undefined"!=typeof window,r=this.incrementalParser.processClasses(t);this.debugLog("debug","results",{results:r,classList:t}),this.applyParseResults(r,{isBrowser:e})}applyParseResults(t,e){if(this.isDestroyed)return;if(!this.shadowRoot&&this.getInsertionPoint().isConnected&&this.stylePartitionManager.hasDetachedPartitions()){const e=Array.from(this.cache.values());this.reset(),(t=[...e,...t]).forEach(t=>this.incrementalParser.markProcessed(t.cls))}if(this.ssrClasses.size>0&&(t=t.filter(t=>!this.ssrClasses.has(t.cls))),this.options.skipExisting&&t.length>0&&"undefined"!=typeof document){const e=this.getExistingClasses();t=t.filter(t=>!e.has(t.cls))}if(0===t.length)return;const r=[],o=[],a=this.options.skipExisting&&"undefined"!=typeof document?(this.getExistingClasses(),this.existingKeyframes):null;for(const n of t)if(n.css&&Array.isArray(n.cssList)&&(r.push(n),this.cache.set(n.cls,n)),n.rootCss&&Array.isArray(n.rootCssList))for(const t of n.rootCssList){if(a?.size){const e=/^\s*@keyframes\s+([^\s{]+)/.exec(t)?.[1];if(e&&a.has(e))continue}this.rootCache.has(t)||(this.rootCache.add(t),o.push(t))}o.length>0&&this.stylePartitionManager.addRootRules(o.filter(Boolean)),r.length>0&&this.stylePartitionManager.addRules(r),this.debugLog("info",`Applied ${t.length} parser results`,{cssRuleCount:r.length,rootCssCount:o.length})}isPermanent(t){return!(!this.pinned.has(t)&&!this.ssrClasses.has(t))||!this.shadowRoot&&("undefined"==typeof document||this.getExistingClasses().has(t))}reclaim(t){if(this.isDestroyed)return;const e=t.filter(t=>this.cache.has(t));if(0===e.length)return;const r=e.map(t=>this.cache.get(t));e.forEach(t=>{this.cache.delete(t),this.incrementalParser.unmarkProcessed(t)});const o=new Set;for(const a of this.cache.values())a.cssList.forEach(t=>o.add(t));for(const a of r){const t=this.getCategory(a.cls);for(const e of a.cssList)o.has(e)||this.stylePartitionManager.removeRule(e,t)}this.reclaimedCount+=e.length}getExistingClasses(){const t=new Set(Array.from(document.querySelectorAll("style[data-barocss]"),t=>t.sheet)),e=Array.from(document.styleSheets).filter(e=>{if(t.has(e))return!1;const r=e.ownerNode;return!(r&&"function"==typeof r.hasAttribute&&(r.hasAttribute("data-barocss")||(r.id||"").startsWith(this.options.styleId)))});if(this.existing&&e.length===this.existingSheetCount)return this.existing;const r=new Set,o=new Set;for(const a of e){let t;try{t=a.cssRules}catch{continue}uo(t,r),po(t,o)}return this.existingKeyframes=o,this.existing=r,this.existingSheetCount=e.length,r}observe(t=this.shadowRoot??document.body,e){return this.observedOnce||(this.observedOnce=!0,this.adoptSsrSheets()),this.changeDetector.observe(t,e)}normalizeClasses(t){return(Array.isArray(t)?t:[t]).flatMap(no)}has(t){return this.cache.has(t)}getCss(t){return this.cache.get(t)?.cssList.join("\n")}getAllCss(){return[...this.rootCache,...Array.from(this.cache.values()).flatMap(t=>t.cssList)].join("\n")}getClasses(){return Array.from(this.cache.keys())}getCacheStats(){const t=this.incrementalParser.getStats();return{runtime:{cachedClasses:this.cache.size,rootCacheSize:this.rootCache.size,ruleCount:this.stylePartitionManager.ruleCount,reclaimedClasses:this.reclaimedCount,gc:this.gc?.stats()??null},ast:t.cacheStats.ast,incremental:t}}clearCaches(){var t;this.isDestroyed||(this.cache.clear(),this.rootCache.clear(),(t=this.context)?x(t):(m(),jt.clear()),this.incrementalParser.clearProcessed(),this.stylePartitionManager.cleanup(),this.stylePartitionManager=this.createStyles(),this.injectPreflightCSS(),this.ensureCssVars(),this.insertSsrRules(this.ssrRules))}reset(){this.isDestroyed||(this.cache.clear(),this.rootCache.clear(),this.incrementalParser.clearProcessed(),this.stylePartitionManager.cleanup(),this.stylePartitionManager=this.createStyles(),this.injectPreflightCSS(),this.ensureCssVars(),this.insertSsrRules(this.ssrRules))}updateConfig(t){if(this.isDestroyed)return;const e=Array.from(this.cache.keys());if(this.options.config=t,this.shadowRoot){this.stylePartitionManager.cleanup();const e=ko(t);this.context=e.context,this.incrementalParser=new $o(e)}else this.context=Gt(t),this.incrementalParser=new Ft(this.context);this.changeDetector.setParser(this.incrementalParser),this.reset(),e.length>0&&this.addClass(e)}removeClass(t){if(this.isDestroyed)return;const e=new Set(this.normalizeClasses(t)),r=Array.from(this.cache.values()).filter(t=>!e.has(t.cls));r.length!==this.cache.size&&(this.reset(),r.forEach(t=>this.incrementalParser.markProcessed(t.cls)),this.applyParseResults(r))}destroy(){this.isDestroyed||(this.changeDetector.disconnect(),this.gc?.cancel(),this.stylePartitionManager.cleanup(),this.cache.clear(),this.rootCache.clear(),this.isDestroyed=!0)}getStats(){return{cachedClasses:this.cache.size,styleElementId:this.options.styleId,isDestroyed:this.isDestroyed,config:this.options.config,cacheStats:this.getCacheStats(),adopted:!this.shadowRoot&&this.stylePartitionManager instanceof Co,sharedSheet:this.shadowRoot&&this.stylePartitionManager instanceof Co?{roots:this.stylePartitionManager.shared.rootCount,rules:this.stylePartitionManager.shared.ruleCount,generations:this.stylePartitionManager.shared.generations,constructable:this.stylePartitionManager.shared.constructable}:null}}},Ao=null,jo="",Ro=!1,Eo=!1;function To(t={}){if(!Ao||Ao.getStats().isDestroyed?(Ao=new So(t),wo=t.config,jo=t.nonce??"",Ro=t.constructable??!1,Eo=!1):t.config&&t.config!==wo&&(Ao.updateConfig(t.config),wo=t.config),!Eo){const e=void 0!==t.nonce&&t.nonce!==jo,r=void 0!==t.constructable&&t.constructable!==Ro;if(e||r){Eo=!0;const t=[e&&`nonce (runtime has ${jo?"a different nonce":"none"})`,r&&`constructable (runtime has ${Ro})`].filter(Boolean).join(" and ");console.warn(`[BaroCSS] runtime already created with a different ${t}; the new value is ignored. Pass nonce/constructable on the first getRuntime/baroStart call.`)}}return Ao}function No({loadingClassName:t="baro-boot",...e}={}){if(e.root&&11===e.root.nodeType)return new So(e);if(!document.body)return void document.addEventListener("DOMContentLoaded",()=>No({loadingClassName:t,...e}),{once:!0});const r=`${t}-doing`,o=`${t}-done`;try{document.body.classList.add(r),To(e).observe(document.body,{scan:!0,onReady:()=>{document.body.classList.remove(r),document.body.classList.add(o)}})}catch(a){document.body?.classList.remove(r),console.error("BaroCSS boot failed:",a)}}var Wo=No;function Vo(t){if(!t||"object"!=typeof t||Array.isArray(t))return[];const e=t.elements;if(!e||"object"!=typeof e||Array.isArray(e))return[];const r=new Set;for(const o of Object.keys(e)){const t=e[o];if(!t||"object"!=typeof t||Array.isArray(t))continue;const a=t.props;if(!a||"object"!=typeof a||Array.isArray(a))continue;const n=a.className;if("string"==typeof n)for(const e of no(n))e&&r.add(e)}return Array.from(r)}var Bo={colors:Object.fromEntries(["background","foreground","card","card-foreground","popover","popover-foreground","primary","primary-foreground","secondary","secondary-foreground","muted","muted-foreground","accent","accent-foreground","destructive","border","input","ring","chart-1","chart-2","chart-3","chart-4","chart-5","sidebar","sidebar-foreground","sidebar-primary","sidebar-primary-foreground","sidebar-accent","sidebar-accent-foreground","sidebar-border","sidebar-ring"].map(t=>[t,`var(--${t})`])),borderRadius:{sm:"calc(var(--radius) - 4px)",md:"calc(var(--radius) - 2px)",lg:"var(--radius)",xl:"calc(var(--radius) + 4px)"}};t.BrowserRuntime=So,t.ChangeDetector=so,t.LAYER_ORDER=zo,t.SSR_STYLE_SELECTOR=Po,t.StylePartitionManager=ro,t.baroBoot=No,t.baroStart=Wo,t.collectJsonRenderClassNames=Vo,t.getRuntime=To,t.normalizeClassName=ao,t.normalizeClassNameList=no,t.preloadJsonRenderClasses=function(t,e){const r=Vo(t);r.length>0&&e.addClass(r)},t.shadcnTheme=Bo});
2
2
  //# sourceMappingURL=barocss.umd.cjs.map